2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.61.
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
9
## --------------------- ##
10
## M4sh Initialization. ##
11
## --------------------- ##
13
# Be more Bourne compatible
14
DUALCASE=1; export DUALCASE # for MKS sh
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19
# is contrary to our usage. Disable this feature.
20
alias -g '${1+"$@"}'='"$@"'
23
case `(set -o) 2>/dev/null` in
24
*posix*) set -o posix ;;
33
# Avoid depending upon Character Ranges.
34
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37
as_cr_digits='0123456789'
38
as_cr_alnum=$as_cr_Letters$as_cr_digits
40
# The user is always right.
41
if test "${PATH_SEPARATOR+set}" != set; then
42
echo "#! /bin/sh" >conf$$.sh
43
echo "exit 0" >>conf$$.sh
45
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53
# Support unset when possible.
54
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62
# We need space, tab and new line, in precisely that order. Quoting is
63
# there to prevent editors from complaining about space-tab.
64
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65
# splitting by setting IFS to empty value.)
70
# Find who we are. Look in the path if we contain no directory separator.
72
*[\\/]* ) as_myself=$0 ;;
73
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77
test -z "$as_dir" && as_dir=.
78
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84
# We did not find ourselves, most probably we were run as `sh COMMAND'
85
# in which case we are not to be found in the path.
86
if test "x$as_myself" = x; then
89
if test ! -f "$as_myself"; then
90
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94
# Work around bugs in pre-3.0 UWIN ksh.
95
for as_var in ENV MAIL MAILPATH
96
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109
eval $as_var=C; export $as_var
111
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115
# Required to use basename.
116
if expr a : '\(a\)' >/dev/null 2>&1 &&
117
test "X`expr 00001 : '.*\(...\)'`" = X001; then
123
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130
# Name of the executable.
131
as_me=`$as_basename -- "$0" ||
132
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133
X"$0" : 'X\(//\)$' \| \
134
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136
sed '/^.*\/\([^/][^/]*\)\/*$/{
154
if test "x$CONFIG_SHELL" = x; then
155
if (eval ":") 2>/dev/null; then
161
if test $as_have_required = yes && (eval ":
171
as_func_ret_success () {
174
as_func_ret_failure () {
179
if as_func_success; then
183
echo as_func_success failed.
186
if as_func_failure; then
188
echo as_func_failure succeeded.
191
if as_func_ret_success; then
195
echo as_func_ret_success failed.
198
if as_func_ret_failure; then
200
echo as_func_ret_failure succeeded.
203
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207
echo positional parameters were not saved.
210
test \$exitcode = 0) || { (exit 1); exit 1; }
215
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217
") 2> /dev/null; then
221
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225
test -z "$as_dir" && as_dir=.
228
for as_base in sh bash ksh sh5; do
229
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236
for as_shell in $as_candidate_shells $SHELL; do
237
# Try only shells that exist, to save several forks.
238
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239
{ ("$as_shell") 2> /dev/null <<\_ASEOF
240
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
243
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244
# is contrary to our usage. Disable this feature.
245
alias -g '${1+"$@"}'='"$@"'
248
case `(set -o) 2>/dev/null` in
249
*posix*) set -o posix ;;
258
CONFIG_SHELL=$as_shell
260
if { "$as_shell" 2> /dev/null <<\_ASEOF
261
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265
# is contrary to our usage. Disable this feature.
266
alias -g '${1+"$@"}'='"$@"'
269
case `(set -o) 2>/dev/null` in
270
*posix*) set -o posix ;;
286
as_func_ret_success () {
289
as_func_ret_failure () {
294
if as_func_success; then
298
echo as_func_success failed.
301
if as_func_failure; then
303
echo as_func_failure succeeded.
306
if as_func_ret_success; then
310
echo as_func_ret_success failed.
313
if as_func_ret_failure; then
315
echo as_func_ret_failure succeeded.
318
if ( set x; as_func_ret_success y && test x = "$1" ); then
322
echo positional parameters were not saved.
325
test $exitcode = 0) || { (exit 1); exit 1; }
330
test "x$as_lineno_1" != "x$as_lineno_2" &&
331
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
342
if test "x$CONFIG_SHELL" != x; then
343
for as_var in BASH_ENV ENV
344
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
347
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351
if test $as_have_required = no; then
352
echo This script requires a shell more modern than all the
353
echo shells that I found on your system. Please install a
354
echo modern shell, or manually run the script under such a
355
echo shell if you do have one.
356
{ (exit 1); exit 1; }
366
(eval "as_func_return () {
375
as_func_ret_success () {
378
as_func_ret_failure () {
383
if as_func_success; then
387
echo as_func_success failed.
390
if as_func_failure; then
392
echo as_func_failure succeeded.
395
if as_func_ret_success; then
399
echo as_func_ret_success failed.
402
if as_func_ret_failure; then
404
echo as_func_ret_failure succeeded.
407
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
411
echo positional parameters were not saved.
414
test \$exitcode = 0") || {
415
echo No shell found that supports shell functions.
416
echo Please tell autoconf@gnu.org about your system,
417
echo including any error possibly output before this
425
test "x$as_lineno_1" != "x$as_lineno_2" &&
426
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429
# uniformly replaced by the line number. The first 'sed' inserts a
430
# line-number line after each line using $LINENO; the second 'sed'
431
# does the real work. The second script uses 'N' to pair each
432
# line-number line with the line containing $LINENO, and appends
433
# trailing '-' during substitution so that $LINENO is not a special
435
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436
# scripts with optimization help from Paolo Bonzini. Blame Lee
437
# E. McMahon (1931-1989) for sed's syntax. :-)
449
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
453
chmod +x "$as_me.lineno" ||
454
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455
{ (exit 1); exit 1; }; }
457
# Don't try to exec as it changes $[0], causing all sort of problems
458
# (the dirname of $[0] is not the place where we might find the
459
# original and so on. Autoconf is especially sensitive to this).
461
# Exit status is that of the last command.
466
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
472
ECHO_C= ECHO_N= ECHO_T=
476
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
483
if expr a : '\(a\)' >/dev/null 2>&1 &&
484
test "X`expr 00001 : '.*\(...\)'`" = X001; then
490
rm -f conf$$ conf$$.exe conf$$.file
491
if test -d conf$$.dir; then
492
rm -f conf$$.dir/conf$$.file
498
if ln -s conf$$.file conf$$ 2>/dev/null; then
500
# ... but there are two gotchas:
501
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503
# In both cases, we have to default to `cp -p'.
504
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506
elif ln conf$$.file conf$$ 2>/dev/null; then
511
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512
rmdir conf$$.dir 2>/dev/null
514
if mkdir -p . 2>/dev/null; then
517
test -d ./-p && rmdir ./-p
521
if test -x / >/dev/null 2>&1; then
524
if ls -dL / >/dev/null 2>&1; then
531
if test -d "$1"; then
537
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538
???[sx]*):;;*)false;;esac;fi
542
as_executable_p=$as_test_x
544
# Sed expression to map a string onto a valid CPP name.
545
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547
# Sed expression to map a string onto a valid variable name.
548
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553
# Check that we are running under the correct shell.
554
SHELL=${CONFIG_SHELL-/bin/sh}
558
# Remove one level of quotation (which was required for Make).
559
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564
if test "X$1" = X--no-reexec; then
565
# Discard the --no-reexec flag, and continue.
567
elif test "X$1" = X--fallback-echo; then
568
# Avoid inline document here, it may be left over
570
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571
# Yippee, $echo works!
574
# Restart under the correct shell.
575
exec $SHELL "$0" --no-reexec ${1+"$@"}
578
if test "X$1" = X--fallback-echo; then
579
# used as fallback echo
587
# The HP-UX ksh and POSIX shell print the target directory to stdout
589
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
591
if test -z "$ECHO"; then
592
if test "X${echo_test_string+set}" != Xset; then
593
# find a string as large as possible, as long as the shell can cope with it
594
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596
if (echo_test_string="`eval $cmd`") 2>/dev/null &&
597
echo_test_string="`eval $cmd`" &&
598
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
605
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607
test "X$echo_testing_string" = "X$echo_test_string"; then
610
# The Solaris, AIX, and Digital Unix default echo programs unquote
611
# backslashes. This makes it impossible to quote backslashes using
612
# echo "$something" | sed 's/\\/\\\\/g'
614
# So, first we look for a working echo in the user's PATH.
616
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617
for dir in $PATH /usr/ucb; do
619
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622
test "X$echo_testing_string" = "X$echo_test_string"; then
629
if test "X$echo" = Xecho; then
630
# We didn't find a better echo, so look for alternatives.
631
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633
test "X$echo_testing_string" = "X$echo_test_string"; then
634
# This shell has a builtin print -r that does the trick.
636
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637
test "X$CONFIG_SHELL" != X/bin/ksh; then
638
# If we have ksh, try running configure again with it.
639
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640
export ORIGINAL_CONFIG_SHELL
641
CONFIG_SHELL=/bin/ksh
643
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
647
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649
test "X$echo_testing_string" = "X$echo_test_string"; then
652
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653
test "X$echo_testing_string" = 'X\t' &&
654
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655
test "X$echo_testing_string" = "X$echo_test_string"; then
656
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
658
SHELL="$CONFIG_SHELL"
660
echo="$CONFIG_SHELL $0 --fallback-echo"
661
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662
test "X$echo_testing_string" = 'X\t' &&
663
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664
test "X$echo_testing_string" = "X$echo_test_string"; then
665
echo="$CONFIG_SHELL $0 --fallback-echo"
667
# maybe with a smaller string...
670
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
678
if test "$prev" != 'sed 50q "$0"'; then
679
echo_test_string=`eval $prev`
680
export echo_test_string
681
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
683
# Oops. We lost completely, so just stick with echo.
692
# Copy echo and quote the copy suitably for passing to libtool from
693
# the Makefile, instead of quoting the original, which is used later.
695
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
702
tagnames=${tagnames+${tagnames},}CXX
704
tagnames=${tagnames+${tagnames},}F77
706
exec 7<&0 </dev/null 6>&1
709
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710
# so uname gets run too.
711
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
716
ac_default_prefix=/usr/local
718
ac_config_libobj_dir=.
724
SHELL=${CONFIG_SHELL-/bin/sh}
726
# Identity of this package.
733
ac_unique_file="acinclude.m4"
734
ac_default_prefix=${KDEDIR:-the kde prefix}
735
# Factoring default headers for most tests.
736
ac_includes_default="\
738
#ifdef HAVE_SYS_TYPES_H
739
# include <sys/types.h>
741
#ifdef HAVE_SYS_STAT_H
742
# include <sys/stat.h>
748
# ifdef HAVE_STDLIB_H
753
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
758
#ifdef HAVE_STRINGS_H
759
# include <strings.h>
761
#ifdef HAVE_INTTYPES_H
762
# include <inttypes.h>
780
program_transform_name
833
INSTALL_STRIP_PROGRAM
870
unsermake_enable_pch_TRUE
871
unsermake_enable_pch_FALSE
877
ENABLE_PERMISSIVE_FLAG
883
KDE_USE_CLOSURE_FALSE
886
KDE_USE_NMCHECK_FALSE
1025
ac_precious_vars='build_alias
1050
# Initialize some variables set by options.
1052
ac_init_version=false
1053
# The variables have the same names as the options, with
1054
# dashes changed to underlines.
1055
cache_file=/dev/null
1062
program_transform_name=s,x,x,
1070
# Installation directory options.
1071
# These are left unexpanded so users can "make install exec_prefix=/foo"
1072
# and all the variables that are supposed to be based on exec_prefix
1073
# by default will actually change.
1074
# Use braces instead of parens because sh, perl, etc. also accept them.
1075
# (The list follows the same order as the GNU Coding Standards.)
1076
bindir='${exec_prefix}/bin'
1077
sbindir='${exec_prefix}/sbin'
1078
libexecdir='${exec_prefix}/libexec'
1079
datarootdir='${prefix}/share'
1080
datadir='${datarootdir}'
1081
sysconfdir='${prefix}/etc'
1082
sharedstatedir='${prefix}/com'
1083
localstatedir='${prefix}/var'
1084
includedir='${prefix}/include'
1085
oldincludedir='/usr/include'
1086
docdir='${datarootdir}/doc/${PACKAGE}'
1087
infodir='${datarootdir}/info'
1092
libdir='${exec_prefix}/lib'
1093
localedir='${datarootdir}/locale'
1094
mandir='${datarootdir}/man'
1100
# If the previous option needs an argument, assign it.
1101
if test -n "$ac_prev"; then
1102
eval $ac_prev=\$ac_option
1108
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1112
# Accept the important Cygnus configure options, so we can diagnose typos.
1114
case $ac_dashdash$ac_option in
1118
-bindir | --bindir | --bindi | --bind | --bin | --bi)
1120
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1121
bindir=$ac_optarg ;;
1123
-build | --build | --buil | --bui | --bu)
1124
ac_prev=build_alias ;;
1125
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
1126
build_alias=$ac_optarg ;;
1128
-cache-file | --cache-file | --cache-fil | --cache-fi \
1129
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1130
ac_prev=cache_file ;;
1131
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1132
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1133
cache_file=$ac_optarg ;;
1135
--config-cache | -C)
1136
cache_file=config.cache ;;
1138
-datadir | --datadir | --datadi | --datad)
1140
-datadir=* | --datadir=* | --datadi=* | --datad=*)
1141
datadir=$ac_optarg ;;
1143
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1144
| --dataroo | --dataro | --datar)
1145
ac_prev=datarootdir ;;
1146
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1147
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1148
datarootdir=$ac_optarg ;;
1150
-disable-* | --disable-*)
1151
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1152
# Reject names that are not valid shell variable names.
1153
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1154
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1155
{ (exit 1); exit 1; }; }
1156
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1157
eval enable_$ac_feature=no ;;
1159
-docdir | --docdir | --docdi | --doc | --do)
1161
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1162
docdir=$ac_optarg ;;
1164
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1166
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1167
dvidir=$ac_optarg ;;
1169
-enable-* | --enable-*)
1170
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1171
# Reject names that are not valid shell variable names.
1172
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1173
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1174
{ (exit 1); exit 1; }; }
1175
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1176
eval enable_$ac_feature=\$ac_optarg ;;
1178
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1179
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1180
| --exec | --exe | --ex)
1181
ac_prev=exec_prefix ;;
1182
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1183
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1184
| --exec=* | --exe=* | --ex=*)
1185
exec_prefix=$ac_optarg ;;
1187
-gas | --gas | --ga | --g)
1188
# Obsolete; use --with-gas.
1191
-help | --help | --hel | --he | -h)
1192
ac_init_help=long ;;
1193
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1194
ac_init_help=recursive ;;
1195
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1196
ac_init_help=short ;;
1198
-host | --host | --hos | --ho)
1199
ac_prev=host_alias ;;
1200
-host=* | --host=* | --hos=* | --ho=*)
1201
host_alias=$ac_optarg ;;
1203
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1205
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1207
htmldir=$ac_optarg ;;
1209
-includedir | --includedir | --includedi | --included | --include \
1210
| --includ | --inclu | --incl | --inc)
1211
ac_prev=includedir ;;
1212
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1213
| --includ=* | --inclu=* | --incl=* | --inc=*)
1214
includedir=$ac_optarg ;;
1216
-infodir | --infodir | --infodi | --infod | --info | --inf)
1218
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1219
infodir=$ac_optarg ;;
1221
-libdir | --libdir | --libdi | --libd)
1223
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1224
libdir=$ac_optarg ;;
1226
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1227
| --libexe | --libex | --libe)
1228
ac_prev=libexecdir ;;
1229
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1230
| --libexe=* | --libex=* | --libe=*)
1231
libexecdir=$ac_optarg ;;
1233
-localedir | --localedir | --localedi | --localed | --locale)
1234
ac_prev=localedir ;;
1235
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1236
localedir=$ac_optarg ;;
1238
-localstatedir | --localstatedir | --localstatedi | --localstated \
1239
| --localstate | --localstat | --localsta | --localst | --locals)
1240
ac_prev=localstatedir ;;
1241
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1242
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1243
localstatedir=$ac_optarg ;;
1245
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1247
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1248
mandir=$ac_optarg ;;
1250
-nfp | --nfp | --nf)
1251
# Obsolete; use --without-fp.
1254
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1255
| --no-cr | --no-c | -n)
1258
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1259
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1262
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1263
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1264
| --oldin | --oldi | --old | --ol | --o)
1265
ac_prev=oldincludedir ;;
1266
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1267
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1268
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1269
oldincludedir=$ac_optarg ;;
1271
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1273
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1274
prefix=$ac_optarg ;;
1276
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1277
| --program-pre | --program-pr | --program-p)
1278
ac_prev=program_prefix ;;
1279
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1280
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1281
program_prefix=$ac_optarg ;;
1283
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1284
| --program-suf | --program-su | --program-s)
1285
ac_prev=program_suffix ;;
1286
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1287
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1288
program_suffix=$ac_optarg ;;
1290
-program-transform-name | --program-transform-name \
1291
| --program-transform-nam | --program-transform-na \
1292
| --program-transform-n | --program-transform- \
1293
| --program-transform | --program-transfor \
1294
| --program-transfo | --program-transf \
1295
| --program-trans | --program-tran \
1296
| --progr-tra | --program-tr | --program-t)
1297
ac_prev=program_transform_name ;;
1298
-program-transform-name=* | --program-transform-name=* \
1299
| --program-transform-nam=* | --program-transform-na=* \
1300
| --program-transform-n=* | --program-transform-=* \
1301
| --program-transform=* | --program-transfor=* \
1302
| --program-transfo=* | --program-transf=* \
1303
| --program-trans=* | --program-tran=* \
1304
| --progr-tra=* | --program-tr=* | --program-t=*)
1305
program_transform_name=$ac_optarg ;;
1307
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1309
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1310
pdfdir=$ac_optarg ;;
1312
-psdir | --psdir | --psdi | --psd | --ps)
1314
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1317
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1318
| -silent | --silent | --silen | --sile | --sil)
1321
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1323
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1325
sbindir=$ac_optarg ;;
1327
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1328
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1329
| --sharedst | --shareds | --shared | --share | --shar \
1331
ac_prev=sharedstatedir ;;
1332
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1333
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1334
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1336
sharedstatedir=$ac_optarg ;;
1338
-site | --site | --sit)
1340
-site=* | --site=* | --sit=*)
1343
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1345
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1346
srcdir=$ac_optarg ;;
1348
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1349
| --syscon | --sysco | --sysc | --sys | --sy)
1350
ac_prev=sysconfdir ;;
1351
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1352
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1353
sysconfdir=$ac_optarg ;;
1355
-target | --target | --targe | --targ | --tar | --ta | --t)
1356
ac_prev=target_alias ;;
1357
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1358
target_alias=$ac_optarg ;;
1360
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1363
-version | --version | --versio | --versi | --vers | -V)
1364
ac_init_version=: ;;
1367
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1368
# Reject names that are not valid shell variable names.
1369
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1370
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1371
{ (exit 1); exit 1; }; }
1372
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1373
eval with_$ac_package=\$ac_optarg ;;
1375
-without-* | --without-*)
1376
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1377
# Reject names that are not valid shell variable names.
1378
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1379
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1380
{ (exit 1); exit 1; }; }
1381
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1382
eval with_$ac_package=no ;;
1385
# Obsolete; use --with-x.
1388
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1389
| --x-incl | --x-inc | --x-in | --x-i)
1390
ac_prev=x_includes ;;
1391
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1392
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1393
x_includes=$ac_optarg ;;
1395
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1396
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1397
ac_prev=x_libraries ;;
1398
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1399
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1400
x_libraries=$ac_optarg ;;
1402
-*) { echo "$as_me: error: unrecognized option: $ac_option
1403
Try \`$0 --help' for more information." >&2
1404
{ (exit 1); exit 1; }; }
1408
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1409
# Reject names that are not valid shell variable names.
1410
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1411
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1412
{ (exit 1); exit 1; }; }
1413
eval $ac_envvar=\$ac_optarg
1414
export $ac_envvar ;;
1417
# FIXME: should be removed in autoconf 3.0.
1418
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1419
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1420
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1421
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1427
if test -n "$ac_prev"; then
1428
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1429
{ echo "$as_me: error: missing argument to $ac_option" >&2
1430
{ (exit 1); exit 1; }; }
1433
# Be sure to have absolute directory names.
1434
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1435
datadir sysconfdir sharedstatedir localstatedir includedir \
1436
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1437
libdir localedir mandir
1439
eval ac_val=\$$ac_var
1441
[\\/$]* | ?:[\\/]* ) continue;;
1442
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1444
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1445
{ (exit 1); exit 1; }; }
1448
# There might be people who depend on the old broken behavior: `$host'
1449
# used to hold the argument of --host etc.
1450
# FIXME: To remove some day.
1453
target=$target_alias
1455
# FIXME: To remove some day.
1456
if test "x$host_alias" != x; then
1457
if test "x$build_alias" = x; then
1458
cross_compiling=maybe
1459
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1460
If a cross compiler is detected then cross compile mode will be used." >&2
1461
elif test "x$build_alias" != "x$host_alias"; then
1467
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1469
test "$silent" = yes && exec 6>/dev/null
1472
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1473
ac_ls_di=`ls -di .` &&
1474
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1475
{ echo "$as_me: error: Working directory cannot be determined" >&2
1476
{ (exit 1); exit 1; }; }
1477
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1478
{ echo "$as_me: error: pwd does not report name of working directory" >&2
1479
{ (exit 1); exit 1; }; }
1482
# Find the source files, if location was not specified.
1483
if test -z "$srcdir"; then
1484
ac_srcdir_defaulted=yes
1485
# Try the directory containing this script, then the parent directory.
1486
ac_confdir=`$as_dirname -- "$0" ||
1487
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1488
X"$0" : 'X\(//\)[^/]' \| \
1489
X"$0" : 'X\(//\)$' \| \
1490
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1492
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1510
if test ! -r "$srcdir/$ac_unique_file"; then
1514
ac_srcdir_defaulted=no
1516
if test ! -r "$srcdir/$ac_unique_file"; then
1517
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1518
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1519
{ (exit 1); exit 1; }; }
1521
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1523
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1524
{ (exit 1); exit 1; }; }
1526
# When building in place, set srcdir=.
1527
if test "$ac_abs_confdir" = "$ac_pwd"; then
1530
# Remove unnecessary trailing slashes from srcdir.
1531
# Double slashes in file names in object file debugging info
1532
# mess up M-x gdb in Emacs.
1534
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1536
for ac_var in $ac_precious_vars; do
1537
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1538
eval ac_env_${ac_var}_value=\$${ac_var}
1539
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1540
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1544
# Report the --help message.
1546
if test "$ac_init_help" = "long"; then
1547
# Omit some internal or obsolete options to make the list less imposing.
1548
# This message is too long to be a string in the A/UX 3.1 sh.
1550
\`configure' configures this package to adapt to many kinds of systems.
1552
Usage: $0 [OPTION]... [VAR=VALUE]...
1554
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1555
VAR=VALUE. See below for descriptions of some of the useful variables.
1557
Defaults for the options are specified in brackets.
1560
-h, --help display this help and exit
1561
--help=short display options specific to this package
1562
--help=recursive display the short help of all the included packages
1563
-V, --version display version information and exit
1564
-q, --quiet, --silent do not print \`checking...' messages
1565
--cache-file=FILE cache test results in FILE [disabled]
1566
-C, --config-cache alias for \`--cache-file=config.cache'
1567
-n, --no-create do not create output files
1568
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1570
Installation directories:
1571
--prefix=PREFIX install architecture-independent files in PREFIX
1572
[$ac_default_prefix]
1573
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1576
By default, \`make install' will install all the files in
1577
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1578
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1579
for instance \`--prefix=\$HOME'.
1581
For better control, use the options below.
1583
Fine tuning of the installation directories:
1584
--bindir=DIR user executables [EPREFIX/bin]
1585
--sbindir=DIR system admin executables [EPREFIX/sbin]
1586
--libexecdir=DIR program executables [EPREFIX/libexec]
1587
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1588
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1589
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1590
--libdir=DIR object code libraries [EPREFIX/lib]
1591
--includedir=DIR C header files [PREFIX/include]
1592
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1593
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1594
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1595
--infodir=DIR info documentation [DATAROOTDIR/info]
1596
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1597
--mandir=DIR man documentation [DATAROOTDIR/man]
1598
--docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1599
--htmldir=DIR html documentation [DOCDIR]
1600
--dvidir=DIR dvi documentation [DOCDIR]
1601
--pdfdir=DIR pdf documentation [DOCDIR]
1602
--psdir=DIR ps documentation [DOCDIR]
1608
--program-prefix=PREFIX prepend PREFIX to installed program names
1609
--program-suffix=SUFFIX append SUFFIX to installed program names
1610
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1613
--build=BUILD configure for building on BUILD [guessed]
1614
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1615
--target=TARGET configure for building compilers for TARGET [HOST]
1619
if test -n "$ac_init_help"; then
1624
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1625
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1626
--disable-fast-perl disable fast Makefile generation (needs perl)
1627
--enable-debug=ARG enables debug symbols (yes|no|full) default=no
1628
--disable-debug disables debug output and debug symbols default=no
1629
--enable-strict compiles with strict compiler options (may not
1631
--disable-warnings disables compilation with -Wall and similar
1632
--enable-profile creates profiling infos default=no
1633
--disable-dependency-tracking speeds up one-time build
1634
--enable-dependency-tracking do not reject slow dependency extractors
1635
--enable-pch enables precompiled header support (currently only
1636
KCC or gcc >=3.4+unsermake) default=no
1637
--enable-coverage use gcc coverage testing
1638
--enable-new-ldflags enable the new linker flags
1639
--enable-final build size optimized apps (experimental - needs lots
1641
--enable-closure delay template instantiation
1642
--enable-nmcheck enable automatic namespace cleanness check
1643
--enable-shared[=PKGS] build shared libraries [default=yes]
1644
--enable-static[=PKGS] build static libraries [default=no]
1645
--enable-libsuffix /lib directory suffix (64,32,none,auto=default)
1646
--enable-fast-install[=PKGS]
1647
optimize for fast installation [default=yes]
1648
--disable-libtool-lock avoid locking (might break parallel builds)
1649
--enable-pie platform supports PIE linking default=detect
1650
--enable-embedded link to Qt-embedded, don't use X
1651
--enable-qtopia link to Qt-embedded, link to the Qtopia Environment
1652
--enable-mac link to Qt/Mac (don't use X)
1653
--disable-mt link to non-threaded Qt (deprecated)
1654
--disable-threading disables threading even if libpthread found
1655
--disable-rpath do not use the rpath feature of ld
1656
--disable-path-check don't try to find out, where to install
1659
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1660
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1661
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1662
--with-pic try to use only PIC/non-PIC objects [default=use
1664
--with-tags[=TAGS] include additional configurations [automatic]
1665
--with-extra-includes=DIR
1666
adds non standard include paths
1667
--with-extra-libs=DIR adds non standard library paths
1668
--with-qt-dir=DIR where the root of Qt is installed
1669
--with-qt-includes=DIR where the Qt includes are.
1670
--with-qt-libraries=DIR where the Qt library is installed.
1671
--without-arts build without aRts default=no
1673
Some influential environment variables:
1674
CC C compiler command
1675
CFLAGS C compiler flags
1676
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1677
nonstandard directory <lib dir>
1678
LIBS libraries to pass to the linker, e.g. -l<library>
1679
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1680
you have headers in a nonstandard directory <include dir>
1682
CXX C++ compiler command
1683
CXXFLAGS C++ compiler flags
1684
CXXCPP C++ preprocessor
1685
F77 Fortran 77 compiler command
1686
FFLAGS Fortran 77 compiler flags
1687
XMKMF Path to xmkmf, Makefile generator for X Window System
1688
PKG_CONFIG path to pkg-config utility
1690
C compiler flags for LIBYAZ, overriding pkg-config
1691
LIBYAZ_LIBS linker flags for LIBYAZ, overriding pkg-config
1693
C compiler flags for LIBXML, overriding pkg-config
1694
LIBXML_LIBS linker flags for LIBXML, overriding pkg-config
1696
C compiler flags for LIBXSLT, overriding pkg-config
1698
linker flags for LIBXSLT, overriding pkg-config
1700
Use these variables to override the choices made by `configure' or to help
1701
it to find libraries and programs with nonstandard names/locations.
1707
if test "$ac_init_help" = "recursive"; then
1708
# If there are subdirs, report their specific --help.
1709
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1710
test -d "$ac_dir" || continue
1714
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1716
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1717
# A ".." for each directory in $ac_dir_suffix.
1718
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1719
case $ac_top_builddir_sub in
1720
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1721
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1724
ac_abs_top_builddir=$ac_pwd
1725
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1726
# for backward compatibility:
1727
ac_top_builddir=$ac_top_build_prefix
1730
.) # We are building in place.
1732
ac_top_srcdir=$ac_top_builddir_sub
1733
ac_abs_top_srcdir=$ac_pwd ;;
1734
[\\/]* | ?:[\\/]* ) # Absolute name.
1735
ac_srcdir=$srcdir$ac_dir_suffix;
1736
ac_top_srcdir=$srcdir
1737
ac_abs_top_srcdir=$srcdir ;;
1739
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1740
ac_top_srcdir=$ac_top_build_prefix$srcdir
1741
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1743
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1745
cd "$ac_dir" || { ac_status=$?; continue; }
1746
# Check for guested configure.
1747
if test -f "$ac_srcdir/configure.gnu"; then
1749
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1750
elif test -f "$ac_srcdir/configure"; then
1752
$SHELL "$ac_srcdir/configure" --help=recursive
1754
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1756
cd "$ac_pwd" || { ac_status=$?; break; }
1760
test -n "$ac_init_help" && exit $ac_status
1761
if $ac_init_version; then
1764
generated by GNU Autoconf 2.61
1766
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1767
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1768
This configure script is free software; the Free Software Foundation
1769
gives unlimited permission to copy, distribute and modify it.
1773
cat >config.log <<_ACEOF
1774
This file contains any messages produced by compilers while
1775
running configure, to aid debugging if configure makes a mistake.
1777
It was created by $as_me, which was
1778
generated by GNU Autoconf 2.61. Invocation command line was
1790
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1791
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1792
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1793
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1794
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1796
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1797
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1799
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1800
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1801
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1802
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1803
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1804
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1805
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1809
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1813
test -z "$as_dir" && as_dir=.
1814
echo "PATH: $as_dir"
1830
# Keep a trace of the command line.
1831
# Strip out --no-create and --no-recursion so they do not pile up.
1832
# Strip out --silent because we don't want to record it for future runs.
1833
# Also quote any args containing shell meta-characters.
1834
# Make two passes to allow for proper duplicate-argument suppression.
1838
ac_must_keep_next=false
1844
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1845
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1846
| -silent | --silent | --silen | --sile | --sil)
1849
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1852
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1854
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1855
if test $ac_must_keep_next = true; then
1856
ac_must_keep_next=false # Got value, back to normal.
1859
*=* | --config-cache | -C | -disable-* | --disable-* \
1860
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1861
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1862
| -with-* | --with-* | -without-* | --without-* | --x)
1863
case "$ac_configure_args0 " in
1864
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1867
-* ) ac_must_keep_next=true ;;
1870
ac_configure_args="$ac_configure_args '$ac_arg'"
1875
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1876
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1878
# When interrupted or exit'd, cleanup temporary files, and complete
1879
# config.log. We remove comments because anyway the quotes in there
1880
# would cause problems or look ugly.
1881
# WARNING: Use '\'' to represent an apostrophe within the trap.
1882
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1883
trap 'exit_status=$?
1884
# Save into config.log some information that might help in debugging.
1889
## ---------------- ##
1890
## Cache variables. ##
1891
## ---------------- ##
1894
# The following way of writing the cache mishandles newlines in values,
1896
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1897
eval ac_val=\$$ac_var
1901
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1902
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1905
_ | IFS | as_nl) ;; #(
1906
*) $as_unset $ac_var ;;
1911
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1912
*${as_nl}ac_space=\ *)
1914
"s/'\''/'\''\\\\'\'''\''/g;
1915
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1918
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1926
## ----------------- ##
1927
## Output variables. ##
1928
## ----------------- ##
1931
for ac_var in $ac_subst_vars
1933
eval ac_val=\$$ac_var
1935
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1937
echo "$ac_var='\''$ac_val'\''"
1941
if test -n "$ac_subst_files"; then
1943
## ------------------- ##
1944
## File substitutions. ##
1945
## ------------------- ##
1948
for ac_var in $ac_subst_files
1950
eval ac_val=\$$ac_var
1952
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1954
echo "$ac_var='\''$ac_val'\''"
1959
if test -s confdefs.h; then
1969
test "$ac_signal" != 0 &&
1970
echo "$as_me: caught signal $ac_signal"
1971
echo "$as_me: exit $exit_status"
1973
rm -f core *.core core.conftest.* &&
1974
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1977
for ac_signal in 1 2 13 15; do
1978
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1982
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1983
rm -f -r conftest* confdefs.h
1985
# Predefined preprocessor variables.
1987
cat >>confdefs.h <<_ACEOF
1988
#define PACKAGE_NAME "$PACKAGE_NAME"
1992
cat >>confdefs.h <<_ACEOF
1993
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1997
cat >>confdefs.h <<_ACEOF
1998
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2002
cat >>confdefs.h <<_ACEOF
2003
#define PACKAGE_STRING "$PACKAGE_STRING"
2007
cat >>confdefs.h <<_ACEOF
2008
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2012
# Let the site file select an alternate cache file if it wants to.
2013
# Prefer explicitly selected file to automatically selected ones.
2014
if test -n "$CONFIG_SITE"; then
2015
set x "$CONFIG_SITE"
2016
elif test "x$prefix" != xNONE; then
2017
set x "$prefix/share/config.site" "$prefix/etc/config.site"
2019
set x "$ac_default_prefix/share/config.site" \
2020
"$ac_default_prefix/etc/config.site"
2025
if test -r "$ac_site_file"; then
2026
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2027
echo "$as_me: loading site script $ac_site_file" >&6;}
2028
sed 's/^/| /' "$ac_site_file" >&5
2033
if test -r "$cache_file"; then
2034
# Some versions of bash will fail to source /dev/null (special
2035
# files actually), so we avoid doing that.
2036
if test -f "$cache_file"; then
2037
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
2038
echo "$as_me: loading cache $cache_file" >&6;}
2040
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2041
*) . "./$cache_file";;
2045
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
2046
echo "$as_me: creating cache $cache_file" >&6;}
2050
# Check that the precious variables saved in the cache have kept the same
2052
ac_cache_corrupted=false
2053
for ac_var in $ac_precious_vars; do
2054
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2055
eval ac_new_set=\$ac_env_${ac_var}_set
2056
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2057
eval ac_new_val=\$ac_env_${ac_var}_value
2058
case $ac_old_set,$ac_new_set in
2060
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2061
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2062
ac_cache_corrupted=: ;;
2064
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2065
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2066
ac_cache_corrupted=: ;;
2069
if test "x$ac_old_val" != "x$ac_new_val"; then
2070
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2071
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2072
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
2073
echo "$as_me: former value: $ac_old_val" >&2;}
2074
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
2075
echo "$as_me: current value: $ac_new_val" >&2;}
2076
ac_cache_corrupted=:
2079
# Pass precious variables to config.status.
2080
if test "$ac_new_set" = set; then
2082
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2083
*) ac_arg=$ac_var=$ac_new_val ;;
2085
case " $ac_configure_args " in
2086
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2087
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2091
if $ac_cache_corrupted; then
2092
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2093
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2094
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2095
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2096
{ (exit 1); exit 1; }; }
2116
ac_cpp='$CPP $CPPFLAGS'
2117
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2118
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2119
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2123
for ac_dir in admin "$srcdir"/admin; do
2124
if test -f "$ac_dir/install-sh"; then
2126
ac_install_sh="$ac_aux_dir/install-sh -c"
2128
elif test -f "$ac_dir/install.sh"; then
2130
ac_install_sh="$ac_aux_dir/install.sh -c"
2132
elif test -f "$ac_dir/shtool"; then
2134
ac_install_sh="$ac_aux_dir/shtool install -c"
2138
if test -z "$ac_aux_dir"; then
2139
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in admin \"$srcdir\"/admin" >&5
2140
echo "$as_me: error: cannot find install-sh or install.sh in admin \"$srcdir\"/admin" >&2;}
2141
{ (exit 1); exit 1; }; }
2144
# These three variables are undocumented and unsupported,
2145
# and are intended to be withdrawn in a future Autoconf release.
2146
# They can cause serious problems if a builder's source tree is in a directory
2147
# whose full name contains unusual characters.
2148
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2149
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2150
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2156
# Make sure we can run config.sub.
2157
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2158
{ { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2159
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2160
{ (exit 1); exit 1; }; }
2162
{ echo "$as_me:$LINENO: checking build system type" >&5
2163
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2164
if test "${ac_cv_build+set}" = set; then
2165
echo $ECHO_N "(cached) $ECHO_C" >&6
2167
ac_build_alias=$build_alias
2168
test "x$ac_build_alias" = x &&
2169
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2170
test "x$ac_build_alias" = x &&
2171
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2172
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2173
{ (exit 1); exit 1; }; }
2174
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2175
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2176
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2177
{ (exit 1); exit 1; }; }
2180
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2181
echo "${ECHO_T}$ac_cv_build" >&6; }
2182
case $ac_cv_build in
2184
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2185
echo "$as_me: error: invalid value of canonical build" >&2;}
2186
{ (exit 1); exit 1; }; };;
2189
ac_save_IFS=$IFS; IFS='-'
2195
# Remember, the first character of IFS is used to create $*,
2196
# except with old shells:
2199
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2202
{ echo "$as_me:$LINENO: checking host system type" >&5
2203
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2204
if test "${ac_cv_host+set}" = set; then
2205
echo $ECHO_N "(cached) $ECHO_C" >&6
2207
if test "x$host_alias" = x; then
2208
ac_cv_host=$ac_cv_build
2210
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2211
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2212
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2213
{ (exit 1); exit 1; }; }
2217
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2218
echo "${ECHO_T}$ac_cv_host" >&6; }
2221
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2222
echo "$as_me: error: invalid value of canonical host" >&2;}
2223
{ (exit 1); exit 1; }; };;
2226
ac_save_IFS=$IFS; IFS='-'
2232
# Remember, the first character of IFS is used to create $*,
2233
# except with old shells:
2236
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2239
{ echo "$as_me:$LINENO: checking target system type" >&5
2240
echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2241
if test "${ac_cv_target+set}" = set; then
2242
echo $ECHO_N "(cached) $ECHO_C" >&6
2244
if test "x$target_alias" = x; then
2245
ac_cv_target=$ac_cv_host
2247
ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2248
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2249
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2250
{ (exit 1); exit 1; }; }
2254
{ echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2255
echo "${ECHO_T}$ac_cv_target" >&6; }
2256
case $ac_cv_target in
2258
*) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2259
echo "$as_me: error: invalid value of canonical target" >&2;}
2260
{ (exit 1); exit 1; }; };;
2262
target=$ac_cv_target
2263
ac_save_IFS=$IFS; IFS='-'
2269
# Remember, the first character of IFS is used to create $*,
2270
# except with old shells:
2273
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2276
# The aliases save the names the user supplied, while $host etc.
2277
# will get canonicalized.
2278
test -n "$target_alias" &&
2279
test "$program_prefix$program_suffix$program_transform_name" = \
2281
program_prefix=${target_alias}-
2282
test "$program_prefix" != NONE &&
2283
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2284
# Use a double $ so make ignores it.
2285
test "$program_suffix" != NONE &&
2286
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2287
# Double any \ or $. echo might interpret backslashes.
2288
# By default was `s,x,x', remove it if useless.
2289
cat <<\_ACEOF >conftest.sed
2290
s/[\\$]/&&/g;s/;s,x,x,$//
2292
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2296
am__api_version="1.9"
2299
test -n "$INSTALL" && kde_save_INSTALL_given=$INSTALL
2300
test -n "$INSTALL_PROGRAM" && kde_save_INSTALL_PROGRAM_given=$INSTALL_PROGRAM
2301
test -n "$INSTALL_SCRIPT" && kde_save_INSTALL_SCRIPT_given=$INSTALL_SCRIPT
2302
# Find a good install program. We prefer a C program (faster),
2303
# so one script is as good as another. But avoid the broken or
2304
# incompatible versions:
2305
# SysV /etc/install, /usr/sbin/install
2306
# SunOS /usr/etc/install
2307
# IRIX /sbin/install
2309
# AmigaOS /C/install, which installs bootblocks on floppy discs
2310
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2311
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2312
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2313
# OS/2's system install, which has a completely different semantic
2314
# ./install, which can be erroneously created by make from ./install.sh.
2315
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2316
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2317
if test -z "$INSTALL"; then
2318
if test "${ac_cv_path_install+set}" = set; then
2319
echo $ECHO_N "(cached) $ECHO_C" >&6
2321
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325
test -z "$as_dir" && as_dir=.
2326
# Account for people who put trailing slashes in PATH elements.
2328
./ | .// | /cC/* | \
2329
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2330
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2333
# OSF1 and SCO ODT 3.0 have their own names for install.
2334
# Don't use installbsd from OSF since it installs stuff as root
2336
for ac_prog in ginstall scoinst install; do
2337
for ac_exec_ext in '' $ac_executable_extensions; do
2338
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2339
if test $ac_prog = install &&
2340
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2341
# AIX install. It has an incompatible calling convention.
2343
elif test $ac_prog = install &&
2344
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2345
# program-specific install script used by HP pwplus--don't use.
2348
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2361
if test "${ac_cv_path_install+set}" = set; then
2362
INSTALL=$ac_cv_path_install
2364
# As a last resort, use the slow shell script. Don't cache a
2365
# value for INSTALL within a source directory, because that will
2366
# break other packages using the cache if that directory is
2367
# removed, or if the value is a relative name.
2368
INSTALL=$ac_install_sh
2371
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2372
echo "${ECHO_T}$INSTALL" >&6; }
2374
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2375
# It thinks the first close brace ends the variable substitution.
2376
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2378
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2380
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2383
if test -z "$kde_save_INSTALL_given" ; then
2384
# OK, user hasn't given any INSTALL, autoconf found one for us
2385
# now we test, if it supports the -p flag
2386
{ echo "$as_me:$LINENO: checking for -p flag to install" >&5
2387
echo $ECHO_N "checking for -p flag to install... $ECHO_C" >&6; }
2388
rm -f confinst.$$.* > /dev/null 2>&1
2389
echo "Testtest" > confinst.$$.orig
2391
if ${INSTALL} -p confinst.$$.orig confinst.$$.new > /dev/null 2>&1 ; then
2392
if test -f confinst.$$.new ; then
2393
# OK, -p seems to do no harm to install
2394
INSTALL="${INSTALL} -p"
2399
{ echo "$as_me:$LINENO: result: $ac_res" >&5
2400
echo "${ECHO_T}$ac_res" >&6; }
2403
if test -z "$kde_save_INSTALL_PROGRAM_given" ; then
2404
INSTALL_PROGRAM='${INSTALL} $(INSTALL_STRIP_FLAG)'
2406
if test -z "$kde_save_INSTALL_SCRIPT_given" ; then
2407
INSTALL_SCRIPT='${INSTALL}'
2410
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2411
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2414
echo timestamp > conftest.file
2415
# Do `set' in a subshell so we don't clobber the current shell's
2416
# arguments. Must try -L first in case configure is actually a
2417
# symlink; some systems play weird games with the mod time of symlinks
2418
# (eg FreeBSD returns the mod time of the symlink's containing
2421
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2422
if test "$*" = "X"; then
2424
set X `ls -t $srcdir/configure conftest.file`
2427
if test "$*" != "X $srcdir/configure conftest.file" \
2428
&& test "$*" != "X conftest.file $srcdir/configure"; then
2430
# If neither matched, then we have a broken ls. This can happen
2431
# if, for instance, CONFIG_SHELL is bash and it inherits a
2432
# broken ls alias from the environment. This has actually
2433
# happened. Such a system could not be considered "sane".
2434
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2435
alias in your environment" >&5
2436
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2437
alias in your environment" >&2;}
2438
{ (exit 1); exit 1; }; }
2441
test "$2" = conftest.file
2447
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2448
Check your system clock" >&5
2449
echo "$as_me: error: newly created file is older than distributed files!
2450
Check your system clock" >&2;}
2451
{ (exit 1); exit 1; }; }
2453
{ echo "$as_me:$LINENO: result: yes" >&5
2454
echo "${ECHO_T}yes" >&6; }
2455
# expand $ac_aux_dir to an absolute path
2456
am_aux_dir=`cd $ac_aux_dir && pwd`
2458
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2459
# Use eval to expand $SHELL
2460
if eval "$MISSING --run true"; then
2461
am_missing_run="$MISSING --run "
2464
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2465
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2468
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2469
# We used to keeping the `.' as first argument, in order to
2470
# allow $(mkdir_p) to be used without argument. As in
2471
# $(mkdir_p) $(somedir)
2472
# where $(somedir) is conditionally defined. However this is wrong
2474
# 1. if the package is installed by a user who cannot write `.'
2475
# make install will fail,
2476
# 2. the above comment should most certainly read
2477
# $(mkdir_p) $(DESTDIR)$(somedir)
2478
# so it does not work when $(somedir) is undefined and
2479
# $(DESTDIR) is not.
2480
# To support the latter case, we have to write
2481
# test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2482
# so the `.' trick is pointless.
2483
mkdir_p='mkdir -p --'
2485
# On NextStep and OpenStep, the `mkdir' command does not
2486
# recognize any option. It will interpret all options as
2487
# directories to create, and then abort because `.' already
2489
for d in ./-p ./--version;
2491
test -d $d && rmdir $d
2493
# $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2494
if test -f "$ac_aux_dir/mkinstalldirs"; then
2495
mkdir_p='$(mkinstalldirs)'
2497
mkdir_p='$(install_sh) -d'
2501
for ac_prog in gawk mawk nawk awk
2503
# Extract the first word of "$ac_prog", so it can be a program name with args.
2504
set dummy $ac_prog; ac_word=$2
2505
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2506
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2507
if test "${ac_cv_prog_AWK+set}" = set; then
2508
echo $ECHO_N "(cached) $ECHO_C" >&6
2510
if test -n "$AWK"; then
2511
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2513
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2517
test -z "$as_dir" && as_dir=.
2518
for ac_exec_ext in '' $ac_executable_extensions; do
2519
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2520
ac_cv_prog_AWK="$ac_prog"
2521
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2531
if test -n "$AWK"; then
2532
{ echo "$as_me:$LINENO: result: $AWK" >&5
2533
echo "${ECHO_T}$AWK" >&6; }
2535
{ echo "$as_me:$LINENO: result: no" >&5
2536
echo "${ECHO_T}no" >&6; }
2540
test -n "$AWK" && break
2543
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2544
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2545
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2546
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2547
echo $ECHO_N "(cached) $ECHO_C" >&6
2549
cat >conftest.make <<\_ACEOF
2552
@echo '@@@%%%=$(MAKE)=@@@%%%'
2554
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2555
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2557
eval ac_cv_prog_make_${ac_make}_set=yes;;
2559
eval ac_cv_prog_make_${ac_make}_set=no;;
2563
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2564
{ echo "$as_me:$LINENO: result: yes" >&5
2565
echo "${ECHO_T}yes" >&6; }
2568
{ echo "$as_me:$LINENO: result: no" >&5
2569
echo "${ECHO_T}no" >&6; }
2570
SET_MAKE="MAKE=${MAKE-make}"
2573
rm -rf .tst 2>/dev/null
2574
mkdir .tst 2>/dev/null
2575
if test -d .tst; then
2580
rmdir .tst 2>/dev/null
2582
# test to see if srcdir already configured
2583
if test "`cd $srcdir && pwd`" != "`pwd`" &&
2584
test -f $srcdir/config.status; then
2585
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2586
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2587
{ (exit 1); exit 1; }; }
2590
# test whether we have cygpath
2591
if test -z "$CYGPATH_W"; then
2592
if (cygpath --version) >/dev/null 2>/dev/null; then
2593
CYGPATH_W='cygpath -w'
2600
# Define the identity of the package.
2605
cat >>confdefs.h <<_ACEOF
2606
#define PACKAGE "$PACKAGE"
2610
cat >>confdefs.h <<_ACEOF
2611
#define VERSION "$VERSION"
2614
# Some tools Automake needs.
2616
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2619
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2622
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2625
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2628
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2630
install_sh=${install_sh-"$am_aux_dir/install-sh"}
2632
# Installed binaries are usually stripped using `strip' when the user
2633
# run `make install-strip'. However `strip' might not be the right
2634
# tool to use in cross-compilation environments, therefore Automake
2635
# will honor the `STRIP' environment variable to overrule this program.
2636
if test "$cross_compiling" != no; then
2637
if test -n "$ac_tool_prefix"; then
2638
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2639
set dummy ${ac_tool_prefix}strip; ac_word=$2
2640
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2641
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2642
if test "${ac_cv_prog_STRIP+set}" = set; then
2643
echo $ECHO_N "(cached) $ECHO_C" >&6
2645
if test -n "$STRIP"; then
2646
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2648
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652
test -z "$as_dir" && as_dir=.
2653
for ac_exec_ext in '' $ac_executable_extensions; do
2654
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2655
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2656
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2665
STRIP=$ac_cv_prog_STRIP
2666
if test -n "$STRIP"; then
2667
{ echo "$as_me:$LINENO: result: $STRIP" >&5
2668
echo "${ECHO_T}$STRIP" >&6; }
2670
{ echo "$as_me:$LINENO: result: no" >&5
2671
echo "${ECHO_T}no" >&6; }
2676
if test -z "$ac_cv_prog_STRIP"; then
2678
# Extract the first word of "strip", so it can be a program name with args.
2679
set dummy strip; ac_word=$2
2680
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2681
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2682
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2683
echo $ECHO_N "(cached) $ECHO_C" >&6
2685
if test -n "$ac_ct_STRIP"; then
2686
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2688
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692
test -z "$as_dir" && as_dir=.
2693
for ac_exec_ext in '' $ac_executable_extensions; do
2694
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2695
ac_cv_prog_ac_ct_STRIP="strip"
2696
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2705
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2706
if test -n "$ac_ct_STRIP"; then
2707
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2708
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2710
{ echo "$as_me:$LINENO: result: no" >&5
2711
echo "${ECHO_T}no" >&6; }
2714
if test "x$ac_ct_STRIP" = x; then
2717
case $cross_compiling:$ac_tool_warned in
2719
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2720
whose name does not start with the host triplet. If you think this
2721
configuration is useful to you, please write to autoconf@gnu.org." >&5
2722
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2723
whose name does not start with the host triplet. If you think this
2724
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2725
ac_tool_warned=yes ;;
2730
STRIP="$ac_cv_prog_STRIP"
2734
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2736
# We need awk for the "check" target. The system "awk" is bad on
2738
# Always define AMTAR for backward compatibility.
2740
AMTAR=${AMTAR-"${am_missing_run}tar"}
2742
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2753
kde_default_bindirs="/usr/bin /usr/local/bin /opt/local/bin /usr/X11R6/bin /opt/kde/bin /opt/kde3/bin /usr/kde/bin /usr/local/kde/bin"
2754
test -n "$KDEDIR" && kde_default_bindirs="$KDEDIR/bin $kde_default_bindirs"
2755
if test -n "$KDEDIRS"; then
2758
for dir in $KDEDIRS; do
2759
kde_default_bindirs="$dir/bin $kde_default_bindirs "
2764
if test "x$prefix" = "xNONE"; then
2766
{ echo "$as_me:$LINENO: checking for kde-config" >&5
2767
echo $ECHO_N "checking for kde-config... $ECHO_C" >&6; }
2768
if test -n "$KDECONFIG"; then
2769
kde_cv_path="$KDECONFIG";
2771
kde_cache=`echo kde-config | sed 'y%./+-%__p_%'`
2773
if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
2774
echo $ECHO_N "(cached) $ECHO_C" >&6
2781
for dir in $PATH; do
2784
if test -z "prepend"; then dirs="$kde_default_bindirs $dirs"
2785
else dirs="$dirs $kde_default_bindirs"
2789
for dir in $dirs; do
2790
if test -x "$dir/kde-config"; then
2793
evalstr="$dir/kde-config 2>&1 "
2794
if eval $evalstr; then
2795
kde_cv_path="$dir/kde-config"
2799
kde_cv_path="$dir/kde-config"
2805
eval "kde_cv_path_$kde_cache=$kde_cv_path"
2811
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
2815
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
2816
{ echo "$as_me:$LINENO: result: not found" >&5
2817
echo "${ECHO_T}not found" >&6; }
2819
{ { echo "$as_me:$LINENO: error: The important program kde-config was not found!
2820
Please check whether you installed KDE correctly.
2822
echo "$as_me: error: The important program kde-config was not found!
2823
Please check whether you installed KDE correctly.
2825
{ (exit 1); exit 1; }; }
2828
{ echo "$as_me:$LINENO: result: $kde_cv_path" >&5
2829
echo "${ECHO_T}$kde_cv_path" >&6; }
2830
KDECONFIG=$kde_cv_path
2835
kde_save_PATH="$PATH"
2836
PATH="$exec_prefix/bin:$prefix/bin:$PATH"
2838
{ echo "$as_me:$LINENO: checking for kde-config" >&5
2839
echo $ECHO_N "checking for kde-config... $ECHO_C" >&6; }
2840
if test -n "$KDECONFIG"; then
2841
kde_cv_path="$KDECONFIG";
2843
kde_cache=`echo kde-config | sed 'y%./+-%__p_%'`
2845
if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
2846
echo $ECHO_N "(cached) $ECHO_C" >&6
2853
for dir in $PATH; do
2856
if test -z "prepend"; then dirs="$kde_default_bindirs $dirs"
2857
else dirs="$dirs $kde_default_bindirs"
2861
for dir in $dirs; do
2862
if test -x "$dir/kde-config"; then
2865
evalstr="$dir/kde-config 2>&1 "
2866
if eval $evalstr; then
2867
kde_cv_path="$dir/kde-config"
2871
kde_cv_path="$dir/kde-config"
2877
eval "kde_cv_path_$kde_cache=$kde_cv_path"
2883
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
2887
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
2888
{ echo "$as_me:$LINENO: result: not found" >&5
2889
echo "${ECHO_T}not found" >&6; }
2891
{ { echo "$as_me:$LINENO: error: The important program kde-config was not found!
2892
Please check whether you installed KDE correctly.
2894
echo "$as_me: error: The important program kde-config was not found!
2895
Please check whether you installed KDE correctly.
2897
{ (exit 1); exit 1; }; }
2900
{ echo "$as_me:$LINENO: result: $kde_cv_path" >&5
2901
echo "${ECHO_T}$kde_cv_path" >&6; }
2902
KDECONFIG=$kde_cv_path
2906
PATH="$kde_save_PATH"
2909
kde_libs_prefix=`$KDECONFIG --prefix`
2910
if test -z "$kde_libs_prefix" || test ! -x "$kde_libs_prefix"; then
2911
{ { echo "$as_me:$LINENO: error: $KDECONFIG --prefix outputed the non existant prefix '$kde_libs_prefix' for kdelibs.
2912
This means it has been moved since you installed it.
2913
This won't work. Please recompile kdelibs for the new prefix.
2915
echo "$as_me: error: $KDECONFIG --prefix outputed the non existant prefix '$kde_libs_prefix' for kdelibs.
2916
This means it has been moved since you installed it.
2917
This won't work. Please recompile kdelibs for the new prefix.
2919
{ (exit 1); exit 1; }; }
2921
kde_libs_htmldir=`$KDECONFIG --install html --expandvars`
2923
{ echo "$as_me:$LINENO: checking where to install" >&5
2924
echo $ECHO_N "checking where to install... $ECHO_C" >&6; }
2925
if test "x$prefix" = "xNONE"; then
2926
prefix=$kde_libs_prefix
2927
{ echo "$as_me:$LINENO: result: $prefix (as returned by kde-config)" >&5
2928
echo "${ECHO_T}$prefix (as returned by kde-config)" >&6; }
2930
given_prefix=$prefix
2931
{ echo "$as_me:$LINENO: result: $prefix (as requested)" >&5
2932
echo "${ECHO_T}$prefix (as requested)" >&6; }
2935
# And delete superfluous '/' to make compares easier
2936
prefix=`echo "$prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
2937
exec_prefix=`echo "$exec_prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
2938
given_prefix=`echo "$given_prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
2945
# Check whether --enable-fast-perl was given.
2946
if test "${enable_fast_perl+set}" = set; then
2947
enableval=$enable_fast_perl; with_fast_perl=$enableval
2955
if test -f $srcdir/configure.files ; then
2956
val=`sed -e 's%^%\$(top_srcdir)/%' $srcdir/configure.files`
2959
if test -n "$val" ; then
2961
CONF_FILES="$CONF_FILES $i"
2968
ac_config_headers="$ac_config_headers config.h"
2970
DEPDIR="${am__leading_dot}deps"
2972
ac_config_commands="$ac_config_commands depfiles"
2975
am_make=${MAKE-make}
2976
cat > confinc << 'END'
2981
# If we don't find an include directive, just comment out the code.
2982
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2983
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2987
# First try GNU make style include.
2988
echo "include confinc" > confmf
2989
# We grep out `Entering directory' and `Leaving directory'
2990
# messages which can occur if `w' ends up in MAKEFLAGS.
2991
# In particular we don't look at `^make:' because GNU make might
2992
# be invoked under some other name (usually "gmake"), in which
2993
# case it prints its new name instead of `make'.
2994
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2999
# Now try BSD make style include.
3000
if test "$am__include" = "#"; then
3001
echo '.include "confinc"' > confmf
3002
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3003
am__include=.include
3010
{ echo "$as_me:$LINENO: result: $_am_result" >&5
3011
echo "${ECHO_T}$_am_result" >&6; }
3012
rm -f confinc confmf
3014
# Check whether --enable-dependency-tracking was given.
3015
if test "${enable_dependency_tracking+set}" = set; then
3016
enableval=$enable_dependency_tracking;
3019
if test "x$enable_dependency_tracking" != xno; then
3020
am_depcomp="$ac_aux_dir/depcomp"
3025
if test "x$enable_dependency_tracking" != xno; then
3038
# Check whether --enable-debug was given.
3039
if test "${enable_debug+set}" = set; then
3040
enableval=$enable_debug;
3043
kde_use_debug_code="yes"
3044
kde_use_debug_define=no
3047
kde_use_debug_code="full"
3048
kde_use_debug_define=no
3051
kde_use_debug_code="no"
3052
kde_use_debug_define=yes
3057
kde_use_debug_code="no"
3058
kde_use_debug_define=no
3063
# Check whether --enable-dummyoption was given.
3064
if test "${enable_dummyoption+set}" = set; then
3065
enableval=$enable_dummyoption;
3069
# Check whether --enable-strict was given.
3070
if test "${enable_strict+set}" = set; then
3071
enableval=$enable_strict;
3072
if test $enableval = "no"; then
3073
kde_use_strict_options="no"
3075
kde_use_strict_options="yes"
3079
kde_use_strict_options="no"
3083
# Check whether --enable-warnings was given.
3084
if test "${enable_warnings+set}" = set; then
3085
enableval=$enable_warnings;
3086
if test $enableval = "no"; then
3087
kde_use_warnings="no"
3089
kde_use_warnings="yes"
3093
kde_use_warnings="yes"
3097
if test "$kde_use_debug_code" != "no"; then
3098
kde_use_warnings=yes
3101
# Check whether --enable-profile was given.
3102
if test "${enable_profile+set}" = set; then
3103
enableval=$enable_profile; kde_use_profiling=$enableval
3105
kde_use_profiling="no"
3113
ac_cpp='$CPP $CPPFLAGS'
3114
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3115
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3116
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3117
if test -n "$ac_tool_prefix"; then
3118
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3119
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3120
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3121
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3122
if test "${ac_cv_prog_CC+set}" = set; then
3123
echo $ECHO_N "(cached) $ECHO_C" >&6
3125
if test -n "$CC"; then
3126
ac_cv_prog_CC="$CC" # Let the user override the test.
3128
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3132
test -z "$as_dir" && as_dir=.
3133
for ac_exec_ext in '' $ac_executable_extensions; do
3134
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3135
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3136
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3146
if test -n "$CC"; then
3147
{ echo "$as_me:$LINENO: result: $CC" >&5
3148
echo "${ECHO_T}$CC" >&6; }
3150
{ echo "$as_me:$LINENO: result: no" >&5
3151
echo "${ECHO_T}no" >&6; }
3156
if test -z "$ac_cv_prog_CC"; then
3158
# Extract the first word of "gcc", so it can be a program name with args.
3159
set dummy gcc; ac_word=$2
3160
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3161
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3162
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3163
echo $ECHO_N "(cached) $ECHO_C" >&6
3165
if test -n "$ac_ct_CC"; then
3166
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3168
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172
test -z "$as_dir" && as_dir=.
3173
for ac_exec_ext in '' $ac_executable_extensions; do
3174
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3175
ac_cv_prog_ac_ct_CC="gcc"
3176
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3185
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3186
if test -n "$ac_ct_CC"; then
3187
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3188
echo "${ECHO_T}$ac_ct_CC" >&6; }
3190
{ echo "$as_me:$LINENO: result: no" >&5
3191
echo "${ECHO_T}no" >&6; }
3194
if test "x$ac_ct_CC" = x; then
3197
case $cross_compiling:$ac_tool_warned in
3199
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3200
whose name does not start with the host triplet. If you think this
3201
configuration is useful to you, please write to autoconf@gnu.org." >&5
3202
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3203
whose name does not start with the host triplet. If you think this
3204
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3205
ac_tool_warned=yes ;;
3213
if test -z "$CC"; then
3214
if test -n "$ac_tool_prefix"; then
3215
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3216
set dummy ${ac_tool_prefix}cc; ac_word=$2
3217
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3218
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3219
if test "${ac_cv_prog_CC+set}" = set; then
3220
echo $ECHO_N "(cached) $ECHO_C" >&6
3222
if test -n "$CC"; then
3223
ac_cv_prog_CC="$CC" # Let the user override the test.
3225
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229
test -z "$as_dir" && as_dir=.
3230
for ac_exec_ext in '' $ac_executable_extensions; do
3231
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3232
ac_cv_prog_CC="${ac_tool_prefix}cc"
3233
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3243
if test -n "$CC"; then
3244
{ echo "$as_me:$LINENO: result: $CC" >&5
3245
echo "${ECHO_T}$CC" >&6; }
3247
{ echo "$as_me:$LINENO: result: no" >&5
3248
echo "${ECHO_T}no" >&6; }
3254
if test -z "$CC"; then
3255
# Extract the first word of "cc", so it can be a program name with args.
3256
set dummy cc; ac_word=$2
3257
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3258
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3259
if test "${ac_cv_prog_CC+set}" = set; then
3260
echo $ECHO_N "(cached) $ECHO_C" >&6
3262
if test -n "$CC"; then
3263
ac_cv_prog_CC="$CC" # Let the user override the test.
3266
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270
test -z "$as_dir" && as_dir=.
3271
for ac_exec_ext in '' $ac_executable_extensions; do
3272
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3273
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3274
ac_prog_rejected=yes
3278
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3285
if test $ac_prog_rejected = yes; then
3286
# We found a bogon in the path, so make sure we never use it.
3287
set dummy $ac_cv_prog_CC
3289
if test $# != 0; then
3290
# We chose a different compiler from the bogus one.
3291
# However, it has the same basename, so the bogon will be chosen
3292
# first if we set CC to just the basename; use the full file name.
3294
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3300
if test -n "$CC"; then
3301
{ echo "$as_me:$LINENO: result: $CC" >&5
3302
echo "${ECHO_T}$CC" >&6; }
3304
{ echo "$as_me:$LINENO: result: no" >&5
3305
echo "${ECHO_T}no" >&6; }
3310
if test -z "$CC"; then
3311
if test -n "$ac_tool_prefix"; then
3312
for ac_prog in cl.exe
3314
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3315
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3316
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3317
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3318
if test "${ac_cv_prog_CC+set}" = set; then
3319
echo $ECHO_N "(cached) $ECHO_C" >&6
3321
if test -n "$CC"; then
3322
ac_cv_prog_CC="$CC" # Let the user override the test.
3324
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328
test -z "$as_dir" && as_dir=.
3329
for ac_exec_ext in '' $ac_executable_extensions; do
3330
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3331
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3332
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3342
if test -n "$CC"; then
3343
{ echo "$as_me:$LINENO: result: $CC" >&5
3344
echo "${ECHO_T}$CC" >&6; }
3346
{ echo "$as_me:$LINENO: result: no" >&5
3347
echo "${ECHO_T}no" >&6; }
3351
test -n "$CC" && break
3354
if test -z "$CC"; then
3356
for ac_prog in cl.exe
3358
# Extract the first word of "$ac_prog", so it can be a program name with args.
3359
set dummy $ac_prog; ac_word=$2
3360
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3361
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3362
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3363
echo $ECHO_N "(cached) $ECHO_C" >&6
3365
if test -n "$ac_ct_CC"; then
3366
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3368
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372
test -z "$as_dir" && as_dir=.
3373
for ac_exec_ext in '' $ac_executable_extensions; do
3374
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3375
ac_cv_prog_ac_ct_CC="$ac_prog"
3376
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3385
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3386
if test -n "$ac_ct_CC"; then
3387
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3388
echo "${ECHO_T}$ac_ct_CC" >&6; }
3390
{ echo "$as_me:$LINENO: result: no" >&5
3391
echo "${ECHO_T}no" >&6; }
3395
test -n "$ac_ct_CC" && break
3398
if test "x$ac_ct_CC" = x; then
3401
case $cross_compiling:$ac_tool_warned in
3403
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3404
whose name does not start with the host triplet. If you think this
3405
configuration is useful to you, please write to autoconf@gnu.org." >&5
3406
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3407
whose name does not start with the host triplet. If you think this
3408
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3409
ac_tool_warned=yes ;;
3418
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3419
See \`config.log' for more details." >&5
3420
echo "$as_me: error: no acceptable C compiler found in \$PATH
3421
See \`config.log' for more details." >&2;}
3422
{ (exit 1); exit 1; }; }
3424
# Provide some information about the compiler.
3425
echo "$as_me:$LINENO: checking for C compiler version" >&5
3426
ac_compiler=`set X $ac_compile; echo $2`
3427
{ (ac_try="$ac_compiler --version >&5"
3429
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430
*) ac_try_echo=$ac_try;;
3432
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433
(eval "$ac_compiler --version >&5") 2>&5
3435
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436
(exit $ac_status); }
3437
{ (ac_try="$ac_compiler -v >&5"
3439
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3440
*) ac_try_echo=$ac_try;;
3442
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3443
(eval "$ac_compiler -v >&5") 2>&5
3445
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446
(exit $ac_status); }
3447
{ (ac_try="$ac_compiler -V >&5"
3449
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450
*) ac_try_echo=$ac_try;;
3452
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3453
(eval "$ac_compiler -V >&5") 2>&5
3455
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456
(exit $ac_status); }
3458
cat >conftest.$ac_ext <<_ACEOF
3461
cat confdefs.h >>conftest.$ac_ext
3462
cat >>conftest.$ac_ext <<_ACEOF
3463
/* end confdefs.h. */
3473
ac_clean_files_save=$ac_clean_files
3474
ac_clean_files="$ac_clean_files a.out a.exe b.out"
3475
# Try to create an executable without -o first, disregard a.out.
3476
# It will help us diagnose broken compilers, and finding out an intuition
3478
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3479
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3480
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3482
# List of possible output files, starting from the most likely.
3483
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3484
# only as a last resort. b.out is created by i960 compilers.
3485
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3487
# The IRIX 6 linker writes into existing files which may not be
3488
# executable, retaining their permissions. Remove them first so a
3489
# subsequent execution test works.
3491
for ac_file in $ac_files
3494
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3495
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3500
if { (ac_try="$ac_link_default"
3502
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503
*) ac_try_echo=$ac_try;;
3505
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3506
(eval "$ac_link_default") 2>&5
3508
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509
(exit $ac_status); }; then
3510
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3511
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3512
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3513
# so that the user can short-circuit this test for compilers unknown to
3515
for ac_file in $ac_files ''
3517
test -f "$ac_file" || continue
3519
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3522
# We found the default executable, but exeext='' is most
3526
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3528
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3530
# We set ac_cv_exeext here because the later test for it is not
3531
# safe: cross compilers may not add the suffix if given an `-o'
3532
# argument, so we may need to know it at that point already.
3533
# Even if this section looks crufty: it has the advantage of
3540
test "$ac_cv_exeext" = no && ac_cv_exeext=
3546
{ echo "$as_me:$LINENO: result: $ac_file" >&5
3547
echo "${ECHO_T}$ac_file" >&6; }
3548
if test -z "$ac_file"; then
3549
echo "$as_me: failed program was:" >&5
3550
sed 's/^/| /' conftest.$ac_ext >&5
3552
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3553
See \`config.log' for more details." >&5
3554
echo "$as_me: error: C compiler cannot create executables
3555
See \`config.log' for more details." >&2;}
3556
{ (exit 77); exit 77; }; }
3559
ac_exeext=$ac_cv_exeext
3561
# Check that the compiler produces executables we can run. If not, either
3562
# the compiler is broken, or we cross compile.
3563
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3564
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3565
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3566
# If not cross compiling, check that we can run a simple program.
3567
if test "$cross_compiling" != yes; then
3568
if { ac_try='./$ac_file'
3569
{ (case "(($ac_try" in
3570
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571
*) ac_try_echo=$ac_try;;
3573
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3574
(eval "$ac_try") 2>&5
3576
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577
(exit $ac_status); }; }; then
3580
if test "$cross_compiling" = maybe; then
3583
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3584
If you meant to cross compile, use \`--host'.
3585
See \`config.log' for more details." >&5
3586
echo "$as_me: error: cannot run C compiled programs.
3587
If you meant to cross compile, use \`--host'.
3588
See \`config.log' for more details." >&2;}
3589
{ (exit 1); exit 1; }; }
3593
{ echo "$as_me:$LINENO: result: yes" >&5
3594
echo "${ECHO_T}yes" >&6; }
3596
rm -f a.out a.exe conftest$ac_cv_exeext b.out
3597
ac_clean_files=$ac_clean_files_save
3598
# Check that the compiler produces executables we can run. If not, either
3599
# the compiler is broken, or we cross compile.
3600
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3601
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3602
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3603
echo "${ECHO_T}$cross_compiling" >&6; }
3605
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3606
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3607
if { (ac_try="$ac_link"
3609
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3610
*) ac_try_echo=$ac_try;;
3612
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3613
(eval "$ac_link") 2>&5
3615
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3616
(exit $ac_status); }; then
3617
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3618
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3619
# work properly (i.e., refer to `conftest.exe'), while it won't with
3621
for ac_file in conftest.exe conftest conftest.*; do
3622
test -f "$ac_file" || continue
3624
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3625
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3631
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3632
See \`config.log' for more details." >&5
3633
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3634
See \`config.log' for more details." >&2;}
3635
{ (exit 1); exit 1; }; }
3638
rm -f conftest$ac_cv_exeext
3639
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3640
echo "${ECHO_T}$ac_cv_exeext" >&6; }
3642
rm -f conftest.$ac_ext
3643
EXEEXT=$ac_cv_exeext
3645
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3646
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3647
if test "${ac_cv_objext+set}" = set; then
3648
echo $ECHO_N "(cached) $ECHO_C" >&6
3650
cat >conftest.$ac_ext <<_ACEOF
3653
cat confdefs.h >>conftest.$ac_ext
3654
cat >>conftest.$ac_ext <<_ACEOF
3655
/* end confdefs.h. */
3665
rm -f conftest.o conftest.obj
3666
if { (ac_try="$ac_compile"
3668
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669
*) ac_try_echo=$ac_try;;
3671
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3672
(eval "$ac_compile") 2>&5
3674
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675
(exit $ac_status); }; then
3676
for ac_file in conftest.o conftest.obj conftest.*; do
3677
test -f "$ac_file" || continue;
3679
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3680
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3685
echo "$as_me: failed program was:" >&5
3686
sed 's/^/| /' conftest.$ac_ext >&5
3688
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3689
See \`config.log' for more details." >&5
3690
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3691
See \`config.log' for more details." >&2;}
3692
{ (exit 1); exit 1; }; }
3695
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3697
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3698
echo "${ECHO_T}$ac_cv_objext" >&6; }
3699
OBJEXT=$ac_cv_objext
3701
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3702
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3703
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3704
echo $ECHO_N "(cached) $ECHO_C" >&6
3706
cat >conftest.$ac_ext <<_ACEOF
3709
cat confdefs.h >>conftest.$ac_ext
3710
cat >>conftest.$ac_ext <<_ACEOF
3711
/* end confdefs.h. */
3724
rm -f conftest.$ac_objext
3725
if { (ac_try="$ac_compile"
3727
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728
*) ac_try_echo=$ac_try;;
3730
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3731
(eval "$ac_compile") 2>conftest.er1
3733
grep -v '^ *+' conftest.er1 >conftest.err
3735
cat conftest.err >&5
3736
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737
(exit $ac_status); } && {
3738
test -z "$ac_c_werror_flag" ||
3739
test ! -s conftest.err
3740
} && test -s conftest.$ac_objext; then
3743
echo "$as_me: failed program was:" >&5
3744
sed 's/^/| /' conftest.$ac_ext >&5
3749
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3750
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3753
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3754
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3755
GCC=`test $ac_compiler_gnu = yes && echo yes`
3756
ac_test_CFLAGS=${CFLAGS+set}
3757
ac_save_CFLAGS=$CFLAGS
3758
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3759
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3760
if test "${ac_cv_prog_cc_g+set}" = set; then
3761
echo $ECHO_N "(cached) $ECHO_C" >&6
3763
ac_save_c_werror_flag=$ac_c_werror_flag
3764
ac_c_werror_flag=yes
3767
cat >conftest.$ac_ext <<_ACEOF
3770
cat confdefs.h >>conftest.$ac_ext
3771
cat >>conftest.$ac_ext <<_ACEOF
3772
/* end confdefs.h. */
3782
rm -f conftest.$ac_objext
3783
if { (ac_try="$ac_compile"
3785
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3786
*) ac_try_echo=$ac_try;;
3788
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3789
(eval "$ac_compile") 2>conftest.er1
3791
grep -v '^ *+' conftest.er1 >conftest.err
3793
cat conftest.err >&5
3794
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795
(exit $ac_status); } && {
3796
test -z "$ac_c_werror_flag" ||
3797
test ! -s conftest.err
3798
} && test -s conftest.$ac_objext; then
3801
echo "$as_me: failed program was:" >&5
3802
sed 's/^/| /' conftest.$ac_ext >&5
3805
cat >conftest.$ac_ext <<_ACEOF
3808
cat confdefs.h >>conftest.$ac_ext
3809
cat >>conftest.$ac_ext <<_ACEOF
3810
/* end confdefs.h. */
3820
rm -f conftest.$ac_objext
3821
if { (ac_try="$ac_compile"
3823
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824
*) ac_try_echo=$ac_try;;
3826
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3827
(eval "$ac_compile") 2>conftest.er1
3829
grep -v '^ *+' conftest.er1 >conftest.err
3831
cat conftest.err >&5
3832
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833
(exit $ac_status); } && {
3834
test -z "$ac_c_werror_flag" ||
3835
test ! -s conftest.err
3836
} && test -s conftest.$ac_objext; then
3839
echo "$as_me: failed program was:" >&5
3840
sed 's/^/| /' conftest.$ac_ext >&5
3842
ac_c_werror_flag=$ac_save_c_werror_flag
3844
cat >conftest.$ac_ext <<_ACEOF
3847
cat confdefs.h >>conftest.$ac_ext
3848
cat >>conftest.$ac_ext <<_ACEOF
3849
/* end confdefs.h. */
3859
rm -f conftest.$ac_objext
3860
if { (ac_try="$ac_compile"
3862
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3863
*) ac_try_echo=$ac_try;;
3865
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3866
(eval "$ac_compile") 2>conftest.er1
3868
grep -v '^ *+' conftest.er1 >conftest.err
3870
cat conftest.err >&5
3871
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872
(exit $ac_status); } && {
3873
test -z "$ac_c_werror_flag" ||
3874
test ! -s conftest.err
3875
} && test -s conftest.$ac_objext; then
3878
echo "$as_me: failed program was:" >&5
3879
sed 's/^/| /' conftest.$ac_ext >&5
3884
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3887
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3890
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3891
ac_c_werror_flag=$ac_save_c_werror_flag
3893
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3894
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3895
if test "$ac_test_CFLAGS" = set; then
3896
CFLAGS=$ac_save_CFLAGS
3897
elif test $ac_cv_prog_cc_g = yes; then
3898
if test "$GCC" = yes; then
3904
if test "$GCC" = yes; then
3910
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3911
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3912
if test "${ac_cv_prog_cc_c89+set}" = set; then
3913
echo $ECHO_N "(cached) $ECHO_C" >&6
3915
ac_cv_prog_cc_c89=no
3917
cat >conftest.$ac_ext <<_ACEOF
3920
cat confdefs.h >>conftest.$ac_ext
3921
cat >>conftest.$ac_ext <<_ACEOF
3922
/* end confdefs.h. */
3925
#include <sys/types.h>
3926
#include <sys/stat.h>
3927
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3928
struct buf { int x; };
3929
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3930
static char *e (p, i)
3936
static char *f (char * (*g) (char **, int), char **p, ...)
3941
s = g (p, va_arg (v,int));
3946
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3947
function prototypes and stuff, but not '\xHH' hex character constants.
3948
These don't provoke an error unfortunately, instead are silently treated
3949
as 'x'. The following induces an error, until -std is added to get
3950
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3951
array size at least. It's necessary to write '\x00'==0 to get something
3952
that's true only with -std. */
3953
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3955
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3956
inside strings and character constants. */
3958
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3960
int test (int i, double x);
3961
struct s1 {int (*f) (int a);};
3962
struct s2 {int (*f) (double a);};
3963
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3969
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3974
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3975
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3977
CC="$ac_save_CC $ac_arg"
3978
rm -f conftest.$ac_objext
3979
if { (ac_try="$ac_compile"
3981
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3982
*) ac_try_echo=$ac_try;;
3984
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3985
(eval "$ac_compile") 2>conftest.er1
3987
grep -v '^ *+' conftest.er1 >conftest.err
3989
cat conftest.err >&5
3990
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3991
(exit $ac_status); } && {
3992
test -z "$ac_c_werror_flag" ||
3993
test ! -s conftest.err
3994
} && test -s conftest.$ac_objext; then
3995
ac_cv_prog_cc_c89=$ac_arg
3997
echo "$as_me: failed program was:" >&5
3998
sed 's/^/| /' conftest.$ac_ext >&5
4003
rm -f core conftest.err conftest.$ac_objext
4004
test "x$ac_cv_prog_cc_c89" != "xno" && break
4006
rm -f conftest.$ac_ext
4011
case "x$ac_cv_prog_cc_c89" in
4013
{ echo "$as_me:$LINENO: result: none needed" >&5
4014
echo "${ECHO_T}none needed" >&6; } ;;
4016
{ echo "$as_me:$LINENO: result: unsupported" >&5
4017
echo "${ECHO_T}unsupported" >&6; } ;;
4019
CC="$CC $ac_cv_prog_cc_c89"
4020
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4021
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4026
ac_cpp='$CPP $CPPFLAGS'
4027
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4028
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4029
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4031
depcc="$CC" am_compiler_list=
4033
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4034
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4035
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4036
echo $ECHO_N "(cached) $ECHO_C" >&6
4038
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4039
# We make a subdir and do the tests there. Otherwise we can end up
4040
# making bogus files that we don't know about and never remove. For
4041
# instance it was reported that on HP-UX the gcc test will end up
4042
# making a dummy file named `D' -- because `-MD' means `put the output
4045
# Copy depcomp to subdir because otherwise we won't find it if we're
4046
# using a relative directory.
4047
cp "$am_depcomp" conftest.dir
4049
# We will build objects and dependencies in a subdirectory because
4050
# it helps to detect inapplicable dependency modes. For instance
4051
# both Tru64's cc and ICC support -MD to output dependencies as a
4052
# side effect of compilation, but ICC will put the dependencies in
4053
# the current directory while Tru64 will put them in the object
4057
am_cv_CC_dependencies_compiler_type=none
4058
if test "$am_compiler_list" = ""; then
4059
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4061
for depmode in $am_compiler_list; do
4062
# Setup a source with many dependencies, because some compilers
4063
# like to wrap large dependency lists on column 80 (with \), and
4064
# we should not choose a depcomp mode which is confused by this.
4066
# We need to recreate these files for each test, as the compiler may
4067
# overwrite some of them when testing with obscure command lines.
4068
# This happens at least with the AIX C compiler.
4070
for i in 1 2 3 4 5 6; do
4071
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4072
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4073
# Solaris 8's {/usr,}/bin/sh.
4074
touch sub/conftst$i.h
4076
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4080
# after this tag, mechanisms are not by side-effect, so they'll
4081
# only be used when explicitly requested
4082
if test "x$enable_dependency_tracking" = xyes; then
4090
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4091
# mode. It turns out that the SunPro C++ compiler does not properly
4092
# handle `-M -o', and we need to detect this.
4093
if depmode=$depmode \
4094
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4095
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4096
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4097
>/dev/null 2>conftest.err &&
4098
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4099
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4100
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4101
# icc doesn't choke on unknown options, it will just issue warnings
4102
# or remarks (even with -Werror). So we grep stderr for any message
4103
# that says an option was ignored or not supported.
4104
# When given -MP, icc 7.0 and 7.1 complain thusly:
4105
# icc: Command line warning: ignoring option '-M'; no argument required
4106
# The diagnosis changed in icc 8.0:
4107
# icc: Command line remark: option '-MP' not supported
4108
if (grep 'ignoring option' conftest.err ||
4109
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4110
am_cv_CC_dependencies_compiler_type=$depmode
4119
am_cv_CC_dependencies_compiler_type=none
4123
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4124
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4125
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4130
test "x$enable_dependency_tracking" != xno \
4131
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4133
am__fastdepCC_FALSE='#'
4135
am__fastdepCC_TRUE='#'
4136
am__fastdepCC_FALSE=
4142
ac_cpp='$CPP $CPPFLAGS'
4143
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4144
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4145
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4146
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4147
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4148
# On Suns, sometimes $CPP names a directory.
4149
if test -n "$CPP" && test -d "$CPP"; then
4152
if test -z "$CPP"; then
4153
if test "${ac_cv_prog_CPP+set}" = set; then
4154
echo $ECHO_N "(cached) $ECHO_C" >&6
4156
# Double quotes because CPP needs to be expanded
4157
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4160
for ac_c_preproc_warn_flag in '' yes
4162
# Use a header file that comes with gcc, so configuring glibc
4163
# with a fresh cross-compiler works.
4164
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4165
# <limits.h> exists even on freestanding compilers.
4166
# On the NeXT, cc -E runs the code through the compiler's parser,
4167
# not just through cpp. "Syntax error" is here to catch this case.
4168
cat >conftest.$ac_ext <<_ACEOF
4171
cat confdefs.h >>conftest.$ac_ext
4172
cat >>conftest.$ac_ext <<_ACEOF
4173
/* end confdefs.h. */
4175
# include <limits.h>
4177
# include <assert.h>
4181
if { (ac_try="$ac_cpp conftest.$ac_ext"
4183
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184
*) ac_try_echo=$ac_try;;
4186
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4189
grep -v '^ *+' conftest.er1 >conftest.err
4191
cat conftest.err >&5
4192
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193
(exit $ac_status); } >/dev/null && {
4194
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4195
test ! -s conftest.err
4199
echo "$as_me: failed program was:" >&5
4200
sed 's/^/| /' conftest.$ac_ext >&5
4202
# Broken: fails on valid input.
4206
rm -f conftest.err conftest.$ac_ext
4208
# OK, works on sane cases. Now check whether nonexistent headers
4209
# can be detected and how.
4210
cat >conftest.$ac_ext <<_ACEOF
4213
cat confdefs.h >>conftest.$ac_ext
4214
cat >>conftest.$ac_ext <<_ACEOF
4215
/* end confdefs.h. */
4216
#include <ac_nonexistent.h>
4218
if { (ac_try="$ac_cpp conftest.$ac_ext"
4220
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4221
*) ac_try_echo=$ac_try;;
4223
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4224
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4226
grep -v '^ *+' conftest.er1 >conftest.err
4228
cat conftest.err >&5
4229
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4230
(exit $ac_status); } >/dev/null && {
4231
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4232
test ! -s conftest.err
4234
# Broken: success on invalid input.
4237
echo "$as_me: failed program was:" >&5
4238
sed 's/^/| /' conftest.$ac_ext >&5
4240
# Passes both tests.
4245
rm -f conftest.err conftest.$ac_ext
4248
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4249
rm -f conftest.err conftest.$ac_ext
4250
if $ac_preproc_ok; then
4262
{ echo "$as_me:$LINENO: result: $CPP" >&5
4263
echo "${ECHO_T}$CPP" >&6; }
4265
for ac_c_preproc_warn_flag in '' yes
4267
# Use a header file that comes with gcc, so configuring glibc
4268
# with a fresh cross-compiler works.
4269
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4270
# <limits.h> exists even on freestanding compilers.
4271
# On the NeXT, cc -E runs the code through the compiler's parser,
4272
# not just through cpp. "Syntax error" is here to catch this case.
4273
cat >conftest.$ac_ext <<_ACEOF
4276
cat confdefs.h >>conftest.$ac_ext
4277
cat >>conftest.$ac_ext <<_ACEOF
4278
/* end confdefs.h. */
4280
# include <limits.h>
4282
# include <assert.h>
4286
if { (ac_try="$ac_cpp conftest.$ac_ext"
4288
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4289
*) ac_try_echo=$ac_try;;
4291
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4292
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4294
grep -v '^ *+' conftest.er1 >conftest.err
4296
cat conftest.err >&5
4297
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4298
(exit $ac_status); } >/dev/null && {
4299
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4300
test ! -s conftest.err
4304
echo "$as_me: failed program was:" >&5
4305
sed 's/^/| /' conftest.$ac_ext >&5
4307
# Broken: fails on valid input.
4311
rm -f conftest.err conftest.$ac_ext
4313
# OK, works on sane cases. Now check whether nonexistent headers
4314
# can be detected and how.
4315
cat >conftest.$ac_ext <<_ACEOF
4318
cat confdefs.h >>conftest.$ac_ext
4319
cat >>conftest.$ac_ext <<_ACEOF
4320
/* end confdefs.h. */
4321
#include <ac_nonexistent.h>
4323
if { (ac_try="$ac_cpp conftest.$ac_ext"
4325
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326
*) ac_try_echo=$ac_try;;
4328
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4329
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4331
grep -v '^ *+' conftest.er1 >conftest.err
4333
cat conftest.err >&5
4334
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335
(exit $ac_status); } >/dev/null && {
4336
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4337
test ! -s conftest.err
4339
# Broken: success on invalid input.
4342
echo "$as_me: failed program was:" >&5
4343
sed 's/^/| /' conftest.$ac_ext >&5
4345
# Passes both tests.
4350
rm -f conftest.err conftest.$ac_ext
4353
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4354
rm -f conftest.err conftest.$ac_ext
4355
if $ac_preproc_ok; then
4358
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4359
See \`config.log' for more details." >&5
4360
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4361
See \`config.log' for more details." >&2;}
4362
{ (exit 1); exit 1; }; }
4366
ac_cpp='$CPP $CPPFLAGS'
4367
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4368
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4369
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4372
if test "$GCC" = "yes"; then
4373
if test "$kde_use_debug_code" != "no"; then
4374
if test $kde_use_debug_code = "full"; then
4375
CFLAGS="-g3 -fno-inline $CFLAGS"
4377
CFLAGS="-g -O2 -fno-schedule-insns -fno-inline $CFLAGS"
4380
CFLAGS="-O2 $CFLAGS"
4384
if test "$kde_use_debug_define" = "yes"; then
4385
CFLAGS="-DNDEBUG $CFLAGS"
4390
*-*-sysv4.2uw*) CFLAGS="-D_UNIXWARE $CFLAGS";;
4391
*-*-sysv5uw7*) CFLAGS="-D_UNIXWARE7 $CFLAGS";;
4394
if test -z "$LDFLAGS" && test "$kde_use_debug_code" = "no" && test "$GCC" = "yes"; then
4398
CXXFLAGS=" $CXXFLAGS"
4401
ac_cpp='$CXXCPP $CPPFLAGS'
4402
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4403
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4404
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4405
if test -z "$CXX"; then
4406
if test -n "$CCC"; then
4409
if test -n "$ac_tool_prefix"; then
4410
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4412
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4413
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4414
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4415
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4416
if test "${ac_cv_prog_CXX+set}" = set; then
4417
echo $ECHO_N "(cached) $ECHO_C" >&6
4419
if test -n "$CXX"; then
4420
ac_cv_prog_CXX="$CXX" # Let the user override the test.
4422
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4426
test -z "$as_dir" && as_dir=.
4427
for ac_exec_ext in '' $ac_executable_extensions; do
4428
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4429
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4430
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4440
if test -n "$CXX"; then
4441
{ echo "$as_me:$LINENO: result: $CXX" >&5
4442
echo "${ECHO_T}$CXX" >&6; }
4444
{ echo "$as_me:$LINENO: result: no" >&5
4445
echo "${ECHO_T}no" >&6; }
4449
test -n "$CXX" && break
4452
if test -z "$CXX"; then
4454
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4456
# Extract the first word of "$ac_prog", so it can be a program name with args.
4457
set dummy $ac_prog; ac_word=$2
4458
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4459
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4460
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4461
echo $ECHO_N "(cached) $ECHO_C" >&6
4463
if test -n "$ac_ct_CXX"; then
4464
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4466
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4470
test -z "$as_dir" && as_dir=.
4471
for ac_exec_ext in '' $ac_executable_extensions; do
4472
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4473
ac_cv_prog_ac_ct_CXX="$ac_prog"
4474
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4483
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4484
if test -n "$ac_ct_CXX"; then
4485
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4486
echo "${ECHO_T}$ac_ct_CXX" >&6; }
4488
{ echo "$as_me:$LINENO: result: no" >&5
4489
echo "${ECHO_T}no" >&6; }
4493
test -n "$ac_ct_CXX" && break
4496
if test "x$ac_ct_CXX" = x; then
4499
case $cross_compiling:$ac_tool_warned in
4501
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4502
whose name does not start with the host triplet. If you think this
4503
configuration is useful to you, please write to autoconf@gnu.org." >&5
4504
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4505
whose name does not start with the host triplet. If you think this
4506
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4507
ac_tool_warned=yes ;;
4515
# Provide some information about the compiler.
4516
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4517
ac_compiler=`set X $ac_compile; echo $2`
4518
{ (ac_try="$ac_compiler --version >&5"
4520
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4521
*) ac_try_echo=$ac_try;;
4523
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4524
(eval "$ac_compiler --version >&5") 2>&5
4526
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527
(exit $ac_status); }
4528
{ (ac_try="$ac_compiler -v >&5"
4530
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4531
*) ac_try_echo=$ac_try;;
4533
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4534
(eval "$ac_compiler -v >&5") 2>&5
4536
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537
(exit $ac_status); }
4538
{ (ac_try="$ac_compiler -V >&5"
4540
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541
*) ac_try_echo=$ac_try;;
4543
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4544
(eval "$ac_compiler -V >&5") 2>&5
4546
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547
(exit $ac_status); }
4549
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4550
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4551
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4552
echo $ECHO_N "(cached) $ECHO_C" >&6
4554
cat >conftest.$ac_ext <<_ACEOF
4557
cat confdefs.h >>conftest.$ac_ext
4558
cat >>conftest.$ac_ext <<_ACEOF
4559
/* end confdefs.h. */
4572
rm -f conftest.$ac_objext
4573
if { (ac_try="$ac_compile"
4575
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4576
*) ac_try_echo=$ac_try;;
4578
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4579
(eval "$ac_compile") 2>conftest.er1
4581
grep -v '^ *+' conftest.er1 >conftest.err
4583
cat conftest.err >&5
4584
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585
(exit $ac_status); } && {
4586
test -z "$ac_cxx_werror_flag" ||
4587
test ! -s conftest.err
4588
} && test -s conftest.$ac_objext; then
4591
echo "$as_me: failed program was:" >&5
4592
sed 's/^/| /' conftest.$ac_ext >&5
4597
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4598
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4601
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4602
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4603
GXX=`test $ac_compiler_gnu = yes && echo yes`
4604
ac_test_CXXFLAGS=${CXXFLAGS+set}
4605
ac_save_CXXFLAGS=$CXXFLAGS
4606
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4607
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4608
if test "${ac_cv_prog_cxx_g+set}" = set; then
4609
echo $ECHO_N "(cached) $ECHO_C" >&6
4611
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4612
ac_cxx_werror_flag=yes
4615
cat >conftest.$ac_ext <<_ACEOF
4618
cat confdefs.h >>conftest.$ac_ext
4619
cat >>conftest.$ac_ext <<_ACEOF
4620
/* end confdefs.h. */
4630
rm -f conftest.$ac_objext
4631
if { (ac_try="$ac_compile"
4633
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4634
*) ac_try_echo=$ac_try;;
4636
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4637
(eval "$ac_compile") 2>conftest.er1
4639
grep -v '^ *+' conftest.er1 >conftest.err
4641
cat conftest.err >&5
4642
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643
(exit $ac_status); } && {
4644
test -z "$ac_cxx_werror_flag" ||
4645
test ! -s conftest.err
4646
} && test -s conftest.$ac_objext; then
4647
ac_cv_prog_cxx_g=yes
4649
echo "$as_me: failed program was:" >&5
4650
sed 's/^/| /' conftest.$ac_ext >&5
4653
cat >conftest.$ac_ext <<_ACEOF
4656
cat confdefs.h >>conftest.$ac_ext
4657
cat >>conftest.$ac_ext <<_ACEOF
4658
/* end confdefs.h. */
4668
rm -f conftest.$ac_objext
4669
if { (ac_try="$ac_compile"
4671
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4672
*) ac_try_echo=$ac_try;;
4674
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4675
(eval "$ac_compile") 2>conftest.er1
4677
grep -v '^ *+' conftest.er1 >conftest.err
4679
cat conftest.err >&5
4680
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681
(exit $ac_status); } && {
4682
test -z "$ac_cxx_werror_flag" ||
4683
test ! -s conftest.err
4684
} && test -s conftest.$ac_objext; then
4687
echo "$as_me: failed program was:" >&5
4688
sed 's/^/| /' conftest.$ac_ext >&5
4690
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4692
cat >conftest.$ac_ext <<_ACEOF
4695
cat confdefs.h >>conftest.$ac_ext
4696
cat >>conftest.$ac_ext <<_ACEOF
4697
/* end confdefs.h. */
4707
rm -f conftest.$ac_objext
4708
if { (ac_try="$ac_compile"
4710
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4711
*) ac_try_echo=$ac_try;;
4713
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4714
(eval "$ac_compile") 2>conftest.er1
4716
grep -v '^ *+' conftest.er1 >conftest.err
4718
cat conftest.err >&5
4719
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720
(exit $ac_status); } && {
4721
test -z "$ac_cxx_werror_flag" ||
4722
test ! -s conftest.err
4723
} && test -s conftest.$ac_objext; then
4724
ac_cv_prog_cxx_g=yes
4726
echo "$as_me: failed program was:" >&5
4727
sed 's/^/| /' conftest.$ac_ext >&5
4732
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4735
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4738
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4739
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4741
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4742
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4743
if test "$ac_test_CXXFLAGS" = set; then
4744
CXXFLAGS=$ac_save_CXXFLAGS
4745
elif test $ac_cv_prog_cxx_g = yes; then
4746
if test "$GXX" = yes; then
4752
if test "$GXX" = yes; then
4759
ac_cpp='$CPP $CPPFLAGS'
4760
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4761
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4762
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4764
depcc="$CXX" am_compiler_list=
4766
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4767
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4768
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4769
echo $ECHO_N "(cached) $ECHO_C" >&6
4771
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4772
# We make a subdir and do the tests there. Otherwise we can end up
4773
# making bogus files that we don't know about and never remove. For
4774
# instance it was reported that on HP-UX the gcc test will end up
4775
# making a dummy file named `D' -- because `-MD' means `put the output
4778
# Copy depcomp to subdir because otherwise we won't find it if we're
4779
# using a relative directory.
4780
cp "$am_depcomp" conftest.dir
4782
# We will build objects and dependencies in a subdirectory because
4783
# it helps to detect inapplicable dependency modes. For instance
4784
# both Tru64's cc and ICC support -MD to output dependencies as a
4785
# side effect of compilation, but ICC will put the dependencies in
4786
# the current directory while Tru64 will put them in the object
4790
am_cv_CXX_dependencies_compiler_type=none
4791
if test "$am_compiler_list" = ""; then
4792
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4794
for depmode in $am_compiler_list; do
4795
# Setup a source with many dependencies, because some compilers
4796
# like to wrap large dependency lists on column 80 (with \), and
4797
# we should not choose a depcomp mode which is confused by this.
4799
# We need to recreate these files for each test, as the compiler may
4800
# overwrite some of them when testing with obscure command lines.
4801
# This happens at least with the AIX C compiler.
4803
for i in 1 2 3 4 5 6; do
4804
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4805
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4806
# Solaris 8's {/usr,}/bin/sh.
4807
touch sub/conftst$i.h
4809
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4813
# after this tag, mechanisms are not by side-effect, so they'll
4814
# only be used when explicitly requested
4815
if test "x$enable_dependency_tracking" = xyes; then
4823
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4824
# mode. It turns out that the SunPro C++ compiler does not properly
4825
# handle `-M -o', and we need to detect this.
4826
if depmode=$depmode \
4827
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4828
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4829
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4830
>/dev/null 2>conftest.err &&
4831
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4832
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4833
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4834
# icc doesn't choke on unknown options, it will just issue warnings
4835
# or remarks (even with -Werror). So we grep stderr for any message
4836
# that says an option was ignored or not supported.
4837
# When given -MP, icc 7.0 and 7.1 complain thusly:
4838
# icc: Command line warning: ignoring option '-M'; no argument required
4839
# The diagnosis changed in icc 8.0:
4840
# icc: Command line remark: option '-MP' not supported
4841
if (grep 'ignoring option' conftest.err ||
4842
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4843
am_cv_CXX_dependencies_compiler_type=$depmode
4852
am_cv_CXX_dependencies_compiler_type=none
4856
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4857
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4858
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4863
test "x$enable_dependency_tracking" != xno \
4864
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4865
am__fastdepCXX_TRUE=
4866
am__fastdepCXX_FALSE='#'
4868
am__fastdepCXX_TRUE='#'
4869
am__fastdepCXX_FALSE=
4875
{ echo "$as_me:$LINENO: checking whether $CC is blacklisted" >&5
4876
echo $ECHO_N "checking whether $CC is blacklisted... $ECHO_C" >&6; }
4879
cat >conftest.$ac_ext <<_ACEOF
4882
cat confdefs.h >>conftest.$ac_ext
4883
cat >>conftest.$ac_ext <<_ACEOF
4884
/* end confdefs.h. */
4887
#if __GNUC__ == 4 && __GNUC_MINOR__ == 0 && __GNUC_PATCHLEVEL__ == 0
4900
rm -f conftest.$ac_objext
4901
if { (ac_try="$ac_compile"
4903
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4904
*) ac_try_echo=$ac_try;;
4906
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4907
(eval "$ac_compile") 2>conftest.er1
4909
grep -v '^ *+' conftest.er1 >conftest.err
4911
cat conftest.err >&5
4912
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913
(exit $ac_status); } && {
4914
test -z "$ac_c_werror_flag" ||
4915
test ! -s conftest.err
4916
} && test -s conftest.$ac_objext; then
4919
echo "$as_me: failed program was:" >&5
4920
sed 's/^/| /' conftest.$ac_ext >&5
4922
kde_bad_compiler=yes
4926
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4928
{ echo "$as_me:$LINENO: result: $kde_bad_compiler" >&5
4929
echo "${ECHO_T}$kde_bad_compiler" >&6; }
4931
if test "$kde_bad_compiler" = "yes"; then
4932
{ { echo "$as_me:$LINENO: error:
4934
This particular compiler version is blacklisted because it
4935
is known to miscompile KDE. Please use a newer version, or
4936
if that is not yet available, choose an older version.
4938
Please do not report a bug or bother us reporting this
4939
configure error. We know about it, and we introduced
4940
it by intention to avoid untraceable bugs or crashes in KDE.
4943
echo "$as_me: error:
4945
This particular compiler version is blacklisted because it
4946
is known to miscompile KDE. Please use a newer version, or
4947
if that is not yet available, choose an older version.
4949
Please do not report a bug or bother us reporting this
4950
configure error. We know about it, and we introduced
4951
it by intention to avoid untraceable bugs or crashes in KDE.
4954
{ (exit 1); exit 1; }; }
4959
if test "$GXX" = "yes" || test "$CXX" = "KCC"; then
4960
if test "$kde_use_debug_code" != "no"; then
4961
if test "$CXX" = "KCC"; then
4962
CXXFLAGS="+K0 -Wall -pedantic -W -Wpointer-arith -Wwrite-strings $CXXFLAGS"
4964
if test "$kde_use_debug_code" = "full"; then
4965
CXXFLAGS="-g3 -fno-inline $CXXFLAGS"
4967
CXXFLAGS="-g -O2 -fno-schedule-insns -fno-inline $CXXFLAGS"
4971
{ echo "$as_me:$LINENO: checking whether $CXX supports -fno-builtin" >&5
4972
echo $ECHO_N "checking whether $CXX supports -fno-builtin... $ECHO_C" >&6; }
4973
kde_cache=`echo fno-builtin | sed 'y% .=/+-,%____p__%'`
4974
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
4975
echo $ECHO_N "(cached) $ECHO_C" >&6
4981
ac_cpp='$CXXCPP $CPPFLAGS'
4982
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4983
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4984
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4986
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4990
save_CXXFLAGS="$CXXFLAGS"
4991
CXXFLAGS="$CXXFLAGS -fno-builtin"
4992
cat >conftest.$ac_ext <<_ACEOF
4995
cat confdefs.h >>conftest.$ac_ext
4996
cat >>conftest.$ac_ext <<_ACEOF
4997
/* end confdefs.h. */
5007
rm -f conftest.$ac_objext conftest$ac_exeext
5008
if { (ac_try="$ac_link"
5010
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5011
*) ac_try_echo=$ac_try;;
5013
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5014
(eval "$ac_link") 2>conftest.er1
5016
grep -v '^ *+' conftest.er1 >conftest.err
5018
cat conftest.err >&5
5019
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5020
(exit $ac_status); } && {
5021
test -z "$ac_cxx_werror_flag" ||
5022
test ! -s conftest.err
5023
} && test -s conftest$ac_exeext &&
5024
$as_test_x conftest$ac_exeext; then
5025
eval "kde_cv_prog_cxx_$kde_cache=yes"
5027
echo "$as_me: failed program was:" >&5
5028
sed 's/^/| /' conftest.$ac_ext >&5
5033
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5034
conftest$ac_exeext conftest.$ac_ext
5035
CXXFLAGS="$save_CXXFLAGS"
5037
ac_cpp='$CPP $CPPFLAGS'
5038
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5039
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5040
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5045
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5046
{ echo "$as_me:$LINENO: result: yes" >&5
5047
echo "${ECHO_T}yes" >&6; }
5049
CXXFLAGS="-fno-builtin $CXXFLAGS"
5051
{ echo "$as_me:$LINENO: result: no" >&5
5052
echo "${ECHO_T}no" >&6; }
5059
{ echo "$as_me:$LINENO: checking whether $CXX supports -Woverloaded-virtual" >&5
5060
echo $ECHO_N "checking whether $CXX supports -Woverloaded-virtual... $ECHO_C" >&6; }
5061
kde_cache=`echo Woverloaded-virtual | sed 'y% .=/+-,%____p__%'`
5062
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5063
echo $ECHO_N "(cached) $ECHO_C" >&6
5068
ac_cpp='$CXXCPP $CPPFLAGS'
5069
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5070
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5071
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5073
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5076
save_CXXFLAGS="$CXXFLAGS"
5077
CXXFLAGS="$CXXFLAGS -Woverloaded-virtual"
5078
cat >conftest.$ac_ext <<_ACEOF
5081
cat confdefs.h >>conftest.$ac_ext
5082
cat >>conftest.$ac_ext <<_ACEOF
5083
/* end confdefs.h. */
5093
rm -f conftest.$ac_objext conftest$ac_exeext
5094
if { (ac_try="$ac_link"
5096
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5097
*) ac_try_echo=$ac_try;;
5099
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5100
(eval "$ac_link") 2>conftest.er1
5102
grep -v '^ *+' conftest.er1 >conftest.err
5104
cat conftest.err >&5
5105
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106
(exit $ac_status); } && {
5107
test -z "$ac_cxx_werror_flag" ||
5108
test ! -s conftest.err
5109
} && test -s conftest$ac_exeext &&
5110
$as_test_x conftest$ac_exeext; then
5111
eval "kde_cv_prog_cxx_$kde_cache=yes"
5113
echo "$as_me: failed program was:" >&5
5114
sed 's/^/| /' conftest.$ac_ext >&5
5119
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5120
conftest$ac_exeext conftest.$ac_ext
5121
CXXFLAGS="$save_CXXFLAGS"
5123
ac_cpp='$CPP $CPPFLAGS'
5124
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5125
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5126
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5131
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5132
{ echo "$as_me:$LINENO: result: yes" >&5
5133
echo "${ECHO_T}yes" >&6; }
5135
WOVERLOADED_VIRTUAL="-Woverloaded-virtual"
5137
{ echo "$as_me:$LINENO: result: no" >&5
5138
echo "${ECHO_T}no" >&6; }
5140
WOVERLOADED_VRITUAL=""
5145
if test "$CXX" = "KCC"; then
5146
CXXFLAGS="+K3 $CXXFLAGS"
5148
CXXFLAGS="-O2 $CXXFLAGS"
5153
if test "$kde_use_debug_define" = "yes"; then
5154
CXXFLAGS="-DNDEBUG -DNO_DEBUG $CXXFLAGS"
5157
if test "$kde_use_profiling" = "yes"; then
5159
{ echo "$as_me:$LINENO: checking whether $CXX supports -pg" >&5
5160
echo $ECHO_N "checking whether $CXX supports -pg... $ECHO_C" >&6; }
5161
kde_cache=`echo pg | sed 'y% .=/+-,%____p__%'`
5162
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5163
echo $ECHO_N "(cached) $ECHO_C" >&6
5168
ac_cpp='$CXXCPP $CPPFLAGS'
5169
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5170
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5171
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5173
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5176
save_CXXFLAGS="$CXXFLAGS"
5177
CXXFLAGS="$CXXFLAGS -pg"
5178
cat >conftest.$ac_ext <<_ACEOF
5181
cat confdefs.h >>conftest.$ac_ext
5182
cat >>conftest.$ac_ext <<_ACEOF
5183
/* end confdefs.h. */
5193
rm -f conftest.$ac_objext conftest$ac_exeext
5194
if { (ac_try="$ac_link"
5196
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5197
*) ac_try_echo=$ac_try;;
5199
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5200
(eval "$ac_link") 2>conftest.er1
5202
grep -v '^ *+' conftest.er1 >conftest.err
5204
cat conftest.err >&5
5205
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206
(exit $ac_status); } && {
5207
test -z "$ac_cxx_werror_flag" ||
5208
test ! -s conftest.err
5209
} && test -s conftest$ac_exeext &&
5210
$as_test_x conftest$ac_exeext; then
5211
eval "kde_cv_prog_cxx_$kde_cache=yes"
5213
echo "$as_me: failed program was:" >&5
5214
sed 's/^/| /' conftest.$ac_ext >&5
5219
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5220
conftest$ac_exeext conftest.$ac_ext
5221
CXXFLAGS="$save_CXXFLAGS"
5223
ac_cpp='$CPP $CPPFLAGS'
5224
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5225
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5226
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5231
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5232
{ echo "$as_me:$LINENO: result: yes" >&5
5233
echo "${ECHO_T}yes" >&6; }
5236
CFLAGS="-pg $CFLAGS"
5237
CXXFLAGS="-pg $CXXFLAGS"
5240
{ echo "$as_me:$LINENO: result: no" >&5
5241
echo "${ECHO_T}no" >&6; }
5248
if test "$kde_use_warnings" = "yes"; then
5249
if test "$GCC" = "yes"; then
5250
CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
5253
CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
5254
CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
5256
{ echo "$as_me:$LINENO: checking whether $CXX supports -Wmissing-format-attribute" >&5
5257
echo $ECHO_N "checking whether $CXX supports -Wmissing-format-attribute... $ECHO_C" >&6; }
5258
kde_cache=`echo Wmissing-format-attribute | sed 'y% .=/+-,%____p__%'`
5259
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5260
echo $ECHO_N "(cached) $ECHO_C" >&6
5265
ac_cpp='$CXXCPP $CPPFLAGS'
5266
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5267
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5268
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5270
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5273
save_CXXFLAGS="$CXXFLAGS"
5274
CXXFLAGS="$CXXFLAGS -Wmissing-format-attribute"
5275
cat >conftest.$ac_ext <<_ACEOF
5278
cat confdefs.h >>conftest.$ac_ext
5279
cat >>conftest.$ac_ext <<_ACEOF
5280
/* end confdefs.h. */
5290
rm -f conftest.$ac_objext conftest$ac_exeext
5291
if { (ac_try="$ac_link"
5293
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5294
*) ac_try_echo=$ac_try;;
5296
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5297
(eval "$ac_link") 2>conftest.er1
5299
grep -v '^ *+' conftest.er1 >conftest.err
5301
cat conftest.err >&5
5302
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303
(exit $ac_status); } && {
5304
test -z "$ac_cxx_werror_flag" ||
5305
test ! -s conftest.err
5306
} && test -s conftest$ac_exeext &&
5307
$as_test_x conftest$ac_exeext; then
5308
eval "kde_cv_prog_cxx_$kde_cache=yes"
5310
echo "$as_me: failed program was:" >&5
5311
sed 's/^/| /' conftest.$ac_ext >&5
5316
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5317
conftest$ac_exeext conftest.$ac_ext
5318
CXXFLAGS="$save_CXXFLAGS"
5320
ac_cpp='$CPP $CPPFLAGS'
5321
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5322
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5323
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5328
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5329
{ echo "$as_me:$LINENO: result: yes" >&5
5330
echo "${ECHO_T}yes" >&6; }
5332
CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"
5334
{ echo "$as_me:$LINENO: result: no" >&5
5335
echo "${ECHO_T}no" >&6; }
5341
{ echo "$as_me:$LINENO: checking whether $CC supports -Wmissing-format-attribute" >&5
5342
echo $ECHO_N "checking whether $CC supports -Wmissing-format-attribute... $ECHO_C" >&6; }
5343
kde_cache=`echo Wmissing-format-attribute | sed 'y% .=/+-,%____p__%'`
5344
if { as_var=kde_cv_prog_cc_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5345
echo $ECHO_N "(cached) $ECHO_C" >&6
5350
ac_cpp='$CPP $CPPFLAGS'
5351
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5352
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5353
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5355
save_CFLAGS="$CFLAGS"
5356
CFLAGS="$CFLAGS -Wmissing-format-attribute"
5357
cat >conftest.$ac_ext <<_ACEOF
5360
cat confdefs.h >>conftest.$ac_ext
5361
cat >>conftest.$ac_ext <<_ACEOF
5362
/* end confdefs.h. */
5372
rm -f conftest.$ac_objext conftest$ac_exeext
5373
if { (ac_try="$ac_link"
5375
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5376
*) ac_try_echo=$ac_try;;
5378
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5379
(eval "$ac_link") 2>conftest.er1
5381
grep -v '^ *+' conftest.er1 >conftest.err
5383
cat conftest.err >&5
5384
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385
(exit $ac_status); } && {
5386
test -z "$ac_c_werror_flag" ||
5387
test ! -s conftest.err
5388
} && test -s conftest$ac_exeext &&
5389
$as_test_x conftest$ac_exeext; then
5390
eval "kde_cv_prog_cc_$kde_cache=yes"
5392
echo "$as_me: failed program was:" >&5
5393
sed 's/^/| /' conftest.$ac_ext >&5
5398
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5399
conftest$ac_exeext conftest.$ac_ext
5400
CFLAGS="$save_CFLAGS"
5402
ac_cpp='$CPP $CPPFLAGS'
5403
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5404
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5405
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5410
if eval "test \"`echo '$kde_cv_prog_cc_'$kde_cache`\" = yes"; then
5411
{ echo "$as_me:$LINENO: result: yes" >&5
5412
echo "${ECHO_T}yes" >&6; }
5414
CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"
5416
{ echo "$as_me:$LINENO: result: no" >&5
5417
echo "${ECHO_T}no" >&6; }
5425
{ echo "$as_me:$LINENO: checking whether $CXX supports -Wundef" >&5
5426
echo $ECHO_N "checking whether $CXX supports -Wundef... $ECHO_C" >&6; }
5427
kde_cache=`echo Wundef | sed 'y% .=/+-,%____p__%'`
5428
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5429
echo $ECHO_N "(cached) $ECHO_C" >&6
5434
ac_cpp='$CXXCPP $CPPFLAGS'
5435
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5436
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5437
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5439
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5442
save_CXXFLAGS="$CXXFLAGS"
5443
CXXFLAGS="$CXXFLAGS -Wundef"
5444
cat >conftest.$ac_ext <<_ACEOF
5447
cat confdefs.h >>conftest.$ac_ext
5448
cat >>conftest.$ac_ext <<_ACEOF
5449
/* end confdefs.h. */
5459
rm -f conftest.$ac_objext conftest$ac_exeext
5460
if { (ac_try="$ac_link"
5462
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5463
*) ac_try_echo=$ac_try;;
5465
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5466
(eval "$ac_link") 2>conftest.er1
5468
grep -v '^ *+' conftest.er1 >conftest.err
5470
cat conftest.err >&5
5471
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472
(exit $ac_status); } && {
5473
test -z "$ac_cxx_werror_flag" ||
5474
test ! -s conftest.err
5475
} && test -s conftest$ac_exeext &&
5476
$as_test_x conftest$ac_exeext; then
5477
eval "kde_cv_prog_cxx_$kde_cache=yes"
5479
echo "$as_me: failed program was:" >&5
5480
sed 's/^/| /' conftest.$ac_ext >&5
5485
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5486
conftest$ac_exeext conftest.$ac_ext
5487
CXXFLAGS="$save_CXXFLAGS"
5489
ac_cpp='$CPP $CPPFLAGS'
5490
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5491
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5492
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5497
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5498
{ echo "$as_me:$LINENO: result: yes" >&5
5499
echo "${ECHO_T}yes" >&6; }
5501
CXXFLAGS="-Wundef $CXXFLAGS"
5503
{ echo "$as_me:$LINENO: result: no" >&5
5504
echo "${ECHO_T}no" >&6; }
5510
{ echo "$as_me:$LINENO: checking whether $CXX supports -Wno-long-long" >&5
5511
echo $ECHO_N "checking whether $CXX supports -Wno-long-long... $ECHO_C" >&6; }
5512
kde_cache=`echo Wno-long-long | sed 'y% .=/+-,%____p__%'`
5513
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5514
echo $ECHO_N "(cached) $ECHO_C" >&6
5519
ac_cpp='$CXXCPP $CPPFLAGS'
5520
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5521
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5522
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5524
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5527
save_CXXFLAGS="$CXXFLAGS"
5528
CXXFLAGS="$CXXFLAGS -Wno-long-long"
5529
cat >conftest.$ac_ext <<_ACEOF
5532
cat confdefs.h >>conftest.$ac_ext
5533
cat >>conftest.$ac_ext <<_ACEOF
5534
/* end confdefs.h. */
5544
rm -f conftest.$ac_objext conftest$ac_exeext
5545
if { (ac_try="$ac_link"
5547
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5548
*) ac_try_echo=$ac_try;;
5550
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5551
(eval "$ac_link") 2>conftest.er1
5553
grep -v '^ *+' conftest.er1 >conftest.err
5555
cat conftest.err >&5
5556
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557
(exit $ac_status); } && {
5558
test -z "$ac_cxx_werror_flag" ||
5559
test ! -s conftest.err
5560
} && test -s conftest$ac_exeext &&
5561
$as_test_x conftest$ac_exeext; then
5562
eval "kde_cv_prog_cxx_$kde_cache=yes"
5564
echo "$as_me: failed program was:" >&5
5565
sed 's/^/| /' conftest.$ac_ext >&5
5570
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5571
conftest$ac_exeext conftest.$ac_ext
5572
CXXFLAGS="$save_CXXFLAGS"
5574
ac_cpp='$CPP $CPPFLAGS'
5575
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5576
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5577
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5582
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5583
{ echo "$as_me:$LINENO: result: yes" >&5
5584
echo "${ECHO_T}yes" >&6; }
5586
CXXFLAGS="-Wno-long-long $CXXFLAGS"
5588
{ echo "$as_me:$LINENO: result: no" >&5
5589
echo "${ECHO_T}no" >&6; }
5595
{ echo "$as_me:$LINENO: checking whether $CXX supports -Wno-non-virtual-dtor" >&5
5596
echo $ECHO_N "checking whether $CXX supports -Wno-non-virtual-dtor... $ECHO_C" >&6; }
5597
kde_cache=`echo Wno-non-virtual-dtor | sed 'y% .=/+-,%____p__%'`
5598
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5599
echo $ECHO_N "(cached) $ECHO_C" >&6
5604
ac_cpp='$CXXCPP $CPPFLAGS'
5605
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5606
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5607
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5609
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5612
save_CXXFLAGS="$CXXFLAGS"
5613
CXXFLAGS="$CXXFLAGS -Wno-non-virtual-dtor"
5614
cat >conftest.$ac_ext <<_ACEOF
5617
cat confdefs.h >>conftest.$ac_ext
5618
cat >>conftest.$ac_ext <<_ACEOF
5619
/* end confdefs.h. */
5629
rm -f conftest.$ac_objext conftest$ac_exeext
5630
if { (ac_try="$ac_link"
5632
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5633
*) ac_try_echo=$ac_try;;
5635
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5636
(eval "$ac_link") 2>conftest.er1
5638
grep -v '^ *+' conftest.er1 >conftest.err
5640
cat conftest.err >&5
5641
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642
(exit $ac_status); } && {
5643
test -z "$ac_cxx_werror_flag" ||
5644
test ! -s conftest.err
5645
} && test -s conftest$ac_exeext &&
5646
$as_test_x conftest$ac_exeext; then
5647
eval "kde_cv_prog_cxx_$kde_cache=yes"
5649
echo "$as_me: failed program was:" >&5
5650
sed 's/^/| /' conftest.$ac_ext >&5
5655
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5656
conftest$ac_exeext conftest.$ac_ext
5657
CXXFLAGS="$save_CXXFLAGS"
5659
ac_cpp='$CPP $CPPFLAGS'
5660
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5661
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5662
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5667
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5668
{ echo "$as_me:$LINENO: result: yes" >&5
5669
echo "${ECHO_T}yes" >&6; }
5671
CXXFLAGS="$CXXFLAGS -Wno-non-virtual-dtor"
5673
{ echo "$as_me:$LINENO: result: no" >&5
5674
echo "${ECHO_T}no" >&6; }
5682
if test "$GXX" = "yes" && test "$kde_use_strict_options" = "yes"; then
5683
CXXFLAGS="-Wcast-qual -Wshadow -Wcast-align $CXXFLAGS"
5686
# Check whether --enable-pch was given.
5687
if test "${enable_pch+set}" = set; then
5688
enableval=$enable_pch; kde_use_pch=$enableval
5694
HAVE_GCC_VISIBILITY=0
5697
if test "$GXX" = "yes"; then
5698
gcc_no_reorder_blocks=NO
5700
{ echo "$as_me:$LINENO: checking whether $CXX supports -fno-reorder-blocks" >&5
5701
echo $ECHO_N "checking whether $CXX supports -fno-reorder-blocks... $ECHO_C" >&6; }
5702
kde_cache=`echo fno-reorder-blocks | sed 'y% .=/+-,%____p__%'`
5703
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5704
echo $ECHO_N "(cached) $ECHO_C" >&6
5709
ac_cpp='$CXXCPP $CPPFLAGS'
5710
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5711
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5712
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5714
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5717
save_CXXFLAGS="$CXXFLAGS"
5718
CXXFLAGS="$CXXFLAGS -fno-reorder-blocks"
5719
cat >conftest.$ac_ext <<_ACEOF
5722
cat confdefs.h >>conftest.$ac_ext
5723
cat >>conftest.$ac_ext <<_ACEOF
5724
/* end confdefs.h. */
5734
rm -f conftest.$ac_objext conftest$ac_exeext
5735
if { (ac_try="$ac_link"
5737
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5738
*) ac_try_echo=$ac_try;;
5740
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5741
(eval "$ac_link") 2>conftest.er1
5743
grep -v '^ *+' conftest.er1 >conftest.err
5745
cat conftest.err >&5
5746
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747
(exit $ac_status); } && {
5748
test -z "$ac_cxx_werror_flag" ||
5749
test ! -s conftest.err
5750
} && test -s conftest$ac_exeext &&
5751
$as_test_x conftest$ac_exeext; then
5752
eval "kde_cv_prog_cxx_$kde_cache=yes"
5754
echo "$as_me: failed program was:" >&5
5755
sed 's/^/| /' conftest.$ac_ext >&5
5760
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5761
conftest$ac_exeext conftest.$ac_ext
5762
CXXFLAGS="$save_CXXFLAGS"
5764
ac_cpp='$CPP $CPPFLAGS'
5765
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5766
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5767
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5772
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5773
{ echo "$as_me:$LINENO: result: yes" >&5
5774
echo "${ECHO_T}yes" >&6; }
5776
gcc_no_reorder_blocks=YES
5778
{ echo "$as_me:$LINENO: result: no" >&5
5779
echo "${ECHO_T}no" >&6; }
5784
if test $kde_use_debug_code != "no" && \
5785
test $kde_use_debug_code != "full" && \
5786
test "YES" = "$gcc_no_reorder_blocks" ; then
5787
CXXFLAGS="$CXXFLAGS -fno-reorder-blocks"
5788
CFLAGS="$CFLAGS -fno-reorder-blocks"
5791
{ echo "$as_me:$LINENO: checking whether $CXX supports -fno-exceptions" >&5
5792
echo $ECHO_N "checking whether $CXX supports -fno-exceptions... $ECHO_C" >&6; }
5793
kde_cache=`echo fno-exceptions | sed 'y% .=/+-,%____p__%'`
5794
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5795
echo $ECHO_N "(cached) $ECHO_C" >&6
5800
ac_cpp='$CXXCPP $CPPFLAGS'
5801
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5802
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5803
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5805
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5808
save_CXXFLAGS="$CXXFLAGS"
5809
CXXFLAGS="$CXXFLAGS -fno-exceptions"
5810
cat >conftest.$ac_ext <<_ACEOF
5813
cat confdefs.h >>conftest.$ac_ext
5814
cat >>conftest.$ac_ext <<_ACEOF
5815
/* end confdefs.h. */
5825
rm -f conftest.$ac_objext conftest$ac_exeext
5826
if { (ac_try="$ac_link"
5828
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5829
*) ac_try_echo=$ac_try;;
5831
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5832
(eval "$ac_link") 2>conftest.er1
5834
grep -v '^ *+' conftest.er1 >conftest.err
5836
cat conftest.err >&5
5837
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838
(exit $ac_status); } && {
5839
test -z "$ac_cxx_werror_flag" ||
5840
test ! -s conftest.err
5841
} && test -s conftest$ac_exeext &&
5842
$as_test_x conftest$ac_exeext; then
5843
eval "kde_cv_prog_cxx_$kde_cache=yes"
5845
echo "$as_me: failed program was:" >&5
5846
sed 's/^/| /' conftest.$ac_ext >&5
5851
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5852
conftest$ac_exeext conftest.$ac_ext
5853
CXXFLAGS="$save_CXXFLAGS"
5855
ac_cpp='$CPP $CPPFLAGS'
5856
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5857
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5858
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5863
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5864
{ echo "$as_me:$LINENO: result: yes" >&5
5865
echo "${ECHO_T}yes" >&6; }
5867
CXXFLAGS="$CXXFLAGS -fno-exceptions"
5869
{ echo "$as_me:$LINENO: result: no" >&5
5870
echo "${ECHO_T}no" >&6; }
5876
{ echo "$as_me:$LINENO: checking whether $CXX supports -fno-check-new" >&5
5877
echo $ECHO_N "checking whether $CXX supports -fno-check-new... $ECHO_C" >&6; }
5878
kde_cache=`echo fno-check-new | sed 'y% .=/+-,%____p__%'`
5879
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5880
echo $ECHO_N "(cached) $ECHO_C" >&6
5885
ac_cpp='$CXXCPP $CPPFLAGS'
5886
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5887
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5888
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5890
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5893
save_CXXFLAGS="$CXXFLAGS"
5894
CXXFLAGS="$CXXFLAGS -fno-check-new"
5895
cat >conftest.$ac_ext <<_ACEOF
5898
cat confdefs.h >>conftest.$ac_ext
5899
cat >>conftest.$ac_ext <<_ACEOF
5900
/* end confdefs.h. */
5910
rm -f conftest.$ac_objext conftest$ac_exeext
5911
if { (ac_try="$ac_link"
5913
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5914
*) ac_try_echo=$ac_try;;
5916
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5917
(eval "$ac_link") 2>conftest.er1
5919
grep -v '^ *+' conftest.er1 >conftest.err
5921
cat conftest.err >&5
5922
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923
(exit $ac_status); } && {
5924
test -z "$ac_cxx_werror_flag" ||
5925
test ! -s conftest.err
5926
} && test -s conftest$ac_exeext &&
5927
$as_test_x conftest$ac_exeext; then
5928
eval "kde_cv_prog_cxx_$kde_cache=yes"
5930
echo "$as_me: failed program was:" >&5
5931
sed 's/^/| /' conftest.$ac_ext >&5
5936
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5937
conftest$ac_exeext conftest.$ac_ext
5938
CXXFLAGS="$save_CXXFLAGS"
5940
ac_cpp='$CPP $CPPFLAGS'
5941
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5942
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5943
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5948
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5949
{ echo "$as_me:$LINENO: result: yes" >&5
5950
echo "${ECHO_T}yes" >&6; }
5952
CXXFLAGS="$CXXFLAGS -fno-check-new"
5954
{ echo "$as_me:$LINENO: result: no" >&5
5955
echo "${ECHO_T}no" >&6; }
5961
{ echo "$as_me:$LINENO: checking whether $CXX supports -fno-common" >&5
5962
echo $ECHO_N "checking whether $CXX supports -fno-common... $ECHO_C" >&6; }
5963
kde_cache=`echo fno-common | sed 'y% .=/+-,%____p__%'`
5964
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5965
echo $ECHO_N "(cached) $ECHO_C" >&6
5970
ac_cpp='$CXXCPP $CPPFLAGS'
5971
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5972
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5973
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5975
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5978
save_CXXFLAGS="$CXXFLAGS"
5979
CXXFLAGS="$CXXFLAGS -fno-common"
5980
cat >conftest.$ac_ext <<_ACEOF
5983
cat confdefs.h >>conftest.$ac_ext
5984
cat >>conftest.$ac_ext <<_ACEOF
5985
/* end confdefs.h. */
5995
rm -f conftest.$ac_objext conftest$ac_exeext
5996
if { (ac_try="$ac_link"
5998
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5999
*) ac_try_echo=$ac_try;;
6001
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6002
(eval "$ac_link") 2>conftest.er1
6004
grep -v '^ *+' conftest.er1 >conftest.err
6006
cat conftest.err >&5
6007
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6008
(exit $ac_status); } && {
6009
test -z "$ac_cxx_werror_flag" ||
6010
test ! -s conftest.err
6011
} && test -s conftest$ac_exeext &&
6012
$as_test_x conftest$ac_exeext; then
6013
eval "kde_cv_prog_cxx_$kde_cache=yes"
6015
echo "$as_me: failed program was:" >&5
6016
sed 's/^/| /' conftest.$ac_ext >&5
6021
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6022
conftest$ac_exeext conftest.$ac_ext
6023
CXXFLAGS="$save_CXXFLAGS"
6025
ac_cpp='$CPP $CPPFLAGS'
6026
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6027
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6028
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6033
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6034
{ echo "$as_me:$LINENO: result: yes" >&5
6035
echo "${ECHO_T}yes" >&6; }
6037
CXXFLAGS="$CXXFLAGS -fno-common"
6039
{ echo "$as_me:$LINENO: result: no" >&5
6040
echo "${ECHO_T}no" >&6; }
6046
{ echo "$as_me:$LINENO: checking whether $CXX supports -fexceptions" >&5
6047
echo $ECHO_N "checking whether $CXX supports -fexceptions... $ECHO_C" >&6; }
6048
kde_cache=`echo fexceptions | sed 'y% .=/+-,%____p__%'`
6049
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6050
echo $ECHO_N "(cached) $ECHO_C" >&6
6055
ac_cpp='$CXXCPP $CPPFLAGS'
6056
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6057
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6058
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6060
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6063
save_CXXFLAGS="$CXXFLAGS"
6064
CXXFLAGS="$CXXFLAGS -fexceptions"
6065
cat >conftest.$ac_ext <<_ACEOF
6068
cat confdefs.h >>conftest.$ac_ext
6069
cat >>conftest.$ac_ext <<_ACEOF
6070
/* end confdefs.h. */
6080
rm -f conftest.$ac_objext conftest$ac_exeext
6081
if { (ac_try="$ac_link"
6083
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6084
*) ac_try_echo=$ac_try;;
6086
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6087
(eval "$ac_link") 2>conftest.er1
6089
grep -v '^ *+' conftest.er1 >conftest.err
6091
cat conftest.err >&5
6092
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6093
(exit $ac_status); } && {
6094
test -z "$ac_cxx_werror_flag" ||
6095
test ! -s conftest.err
6096
} && test -s conftest$ac_exeext &&
6097
$as_test_x conftest$ac_exeext; then
6098
eval "kde_cv_prog_cxx_$kde_cache=yes"
6100
echo "$as_me: failed program was:" >&5
6101
sed 's/^/| /' conftest.$ac_ext >&5
6106
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6107
conftest$ac_exeext conftest.$ac_ext
6108
CXXFLAGS="$save_CXXFLAGS"
6110
ac_cpp='$CPP $CPPFLAGS'
6111
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6112
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6113
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6118
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6119
{ echo "$as_me:$LINENO: result: yes" >&5
6120
echo "${ECHO_T}yes" >&6; }
6122
USE_EXCEPTIONS="-fexceptions"
6124
{ echo "$as_me:$LINENO: result: no" >&5
6125
echo "${ECHO_T}no" >&6; }
6130
ENABLE_PERMISSIVE_FLAG="-fpermissive"
6132
if test "$kde_use_pch" = "yes"; then
6133
{ echo "$as_me:$LINENO: checking whether gcc supports precompiling c header files" >&5
6134
echo $ECHO_N "checking whether gcc supports precompiling c header files... $ECHO_C" >&6; }
6136
if $CC -x c-header conftest.h >/dev/null 2>/dev/null; then
6137
kde_gcc_supports_pch=yes
6138
{ echo "$as_me:$LINENO: result: yes" >&5
6139
echo "${ECHO_T}yes" >&6; }
6141
kde_gcc_supports_pch=no
6142
{ echo "$as_me:$LINENO: result: no" >&5
6143
echo "${ECHO_T}no" >&6; }
6145
if test "$kde_gcc_supports_pch" = "yes"; then
6146
{ echo "$as_me:$LINENO: checking whether gcc supports precompiling c++ header files" >&5
6147
echo $ECHO_N "checking whether gcc supports precompiling c++ header files... $ECHO_C" >&6; }
6148
if $CXX -x c++-header conftest.h >/dev/null 2>/dev/null; then
6149
kde_gcc_supports_pch=yes
6150
{ echo "$as_me:$LINENO: result: yes" >&5
6151
echo "${ECHO_T}yes" >&6; }
6153
kde_gcc_supports_pch=no
6154
{ echo "$as_me:$LINENO: result: no" >&5
6155
echo "${ECHO_T}no" >&6; }
6158
rm -f conftest.h conftest.h.gch
6162
{ echo "$as_me:$LINENO: checking whether system headers can cope with -O2 -fno-inline" >&5
6163
echo $ECHO_N "checking whether system headers can cope with -O2 -fno-inline... $ECHO_C" >&6; }
6164
if test "${kde_cv_opt_noinline_match+set}" = set; then
6165
echo $ECHO_N "(cached) $ECHO_C" >&6
6168
kde_cv_opt_noinline_match=irrelevant
6169
if echo "$CFLAGS" | grep -e -O2 >/dev/null 2>/dev/null \
6170
&& echo "$CFLAGS" | grep -e -fno-inline >/dev/null 2>/dev/null ; then
6172
ac_cflags_save="$CFLAGS"
6173
CFLAGS="$CFLAGS -D_USE_GNU"
6175
cat >conftest.$ac_ext <<_ACEOF
6178
cat confdefs.h >>conftest.$ac_ext
6179
cat >>conftest.$ac_ext <<_ACEOF
6180
/* end confdefs.h. */
6187
const char *pt, *et;
6188
et = __extension__ ({ char __a0, __a1, __a2; (__builtin_constant_p ( ";," ) && ((size_t)(const void *)(( ";," )+ 1) - (size_t)(const void *)( ";," ) == 1) ? ((__a0 =((__const char *) ( ";," ))[0], __a0 == '\0') ? ((void) ( pt ),((void *)0) ) : ((__a1 = ((__const char *) ( ";," ))[1], __a1== '\0') ? (__extension__ (__builtin_constant_p ( __a0 ) && ( __a0 ) == '\0' ? (char *) __rawmemchr ( pt , __a0) : strchr( pt , __a0 ))) : ((__a2 = ((__const char *) ( ";," ))[2], __a2 == '\0') ? __strpbrk_c2 ( pt , __a0, __a1) :(((__const char *) ( ";," ))[3] == '\0' ? __strpbrk_c3 ( pt ,__a0, __a1, __a2): strpbrk ( pt , ";," ))))) : strpbrk ( pt , ";," )); }) ;
6194
rm -f conftest.$ac_objext conftest$ac_exeext
6195
if { (ac_try="$ac_link"
6197
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6198
*) ac_try_echo=$ac_try;;
6200
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6201
(eval "$ac_link") 2>conftest.er1
6203
grep -v '^ *+' conftest.er1 >conftest.err
6205
cat conftest.err >&5
6206
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207
(exit $ac_status); } && {
6208
test -z "$ac_c_werror_flag" ||
6209
test ! -s conftest.err
6210
} && test -s conftest$ac_exeext &&
6211
$as_test_x conftest$ac_exeext; then
6212
kde_cv_opt_noinline_match=yes
6214
echo "$as_me: failed program was:" >&5
6215
sed 's/^/| /' conftest.$ac_ext >&5
6217
kde_cv_opt_noinline_match=no
6221
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6222
conftest$ac_exeext conftest.$ac_ext
6224
CFLAGS="$ac_cflags_save"
6228
{ echo "$as_me:$LINENO: result: $kde_cv_opt_noinline_match" >&5
6229
echo "${ECHO_T}$kde_cv_opt_noinline_match" >&6; }
6231
if test "x$kde_cv_opt_noinline_match" = "xno" ; then
6232
CFLAGS="`echo "$CFLAGS" | sed "s/ -fno-inline//"`"
6237
if test "$kde_use_pch" = "yes" && test "$kde_gcc_supports_pch" = "yes"; then
6238
unsermake_enable_pch_TRUE=
6239
unsermake_enable_pch_FALSE='#'
6241
unsermake_enable_pch_TRUE='#'
6242
unsermake_enable_pch_FALSE=
6245
if test "$CXX" = "KCC"; then
6247
if test "$kde_use_pch" = "yes"; then
6249
{ echo "$as_me:$LINENO: checking whether $CXX supports --pch" >&5
6250
echo $ECHO_N "checking whether $CXX supports --pch... $ECHO_C" >&6; }
6251
kde_cache=`echo -pch | sed 'y% .=/+-,%____p__%'`
6252
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6253
echo $ECHO_N "(cached) $ECHO_C" >&6
6258
ac_cpp='$CXXCPP $CPPFLAGS'
6259
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6260
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6261
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6263
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6266
save_CXXFLAGS="$CXXFLAGS"
6267
CXXFLAGS="$CXXFLAGS --pch"
6268
cat >conftest.$ac_ext <<_ACEOF
6271
cat confdefs.h >>conftest.$ac_ext
6272
cat >>conftest.$ac_ext <<_ACEOF
6273
/* end confdefs.h. */
6283
rm -f conftest.$ac_objext conftest$ac_exeext
6284
if { (ac_try="$ac_link"
6286
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6287
*) ac_try_echo=$ac_try;;
6289
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6290
(eval "$ac_link") 2>conftest.er1
6292
grep -v '^ *+' conftest.er1 >conftest.err
6294
cat conftest.err >&5
6295
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296
(exit $ac_status); } && {
6297
test -z "$ac_cxx_werror_flag" ||
6298
test ! -s conftest.err
6299
} && test -s conftest$ac_exeext &&
6300
$as_test_x conftest$ac_exeext; then
6301
eval "kde_cv_prog_cxx_$kde_cache=yes"
6303
echo "$as_me: failed program was:" >&5
6304
sed 's/^/| /' conftest.$ac_ext >&5
6309
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6310
conftest$ac_exeext conftest.$ac_ext
6311
CXXFLAGS="$save_CXXFLAGS"
6313
ac_cpp='$CPP $CPPFLAGS'
6314
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6315
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6316
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6321
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6322
{ echo "$as_me:$LINENO: result: yes" >&5
6323
echo "${ECHO_T}yes" >&6; }
6325
CXXFLAGS="$CXXFLAGS --pch"
6327
{ echo "$as_me:$LINENO: result: no" >&5
6328
echo "${ECHO_T}no" >&6; }
6335
{ echo "$as_me:$LINENO: checking whether $CXX supports --inline_keyword_space_time=6" >&5
6336
echo $ECHO_N "checking whether $CXX supports --inline_keyword_space_time=6... $ECHO_C" >&6; }
6337
kde_cache=`echo -inline_keyword_space_time=6 | sed 'y% .=/+-,%____p__%'`
6338
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6339
echo $ECHO_N "(cached) $ECHO_C" >&6
6344
ac_cpp='$CXXCPP $CPPFLAGS'
6345
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6346
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6347
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6349
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6352
save_CXXFLAGS="$CXXFLAGS"
6353
CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6"
6354
cat >conftest.$ac_ext <<_ACEOF
6357
cat confdefs.h >>conftest.$ac_ext
6358
cat >>conftest.$ac_ext <<_ACEOF
6359
/* end confdefs.h. */
6369
rm -f conftest.$ac_objext conftest$ac_exeext
6370
if { (ac_try="$ac_link"
6372
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6373
*) ac_try_echo=$ac_try;;
6375
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6376
(eval "$ac_link") 2>conftest.er1
6378
grep -v '^ *+' conftest.er1 >conftest.err
6380
cat conftest.err >&5
6381
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382
(exit $ac_status); } && {
6383
test -z "$ac_cxx_werror_flag" ||
6384
test ! -s conftest.err
6385
} && test -s conftest$ac_exeext &&
6386
$as_test_x conftest$ac_exeext; then
6387
eval "kde_cv_prog_cxx_$kde_cache=yes"
6389
echo "$as_me: failed program was:" >&5
6390
sed 's/^/| /' conftest.$ac_ext >&5
6395
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6396
conftest$ac_exeext conftest.$ac_ext
6397
CXXFLAGS="$save_CXXFLAGS"
6399
ac_cpp='$CPP $CPPFLAGS'
6400
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6401
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6402
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6407
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6408
{ echo "$as_me:$LINENO: result: yes" >&5
6409
echo "${ECHO_T}yes" >&6; }
6411
CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6"
6413
{ echo "$as_me:$LINENO: result: no" >&5
6414
echo "${ECHO_T}no" >&6; }
6420
{ echo "$as_me:$LINENO: checking whether $CXX supports --inline_auto_space_time=2" >&5
6421
echo $ECHO_N "checking whether $CXX supports --inline_auto_space_time=2... $ECHO_C" >&6; }
6422
kde_cache=`echo -inline_auto_space_time=2 | sed 'y% .=/+-,%____p__%'`
6423
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6424
echo $ECHO_N "(cached) $ECHO_C" >&6
6429
ac_cpp='$CXXCPP $CPPFLAGS'
6430
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6431
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6432
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6434
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6437
save_CXXFLAGS="$CXXFLAGS"
6438
CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2"
6439
cat >conftest.$ac_ext <<_ACEOF
6442
cat confdefs.h >>conftest.$ac_ext
6443
cat >>conftest.$ac_ext <<_ACEOF
6444
/* end confdefs.h. */
6454
rm -f conftest.$ac_objext conftest$ac_exeext
6455
if { (ac_try="$ac_link"
6457
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6458
*) ac_try_echo=$ac_try;;
6460
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6461
(eval "$ac_link") 2>conftest.er1
6463
grep -v '^ *+' conftest.er1 >conftest.err
6465
cat conftest.err >&5
6466
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6467
(exit $ac_status); } && {
6468
test -z "$ac_cxx_werror_flag" ||
6469
test ! -s conftest.err
6470
} && test -s conftest$ac_exeext &&
6471
$as_test_x conftest$ac_exeext; then
6472
eval "kde_cv_prog_cxx_$kde_cache=yes"
6474
echo "$as_me: failed program was:" >&5
6475
sed 's/^/| /' conftest.$ac_ext >&5
6480
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6481
conftest$ac_exeext conftest.$ac_ext
6482
CXXFLAGS="$save_CXXFLAGS"
6484
ac_cpp='$CPP $CPPFLAGS'
6485
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6486
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6487
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6492
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6493
{ echo "$as_me:$LINENO: result: yes" >&5
6494
echo "${ECHO_T}yes" >&6; }
6496
CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2"
6498
{ echo "$as_me:$LINENO: result: no" >&5
6499
echo "${ECHO_T}no" >&6; }
6505
{ echo "$as_me:$LINENO: checking whether $CXX supports --inline_implicit_space_time=2.0" >&5
6506
echo $ECHO_N "checking whether $CXX supports --inline_implicit_space_time=2.0... $ECHO_C" >&6; }
6507
kde_cache=`echo -inline_implicit_space_time=2.0 | sed 'y% .=/+-,%____p__%'`
6508
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6509
echo $ECHO_N "(cached) $ECHO_C" >&6
6514
ac_cpp='$CXXCPP $CPPFLAGS'
6515
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6516
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6517
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6519
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6522
save_CXXFLAGS="$CXXFLAGS"
6523
CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0"
6524
cat >conftest.$ac_ext <<_ACEOF
6527
cat confdefs.h >>conftest.$ac_ext
6528
cat >>conftest.$ac_ext <<_ACEOF
6529
/* end confdefs.h. */
6539
rm -f conftest.$ac_objext conftest$ac_exeext
6540
if { (ac_try="$ac_link"
6542
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6543
*) ac_try_echo=$ac_try;;
6545
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6546
(eval "$ac_link") 2>conftest.er1
6548
grep -v '^ *+' conftest.er1 >conftest.err
6550
cat conftest.err >&5
6551
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552
(exit $ac_status); } && {
6553
test -z "$ac_cxx_werror_flag" ||
6554
test ! -s conftest.err
6555
} && test -s conftest$ac_exeext &&
6556
$as_test_x conftest$ac_exeext; then
6557
eval "kde_cv_prog_cxx_$kde_cache=yes"
6559
echo "$as_me: failed program was:" >&5
6560
sed 's/^/| /' conftest.$ac_ext >&5
6565
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6566
conftest$ac_exeext conftest.$ac_ext
6567
CXXFLAGS="$save_CXXFLAGS"
6569
ac_cpp='$CPP $CPPFLAGS'
6570
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6571
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6572
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6577
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6578
{ echo "$as_me:$LINENO: result: yes" >&5
6579
echo "${ECHO_T}yes" >&6; }
6581
CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0"
6583
{ echo "$as_me:$LINENO: result: no" >&5
6584
echo "${ECHO_T}no" >&6; }
6590
{ echo "$as_me:$LINENO: checking whether $CXX supports --inline_generated_space_time=2.0" >&5
6591
echo $ECHO_N "checking whether $CXX supports --inline_generated_space_time=2.0... $ECHO_C" >&6; }
6592
kde_cache=`echo -inline_generated_space_time=2.0 | sed 'y% .=/+-,%____p__%'`
6593
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6594
echo $ECHO_N "(cached) $ECHO_C" >&6
6599
ac_cpp='$CXXCPP $CPPFLAGS'
6600
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6601
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6602
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6604
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6607
save_CXXFLAGS="$CXXFLAGS"
6608
CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0"
6609
cat >conftest.$ac_ext <<_ACEOF
6612
cat confdefs.h >>conftest.$ac_ext
6613
cat >>conftest.$ac_ext <<_ACEOF
6614
/* end confdefs.h. */
6624
rm -f conftest.$ac_objext conftest$ac_exeext
6625
if { (ac_try="$ac_link"
6627
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6628
*) ac_try_echo=$ac_try;;
6630
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6631
(eval "$ac_link") 2>conftest.er1
6633
grep -v '^ *+' conftest.er1 >conftest.err
6635
cat conftest.err >&5
6636
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6637
(exit $ac_status); } && {
6638
test -z "$ac_cxx_werror_flag" ||
6639
test ! -s conftest.err
6640
} && test -s conftest$ac_exeext &&
6641
$as_test_x conftest$ac_exeext; then
6642
eval "kde_cv_prog_cxx_$kde_cache=yes"
6644
echo "$as_me: failed program was:" >&5
6645
sed 's/^/| /' conftest.$ac_ext >&5
6650
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6651
conftest$ac_exeext conftest.$ac_ext
6652
CXXFLAGS="$save_CXXFLAGS"
6654
ac_cpp='$CPP $CPPFLAGS'
6655
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6656
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6657
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6662
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6663
{ echo "$as_me:$LINENO: result: yes" >&5
6664
echo "${ECHO_T}yes" >&6; }
6666
CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0"
6668
{ echo "$as_me:$LINENO: result: no" >&5
6669
echo "${ECHO_T}no" >&6; }
6675
{ echo "$as_me:$LINENO: checking whether $CXX supports --one_per" >&5
6676
echo $ECHO_N "checking whether $CXX supports --one_per... $ECHO_C" >&6; }
6677
kde_cache=`echo -one_per | sed 'y% .=/+-,%____p__%'`
6678
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6679
echo $ECHO_N "(cached) $ECHO_C" >&6
6684
ac_cpp='$CXXCPP $CPPFLAGS'
6685
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6686
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6687
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6689
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6692
save_CXXFLAGS="$CXXFLAGS"
6693
CXXFLAGS="$CXXFLAGS --one_per"
6694
cat >conftest.$ac_ext <<_ACEOF
6697
cat confdefs.h >>conftest.$ac_ext
6698
cat >>conftest.$ac_ext <<_ACEOF
6699
/* end confdefs.h. */
6709
rm -f conftest.$ac_objext conftest$ac_exeext
6710
if { (ac_try="$ac_link"
6712
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6713
*) ac_try_echo=$ac_try;;
6715
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6716
(eval "$ac_link") 2>conftest.er1
6718
grep -v '^ *+' conftest.er1 >conftest.err
6720
cat conftest.err >&5
6721
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722
(exit $ac_status); } && {
6723
test -z "$ac_cxx_werror_flag" ||
6724
test ! -s conftest.err
6725
} && test -s conftest$ac_exeext &&
6726
$as_test_x conftest$ac_exeext; then
6727
eval "kde_cv_prog_cxx_$kde_cache=yes"
6729
echo "$as_me: failed program was:" >&5
6730
sed 's/^/| /' conftest.$ac_ext >&5
6735
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6736
conftest$ac_exeext conftest.$ac_ext
6737
CXXFLAGS="$save_CXXFLAGS"
6739
ac_cpp='$CPP $CPPFLAGS'
6740
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6741
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6742
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6747
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6748
{ echo "$as_me:$LINENO: result: yes" >&5
6749
echo "${ECHO_T}yes" >&6; }
6751
CXXFLAGS="$CXXFLAGS --one_per"
6753
{ echo "$as_me:$LINENO: result: no" >&5
6754
echo "${ECHO_T}no" >&6; }
6765
*-*-irix*) test "$GXX" = yes && CXXFLAGS="-D_LANGUAGE_C_PLUS_PLUS -D__LANGUAGE_C_PLUS_PLUS $CXXFLAGS" ;;
6766
*-*-sysv4.2uw*) CXXFLAGS="-D_UNIXWARE $CXXFLAGS";;
6767
*-*-sysv5uw7*) CXXFLAGS="-D_UNIXWARE7 $CXXFLAGS";;
6769
if test "$GXX" = yes; then
6770
libstdcpp=`$CXX -print-file-name=libstdc++.so`
6771
if test ! -f $libstdcpp; then
6772
{ { echo "$as_me:$LINENO: error: You've compiled gcc without --enable-shared. This doesn't work with KDE. Please recompile gcc with --enable-shared to receive a libstdc++.so" >&5
6773
echo "$as_me: error: You've compiled gcc without --enable-shared. This doesn't work with KDE. Please recompile gcc with --enable-shared to receive a libstdc++.so" >&2;}
6774
{ (exit 1); exit 1; }; }
6780
if test "x$kde_use_qt_emb" != "xyes"; then
6782
__forbid=" -fno-rtti -rpath "
6783
if test -n "$__val"; then
6789
*" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5
6790
echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;;
6791
*) # Careful to not add spaces, where there were none, because otherwise
6792
# libtool gets confused, if we change e.g. CXX
6793
if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
6801
__forbid=" -fno-rtti -rpath "
6802
if test -n "$__val"; then
6808
*" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5
6809
echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;;
6810
*) # Careful to not add spaces, where there were none, because otherwise
6811
# libtool gets confused, if we change e.g. CXX
6812
if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
6822
if test -n "$__val"; then
6828
*" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5
6829
echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;;
6830
*) # Careful to not add spaces, where there were none, because otherwise
6831
# libtool gets confused, if we change e.g. CXX
6832
if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
6841
if test -n "$__val"; then
6847
*" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5
6848
echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;;
6849
*) # Careful to not add spaces, where there were none, because otherwise
6850
# libtool gets confused, if we change e.g. CXX
6851
if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
6862
ac_cpp='$CXXCPP $CPPFLAGS'
6863
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6864
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6865
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6866
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6867
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
6868
if test -z "$CXXCPP"; then
6869
if test "${ac_cv_prog_CXXCPP+set}" = set; then
6870
echo $ECHO_N "(cached) $ECHO_C" >&6
6872
# Double quotes because CXXCPP needs to be expanded
6873
for CXXCPP in "$CXX -E" "/lib/cpp"
6876
for ac_cxx_preproc_warn_flag in '' yes
6878
# Use a header file that comes with gcc, so configuring glibc
6879
# with a fresh cross-compiler works.
6880
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6881
# <limits.h> exists even on freestanding compilers.
6882
# On the NeXT, cc -E runs the code through the compiler's parser,
6883
# not just through cpp. "Syntax error" is here to catch this case.
6884
cat >conftest.$ac_ext <<_ACEOF
6887
cat confdefs.h >>conftest.$ac_ext
6888
cat >>conftest.$ac_ext <<_ACEOF
6889
/* end confdefs.h. */
6891
# include <limits.h>
6893
# include <assert.h>
6897
if { (ac_try="$ac_cpp conftest.$ac_ext"
6899
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6900
*) ac_try_echo=$ac_try;;
6902
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6903
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6905
grep -v '^ *+' conftest.er1 >conftest.err
6907
cat conftest.err >&5
6908
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909
(exit $ac_status); } >/dev/null && {
6910
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6911
test ! -s conftest.err
6915
echo "$as_me: failed program was:" >&5
6916
sed 's/^/| /' conftest.$ac_ext >&5
6918
# Broken: fails on valid input.
6922
rm -f conftest.err conftest.$ac_ext
6924
# OK, works on sane cases. Now check whether nonexistent headers
6925
# can be detected and how.
6926
cat >conftest.$ac_ext <<_ACEOF
6929
cat confdefs.h >>conftest.$ac_ext
6930
cat >>conftest.$ac_ext <<_ACEOF
6931
/* end confdefs.h. */
6932
#include <ac_nonexistent.h>
6934
if { (ac_try="$ac_cpp conftest.$ac_ext"
6936
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6937
*) ac_try_echo=$ac_try;;
6939
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6940
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6942
grep -v '^ *+' conftest.er1 >conftest.err
6944
cat conftest.err >&5
6945
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6946
(exit $ac_status); } >/dev/null && {
6947
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6948
test ! -s conftest.err
6950
# Broken: success on invalid input.
6953
echo "$as_me: failed program was:" >&5
6954
sed 's/^/| /' conftest.$ac_ext >&5
6956
# Passes both tests.
6961
rm -f conftest.err conftest.$ac_ext
6964
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6965
rm -f conftest.err conftest.$ac_ext
6966
if $ac_preproc_ok; then
6971
ac_cv_prog_CXXCPP=$CXXCPP
6974
CXXCPP=$ac_cv_prog_CXXCPP
6976
ac_cv_prog_CXXCPP=$CXXCPP
6978
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
6979
echo "${ECHO_T}$CXXCPP" >&6; }
6981
for ac_cxx_preproc_warn_flag in '' yes
6983
# Use a header file that comes with gcc, so configuring glibc
6984
# with a fresh cross-compiler works.
6985
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6986
# <limits.h> exists even on freestanding compilers.
6987
# On the NeXT, cc -E runs the code through the compiler's parser,
6988
# not just through cpp. "Syntax error" is here to catch this case.
6989
cat >conftest.$ac_ext <<_ACEOF
6992
cat confdefs.h >>conftest.$ac_ext
6993
cat >>conftest.$ac_ext <<_ACEOF
6994
/* end confdefs.h. */
6996
# include <limits.h>
6998
# include <assert.h>
7002
if { (ac_try="$ac_cpp conftest.$ac_ext"
7004
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7005
*) ac_try_echo=$ac_try;;
7007
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7008
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7010
grep -v '^ *+' conftest.er1 >conftest.err
7012
cat conftest.err >&5
7013
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7014
(exit $ac_status); } >/dev/null && {
7015
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7016
test ! -s conftest.err
7020
echo "$as_me: failed program was:" >&5
7021
sed 's/^/| /' conftest.$ac_ext >&5
7023
# Broken: fails on valid input.
7027
rm -f conftest.err conftest.$ac_ext
7029
# OK, works on sane cases. Now check whether nonexistent headers
7030
# can be detected and how.
7031
cat >conftest.$ac_ext <<_ACEOF
7034
cat confdefs.h >>conftest.$ac_ext
7035
cat >>conftest.$ac_ext <<_ACEOF
7036
/* end confdefs.h. */
7037
#include <ac_nonexistent.h>
7039
if { (ac_try="$ac_cpp conftest.$ac_ext"
7041
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7042
*) ac_try_echo=$ac_try;;
7044
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7045
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7047
grep -v '^ *+' conftest.er1 >conftest.err
7049
cat conftest.err >&5
7050
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051
(exit $ac_status); } >/dev/null && {
7052
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7053
test ! -s conftest.err
7055
# Broken: success on invalid input.
7058
echo "$as_me: failed program was:" >&5
7059
sed 's/^/| /' conftest.$ac_ext >&5
7061
# Passes both tests.
7066
rm -f conftest.err conftest.$ac_ext
7069
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7070
rm -f conftest.err conftest.$ac_ext
7071
if $ac_preproc_ok; then
7074
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7075
See \`config.log' for more details." >&5
7076
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7077
See \`config.log' for more details." >&2;}
7078
{ (exit 1); exit 1; }; }
7082
ac_cpp='$CPP $CPPFLAGS'
7083
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7084
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7085
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7088
if test "$GCC" = yes; then
7092
{ echo "$as_me:$LINENO: checking whether $CXX supports -O0" >&5
7093
echo $ECHO_N "checking whether $CXX supports -O0... $ECHO_C" >&6; }
7094
kde_cache=`echo O0 | sed 'y% .=/+-,%____p__%'`
7095
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
7096
echo $ECHO_N "(cached) $ECHO_C" >&6
7101
ac_cpp='$CXXCPP $CPPFLAGS'
7102
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7103
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7104
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7106
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7109
save_CXXFLAGS="$CXXFLAGS"
7110
CXXFLAGS="$CXXFLAGS -O0"
7111
cat >conftest.$ac_ext <<_ACEOF
7114
cat confdefs.h >>conftest.$ac_ext
7115
cat >>conftest.$ac_ext <<_ACEOF
7116
/* end confdefs.h. */
7126
rm -f conftest.$ac_objext conftest$ac_exeext
7127
if { (ac_try="$ac_link"
7129
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7130
*) ac_try_echo=$ac_try;;
7132
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7133
(eval "$ac_link") 2>conftest.er1
7135
grep -v '^ *+' conftest.er1 >conftest.err
7137
cat conftest.err >&5
7138
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7139
(exit $ac_status); } && {
7140
test -z "$ac_cxx_werror_flag" ||
7141
test ! -s conftest.err
7142
} && test -s conftest$ac_exeext &&
7143
$as_test_x conftest$ac_exeext; then
7144
eval "kde_cv_prog_cxx_$kde_cache=yes"
7146
echo "$as_me: failed program was:" >&5
7147
sed 's/^/| /' conftest.$ac_ext >&5
7152
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7153
conftest$ac_exeext conftest.$ac_ext
7154
CXXFLAGS="$save_CXXFLAGS"
7156
ac_cpp='$CPP $CPPFLAGS'
7157
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7158
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7159
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7164
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
7165
{ echo "$as_me:$LINENO: result: yes" >&5
7166
echo "${ECHO_T}yes" >&6; }
7170
{ echo "$as_me:$LINENO: result: no" >&5
7171
echo "${ECHO_T}no" >&6; }
7177
# Check whether --enable-coverage was given.
7178
if test "${enable_coverage+set}" = set; then
7179
enableval=$enable_coverage;
7180
if test "$am_cv_CC_dependencies_compiler_type" = "gcc3"; then
7181
ac_coverage_compiler="-fprofile-arcs -ftest-coverage"
7182
ac_coverage_linker="-lgcc"
7183
elif test "$am_cv_CC_dependencies_compiler_type" = "gcc"; then
7184
ac_coverage_compiler="-fprofile-arcs -ftest-coverage"
7185
ac_coverage_linker=""
7187
{ { echo "$as_me:$LINENO: error: coverage with your compiler is not supported" >&5
7188
echo "$as_me: error: coverage with your compiler is not supported" >&2;}
7189
{ (exit 1); exit 1; }; }
7191
CFLAGS="$CFLAGS $ac_coverage_compiler"
7192
CXXFLAGS="$CXXFLAGS $ac_coverage_compiler"
7193
LDFLAGS="$LDFLAGS $ac_coverage_linker"
7203
# Check whether --enable-new_ldflags was given.
7204
if test "${enable_new_ldflags+set}" = set; then
7205
enableval=$enable_new_ldflags; kde_use_new_ldflags=$enableval
7207
kde_use_new_ldflags=no
7211
LDFLAGS_AS_NEEDED=""
7212
LDFLAGS_NEW_DTAGS=""
7213
if test "x$kde_use_new_ldflags" = "xyes"; then
7214
LDFLAGS_NEW_DTAGS=""
7216
{ echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--enable-new-dtags" >&5
7217
echo $ECHO_N "checking whether $CXX supports -Wl,--enable-new-dtags... $ECHO_C" >&6; }
7218
kde_cache=`echo Wl,--enable-new-dtags | sed 'y% .=/+-,%____p__%'`
7219
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
7220
echo $ECHO_N "(cached) $ECHO_C" >&6
7225
ac_cpp='$CXXCPP $CPPFLAGS'
7226
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7227
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7228
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7230
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7233
save_CXXFLAGS="$CXXFLAGS"
7234
CXXFLAGS="$CXXFLAGS -Wl,--enable-new-dtags"
7235
cat >conftest.$ac_ext <<_ACEOF
7238
cat confdefs.h >>conftest.$ac_ext
7239
cat >>conftest.$ac_ext <<_ACEOF
7240
/* end confdefs.h. */
7250
rm -f conftest.$ac_objext conftest$ac_exeext
7251
if { (ac_try="$ac_link"
7253
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7254
*) ac_try_echo=$ac_try;;
7256
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7257
(eval "$ac_link") 2>conftest.er1
7259
grep -v '^ *+' conftest.er1 >conftest.err
7261
cat conftest.err >&5
7262
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263
(exit $ac_status); } && {
7264
test -z "$ac_cxx_werror_flag" ||
7265
test ! -s conftest.err
7266
} && test -s conftest$ac_exeext &&
7267
$as_test_x conftest$ac_exeext; then
7268
eval "kde_cv_prog_cxx_$kde_cache=yes"
7270
echo "$as_me: failed program was:" >&5
7271
sed 's/^/| /' conftest.$ac_ext >&5
7276
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7277
conftest$ac_exeext conftest.$ac_ext
7278
CXXFLAGS="$save_CXXFLAGS"
7280
ac_cpp='$CPP $CPPFLAGS'
7281
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7282
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7283
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7288
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
7289
{ echo "$as_me:$LINENO: result: yes" >&5
7290
echo "${ECHO_T}yes" >&6; }
7292
LDFLAGS_NEW_DTAGS="-Wl,--enable-new-dtags"
7294
{ echo "$as_me:$LINENO: result: no" >&5
7295
echo "${ECHO_T}no" >&6; }
7302
{ echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--as-needed" >&5
7303
echo $ECHO_N "checking whether $CXX supports -Wl,--as-needed... $ECHO_C" >&6; }
7304
kde_cache=`echo Wl,--as-needed | sed 'y% .=/+-,%____p__%'`
7305
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
7306
echo $ECHO_N "(cached) $ECHO_C" >&6
7311
ac_cpp='$CXXCPP $CPPFLAGS'
7312
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7313
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7314
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7316
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7319
save_CXXFLAGS="$CXXFLAGS"
7320
CXXFLAGS="$CXXFLAGS -Wl,--as-needed"
7321
cat >conftest.$ac_ext <<_ACEOF
7324
cat confdefs.h >>conftest.$ac_ext
7325
cat >>conftest.$ac_ext <<_ACEOF
7326
/* end confdefs.h. */
7336
rm -f conftest.$ac_objext conftest$ac_exeext
7337
if { (ac_try="$ac_link"
7339
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7340
*) ac_try_echo=$ac_try;;
7342
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7343
(eval "$ac_link") 2>conftest.er1
7345
grep -v '^ *+' conftest.er1 >conftest.err
7347
cat conftest.err >&5
7348
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349
(exit $ac_status); } && {
7350
test -z "$ac_cxx_werror_flag" ||
7351
test ! -s conftest.err
7352
} && test -s conftest$ac_exeext &&
7353
$as_test_x conftest$ac_exeext; then
7354
eval "kde_cv_prog_cxx_$kde_cache=yes"
7356
echo "$as_me: failed program was:" >&5
7357
sed 's/^/| /' conftest.$ac_ext >&5
7362
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7363
conftest$ac_exeext conftest.$ac_ext
7364
CXXFLAGS="$save_CXXFLAGS"
7366
ac_cpp='$CPP $CPPFLAGS'
7367
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7368
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7369
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7374
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
7375
{ echo "$as_me:$LINENO: result: yes" >&5
7376
echo "${ECHO_T}yes" >&6; }
7378
LDFLAGS_AS_NEEDED="-Wl,--as-needed"
7380
{ echo "$as_me:$LINENO: result: no" >&5
7381
echo "${ECHO_T}no" >&6; }
7391
# Check whether --enable-final was given.
7392
if test "${enable_final+set}" = set; then
7393
enableval=$enable_final; kde_use_final=$enableval
7399
if test "x$kde_use_final" = "xyes"; then
7400
KDE_USE_FINAL_TRUE=""
7401
KDE_USE_FINAL_FALSE="#"
7403
KDE_USE_FINAL_TRUE="#"
7404
KDE_USE_FINAL_FALSE=""
7410
# Check whether --enable-closure was given.
7411
if test "${enable_closure+set}" = set; then
7412
enableval=$enable_closure; kde_use_closure=$enableval
7419
if test "x$kde_use_closure" = "xyes"; then
7420
KDE_USE_CLOSURE_TRUE=""
7421
KDE_USE_CLOSURE_FALSE="#"
7422
# CXXFLAGS="$CXXFLAGS $REPO"
7424
KDE_USE_CLOSURE_TRUE="#"
7425
KDE_USE_CLOSURE_FALSE=""
7430
{ echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--no-undefined" >&5
7431
echo $ECHO_N "checking whether $CXX supports -Wl,--no-undefined... $ECHO_C" >&6; }
7432
kde_cache=`echo Wl,--no-undefined | sed 'y% .=/+-,%____p__%'`
7433
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
7434
echo $ECHO_N "(cached) $ECHO_C" >&6
7439
ac_cpp='$CXXCPP $CPPFLAGS'
7440
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7441
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7442
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7444
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7447
save_CXXFLAGS="$CXXFLAGS"
7448
CXXFLAGS="$CXXFLAGS -Wl,--no-undefined"
7449
cat >conftest.$ac_ext <<_ACEOF
7452
cat confdefs.h >>conftest.$ac_ext
7453
cat >>conftest.$ac_ext <<_ACEOF
7454
/* end confdefs.h. */
7464
rm -f conftest.$ac_objext conftest$ac_exeext
7465
if { (ac_try="$ac_link"
7467
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7468
*) ac_try_echo=$ac_try;;
7470
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7471
(eval "$ac_link") 2>conftest.er1
7473
grep -v '^ *+' conftest.er1 >conftest.err
7475
cat conftest.err >&5
7476
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7477
(exit $ac_status); } && {
7478
test -z "$ac_cxx_werror_flag" ||
7479
test ! -s conftest.err
7480
} && test -s conftest$ac_exeext &&
7481
$as_test_x conftest$ac_exeext; then
7482
eval "kde_cv_prog_cxx_$kde_cache=yes"
7484
echo "$as_me: failed program was:" >&5
7485
sed 's/^/| /' conftest.$ac_ext >&5
7490
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7491
conftest$ac_exeext conftest.$ac_ext
7492
CXXFLAGS="$save_CXXFLAGS"
7494
ac_cpp='$CPP $CPPFLAGS'
7495
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7496
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7497
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7502
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
7503
{ echo "$as_me:$LINENO: result: yes" >&5
7504
echo "${ECHO_T}yes" >&6; }
7507
{ echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--allow-shlib-undefined" >&5
7508
echo $ECHO_N "checking whether $CXX supports -Wl,--allow-shlib-undefined... $ECHO_C" >&6; }
7509
kde_cache=`echo Wl,--allow-shlib-undefined | sed 'y% .=/+-,%____p__%'`
7510
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
7511
echo $ECHO_N "(cached) $ECHO_C" >&6
7516
ac_cpp='$CXXCPP $CPPFLAGS'
7517
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7518
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7519
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7521
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7524
save_CXXFLAGS="$CXXFLAGS"
7525
CXXFLAGS="$CXXFLAGS -Wl,--allow-shlib-undefined"
7526
cat >conftest.$ac_ext <<_ACEOF
7529
cat confdefs.h >>conftest.$ac_ext
7530
cat >>conftest.$ac_ext <<_ACEOF
7531
/* end confdefs.h. */
7541
rm -f conftest.$ac_objext conftest$ac_exeext
7542
if { (ac_try="$ac_link"
7544
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7545
*) ac_try_echo=$ac_try;;
7547
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7548
(eval "$ac_link") 2>conftest.er1
7550
grep -v '^ *+' conftest.er1 >conftest.err
7552
cat conftest.err >&5
7553
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554
(exit $ac_status); } && {
7555
test -z "$ac_cxx_werror_flag" ||
7556
test ! -s conftest.err
7557
} && test -s conftest$ac_exeext &&
7558
$as_test_x conftest$ac_exeext; then
7559
eval "kde_cv_prog_cxx_$kde_cache=yes"
7561
echo "$as_me: failed program was:" >&5
7562
sed 's/^/| /' conftest.$ac_ext >&5
7567
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7568
conftest$ac_exeext conftest.$ac_ext
7569
CXXFLAGS="$save_CXXFLAGS"
7571
ac_cpp='$CPP $CPPFLAGS'
7572
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7573
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7574
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7579
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
7580
{ echo "$as_me:$LINENO: result: yes" >&5
7581
echo "${ECHO_T}yes" >&6; }
7583
KDE_NO_UNDEFINED="-Wl,--no-undefined -Wl,--allow-shlib-undefined"
7585
{ echo "$as_me:$LINENO: result: no" >&5
7586
echo "${ECHO_T}no" >&6; }
7592
{ echo "$as_me:$LINENO: result: no" >&5
7593
echo "${ECHO_T}no" >&6; }
7606
# Check whether --enable-nmcheck was given.
7607
if test "${enable_nmcheck+set}" = set; then
7608
enableval=$enable_nmcheck; kde_use_nmcheck=$enableval
7614
if test "$kde_use_nmcheck" = "yes"; then
7615
KDE_USE_NMCHECK_TRUE=""
7616
KDE_USE_NMCHECK_FALSE="#"
7618
KDE_USE_NMCHECK_TRUE="#"
7619
KDE_USE_NMCHECK_FALSE=""
7627
# Check whether --enable-shared was given.
7628
if test "${enable_shared+set}" = set; then
7629
enableval=$enable_shared; p=${PACKAGE-default}
7631
yes) enable_shared=yes ;;
7632
no) enable_shared=no ;;
7635
# Look at the argument we got. We use all the common list separators.
7636
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7637
for pkg in $enableval; do
7639
if test "X$pkg" = "X$p"; then
7651
# Check whether --enable-static was given.
7652
if test "${enable_static+set}" = set; then
7653
enableval=$enable_static; p=${PACKAGE-default}
7655
yes) enable_static=yes ;;
7656
no) enable_static=no ;;
7659
# Look at the argument we got. We use all the common list separators.
7660
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7661
for pkg in $enableval; do
7663
if test "X$pkg" = "X$p"; then
7678
# Check whether --enable-libsuffix was given.
7679
if test "${enable_libsuffix+set}" = set; then
7680
enableval=$enable_libsuffix; kdelibsuff=$enableval
7686
if test "$kdelibsuff" = "auto"; then
7688
cat > conftest.c << EOF
7694
kdelibsuff=`$CC conftest.c -o conftest.out; ldd conftest.out |sed -ne '/libc.so/{
7695
s,.*/lib\([^\/]*\)/.*,\1,
7701
if test "$kdelibsuff" = "no" || test "$kdelibsuff" = "none"; then
7704
if test -z "$kdelibsuff"; then
7705
{ echo "$as_me:$LINENO: result: not using lib directory suffix" >&5
7706
echo "${ECHO_T}not using lib directory suffix" >&6; }
7708
cat >>confdefs.h <<\_ACEOF
7709
#define KDELIBSUFF ""
7713
if test "$libdir" = '${exec_prefix}/lib'; then
7714
libdir="$libdir${kdelibsuff}"
7718
cat >>confdefs.h <<_ACEOF
7719
#define KDELIBSUFF "${kdelibsuff}"
7722
{ echo "$as_me:$LINENO: result: using lib directory suffix $kdelibsuff" >&5
7723
echo "${ECHO_T}using lib directory suffix $kdelibsuff" >&6; }
7726
# Check whether --enable-fast-install was given.
7727
if test "${enable_fast_install+set}" = set; then
7728
enableval=$enable_fast_install; p=${PACKAGE-default}
7730
yes) enable_fast_install=yes ;;
7731
no) enable_fast_install=no ;;
7733
enable_fast_install=no
7734
# Look at the argument we got. We use all the common list separators.
7735
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7736
for pkg in $enableval; do
7738
if test "X$pkg" = "X$p"; then
7739
enable_fast_install=yes
7746
enable_fast_install=yes
7750
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7751
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
7752
if test "${lt_cv_path_SED+set}" = set; then
7753
echo $ECHO_N "(cached) $ECHO_C" >&6
7755
# Loop through the user's path and test for sed and gsed.
7756
# Then use that list of sed's as ones to test for truncation.
7757
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7761
test -z "$as_dir" && as_dir=.
7762
for lt_ac_prog in sed gsed; do
7763
for ac_exec_ext in '' $ac_executable_extensions; do
7764
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7765
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7772
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
7773
# along with /bin/sed that truncates output.
7774
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7775
test ! -f $lt_ac_sed && break
7776
cat /dev/null > conftest.in
7778
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7779
# Check for GNU sed and select it if it is found.
7780
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7781
lt_cv_path_SED=$lt_ac_sed
7785
cat conftest.in conftest.in >conftest.tmp
7786
mv conftest.tmp conftest.in
7787
cp conftest.in conftest.nl
7789
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7790
cmp -s conftest.out conftest.nl || break
7791
# 10000 chars as input seems more than enough
7792
test $lt_ac_count -gt 10 && break
7793
lt_ac_count=`expr $lt_ac_count + 1`
7794
if test $lt_ac_count -gt $lt_ac_max; then
7795
lt_ac_max=$lt_ac_count
7796
lt_cv_path_SED=$lt_ac_sed
7804
{ echo "$as_me:$LINENO: result: $SED" >&5
7805
echo "${ECHO_T}$SED" >&6; }
7807
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7808
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
7809
if test "${ac_cv_path_GREP+set}" = set; then
7810
echo $ECHO_N "(cached) $ECHO_C" >&6
7812
# Extract the first word of "grep ggrep" to use in msg output
7813
if test -z "$GREP"; then
7814
set dummy grep ggrep; ac_prog_name=$2
7815
if test "${ac_cv_path_GREP+set}" = set; then
7816
echo $ECHO_N "(cached) $ECHO_C" >&6
7818
ac_path_GREP_found=false
7819
# Loop through the user's path and test for each of PROGNAME-LIST
7820
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7821
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7824
test -z "$as_dir" && as_dir=.
7825
for ac_prog in grep ggrep; do
7826
for ac_exec_ext in '' $ac_executable_extensions; do
7827
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7828
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7829
# Check for GNU ac_path_GREP and select it if it is found.
7830
# Check for GNU $ac_path_GREP
7831
case `"$ac_path_GREP" --version 2>&1` in
7833
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7836
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7839
cat "conftest.in" "conftest.in" >"conftest.tmp"
7840
mv "conftest.tmp" "conftest.in"
7841
cp "conftest.in" "conftest.nl"
7842
echo 'GREP' >> "conftest.nl"
7843
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7844
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7845
ac_count=`expr $ac_count + 1`
7846
if test $ac_count -gt ${ac_path_GREP_max-0}; then
7847
# Best one so far, save it but keep looking for a better one
7848
ac_cv_path_GREP="$ac_path_GREP"
7849
ac_path_GREP_max=$ac_count
7851
# 10*(2^10) chars as input seems more than enough
7852
test $ac_count -gt 10 && break
7854
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7858
$ac_path_GREP_found && break 3
7868
GREP="$ac_cv_path_GREP"
7869
if test -z "$GREP"; then
7870
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7871
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7872
{ (exit 1); exit 1; }; }
7876
ac_cv_path_GREP=$GREP
7881
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
7882
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
7883
GREP="$ac_cv_path_GREP"
7886
{ echo "$as_me:$LINENO: checking for egrep" >&5
7887
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
7888
if test "${ac_cv_path_EGREP+set}" = set; then
7889
echo $ECHO_N "(cached) $ECHO_C" >&6
7891
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7892
then ac_cv_path_EGREP="$GREP -E"
7894
# Extract the first word of "egrep" to use in msg output
7895
if test -z "$EGREP"; then
7896
set dummy egrep; ac_prog_name=$2
7897
if test "${ac_cv_path_EGREP+set}" = set; then
7898
echo $ECHO_N "(cached) $ECHO_C" >&6
7900
ac_path_EGREP_found=false
7901
# Loop through the user's path and test for each of PROGNAME-LIST
7902
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7903
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7906
test -z "$as_dir" && as_dir=.
7907
for ac_prog in egrep; do
7908
for ac_exec_ext in '' $ac_executable_extensions; do
7909
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7910
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7911
# Check for GNU ac_path_EGREP and select it if it is found.
7912
# Check for GNU $ac_path_EGREP
7913
case `"$ac_path_EGREP" --version 2>&1` in
7915
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7918
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
7921
cat "conftest.in" "conftest.in" >"conftest.tmp"
7922
mv "conftest.tmp" "conftest.in"
7923
cp "conftest.in" "conftest.nl"
7924
echo 'EGREP' >> "conftest.nl"
7925
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7926
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7927
ac_count=`expr $ac_count + 1`
7928
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7929
# Best one so far, save it but keep looking for a better one
7930
ac_cv_path_EGREP="$ac_path_EGREP"
7931
ac_path_EGREP_max=$ac_count
7933
# 10*(2^10) chars as input seems more than enough
7934
test $ac_count -gt 10 && break
7936
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7940
$ac_path_EGREP_found && break 3
7950
EGREP="$ac_cv_path_EGREP"
7951
if test -z "$EGREP"; then
7952
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
7953
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
7954
{ (exit 1); exit 1; }; }
7958
ac_cv_path_EGREP=$EGREP
7964
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
7965
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
7966
EGREP="$ac_cv_path_EGREP"
7970
# Check whether --with-gnu-ld was given.
7971
if test "${with_gnu_ld+set}" = set; then
7972
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7978
if test "$GCC" = yes; then
7979
# Check if gcc -print-prog-name=ld gives a path.
7980
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
7981
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
7984
# gcc leaves a trailing carriage return which upsets mingw
7985
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7987
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7990
# Accept absolute paths.
7992
re_direlt='/[^/][^/]*/\.\./'
7993
# Canonicalize the pathname of ld
7994
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
7995
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7996
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
7998
test -z "$LD" && LD="$ac_prog"
8001
# If it fails, then pretend we aren't using GCC.
8005
# If it is relative, then search for the first ld in PATH.
8009
elif test "$with_gnu_ld" = yes; then
8010
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
8011
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
8013
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8014
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
8016
if test "${lt_cv_path_LD+set}" = set; then
8017
echo $ECHO_N "(cached) $ECHO_C" >&6
8019
if test -z "$LD"; then
8020
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8021
for ac_dir in $PATH; do
8023
test -z "$ac_dir" && ac_dir=.
8024
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8025
lt_cv_path_LD="$ac_dir/$ac_prog"
8026
# Check to see if the program is GNU ld. I'd rather use --version,
8027
# but apparently some GNU ld's only accept -v.
8028
# Break only if it was the GNU/non-GNU ld that we prefer.
8029
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8030
*GNU* | *'with BFD'*)
8031
test "$with_gnu_ld" != no && break
8034
test "$with_gnu_ld" != yes && break
8041
lt_cv_path_LD="$LD" # Let the user override the test with a path.
8046
if test -n "$LD"; then
8047
{ echo "$as_me:$LINENO: result: $LD" >&5
8048
echo "${ECHO_T}$LD" >&6; }
8050
{ echo "$as_me:$LINENO: result: no" >&5
8051
echo "${ECHO_T}no" >&6; }
8053
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8054
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8055
{ (exit 1); exit 1; }; }
8056
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8057
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
8058
if test "${lt_cv_prog_gnu_ld+set}" = set; then
8059
echo $ECHO_N "(cached) $ECHO_C" >&6
8061
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
8062
case `$LD -v 2>&1 </dev/null` in
8063
*GNU* | *'with BFD'*)
8064
lt_cv_prog_gnu_ld=yes
8067
lt_cv_prog_gnu_ld=no
8071
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
8072
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
8073
with_gnu_ld=$lt_cv_prog_gnu_ld
8076
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
8077
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
8078
if test "${lt_cv_ld_reload_flag+set}" = set; then
8079
echo $ECHO_N "(cached) $ECHO_C" >&6
8081
lt_cv_ld_reload_flag='-r'
8083
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
8084
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
8085
reload_flag=$lt_cv_ld_reload_flag
8086
case $reload_flag in
8088
*) reload_flag=" $reload_flag" ;;
8090
reload_cmds='$LD$reload_flag -o $output$reload_objs'
8092
{ echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
8093
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
8094
if test "${lt_cv_path_NM+set}" = set; then
8095
echo $ECHO_N "(cached) $ECHO_C" >&6
8097
if test -n "$NM"; then
8098
# Let the user override the test.
8101
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8102
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
8104
test -z "$ac_dir" && ac_dir=.
8105
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
8106
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8107
# Check to see if the nm accepts a BSD-compat flag.
8108
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
8109
# nm: unknown option "B" ignored
8110
# Tru64's nm complains that /dev/null is an invalid object file
8111
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8112
*/dev/null* | *'Invalid file or object type'*)
8113
lt_cv_path_NM="$tmp_nm -B"
8117
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8119
lt_cv_path_NM="$tmp_nm -p"
8123
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8124
continue # so that we can try to find one that supports BSD flags
8131
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
8134
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
8135
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
8138
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
8139
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
8141
if test "$LN_S" = "ln -s"; then
8142
{ echo "$as_me:$LINENO: result: yes" >&5
8143
echo "${ECHO_T}yes" >&6; }
8145
{ echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8146
echo "${ECHO_T}no, using $LN_S" >&6; }
8149
{ echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
8150
echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
8151
if test "${lt_cv_deplibs_check_method+set}" = set; then
8152
echo $ECHO_N "(cached) $ECHO_C" >&6
8154
lt_cv_file_magic_cmd='$MAGIC_CMD'
8155
lt_cv_file_magic_test_file=
8156
lt_cv_deplibs_check_method='unknown'
8157
# Need to set the preceding variable on all platforms that support
8158
# interlibrary dependencies.
8159
# 'none' -- dependencies not supported.
8160
# `unknown' -- same as none, but documents that we really don't know.
8161
# 'pass_all' -- all dependencies passed with no checks.
8162
# 'test_compile' -- check by making test program.
8163
# 'file_magic [[regex]]' -- check by looking for files in library path
8164
# which responds to the $file_magic_cmd with a given extended regex.
8165
# If you have `file' or equivalent on your system and you're not sure
8166
# whether `pass_all' will *always* work, you probably want this one.
8170
lt_cv_deplibs_check_method=pass_all
8174
lt_cv_deplibs_check_method=pass_all
8178
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8179
lt_cv_file_magic_cmd='/usr/bin/file -L'
8180
lt_cv_file_magic_test_file=/shlib/libc.so
8184
lt_cv_deplibs_check_method=pass_all
8188
# win32_libid is a shell function defined in ltmain.sh
8189
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8190
lt_cv_file_magic_cmd='win32_libid'
8193
darwin* | rhapsody*)
8194
# this will be overwritten by pass_all, but leave it in just in case
8195
lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
8196
lt_cv_file_magic_cmd='/usr/bin/file -L'
8198
rhapsody* | darwin1.[012])
8199
lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
8202
lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
8205
lt_cv_deplibs_check_method=pass_all
8208
freebsd* | kfreebsd*-gnu)
8209
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8212
# Not sure whether the presence of OpenBSD here was a mistake.
8213
# Let's accept both of them until this is cleared up.
8214
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
8215
lt_cv_file_magic_cmd=/usr/bin/file
8216
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8220
lt_cv_deplibs_check_method=pass_all
8225
lt_cv_deplibs_check_method=pass_all
8228
hpux10.20* | hpux11*)
8229
lt_cv_file_magic_cmd=/usr/bin/file
8232
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8233
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8236
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
8237
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8240
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
8241
lt_cv_file_magic_test_file=/usr/lib/libc.sl
8246
irix5* | irix6* | nonstopux*)
8248
irix5* | nonstopux*)
8249
# this will be overridden with pass_all, but let us keep it just in case
8250
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
8254
*-32|*"-32 ") libmagic=32-bit;;
8255
*-n32|*"-n32 ") libmagic=N32;;
8256
*-64|*"-64 ") libmagic=64-bit;;
8257
*) libmagic=never-match;;
8259
# this will be overridden with pass_all, but let us keep it just in case
8260
lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
8263
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
8264
lt_cv_deplibs_check_method=pass_all
8267
# This must be Linux ELF.
8270
alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh* | x86_64* )
8271
lt_cv_deplibs_check_method=pass_all ;;
8272
# the debian people say, arm and glibc 2.3.1 works for them with pass_all
8274
lt_cv_deplibs_check_method=pass_all ;;
8276
# glibc up to 2.1.1 does not perform some relocations on ARM
8277
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
8279
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
8283
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8284
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8286
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8291
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8292
lt_cv_file_magic_cmd=/usr/bin/file
8293
lt_cv_file_magic_test_file=/usr/lib/libnls.so
8297
lt_cv_deplibs_check_method=unknown
8301
lt_cv_file_magic_cmd=/usr/bin/file
8302
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8303
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8304
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
8306
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
8310
osf3* | osf4* | osf5*)
8311
# this will be overridden with pass_all, but let us keep it just in case
8312
lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
8313
lt_cv_file_magic_test_file=/shlib/libc.so
8314
lt_cv_deplibs_check_method=pass_all
8318
lt_cv_deplibs_check_method=pass_all
8322
lt_cv_deplibs_check_method=pass_all
8323
lt_cv_file_magic_test_file=/lib/libc.so
8326
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8327
case $host_vendor in
8329
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]'
8330
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8333
lt_cv_deplibs_check_method=pass_all
8336
lt_cv_file_magic_cmd='/bin/file'
8337
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8340
lt_cv_file_magic_cmd='/bin/file'
8341
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8342
lt_cv_file_magic_test_file=/lib/libc.so
8345
lt_cv_deplibs_check_method=pass_all
8350
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
8351
lt_cv_deplibs_check_method=pass_all
8356
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
8357
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
8358
file_magic_cmd=$lt_cv_file_magic_cmd
8359
deplibs_check_method=$lt_cv_deplibs_check_method
8360
test -z "$deplibs_check_method" && deplibs_check_method=unknown
8363
# If no C compiler was specified, use CC.
8366
# Allow CC to be a program name with arguments.
8369
# Check whether --enable-libtool-lock was given.
8370
if test "${enable_libtool_lock+set}" = set; then
8371
enableval=$enable_libtool_lock;
8374
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8376
# Some flags need to be propagated to the compiler or linker for good
8380
# Find out which ABI we are using.
8381
echo 'int i;' > conftest.$ac_ext
8382
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8383
(eval $ac_compile) 2>&5
8385
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386
(exit $ac_status); }; then
8387
case `/usr/bin/file conftest.$ac_objext` in
8399
# Find out which ABI we are using.
8400
echo '#line 8400 "configure"' > conftest.$ac_ext
8401
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8402
(eval $ac_compile) 2>&5
8404
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405
(exit $ac_status); }; then
8406
if test "$lt_cv_prog_gnu_ld" = yes; then
8407
case `/usr/bin/file conftest.$ac_objext` in
8409
LD="${LD-ld} -melf32bsmip"
8412
LD="${LD-ld} -melf32bmipn32"
8415
LD="${LD-ld} -melf64bmip"
8419
case `/usr/bin/file conftest.$ac_objext` in
8435
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
8436
# Find out which ABI we are using.
8437
echo 'int i;' > conftest.$ac_ext
8438
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8439
(eval $ac_compile) 2>&5
8441
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442
(exit $ac_status); }; then
8443
case "`/usr/bin/file conftest.o`" in
8448
LD="${LD-ld} -m elf_i386"
8451
LD="${LD-ld} -m elf32ppclinux"
8454
LD="${LD-ld} -m elf_s390"
8457
LD="${LD-ld} -m elf32_sparc"
8465
LD="${LD-ld} -m elf_x86_64"
8467
ppc*-*linux*|powerpc*-*linux*)
8468
LD="${LD-ld} -m elf64ppc"
8471
LD="${LD-ld} -m elf64_s390"
8474
LD="${LD-ld} -m elf64_sparc"
8484
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
8485
SAVE_CFLAGS="$CFLAGS"
8486
CFLAGS="$CFLAGS -belf"
8487
{ echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
8488
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
8489
if test "${lt_cv_cc_needs_belf+set}" = set; then
8490
echo $ECHO_N "(cached) $ECHO_C" >&6
8493
ac_cpp='$CPP $CPPFLAGS'
8494
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8495
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8496
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8498
cat >conftest.$ac_ext <<_ACEOF
8501
cat confdefs.h >>conftest.$ac_ext
8502
cat >>conftest.$ac_ext <<_ACEOF
8503
/* end confdefs.h. */
8513
rm -f conftest.$ac_objext conftest$ac_exeext
8514
if { (ac_try="$ac_link"
8516
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8517
*) ac_try_echo=$ac_try;;
8519
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8520
(eval "$ac_link") 2>conftest.er1
8522
grep -v '^ *+' conftest.er1 >conftest.err
8524
cat conftest.err >&5
8525
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526
(exit $ac_status); } && {
8527
test -z "$ac_c_werror_flag" ||
8528
test ! -s conftest.err
8529
} && test -s conftest$ac_exeext &&
8530
$as_test_x conftest$ac_exeext; then
8531
lt_cv_cc_needs_belf=yes
8533
echo "$as_me: failed program was:" >&5
8534
sed 's/^/| /' conftest.$ac_ext >&5
8536
lt_cv_cc_needs_belf=no
8539
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8540
conftest$ac_exeext conftest.$ac_ext
8542
ac_cpp='$CPP $CPPFLAGS'
8543
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8544
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8545
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8548
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
8549
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
8550
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8551
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8552
CFLAGS="$SAVE_CFLAGS"
8558
need_locks="$enable_libtool_lock"
8562
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8563
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
8564
if test "${ac_cv_header_stdc+set}" = set; then
8565
echo $ECHO_N "(cached) $ECHO_C" >&6
8567
cat >conftest.$ac_ext <<_ACEOF
8570
cat confdefs.h >>conftest.$ac_ext
8571
cat >>conftest.$ac_ext <<_ACEOF
8572
/* end confdefs.h. */
8586
rm -f conftest.$ac_objext
8587
if { (ac_try="$ac_compile"
8589
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8590
*) ac_try_echo=$ac_try;;
8592
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8593
(eval "$ac_compile") 2>conftest.er1
8595
grep -v '^ *+' conftest.er1 >conftest.err
8597
cat conftest.err >&5
8598
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599
(exit $ac_status); } && {
8600
test -z "$ac_c_werror_flag" ||
8601
test ! -s conftest.err
8602
} && test -s conftest.$ac_objext; then
8603
ac_cv_header_stdc=yes
8605
echo "$as_me: failed program was:" >&5
8606
sed 's/^/| /' conftest.$ac_ext >&5
8608
ac_cv_header_stdc=no
8611
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8613
if test $ac_cv_header_stdc = yes; then
8614
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8615
cat >conftest.$ac_ext <<_ACEOF
8618
cat confdefs.h >>conftest.$ac_ext
8619
cat >>conftest.$ac_ext <<_ACEOF
8620
/* end confdefs.h. */
8624
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8625
$EGREP "memchr" >/dev/null 2>&1; then
8628
ac_cv_header_stdc=no
8634
if test $ac_cv_header_stdc = yes; then
8635
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8636
cat >conftest.$ac_ext <<_ACEOF
8639
cat confdefs.h >>conftest.$ac_ext
8640
cat >>conftest.$ac_ext <<_ACEOF
8641
/* end confdefs.h. */
8645
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8646
$EGREP "free" >/dev/null 2>&1; then
8649
ac_cv_header_stdc=no
8655
if test $ac_cv_header_stdc = yes; then
8656
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8657
if test "$cross_compiling" = yes; then
8660
cat >conftest.$ac_ext <<_ACEOF
8663
cat confdefs.h >>conftest.$ac_ext
8664
cat >>conftest.$ac_ext <<_ACEOF
8665
/* end confdefs.h. */
8668
#if ((' ' & 0x0FF) == 0x020)
8669
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8670
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8672
# define ISLOWER(c) \
8673
(('a' <= (c) && (c) <= 'i') \
8674
|| ('j' <= (c) && (c) <= 'r') \
8675
|| ('s' <= (c) && (c) <= 'z'))
8676
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8679
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8684
for (i = 0; i < 256; i++)
8685
if (XOR (islower (i), ISLOWER (i))
8686
|| toupper (i) != TOUPPER (i))
8691
rm -f conftest$ac_exeext
8692
if { (ac_try="$ac_link"
8694
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8695
*) ac_try_echo=$ac_try;;
8697
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8698
(eval "$ac_link") 2>&5
8700
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8702
{ (case "(($ac_try" in
8703
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8704
*) ac_try_echo=$ac_try;;
8706
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8707
(eval "$ac_try") 2>&5
8709
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8710
(exit $ac_status); }; }; then
8713
echo "$as_me: program exited with status $ac_status" >&5
8714
echo "$as_me: failed program was:" >&5
8715
sed 's/^/| /' conftest.$ac_ext >&5
8718
ac_cv_header_stdc=no
8720
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8726
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8727
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
8728
if test $ac_cv_header_stdc = yes; then
8730
cat >>confdefs.h <<\_ACEOF
8731
#define STDC_HEADERS 1
8736
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8746
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8747
inttypes.h stdint.h unistd.h
8749
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8750
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8751
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8752
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8753
echo $ECHO_N "(cached) $ECHO_C" >&6
8755
cat >conftest.$ac_ext <<_ACEOF
8758
cat confdefs.h >>conftest.$ac_ext
8759
cat >>conftest.$ac_ext <<_ACEOF
8760
/* end confdefs.h. */
8761
$ac_includes_default
8763
#include <$ac_header>
8765
rm -f conftest.$ac_objext
8766
if { (ac_try="$ac_compile"
8768
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8769
*) ac_try_echo=$ac_try;;
8771
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8772
(eval "$ac_compile") 2>conftest.er1
8774
grep -v '^ *+' conftest.er1 >conftest.err
8776
cat conftest.err >&5
8777
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778
(exit $ac_status); } && {
8779
test -z "$ac_c_werror_flag" ||
8780
test ! -s conftest.err
8781
} && test -s conftest.$ac_objext; then
8782
eval "$as_ac_Header=yes"
8784
echo "$as_me: failed program was:" >&5
8785
sed 's/^/| /' conftest.$ac_ext >&5
8787
eval "$as_ac_Header=no"
8790
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8792
ac_res=`eval echo '${'$as_ac_Header'}'`
8793
{ echo "$as_me:$LINENO: result: $ac_res" >&5
8794
echo "${ECHO_T}$ac_res" >&6; }
8795
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8796
cat >>confdefs.h <<_ACEOF
8797
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8806
for ac_header in dlfcn.h
8808
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8809
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8810
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8811
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8812
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8813
echo $ECHO_N "(cached) $ECHO_C" >&6
8815
ac_res=`eval echo '${'$as_ac_Header'}'`
8816
{ echo "$as_me:$LINENO: result: $ac_res" >&5
8817
echo "${ECHO_T}$ac_res" >&6; }
8819
# Is the header compilable?
8820
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8821
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8822
cat >conftest.$ac_ext <<_ACEOF
8825
cat confdefs.h >>conftest.$ac_ext
8826
cat >>conftest.$ac_ext <<_ACEOF
8827
/* end confdefs.h. */
8828
$ac_includes_default
8829
#include <$ac_header>
8831
rm -f conftest.$ac_objext
8832
if { (ac_try="$ac_compile"
8834
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8835
*) ac_try_echo=$ac_try;;
8837
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8838
(eval "$ac_compile") 2>conftest.er1
8840
grep -v '^ *+' conftest.er1 >conftest.err
8842
cat conftest.err >&5
8843
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844
(exit $ac_status); } && {
8845
test -z "$ac_c_werror_flag" ||
8846
test ! -s conftest.err
8847
} && test -s conftest.$ac_objext; then
8848
ac_header_compiler=yes
8850
echo "$as_me: failed program was:" >&5
8851
sed 's/^/| /' conftest.$ac_ext >&5
8853
ac_header_compiler=no
8856
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8857
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8858
echo "${ECHO_T}$ac_header_compiler" >&6; }
8860
# Is the header present?
8861
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8862
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8863
cat >conftest.$ac_ext <<_ACEOF
8866
cat confdefs.h >>conftest.$ac_ext
8867
cat >>conftest.$ac_ext <<_ACEOF
8868
/* end confdefs.h. */
8869
#include <$ac_header>
8871
if { (ac_try="$ac_cpp conftest.$ac_ext"
8873
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8874
*) ac_try_echo=$ac_try;;
8876
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8877
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8879
grep -v '^ *+' conftest.er1 >conftest.err
8881
cat conftest.err >&5
8882
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883
(exit $ac_status); } >/dev/null && {
8884
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8885
test ! -s conftest.err
8887
ac_header_preproc=yes
8889
echo "$as_me: failed program was:" >&5
8890
sed 's/^/| /' conftest.$ac_ext >&5
8892
ac_header_preproc=no
8895
rm -f conftest.err conftest.$ac_ext
8896
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8897
echo "${ECHO_T}$ac_header_preproc" >&6; }
8899
# So? What about this header?
8900
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8902
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8903
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8904
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8905
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8906
ac_header_preproc=yes
8909
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8910
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8911
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8912
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8913
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8914
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8915
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8916
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8917
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8918
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8919
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8920
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8924
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8925
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8926
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8927
echo $ECHO_N "(cached) $ECHO_C" >&6
8929
eval "$as_ac_Header=\$ac_header_preproc"
8931
ac_res=`eval echo '${'$as_ac_Header'}'`
8932
{ echo "$as_me:$LINENO: result: $ac_res" >&5
8933
echo "${ECHO_T}$ac_res" >&6; }
8936
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8937
cat >>confdefs.h <<_ACEOF
8938
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8946
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
8947
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8948
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
8949
if test -n "$ac_tool_prefix"; then
8950
for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
8952
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8953
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8954
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8955
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8956
if test "${ac_cv_prog_F77+set}" = set; then
8957
echo $ECHO_N "(cached) $ECHO_C" >&6
8959
if test -n "$F77"; then
8960
ac_cv_prog_F77="$F77" # Let the user override the test.
8962
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8966
test -z "$as_dir" && as_dir=.
8967
for ac_exec_ext in '' $ac_executable_extensions; do
8968
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8969
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
8970
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8980
if test -n "$F77"; then
8981
{ echo "$as_me:$LINENO: result: $F77" >&5
8982
echo "${ECHO_T}$F77" >&6; }
8984
{ echo "$as_me:$LINENO: result: no" >&5
8985
echo "${ECHO_T}no" >&6; }
8989
test -n "$F77" && break
8992
if test -z "$F77"; then
8994
for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
8996
# Extract the first word of "$ac_prog", so it can be a program name with args.
8997
set dummy $ac_prog; ac_word=$2
8998
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8999
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9000
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
9001
echo $ECHO_N "(cached) $ECHO_C" >&6
9003
if test -n "$ac_ct_F77"; then
9004
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
9006
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9010
test -z "$as_dir" && as_dir=.
9011
for ac_exec_ext in '' $ac_executable_extensions; do
9012
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9013
ac_cv_prog_ac_ct_F77="$ac_prog"
9014
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9023
ac_ct_F77=$ac_cv_prog_ac_ct_F77
9024
if test -n "$ac_ct_F77"; then
9025
{ echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
9026
echo "${ECHO_T}$ac_ct_F77" >&6; }
9028
{ echo "$as_me:$LINENO: result: no" >&5
9029
echo "${ECHO_T}no" >&6; }
9033
test -n "$ac_ct_F77" && break
9036
if test "x$ac_ct_F77" = x; then
9039
case $cross_compiling:$ac_tool_warned in
9041
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9042
whose name does not start with the host triplet. If you think this
9043
configuration is useful to you, please write to autoconf@gnu.org." >&5
9044
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9045
whose name does not start with the host triplet. If you think this
9046
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9047
ac_tool_warned=yes ;;
9054
# Provide some information about the compiler.
9055
echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
9056
ac_compiler=`set X $ac_compile; echo $2`
9057
{ (ac_try="$ac_compiler --version >&5"
9059
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9060
*) ac_try_echo=$ac_try;;
9062
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9063
(eval "$ac_compiler --version >&5") 2>&5
9065
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9066
(exit $ac_status); }
9067
{ (ac_try="$ac_compiler -v >&5"
9069
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9070
*) ac_try_echo=$ac_try;;
9072
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9073
(eval "$ac_compiler -v >&5") 2>&5
9075
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9076
(exit $ac_status); }
9077
{ (ac_try="$ac_compiler -V >&5"
9079
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9080
*) ac_try_echo=$ac_try;;
9082
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9083
(eval "$ac_compiler -V >&5") 2>&5
9085
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9086
(exit $ac_status); }
9089
# If we don't use `.F' as extension, the preprocessor is not run on the
9090
# input file. (Note that this only needs to work for GNU compilers.)
9093
{ echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
9094
echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
9095
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
9096
echo $ECHO_N "(cached) $ECHO_C" >&6
9098
cat >conftest.$ac_ext <<_ACEOF
9106
rm -f conftest.$ac_objext
9107
if { (ac_try="$ac_compile"
9109
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9110
*) ac_try_echo=$ac_try;;
9112
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9113
(eval "$ac_compile") 2>conftest.er1
9115
grep -v '^ *+' conftest.er1 >conftest.err
9117
cat conftest.err >&5
9118
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119
(exit $ac_status); } && {
9120
test -z "$ac_f77_werror_flag" ||
9121
test ! -s conftest.err
9122
} && test -s conftest.$ac_objext; then
9125
echo "$as_me: failed program was:" >&5
9126
sed 's/^/| /' conftest.$ac_ext >&5
9131
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9132
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
9135
{ echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
9136
echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
9138
ac_test_FFLAGS=${FFLAGS+set}
9139
ac_save_FFLAGS=$FFLAGS
9141
{ echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
9142
echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
9143
if test "${ac_cv_prog_f77_g+set}" = set; then
9144
echo $ECHO_N "(cached) $ECHO_C" >&6
9147
cat >conftest.$ac_ext <<_ACEOF
9152
rm -f conftest.$ac_objext
9153
if { (ac_try="$ac_compile"
9155
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9156
*) ac_try_echo=$ac_try;;
9158
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9159
(eval "$ac_compile") 2>conftest.er1
9161
grep -v '^ *+' conftest.er1 >conftest.err
9163
cat conftest.err >&5
9164
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165
(exit $ac_status); } && {
9166
test -z "$ac_f77_werror_flag" ||
9167
test ! -s conftest.err
9168
} && test -s conftest.$ac_objext; then
9169
ac_cv_prog_f77_g=yes
9171
echo "$as_me: failed program was:" >&5
9172
sed 's/^/| /' conftest.$ac_ext >&5
9177
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9180
{ echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
9181
echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
9182
if test "$ac_test_FFLAGS" = set; then
9183
FFLAGS=$ac_save_FFLAGS
9184
elif test $ac_cv_prog_f77_g = yes; then
9185
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
9191
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
9198
G77=`test $ac_compiler_gnu = yes && echo yes`
9200
ac_cpp='$CPP $CPPFLAGS'
9201
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9202
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9203
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9207
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
9209
# find the maximum length of command line arguments
9210
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
9211
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
9212
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
9213
echo $ECHO_N "(cached) $ECHO_C" >&6
9220
# On DJGPP, this test can blow up pretty badly due to problems in libc
9221
# (any single argument exceeding 2000 bytes causes a buffer overrun
9222
# during glob expansion). Even if it were fixed, the result of this
9223
# check would be larger than it should be.
9224
lt_cv_sys_max_cmd_len=12288; # 12K is about right
9228
# Under GNU Hurd, this test is not required because there is
9229
# no limit to the length of command line arguments.
9230
# Libtool will interpret -1 as no limit whatsoever
9231
lt_cv_sys_max_cmd_len=-1;
9235
# On Win9x/ME, this test blows up -- it succeeds, but takes
9236
# about 5 minutes as the teststring grows exponentially.
9237
# Worse, since 9x/ME are not pre-emptively multitasking,
9238
# you end up with a "frozen" computer, even though with patience
9239
# the test eventually succeeds (with a max line length of 256k).
9240
# Instead, let's just punt: use the minimum linelength reported by
9241
# all of the supported platforms: 8192 (on NT/2K/XP).
9242
lt_cv_sys_max_cmd_len=8192;
9246
# If test is not a shell built-in, we'll probably end up computing a
9247
# maximum length that is only half of the actual maximum length, but
9249
while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
9250
= "XX$testring") >/dev/null 2>&1 &&
9251
new_result=`expr "X$testring" : ".*" 2>&1` &&
9252
lt_cv_sys_max_cmd_len=$new_result &&
9253
test $i != 17 # 1/2 MB should be enough
9256
testring=$testring$testring
9259
# Add a significant safety factor because C++ compilers can tack on massive
9260
# amounts of additional arguments before passing them to the linker.
9261
# It appears as though 1/2 is a usable value.
9262
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9268
if test -n $lt_cv_sys_max_cmd_len ; then
9269
{ echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
9270
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
9272
{ echo "$as_me:$LINENO: result: none" >&5
9273
echo "${ECHO_T}none" >&6; }
9279
# Check for command to grab the raw symbol name followed by C symbol from nm.
9280
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9281
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9282
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9283
echo $ECHO_N "(cached) $ECHO_C" >&6
9286
# These are sane defaults that work on at least a few old systems.
9287
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9289
# Character class describing NM global symbol codes.
9290
symcode='[BCDEGRST]'
9292
# Regexp to match symbols that can be accessed directly from C.
9293
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9295
# Transform the above into a raw symbol and a C symbol.
9296
symxfrm='\1 \2\3 \3'
9298
# Transform an extracted symbol line into a proper C declaration
9299
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9301
# Transform an extracted symbol line into symbol name and symbol address
9302
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9304
# Define system-specific variables.
9309
cygwin* | mingw* | pw32*)
9310
symcode='[ABCDGISTW]'
9312
hpux*) # Its linker distinguishes data from code symbols
9313
if test "$host_cpu" = ia64; then
9314
symcode='[ABCDEGRST]'
9316
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9317
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9320
symcode='[BCDEGRST]'
9323
symcode='[BCDEGQRST]'
9333
# Handle CRLF in mingw tool chain
9337
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9341
# If we're using GNU nm, then use its standard symbol codes.
9342
case `$NM -V 2>&1` in
9343
*GNU* | *'with BFD'*)
9344
symcode='[ABCDGISTW]' ;;
9347
# Try without a prefix undercore, then with it.
9348
for ac_symprfx in "" "_"; do
9350
# Write the raw and C identifiers.
9351
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
9353
# Check to see that the pipe works correctly.
9357
cat > conftest.$ac_ext <<EOF
9362
void nm_test_func(){}
9366
int main(){nm_test_var='a';nm_test_func();return(0);}
9369
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9370
(eval $ac_compile) 2>&5
9372
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373
(exit $ac_status); }; then
9374
# Now try to grab the symbols.
9376
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9377
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9379
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9380
(exit $ac_status); } && test -s "$nlist"; then
9381
# Try sorting and uniquifying the output.
9382
if sort "$nlist" | uniq > "$nlist"T; then
9383
mv -f "$nlist"T "$nlist"
9388
# Make sure that we snagged all the symbols we need.
9389
if grep ' nm_test_var$' "$nlist" >/dev/null; then
9390
if grep ' nm_test_func$' "$nlist" >/dev/null; then
9391
cat <<EOF > conftest.$ac_ext
9397
# Now generate the symbol file.
9398
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9400
cat <<EOF >> conftest.$ac_ext
9401
#if defined (__STDC__) && __STDC__
9402
# define lt_ptr_t void *
9404
# define lt_ptr_t char *
9408
/* The mapping between symbol names and symbols. */
9413
lt_preloaded_symbols[] =
9416
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9417
cat <<\EOF >> conftest.$ac_ext
9425
# Now try linking the two files.
9426
mv conftest.$ac_objext conftstm.$ac_objext
9427
lt_save_LIBS="$LIBS"
9428
lt_save_CFLAGS="$CFLAGS"
9429
LIBS="conftstm.$ac_objext"
9430
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9431
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9432
(eval $ac_link) 2>&5
9434
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435
(exit $ac_status); } && test -s conftest${ac_exeext}; then
9438
LIBS="$lt_save_LIBS"
9439
CFLAGS="$lt_save_CFLAGS"
9441
echo "cannot find nm_test_func in $nlist" >&5
9444
echo "cannot find nm_test_var in $nlist" >&5
9447
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9450
echo "$progname: failed program was:" >&5
9451
cat conftest.$ac_ext >&5
9453
rm -f conftest* conftst*
9455
# Do not use the global_symbol_pipe unless it works.
9456
if test "$pipe_works" = yes; then
9459
lt_cv_sys_global_symbol_pipe=
9465
if test -z "$lt_cv_sys_global_symbol_pipe"; then
9466
lt_cv_sys_global_symbol_to_cdecl=
9468
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9469
{ echo "$as_me:$LINENO: result: failed" >&5
9470
echo "${ECHO_T}failed" >&6; }
9472
{ echo "$as_me:$LINENO: result: ok" >&5
9473
echo "${ECHO_T}ok" >&6; }
9476
{ echo "$as_me:$LINENO: checking for objdir" >&5
9477
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9478
if test "${lt_cv_objdir+set}" = set; then
9479
echo $ECHO_N "(cached) $ECHO_C" >&6
9481
rm -f .libs 2>/dev/null
9482
mkdir .libs 2>/dev/null
9483
if test -d .libs; then
9486
# MS-DOS does not allow filenames that begin with a dot.
9489
rmdir .libs 2>/dev/null
9491
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9492
echo "${ECHO_T}$lt_cv_objdir" >&6; }
9493
objdir=$lt_cv_objdir
9501
# AIX sometimes has problems with the GCC collect2 program. For some
9502
# reason, if we set the COLLECT_NAMES environment variable, the problems
9503
# vanish in a puff of smoke.
9504
if test "X${COLLECT_NAMES+set}" != Xset; then
9506
export COLLECT_NAMES
9511
# Sed substitution that helps us do robust quoting. It backslashifies
9512
# metacharacters that are still active within double-quoted strings.
9513
Xsed='sed -e s/^X//'
9514
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
9516
# Same as above, but do not quote variable references.
9517
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
9519
# Sed substitution to delay expansion of an escaped shell variable in a
9520
# double_quote_subst'ed string.
9521
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9523
# Sed substitution to avoid accidental globbing in evaled expressions
9524
no_glob_subst='s/\*/\\\*/g'
9530
default_ofile=libtool
9531
can_build_shared=yes
9533
# All known linkers require a `.a' archive for static linking (except M$VC,
9534
# which needs '.lib').
9536
ltmain="$ac_aux_dir/ltmain.sh"
9537
ofile="$default_ofile"
9538
with_gnu_ld="$lt_cv_prog_gnu_ld"
9540
if test -n "$ac_tool_prefix"; then
9541
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9542
set dummy ${ac_tool_prefix}ar; ac_word=$2
9543
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9544
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9545
if test "${ac_cv_prog_AR+set}" = set; then
9546
echo $ECHO_N "(cached) $ECHO_C" >&6
9548
if test -n "$AR"; then
9549
ac_cv_prog_AR="$AR" # Let the user override the test.
9551
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9555
test -z "$as_dir" && as_dir=.
9556
for ac_exec_ext in '' $ac_executable_extensions; do
9557
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9558
ac_cv_prog_AR="${ac_tool_prefix}ar"
9559
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9569
if test -n "$AR"; then
9570
{ echo "$as_me:$LINENO: result: $AR" >&5
9571
echo "${ECHO_T}$AR" >&6; }
9573
{ echo "$as_me:$LINENO: result: no" >&5
9574
echo "${ECHO_T}no" >&6; }
9579
if test -z "$ac_cv_prog_AR"; then
9581
# Extract the first word of "ar", so it can be a program name with args.
9582
set dummy ar; ac_word=$2
9583
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9584
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9585
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9586
echo $ECHO_N "(cached) $ECHO_C" >&6
9588
if test -n "$ac_ct_AR"; then
9589
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9591
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9595
test -z "$as_dir" && as_dir=.
9596
for ac_exec_ext in '' $ac_executable_extensions; do
9597
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9598
ac_cv_prog_ac_ct_AR="ar"
9599
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9608
ac_ct_AR=$ac_cv_prog_ac_ct_AR
9609
if test -n "$ac_ct_AR"; then
9610
{ echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9611
echo "${ECHO_T}$ac_ct_AR" >&6; }
9613
{ echo "$as_me:$LINENO: result: no" >&5
9614
echo "${ECHO_T}no" >&6; }
9617
if test "x$ac_ct_AR" = x; then
9620
case $cross_compiling:$ac_tool_warned in
9622
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9623
whose name does not start with the host triplet. If you think this
9624
configuration is useful to you, please write to autoconf@gnu.org." >&5
9625
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9626
whose name does not start with the host triplet. If you think this
9627
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9628
ac_tool_warned=yes ;;
9636
if test -n "$ac_tool_prefix"; then
9637
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9638
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9639
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9640
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9641
if test "${ac_cv_prog_RANLIB+set}" = set; then
9642
echo $ECHO_N "(cached) $ECHO_C" >&6
9644
if test -n "$RANLIB"; then
9645
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9647
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9651
test -z "$as_dir" && as_dir=.
9652
for ac_exec_ext in '' $ac_executable_extensions; do
9653
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9654
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9655
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9664
RANLIB=$ac_cv_prog_RANLIB
9665
if test -n "$RANLIB"; then
9666
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
9667
echo "${ECHO_T}$RANLIB" >&6; }
9669
{ echo "$as_me:$LINENO: result: no" >&5
9670
echo "${ECHO_T}no" >&6; }
9675
if test -z "$ac_cv_prog_RANLIB"; then
9676
ac_ct_RANLIB=$RANLIB
9677
# Extract the first word of "ranlib", so it can be a program name with args.
9678
set dummy ranlib; ac_word=$2
9679
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9680
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9681
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9682
echo $ECHO_N "(cached) $ECHO_C" >&6
9684
if test -n "$ac_ct_RANLIB"; then
9685
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9687
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9691
test -z "$as_dir" && as_dir=.
9692
for ac_exec_ext in '' $ac_executable_extensions; do
9693
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9694
ac_cv_prog_ac_ct_RANLIB="ranlib"
9695
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9704
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9705
if test -n "$ac_ct_RANLIB"; then
9706
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9707
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
9709
{ echo "$as_me:$LINENO: result: no" >&5
9710
echo "${ECHO_T}no" >&6; }
9713
if test "x$ac_ct_RANLIB" = x; then
9716
case $cross_compiling:$ac_tool_warned in
9718
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9719
whose name does not start with the host triplet. If you think this
9720
configuration is useful to you, please write to autoconf@gnu.org." >&5
9721
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9722
whose name does not start with the host triplet. If you think this
9723
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9724
ac_tool_warned=yes ;;
9726
RANLIB=$ac_ct_RANLIB
9729
RANLIB="$ac_cv_prog_RANLIB"
9732
if test -n "$ac_tool_prefix"; then
9733
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9734
set dummy ${ac_tool_prefix}strip; ac_word=$2
9735
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9736
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9737
if test "${ac_cv_prog_STRIP+set}" = set; then
9738
echo $ECHO_N "(cached) $ECHO_C" >&6
9740
if test -n "$STRIP"; then
9741
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9743
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9747
test -z "$as_dir" && as_dir=.
9748
for ac_exec_ext in '' $ac_executable_extensions; do
9749
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9750
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9751
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9760
STRIP=$ac_cv_prog_STRIP
9761
if test -n "$STRIP"; then
9762
{ echo "$as_me:$LINENO: result: $STRIP" >&5
9763
echo "${ECHO_T}$STRIP" >&6; }
9765
{ echo "$as_me:$LINENO: result: no" >&5
9766
echo "${ECHO_T}no" >&6; }
9771
if test -z "$ac_cv_prog_STRIP"; then
9773
# Extract the first word of "strip", so it can be a program name with args.
9774
set dummy strip; ac_word=$2
9775
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9776
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9777
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9778
echo $ECHO_N "(cached) $ECHO_C" >&6
9780
if test -n "$ac_ct_STRIP"; then
9781
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9783
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9787
test -z "$as_dir" && as_dir=.
9788
for ac_exec_ext in '' $ac_executable_extensions; do
9789
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9790
ac_cv_prog_ac_ct_STRIP="strip"
9791
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9800
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9801
if test -n "$ac_ct_STRIP"; then
9802
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9803
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
9805
{ echo "$as_me:$LINENO: result: no" >&5
9806
echo "${ECHO_T}no" >&6; }
9809
if test "x$ac_ct_STRIP" = x; then
9812
case $cross_compiling:$ac_tool_warned in
9814
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9815
whose name does not start with the host triplet. If you think this
9816
configuration is useful to you, please write to autoconf@gnu.org." >&5
9817
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9818
whose name does not start with the host triplet. If you think this
9819
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9820
ac_tool_warned=yes ;;
9825
STRIP="$ac_cv_prog_STRIP"
9830
old_CFLAGS="$CFLAGS"
9832
# Set sane defaults for various variables
9833
test -z "$AR" && AR=ar
9834
test -z "$AR_FLAGS" && AR_FLAGS=cru
9835
test -z "$AS" && AS=as
9836
test -z "$CC" && CC=cc
9837
test -z "$LTCC" && LTCC=$CC
9838
test -z "$DLLTOOL" && DLLTOOL=dlltool
9839
test -z "$LD" && LD=ld
9840
test -z "$LN_S" && LN_S="ln -s"
9841
test -z "$MAGIC_CMD" && MAGIC_CMD=file
9842
test -z "$NM" && NM=nm
9843
test -z "$SED" && SED=sed
9844
test -z "$OBJDUMP" && OBJDUMP=objdump
9845
test -z "$RANLIB" && RANLIB=:
9846
test -z "$STRIP" && STRIP=:
9847
test -z "$ac_objext" && ac_objext=o
9849
# Determine commands to create old-style static archives.
9850
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
9851
old_postinstall_cmds='chmod 644 $oldlib'
9852
old_postuninstall_cmds=
9854
if test -n "$RANLIB"; then
9857
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
9860
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
9863
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9866
# Only perform the check for file, if the check method requires it
9867
case $deplibs_check_method in
9869
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9870
{ echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
9871
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
9872
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9873
echo $ECHO_N "(cached) $ECHO_C" >&6
9877
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9880
lt_save_MAGIC_CMD="$MAGIC_CMD"
9881
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9882
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9883
for ac_dir in $ac_dummy; do
9885
test -z "$ac_dir" && ac_dir=.
9886
if test -f $ac_dir/${ac_tool_prefix}file; then
9887
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9888
if test -n "$file_magic_test_file"; then
9889
case $deplibs_check_method in
9891
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
9892
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9893
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9894
$EGREP "$file_magic_regex" > /dev/null; then
9899
*** Warning: the command libtool uses to detect shared libraries,
9900
*** $file_magic_cmd, produces output that libtool cannot recognize.
9901
*** The result is that libtool may fail to recognize shared libraries
9902
*** as such. This will affect the creation of libtool libraries that
9903
*** depend on shared libraries, but programs linked with such libtool
9904
*** libraries will work regardless of this problem. Nevertheless, you
9905
*** may want to report the problem to your system manager and/or to
9906
*** bug-libtool@gnu.org
9916
MAGIC_CMD="$lt_save_MAGIC_CMD"
9921
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9922
if test -n "$MAGIC_CMD"; then
9923
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9924
echo "${ECHO_T}$MAGIC_CMD" >&6; }
9926
{ echo "$as_me:$LINENO: result: no" >&5
9927
echo "${ECHO_T}no" >&6; }
9930
if test -z "$lt_cv_path_MAGIC_CMD"; then
9931
if test -n "$ac_tool_prefix"; then
9932
{ echo "$as_me:$LINENO: checking for file" >&5
9933
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
9934
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
9935
echo $ECHO_N "(cached) $ECHO_C" >&6
9939
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9942
lt_save_MAGIC_CMD="$MAGIC_CMD"
9943
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9944
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9945
for ac_dir in $ac_dummy; do
9947
test -z "$ac_dir" && ac_dir=.
9948
if test -f $ac_dir/file; then
9949
lt_cv_path_MAGIC_CMD="$ac_dir/file"
9950
if test -n "$file_magic_test_file"; then
9951
case $deplibs_check_method in
9953
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
9954
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9955
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9956
$EGREP "$file_magic_regex" > /dev/null; then
9961
*** Warning: the command libtool uses to detect shared libraries,
9962
*** $file_magic_cmd, produces output that libtool cannot recognize.
9963
*** The result is that libtool may fail to recognize shared libraries
9964
*** as such. This will affect the creation of libtool libraries that
9965
*** depend on shared libraries, but programs linked with such libtool
9966
*** libraries will work regardless of this problem. Nevertheless, you
9967
*** may want to report the problem to your system manager and/or to
9968
*** bug-libtool@gnu.org
9978
MAGIC_CMD="$lt_save_MAGIC_CMD"
9983
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9984
if test -n "$MAGIC_CMD"; then
9985
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
9986
echo "${ECHO_T}$MAGIC_CMD" >&6; }
9988
{ echo "$as_me:$LINENO: result: no" >&5
9989
echo "${ECHO_T}no" >&6; }
10002
enable_win32_dll=no
10004
# Check whether --enable-libtool-lock was given.
10005
if test "${enable_libtool_lock+set}" = set; then
10006
enableval=$enable_libtool_lock;
10009
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10012
# Check whether --with-pic was given.
10013
if test "${with_pic+set}" = set; then
10014
withval=$with_pic; pic_mode="$withval"
10019
test -z "$pic_mode" && pic_mode=default
10021
# Use C for the default configuration in the libtool script
10025
ac_cpp='$CPP $CPPFLAGS'
10026
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10027
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10028
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10031
# Source file extension for C test sources.
10034
# Object file extension for compiled C test sources.
10038
# Code to be used in simple compile tests
10039
lt_simple_compile_test_code="int some_variable = 0;\n"
10041
# Code to be used in simple link tests
10042
lt_simple_link_test_code='int main(){return(0);}\n'
10045
# If no C compiler was specified, use CC.
10048
# Allow CC to be a program name with arguments.
10053
# Check for any special shared library compilation flags.
10056
if test "$GCC" = no; then
10059
lt_prog_cc_shlib='-belf'
10063
if test -n "$lt_prog_cc_shlib"; then
10064
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
10065
echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
10066
if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
10068
{ echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
10069
echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
10070
lt_cv_prog_cc_can_build_shared=no
10076
# Check to make sure the static flag actually works.
10078
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
10079
echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
10080
if test "${lt_prog_compiler_static_works+set}" = set; then
10081
echo $ECHO_N "(cached) $ECHO_C" >&6
10083
lt_prog_compiler_static_works=no
10084
save_LDFLAGS="$LDFLAGS"
10085
LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
10086
printf "$lt_simple_link_test_code" > conftest.$ac_ext
10087
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10088
# The compiler can only warn and ignore the option if not recognized
10089
# So say no if there are warnings
10090
if test -s conftest.err; then
10091
# Append any errors to the config.log.
10092
cat conftest.err 1>&5
10094
lt_prog_compiler_static_works=yes
10098
LDFLAGS="$save_LDFLAGS"
10101
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
10102
echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
10104
if test x"$lt_prog_compiler_static_works" = xyes; then
10107
lt_prog_compiler_static=
10113
## There is no encapsulation within the following macros, do not change
10114
## the running order or otherwise move them around unless you know exactly
10115
## what you are doing...
10117
lt_prog_compiler_no_builtin_flag=
10119
if test "$GCC" = yes; then
10120
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10123
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10124
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
10125
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
10126
echo $ECHO_N "(cached) $ECHO_C" >&6
10128
lt_cv_prog_compiler_rtti_exceptions=no
10129
ac_outfile=conftest.$ac_objext
10130
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10131
lt_compiler_flag="-fno-rtti -fno-exceptions"
10132
# Insert the option either (1) after the last *FLAGS variable, or
10133
# (2) before a word containing "conftest.", or (3) at the end.
10134
# Note that $ac_compile itself does not contain backslashes and begins
10135
# with a dollar sign (not a hyphen), so the echo should work correctly.
10136
# The option is referenced via a variable to avoid confusing sed.
10137
lt_compile=`echo "$ac_compile" | $SED \
10138
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10139
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10140
-e 's:$: $lt_compiler_flag:'`
10141
(eval echo "\"\$as_me:10141: $lt_compile\"" >&5)
10142
(eval "$lt_compile" 2>conftest.err)
10144
cat conftest.err >&5
10145
echo "$as_me:10145: \$? = $ac_status" >&5
10146
if (exit $ac_status) && test -s "$ac_outfile"; then
10147
# The compiler can only warn and ignore the option if not recognized
10148
# So say no if there are warnings
10149
if test ! -s conftest.err; then
10150
lt_cv_prog_compiler_rtti_exceptions=yes
10156
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10157
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10159
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10160
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10167
lt_prog_compiler_wl=
10168
lt_prog_compiler_pic=
10169
lt_prog_compiler_static=
10171
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10172
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
10174
if test "$GCC" = yes; then
10175
lt_prog_compiler_wl='-Wl,'
10176
lt_prog_compiler_static='-static'
10180
# All AIX code is PIC.
10181
if test "$host_cpu" = ia64; then
10182
# AIX 5 now supports IA64 processor
10183
lt_prog_compiler_static='-Bstatic'
10188
# FIXME: we need at least 68020 code to build shared libraries, but
10189
# adding the `-m68020' flag to GCC prevents building anything better,
10191
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10194
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10195
# PIC is the default for these OSes.
10198
mingw* | pw32* | os2*)
10199
# This hack is so that the source file can tell whether it is being
10200
# built for inclusion in a dll (and should export symbols for example).
10201
lt_prog_compiler_pic='-DDLL_EXPORT'
10204
darwin* | rhapsody*)
10205
# PIC is the default on this platform
10206
# Common symbols not allowed in MH_DYLIB files
10207
lt_prog_compiler_pic='-fno-common'
10211
# Just because we use GCC doesn't mean we suddenly get shared libraries
10212
# on systems that don't support them.
10213
lt_prog_compiler_can_build_shared=no
10218
if test -d /usr/nec; then
10219
lt_prog_compiler_pic=-Kconform_pic
10224
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10225
# not for PA HP-UX.
10226
case "$host_cpu" in
10231
lt_prog_compiler_pic='-fPIC'
10237
lt_prog_compiler_pic='-fPIC'
10241
# PORTME Check for flag to pass linker flags through the system compiler.
10244
lt_prog_compiler_wl='-Wl,'
10245
if test "$host_cpu" = ia64; then
10246
# AIX 5 now supports IA64 processor
10247
lt_prog_compiler_static='-Bstatic'
10249
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10253
mingw* | pw32* | os2*)
10254
# This hack is so that the source file can tell whether it is being
10255
# built for inclusion in a dll (and should export symbols for example).
10256
lt_prog_compiler_pic='-DDLL_EXPORT'
10259
hpux9* | hpux10* | hpux11*)
10260
lt_prog_compiler_wl='-Wl,'
10261
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10262
# not for PA HP-UX.
10263
case "$host_cpu" in
10268
lt_prog_compiler_pic='+Z'
10271
# Is there a better lt_prog_compiler_static that works with the bundled CC?
10272
lt_prog_compiler_static='${wl}-a ${wl}archive'
10275
irix5* | irix6* | nonstopux*)
10276
lt_prog_compiler_wl='-Wl,'
10277
# PIC (with -KPIC) is the default.
10278
lt_prog_compiler_static='-non_shared'
10282
lt_prog_compiler_pic='-KPIC'
10283
lt_prog_compiler_static='-Bstatic'
10289
lt_prog_compiler_wl='-Wl,'
10290
lt_prog_compiler_pic='-KPIC'
10291
lt_prog_compiler_static='-static'
10294
lt_prog_compiler_wl='-Wl,'
10295
# All Alpha code is PIC.
10296
lt_prog_compiler_static='-non_shared'
10301
osf3* | osf4* | osf5*)
10302
lt_prog_compiler_wl='-Wl,'
10303
# All OSF/1 code is PIC.
10304
lt_prog_compiler_static='-non_shared'
10308
lt_prog_compiler_pic='-Kpic'
10309
lt_prog_compiler_static='-dn'
10313
lt_prog_compiler_wl='-Wl,'
10314
lt_prog_compiler_pic='-KPIC'
10315
lt_prog_compiler_static='-Bstatic'
10319
lt_prog_compiler_wl='-Qoption ld '
10320
lt_prog_compiler_pic='-PIC'
10321
lt_prog_compiler_static='-Bstatic'
10324
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10325
lt_prog_compiler_wl='-Wl,'
10326
lt_prog_compiler_pic='-KPIC'
10327
lt_prog_compiler_static='-Bstatic'
10331
if test -d /usr/nec ;then
10332
lt_prog_compiler_pic='-Kconform_pic'
10333
lt_prog_compiler_static='-Bstatic'
10338
lt_prog_compiler_pic='-pic'
10339
lt_prog_compiler_static='-Bstatic'
10343
lt_prog_compiler_can_build_shared=no
10348
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10349
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
10352
# Check to make sure the PIC flag actually works.
10354
if test -n "$lt_prog_compiler_pic"; then
10356
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10357
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
10358
if test "${lt_prog_compiler_pic_works+set}" = set; then
10359
echo $ECHO_N "(cached) $ECHO_C" >&6
10361
lt_prog_compiler_pic_works=no
10362
ac_outfile=conftest.$ac_objext
10363
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10364
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10365
# Insert the option either (1) after the last *FLAGS variable, or
10366
# (2) before a word containing "conftest.", or (3) at the end.
10367
# Note that $ac_compile itself does not contain backslashes and begins
10368
# with a dollar sign (not a hyphen), so the echo should work correctly.
10369
# The option is referenced via a variable to avoid confusing sed.
10370
lt_compile=`echo "$ac_compile" | $SED \
10371
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10372
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10373
-e 's:$: $lt_compiler_flag:'`
10374
(eval echo "\"\$as_me:10374: $lt_compile\"" >&5)
10375
(eval "$lt_compile" 2>conftest.err)
10377
cat conftest.err >&5
10378
echo "$as_me:10378: \$? = $ac_status" >&5
10379
if (exit $ac_status) && test -s "$ac_outfile"; then
10380
# The compiler can only warn and ignore the option if not recognized
10381
# So say no if there are warnings
10382
if test ! -s conftest.err; then
10383
lt_prog_compiler_pic_works=yes
10389
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
10390
echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
10392
if test x"$lt_prog_compiler_pic_works" = xyes; then
10393
case $lt_prog_compiler_pic in
10395
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10398
lt_prog_compiler_pic=
10399
lt_prog_compiler_can_build_shared=no
10404
# For platforms which do not support PIC, -DPIC is meaningless:
10406
lt_prog_compiler_pic=
10409
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10413
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10414
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
10415
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10416
echo $ECHO_N "(cached) $ECHO_C" >&6
10418
lt_cv_prog_compiler_c_o=no
10419
$rm -r conftest 2>/dev/null
10423
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10425
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10426
# that will create temporary files in the current directory regardless of
10427
# the output directory. Thus, making CWD read-only will cause this test
10428
# to fail, enabling locking or at least warning the user not to do parallel
10432
lt_compiler_flag="-o out/conftest2.$ac_objext"
10433
# Insert the option either (1) after the last *FLAGS variable, or
10434
# (2) before a word containing "conftest.", or (3) at the end.
10435
# Note that $ac_compile itself does not contain backslashes and begins
10436
# with a dollar sign (not a hyphen), so the echo should work correctly.
10437
lt_compile=`echo "$ac_compile" | $SED \
10438
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10439
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10440
-e 's:$: $lt_compiler_flag:'`
10441
(eval echo "\"\$as_me:10441: $lt_compile\"" >&5)
10442
(eval "$lt_compile" 2>out/conftest.err)
10444
cat out/conftest.err >&5
10445
echo "$as_me:10445: \$? = $ac_status" >&5
10446
if (exit $ac_status) && test -s out/conftest2.$ac_objext
10448
# The compiler can only warn and ignore the option if not recognized
10449
# So say no if there are warnings
10450
if test ! -s out/conftest.err; then
10451
lt_cv_prog_compiler_c_o=yes
10455
$rm conftest* out/*
10462
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10463
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
10466
hard_links="nottested"
10467
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10468
# do not overwrite the value of need_locks provided by the user
10469
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10470
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
10473
ln conftest.a conftest.b 2>/dev/null && hard_links=no
10475
ln conftest.a conftest.b 2>&5 || hard_links=no
10476
ln conftest.a conftest.b 2>/dev/null && hard_links=no
10477
{ echo "$as_me:$LINENO: result: $hard_links" >&5
10478
echo "${ECHO_T}$hard_links" >&6; }
10479
if test "$hard_links" = no; then
10480
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10481
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10488
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10489
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10492
allow_undefined_flag=
10493
enable_shared_with_static_runtimes=no
10495
archive_expsym_cmds=
10496
old_archive_From_new_cmds=
10497
old_archive_from_expsyms_cmds=
10498
export_dynamic_flag_spec=
10499
whole_archive_flag_spec=
10500
thread_safe_flag_spec=
10501
hardcode_libdir_flag_spec=
10502
hardcode_libdir_flag_spec_ld=
10503
hardcode_libdir_separator=
10505
hardcode_minus_L=no
10506
hardcode_shlibpath_var=unsupported
10507
link_all_deplibs=unknown
10508
hardcode_automatic=no
10510
module_expsym_cmds=
10511
always_export_symbols=no
10512
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10513
# include_expsyms should be a list of space-separated symbols to be *always*
10514
# included in the symbol list
10516
# exclude_expsyms can be an extended regexp of symbols to exclude
10517
# it will be wrapped by ` (' and `)$', so one must not match beginning or
10518
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10519
# as well as any symbol that contains `d'.
10520
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
10521
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10522
# platforms (ab)use it in PIC code, but their linkers get confused if
10523
# the symbol is explicitly referenced. Since portable code cannot
10524
# rely on this symbol name, it's probably fine to never include it in
10525
# preloaded symbol tables.
10526
extract_expsyms_cmds=
10529
cygwin* | mingw* | pw32*)
10530
# FIXME: the MSVC++ port hasn't been tested in a loooong time
10531
# When not using gcc, we currently assume that we are using
10532
# Microsoft Visual C++.
10533
if test "$GCC" != yes; then
10543
if test "$with_gnu_ld" = yes; then
10544
# If archive_cmds runs LD, not CC, wlarc should be empty
10547
# See if GNU ld supports shared libraries.
10549
aix3* | aix4* | aix5*)
10550
# On AIX/PPC, the GNU linker is very broken
10551
if test "$host_cpu" != ia64; then
10555
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10556
*** to be unable to reliably create shared libraries on AIX.
10557
*** Therefore, libtool is disabling shared libraries support. If you
10558
*** really care for shared libraries, you may want to modify your PATH
10559
*** so that a non-GNU linker is found, and then restart.
10566
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)'
10567
hardcode_libdir_flag_spec='-L$libdir'
10568
hardcode_minus_L=yes
10570
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10571
# that the semantics of dynamic libraries on AmigaOS, at least up
10572
# to version 4, is to share data among multiple programs linked
10573
# with the same dynamic library. Since this doesn't match the
10574
# behavior of shared libraries on other platforms, we can't use
10580
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10581
allow_undefined_flag=unsupported
10582
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10583
# support --undefined. This deserves some investigation. FIXME
10584
archive_cmds='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
10590
cygwin* | mingw* | pw32*)
10591
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10592
# as there is no search path for DLLs.
10593
hardcode_libdir_flag_spec='-L$libdir'
10594
allow_undefined_flag=no
10595
always_export_symbols=no
10596
enable_shared_with_static_runtimes=yes
10597
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10599
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10600
archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10601
# If the export-symbols file already is a .def file (1st line
10602
# is EXPORTS), use it as is; otherwise, prepend...
10603
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10604
cp $export_symbols $output_objdir/$soname.def;
10606
echo EXPORTS > $output_objdir/$soname.def;
10607
cat $export_symbols >> $output_objdir/$soname.def;
10609
$CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10616
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10617
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10620
archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
10621
archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10626
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10630
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10631
*** create shared libraries on Solaris systems. Therefore, libtool
10632
*** is disabling shared libraries support. We urge you to upgrade GNU
10633
*** binutils to release 2.9.1 or newer. Another option is to modify
10634
*** your PATH or compiler configuration so that the native linker is
10635
*** used, and then restart.
10638
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10639
archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
10640
archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10647
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10649
hardcode_direct=yes
10650
hardcode_shlibpath_var=no
10654
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10655
archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
10656
archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10663
if test "$ld_shlibs" = yes; then
10664
runpath_var=LD_RUN_PATH
10665
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
10666
export_dynamic_flag_spec='${wl}--export-dynamic'
10667
# ancient GNU ld didn't support --whole-archive et. al.
10668
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
10669
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10671
whole_archive_flag_spec=
10675
# PORTME fill in a description of your system's linker (not GNU ld)
10678
allow_undefined_flag=unsupported
10679
always_export_symbols=yes
10680
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'
10681
# Note: this linker hardcodes the directories in LIBPATH if there
10682
# are no directories specified by -L.
10683
hardcode_minus_L=yes
10684
if test "$GCC" = yes && test -z "$link_static_flag"; then
10685
# Neither direct hardcoding nor static linking is supported with a
10687
hardcode_direct=unsupported
10692
if test "$host_cpu" = ia64; then
10693
# On IA64, the linker does run time linking by default, so we don't
10694
# have to do anything special.
10695
aix_use_runtimelinking=no
10696
exp_sym_flag='-Bexport'
10699
# If we're using GNU nm, then we don't want the "-C" option.
10700
# -C means demangle to AIX nm, but means don't demangle with GNU nm
10701
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10702
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10704
export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
10707
# KDE requires run time linking. Make it the default.
10708
aix_use_runtimelinking=yes
10709
exp_sym_flag='-bexport'
10710
no_entry_flag='-bnoentry'
10713
# When large executables or shared objects are built, AIX ld can
10714
# have problems creating the table of contents. If linking a library
10715
# or program results in "error TOC overflow" add -mminimal-toc to
10716
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10717
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10720
hardcode_direct=yes
10721
hardcode_libdir_separator=':'
10722
link_all_deplibs=yes
10724
if test "$GCC" = yes; then
10725
case $host_os in aix4.012|aix4.012.*)
10726
# We only want to do this on AIX 4.2 and lower, the check
10727
# below for broken collect2 doesn't work under 4.3+
10728
collect2name=`${CC} -print-prog-name=collect2`
10729
if test -f "$collect2name" && \
10730
strings "$collect2name" | grep resolve_lib_name >/dev/null
10732
# We have reworked collect2
10733
hardcode_direct=yes
10735
# We have old collect2
10736
hardcode_direct=unsupported
10737
# It fails to find uninstalled libraries when the uninstalled
10738
# path is not listed in the libpath. Setting hardcode_minus_L
10739
# to unsupported forces relinking
10740
hardcode_minus_L=yes
10741
hardcode_libdir_flag_spec='-L$libdir'
10742
hardcode_libdir_separator=
10745
shared_flag='-shared'
10748
if test "$host_cpu" = ia64; then
10749
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10750
# chokes on -Wl,-G. The following line is correct:
10753
if test "$aix_use_runtimelinking" = yes; then
10754
shared_flag='-qmkshrobj ${wl}-G'
10756
shared_flag='-qmkshrobj'
10761
# Let the compiler handle the export list.
10762
always_export_symbols=no
10763
if test "$aix_use_runtimelinking" = yes; then
10764
# Warning - without using the other runtime loading flags (-brtl),
10765
# -berok will link without error, but may produce a broken library.
10766
allow_undefined_flag='-berok'
10767
# Determine the default libpath from the value encoded in an empty executable.
10768
cat >conftest.$ac_ext <<_ACEOF
10771
cat confdefs.h >>conftest.$ac_ext
10772
cat >>conftest.$ac_ext <<_ACEOF
10773
/* end confdefs.h. */
10783
rm -f conftest.$ac_objext conftest$ac_exeext
10784
if { (ac_try="$ac_link"
10785
case "(($ac_try" in
10786
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10787
*) ac_try_echo=$ac_try;;
10789
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10790
(eval "$ac_link") 2>conftest.er1
10792
grep -v '^ *+' conftest.er1 >conftest.err
10794
cat conftest.err >&5
10795
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10796
(exit $ac_status); } && {
10797
test -z "$ac_c_werror_flag" ||
10798
test ! -s conftest.err
10799
} && test -s conftest$ac_exeext &&
10800
$as_test_x conftest$ac_exeext; then
10802
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10804
# Check for a 64-bit object if we didn't find anything.
10805
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10808
echo "$as_me: failed program was:" >&5
10809
sed 's/^/| /' conftest.$ac_ext >&5
10814
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10815
conftest$ac_exeext conftest.$ac_ext
10816
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10818
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10819
archive_cmds="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
10820
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10822
if test "$host_cpu" = ia64; then
10823
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10824
allow_undefined_flag="-z nodefs"
10825
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
10827
# Determine the default libpath from the value encoded in an empty executable.
10828
cat >conftest.$ac_ext <<_ACEOF
10831
cat confdefs.h >>conftest.$ac_ext
10832
cat >>conftest.$ac_ext <<_ACEOF
10833
/* end confdefs.h. */
10843
rm -f conftest.$ac_objext conftest$ac_exeext
10844
if { (ac_try="$ac_link"
10845
case "(($ac_try" in
10846
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10847
*) ac_try_echo=$ac_try;;
10849
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10850
(eval "$ac_link") 2>conftest.er1
10852
grep -v '^ *+' conftest.er1 >conftest.err
10854
cat conftest.err >&5
10855
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10856
(exit $ac_status); } && {
10857
test -z "$ac_c_werror_flag" ||
10858
test ! -s conftest.err
10859
} && test -s conftest$ac_exeext &&
10860
$as_test_x conftest$ac_exeext; then
10862
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10864
# Check for a 64-bit object if we didn't find anything.
10865
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10868
echo "$as_me: failed program was:" >&5
10869
sed 's/^/| /' conftest.$ac_ext >&5
10874
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10875
conftest$ac_exeext conftest.$ac_ext
10876
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10878
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10879
# Warning - without using the other run time loading flags,
10880
# -berok will link without error, but may produce a broken library.
10881
no_undefined_flag=' ${wl}-bernotok'
10882
allow_undefined_flag=' ${wl}-berok'
10883
# -bexpall does not export symbols beginning with underscore (_)
10884
always_export_symbols=yes
10885
# Exported symbols can be pulled into shared objects from archives
10886
whole_archive_flag_spec=' '
10887
archive_cmds_need_lc=yes
10888
# This is similar to how AIX traditionally builds it's shared libraries.
10889
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10895
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)'
10896
hardcode_libdir_flag_spec='-L$libdir'
10897
hardcode_minus_L=yes
10898
# see comment about different semantics on the GNU ld section
10903
export_dynamic_flag_spec=-rdynamic
10906
cygwin* | mingw* | pw32*)
10907
# When not using gcc, we currently assume that we are using
10908
# Microsoft Visual C++.
10909
# hardcode_libdir_flag_spec is actually meaningless, as there is
10910
# no search path for DLLs.
10911
hardcode_libdir_flag_spec=' '
10912
allow_undefined_flag=no
10913
# Tell ltmain to make .lib files, not .a files.
10915
# Tell ltmain to make .dll files, not .so files.
10917
# FIXME: Setting linknames here is a bad hack.
10918
archive_cmds='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
10919
# The linker will automatically build a .lib file if we build a DLL.
10920
old_archive_From_new_cmds='true'
10921
# FIXME: Should let the user specify the lib program.
10922
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
10923
fix_srcfile_path='`cygpath -w "$srcfile"`'
10924
enable_shared_with_static_runtimes=yes
10927
darwin* | rhapsody*)
10928
if test "$GXX" = yes ; then
10929
archive_cmds_need_lc=no
10931
rhapsody* | darwin1.[012])
10932
allow_undefined_flag='-Wl,-undefined -Wl,suppress'
10935
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10936
allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
10938
case ${MACOSX_DEPLOYMENT_TARGET} in
10940
allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
10943
allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup'
10949
lt_int_apple_cc_single_mod=no
10950
output_verbose_link_cmd='echo'
10951
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10952
lt_int_apple_cc_single_mod=yes
10954
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10955
archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
10957
archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
10959
module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
10960
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10961
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10962
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10964
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10966
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10968
hardcode_automatic=yes
10969
hardcode_shlibpath_var=unsupported
10970
whole_archive_flag_spec='-all_load $convenience'
10971
link_all_deplibs=yes
10978
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10979
hardcode_libdir_flag_spec='-L$libdir'
10980
hardcode_shlibpath_var=no
10987
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10988
# support. Future versions do this automatically, but an explicit c++rt0.o
10989
# does not break anything, and helps significantly (at the cost of a little
10992
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10993
hardcode_libdir_flag_spec='-R$libdir'
10994
hardcode_direct=yes
10995
hardcode_shlibpath_var=no
10998
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
11000
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11001
hardcode_direct=yes
11002
hardcode_minus_L=yes
11003
hardcode_shlibpath_var=no
11006
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11007
freebsd* | kfreebsd*-gnu)
11008
archive_cmds='$CC -shared -o $lib $compiler_flags $libobjs $deplibs'
11009
hardcode_libdir_flag_spec='-R$libdir'
11010
hardcode_direct=yes
11011
hardcode_shlibpath_var=no
11015
if test "$GCC" = yes; then
11016
archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $libobjs $deplibs~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11018
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'
11020
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11021
hardcode_libdir_separator=:
11022
hardcode_direct=yes
11024
# hardcode_minus_L: Not really in the search PATH,
11025
# but as the default location of the library.
11026
hardcode_minus_L=yes
11027
export_dynamic_flag_spec='${wl}-E'
11031
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11032
case "$host_cpu" in
11034
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
11037
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs'
11041
case "$host_cpu" in
11043
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
11046
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11050
if test "$with_gnu_ld" = no; then
11051
case "$host_cpu" in
11053
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11054
hardcode_libdir_flag_spec_ld='+b $libdir'
11055
hardcode_libdir_separator=:
11057
hardcode_shlibpath_var=no
11060
hardcode_libdir_flag_spec='-L$libdir'
11062
hardcode_shlibpath_var=no
11064
# hardcode_minus_L: Not really in the search PATH,
11065
# but as the default location of the library.
11066
hardcode_minus_L=yes
11069
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11070
hardcode_libdir_separator=:
11071
hardcode_direct=yes
11072
export_dynamic_flag_spec='${wl}-E'
11074
# hardcode_minus_L: Not really in the search PATH,
11075
# but as the default location of the library.
11076
hardcode_minus_L=yes
11082
irix5* | irix6* | nonstopux*)
11083
if test "$GCC" = yes; then
11084
archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11086
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'
11087
hardcode_libdir_flag_spec_ld='-rpath $libdir'
11089
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11090
hardcode_libdir_separator=:
11091
link_all_deplibs=yes
11095
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11096
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11098
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11100
hardcode_libdir_flag_spec='-R$libdir'
11101
hardcode_direct=yes
11102
hardcode_shlibpath_var=no
11106
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11107
hardcode_direct=yes
11108
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11109
hardcode_libdir_separator=:
11110
hardcode_shlibpath_var=no
11114
hardcode_direct=yes
11115
hardcode_shlibpath_var=no
11116
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11117
archive_cmds='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
11118
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11119
export_dynamic_flag_spec='${wl}-E'
11122
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11123
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11124
hardcode_libdir_flag_spec='-R$libdir'
11127
archive_cmds='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
11128
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11135
hardcode_libdir_flag_spec='-L$libdir'
11136
hardcode_minus_L=yes
11137
allow_undefined_flag=unsupported
11138
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 $compiler_flags $libobjs $deplibs$output_objdir/$libname.def'
11139
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11143
if test "$GCC" = yes; then
11144
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11145
archive_cmds='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11147
allow_undefined_flag=' -expect_unresolved \*'
11148
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'
11150
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11151
hardcode_libdir_separator=:
11154
osf4* | osf5*) # as osf3* with the addition of -msym flag
11155
if test "$GCC" = yes; then
11156
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11157
archive_cmds='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${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'
11158
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11160
allow_undefined_flag=' -expect_unresolved \*'
11161
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'
11162
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
11163
$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'
11165
# Both c and cxx compiler support -rpath directly
11166
hardcode_libdir_flag_spec='-rpath $libdir'
11168
hardcode_libdir_separator=:
11172
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11173
hardcode_shlibpath_var=no
11174
export_dynamic_flag_spec='${wl}-Bexport'
11175
runpath_var=LD_RUN_PATH
11176
hardcode_runpath_var=yes
11180
no_undefined_flag=' -z text'
11181
if test "$GCC" = yes; then
11182
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
11183
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11184
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp'
11186
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11187
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11188
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
11190
hardcode_libdir_flag_spec='-R$libdir'
11191
hardcode_shlibpath_var=no
11193
solaris2.[0-5] | solaris2.[0-5].*) ;;
11194
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
11195
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
11197
link_all_deplibs=yes
11201
if test "x$host_vendor" = xsequent; then
11202
# Use $CC to link under sequent, because it throws in some extra .o
11203
# files that make .init and .fini sections work.
11204
archive_cmds='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs'
11206
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11208
hardcode_libdir_flag_spec='-L$libdir'
11209
hardcode_direct=yes
11210
hardcode_minus_L=yes
11211
hardcode_shlibpath_var=no
11215
case $host_vendor in
11217
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11218
hardcode_direct=yes # is this really true???
11221
## LD is ld it makes a PLAMLIB
11222
## CC just makes a GrossModule.
11223
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11224
reload_cmds='$CC -r -o $output$reload_objs'
11228
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11229
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11232
runpath_var='LD_RUN_PATH'
11233
hardcode_shlibpath_var=no
11237
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11238
hardcode_shlibpath_var=no
11239
export_dynamic_flag_spec='-Bexport'
11243
if test -d /usr/nec; then
11244
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11245
hardcode_shlibpath_var=no
11246
runpath_var=LD_RUN_PATH
11247
hardcode_runpath_var=yes
11253
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11254
hardcode_direct=yes
11255
hardcode_minus_L=no
11256
hardcode_shlibpath_var=no
11257
hardcode_runpath_var=yes
11258
runpath_var=LD_RUN_PATH
11261
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11262
no_undefined_flag='${wl}-z ${wl}text'
11263
if test "$GCC" = yes; then
11264
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
11266
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
11268
runpath_var='LD_RUN_PATH'
11269
hardcode_shlibpath_var=no
11273
no_undefined_flag=' -z text'
11274
# $CC -shared without GNU ld will not create a library from C++
11275
# object files and a static libstdc++, better avoid it by now
11276
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11277
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11278
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
11279
hardcode_libdir_flag_spec=
11280
hardcode_shlibpath_var=no
11281
runpath_var='LD_RUN_PATH'
11285
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11286
hardcode_libdir_flag_spec='-L$libdir'
11287
hardcode_shlibpath_var=no
11296
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11297
echo "${ECHO_T}$ld_shlibs" >&6; }
11298
test "$ld_shlibs" = no && can_build_shared=no
11300
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11301
if test "$GCC" = yes; then
11302
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11306
# Do we need to explicitly link libc?
11308
case "x$archive_cmds_need_lc" in
11310
# Assume -lc should be added
11311
archive_cmds_need_lc=yes
11313
if test "$enable_shared" = yes && test "$GCC" = yes; then
11314
case $archive_cmds in
11316
# FIXME: we may have to deal with multi-command sequences.
11319
# Test whether the compiler implicitly links with -lc since on some
11320
# systems, -lgcc has to come before -lc. If gcc already passes -lc
11321
# to ld, don't add -lc before -lgcc.
11322
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11323
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
11325
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11327
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11328
(eval $ac_compile) 2>&5
11330
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11331
(exit $ac_status); } 2>conftest.err; then
11334
libobjs=conftest.$ac_objext
11336
wl=$lt_prog_compiler_wl
11342
lt_save_allow_undefined_flag=$allow_undefined_flag
11343
allow_undefined_flag=
11344
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11345
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11347
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348
(exit $ac_status); }
11350
archive_cmds_need_lc=no
11352
archive_cmds_need_lc=yes
11354
allow_undefined_flag=$lt_save_allow_undefined_flag
11356
cat conftest.err 1>&5
11359
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11360
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
11367
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11368
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
11369
library_names_spec=
11370
libname_spec='lib$name'
11374
postuninstall_cmds=
11378
shlibpath_overrides_runpath=unknown
11380
dynamic_linker="$host_os ld.so"
11381
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11382
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11383
need_lib_prefix=unknown
11384
hardcode_into_libs=no
11386
# when you set need_version to no, make sure it does not cause -set_version
11387
# flags to be left without arguments
11388
need_version=unknown
11393
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11394
shlibpath_var=LIBPATH
11396
# AIX 3 has no versioning support, so we append a major version to the name.
11397
soname_spec='${libname}${release}${shared_ext}$major'
11404
hardcode_into_libs=yes
11405
if test "$host_cpu" = ia64; then
11406
# AIX 5 supports IA64
11407
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11408
shlibpath_var=LD_LIBRARY_PATH
11410
# With GCC up to 2.95.x, collect2 would create an import file
11411
# for dependence libraries. The import file would start with
11412
# the line `#! .'. This would cause the generated library to
11413
# depend on `.', always an invalid library. This was fixed in
11414
# development snapshots of GCC prior to 3.0.
11416
aix4 | aix4.[01] | aix4.[01].*)
11417
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11419
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11422
can_build_shared=no
11426
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11427
# soname into executable. Probably we can add versioning support to
11428
# collect2, so additional links can be useful in future.
11429
if test "$aix_use_runtimelinking" = yes; then
11430
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
11431
# instead of lib<name>.a to let people know that these are not
11432
# typical AIX shared libraries.
11433
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11435
# We preserve .a as extension for shared libraries through AIX4.2
11436
# and later when we are not doing run time linking.
11437
library_names_spec='${libname}${release}.a $libname.a'
11438
soname_spec='${libname}${release}${shared_ext}$major'
11440
shlibpath_var=LIBPATH
11445
library_names_spec='$libname.ixlibrary $libname.a'
11446
# Create ${libname}_ixlibrary.a entries in /sys/libs.
11447
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'
11451
library_names_spec='${libname}${shared_ext}'
11452
dynamic_linker="$host_os ld.so"
11453
shlibpath_var=LIBRARY_PATH
11459
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11460
soname_spec='${libname}${release}${shared_ext}$major'
11461
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11462
shlibpath_var=LD_LIBRARY_PATH
11463
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11464
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11465
# the default ld.so.conf also contains /usr/contrib/lib and
11466
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11467
# libtool to hard-code these into programs
11470
cygwin* | mingw* | pw32*)
11471
version_type=windows
11476
case $GCC,$host_os in
11477
yes,cygwin* | yes,mingw* | yes,pw32*)
11478
library_names_spec='$libname.dll.a'
11479
# DLL is installed to $(libdir)/../bin by postinstall_cmds
11480
postinstall_cmds='base_file=`basename \${file}`~
11481
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11482
dldir=$destdir/`dirname \$dlpath`~
11483
test -d \$dldir || mkdir -p \$dldir~
11484
$install_prog $dir/$dlname \$dldir/$dlname'
11485
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11486
dlpath=$dir/\$dldll~
11488
shlibpath_overrides_runpath=yes
11492
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
11493
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11494
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11497
# MinGW DLLs use traditional 'lib' prefix
11498
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11499
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11500
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11501
# It is most probably a Windows format PATH printed by
11502
# mingw gcc, but we are running on Cygwin. Gcc prints its search
11503
# path with ; separators, and with drive letters. We can handle the
11504
# drive letters (cygwin fileutils understands them), so leave them,
11505
# especially as we might pass files found there to a mingw objdump,
11506
# which wouldn't understand a cygwinified path. Ahh.
11507
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11509
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11513
# pw32 DLLs use 'pw' prefix rather than 'lib'
11514
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11520
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11523
dynamic_linker='Win32 ld.exe'
11524
# FIXME: first we should search . and the directory the executable is in
11528
darwin* | rhapsody*)
11529
dynamic_linker="$host_os dyld"
11530
version_type=darwin
11533
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11534
soname_spec='${libname}${release}${major}$shared_ext'
11535
shlibpath_overrides_runpath=yes
11536
shlibpath_var=DYLD_LIBRARY_PATH
11537
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11538
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11539
if test "$GCC" = yes; then
11540
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11542
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11544
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11551
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11552
soname_spec='${libname}${release}${shared_ext}$major'
11553
shlibpath_var=LD_LIBRARY_PATH
11564
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11565
soname_spec='${libname}${release}${shared_ext}$major'
11566
shlibpath_var=LD_LIBRARY_PATH
11567
shlibpath_overrides_runpath=no
11568
hardcode_into_libs=yes
11569
dynamic_linker='GNU ld.so'
11573
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11574
version_type=freebsd-$objformat
11575
case $version_type in
11577
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11582
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11586
shlibpath_var=LD_LIBRARY_PATH
11589
shlibpath_overrides_runpath=yes
11591
freebsd3.01* | freebsdelf3.01*)
11592
shlibpath_overrides_runpath=yes
11593
hardcode_into_libs=yes
11596
shlibpath_overrides_runpath=no
11597
hardcode_into_libs=yes
11606
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11607
soname_spec='${libname}${release}${shared_ext}$major'
11608
shlibpath_var=LD_LIBRARY_PATH
11609
hardcode_into_libs=yes
11612
hpux9* | hpux10* | hpux11*)
11613
# Give a soname corresponding to the major version so that dld.sl refuses to
11614
# link against other versions.
11618
case "$host_cpu" in
11621
hardcode_into_libs=yes
11622
dynamic_linker="$host_os dld.so"
11623
shlibpath_var=LD_LIBRARY_PATH
11624
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11625
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11626
soname_spec='${libname}${release}${shared_ext}$major'
11627
if test "X$HPUX_IA64_MODE" = X32; then
11628
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11630
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11632
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11636
hardcode_into_libs=yes
11637
dynamic_linker="$host_os dld.sl"
11638
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11639
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11640
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11641
soname_spec='${libname}${release}${shared_ext}$major'
11642
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11643
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11647
dynamic_linker="$host_os dld.sl"
11648
shlibpath_var=SHLIB_PATH
11649
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11650
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11651
soname_spec='${libname}${release}${shared_ext}$major'
11654
# HP-UX runs *really* slowly unless shared libraries are mode 555.
11655
postinstall_cmds='chmod 555 $lib'
11658
irix5* | irix6* | nonstopux*)
11660
nonstopux*) version_type=nonstopux ;;
11662
if test "$lt_cv_prog_gnu_ld" = yes; then
11670
soname_spec='${libname}${release}${shared_ext}$major'
11671
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11673
irix5* | nonstopux*)
11674
libsuff= shlibsuff=
11677
case $LD in # libtool.m4 will add one of these switches to LD
11678
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11679
libsuff= shlibsuff= libmagic=32-bit;;
11680
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11681
libsuff=32 shlibsuff=N32 libmagic=N32;;
11682
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11683
libsuff=64 shlibsuff=64 libmagic=64-bit;;
11684
*) libsuff= shlibsuff= libmagic=never-match;;
11688
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11689
shlibpath_overrides_runpath=no
11690
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11691
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11692
hardcode_into_libs=yes
11695
# No shared lib support for Linux oldld, aout, or coff.
11696
linux*oldld* | linux*aout* | linux*coff*)
11700
# This must be Linux ELF.
11705
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11706
soname_spec='${libname}${release}${shared_ext}$major'
11707
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11709
if test "x$LINUX_64_MODE" = x64; then
11710
# Some platforms are per default 64-bit, so there's no /lib64
11711
if test -d /lib64 -a ! -h /lib64; then
11715
shlibpath_var=LD_LIBRARY_PATH
11716
shlibpath_overrides_runpath=no
11717
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
11718
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11719
# This implies no fast_install, which is unacceptable.
11720
# Some rework will be needed to allow for fast_install
11721
# before this can be enabled.
11722
hardcode_into_libs=yes
11724
# We used to test for /lib/ld.so.1 and disable shared libraries on
11725
# powerpc, because MkLinux only supported shared libraries with the
11726
# GNU dynamic linker. Since this was broken with cross compilers,
11727
# most powerpc-linux boxes support dynamic linking these days and
11728
# people can always --disable-shared, the test was removed, and we
11729
# assume the GNU/Linux dynamic linker is in use.
11730
dynamic_linker='GNU/Linux ld.so'
11737
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11738
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11739
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11740
dynamic_linker='NetBSD (a.out) ld.so'
11742
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11743
soname_spec='${libname}${release}${shared_ext}$major'
11744
dynamic_linker='NetBSD ld.elf_so'
11746
shlibpath_var=LD_LIBRARY_PATH
11747
shlibpath_overrides_runpath=yes
11748
hardcode_into_libs=yes
11753
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11754
shlibpath_var=LD_LIBRARY_PATH
11755
shlibpath_overrides_runpath=yes
11762
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11763
soname_spec='${libname}${release}${shared_ext}$major'
11764
shlibpath_var=LD_LIBRARY_PATH
11765
shlibpath_overrides_runpath=yes
11772
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11773
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11774
shlibpath_var=LD_LIBRARY_PATH
11775
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11777
openbsd2.[89] | openbsd2.[89].*)
11778
shlibpath_overrides_runpath=no
11781
shlibpath_overrides_runpath=yes
11785
shlibpath_overrides_runpath=yes
11790
libname_spec='$name'
11793
library_names_spec='$libname${shared_ext} $libname.a'
11794
dynamic_linker='OS/2 ld.exe'
11795
shlibpath_var=LIBPATH
11798
osf3* | osf4* | osf5*)
11802
soname_spec='${libname}${release}${shared_ext}$major'
11803
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11804
shlibpath_var=LD_LIBRARY_PATH
11805
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11806
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11811
soname_spec='${libname}${release}${shared_ext}$major'
11812
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11813
shlibpath_var=LD_LIBRARY_PATH
11820
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11821
soname_spec='${libname}${release}${shared_ext}$major'
11822
shlibpath_var=LD_LIBRARY_PATH
11823
shlibpath_overrides_runpath=yes
11824
hardcode_into_libs=yes
11825
# ldd complains unless libraries are executable
11826
postinstall_cmds='chmod +x $lib'
11831
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11832
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11833
shlibpath_var=LD_LIBRARY_PATH
11834
shlibpath_overrides_runpath=yes
11835
if test "$with_gnu_ld" = yes; then
11841
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11843
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11844
soname_spec='${libname}${release}${shared_ext}$major'
11845
shlibpath_var=LD_LIBRARY_PATH
11846
case $host_vendor in
11848
shlibpath_overrides_runpath=no
11850
export_dynamic_flag_spec='${wl}-Blargedynsym'
11851
runpath_var=LD_RUN_PATH
11859
shlibpath_overrides_runpath=no
11860
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11866
if test -d /usr/nec ;then
11868
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11869
soname_spec='$libname${shared_ext}.$major'
11870
shlibpath_var=LD_LIBRARY_PATH
11876
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11877
soname_spec='${libname}${release}${shared_ext}$major'
11878
shlibpath_var=LD_LIBRARY_PATH
11885
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11886
echo "${ECHO_T}$dynamic_linker" >&6; }
11887
test "$dynamic_linker" = no && can_build_shared=no
11889
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11890
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
11892
if test -n "$hardcode_libdir_flag_spec" || \
11893
test -n "$runpath_var " || \
11894
test "X$hardcode_automatic"="Xyes" ; then
11896
# We can hardcode non-existant directories.
11897
if test "$hardcode_direct" != no &&
11898
# If the only mechanism to avoid hardcoding is shlibpath_var, we
11899
# have to relink, otherwise we might link with an installed library
11900
# when we should be linking with a yet-to-be-installed one
11901
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
11902
test "$hardcode_minus_L" != no; then
11903
# Linking always hardcodes the temporary library directory.
11904
hardcode_action=relink
11906
# We can link without hardcoding, and we can hardcode nonexisting dirs.
11907
hardcode_action=immediate
11910
# We cannot hardcode anything, or else we can only hardcode existing
11912
hardcode_action=unsupported
11914
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
11915
echo "${ECHO_T}$hardcode_action" >&6; }
11917
if test "$hardcode_action" = relink; then
11918
# Fast installation is not supported
11919
enable_fast_install=no
11920
elif test "$shlibpath_overrides_runpath" = yes ||
11921
test "$enable_shared" = no; then
11922
# Fast installation is not necessary
11923
enable_fast_install=needless
11928
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11929
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
11930
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11931
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11932
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11933
{ echo "$as_me:$LINENO: result: yes" >&5
11934
echo "${ECHO_T}yes" >&6; }
11936
# FIXME - insert some real tests, host_os isn't really good enough
11939
if test -n "$STRIP" ; then
11940
striplib="$STRIP -x"
11941
{ echo "$as_me:$LINENO: result: yes" >&5
11942
echo "${ECHO_T}yes" >&6; }
11944
{ echo "$as_me:$LINENO: result: no" >&5
11945
echo "${ECHO_T}no" >&6; }
11949
{ echo "$as_me:$LINENO: result: no" >&5
11950
echo "${ECHO_T}no" >&6; }
11955
if test "x$enable_dlopen" != xyes; then
11956
enable_dlopen=unknown
11957
enable_dlopen_self=unknown
11958
enable_dlopen_self_static=unknown
11965
lt_cv_dlopen="load_add_on"
11967
lt_cv_dlopen_self=yes
11971
lt_cv_dlopen="LoadLibrary"
11976
lt_cv_dlopen="dlopen"
11981
# if libdl is installed we need to link against it
11982
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11983
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11984
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11985
echo $ECHO_N "(cached) $ECHO_C" >&6
11987
ac_check_lib_save_LIBS=$LIBS
11989
cat >conftest.$ac_ext <<_ACEOF
11992
cat confdefs.h >>conftest.$ac_ext
11993
cat >>conftest.$ac_ext <<_ACEOF
11994
/* end confdefs.h. */
11996
/* Override any GCC internal prototype to avoid an error.
11997
Use char because int might match the return type of a GCC
11998
builtin and then its argument prototype would still apply. */
12011
rm -f conftest.$ac_objext conftest$ac_exeext
12012
if { (ac_try="$ac_link"
12013
case "(($ac_try" in
12014
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12015
*) ac_try_echo=$ac_try;;
12017
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12018
(eval "$ac_link") 2>conftest.er1
12020
grep -v '^ *+' conftest.er1 >conftest.err
12022
cat conftest.err >&5
12023
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12024
(exit $ac_status); } && {
12025
test -z "$ac_c_werror_flag" ||
12026
test ! -s conftest.err
12027
} && test -s conftest$ac_exeext &&
12028
$as_test_x conftest$ac_exeext; then
12029
ac_cv_lib_dl_dlopen=yes
12031
echo "$as_me: failed program was:" >&5
12032
sed 's/^/| /' conftest.$ac_ext >&5
12034
ac_cv_lib_dl_dlopen=no
12037
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12038
conftest$ac_exeext conftest.$ac_ext
12039
LIBS=$ac_check_lib_save_LIBS
12041
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12042
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12043
if test $ac_cv_lib_dl_dlopen = yes; then
12044
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12047
lt_cv_dlopen="dyld"
12049
lt_cv_dlopen_self=yes
12056
{ echo "$as_me:$LINENO: checking for shl_load" >&5
12057
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
12058
if test "${ac_cv_func_shl_load+set}" = set; then
12059
echo $ECHO_N "(cached) $ECHO_C" >&6
12061
cat >conftest.$ac_ext <<_ACEOF
12064
cat confdefs.h >>conftest.$ac_ext
12065
cat >>conftest.$ac_ext <<_ACEOF
12066
/* end confdefs.h. */
12067
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12068
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12069
#define shl_load innocuous_shl_load
12071
/* System header to define __stub macros and hopefully few prototypes,
12072
which can conflict with char shl_load (); below.
12073
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12074
<limits.h> exists even on freestanding compilers. */
12077
# include <limits.h>
12079
# include <assert.h>
12084
/* Override any GCC internal prototype to avoid an error.
12085
Use char because int might match the return type of a GCC
12086
builtin and then its argument prototype would still apply. */
12091
/* The GNU C library defines this for functions which it implements
12092
to always fail with ENOSYS. Some functions are actually named
12093
something starting with __ and the normal name is an alias. */
12094
#if defined __stub_shl_load || defined __stub___shl_load
12101
return shl_load ();
12106
rm -f conftest.$ac_objext conftest$ac_exeext
12107
if { (ac_try="$ac_link"
12108
case "(($ac_try" in
12109
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12110
*) ac_try_echo=$ac_try;;
12112
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12113
(eval "$ac_link") 2>conftest.er1
12115
grep -v '^ *+' conftest.er1 >conftest.err
12117
cat conftest.err >&5
12118
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119
(exit $ac_status); } && {
12120
test -z "$ac_c_werror_flag" ||
12121
test ! -s conftest.err
12122
} && test -s conftest$ac_exeext &&
12123
$as_test_x conftest$ac_exeext; then
12124
ac_cv_func_shl_load=yes
12126
echo "$as_me: failed program was:" >&5
12127
sed 's/^/| /' conftest.$ac_ext >&5
12129
ac_cv_func_shl_load=no
12132
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12133
conftest$ac_exeext conftest.$ac_ext
12135
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12136
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
12137
if test $ac_cv_func_shl_load = yes; then
12138
lt_cv_dlopen="shl_load"
12140
{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12141
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
12142
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12143
echo $ECHO_N "(cached) $ECHO_C" >&6
12145
ac_check_lib_save_LIBS=$LIBS
12147
cat >conftest.$ac_ext <<_ACEOF
12150
cat confdefs.h >>conftest.$ac_ext
12151
cat >>conftest.$ac_ext <<_ACEOF
12152
/* end confdefs.h. */
12154
/* Override any GCC internal prototype to avoid an error.
12155
Use char because int might match the return type of a GCC
12156
builtin and then its argument prototype would still apply. */
12164
return shl_load ();
12169
rm -f conftest.$ac_objext conftest$ac_exeext
12170
if { (ac_try="$ac_link"
12171
case "(($ac_try" in
12172
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12173
*) ac_try_echo=$ac_try;;
12175
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12176
(eval "$ac_link") 2>conftest.er1
12178
grep -v '^ *+' conftest.er1 >conftest.err
12180
cat conftest.err >&5
12181
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182
(exit $ac_status); } && {
12183
test -z "$ac_c_werror_flag" ||
12184
test ! -s conftest.err
12185
} && test -s conftest$ac_exeext &&
12186
$as_test_x conftest$ac_exeext; then
12187
ac_cv_lib_dld_shl_load=yes
12189
echo "$as_me: failed program was:" >&5
12190
sed 's/^/| /' conftest.$ac_ext >&5
12192
ac_cv_lib_dld_shl_load=no
12195
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12196
conftest$ac_exeext conftest.$ac_ext
12197
LIBS=$ac_check_lib_save_LIBS
12199
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12200
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
12201
if test $ac_cv_lib_dld_shl_load = yes; then
12202
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12204
{ echo "$as_me:$LINENO: checking for dlopen" >&5
12205
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
12206
if test "${ac_cv_func_dlopen+set}" = set; then
12207
echo $ECHO_N "(cached) $ECHO_C" >&6
12209
cat >conftest.$ac_ext <<_ACEOF
12212
cat confdefs.h >>conftest.$ac_ext
12213
cat >>conftest.$ac_ext <<_ACEOF
12214
/* end confdefs.h. */
12215
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12216
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12217
#define dlopen innocuous_dlopen
12219
/* System header to define __stub macros and hopefully few prototypes,
12220
which can conflict with char dlopen (); below.
12221
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12222
<limits.h> exists even on freestanding compilers. */
12225
# include <limits.h>
12227
# include <assert.h>
12232
/* Override any GCC internal prototype to avoid an error.
12233
Use char because int might match the return type of a GCC
12234
builtin and then its argument prototype would still apply. */
12239
/* The GNU C library defines this for functions which it implements
12240
to always fail with ENOSYS. Some functions are actually named
12241
something starting with __ and the normal name is an alias. */
12242
#if defined __stub_dlopen || defined __stub___dlopen
12254
rm -f conftest.$ac_objext conftest$ac_exeext
12255
if { (ac_try="$ac_link"
12256
case "(($ac_try" in
12257
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12258
*) ac_try_echo=$ac_try;;
12260
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12261
(eval "$ac_link") 2>conftest.er1
12263
grep -v '^ *+' conftest.er1 >conftest.err
12265
cat conftest.err >&5
12266
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267
(exit $ac_status); } && {
12268
test -z "$ac_c_werror_flag" ||
12269
test ! -s conftest.err
12270
} && test -s conftest$ac_exeext &&
12271
$as_test_x conftest$ac_exeext; then
12272
ac_cv_func_dlopen=yes
12274
echo "$as_me: failed program was:" >&5
12275
sed 's/^/| /' conftest.$ac_ext >&5
12277
ac_cv_func_dlopen=no
12280
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12281
conftest$ac_exeext conftest.$ac_ext
12283
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12284
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
12285
if test $ac_cv_func_dlopen = yes; then
12286
lt_cv_dlopen="dlopen"
12288
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12289
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
12290
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12291
echo $ECHO_N "(cached) $ECHO_C" >&6
12293
ac_check_lib_save_LIBS=$LIBS
12295
cat >conftest.$ac_ext <<_ACEOF
12298
cat confdefs.h >>conftest.$ac_ext
12299
cat >>conftest.$ac_ext <<_ACEOF
12300
/* end confdefs.h. */
12302
/* Override any GCC internal prototype to avoid an error.
12303
Use char because int might match the return type of a GCC
12304
builtin and then its argument prototype would still apply. */
12317
rm -f conftest.$ac_objext conftest$ac_exeext
12318
if { (ac_try="$ac_link"
12319
case "(($ac_try" in
12320
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12321
*) ac_try_echo=$ac_try;;
12323
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12324
(eval "$ac_link") 2>conftest.er1
12326
grep -v '^ *+' conftest.er1 >conftest.err
12328
cat conftest.err >&5
12329
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12330
(exit $ac_status); } && {
12331
test -z "$ac_c_werror_flag" ||
12332
test ! -s conftest.err
12333
} && test -s conftest$ac_exeext &&
12334
$as_test_x conftest$ac_exeext; then
12335
ac_cv_lib_dl_dlopen=yes
12337
echo "$as_me: failed program was:" >&5
12338
sed 's/^/| /' conftest.$ac_ext >&5
12340
ac_cv_lib_dl_dlopen=no
12343
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12344
conftest$ac_exeext conftest.$ac_ext
12345
LIBS=$ac_check_lib_save_LIBS
12347
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12348
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
12349
if test $ac_cv_lib_dl_dlopen = yes; then
12350
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12352
{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12353
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
12354
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12355
echo $ECHO_N "(cached) $ECHO_C" >&6
12357
ac_check_lib_save_LIBS=$LIBS
12358
LIBS="-lsvld $LIBS"
12359
cat >conftest.$ac_ext <<_ACEOF
12362
cat confdefs.h >>conftest.$ac_ext
12363
cat >>conftest.$ac_ext <<_ACEOF
12364
/* end confdefs.h. */
12366
/* Override any GCC internal prototype to avoid an error.
12367
Use char because int might match the return type of a GCC
12368
builtin and then its argument prototype would still apply. */
12381
rm -f conftest.$ac_objext conftest$ac_exeext
12382
if { (ac_try="$ac_link"
12383
case "(($ac_try" in
12384
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12385
*) ac_try_echo=$ac_try;;
12387
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12388
(eval "$ac_link") 2>conftest.er1
12390
grep -v '^ *+' conftest.er1 >conftest.err
12392
cat conftest.err >&5
12393
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394
(exit $ac_status); } && {
12395
test -z "$ac_c_werror_flag" ||
12396
test ! -s conftest.err
12397
} && test -s conftest$ac_exeext &&
12398
$as_test_x conftest$ac_exeext; then
12399
ac_cv_lib_svld_dlopen=yes
12401
echo "$as_me: failed program was:" >&5
12402
sed 's/^/| /' conftest.$ac_ext >&5
12404
ac_cv_lib_svld_dlopen=no
12407
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12408
conftest$ac_exeext conftest.$ac_ext
12409
LIBS=$ac_check_lib_save_LIBS
12411
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12412
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
12413
if test $ac_cv_lib_svld_dlopen = yes; then
12414
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12416
{ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12417
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
12418
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12419
echo $ECHO_N "(cached) $ECHO_C" >&6
12421
ac_check_lib_save_LIBS=$LIBS
12423
cat >conftest.$ac_ext <<_ACEOF
12426
cat confdefs.h >>conftest.$ac_ext
12427
cat >>conftest.$ac_ext <<_ACEOF
12428
/* end confdefs.h. */
12430
/* Override any GCC internal prototype to avoid an error.
12431
Use char because int might match the return type of a GCC
12432
builtin and then its argument prototype would still apply. */
12440
return dld_link ();
12445
rm -f conftest.$ac_objext conftest$ac_exeext
12446
if { (ac_try="$ac_link"
12447
case "(($ac_try" in
12448
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12449
*) ac_try_echo=$ac_try;;
12451
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12452
(eval "$ac_link") 2>conftest.er1
12454
grep -v '^ *+' conftest.er1 >conftest.err
12456
cat conftest.err >&5
12457
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12458
(exit $ac_status); } && {
12459
test -z "$ac_c_werror_flag" ||
12460
test ! -s conftest.err
12461
} && test -s conftest$ac_exeext &&
12462
$as_test_x conftest$ac_exeext; then
12463
ac_cv_lib_dld_dld_link=yes
12465
echo "$as_me: failed program was:" >&5
12466
sed 's/^/| /' conftest.$ac_ext >&5
12468
ac_cv_lib_dld_dld_link=no
12471
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12472
conftest$ac_exeext conftest.$ac_ext
12473
LIBS=$ac_check_lib_save_LIBS
12475
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12476
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
12477
if test $ac_cv_lib_dld_dld_link = yes; then
12478
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12499
if test "x$lt_cv_dlopen" != xno; then
12505
case $lt_cv_dlopen in
12507
save_CPPFLAGS="$CPPFLAGS"
12508
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12510
save_LDFLAGS="$LDFLAGS"
12511
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12514
LIBS="$lt_cv_dlopen_libs $LIBS"
12516
{ echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12517
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
12518
if test "${lt_cv_dlopen_self+set}" = set; then
12519
echo $ECHO_N "(cached) $ECHO_C" >&6
12521
if test "$cross_compiling" = yes; then :
12522
lt_cv_dlopen_self=cross
12524
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12525
lt_status=$lt_dlunknown
12526
cat > conftest.$ac_ext <<EOF
12527
#line 12527 "configure"
12528
#include "confdefs.h"
12537
# define LT_DLGLOBAL RTLD_GLOBAL
12540
# define LT_DLGLOBAL DL_GLOBAL
12542
# define LT_DLGLOBAL 0
12546
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12547
find out it does not work in some platform. */
12548
#ifndef LT_DLLAZY_OR_NOW
12550
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12553
# define LT_DLLAZY_OR_NOW DL_LAZY
12556
# define LT_DLLAZY_OR_NOW RTLD_NOW
12559
# define LT_DLLAZY_OR_NOW DL_NOW
12561
# define LT_DLLAZY_OR_NOW 0
12569
extern "C" void exit (int);
12572
void fnord() { int i=42;}
12575
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12576
int status = $lt_dlunknown;
12580
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12581
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12582
/* dlclose (self); */
12588
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12589
(eval $ac_link) 2>&5
12591
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12593
(./conftest; exit; ) 2>/dev/null
12595
case x$lt_status in
12596
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12597
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12598
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12601
# compilation failed
12602
lt_cv_dlopen_self=no
12609
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12610
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
12612
if test "x$lt_cv_dlopen_self" = xyes; then
12613
LDFLAGS="$LDFLAGS $link_static_flag"
12614
{ echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12615
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
12616
if test "${lt_cv_dlopen_self_static+set}" = set; then
12617
echo $ECHO_N "(cached) $ECHO_C" >&6
12619
if test "$cross_compiling" = yes; then :
12620
lt_cv_dlopen_self_static=cross
12622
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12623
lt_status=$lt_dlunknown
12624
cat > conftest.$ac_ext <<EOF
12625
#line 12625 "configure"
12626
#include "confdefs.h"
12635
# define LT_DLGLOBAL RTLD_GLOBAL
12638
# define LT_DLGLOBAL DL_GLOBAL
12640
# define LT_DLGLOBAL 0
12644
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12645
find out it does not work in some platform. */
12646
#ifndef LT_DLLAZY_OR_NOW
12648
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12651
# define LT_DLLAZY_OR_NOW DL_LAZY
12654
# define LT_DLLAZY_OR_NOW RTLD_NOW
12657
# define LT_DLLAZY_OR_NOW DL_NOW
12659
# define LT_DLLAZY_OR_NOW 0
12667
extern "C" void exit (int);
12670
void fnord() { int i=42;}
12673
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12674
int status = $lt_dlunknown;
12678
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12679
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12680
/* dlclose (self); */
12686
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12687
(eval $ac_link) 2>&5
12689
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12691
(./conftest; exit; ) 2>/dev/null
12693
case x$lt_status in
12694
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12695
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12696
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12699
# compilation failed
12700
lt_cv_dlopen_self_static=no
12707
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12708
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
12711
CPPFLAGS="$save_CPPFLAGS"
12712
LDFLAGS="$save_LDFLAGS"
12717
case $lt_cv_dlopen_self in
12718
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12719
*) enable_dlopen_self=unknown ;;
12722
case $lt_cv_dlopen_self_static in
12723
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12724
*) enable_dlopen_self_static=unknown ;;
12729
# Report which librarie types wil actually be built
12730
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12731
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
12732
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
12733
echo "${ECHO_T}$can_build_shared" >&6; }
12735
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12736
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
12737
test "$can_build_shared" = "no" && enable_shared=no
12739
# On AIX, shared libraries and static libraries use the same namespace, and
12740
# are all built from PIC.
12743
test "$enable_shared" = yes && enable_static=no
12744
if test -n "$RANLIB"; then
12745
archive_cmds="$archive_cmds~\$RANLIB \$lib"
12746
postinstall_cmds='$RANLIB $lib'
12751
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12752
test "$enable_shared" = yes && enable_static=no
12755
darwin* | rhapsody*)
12756
if test "$GCC" = yes; then
12757
archive_cmds_need_lc=no
12759
rhapsody* | darwin1.[012])
12760
allow_undefined_flag='-Wl,-undefined -Wl,suppress'
12763
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12764
allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
12766
case ${MACOSX_DEPLOYMENT_TARGET} in
12768
allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
12771
allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup'
12777
output_verbose_link_cmd='echo'
12778
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
12779
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
12780
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12781
archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12782
module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12784
hardcode_automatic=yes
12785
hardcode_shlibpath_var=unsupported
12786
whole_archive_flag_spec='-all_load $convenience'
12787
link_all_deplibs=yes
12793
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
12794
echo "${ECHO_T}$enable_shared" >&6; }
12796
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12797
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
12798
# Make sure either enable_shared or enable_static is yes.
12799
test "$enable_shared" = yes || enable_static=yes
12800
{ echo "$as_me:$LINENO: result: $enable_static" >&5
12801
echo "${ECHO_T}$enable_static" >&6; }
12803
# The else clause should only fire when bootstrapping the
12804
# libtool distribution, otherwise you forgot to ship ltmain.sh
12805
# with your package, and you will get complaints that there are
12806
# no rules to generate ltmain.sh.
12807
if test -f "$ltmain"; then
12808
# See if we are running on zsh, and set the options which allow our commands through
12809
# without removal of \ escapes.
12810
if test -n "${ZSH_VERSION+set}" ; then
12811
setopt NO_GLOB_SUBST
12813
# Now quote all the things that may contain metacharacters while being
12814
# careful not to overquote the AC_SUBSTed values. We take copies of the
12815
# variables and quote the copies for generation of the libtool script.
12816
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12817
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12818
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12819
deplibs_check_method reload_flag reload_cmds need_locks \
12820
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12821
lt_cv_sys_global_symbol_to_c_name_address \
12822
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12823
old_postinstall_cmds old_postuninstall_cmds \
12827
lt_prog_compiler_wl \
12828
lt_prog_compiler_pic \
12829
lt_prog_compiler_static \
12830
lt_prog_compiler_no_builtin_flag \
12831
export_dynamic_flag_spec \
12832
thread_safe_flag_spec \
12833
whole_archive_flag_spec \
12834
enable_shared_with_static_runtimes \
12836
old_archive_from_new_cmds \
12841
compiler_lib_search_path \
12843
archive_expsym_cmds \
12845
postuninstall_cmds \
12846
old_archive_from_expsyms_cmds \
12847
allow_undefined_flag \
12848
no_undefined_flag \
12849
export_symbols_cmds \
12850
hardcode_libdir_flag_spec \
12851
hardcode_libdir_flag_spec_ld \
12852
hardcode_libdir_separator \
12853
hardcode_automatic \
12855
module_expsym_cmds \
12856
lt_cv_prog_compiler_c_o \
12858
include_expsyms; do
12861
old_archive_cmds | \
12862
old_archive_from_new_cmds | \
12864
archive_expsym_cmds | \
12866
module_expsym_cmds | \
12867
old_archive_from_expsyms_cmds | \
12868
export_symbols_cmds | \
12869
extract_expsyms_cmds | reload_cmds | finish_cmds | \
12870
postinstall_cmds | postuninstall_cmds | \
12871
old_postinstall_cmds | old_postuninstall_cmds | \
12872
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12873
# Double-quote double-evaled strings.
12874
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12877
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12883
*'\$0 --fallback-echo"')
12884
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12888
cfgfile="${ofile}T"
12889
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
12891
{ echo "$as_me:$LINENO: creating $ofile" >&5
12892
echo "$as_me: creating $ofile" >&6;}
12894
cat <<__EOF__ >> "$cfgfile"
12897
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12898
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
12899
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
12901
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
12902
# Free Software Foundation, Inc.
12904
# This file is part of GNU Libtool:
12905
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
12907
# This program is free software; you can redistribute it and/or modify
12908
# it under the terms of the GNU General Public License as published by
12909
# the Free Software Foundation; either version 2 of the License, or
12910
# (at your option) any later version.
12912
# This program is distributed in the hope that it will be useful, but
12913
# WITHOUT ANY WARRANTY; without even the implied warranty of
12914
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12915
# General Public License for more details.
12917
# You should have received a copy of the GNU General Public License
12918
# along with this program; if not, write to the Free Software
12919
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12921
# As a special exception to the GNU General Public License, if you
12922
# distribute this file as part of a program that contains a
12923
# configuration script generated by Autoconf, you may include it under
12924
# the same distribution terms that you use for the rest of that program.
12926
# A sed program that does not truncate output.
12929
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
12930
Xsed="$SED -e s/^X//"
12932
# The HP-UX ksh and POSIX shell print the target directory to stdout
12933
# if CDPATH is set.
12934
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
12936
# The names of the tagged configurations supported by this script.
12939
# ### BEGIN LIBTOOL CONFIG
12941
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12943
# Shell to use when invoking shell scripts.
12946
# Whether or not to build shared libraries.
12947
build_libtool_libs=$enable_shared
12949
# Whether or not to build static libraries.
12950
build_old_libs=$enable_static
12952
# Whether or not to add -lc for building shared libraries.
12953
build_libtool_need_lc=$archive_cmds_need_lc
12955
# Whether or not to disallow shared libs when runtime libs are static
12956
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
12958
# Whether or not to optimize for fast installation.
12959
fast_install=$enable_fast_install
12962
host_alias=$host_alias
12965
# An echo program that does not interpret backslashes.
12970
AR_FLAGS=$lt_AR_FLAGS
12975
# A language-specific compiler.
12978
# Is the compiler the GNU C compiler?
12984
# The linker used to build libraries.
12987
# Whether we need hard or soft links.
12990
# A BSD-compatible nm program.
12993
# A symbol stripping program
12996
# Used to examine libraries when file_magic_cmd begins "file"
12997
MAGIC_CMD=$MAGIC_CMD
12999
# Used on cygwin: DLL creation program.
13002
# Used on cygwin: object dumper.
13005
# Used on cygwin: assembler.
13008
# The name of the directory that contains temporary libtool files.
13011
# How to create reloadable object files.
13012
reload_flag=$lt_reload_flag
13013
reload_cmds=$lt_reload_cmds
13015
# How to pass a linker flag through the compiler.
13016
wl=$lt_lt_prog_compiler_wl
13018
# Object file suffix (normally "o").
13019
objext="$ac_objext"
13021
# Old archive suffix (normally "a").
13024
# Shared library suffix (normally ".so").
13027
# Executable file suffix (normally "").
13030
# Additional compiler flags for building library objects.
13031
pic_flag=$lt_lt_prog_compiler_pic
13034
# What is the maximum length of a command?
13035
max_cmd_len=$lt_cv_sys_max_cmd_len
13037
# Does compiler simultaneously support -c and -o options?
13038
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13040
# Must we lock files when doing compilation ?
13041
need_locks=$lt_need_locks
13043
# Do we need the lib prefix for modules?
13044
need_lib_prefix=$need_lib_prefix
13046
# Do we need a version for libraries?
13047
need_version=$need_version
13049
# Whether dlopen is supported.
13050
dlopen_support=$enable_dlopen
13052
# Whether dlopen of programs is supported.
13053
dlopen_self=$enable_dlopen_self
13055
# Whether dlopen of statically linked programs is supported.
13056
dlopen_self_static=$enable_dlopen_self_static
13058
# Compiler flag to prevent dynamic linking.
13059
link_static_flag=$lt_lt_prog_compiler_static
13061
# Compiler flag to turn off builtin functions.
13062
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13064
# Compiler flag to allow reflexive dlopens.
13065
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13067
# Compiler flag to generate shared objects directly from archives.
13068
whole_archive_flag_spec=$lt_whole_archive_flag_spec
13070
# Compiler flag to generate thread-safe objects.
13071
thread_safe_flag_spec=$lt_thread_safe_flag_spec
13073
# Library versioning type.
13074
version_type=$version_type
13076
# Format of library name prefix.
13077
libname_spec=$lt_libname_spec
13079
# List of archive names. First name is the real one, the rest are links.
13080
# The last name is the one that the linker finds with -lNAME.
13081
library_names_spec=$lt_library_names_spec
13083
# The coded name of the library, if different from the real name.
13084
soname_spec=$lt_soname_spec
13086
# Commands used to build and install an old-style archive.
13088
old_archive_cmds=$lt_old_archive_cmds
13089
old_postinstall_cmds=$lt_old_postinstall_cmds
13090
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13092
# Create an old-style archive from a shared archive.
13093
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13095
# Create a temporary old-style archive to link instead of a shared archive.
13096
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13098
# Commands used to build and install a shared archive.
13099
archive_cmds=$lt_archive_cmds
13100
archive_expsym_cmds=$lt_archive_expsym_cmds
13101
postinstall_cmds=$lt_postinstall_cmds
13102
postuninstall_cmds=$lt_postuninstall_cmds
13104
# Commands used to build a loadable module (assumed same as above if empty)
13105
module_cmds=$lt_module_cmds
13106
module_expsym_cmds=$lt_module_expsym_cmds
13108
# Commands to strip libraries.
13109
old_striplib=$lt_old_striplib
13110
striplib=$lt_striplib
13112
# Dependencies to place before the objects being linked to create a
13114
predep_objects=$lt_predep_objects
13116
# Dependencies to place after the objects being linked to create a
13118
postdep_objects=$lt_postdep_objects
13120
# Dependencies to place before the objects being linked to create a
13122
predeps=$lt_predeps
13124
# Dependencies to place after the objects being linked to create a
13126
postdeps=$lt_postdeps
13128
# The library search path used internally by the compiler when linking
13129
# a shared library.
13130
compiler_lib_search_path=$lt_compiler_lib_search_path
13132
# Method to check whether dependent libraries are shared objects.
13133
deplibs_check_method=$lt_deplibs_check_method
13135
# Command to use when deplibs_check_method == file_magic.
13136
file_magic_cmd=$lt_file_magic_cmd
13138
# Flag that allows shared libraries with undefined symbols to be built.
13139
allow_undefined_flag=$lt_allow_undefined_flag
13141
# Flag that forces no undefined symbols.
13142
no_undefined_flag=$lt_no_undefined_flag
13144
# Commands used to finish a libtool library installation in a directory.
13145
finish_cmds=$lt_finish_cmds
13147
# Same as above, but a single script fragment to be evaled but not shown.
13148
finish_eval=$lt_finish_eval
13150
# Take the output of nm and produce a listing of raw symbols and C names.
13151
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13153
# Transform the output of nm in a proper C declaration
13154
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13156
# Transform the output of nm in a C name address pair
13157
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13159
# This is the shared library runtime path variable.
13160
runpath_var=$runpath_var
13162
# This is the shared library path variable.
13163
shlibpath_var=$shlibpath_var
13165
# Is shlibpath searched before the hard-coded library search path?
13166
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13168
# How to hardcode a shared library path into an executable.
13169
hardcode_action=$hardcode_action
13171
# Whether we should hardcode library paths into libraries.
13172
hardcode_into_libs=$hardcode_into_libs
13174
# Flag to hardcode \$libdir into a binary during linking.
13175
# This must work even if \$libdir does not exist.
13176
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13178
# If ld is used when linking, flag to hardcode \$libdir into
13179
# a binary during linking. This must work even if \$libdir does
13181
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13183
# Whether we need a single -rpath flag with a separated argument.
13184
hardcode_libdir_separator=$lt_hardcode_libdir_separator
13186
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13187
# resulting binary.
13188
hardcode_direct=$hardcode_direct
13190
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13191
# resulting binary.
13192
hardcode_minus_L=$hardcode_minus_L
13194
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13195
# the resulting binary.
13196
hardcode_shlibpath_var=$hardcode_shlibpath_var
13198
# Set to yes if building a shared library automatically hardcodes DIR into the library
13199
# and all subsequent libraries and executables linked against it.
13200
hardcode_automatic=$hardcode_automatic
13202
# Variables whose values should be saved in libtool wrapper scripts and
13203
# restored at relink time.
13204
variables_saved_for_relink="$variables_saved_for_relink"
13206
# Whether libtool must link a program against all its dependency libraries.
13207
link_all_deplibs=$link_all_deplibs
13209
# Compile-time system search path for libraries
13210
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13212
# Run-time system search path for libraries
13213
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13215
# Fix the shell variable \$srcfile for the compiler.
13216
fix_srcfile_path="$fix_srcfile_path"
13218
# Set to yes if exported symbols are required.
13219
always_export_symbols=$always_export_symbols
13221
# The commands to list exported symbols.
13222
export_symbols_cmds=$lt_export_symbols_cmds
13224
# The commands to extract the exported symbol list from a shared archive.
13225
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13227
# Symbols that should not be listed in the preloaded symbols.
13228
exclude_expsyms=$lt_exclude_expsyms
13230
# Symbols that must always be exported.
13231
include_expsyms=$lt_include_expsyms
13233
# ### END LIBTOOL CONFIG
13240
cat <<\EOF >> "$cfgfile"
13242
# AIX sometimes has problems with the GCC collect2 program. For some
13243
# reason, if we set the COLLECT_NAMES environment variable, the problems
13244
# vanish in a puff of smoke.
13245
if test "X${COLLECT_NAMES+set}" != Xset; then
13247
export COLLECT_NAMES
13253
# We use sed instead of cat because bash on DJGPP gets confused if
13254
# if finds mixed CR/LF and LF-only lines. Since sed operates in
13255
# text mode, it properly converts lines to CR/LF. This bash problem
13256
# is reportedly fixed, but why not run on old versions too?
13257
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
13259
mv -f "$cfgfile" "$ofile" || \
13260
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13264
# If there is no Makefile yet, we rely on a make rule to execute
13265
# `config.status --recheck' to rerun these tests and create the
13266
# libtool script then.
13267
test -f Makefile && make "$ltmain"
13272
ac_cpp='$CPP $CPPFLAGS'
13273
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13274
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13275
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13280
# Check whether --with-tags was given.
13281
if test "${with_tags+set}" = set; then
13282
withval=$with_tags; tagnames="$withval"
13286
if test -f "$ltmain" && test -n "$tagnames"; then
13287
if test ! -f "${ofile}"; then
13288
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
13289
echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
13292
if test -z "$LTCC"; then
13293
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
13294
if test -z "$LTCC"; then
13295
{ echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
13296
echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
13298
{ echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
13299
echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
13303
# Extract list of available tagged configurations in $ofile.
13304
# Note that this assumes the entire list is on one line.
13305
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
13307
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13308
for tagname in $tagnames; do
13310
# Check whether tagname contains only valid characters
13311
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
13313
*) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
13314
echo "$as_me: error: invalid tag name: $tagname" >&2;}
13315
{ (exit 1); exit 1; }; }
13319
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
13321
{ { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
13322
echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
13323
{ (exit 1); exit 1; }; }
13326
# Update the list of available tags.
13327
if test -n "$tagname"; then
13328
echo appending configuration tag \"$tagname\" to $ofile
13332
if test -n "$CXX" && test "X$CXX" != "Xno"; then
13334
ac_cpp='$CXXCPP $CPPFLAGS'
13335
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13336
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13337
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13342
archive_cmds_need_lc_CXX=no
13343
allow_undefined_flag_CXX=
13344
always_export_symbols_CXX=no
13345
archive_expsym_cmds_CXX=
13346
export_dynamic_flag_spec_CXX=
13347
hardcode_direct_CXX=no
13348
hardcode_libdir_flag_spec_CXX=
13349
hardcode_libdir_flag_spec_ld_CXX=
13350
hardcode_libdir_separator_CXX=
13351
hardcode_minus_L_CXX=no
13352
hardcode_automatic_CXX=no
13354
module_expsym_cmds_CXX=
13355
link_all_deplibs_CXX=unknown
13356
old_archive_cmds_CXX=$old_archive_cmds
13357
no_undefined_flag_CXX=
13358
whole_archive_flag_spec_CXX=
13359
enable_shared_with_static_runtimes_CXX=no
13361
# Dependencies to place before and after the object being linked:
13362
predep_objects_CXX=
13363
postdep_objects_CXX=
13366
compiler_lib_search_path_CXX=
13368
# Source file extension for C++ test sources.
13371
# Object file extension for compiled C++ test sources.
13375
# Code to be used in simple compile tests
13376
lt_simple_compile_test_code="int some_variable = 0;\n"
13378
# Code to be used in simple link tests
13379
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
13381
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13383
# If no C compiler was specified, use CC.
13386
# Allow CC to be a program name with arguments.
13390
# Allow CC to be a program name with arguments.
13395
lt_save_with_gnu_ld=$with_gnu_ld
13396
lt_save_path_LD=$lt_cv_path_LD
13397
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13398
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13400
unset lt_cv_prog_gnu_ld
13402
if test -n "${lt_cv_path_LDCXX+set}"; then
13403
lt_cv_path_LD=$lt_cv_path_LDCXX
13405
unset lt_cv_path_LD
13407
test -z "${LDCXX+set}" || LD=$LDCXX
13411
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13413
# We don't want -fno-exception wen compiling C++ code, so set the
13414
# no_builtin_flag separately
13415
if test "$GXX" = yes; then
13416
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13418
lt_prog_compiler_no_builtin_flag_CXX=
13421
if test "$GXX" = yes; then
13422
# Set up default GNU C++ configuration
13425
# Check whether --with-gnu-ld was given.
13426
if test "${with_gnu_ld+set}" = set; then
13427
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13433
if test "$GCC" = yes; then
13434
# Check if gcc -print-prog-name=ld gives a path.
13435
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13436
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
13439
# gcc leaves a trailing carriage return which upsets mingw
13440
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13442
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13445
# Accept absolute paths.
13447
re_direlt='/[^/][^/]*/\.\./'
13448
# Canonicalize the pathname of ld
13449
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
13450
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13451
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
13453
test -z "$LD" && LD="$ac_prog"
13456
# If it fails, then pretend we aren't using GCC.
13460
# If it is relative, then search for the first ld in PATH.
13461
with_gnu_ld=unknown
13464
elif test "$with_gnu_ld" = yes; then
13465
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
13466
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
13468
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13469
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
13471
if test "${lt_cv_path_LD+set}" = set; then
13472
echo $ECHO_N "(cached) $ECHO_C" >&6
13474
if test -z "$LD"; then
13475
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13476
for ac_dir in $PATH; do
13478
test -z "$ac_dir" && ac_dir=.
13479
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13480
lt_cv_path_LD="$ac_dir/$ac_prog"
13481
# Check to see if the program is GNU ld. I'd rather use --version,
13482
# but apparently some GNU ld's only accept -v.
13483
# Break only if it was the GNU/non-GNU ld that we prefer.
13484
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13485
*GNU* | *'with BFD'*)
13486
test "$with_gnu_ld" != no && break
13489
test "$with_gnu_ld" != yes && break
13496
lt_cv_path_LD="$LD" # Let the user override the test with a path.
13500
LD="$lt_cv_path_LD"
13501
if test -n "$LD"; then
13502
{ echo "$as_me:$LINENO: result: $LD" >&5
13503
echo "${ECHO_T}$LD" >&6; }
13505
{ echo "$as_me:$LINENO: result: no" >&5
13506
echo "${ECHO_T}no" >&6; }
13508
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13509
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13510
{ (exit 1); exit 1; }; }
13511
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13512
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
13513
if test "${lt_cv_prog_gnu_ld+set}" = set; then
13514
echo $ECHO_N "(cached) $ECHO_C" >&6
13516
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
13517
case `$LD -v 2>&1 </dev/null` in
13518
*GNU* | *'with BFD'*)
13519
lt_cv_prog_gnu_ld=yes
13522
lt_cv_prog_gnu_ld=no
13526
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13527
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
13528
with_gnu_ld=$lt_cv_prog_gnu_ld
13532
# Check if GNU C++ uses GNU ld as the underlying linker, since the
13533
# archiving commands below assume that GNU ld is being used.
13534
if test "$with_gnu_ld" = yes; then
13535
archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
13536
archive_expsym_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13538
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13539
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13541
# If archive_cmds runs LD, not CC, wlarc should be empty
13542
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13543
# investigate it a little bit more. (MM)
13546
# ancient GNU ld didn't support --whole-archive et. al.
13547
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
13548
grep 'no-whole-archive' > /dev/null; then
13549
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13551
whole_archive_flag_spec_CXX=
13557
# A generic and very simple default shared library creation
13558
# command for GNU C++ for the case where it uses the native
13559
# linker, instead of GNU ld. If possible, this setting should
13560
# overridden to take advantage of the native linker features on
13561
# the platform it is being used on.
13562
archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $lib'
13565
# Commands to make compiler produce verbose output that lists
13566
# what "hidden" libraries, object files and flags are used when
13567
# linking a shared library.
13568
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13576
# PORTME: fill in a description of your system's C++ link characteristics
13577
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13578
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13582
# FIXME: insert proper C++ library support
13586
if test "$host_cpu" = ia64; then
13587
# On IA64, the linker does run time linking by default, so we don't
13588
# have to do anything special.
13589
aix_use_runtimelinking=no
13590
exp_sym_flag='-Bexport'
13593
# KDE requires run time linking. Make it the default.
13594
aix_use_runtimelinking=yes
13595
exp_sym_flag='-bexport'
13596
no_entry_flag='-bnoentry'
13599
# When large executables or shared objects are built, AIX ld can
13600
# have problems creating the table of contents. If linking a library
13601
# or program results in "error TOC overflow" add -mminimal-toc to
13602
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13603
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13605
archive_cmds_CXX=''
13606
hardcode_direct_CXX=yes
13607
hardcode_libdir_separator_CXX=':'
13608
link_all_deplibs_CXX=yes
13610
if test "$GXX" = yes; then
13611
case $host_os in aix4.012|aix4.012.*)
13612
# We only want to do this on AIX 4.2 and lower, the check
13613
# below for broken collect2 doesn't work under 4.3+
13614
collect2name=`${CC} -print-prog-name=collect2`
13615
if test -f "$collect2name" && \
13616
strings "$collect2name" | grep resolve_lib_name >/dev/null
13618
# We have reworked collect2
13619
hardcode_direct_CXX=yes
13621
# We have old collect2
13622
hardcode_direct_CXX=unsupported
13623
# It fails to find uninstalled libraries when the uninstalled
13624
# path is not listed in the libpath. Setting hardcode_minus_L
13625
# to unsupported forces relinking
13626
hardcode_minus_L_CXX=yes
13627
hardcode_libdir_flag_spec_CXX='-L$libdir'
13628
hardcode_libdir_separator_CXX=
13631
shared_flag='-shared'
13634
if test "$host_cpu" = ia64; then
13635
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13636
# chokes on -Wl,-G. The following line is correct:
13639
if test "$aix_use_runtimelinking" = yes; then
13640
shared_flag='-qmkshrobj ${wl}-G'
13642
shared_flag='-qmkshrobj'
13647
# Let the compiler handle the export list.
13648
always_export_symbols_CXX=no
13649
if test "$aix_use_runtimelinking" = yes; then
13650
# Warning - without using the other runtime loading flags (-brtl),
13651
# -berok will link without error, but may produce a broken library.
13652
allow_undefined_flag_CXX='-berok'
13653
# Determine the default libpath from the value encoded in an empty executable.
13654
cat >conftest.$ac_ext <<_ACEOF
13657
cat confdefs.h >>conftest.$ac_ext
13658
cat >>conftest.$ac_ext <<_ACEOF
13659
/* end confdefs.h. */
13669
rm -f conftest.$ac_objext conftest$ac_exeext
13670
if { (ac_try="$ac_link"
13671
case "(($ac_try" in
13672
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13673
*) ac_try_echo=$ac_try;;
13675
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13676
(eval "$ac_link") 2>conftest.er1
13678
grep -v '^ *+' conftest.er1 >conftest.err
13680
cat conftest.err >&5
13681
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682
(exit $ac_status); } && {
13683
test -z "$ac_cxx_werror_flag" ||
13684
test ! -s conftest.err
13685
} && test -s conftest$ac_exeext &&
13686
$as_test_x conftest$ac_exeext; then
13688
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13690
# Check for a 64-bit object if we didn't find anything.
13691
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13694
echo "$as_me: failed program was:" >&5
13695
sed 's/^/| /' conftest.$ac_ext >&5
13700
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13701
conftest$ac_exeext conftest.$ac_ext
13702
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13704
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13706
archive_cmds_CXX="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
13707
archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13709
if test "$host_cpu" = ia64; then
13710
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13711
allow_undefined_flag_CXX="-z nodefs"
13712
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13714
# Determine the default libpath from the value encoded in an empty executable.
13715
cat >conftest.$ac_ext <<_ACEOF
13718
cat confdefs.h >>conftest.$ac_ext
13719
cat >>conftest.$ac_ext <<_ACEOF
13720
/* end confdefs.h. */
13730
rm -f conftest.$ac_objext conftest$ac_exeext
13731
if { (ac_try="$ac_link"
13732
case "(($ac_try" in
13733
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13734
*) ac_try_echo=$ac_try;;
13736
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13737
(eval "$ac_link") 2>conftest.er1
13739
grep -v '^ *+' conftest.er1 >conftest.err
13741
cat conftest.err >&5
13742
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743
(exit $ac_status); } && {
13744
test -z "$ac_cxx_werror_flag" ||
13745
test ! -s conftest.err
13746
} && test -s conftest$ac_exeext &&
13747
$as_test_x conftest$ac_exeext; then
13749
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13751
# Check for a 64-bit object if we didn't find anything.
13752
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13755
echo "$as_me: failed program was:" >&5
13756
sed 's/^/| /' conftest.$ac_ext >&5
13761
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13762
conftest$ac_exeext conftest.$ac_ext
13763
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13765
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13766
# Warning - without using the other run time loading flags,
13767
# -berok will link without error, but may produce a broken library.
13768
no_undefined_flag_CXX=' ${wl}-bernotok'
13769
allow_undefined_flag_CXX=' ${wl}-berok'
13770
# -bexpall does not export symbols beginning with underscore (_)
13771
always_export_symbols_CXX=yes
13772
# Exported symbols can be pulled into shared objects from archives
13773
whole_archive_flag_spec_CXX=' '
13774
archive_cmds_need_lc_CXX=yes
13775
# This is similar to how AIX traditionally builds it's shared libraries.
13776
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13781
case $cc_basename in
13783
# FIXME: insert proper C++ library support
13789
cygwin* | mingw* | pw32*)
13790
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13791
# as there is no search path for DLLs.
13792
hardcode_libdir_flag_spec_CXX='-L$libdir'
13793
allow_undefined_flag_CXX=no
13794
always_export_symbols_CXX=no
13795
enable_shared_with_static_runtimes_CXX=yes
13797
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13798
archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13799
# If the export-symbols file already is a .def file (1st line
13800
# is EXPORTS), use it as is; otherwise, prepend...
13801
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13802
cp $export_symbols $output_objdir/$soname.def;
13804
echo EXPORTS > $output_objdir/$soname.def;
13805
cat $export_symbols >> $output_objdir/$soname.def;
13807
$CC -shared -nostdlib $output_objdir/$soname.def $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13813
darwin* | rhapsody*)
13814
if test "$GXX" = yes; then
13815
archive_cmds_need_lc_CXX=no
13817
rhapsody* | darwin1.[012])
13818
allow_undefined_flag_CXX='-Wl,-undefined -Wl,suppress'
13821
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13822
allow_undefined_flag_CXX='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
13824
case ${MACOSX_DEPLOYMENT_TARGET} in
13826
allow_undefined_flag_CXX='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
13829
allow_undefined_flag_CXX='-Wl,-undefined -Wl,dynamic_lookup'
13835
lt_int_apple_cc_single_mod=no
13836
output_verbose_link_cmd='echo'
13837
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13838
lt_int_apple_cc_single_mod=yes
13840
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13841
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
13843
archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
13845
module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
13847
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13848
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13849
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13851
archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13853
module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13854
hardcode_direct_CXX=no
13855
hardcode_automatic_CXX=yes
13856
hardcode_shlibpath_var_CXX=unsupported
13857
whole_archive_flag_spec_CXX='-all_load $convenience'
13858
link_all_deplibs_CXX=yes
13865
case $cc_basename in
13867
# FIXME: insert proper C++ library support
13871
# Green Hills C++ Compiler
13872
# FIXME: insert proper C++ library support
13876
# FIXME: insert proper C++ library support
13882
# C++ shared libraries reported to be fairly broken before switch to ELF
13886
archive_cmds_need_lc_CXX=no
13888
freebsd* | kfreebsd*-gnu)
13889
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13896
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13897
hardcode_libdir_separator_CXX=:
13898
export_dynamic_flag_spec_CXX='${wl}-E'
13899
hardcode_direct_CXX=yes
13900
hardcode_minus_L_CXX=yes # Not in the search PATH,
13901
# but as the default
13902
# location of the library.
13904
case $cc_basename in
13906
# FIXME: insert proper C++ library support
13910
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13911
# Commands to make compiler produce verbose output that lists
13912
# what "hidden" libraries, object files and flags are used when
13913
# linking a shared library.
13915
# There doesn't appear to be a way to prevent this compiler from
13916
# explicitly linking system object files so we need to strip them
13917
# from the output so that they don't get included in the library
13919
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13922
if test "$GXX" = yes; then
13923
archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13925
# FIXME: insert proper C++ library support
13932
if test $with_gnu_ld = no; then
13933
case "$host_cpu" in
13935
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13936
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
13937
hardcode_libdir_separator_CXX=:
13940
hardcode_libdir_flag_spec_CXX='-L$libdir'
13943
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13944
hardcode_libdir_separator_CXX=:
13945
export_dynamic_flag_spec_CXX='${wl}-E'
13949
case "$host_cpu" in
13951
hardcode_direct_CXX=no
13952
hardcode_shlibpath_var_CXX=no
13955
hardcode_direct_CXX=no
13956
hardcode_shlibpath_var_CXX=no
13957
hardcode_minus_L_CXX=yes # Not in the search PATH,
13958
# but as the default
13959
# location of the library.
13962
hardcode_direct_CXX=yes
13963
hardcode_minus_L_CXX=yes # Not in the search PATH,
13964
# but as the default
13965
# location of the library.
13969
case $cc_basename in
13971
# FIXME: insert proper C++ library support
13975
case "$host_cpu" in
13977
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
13980
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
13983
# Commands to make compiler produce verbose output that lists
13984
# what "hidden" libraries, object files and flags are used when
13985
# linking a shared library.
13987
# There doesn't appear to be a way to prevent this compiler from
13988
# explicitly linking system object files so we need to strip them
13989
# from the output so that they don't get included in the library
13991
output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
13994
if test "$GXX" = yes; then
13995
if test $with_gnu_ld = no; then
13996
case "$host_cpu" in
13998
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
14001
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
14006
# FIXME: insert proper C++ library support
14013
case $cc_basename in
14016
archive_cmds_CXX='$CC -shared -all -multigot $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
14018
# Archives containing C++ object files must be created using
14019
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
14020
# necessary to make sure instantiated templates are included
14022
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14025
if test "$GXX" = yes; then
14026
if test "$with_gnu_ld" = no; then
14027
archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
14029
archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
14032
link_all_deplibs_CXX=yes
14035
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14036
hardcode_libdir_separator_CXX=:
14039
case $cc_basename in
14041
# Kuck and Associates, Inc. (KAI) C++ Compiler
14043
# KCC will only create a shared library if the output file
14044
# ends with ".so" (or ".sl" for HP-UX), so rename the library
14045
# to its proper name (with version) after linking.
14046
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib'
14047
archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
14048
# Commands to make compiler produce verbose output that lists
14049
# what "hidden" libraries, object files and flags are used when
14050
# linking a shared library.
14052
# There doesn't appear to be a way to prevent this compiler from
14053
# explicitly linking system object files so we need to strip them
14054
# from the output so that they don't get included in the library
14056
output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
14058
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
14059
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14061
# Archives containing C++ object files must be created using
14062
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
14063
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14068
archive_cmds_need_lc_CXX=no
14069
archive_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
14070
archive_expsym_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14071
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14072
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14073
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14077
archive_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
14078
archive_expsym_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
14080
runpath_var=LD_RUN_PATH
14081
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14082
hardcode_libdir_separator_CXX=:
14084
# Commands to make compiler produce verbose output that lists
14085
# what "hidden" libraries, object files and flags are used when
14086
# linking a shared library.
14088
# There doesn't appear to be a way to prevent this compiler from
14089
# explicitly linking system object files so we need to strip them
14090
# from the output so that they don't get included in the library
14092
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
14097
# FIXME: insert proper C++ library support
14101
# FIXME: insert proper C++ library support
14105
case $cc_basename in
14107
# FIXME: insert proper C++ library support
14111
# FIXME: insert proper C++ library support
14117
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14118
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14120
hardcode_libdir_flag_spec_CXX='-R$libdir'
14121
hardcode_direct_CXX=yes
14122
hardcode_shlibpath_var_CXX=no
14124
# Workaround some broken pre-1.5 toolchains
14125
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14128
case $cc_basename in
14130
# Kuck and Associates, Inc. (KAI) C++ Compiler
14132
# KCC will only create a shared library if the output file
14133
# ends with ".so" (or ".sl" for HP-UX), so rename the library
14134
# to its proper name (with version) after linking.
14135
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib'
14137
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14138
hardcode_libdir_separator_CXX=:
14140
# Archives containing C++ object files must be created using
14141
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
14142
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14146
# Rational C++ 2.4.1
14147
# FIXME: insert proper C++ library support
14151
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14152
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
14154
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14155
hardcode_libdir_separator_CXX=:
14157
# Commands to make compiler produce verbose output that lists
14158
# what "hidden" libraries, object files and flags are used when
14159
# linking a shared library.
14161
# There doesn't appear to be a way to prevent this compiler from
14162
# explicitly linking system object files so we need to strip them
14163
# from the output so that they don't get included in the library
14165
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
14168
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14169
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14170
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
14172
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14173
hardcode_libdir_separator_CXX=:
14175
# Commands to make compiler produce verbose output that lists
14176
# what "hidden" libraries, object files and flags are used when
14177
# linking a shared library.
14178
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14181
# FIXME: insert proper C++ library support
14188
case $cc_basename in
14190
# Kuck and Associates, Inc. (KAI) C++ Compiler
14192
# KCC will only create a shared library if the output file
14193
# ends with ".so" (or ".sl" for HP-UX), so rename the library
14194
# to its proper name (with version) after linking.
14195
archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects --soname $soname -o \$templib; mv \$templib $lib'
14197
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14198
hardcode_libdir_separator_CXX=:
14200
# Archives containing C++ object files must be created using
14201
# the KAI C++ compiler.
14202
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
14205
# Rational C++ 2.4.1
14206
# FIXME: insert proper C++ library support
14210
allow_undefined_flag_CXX=' -expect_unresolved \*'
14211
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
14212
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14213
echo "-hidden">> $lib.exp~
14214
$CC -shared$allow_undefined_flag $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
14217
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14218
hardcode_libdir_separator_CXX=:
14220
# Commands to make compiler produce verbose output that lists
14221
# what "hidden" libraries, object files and flags are used when
14222
# linking a shared library.
14224
# There doesn't appear to be a way to prevent this compiler from
14225
# explicitly linking system object files so we need to strip them
14226
# from the output so that they don't get included in the library
14228
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
14231
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14232
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14233
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
14235
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14236
hardcode_libdir_separator_CXX=:
14238
# Commands to make compiler produce verbose output that lists
14239
# what "hidden" libraries, object files and flags are used when
14240
# linking a shared library.
14241
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14244
# FIXME: insert proper C++ library support
14251
# FIXME: insert proper C++ library support
14255
archive_cmds_need_lc_CXX=no
14256
case $cc_basename in
14258
# FIXME: insert proper C++ library support
14262
# FIXME: insert proper C++ library support
14268
case $cc_basename in
14271
# FIXME: insert proper C++ library support
14276
# FIXME: insert proper C++ library support
14280
# FIXME: insert proper C++ library support
14286
case $cc_basename in
14288
# Sun C++ 4.2, 5.x and Centerline C++
14289
no_undefined_flag_CXX=' -zdefs'
14290
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
14291
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14292
$CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
14294
hardcode_libdir_flag_spec_CXX='-R$libdir'
14295
hardcode_shlibpath_var_CXX=no
14297
solaris2.0-5 | solaris2.0-5.*) ;;
14299
# The C++ compiler is used as linker so we must use $wl
14300
# flag to pass the commands to the underlying system
14302
# Supported since Solaris 2.6 (maybe 2.5.1?)
14303
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14306
link_all_deplibs_CXX=yes
14308
# Commands to make compiler produce verbose output that lists
14309
# what "hidden" libraries, object files and flags are used when
14310
# linking a shared library.
14312
# There doesn't appear to be a way to prevent this compiler from
14313
# explicitly linking system object files so we need to strip them
14314
# from the output so that they don't get included in the library
14316
output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
14318
# Archives containing C++ object files must be created using
14319
# "CC -xar", where "CC" is the Sun C++ compiler. This is
14320
# necessary to make sure instantiated templates are included
14322
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14325
# Green Hills C++ Compiler
14326
archive_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
14328
# The C++ compiler must be used to create the archive.
14329
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14332
# GNU C++ compiler with Solaris linker
14333
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14334
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14335
if $CC --version | grep -v '^2\.7' > /dev/null; then
14336
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
14337
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14338
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
14340
# Commands to make compiler produce verbose output that lists
14341
# what "hidden" libraries, object files and flags are used when
14342
# linking a shared library.
14343
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14345
# g++ 2.7 appears to require `-G' NOT `-shared' on this
14347
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
14348
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14349
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
14351
# Commands to make compiler produce verbose output that lists
14352
# what "hidden" libraries, object files and flags are used when
14353
# linking a shared library.
14354
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14357
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14362
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14363
archive_cmds_need_lc_CXX=no
14366
case $cc_basename in
14368
# NonStop-UX NCC 3.20
14369
# FIXME: insert proper C++ library support
14373
# FIXME: insert proper C++ library support
14379
# FIXME: insert proper C++ library support
14383
# FIXME: insert proper C++ library support
14387
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14388
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14389
test "$ld_shlibs_CXX" = no && can_build_shared=no
14395
## There is no encapsulation within the following macros, do not change
14396
## the running order or otherwise move them around unless you know exactly
14397
## what you are doing...
14399
cat > conftest.$ac_ext <<EOF
14403
Foo (void) { a = 0; }
14409
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14410
(eval $ac_compile) 2>&5
14412
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14413
(exit $ac_status); }; then
14414
# Parse the compiler output and extract the necessary
14415
# objects, libraries and library flags.
14417
# Sentinel used to keep track of whether or not we are before
14418
# the conftest object file.
14419
pre_test_object_deps_done=no
14421
# The `*' in the case matches for architectures that use `case' in
14422
# $output_verbose_cmd can trigger glob expansion during the loop
14423
# eval without this substitution.
14424
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
14426
for p in `eval $output_verbose_link_cmd`; do
14430
# Some compilers place space between "-{L,R}" and the path.
14431
# Remove the space.
14432
if test $p = "-L" \
14433
|| test $p = "-R"; then
14440
if test "$pre_test_object_deps_done" = no; then
14443
# Internal compiler library paths should come after those
14444
# provided the user. The postdeps already come after the
14445
# user supplied libs so there is no need to process them.
14446
if test -z "$compiler_lib_search_path_CXX"; then
14447
compiler_lib_search_path_CXX="${prev}${p}"
14449
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14452
# The "-l" case would never come before the object being
14453
# linked, so don't bother handling this case.
14456
if test -z "$postdeps_CXX"; then
14457
postdeps_CXX="${prev}${p}"
14459
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14464
*.$objext|*.$libext)
14465
# This assumes that the test object file only shows up
14466
# once in the compiler output.
14467
if test "$p" = "conftest.$objext"; then
14468
pre_test_object_deps_done=yes
14472
if test "$pre_test_object_deps_done" = no; then
14473
if test -z "$predep_objects_CXX"; then
14474
predep_objects_CXX="$p"
14476
predep_objects_CXX="$predep_objects_CXX $p"
14479
if test -z "$postdep_objects_CXX"; then
14480
postdep_objects_CXX="$p"
14482
postdep_objects_CXX="$postdep_objects_CXX $p"
14487
*) ;; # Ignore the rest.
14495
echo "libtool.m4: error: problem compiling CXX test program"
14498
$rm -f confest.$objext
14500
case " $postdeps_CXX " in
14501
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14504
lt_prog_compiler_wl_CXX=
14505
lt_prog_compiler_pic_CXX=
14506
lt_prog_compiler_static_CXX=
14508
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14509
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14511
# C++ specific cases for pic, static, wl, etc.
14512
if test "$GXX" = yes; then
14513
lt_prog_compiler_wl_CXX='-Wl,'
14514
lt_prog_compiler_static_CXX='-static'
14518
# All AIX code is PIC.
14519
if test "$host_cpu" = ia64; then
14520
# AIX 5 now supports IA64 processor
14521
lt_prog_compiler_static_CXX='-Bstatic'
14525
# FIXME: we need at least 68020 code to build shared libraries, but
14526
# adding the `-m68020' flag to GCC prevents building anything better,
14528
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14530
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14531
# PIC is the default for these OSes.
14533
mingw* | os2* | pw32*)
14534
# This hack is so that the source file can tell whether it is being
14535
# built for inclusion in a dll (and should export symbols for example).
14536
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14538
darwin* | rhapsody*)
14539
# PIC is the default on this platform
14540
# Common symbols not allowed in MH_DYLIB files
14541
lt_prog_compiler_pic_CXX='-fno-common'
14544
# DJGPP does not support shared libraries at all
14545
lt_prog_compiler_pic_CXX=
14548
if test -d /usr/nec; then
14549
lt_prog_compiler_pic_CXX=-Kconform_pic
14553
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14554
# not for PA HP-UX.
14555
case "$host_cpu" in
14559
lt_prog_compiler_pic_CXX='-fPIC'
14564
lt_prog_compiler_pic_CXX='-fPIC'
14570
# All AIX code is PIC.
14571
if test "$host_cpu" = ia64; then
14572
# AIX 5 now supports IA64 processor
14573
lt_prog_compiler_static_CXX='-Bstatic'
14575
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14579
case $cc_basename in
14581
# Green Hills C++ Compiler
14582
# _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14587
case $cc_basename in
14589
lt_prog_compiler_pic_CXX='-KPIC'
14592
# Green Hills C++ Compiler
14593
lt_prog_compiler_pic_CXX='-pic'
14599
freebsd* | kfreebsd*-gnu)
14600
# FreeBSD uses GNU C++
14602
hpux9* | hpux10* | hpux11*)
14603
case $cc_basename in
14605
lt_prog_compiler_wl_CXX='-Wl,'
14606
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
14607
if test "$host_cpu" != ia64; then
14608
lt_prog_compiler_pic_CXX='+Z'
14612
lt_prog_compiler_wl_CXX='-Wl,'
14613
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
14614
case "$host_cpu" in
14619
lt_prog_compiler_pic_CXX='+Z'
14627
irix5* | irix6* | nonstopux*)
14628
case $cc_basename in
14630
lt_prog_compiler_wl_CXX='-Wl,'
14631
lt_prog_compiler_static_CXX='-non_shared'
14632
# CC pic flag -KPIC is the default.
14639
case $cc_basename in
14642
lt_prog_compiler_wl_CXX='--backend -Wl,'
14643
lt_prog_compiler_pic_CXX='-fPIC'
14647
lt_prog_compiler_wl_CXX='-Wl,'
14648
lt_prog_compiler_pic_CXX='-KPIC'
14649
lt_prog_compiler_static_CXX='-static'
14653
# Make sure the PIC flag is empty. It appears that all Alpha
14654
# Linux and Compaq Tru64 Unix objects are PIC.
14655
lt_prog_compiler_pic_CXX=
14656
lt_prog_compiler_static_CXX='-non_shared'
14667
case $cc_basename in
14669
lt_prog_compiler_pic_CXX='-W c,exportall'
14677
osf3* | osf4* | osf5*)
14678
case $cc_basename in
14680
lt_prog_compiler_wl_CXX='--backend -Wl,'
14683
# Rational C++ 2.4.1
14684
lt_prog_compiler_pic_CXX='-pic'
14687
# Digital/Compaq C++
14688
lt_prog_compiler_wl_CXX='-Wl,'
14689
# Make sure the PIC flag is empty. It appears that all Alpha
14690
# Linux and Compaq Tru64 Unix objects are PIC.
14691
lt_prog_compiler_pic_CXX=
14692
lt_prog_compiler_static_CXX='-non_shared'
14701
case $cc_basename in
14703
lt_prog_compiler_pic_CXX='-fPIC'
14710
case $cc_basename in
14712
# Sun C++ 4.2, 5.x and Centerline C++
14713
lt_prog_compiler_pic_CXX='-KPIC'
14714
lt_prog_compiler_static_CXX='-Bstatic'
14715
lt_prog_compiler_wl_CXX='-Qoption ld '
14718
# Green Hills C++ Compiler
14719
lt_prog_compiler_pic_CXX='-PIC'
14726
case $cc_basename in
14729
lt_prog_compiler_pic_CXX='-pic'
14730
lt_prog_compiler_static_CXX='-Bstatic'
14734
lt_prog_compiler_pic_CXX='-pic'
14741
case $cc_basename in
14743
# NonStop-UX NCC 3.20
14744
lt_prog_compiler_pic_CXX='-KPIC'
14755
lt_prog_compiler_can_build_shared_CXX=no
14760
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14761
echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
14764
# Check to make sure the PIC flag actually works.
14766
if test -n "$lt_prog_compiler_pic_CXX"; then
14768
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14769
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
14770
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
14771
echo $ECHO_N "(cached) $ECHO_C" >&6
14773
lt_prog_compiler_pic_works_CXX=no
14774
ac_outfile=conftest.$ac_objext
14775
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14776
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14777
# Insert the option either (1) after the last *FLAGS variable, or
14778
# (2) before a word containing "conftest.", or (3) at the end.
14779
# Note that $ac_compile itself does not contain backslashes and begins
14780
# with a dollar sign (not a hyphen), so the echo should work correctly.
14781
# The option is referenced via a variable to avoid confusing sed.
14782
lt_compile=`echo "$ac_compile" | $SED \
14783
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14784
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14785
-e 's:$: $lt_compiler_flag:'`
14786
(eval echo "\"\$as_me:14786: $lt_compile\"" >&5)
14787
(eval "$lt_compile" 2>conftest.err)
14789
cat conftest.err >&5
14790
echo "$as_me:14790: \$? = $ac_status" >&5
14791
if (exit $ac_status) && test -s "$ac_outfile"; then
14792
# The compiler can only warn and ignore the option if not recognized
14793
# So say no if there are warnings
14794
if test ! -s conftest.err; then
14795
lt_prog_compiler_pic_works_CXX=yes
14801
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
14802
echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
14804
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
14805
case $lt_prog_compiler_pic_CXX in
14807
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14810
lt_prog_compiler_pic_CXX=
14811
lt_prog_compiler_can_build_shared_CXX=no
14816
# For platforms which do not support PIC, -DPIC is meaningless:
14818
lt_prog_compiler_pic_CXX=
14821
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14825
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14826
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14827
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
14828
echo $ECHO_N "(cached) $ECHO_C" >&6
14830
lt_cv_prog_compiler_c_o_CXX=no
14831
$rm -r conftest 2>/dev/null
14835
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14837
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
14838
# that will create temporary files in the current directory regardless of
14839
# the output directory. Thus, making CWD read-only will cause this test
14840
# to fail, enabling locking or at least warning the user not to do parallel
14844
lt_compiler_flag="-o out/conftest2.$ac_objext"
14845
# Insert the option either (1) after the last *FLAGS variable, or
14846
# (2) before a word containing "conftest.", or (3) at the end.
14847
# Note that $ac_compile itself does not contain backslashes and begins
14848
# with a dollar sign (not a hyphen), so the echo should work correctly.
14849
lt_compile=`echo "$ac_compile" | $SED \
14850
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14851
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14852
-e 's:$: $lt_compiler_flag:'`
14853
(eval echo "\"\$as_me:14853: $lt_compile\"" >&5)
14854
(eval "$lt_compile" 2>out/conftest.err)
14856
cat out/conftest.err >&5
14857
echo "$as_me:14857: \$? = $ac_status" >&5
14858
if (exit $ac_status) && test -s out/conftest2.$ac_objext
14860
# The compiler can only warn and ignore the option if not recognized
14861
# So say no if there are warnings
14862
if test ! -s out/conftest.err; then
14863
lt_cv_prog_compiler_c_o_CXX=yes
14867
$rm conftest* out/*
14874
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14875
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
14878
hard_links="nottested"
14879
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14880
# do not overwrite the value of need_locks provided by the user
14881
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14882
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14885
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14887
ln conftest.a conftest.b 2>&5 || hard_links=no
14888
ln conftest.a conftest.b 2>/dev/null && hard_links=no
14889
{ echo "$as_me:$LINENO: result: $hard_links" >&5
14890
echo "${ECHO_T}$hard_links" >&6; }
14891
if test "$hard_links" = no; then
14892
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14893
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14900
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14901
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14903
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14906
# If we're using GNU nm, then we don't want the "-C" option.
14907
# -C means demangle to AIX nm, but means don't demangle with GNU nm
14908
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14909
export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14911
export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14915
export_symbols_cmds_CXX="$ltdll_cmds"
14918
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14921
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14925
{ echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14926
echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
14927
test "$ld_shlibs_CXX" = no && can_build_shared=no
14929
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14930
if test "$GCC" = yes; then
14931
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14935
# Do we need to explicitly link libc?
14937
case "x$archive_cmds_need_lc_CXX" in
14939
# Assume -lc should be added
14940
archive_cmds_need_lc_CXX=yes
14942
if test "$enable_shared" = yes && test "$GCC" = yes; then
14943
case $archive_cmds_CXX in
14945
# FIXME: we may have to deal with multi-command sequences.
14948
# Test whether the compiler implicitly links with -lc since on some
14949
# systems, -lgcc has to come before -lc. If gcc already passes -lc
14950
# to ld, don't add -lc before -lgcc.
14951
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14952
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14954
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14956
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14957
(eval $ac_compile) 2>&5
14959
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960
(exit $ac_status); } 2>conftest.err; then
14963
libobjs=conftest.$ac_objext
14965
wl=$lt_prog_compiler_wl_CXX
14971
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14972
allow_undefined_flag_CXX=
14973
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14974
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14976
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14977
(exit $ac_status); }
14979
archive_cmds_need_lc_CXX=no
14981
archive_cmds_need_lc_CXX=yes
14983
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14985
cat conftest.err 1>&5
14988
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
14989
echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
14996
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14997
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14998
library_names_spec=
14999
libname_spec='lib$name'
15003
postuninstall_cmds=
15007
shlibpath_overrides_runpath=unknown
15009
dynamic_linker="$host_os ld.so"
15010
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15011
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15012
need_lib_prefix=unknown
15013
hardcode_into_libs=no
15015
# when you set need_version to no, make sure it does not cause -set_version
15016
# flags to be left without arguments
15017
need_version=unknown
15022
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15023
shlibpath_var=LIBPATH
15025
# AIX 3 has no versioning support, so we append a major version to the name.
15026
soname_spec='${libname}${release}${shared_ext}$major'
15033
hardcode_into_libs=yes
15034
if test "$host_cpu" = ia64; then
15035
# AIX 5 supports IA64
15036
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15037
shlibpath_var=LD_LIBRARY_PATH
15039
# With GCC up to 2.95.x, collect2 would create an import file
15040
# for dependence libraries. The import file would start with
15041
# the line `#! .'. This would cause the generated library to
15042
# depend on `.', always an invalid library. This was fixed in
15043
# development snapshots of GCC prior to 3.0.
15045
aix4 | aix4.[01] | aix4.[01].*)
15046
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15048
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15051
can_build_shared=no
15055
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15056
# soname into executable. Probably we can add versioning support to
15057
# collect2, so additional links can be useful in future.
15058
if test "$aix_use_runtimelinking" = yes; then
15059
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15060
# instead of lib<name>.a to let people know that these are not
15061
# typical AIX shared libraries.
15062
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15064
# We preserve .a as extension for shared libraries through AIX4.2
15065
# and later when we are not doing run time linking.
15066
library_names_spec='${libname}${release}.a $libname.a'
15067
soname_spec='${libname}${release}${shared_ext}$major'
15069
shlibpath_var=LIBPATH
15074
library_names_spec='$libname.ixlibrary $libname.a'
15075
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15076
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'
15080
library_names_spec='${libname}${shared_ext}'
15081
dynamic_linker="$host_os ld.so"
15082
shlibpath_var=LIBRARY_PATH
15088
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15089
soname_spec='${libname}${release}${shared_ext}$major'
15090
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15091
shlibpath_var=LD_LIBRARY_PATH
15092
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15093
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15094
# the default ld.so.conf also contains /usr/contrib/lib and
15095
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15096
# libtool to hard-code these into programs
15099
cygwin* | mingw* | pw32*)
15100
version_type=windows
15105
case $GCC,$host_os in
15106
yes,cygwin* | yes,mingw* | yes,pw32*)
15107
library_names_spec='$libname.dll.a'
15108
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15109
postinstall_cmds='base_file=`basename \${file}`~
15110
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15111
dldir=$destdir/`dirname \$dlpath`~
15112
test -d \$dldir || mkdir -p \$dldir~
15113
$install_prog $dir/$dlname \$dldir/$dlname'
15114
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15115
dlpath=$dir/\$dldll~
15117
shlibpath_overrides_runpath=yes
15121
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15122
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15123
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15126
# MinGW DLLs use traditional 'lib' prefix
15127
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15128
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15129
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15130
# It is most probably a Windows format PATH printed by
15131
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15132
# path with ; separators, and with drive letters. We can handle the
15133
# drive letters (cygwin fileutils understands them), so leave them,
15134
# especially as we might pass files found there to a mingw objdump,
15135
# which wouldn't understand a cygwinified path. Ahh.
15136
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15138
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15142
# pw32 DLLs use 'pw' prefix rather than 'lib'
15143
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15149
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15152
dynamic_linker='Win32 ld.exe'
15153
# FIXME: first we should search . and the directory the executable is in
15157
darwin* | rhapsody*)
15158
dynamic_linker="$host_os dyld"
15159
version_type=darwin
15162
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15163
soname_spec='${libname}${release}${major}$shared_ext'
15164
shlibpath_overrides_runpath=yes
15165
shlibpath_var=DYLD_LIBRARY_PATH
15166
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
15167
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15168
if test "$GCC" = yes; then
15169
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
15171
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15173
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15180
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15181
soname_spec='${libname}${release}${shared_ext}$major'
15182
shlibpath_var=LD_LIBRARY_PATH
15193
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15194
soname_spec='${libname}${release}${shared_ext}$major'
15195
shlibpath_var=LD_LIBRARY_PATH
15196
shlibpath_overrides_runpath=no
15197
hardcode_into_libs=yes
15198
dynamic_linker='GNU ld.so'
15202
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15203
version_type=freebsd-$objformat
15204
case $version_type in
15206
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15211
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15215
shlibpath_var=LD_LIBRARY_PATH
15218
shlibpath_overrides_runpath=yes
15220
freebsd3.01* | freebsdelf3.01*)
15221
shlibpath_overrides_runpath=yes
15222
hardcode_into_libs=yes
15225
shlibpath_overrides_runpath=no
15226
hardcode_into_libs=yes
15235
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15236
soname_spec='${libname}${release}${shared_ext}$major'
15237
shlibpath_var=LD_LIBRARY_PATH
15238
hardcode_into_libs=yes
15241
hpux9* | hpux10* | hpux11*)
15242
# Give a soname corresponding to the major version so that dld.sl refuses to
15243
# link against other versions.
15247
case "$host_cpu" in
15250
hardcode_into_libs=yes
15251
dynamic_linker="$host_os dld.so"
15252
shlibpath_var=LD_LIBRARY_PATH
15253
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15254
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15255
soname_spec='${libname}${release}${shared_ext}$major'
15256
if test "X$HPUX_IA64_MODE" = X32; then
15257
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15259
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15261
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15265
hardcode_into_libs=yes
15266
dynamic_linker="$host_os dld.sl"
15267
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15268
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15269
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15270
soname_spec='${libname}${release}${shared_ext}$major'
15271
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15272
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15276
dynamic_linker="$host_os dld.sl"
15277
shlibpath_var=SHLIB_PATH
15278
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15279
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15280
soname_spec='${libname}${release}${shared_ext}$major'
15283
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15284
postinstall_cmds='chmod 555 $lib'
15287
irix5* | irix6* | nonstopux*)
15289
nonstopux*) version_type=nonstopux ;;
15291
if test "$lt_cv_prog_gnu_ld" = yes; then
15299
soname_spec='${libname}${release}${shared_ext}$major'
15300
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15302
irix5* | nonstopux*)
15303
libsuff= shlibsuff=
15306
case $LD in # libtool.m4 will add one of these switches to LD
15307
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15308
libsuff= shlibsuff= libmagic=32-bit;;
15309
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15310
libsuff=32 shlibsuff=N32 libmagic=N32;;
15311
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15312
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15313
*) libsuff= shlibsuff= libmagic=never-match;;
15317
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15318
shlibpath_overrides_runpath=no
15319
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15320
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15321
hardcode_into_libs=yes
15324
# No shared lib support for Linux oldld, aout, or coff.
15325
linux*oldld* | linux*aout* | linux*coff*)
15329
# This must be Linux ELF.
15334
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15335
soname_spec='${libname}${release}${shared_ext}$major'
15336
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15338
if test "x$LINUX_64_MODE" = x64; then
15339
# Some platforms are per default 64-bit, so there's no /lib64
15340
if test -d /lib64 -a ! -h /lib64; then
15344
shlibpath_var=LD_LIBRARY_PATH
15345
shlibpath_overrides_runpath=no
15346
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
15347
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15348
# This implies no fast_install, which is unacceptable.
15349
# Some rework will be needed to allow for fast_install
15350
# before this can be enabled.
15351
hardcode_into_libs=yes
15353
# We used to test for /lib/ld.so.1 and disable shared libraries on
15354
# powerpc, because MkLinux only supported shared libraries with the
15355
# GNU dynamic linker. Since this was broken with cross compilers,
15356
# most powerpc-linux boxes support dynamic linking these days and
15357
# people can always --disable-shared, the test was removed, and we
15358
# assume the GNU/Linux dynamic linker is in use.
15359
dynamic_linker='GNU/Linux ld.so'
15366
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15367
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15368
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15369
dynamic_linker='NetBSD (a.out) ld.so'
15371
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
15372
soname_spec='${libname}${release}${shared_ext}$major'
15373
dynamic_linker='NetBSD ld.elf_so'
15375
shlibpath_var=LD_LIBRARY_PATH
15376
shlibpath_overrides_runpath=yes
15377
hardcode_into_libs=yes
15382
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15383
shlibpath_var=LD_LIBRARY_PATH
15384
shlibpath_overrides_runpath=yes
15391
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15392
soname_spec='${libname}${release}${shared_ext}$major'
15393
shlibpath_var=LD_LIBRARY_PATH
15394
shlibpath_overrides_runpath=yes
15401
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15402
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15403
shlibpath_var=LD_LIBRARY_PATH
15404
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15406
openbsd2.[89] | openbsd2.[89].*)
15407
shlibpath_overrides_runpath=no
15410
shlibpath_overrides_runpath=yes
15414
shlibpath_overrides_runpath=yes
15419
libname_spec='$name'
15422
library_names_spec='$libname${shared_ext} $libname.a'
15423
dynamic_linker='OS/2 ld.exe'
15424
shlibpath_var=LIBPATH
15427
osf3* | osf4* | osf5*)
15431
soname_spec='${libname}${release}${shared_ext}$major'
15432
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15433
shlibpath_var=LD_LIBRARY_PATH
15434
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15435
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15440
soname_spec='${libname}${release}${shared_ext}$major'
15441
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15442
shlibpath_var=LD_LIBRARY_PATH
15449
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15450
soname_spec='${libname}${release}${shared_ext}$major'
15451
shlibpath_var=LD_LIBRARY_PATH
15452
shlibpath_overrides_runpath=yes
15453
hardcode_into_libs=yes
15454
# ldd complains unless libraries are executable
15455
postinstall_cmds='chmod +x $lib'
15460
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15461
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15462
shlibpath_var=LD_LIBRARY_PATH
15463
shlibpath_overrides_runpath=yes
15464
if test "$with_gnu_ld" = yes; then
15470
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15472
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15473
soname_spec='${libname}${release}${shared_ext}$major'
15474
shlibpath_var=LD_LIBRARY_PATH
15475
case $host_vendor in
15477
shlibpath_overrides_runpath=no
15479
export_dynamic_flag_spec='${wl}-Blargedynsym'
15480
runpath_var=LD_RUN_PATH
15488
shlibpath_overrides_runpath=no
15489
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15495
if test -d /usr/nec ;then
15497
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15498
soname_spec='$libname${shared_ext}.$major'
15499
shlibpath_var=LD_LIBRARY_PATH
15505
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15506
soname_spec='${libname}${release}${shared_ext}$major'
15507
shlibpath_var=LD_LIBRARY_PATH
15514
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15515
echo "${ECHO_T}$dynamic_linker" >&6; }
15516
test "$dynamic_linker" = no && can_build_shared=no
15518
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15519
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15520
hardcode_action_CXX=
15521
if test -n "$hardcode_libdir_flag_spec_CXX" || \
15522
test -n "$runpath_var CXX" || \
15523
test "X$hardcode_automatic_CXX"="Xyes" ; then
15525
# We can hardcode non-existant directories.
15526
if test "$hardcode_direct_CXX" != no &&
15527
# If the only mechanism to avoid hardcoding is shlibpath_var, we
15528
# have to relink, otherwise we might link with an installed library
15529
# when we should be linking with a yet-to-be-installed one
15530
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15531
test "$hardcode_minus_L_CXX" != no; then
15532
# Linking always hardcodes the temporary library directory.
15533
hardcode_action_CXX=relink
15535
# We can link without hardcoding, and we can hardcode nonexisting dirs.
15536
hardcode_action_CXX=immediate
15539
# We cannot hardcode anything, or else we can only hardcode existing
15541
hardcode_action_CXX=unsupported
15543
{ echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15544
echo "${ECHO_T}$hardcode_action_CXX" >&6; }
15546
if test "$hardcode_action_CXX" = relink; then
15547
# Fast installation is not supported
15548
enable_fast_install=no
15549
elif test "$shlibpath_overrides_runpath" = yes ||
15550
test "$enable_shared" = no; then
15551
# Fast installation is not necessary
15552
enable_fast_install=needless
15557
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15558
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
15559
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15560
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15561
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15562
{ echo "$as_me:$LINENO: result: yes" >&5
15563
echo "${ECHO_T}yes" >&6; }
15565
# FIXME - insert some real tests, host_os isn't really good enough
15568
if test -n "$STRIP" ; then
15569
striplib="$STRIP -x"
15570
{ echo "$as_me:$LINENO: result: yes" >&5
15571
echo "${ECHO_T}yes" >&6; }
15573
{ echo "$as_me:$LINENO: result: no" >&5
15574
echo "${ECHO_T}no" >&6; }
15578
{ echo "$as_me:$LINENO: result: no" >&5
15579
echo "${ECHO_T}no" >&6; }
15584
if test "x$enable_dlopen" != xyes; then
15585
enable_dlopen=unknown
15586
enable_dlopen_self=unknown
15587
enable_dlopen_self_static=unknown
15594
lt_cv_dlopen="load_add_on"
15596
lt_cv_dlopen_self=yes
15600
lt_cv_dlopen="LoadLibrary"
15605
lt_cv_dlopen="dlopen"
15610
# if libdl is installed we need to link against it
15611
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15612
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15613
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15614
echo $ECHO_N "(cached) $ECHO_C" >&6
15616
ac_check_lib_save_LIBS=$LIBS
15618
cat >conftest.$ac_ext <<_ACEOF
15621
cat confdefs.h >>conftest.$ac_ext
15622
cat >>conftest.$ac_ext <<_ACEOF
15623
/* end confdefs.h. */
15625
/* Override any GCC internal prototype to avoid an error.
15626
Use char because int might match the return type of a GCC
15627
builtin and then its argument prototype would still apply. */
15640
rm -f conftest.$ac_objext conftest$ac_exeext
15641
if { (ac_try="$ac_link"
15642
case "(($ac_try" in
15643
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15644
*) ac_try_echo=$ac_try;;
15646
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15647
(eval "$ac_link") 2>conftest.er1
15649
grep -v '^ *+' conftest.er1 >conftest.err
15651
cat conftest.err >&5
15652
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653
(exit $ac_status); } && {
15654
test -z "$ac_cxx_werror_flag" ||
15655
test ! -s conftest.err
15656
} && test -s conftest$ac_exeext &&
15657
$as_test_x conftest$ac_exeext; then
15658
ac_cv_lib_dl_dlopen=yes
15660
echo "$as_me: failed program was:" >&5
15661
sed 's/^/| /' conftest.$ac_ext >&5
15663
ac_cv_lib_dl_dlopen=no
15666
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15667
conftest$ac_exeext conftest.$ac_ext
15668
LIBS=$ac_check_lib_save_LIBS
15670
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15671
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15672
if test $ac_cv_lib_dl_dlopen = yes; then
15673
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15676
lt_cv_dlopen="dyld"
15678
lt_cv_dlopen_self=yes
15685
{ echo "$as_me:$LINENO: checking for shl_load" >&5
15686
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
15687
if test "${ac_cv_func_shl_load+set}" = set; then
15688
echo $ECHO_N "(cached) $ECHO_C" >&6
15690
cat >conftest.$ac_ext <<_ACEOF
15693
cat confdefs.h >>conftest.$ac_ext
15694
cat >>conftest.$ac_ext <<_ACEOF
15695
/* end confdefs.h. */
15696
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15697
For example, HP-UX 11i <limits.h> declares gettimeofday. */
15698
#define shl_load innocuous_shl_load
15700
/* System header to define __stub macros and hopefully few prototypes,
15701
which can conflict with char shl_load (); below.
15702
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15703
<limits.h> exists even on freestanding compilers. */
15706
# include <limits.h>
15708
# include <assert.h>
15713
/* Override any GCC internal prototype to avoid an error.
15714
Use char because int might match the return type of a GCC
15715
builtin and then its argument prototype would still apply. */
15720
/* The GNU C library defines this for functions which it implements
15721
to always fail with ENOSYS. Some functions are actually named
15722
something starting with __ and the normal name is an alias. */
15723
#if defined __stub_shl_load || defined __stub___shl_load
15730
return shl_load ();
15735
rm -f conftest.$ac_objext conftest$ac_exeext
15736
if { (ac_try="$ac_link"
15737
case "(($ac_try" in
15738
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15739
*) ac_try_echo=$ac_try;;
15741
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15742
(eval "$ac_link") 2>conftest.er1
15744
grep -v '^ *+' conftest.er1 >conftest.err
15746
cat conftest.err >&5
15747
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15748
(exit $ac_status); } && {
15749
test -z "$ac_cxx_werror_flag" ||
15750
test ! -s conftest.err
15751
} && test -s conftest$ac_exeext &&
15752
$as_test_x conftest$ac_exeext; then
15753
ac_cv_func_shl_load=yes
15755
echo "$as_me: failed program was:" >&5
15756
sed 's/^/| /' conftest.$ac_ext >&5
15758
ac_cv_func_shl_load=no
15761
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15762
conftest$ac_exeext conftest.$ac_ext
15764
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15765
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
15766
if test $ac_cv_func_shl_load = yes; then
15767
lt_cv_dlopen="shl_load"
15769
{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15770
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
15771
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15772
echo $ECHO_N "(cached) $ECHO_C" >&6
15774
ac_check_lib_save_LIBS=$LIBS
15776
cat >conftest.$ac_ext <<_ACEOF
15779
cat confdefs.h >>conftest.$ac_ext
15780
cat >>conftest.$ac_ext <<_ACEOF
15781
/* end confdefs.h. */
15783
/* Override any GCC internal prototype to avoid an error.
15784
Use char because int might match the return type of a GCC
15785
builtin and then its argument prototype would still apply. */
15793
return shl_load ();
15798
rm -f conftest.$ac_objext conftest$ac_exeext
15799
if { (ac_try="$ac_link"
15800
case "(($ac_try" in
15801
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15802
*) ac_try_echo=$ac_try;;
15804
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15805
(eval "$ac_link") 2>conftest.er1
15807
grep -v '^ *+' conftest.er1 >conftest.err
15809
cat conftest.err >&5
15810
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811
(exit $ac_status); } && {
15812
test -z "$ac_cxx_werror_flag" ||
15813
test ! -s conftest.err
15814
} && test -s conftest$ac_exeext &&
15815
$as_test_x conftest$ac_exeext; then
15816
ac_cv_lib_dld_shl_load=yes
15818
echo "$as_me: failed program was:" >&5
15819
sed 's/^/| /' conftest.$ac_ext >&5
15821
ac_cv_lib_dld_shl_load=no
15824
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15825
conftest$ac_exeext conftest.$ac_ext
15826
LIBS=$ac_check_lib_save_LIBS
15828
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15829
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
15830
if test $ac_cv_lib_dld_shl_load = yes; then
15831
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
15833
{ echo "$as_me:$LINENO: checking for dlopen" >&5
15834
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
15835
if test "${ac_cv_func_dlopen+set}" = set; then
15836
echo $ECHO_N "(cached) $ECHO_C" >&6
15838
cat >conftest.$ac_ext <<_ACEOF
15841
cat confdefs.h >>conftest.$ac_ext
15842
cat >>conftest.$ac_ext <<_ACEOF
15843
/* end confdefs.h. */
15844
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15845
For example, HP-UX 11i <limits.h> declares gettimeofday. */
15846
#define dlopen innocuous_dlopen
15848
/* System header to define __stub macros and hopefully few prototypes,
15849
which can conflict with char dlopen (); below.
15850
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15851
<limits.h> exists even on freestanding compilers. */
15854
# include <limits.h>
15856
# include <assert.h>
15861
/* Override any GCC internal prototype to avoid an error.
15862
Use char because int might match the return type of a GCC
15863
builtin and then its argument prototype would still apply. */
15868
/* The GNU C library defines this for functions which it implements
15869
to always fail with ENOSYS. Some functions are actually named
15870
something starting with __ and the normal name is an alias. */
15871
#if defined __stub_dlopen || defined __stub___dlopen
15883
rm -f conftest.$ac_objext conftest$ac_exeext
15884
if { (ac_try="$ac_link"
15885
case "(($ac_try" in
15886
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15887
*) ac_try_echo=$ac_try;;
15889
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15890
(eval "$ac_link") 2>conftest.er1
15892
grep -v '^ *+' conftest.er1 >conftest.err
15894
cat conftest.err >&5
15895
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896
(exit $ac_status); } && {
15897
test -z "$ac_cxx_werror_flag" ||
15898
test ! -s conftest.err
15899
} && test -s conftest$ac_exeext &&
15900
$as_test_x conftest$ac_exeext; then
15901
ac_cv_func_dlopen=yes
15903
echo "$as_me: failed program was:" >&5
15904
sed 's/^/| /' conftest.$ac_ext >&5
15906
ac_cv_func_dlopen=no
15909
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15910
conftest$ac_exeext conftest.$ac_ext
15912
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15913
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
15914
if test $ac_cv_func_dlopen = yes; then
15915
lt_cv_dlopen="dlopen"
15917
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15918
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
15919
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15920
echo $ECHO_N "(cached) $ECHO_C" >&6
15922
ac_check_lib_save_LIBS=$LIBS
15924
cat >conftest.$ac_ext <<_ACEOF
15927
cat confdefs.h >>conftest.$ac_ext
15928
cat >>conftest.$ac_ext <<_ACEOF
15929
/* end confdefs.h. */
15931
/* Override any GCC internal prototype to avoid an error.
15932
Use char because int might match the return type of a GCC
15933
builtin and then its argument prototype would still apply. */
15946
rm -f conftest.$ac_objext conftest$ac_exeext
15947
if { (ac_try="$ac_link"
15948
case "(($ac_try" in
15949
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15950
*) ac_try_echo=$ac_try;;
15952
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15953
(eval "$ac_link") 2>conftest.er1
15955
grep -v '^ *+' conftest.er1 >conftest.err
15957
cat conftest.err >&5
15958
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959
(exit $ac_status); } && {
15960
test -z "$ac_cxx_werror_flag" ||
15961
test ! -s conftest.err
15962
} && test -s conftest$ac_exeext &&
15963
$as_test_x conftest$ac_exeext; then
15964
ac_cv_lib_dl_dlopen=yes
15966
echo "$as_me: failed program was:" >&5
15967
sed 's/^/| /' conftest.$ac_ext >&5
15969
ac_cv_lib_dl_dlopen=no
15972
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15973
conftest$ac_exeext conftest.$ac_ext
15974
LIBS=$ac_check_lib_save_LIBS
15976
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15977
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
15978
if test $ac_cv_lib_dl_dlopen = yes; then
15979
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15981
{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15982
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
15983
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15984
echo $ECHO_N "(cached) $ECHO_C" >&6
15986
ac_check_lib_save_LIBS=$LIBS
15987
LIBS="-lsvld $LIBS"
15988
cat >conftest.$ac_ext <<_ACEOF
15991
cat confdefs.h >>conftest.$ac_ext
15992
cat >>conftest.$ac_ext <<_ACEOF
15993
/* end confdefs.h. */
15995
/* Override any GCC internal prototype to avoid an error.
15996
Use char because int might match the return type of a GCC
15997
builtin and then its argument prototype would still apply. */
16010
rm -f conftest.$ac_objext conftest$ac_exeext
16011
if { (ac_try="$ac_link"
16012
case "(($ac_try" in
16013
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16014
*) ac_try_echo=$ac_try;;
16016
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16017
(eval "$ac_link") 2>conftest.er1
16019
grep -v '^ *+' conftest.er1 >conftest.err
16021
cat conftest.err >&5
16022
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023
(exit $ac_status); } && {
16024
test -z "$ac_cxx_werror_flag" ||
16025
test ! -s conftest.err
16026
} && test -s conftest$ac_exeext &&
16027
$as_test_x conftest$ac_exeext; then
16028
ac_cv_lib_svld_dlopen=yes
16030
echo "$as_me: failed program was:" >&5
16031
sed 's/^/| /' conftest.$ac_ext >&5
16033
ac_cv_lib_svld_dlopen=no
16036
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16037
conftest$ac_exeext conftest.$ac_ext
16038
LIBS=$ac_check_lib_save_LIBS
16040
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16041
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
16042
if test $ac_cv_lib_svld_dlopen = yes; then
16043
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16045
{ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16046
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
16047
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16048
echo $ECHO_N "(cached) $ECHO_C" >&6
16050
ac_check_lib_save_LIBS=$LIBS
16052
cat >conftest.$ac_ext <<_ACEOF
16055
cat confdefs.h >>conftest.$ac_ext
16056
cat >>conftest.$ac_ext <<_ACEOF
16057
/* end confdefs.h. */
16059
/* Override any GCC internal prototype to avoid an error.
16060
Use char because int might match the return type of a GCC
16061
builtin and then its argument prototype would still apply. */
16069
return dld_link ();
16074
rm -f conftest.$ac_objext conftest$ac_exeext
16075
if { (ac_try="$ac_link"
16076
case "(($ac_try" in
16077
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16078
*) ac_try_echo=$ac_try;;
16080
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16081
(eval "$ac_link") 2>conftest.er1
16083
grep -v '^ *+' conftest.er1 >conftest.err
16085
cat conftest.err >&5
16086
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087
(exit $ac_status); } && {
16088
test -z "$ac_cxx_werror_flag" ||
16089
test ! -s conftest.err
16090
} && test -s conftest$ac_exeext &&
16091
$as_test_x conftest$ac_exeext; then
16092
ac_cv_lib_dld_dld_link=yes
16094
echo "$as_me: failed program was:" >&5
16095
sed 's/^/| /' conftest.$ac_ext >&5
16097
ac_cv_lib_dld_dld_link=no
16100
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16101
conftest$ac_exeext conftest.$ac_ext
16102
LIBS=$ac_check_lib_save_LIBS
16104
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16105
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
16106
if test $ac_cv_lib_dld_dld_link = yes; then
16107
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16128
if test "x$lt_cv_dlopen" != xno; then
16134
case $lt_cv_dlopen in
16136
save_CPPFLAGS="$CPPFLAGS"
16137
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16139
save_LDFLAGS="$LDFLAGS"
16140
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16143
LIBS="$lt_cv_dlopen_libs $LIBS"
16145
{ echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16146
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
16147
if test "${lt_cv_dlopen_self+set}" = set; then
16148
echo $ECHO_N "(cached) $ECHO_C" >&6
16150
if test "$cross_compiling" = yes; then :
16151
lt_cv_dlopen_self=cross
16153
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16154
lt_status=$lt_dlunknown
16155
cat > conftest.$ac_ext <<EOF
16156
#line 16156 "configure"
16157
#include "confdefs.h"
16166
# define LT_DLGLOBAL RTLD_GLOBAL
16169
# define LT_DLGLOBAL DL_GLOBAL
16171
# define LT_DLGLOBAL 0
16175
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16176
find out it does not work in some platform. */
16177
#ifndef LT_DLLAZY_OR_NOW
16179
# define LT_DLLAZY_OR_NOW RTLD_LAZY
16182
# define LT_DLLAZY_OR_NOW DL_LAZY
16185
# define LT_DLLAZY_OR_NOW RTLD_NOW
16188
# define LT_DLLAZY_OR_NOW DL_NOW
16190
# define LT_DLLAZY_OR_NOW 0
16198
extern "C" void exit (int);
16201
void fnord() { int i=42;}
16204
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16205
int status = $lt_dlunknown;
16209
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16210
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16211
/* dlclose (self); */
16217
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16218
(eval $ac_link) 2>&5
16220
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16221
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16222
(./conftest; exit; ) 2>/dev/null
16224
case x$lt_status in
16225
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16226
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16227
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
16230
# compilation failed
16231
lt_cv_dlopen_self=no
16238
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16239
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
16241
if test "x$lt_cv_dlopen_self" = xyes; then
16242
LDFLAGS="$LDFLAGS $link_static_flag"
16243
{ echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16244
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
16245
if test "${lt_cv_dlopen_self_static+set}" = set; then
16246
echo $ECHO_N "(cached) $ECHO_C" >&6
16248
if test "$cross_compiling" = yes; then :
16249
lt_cv_dlopen_self_static=cross
16251
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16252
lt_status=$lt_dlunknown
16253
cat > conftest.$ac_ext <<EOF
16254
#line 16254 "configure"
16255
#include "confdefs.h"
16264
# define LT_DLGLOBAL RTLD_GLOBAL
16267
# define LT_DLGLOBAL DL_GLOBAL
16269
# define LT_DLGLOBAL 0
16273
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16274
find out it does not work in some platform. */
16275
#ifndef LT_DLLAZY_OR_NOW
16277
# define LT_DLLAZY_OR_NOW RTLD_LAZY
16280
# define LT_DLLAZY_OR_NOW DL_LAZY
16283
# define LT_DLLAZY_OR_NOW RTLD_NOW
16286
# define LT_DLLAZY_OR_NOW DL_NOW
16288
# define LT_DLLAZY_OR_NOW 0
16296
extern "C" void exit (int);
16299
void fnord() { int i=42;}
16302
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16303
int status = $lt_dlunknown;
16307
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16308
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16309
/* dlclose (self); */
16315
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16316
(eval $ac_link) 2>&5
16318
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16319
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16320
(./conftest; exit; ) 2>/dev/null
16322
case x$lt_status in
16323
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16324
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16325
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
16328
# compilation failed
16329
lt_cv_dlopen_self_static=no
16336
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16337
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
16340
CPPFLAGS="$save_CPPFLAGS"
16341
LDFLAGS="$save_LDFLAGS"
16346
case $lt_cv_dlopen_self in
16347
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16348
*) enable_dlopen_self=unknown ;;
16351
case $lt_cv_dlopen_self_static in
16352
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16353
*) enable_dlopen_self_static=unknown ;;
16358
# The else clause should only fire when bootstrapping the
16359
# libtool distribution, otherwise you forgot to ship ltmain.sh
16360
# with your package, and you will get complaints that there are
16361
# no rules to generate ltmain.sh.
16362
if test -f "$ltmain"; then
16363
# See if we are running on zsh, and set the options which allow our commands through
16364
# without removal of \ escapes.
16365
if test -n "${ZSH_VERSION+set}" ; then
16366
setopt NO_GLOB_SUBST
16368
# Now quote all the things that may contain metacharacters while being
16369
# careful not to overquote the AC_SUBSTed values. We take copies of the
16370
# variables and quote the copies for generation of the libtool script.
16371
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
16372
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16373
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16374
deplibs_check_method reload_flag reload_cmds need_locks \
16375
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16376
lt_cv_sys_global_symbol_to_c_name_address \
16377
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16378
old_postinstall_cmds old_postuninstall_cmds \
16382
lt_prog_compiler_wl_CXX \
16383
lt_prog_compiler_pic_CXX \
16384
lt_prog_compiler_static_CXX \
16385
lt_prog_compiler_no_builtin_flag_CXX \
16386
export_dynamic_flag_spec_CXX \
16387
thread_safe_flag_spec_CXX \
16388
whole_archive_flag_spec_CXX \
16389
enable_shared_with_static_runtimes_CXX \
16390
old_archive_cmds_CXX \
16391
old_archive_from_new_cmds_CXX \
16392
predep_objects_CXX \
16393
postdep_objects_CXX \
16396
compiler_lib_search_path_CXX \
16398
archive_expsym_cmds_CXX \
16399
postinstall_cmds_CXX \
16400
postuninstall_cmds_CXX \
16401
old_archive_from_expsyms_cmds_CXX \
16402
allow_undefined_flag_CXX \
16403
no_undefined_flag_CXX \
16404
export_symbols_cmds_CXX \
16405
hardcode_libdir_flag_spec_CXX \
16406
hardcode_libdir_flag_spec_ld_CXX \
16407
hardcode_libdir_separator_CXX \
16408
hardcode_automatic_CXX \
16410
module_expsym_cmds_CXX \
16411
lt_cv_prog_compiler_c_o_CXX \
16412
exclude_expsyms_CXX \
16413
include_expsyms_CXX; do
16416
old_archive_cmds_CXX | \
16417
old_archive_from_new_cmds_CXX | \
16418
archive_cmds_CXX | \
16419
archive_expsym_cmds_CXX | \
16420
module_cmds_CXX | \
16421
module_expsym_cmds_CXX | \
16422
old_archive_from_expsyms_cmds_CXX | \
16423
export_symbols_cmds_CXX | \
16424
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16425
postinstall_cmds | postuninstall_cmds | \
16426
old_postinstall_cmds | old_postuninstall_cmds | \
16427
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16428
# Double-quote double-evaled strings.
16429
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16432
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16438
*'\$0 --fallback-echo"')
16439
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16445
cat <<__EOF__ >> "$cfgfile"
16446
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16448
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16450
# Shell to use when invoking shell scripts.
16453
# Whether or not to build shared libraries.
16454
build_libtool_libs=$enable_shared
16456
# Whether or not to build static libraries.
16457
build_old_libs=$enable_static
16459
# Whether or not to add -lc for building shared libraries.
16460
build_libtool_need_lc=$archive_cmds_need_lc_CXX
16462
# Whether or not to disallow shared libs when runtime libs are static
16463
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16465
# Whether or not to optimize for fast installation.
16466
fast_install=$enable_fast_install
16469
host_alias=$host_alias
16472
# An echo program that does not interpret backslashes.
16477
AR_FLAGS=$lt_AR_FLAGS
16482
# A language-specific compiler.
16483
CC=$lt_compiler_CXX
16485
# Is the compiler the GNU C compiler?
16491
# The linker used to build libraries.
16494
# Whether we need hard or soft links.
16497
# A BSD-compatible nm program.
16500
# A symbol stripping program
16503
# Used to examine libraries when file_magic_cmd begins "file"
16504
MAGIC_CMD=$MAGIC_CMD
16506
# Used on cygwin: DLL creation program.
16509
# Used on cygwin: object dumper.
16512
# Used on cygwin: assembler.
16515
# The name of the directory that contains temporary libtool files.
16518
# How to create reloadable object files.
16519
reload_flag=$lt_reload_flag
16520
reload_cmds=$lt_reload_cmds
16522
# How to pass a linker flag through the compiler.
16523
wl=$lt_lt_prog_compiler_wl_CXX
16525
# Object file suffix (normally "o").
16526
objext="$ac_objext"
16528
# Old archive suffix (normally "a").
16531
# Shared library suffix (normally ".so").
16534
# Executable file suffix (normally "").
16537
# Additional compiler flags for building library objects.
16538
pic_flag=$lt_lt_prog_compiler_pic_CXX
16541
# What is the maximum length of a command?
16542
max_cmd_len=$lt_cv_sys_max_cmd_len
16544
# Does compiler simultaneously support -c and -o options?
16545
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16547
# Must we lock files when doing compilation ?
16548
need_locks=$lt_need_locks
16550
# Do we need the lib prefix for modules?
16551
need_lib_prefix=$need_lib_prefix
16553
# Do we need a version for libraries?
16554
need_version=$need_version
16556
# Whether dlopen is supported.
16557
dlopen_support=$enable_dlopen
16559
# Whether dlopen of programs is supported.
16560
dlopen_self=$enable_dlopen_self
16562
# Whether dlopen of statically linked programs is supported.
16563
dlopen_self_static=$enable_dlopen_self_static
16565
# Compiler flag to prevent dynamic linking.
16566
link_static_flag=$lt_lt_prog_compiler_static_CXX
16568
# Compiler flag to turn off builtin functions.
16569
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16571
# Compiler flag to allow reflexive dlopens.
16572
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16574
# Compiler flag to generate shared objects directly from archives.
16575
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16577
# Compiler flag to generate thread-safe objects.
16578
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
16580
# Library versioning type.
16581
version_type=$version_type
16583
# Format of library name prefix.
16584
libname_spec=$lt_libname_spec
16586
# List of archive names. First name is the real one, the rest are links.
16587
# The last name is the one that the linker finds with -lNAME.
16588
library_names_spec=$lt_library_names_spec
16590
# The coded name of the library, if different from the real name.
16591
soname_spec=$lt_soname_spec
16593
# Commands used to build and install an old-style archive.
16595
old_archive_cmds=$lt_old_archive_cmds_CXX
16596
old_postinstall_cmds=$lt_old_postinstall_cmds
16597
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16599
# Create an old-style archive from a shared archive.
16600
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16602
# Create a temporary old-style archive to link instead of a shared archive.
16603
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16605
# Commands used to build and install a shared archive.
16606
archive_cmds=$lt_archive_cmds_CXX
16607
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16608
postinstall_cmds=$lt_postinstall_cmds
16609
postuninstall_cmds=$lt_postuninstall_cmds
16611
# Commands used to build a loadable module (assumed same as above if empty)
16612
module_cmds=$lt_module_cmds_CXX
16613
module_expsym_cmds=$lt_module_expsym_cmds_CXX
16615
# Commands to strip libraries.
16616
old_striplib=$lt_old_striplib
16617
striplib=$lt_striplib
16619
# Dependencies to place before the objects being linked to create a
16621
predep_objects=$lt_predep_objects_CXX
16623
# Dependencies to place after the objects being linked to create a
16625
postdep_objects=$lt_postdep_objects_CXX
16627
# Dependencies to place before the objects being linked to create a
16629
predeps=$lt_predeps_CXX
16631
# Dependencies to place after the objects being linked to create a
16633
postdeps=$lt_postdeps_CXX
16635
# The library search path used internally by the compiler when linking
16636
# a shared library.
16637
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16639
# Method to check whether dependent libraries are shared objects.
16640
deplibs_check_method=$lt_deplibs_check_method
16642
# Command to use when deplibs_check_method == file_magic.
16643
file_magic_cmd=$lt_file_magic_cmd
16645
# Flag that allows shared libraries with undefined symbols to be built.
16646
allow_undefined_flag=$lt_allow_undefined_flag_CXX
16648
# Flag that forces no undefined symbols.
16649
no_undefined_flag=$lt_no_undefined_flag_CXX
16651
# Commands used to finish a libtool library installation in a directory.
16652
finish_cmds=$lt_finish_cmds
16654
# Same as above, but a single script fragment to be evaled but not shown.
16655
finish_eval=$lt_finish_eval
16657
# Take the output of nm and produce a listing of raw symbols and C names.
16658
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16660
# Transform the output of nm in a proper C declaration
16661
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16663
# Transform the output of nm in a C name address pair
16664
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16666
# This is the shared library runtime path variable.
16667
runpath_var=$runpath_var
16669
# This is the shared library path variable.
16670
shlibpath_var=$shlibpath_var
16672
# Is shlibpath searched before the hard-coded library search path?
16673
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16675
# How to hardcode a shared library path into an executable.
16676
hardcode_action=$hardcode_action_CXX
16678
# Whether we should hardcode library paths into libraries.
16679
hardcode_into_libs=$hardcode_into_libs
16681
# Flag to hardcode \$libdir into a binary during linking.
16682
# This must work even if \$libdir does not exist.
16683
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16685
# If ld is used when linking, flag to hardcode \$libdir into
16686
# a binary during linking. This must work even if \$libdir does
16688
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16690
# Whether we need a single -rpath flag with a separated argument.
16691
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16693
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16694
# resulting binary.
16695
hardcode_direct=$hardcode_direct_CXX
16697
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16698
# resulting binary.
16699
hardcode_minus_L=$hardcode_minus_L_CXX
16701
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16702
# the resulting binary.
16703
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16705
# Set to yes if building a shared library automatically hardcodes DIR into the library
16706
# and all subsequent libraries and executables linked against it.
16707
hardcode_automatic=$hardcode_automatic_CXX
16709
# Variables whose values should be saved in libtool wrapper scripts and
16710
# restored at relink time.
16711
variables_saved_for_relink="$variables_saved_for_relink"
16713
# Whether libtool must link a program against all its dependency libraries.
16714
link_all_deplibs=$link_all_deplibs_CXX
16716
# Compile-time system search path for libraries
16717
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16719
# Run-time system search path for libraries
16720
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16722
# Fix the shell variable \$srcfile for the compiler.
16723
fix_srcfile_path="$fix_srcfile_path_CXX"
16725
# Set to yes if exported symbols are required.
16726
always_export_symbols=$always_export_symbols_CXX
16728
# The commands to list exported symbols.
16729
export_symbols_cmds=$lt_export_symbols_cmds_CXX
16731
# The commands to extract the exported symbol list from a shared archive.
16732
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16734
# Symbols that should not be listed in the preloaded symbols.
16735
exclude_expsyms=$lt_exclude_expsyms_CXX
16737
# Symbols that must always be exported.
16738
include_expsyms=$lt_include_expsyms_CXX
16740
# ### END LIBTOOL TAG CONFIG: $tagname
16746
# If there is no Makefile yet, we rely on a make rule to execute
16747
# `config.status --recheck' to rerun these tests and create the
16748
# libtool script then.
16749
test -f Makefile && make "$ltmain"
16754
ac_cpp='$CPP $CPPFLAGS'
16755
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16756
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16757
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16763
with_gnu_ldcxx=$with_gnu_ld
16764
with_gnu_ld=$lt_save_with_gnu_ld
16765
lt_cv_path_LDCXX=$lt_cv_path_LD
16766
lt_cv_path_LD=$lt_save_path_LD
16767
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16768
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16776
if test -n "$F77" && test "X$F77" != "Xno"; then
16779
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
16780
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16781
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
16784
archive_cmds_need_lc_F77=no
16785
allow_undefined_flag_F77=
16786
always_export_symbols_F77=no
16787
archive_expsym_cmds_F77=
16788
export_dynamic_flag_spec_F77=
16789
hardcode_direct_F77=no
16790
hardcode_libdir_flag_spec_F77=
16791
hardcode_libdir_flag_spec_ld_F77=
16792
hardcode_libdir_separator_F77=
16793
hardcode_minus_L_F77=no
16794
hardcode_automatic_F77=no
16796
module_expsym_cmds_F77=
16797
link_all_deplibs_F77=unknown
16798
old_archive_cmds_F77=$old_archive_cmds
16799
no_undefined_flag_F77=
16800
whole_archive_flag_spec_F77=
16801
enable_shared_with_static_runtimes_F77=no
16803
# Source file extension for f77 test sources.
16806
# Object file extension for compiled f77 test sources.
16810
# Code to be used in simple compile tests
16811
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
16813
# Code to be used in simple link tests
16814
lt_simple_link_test_code=" program t\n end\n"
16816
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16818
# If no C compiler was specified, use CC.
16821
# Allow CC to be a program name with arguments.
16825
# Allow CC to be a program name with arguments.
16830
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
16832
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
16833
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
16834
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
16835
echo "${ECHO_T}$can_build_shared" >&6; }
16837
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
16838
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
16839
test "$can_build_shared" = "no" && enable_shared=no
16841
# On AIX, shared libraries and static libraries use the same namespace, and
16842
# are all built from PIC.
16845
test "$enable_shared" = yes && enable_static=no
16846
if test -n "$RANLIB"; then
16847
archive_cmds="$archive_cmds~\$RANLIB \$lib"
16848
postinstall_cmds='$RANLIB $lib'
16852
test "$enable_shared" = yes && enable_static=no
16855
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
16856
echo "${ECHO_T}$enable_shared" >&6; }
16858
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
16859
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
16860
# Make sure either enable_shared or enable_static is yes.
16861
test "$enable_shared" = yes || enable_static=yes
16862
{ echo "$as_me:$LINENO: result: $enable_static" >&5
16863
echo "${ECHO_T}$enable_static" >&6; }
16865
test "$ld_shlibs_F77" = no && can_build_shared=no
16870
lt_prog_compiler_wl_F77=
16871
lt_prog_compiler_pic_F77=
16872
lt_prog_compiler_static_F77=
16874
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16875
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16877
if test "$GCC" = yes; then
16878
lt_prog_compiler_wl_F77='-Wl,'
16879
lt_prog_compiler_static_F77='-static'
16883
# All AIX code is PIC.
16884
if test "$host_cpu" = ia64; then
16885
# AIX 5 now supports IA64 processor
16886
lt_prog_compiler_static_F77='-Bstatic'
16891
# FIXME: we need at least 68020 code to build shared libraries, but
16892
# adding the `-m68020' flag to GCC prevents building anything better,
16894
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
16897
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16898
# PIC is the default for these OSes.
16901
mingw* | pw32* | os2*)
16902
# This hack is so that the source file can tell whether it is being
16903
# built for inclusion in a dll (and should export symbols for example).
16904
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16907
darwin* | rhapsody*)
16908
# PIC is the default on this platform
16909
# Common symbols not allowed in MH_DYLIB files
16910
lt_prog_compiler_pic_F77='-fno-common'
16914
# Just because we use GCC doesn't mean we suddenly get shared libraries
16915
# on systems that don't support them.
16916
lt_prog_compiler_can_build_shared_F77=no
16921
if test -d /usr/nec; then
16922
lt_prog_compiler_pic_F77=-Kconform_pic
16927
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16928
# not for PA HP-UX.
16929
case "$host_cpu" in
16934
lt_prog_compiler_pic_F77='-fPIC'
16940
lt_prog_compiler_pic_F77='-fPIC'
16944
# PORTME Check for flag to pass linker flags through the system compiler.
16947
lt_prog_compiler_wl_F77='-Wl,'
16948
if test "$host_cpu" = ia64; then
16949
# AIX 5 now supports IA64 processor
16950
lt_prog_compiler_static_F77='-Bstatic'
16952
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
16956
mingw* | pw32* | os2*)
16957
# This hack is so that the source file can tell whether it is being
16958
# built for inclusion in a dll (and should export symbols for example).
16959
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16962
hpux9* | hpux10* | hpux11*)
16963
lt_prog_compiler_wl_F77='-Wl,'
16964
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16965
# not for PA HP-UX.
16966
case "$host_cpu" in
16971
lt_prog_compiler_pic_F77='+Z'
16974
# Is there a better lt_prog_compiler_static that works with the bundled CC?
16975
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
16978
irix5* | irix6* | nonstopux*)
16979
lt_prog_compiler_wl_F77='-Wl,'
16980
# PIC (with -KPIC) is the default.
16981
lt_prog_compiler_static_F77='-non_shared'
16985
lt_prog_compiler_pic_F77='-KPIC'
16986
lt_prog_compiler_static_F77='-Bstatic'
16992
lt_prog_compiler_wl_F77='-Wl,'
16993
lt_prog_compiler_pic_F77='-KPIC'
16994
lt_prog_compiler_static_F77='-static'
16997
lt_prog_compiler_wl_F77='-Wl,'
16998
# All Alpha code is PIC.
16999
lt_prog_compiler_static_F77='-non_shared'
17004
osf3* | osf4* | osf5*)
17005
lt_prog_compiler_wl_F77='-Wl,'
17006
# All OSF/1 code is PIC.
17007
lt_prog_compiler_static_F77='-non_shared'
17011
lt_prog_compiler_pic_F77='-Kpic'
17012
lt_prog_compiler_static_F77='-dn'
17016
lt_prog_compiler_wl_F77='-Wl,'
17017
lt_prog_compiler_pic_F77='-KPIC'
17018
lt_prog_compiler_static_F77='-Bstatic'
17022
lt_prog_compiler_wl_F77='-Qoption ld '
17023
lt_prog_compiler_pic_F77='-PIC'
17024
lt_prog_compiler_static_F77='-Bstatic'
17027
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17028
lt_prog_compiler_wl_F77='-Wl,'
17029
lt_prog_compiler_pic_F77='-KPIC'
17030
lt_prog_compiler_static_F77='-Bstatic'
17034
if test -d /usr/nec ;then
17035
lt_prog_compiler_pic_F77='-Kconform_pic'
17036
lt_prog_compiler_static_F77='-Bstatic'
17041
lt_prog_compiler_pic_F77='-pic'
17042
lt_prog_compiler_static_F77='-Bstatic'
17046
lt_prog_compiler_can_build_shared_F77=no
17051
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
17052
echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
17055
# Check to make sure the PIC flag actually works.
17057
if test -n "$lt_prog_compiler_pic_F77"; then
17059
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
17060
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
17061
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
17062
echo $ECHO_N "(cached) $ECHO_C" >&6
17064
lt_prog_compiler_pic_works_F77=no
17065
ac_outfile=conftest.$ac_objext
17066
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17067
lt_compiler_flag="$lt_prog_compiler_pic_F77"
17068
# Insert the option either (1) after the last *FLAGS variable, or
17069
# (2) before a word containing "conftest.", or (3) at the end.
17070
# Note that $ac_compile itself does not contain backslashes and begins
17071
# with a dollar sign (not a hyphen), so the echo should work correctly.
17072
# The option is referenced via a variable to avoid confusing sed.
17073
lt_compile=`echo "$ac_compile" | $SED \
17074
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17075
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17076
-e 's:$: $lt_compiler_flag:'`
17077
(eval echo "\"\$as_me:17077: $lt_compile\"" >&5)
17078
(eval "$lt_compile" 2>conftest.err)
17080
cat conftest.err >&5
17081
echo "$as_me:17081: \$? = $ac_status" >&5
17082
if (exit $ac_status) && test -s "$ac_outfile"; then
17083
# The compiler can only warn and ignore the option if not recognized
17084
# So say no if there are warnings
17085
if test ! -s conftest.err; then
17086
lt_prog_compiler_pic_works_F77=yes
17092
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
17093
echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
17095
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
17096
case $lt_prog_compiler_pic_F77 in
17098
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
17101
lt_prog_compiler_pic_F77=
17102
lt_prog_compiler_can_build_shared_F77=no
17107
# For platforms which do not support PIC, -DPIC is meaningless:
17109
lt_prog_compiler_pic_F77=
17112
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
17116
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17117
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17118
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
17119
echo $ECHO_N "(cached) $ECHO_C" >&6
17121
lt_cv_prog_compiler_c_o_F77=no
17122
$rm -r conftest 2>/dev/null
17126
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17128
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
17129
# that will create temporary files in the current directory regardless of
17130
# the output directory. Thus, making CWD read-only will cause this test
17131
# to fail, enabling locking or at least warning the user not to do parallel
17135
lt_compiler_flag="-o out/conftest2.$ac_objext"
17136
# Insert the option either (1) after the last *FLAGS variable, or
17137
# (2) before a word containing "conftest.", or (3) at the end.
17138
# Note that $ac_compile itself does not contain backslashes and begins
17139
# with a dollar sign (not a hyphen), so the echo should work correctly.
17140
lt_compile=`echo "$ac_compile" | $SED \
17141
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17142
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17143
-e 's:$: $lt_compiler_flag:'`
17144
(eval echo "\"\$as_me:17144: $lt_compile\"" >&5)
17145
(eval "$lt_compile" 2>out/conftest.err)
17147
cat out/conftest.err >&5
17148
echo "$as_me:17148: \$? = $ac_status" >&5
17149
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17151
# The compiler can only warn and ignore the option if not recognized
17152
# So say no if there are warnings
17153
if test ! -s out/conftest.err; then
17154
lt_cv_prog_compiler_c_o_F77=yes
17158
$rm conftest* out/*
17165
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
17166
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
17169
hard_links="nottested"
17170
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
17171
# do not overwrite the value of need_locks provided by the user
17172
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17173
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17176
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17178
ln conftest.a conftest.b 2>&5 || hard_links=no
17179
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17180
{ echo "$as_me:$LINENO: result: $hard_links" >&5
17181
echo "${ECHO_T}$hard_links" >&6; }
17182
if test "$hard_links" = no; then
17183
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17184
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17191
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17192
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17195
allow_undefined_flag_F77=
17196
enable_shared_with_static_runtimes_F77=no
17198
archive_expsym_cmds_F77=
17199
old_archive_From_new_cmds_F77=
17200
old_archive_from_expsyms_cmds_F77=
17201
export_dynamic_flag_spec_F77=
17202
whole_archive_flag_spec_F77=
17203
thread_safe_flag_spec_F77=
17204
hardcode_libdir_flag_spec_F77=
17205
hardcode_libdir_flag_spec_ld_F77=
17206
hardcode_libdir_separator_F77=
17207
hardcode_direct_F77=no
17208
hardcode_minus_L_F77=no
17209
hardcode_shlibpath_var_F77=unsupported
17210
link_all_deplibs_F77=unknown
17211
hardcode_automatic_F77=no
17213
module_expsym_cmds_F77=
17214
always_export_symbols_F77=no
17215
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17216
# include_expsyms should be a list of space-separated symbols to be *always*
17217
# included in the symbol list
17218
include_expsyms_F77=
17219
# exclude_expsyms can be an extended regexp of symbols to exclude
17220
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17221
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17222
# as well as any symbol that contains `d'.
17223
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
17224
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17225
# platforms (ab)use it in PIC code, but their linkers get confused if
17226
# the symbol is explicitly referenced. Since portable code cannot
17227
# rely on this symbol name, it's probably fine to never include it in
17228
# preloaded symbol tables.
17229
extract_expsyms_cmds=
17232
cygwin* | mingw* | pw32*)
17233
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17234
# When not using gcc, we currently assume that we are using
17235
# Microsoft Visual C++.
17236
if test "$GCC" != yes; then
17246
if test "$with_gnu_ld" = yes; then
17247
# If archive_cmds runs LD, not CC, wlarc should be empty
17250
# See if GNU ld supports shared libraries.
17252
aix3* | aix4* | aix5*)
17253
# On AIX/PPC, the GNU linker is very broken
17254
if test "$host_cpu" != ia64; then
17258
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17259
*** to be unable to reliably create shared libraries on AIX.
17260
*** Therefore, libtool is disabling shared libraries support. If you
17261
*** really care for shared libraries, you may want to modify your PATH
17262
*** so that a non-GNU linker is found, and then restart.
17269
archive_cmds_F77='$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)'
17270
hardcode_libdir_flag_spec_F77='-L$libdir'
17271
hardcode_minus_L_F77=yes
17273
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17274
# that the semantics of dynamic libraries on AmigaOS, at least up
17275
# to version 4, is to share data among multiple programs linked
17276
# with the same dynamic library. Since this doesn't match the
17277
# behavior of shared libraries on other platforms, we can't use
17283
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17284
allow_undefined_flag_F77=unsupported
17285
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17286
# support --undefined. This deserves some investigation. FIXME
17287
archive_cmds_F77='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
17293
cygwin* | mingw* | pw32*)
17294
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
17295
# as there is no search path for DLLs.
17296
hardcode_libdir_flag_spec_F77='-L$libdir'
17297
allow_undefined_flag_F77=no
17298
always_export_symbols_F77=no
17299
enable_shared_with_static_runtimes_F77=yes
17300
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17302
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17303
archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17304
# If the export-symbols file already is a .def file (1st line
17305
# is EXPORTS), use it as is; otherwise, prepend...
17306
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17307
cp $export_symbols $output_objdir/$soname.def;
17309
echo EXPORTS > $output_objdir/$soname.def;
17310
cat $export_symbols >> $output_objdir/$soname.def;
17312
$CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17319
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17320
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17323
archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
17324
archive_expsym_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17329
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17333
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17334
*** create shared libraries on Solaris systems. Therefore, libtool
17335
*** is disabling shared libraries support. We urge you to upgrade GNU
17336
*** binutils to release 2.9.1 or newer. Another option is to modify
17337
*** your PATH or compiler configuration so that the native linker is
17338
*** used, and then restart.
17341
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17342
archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
17343
archive_expsym_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17350
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17352
hardcode_direct_F77=yes
17353
hardcode_shlibpath_var_F77=no
17357
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17358
archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
17359
archive_expsym_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17366
if test "$ld_shlibs_F77" = yes; then
17367
runpath_var=LD_RUN_PATH
17368
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
17369
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
17370
# ancient GNU ld didn't support --whole-archive et. al.
17371
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17372
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17374
whole_archive_flag_spec_F77=
17378
# PORTME fill in a description of your system's linker (not GNU ld)
17381
allow_undefined_flag_F77=unsupported
17382
always_export_symbols_F77=yes
17383
archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17384
# Note: this linker hardcodes the directories in LIBPATH if there
17385
# are no directories specified by -L.
17386
hardcode_minus_L_F77=yes
17387
if test "$GCC" = yes && test -z "$link_static_flag"; then
17388
# Neither direct hardcoding nor static linking is supported with a
17390
hardcode_direct_F77=unsupported
17395
if test "$host_cpu" = ia64; then
17396
# On IA64, the linker does run time linking by default, so we don't
17397
# have to do anything special.
17398
aix_use_runtimelinking=no
17399
exp_sym_flag='-Bexport'
17402
# If we're using GNU nm, then we don't want the "-C" option.
17403
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17404
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17405
export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17407
export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17410
# KDE requires run time linking. Make it the default.
17411
aix_use_runtimelinking=yes
17412
exp_sym_flag='-bexport'
17413
no_entry_flag='-bnoentry'
17416
# When large executables or shared objects are built, AIX ld can
17417
# have problems creating the table of contents. If linking a library
17418
# or program results in "error TOC overflow" add -mminimal-toc to
17419
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17420
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17422
archive_cmds_F77=''
17423
hardcode_direct_F77=yes
17424
hardcode_libdir_separator_F77=':'
17425
link_all_deplibs_F77=yes
17427
if test "$GCC" = yes; then
17428
case $host_os in aix4.012|aix4.012.*)
17429
# We only want to do this on AIX 4.2 and lower, the check
17430
# below for broken collect2 doesn't work under 4.3+
17431
collect2name=`${CC} -print-prog-name=collect2`
17432
if test -f "$collect2name" && \
17433
strings "$collect2name" | grep resolve_lib_name >/dev/null
17435
# We have reworked collect2
17436
hardcode_direct_F77=yes
17438
# We have old collect2
17439
hardcode_direct_F77=unsupported
17440
# It fails to find uninstalled libraries when the uninstalled
17441
# path is not listed in the libpath. Setting hardcode_minus_L
17442
# to unsupported forces relinking
17443
hardcode_minus_L_F77=yes
17444
hardcode_libdir_flag_spec_F77='-L$libdir'
17445
hardcode_libdir_separator_F77=
17448
shared_flag='-shared'
17451
if test "$host_cpu" = ia64; then
17452
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17453
# chokes on -Wl,-G. The following line is correct:
17456
if test "$aix_use_runtimelinking" = yes; then
17457
shared_flag='-qmkshrobj ${wl}-G'
17459
shared_flag='-qmkshrobj'
17464
# Let the compiler handle the export list.
17465
always_export_symbols_F77=no
17466
if test "$aix_use_runtimelinking" = yes; then
17467
# Warning - without using the other runtime loading flags (-brtl),
17468
# -berok will link without error, but may produce a broken library.
17469
allow_undefined_flag_F77='-berok'
17470
# Determine the default libpath from the value encoded in an empty executable.
17471
cat >conftest.$ac_ext <<_ACEOF
17476
rm -f conftest.$ac_objext conftest$ac_exeext
17477
if { (ac_try="$ac_link"
17478
case "(($ac_try" in
17479
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17480
*) ac_try_echo=$ac_try;;
17482
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17483
(eval "$ac_link") 2>conftest.er1
17485
grep -v '^ *+' conftest.er1 >conftest.err
17487
cat conftest.err >&5
17488
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489
(exit $ac_status); } && {
17490
test -z "$ac_f77_werror_flag" ||
17491
test ! -s conftest.err
17492
} && test -s conftest$ac_exeext &&
17493
$as_test_x conftest$ac_exeext; then
17495
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17497
# Check for a 64-bit object if we didn't find anything.
17498
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17501
echo "$as_me: failed program was:" >&5
17502
sed 's/^/| /' conftest.$ac_ext >&5
17507
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17508
conftest$ac_exeext conftest.$ac_ext
17509
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17511
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17512
archive_cmds_F77="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
17513
archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17515
if test "$host_cpu" = ia64; then
17516
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
17517
allow_undefined_flag_F77="-z nodefs"
17518
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
17520
# Determine the default libpath from the value encoded in an empty executable.
17521
cat >conftest.$ac_ext <<_ACEOF
17526
rm -f conftest.$ac_objext conftest$ac_exeext
17527
if { (ac_try="$ac_link"
17528
case "(($ac_try" in
17529
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17530
*) ac_try_echo=$ac_try;;
17532
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17533
(eval "$ac_link") 2>conftest.er1
17535
grep -v '^ *+' conftest.er1 >conftest.err
17537
cat conftest.err >&5
17538
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17539
(exit $ac_status); } && {
17540
test -z "$ac_f77_werror_flag" ||
17541
test ! -s conftest.err
17542
} && test -s conftest$ac_exeext &&
17543
$as_test_x conftest$ac_exeext; then
17545
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17547
# Check for a 64-bit object if we didn't find anything.
17548
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17551
echo "$as_me: failed program was:" >&5
17552
sed 's/^/| /' conftest.$ac_ext >&5
17557
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17558
conftest$ac_exeext conftest.$ac_ext
17559
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17561
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17562
# Warning - without using the other run time loading flags,
17563
# -berok will link without error, but may produce a broken library.
17564
no_undefined_flag_F77=' ${wl}-bernotok'
17565
allow_undefined_flag_F77=' ${wl}-berok'
17566
# -bexpall does not export symbols beginning with underscore (_)
17567
always_export_symbols_F77=yes
17568
# Exported symbols can be pulled into shared objects from archives
17569
whole_archive_flag_spec_F77=' '
17570
archive_cmds_need_lc_F77=yes
17571
# This is similar to how AIX traditionally builds it's shared libraries.
17572
archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17578
archive_cmds_F77='$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)'
17579
hardcode_libdir_flag_spec_F77='-L$libdir'
17580
hardcode_minus_L_F77=yes
17581
# see comment about different semantics on the GNU ld section
17586
export_dynamic_flag_spec_F77=-rdynamic
17589
cygwin* | mingw* | pw32*)
17590
# When not using gcc, we currently assume that we are using
17591
# Microsoft Visual C++.
17592
# hardcode_libdir_flag_spec is actually meaningless, as there is
17593
# no search path for DLLs.
17594
hardcode_libdir_flag_spec_F77=' '
17595
allow_undefined_flag_F77=no
17596
# Tell ltmain to make .lib files, not .a files.
17598
# Tell ltmain to make .dll files, not .so files.
17600
# FIXME: Setting linknames here is a bad hack.
17601
archive_cmds_F77='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17602
# The linker will automatically build a .lib file if we build a DLL.
17603
old_archive_From_new_cmds_F77='true'
17604
# FIXME: Should let the user specify the lib program.
17605
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
17606
fix_srcfile_path='`cygpath -w "$srcfile"`'
17607
enable_shared_with_static_runtimes_F77=yes
17610
darwin* | rhapsody*)
17611
if test "$GXX" = yes ; then
17612
archive_cmds_need_lc_F77=no
17614
rhapsody* | darwin1.[012])
17615
allow_undefined_flag_F77='-Wl,-undefined -Wl,suppress'
17618
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17619
allow_undefined_flag_F77='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
17621
case ${MACOSX_DEPLOYMENT_TARGET} in
17623
allow_undefined_flag_F77='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
17626
allow_undefined_flag_F77='-Wl,-undefined -Wl,dynamic_lookup'
17632
lt_int_apple_cc_single_mod=no
17633
output_verbose_link_cmd='echo'
17634
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
17635
lt_int_apple_cc_single_mod=yes
17637
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17638
archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
17640
archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
17642
module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
17643
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17644
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17645
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17647
archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17649
module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17650
hardcode_direct_F77=no
17651
hardcode_automatic_F77=yes
17652
hardcode_shlibpath_var_F77=unsupported
17653
whole_archive_flag_spec_F77='-all_load $convenience'
17654
link_all_deplibs_F77=yes
17661
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17662
hardcode_libdir_flag_spec_F77='-L$libdir'
17663
hardcode_shlibpath_var_F77=no
17670
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17671
# support. Future versions do this automatically, but an explicit c++rt0.o
17672
# does not break anything, and helps significantly (at the cost of a little
17675
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17676
hardcode_libdir_flag_spec_F77='-R$libdir'
17677
hardcode_direct_F77=yes
17678
hardcode_shlibpath_var_F77=no
17681
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17683
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17684
hardcode_direct_F77=yes
17685
hardcode_minus_L_F77=yes
17686
hardcode_shlibpath_var_F77=no
17689
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17690
freebsd* | kfreebsd*-gnu)
17691
archive_cmds_F77='$CC -shared -o $lib $compiler_flags $libobjs $deplibs'
17692
hardcode_libdir_flag_spec_F77='-R$libdir'
17693
hardcode_direct_F77=yes
17694
hardcode_shlibpath_var_F77=no
17698
if test "$GCC" = yes; then
17699
archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $libobjs $deplibs~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17701
archive_cmds_F77='$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'
17703
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17704
hardcode_libdir_separator_F77=:
17705
hardcode_direct_F77=yes
17707
# hardcode_minus_L: Not really in the search PATH,
17708
# but as the default location of the library.
17709
hardcode_minus_L_F77=yes
17710
export_dynamic_flag_spec_F77='${wl}-E'
17714
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17715
case "$host_cpu" in
17717
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
17720
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs'
17724
case "$host_cpu" in
17726
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17729
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17733
if test "$with_gnu_ld" = no; then
17734
case "$host_cpu" in
17736
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17737
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
17738
hardcode_libdir_separator_F77=:
17739
hardcode_direct_F77=no
17740
hardcode_shlibpath_var_F77=no
17743
hardcode_libdir_flag_spec_F77='-L$libdir'
17744
hardcode_direct_F77=no
17745
hardcode_shlibpath_var_F77=no
17747
# hardcode_minus_L: Not really in the search PATH,
17748
# but as the default location of the library.
17749
hardcode_minus_L_F77=yes
17752
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17753
hardcode_libdir_separator_F77=:
17754
hardcode_direct_F77=yes
17755
export_dynamic_flag_spec_F77='${wl}-E'
17757
# hardcode_minus_L: Not really in the search PATH,
17758
# but as the default location of the library.
17759
hardcode_minus_L_F77=yes
17765
irix5* | irix6* | nonstopux*)
17766
if test "$GCC" = yes; then
17767
archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17769
archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17770
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
17772
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17773
hardcode_libdir_separator_F77=:
17774
link_all_deplibs_F77=yes
17778
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17779
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17781
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17783
hardcode_libdir_flag_spec_F77='-R$libdir'
17784
hardcode_direct_F77=yes
17785
hardcode_shlibpath_var_F77=no
17789
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17790
hardcode_direct_F77=yes
17791
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17792
hardcode_libdir_separator_F77=:
17793
hardcode_shlibpath_var_F77=no
17797
hardcode_direct_F77=yes
17798
hardcode_shlibpath_var_F77=no
17799
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17800
archive_cmds_F77='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
17801
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17802
export_dynamic_flag_spec_F77='${wl}-E'
17805
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17806
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17807
hardcode_libdir_flag_spec_F77='-R$libdir'
17810
archive_cmds_F77='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
17811
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17818
hardcode_libdir_flag_spec_F77='-L$libdir'
17819
hardcode_minus_L_F77=yes
17820
allow_undefined_flag_F77=unsupported
17821
archive_cmds_F77='$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 $compiler_flags $libobjs $deplibs$output_objdir/$libname.def'
17822
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17826
if test "$GCC" = yes; then
17827
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17828
archive_cmds_F77='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17830
allow_undefined_flag_F77=' -expect_unresolved \*'
17831
archive_cmds_F77='$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'
17833
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17834
hardcode_libdir_separator_F77=:
17837
osf4* | osf5*) # as osf3* with the addition of -msym flag
17838
if test "$GCC" = yes; then
17839
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
17840
archive_cmds_F77='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${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'
17841
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17843
allow_undefined_flag_F77=' -expect_unresolved \*'
17844
archive_cmds_F77='$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'
17845
archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17846
$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'
17848
# Both c and cxx compiler support -rpath directly
17849
hardcode_libdir_flag_spec_F77='-rpath $libdir'
17851
hardcode_libdir_separator_F77=:
17855
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17856
hardcode_shlibpath_var_F77=no
17857
export_dynamic_flag_spec_F77='${wl}-Bexport'
17858
runpath_var=LD_RUN_PATH
17859
hardcode_runpath_var=yes
17863
no_undefined_flag_F77=' -z text'
17864
if test "$GCC" = yes; then
17865
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
17866
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17867
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp'
17869
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17870
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17871
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17873
hardcode_libdir_flag_spec_F77='-R$libdir'
17874
hardcode_shlibpath_var_F77=no
17876
solaris2.[0-5] | solaris2.[0-5].*) ;;
17877
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
17878
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
17880
link_all_deplibs_F77=yes
17884
if test "x$host_vendor" = xsequent; then
17885
# Use $CC to link under sequent, because it throws in some extra .o
17886
# files that make .init and .fini sections work.
17887
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs'
17889
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17891
hardcode_libdir_flag_spec_F77='-L$libdir'
17892
hardcode_direct_F77=yes
17893
hardcode_minus_L_F77=yes
17894
hardcode_shlibpath_var_F77=no
17898
case $host_vendor in
17900
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17901
hardcode_direct_F77=yes # is this really true???
17904
## LD is ld it makes a PLAMLIB
17905
## CC just makes a GrossModule.
17906
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17907
reload_cmds_F77='$CC -r -o $output$reload_objs'
17908
hardcode_direct_F77=no
17911
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17912
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
17915
runpath_var='LD_RUN_PATH'
17916
hardcode_shlibpath_var_F77=no
17920
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17921
hardcode_shlibpath_var_F77=no
17922
export_dynamic_flag_spec_F77='-Bexport'
17926
if test -d /usr/nec; then
17927
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17928
hardcode_shlibpath_var_F77=no
17929
runpath_var=LD_RUN_PATH
17930
hardcode_runpath_var=yes
17936
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17937
hardcode_direct_F77=yes
17938
hardcode_minus_L_F77=no
17939
hardcode_shlibpath_var_F77=no
17940
hardcode_runpath_var=yes
17941
runpath_var=LD_RUN_PATH
17944
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
17945
no_undefined_flag_F77='${wl}-z ${wl}text'
17946
if test "$GCC" = yes; then
17947
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
17949
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
17951
runpath_var='LD_RUN_PATH'
17952
hardcode_shlibpath_var_F77=no
17956
no_undefined_flag_F77=' -z text'
17957
# $CC -shared without GNU ld will not create a library from C++
17958
# object files and a static libstdc++, better avoid it by now
17959
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17960
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17961
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17962
hardcode_libdir_flag_spec_F77=
17963
hardcode_shlibpath_var_F77=no
17964
runpath_var='LD_RUN_PATH'
17968
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17969
hardcode_libdir_flag_spec_F77='-L$libdir'
17970
hardcode_shlibpath_var_F77=no
17979
{ echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
17980
echo "${ECHO_T}$ld_shlibs_F77" >&6; }
17981
test "$ld_shlibs_F77" = no && can_build_shared=no
17983
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17984
if test "$GCC" = yes; then
17985
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17989
# Do we need to explicitly link libc?
17991
case "x$archive_cmds_need_lc_F77" in
17993
# Assume -lc should be added
17994
archive_cmds_need_lc_F77=yes
17996
if test "$enable_shared" = yes && test "$GCC" = yes; then
17997
case $archive_cmds_F77 in
17999
# FIXME: we may have to deal with multi-command sequences.
18002
# Test whether the compiler implicitly links with -lc since on some
18003
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18004
# to ld, don't add -lc before -lgcc.
18005
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18006
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18008
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18010
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18011
(eval $ac_compile) 2>&5
18013
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014
(exit $ac_status); } 2>conftest.err; then
18017
libobjs=conftest.$ac_objext
18019
wl=$lt_prog_compiler_wl_F77
18025
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
18026
allow_undefined_flag_F77=
18027
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18028
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18030
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031
(exit $ac_status); }
18033
archive_cmds_need_lc_F77=no
18035
archive_cmds_need_lc_F77=yes
18037
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
18039
cat conftest.err 1>&5
18042
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
18043
echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
18050
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18051
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18052
library_names_spec=
18053
libname_spec='lib$name'
18057
postuninstall_cmds=
18061
shlibpath_overrides_runpath=unknown
18063
dynamic_linker="$host_os ld.so"
18064
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18065
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18066
need_lib_prefix=unknown
18067
hardcode_into_libs=no
18069
# when you set need_version to no, make sure it does not cause -set_version
18070
# flags to be left without arguments
18071
need_version=unknown
18076
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18077
shlibpath_var=LIBPATH
18079
# AIX 3 has no versioning support, so we append a major version to the name.
18080
soname_spec='${libname}${release}${shared_ext}$major'
18087
hardcode_into_libs=yes
18088
if test "$host_cpu" = ia64; then
18089
# AIX 5 supports IA64
18090
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18091
shlibpath_var=LD_LIBRARY_PATH
18093
# With GCC up to 2.95.x, collect2 would create an import file
18094
# for dependence libraries. The import file would start with
18095
# the line `#! .'. This would cause the generated library to
18096
# depend on `.', always an invalid library. This was fixed in
18097
# development snapshots of GCC prior to 3.0.
18099
aix4 | aix4.[01] | aix4.[01].*)
18100
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18102
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18105
can_build_shared=no
18109
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18110
# soname into executable. Probably we can add versioning support to
18111
# collect2, so additional links can be useful in future.
18112
if test "$aix_use_runtimelinking" = yes; then
18113
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18114
# instead of lib<name>.a to let people know that these are not
18115
# typical AIX shared libraries.
18116
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18118
# We preserve .a as extension for shared libraries through AIX4.2
18119
# and later when we are not doing run time linking.
18120
library_names_spec='${libname}${release}.a $libname.a'
18121
soname_spec='${libname}${release}${shared_ext}$major'
18123
shlibpath_var=LIBPATH
18128
library_names_spec='$libname.ixlibrary $libname.a'
18129
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18130
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'
18134
library_names_spec='${libname}${shared_ext}'
18135
dynamic_linker="$host_os ld.so"
18136
shlibpath_var=LIBRARY_PATH
18142
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18143
soname_spec='${libname}${release}${shared_ext}$major'
18144
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18145
shlibpath_var=LD_LIBRARY_PATH
18146
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18147
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18148
# the default ld.so.conf also contains /usr/contrib/lib and
18149
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18150
# libtool to hard-code these into programs
18153
cygwin* | mingw* | pw32*)
18154
version_type=windows
18159
case $GCC,$host_os in
18160
yes,cygwin* | yes,mingw* | yes,pw32*)
18161
library_names_spec='$libname.dll.a'
18162
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18163
postinstall_cmds='base_file=`basename \${file}`~
18164
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18165
dldir=$destdir/`dirname \$dlpath`~
18166
test -d \$dldir || mkdir -p \$dldir~
18167
$install_prog $dir/$dlname \$dldir/$dlname'
18168
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18169
dlpath=$dir/\$dldll~
18171
shlibpath_overrides_runpath=yes
18175
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18176
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18177
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18180
# MinGW DLLs use traditional 'lib' prefix
18181
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18182
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18183
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18184
# It is most probably a Windows format PATH printed by
18185
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18186
# path with ; separators, and with drive letters. We can handle the
18187
# drive letters (cygwin fileutils understands them), so leave them,
18188
# especially as we might pass files found there to a mingw objdump,
18189
# which wouldn't understand a cygwinified path. Ahh.
18190
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18192
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18196
# pw32 DLLs use 'pw' prefix rather than 'lib'
18197
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18203
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18206
dynamic_linker='Win32 ld.exe'
18207
# FIXME: first we should search . and the directory the executable is in
18211
darwin* | rhapsody*)
18212
dynamic_linker="$host_os dyld"
18213
version_type=darwin
18216
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18217
soname_spec='${libname}${release}${major}$shared_ext'
18218
shlibpath_overrides_runpath=yes
18219
shlibpath_var=DYLD_LIBRARY_PATH
18220
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
18221
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18222
if test "$GCC" = yes; then
18223
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18225
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18227
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18234
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18235
soname_spec='${libname}${release}${shared_ext}$major'
18236
shlibpath_var=LD_LIBRARY_PATH
18247
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18248
soname_spec='${libname}${release}${shared_ext}$major'
18249
shlibpath_var=LD_LIBRARY_PATH
18250
shlibpath_overrides_runpath=no
18251
hardcode_into_libs=yes
18252
dynamic_linker='GNU ld.so'
18256
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18257
version_type=freebsd-$objformat
18258
case $version_type in
18260
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18265
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18269
shlibpath_var=LD_LIBRARY_PATH
18272
shlibpath_overrides_runpath=yes
18274
freebsd3.01* | freebsdelf3.01*)
18275
shlibpath_overrides_runpath=yes
18276
hardcode_into_libs=yes
18279
shlibpath_overrides_runpath=no
18280
hardcode_into_libs=yes
18289
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18290
soname_spec='${libname}${release}${shared_ext}$major'
18291
shlibpath_var=LD_LIBRARY_PATH
18292
hardcode_into_libs=yes
18295
hpux9* | hpux10* | hpux11*)
18296
# Give a soname corresponding to the major version so that dld.sl refuses to
18297
# link against other versions.
18301
case "$host_cpu" in
18304
hardcode_into_libs=yes
18305
dynamic_linker="$host_os dld.so"
18306
shlibpath_var=LD_LIBRARY_PATH
18307
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18308
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18309
soname_spec='${libname}${release}${shared_ext}$major'
18310
if test "X$HPUX_IA64_MODE" = X32; then
18311
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18313
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18315
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18319
hardcode_into_libs=yes
18320
dynamic_linker="$host_os dld.sl"
18321
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18322
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18323
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18324
soname_spec='${libname}${release}${shared_ext}$major'
18325
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18326
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18330
dynamic_linker="$host_os dld.sl"
18331
shlibpath_var=SHLIB_PATH
18332
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18333
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18334
soname_spec='${libname}${release}${shared_ext}$major'
18337
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18338
postinstall_cmds='chmod 555 $lib'
18341
irix5* | irix6* | nonstopux*)
18343
nonstopux*) version_type=nonstopux ;;
18345
if test "$lt_cv_prog_gnu_ld" = yes; then
18353
soname_spec='${libname}${release}${shared_ext}$major'
18354
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18356
irix5* | nonstopux*)
18357
libsuff= shlibsuff=
18360
case $LD in # libtool.m4 will add one of these switches to LD
18361
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18362
libsuff= shlibsuff= libmagic=32-bit;;
18363
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18364
libsuff=32 shlibsuff=N32 libmagic=N32;;
18365
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18366
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18367
*) libsuff= shlibsuff= libmagic=never-match;;
18371
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18372
shlibpath_overrides_runpath=no
18373
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18374
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18375
hardcode_into_libs=yes
18378
# No shared lib support for Linux oldld, aout, or coff.
18379
linux*oldld* | linux*aout* | linux*coff*)
18383
# This must be Linux ELF.
18388
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18389
soname_spec='${libname}${release}${shared_ext}$major'
18390
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18392
if test "x$LINUX_64_MODE" = x64; then
18393
# Some platforms are per default 64-bit, so there's no /lib64
18394
if test -d /lib64 -a ! -h /lib64; then
18398
shlibpath_var=LD_LIBRARY_PATH
18399
shlibpath_overrides_runpath=no
18400
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
18401
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18402
# This implies no fast_install, which is unacceptable.
18403
# Some rework will be needed to allow for fast_install
18404
# before this can be enabled.
18405
hardcode_into_libs=yes
18407
# We used to test for /lib/ld.so.1 and disable shared libraries on
18408
# powerpc, because MkLinux only supported shared libraries with the
18409
# GNU dynamic linker. Since this was broken with cross compilers,
18410
# most powerpc-linux boxes support dynamic linking these days and
18411
# people can always --disable-shared, the test was removed, and we
18412
# assume the GNU/Linux dynamic linker is in use.
18413
dynamic_linker='GNU/Linux ld.so'
18420
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18421
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18422
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18423
dynamic_linker='NetBSD (a.out) ld.so'
18425
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
18426
soname_spec='${libname}${release}${shared_ext}$major'
18427
dynamic_linker='NetBSD ld.elf_so'
18429
shlibpath_var=LD_LIBRARY_PATH
18430
shlibpath_overrides_runpath=yes
18431
hardcode_into_libs=yes
18436
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18437
shlibpath_var=LD_LIBRARY_PATH
18438
shlibpath_overrides_runpath=yes
18445
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18446
soname_spec='${libname}${release}${shared_ext}$major'
18447
shlibpath_var=LD_LIBRARY_PATH
18448
shlibpath_overrides_runpath=yes
18455
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18456
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18457
shlibpath_var=LD_LIBRARY_PATH
18458
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18460
openbsd2.[89] | openbsd2.[89].*)
18461
shlibpath_overrides_runpath=no
18464
shlibpath_overrides_runpath=yes
18468
shlibpath_overrides_runpath=yes
18473
libname_spec='$name'
18476
library_names_spec='$libname${shared_ext} $libname.a'
18477
dynamic_linker='OS/2 ld.exe'
18478
shlibpath_var=LIBPATH
18481
osf3* | osf4* | osf5*)
18485
soname_spec='${libname}${release}${shared_ext}$major'
18486
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18487
shlibpath_var=LD_LIBRARY_PATH
18488
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18489
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18494
soname_spec='${libname}${release}${shared_ext}$major'
18495
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18496
shlibpath_var=LD_LIBRARY_PATH
18503
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18504
soname_spec='${libname}${release}${shared_ext}$major'
18505
shlibpath_var=LD_LIBRARY_PATH
18506
shlibpath_overrides_runpath=yes
18507
hardcode_into_libs=yes
18508
# ldd complains unless libraries are executable
18509
postinstall_cmds='chmod +x $lib'
18514
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18515
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18516
shlibpath_var=LD_LIBRARY_PATH
18517
shlibpath_overrides_runpath=yes
18518
if test "$with_gnu_ld" = yes; then
18524
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18526
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18527
soname_spec='${libname}${release}${shared_ext}$major'
18528
shlibpath_var=LD_LIBRARY_PATH
18529
case $host_vendor in
18531
shlibpath_overrides_runpath=no
18533
export_dynamic_flag_spec='${wl}-Blargedynsym'
18534
runpath_var=LD_RUN_PATH
18542
shlibpath_overrides_runpath=no
18543
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18549
if test -d /usr/nec ;then
18551
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18552
soname_spec='$libname${shared_ext}.$major'
18553
shlibpath_var=LD_LIBRARY_PATH
18559
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18560
soname_spec='${libname}${release}${shared_ext}$major'
18561
shlibpath_var=LD_LIBRARY_PATH
18568
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18569
echo "${ECHO_T}$dynamic_linker" >&6; }
18570
test "$dynamic_linker" = no && can_build_shared=no
18572
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18573
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18574
hardcode_action_F77=
18575
if test -n "$hardcode_libdir_flag_spec_F77" || \
18576
test -n "$runpath_var F77" || \
18577
test "X$hardcode_automatic_F77"="Xyes" ; then
18579
# We can hardcode non-existant directories.
18580
if test "$hardcode_direct_F77" != no &&
18581
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18582
# have to relink, otherwise we might link with an installed library
18583
# when we should be linking with a yet-to-be-installed one
18584
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
18585
test "$hardcode_minus_L_F77" != no; then
18586
# Linking always hardcodes the temporary library directory.
18587
hardcode_action_F77=relink
18589
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18590
hardcode_action_F77=immediate
18593
# We cannot hardcode anything, or else we can only hardcode existing
18595
hardcode_action_F77=unsupported
18597
{ echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
18598
echo "${ECHO_T}$hardcode_action_F77" >&6; }
18600
if test "$hardcode_action_F77" = relink; then
18601
# Fast installation is not supported
18602
enable_fast_install=no
18603
elif test "$shlibpath_overrides_runpath" = yes ||
18604
test "$enable_shared" = no; then
18605
# Fast installation is not necessary
18606
enable_fast_install=needless
18611
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18612
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
18613
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18614
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18615
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18616
{ echo "$as_me:$LINENO: result: yes" >&5
18617
echo "${ECHO_T}yes" >&6; }
18619
# FIXME - insert some real tests, host_os isn't really good enough
18622
if test -n "$STRIP" ; then
18623
striplib="$STRIP -x"
18624
{ echo "$as_me:$LINENO: result: yes" >&5
18625
echo "${ECHO_T}yes" >&6; }
18627
{ echo "$as_me:$LINENO: result: no" >&5
18628
echo "${ECHO_T}no" >&6; }
18632
{ echo "$as_me:$LINENO: result: no" >&5
18633
echo "${ECHO_T}no" >&6; }
18640
# The else clause should only fire when bootstrapping the
18641
# libtool distribution, otherwise you forgot to ship ltmain.sh
18642
# with your package, and you will get complaints that there are
18643
# no rules to generate ltmain.sh.
18644
if test -f "$ltmain"; then
18645
# See if we are running on zsh, and set the options which allow our commands through
18646
# without removal of \ escapes.
18647
if test -n "${ZSH_VERSION+set}" ; then
18648
setopt NO_GLOB_SUBST
18650
# Now quote all the things that may contain metacharacters while being
18651
# careful not to overquote the AC_SUBSTed values. We take copies of the
18652
# variables and quote the copies for generation of the libtool script.
18653
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18654
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18655
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18656
deplibs_check_method reload_flag reload_cmds need_locks \
18657
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18658
lt_cv_sys_global_symbol_to_c_name_address \
18659
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18660
old_postinstall_cmds old_postuninstall_cmds \
18664
lt_prog_compiler_wl_F77 \
18665
lt_prog_compiler_pic_F77 \
18666
lt_prog_compiler_static_F77 \
18667
lt_prog_compiler_no_builtin_flag_F77 \
18668
export_dynamic_flag_spec_F77 \
18669
thread_safe_flag_spec_F77 \
18670
whole_archive_flag_spec_F77 \
18671
enable_shared_with_static_runtimes_F77 \
18672
old_archive_cmds_F77 \
18673
old_archive_from_new_cmds_F77 \
18674
predep_objects_F77 \
18675
postdep_objects_F77 \
18678
compiler_lib_search_path_F77 \
18680
archive_expsym_cmds_F77 \
18681
postinstall_cmds_F77 \
18682
postuninstall_cmds_F77 \
18683
old_archive_from_expsyms_cmds_F77 \
18684
allow_undefined_flag_F77 \
18685
no_undefined_flag_F77 \
18686
export_symbols_cmds_F77 \
18687
hardcode_libdir_flag_spec_F77 \
18688
hardcode_libdir_flag_spec_ld_F77 \
18689
hardcode_libdir_separator_F77 \
18690
hardcode_automatic_F77 \
18692
module_expsym_cmds_F77 \
18693
lt_cv_prog_compiler_c_o_F77 \
18694
exclude_expsyms_F77 \
18695
include_expsyms_F77; do
18698
old_archive_cmds_F77 | \
18699
old_archive_from_new_cmds_F77 | \
18700
archive_cmds_F77 | \
18701
archive_expsym_cmds_F77 | \
18702
module_cmds_F77 | \
18703
module_expsym_cmds_F77 | \
18704
old_archive_from_expsyms_cmds_F77 | \
18705
export_symbols_cmds_F77 | \
18706
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18707
postinstall_cmds | postuninstall_cmds | \
18708
old_postinstall_cmds | old_postuninstall_cmds | \
18709
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18710
# Double-quote double-evaled strings.
18711
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18714
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18720
*'\$0 --fallback-echo"')
18721
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18727
cat <<__EOF__ >> "$cfgfile"
18728
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18730
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18732
# Shell to use when invoking shell scripts.
18735
# Whether or not to build shared libraries.
18736
build_libtool_libs=$enable_shared
18738
# Whether or not to build static libraries.
18739
build_old_libs=$enable_static
18741
# Whether or not to add -lc for building shared libraries.
18742
build_libtool_need_lc=$archive_cmds_need_lc_F77
18744
# Whether or not to disallow shared libs when runtime libs are static
18745
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
18747
# Whether or not to optimize for fast installation.
18748
fast_install=$enable_fast_install
18751
host_alias=$host_alias
18754
# An echo program that does not interpret backslashes.
18759
AR_FLAGS=$lt_AR_FLAGS
18764
# A language-specific compiler.
18765
CC=$lt_compiler_F77
18767
# Is the compiler the GNU C compiler?
18773
# The linker used to build libraries.
18776
# Whether we need hard or soft links.
18779
# A BSD-compatible nm program.
18782
# A symbol stripping program
18785
# Used to examine libraries when file_magic_cmd begins "file"
18786
MAGIC_CMD=$MAGIC_CMD
18788
# Used on cygwin: DLL creation program.
18791
# Used on cygwin: object dumper.
18794
# Used on cygwin: assembler.
18797
# The name of the directory that contains temporary libtool files.
18800
# How to create reloadable object files.
18801
reload_flag=$lt_reload_flag
18802
reload_cmds=$lt_reload_cmds
18804
# How to pass a linker flag through the compiler.
18805
wl=$lt_lt_prog_compiler_wl_F77
18807
# Object file suffix (normally "o").
18808
objext="$ac_objext"
18810
# Old archive suffix (normally "a").
18813
# Shared library suffix (normally ".so").
18816
# Executable file suffix (normally "").
18819
# Additional compiler flags for building library objects.
18820
pic_flag=$lt_lt_prog_compiler_pic_F77
18823
# What is the maximum length of a command?
18824
max_cmd_len=$lt_cv_sys_max_cmd_len
18826
# Does compiler simultaneously support -c and -o options?
18827
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
18829
# Must we lock files when doing compilation ?
18830
need_locks=$lt_need_locks
18832
# Do we need the lib prefix for modules?
18833
need_lib_prefix=$need_lib_prefix
18835
# Do we need a version for libraries?
18836
need_version=$need_version
18838
# Whether dlopen is supported.
18839
dlopen_support=$enable_dlopen
18841
# Whether dlopen of programs is supported.
18842
dlopen_self=$enable_dlopen_self
18844
# Whether dlopen of statically linked programs is supported.
18845
dlopen_self_static=$enable_dlopen_self_static
18847
# Compiler flag to prevent dynamic linking.
18848
link_static_flag=$lt_lt_prog_compiler_static_F77
18850
# Compiler flag to turn off builtin functions.
18851
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
18853
# Compiler flag to allow reflexive dlopens.
18854
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
18856
# Compiler flag to generate shared objects directly from archives.
18857
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
18859
# Compiler flag to generate thread-safe objects.
18860
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
18862
# Library versioning type.
18863
version_type=$version_type
18865
# Format of library name prefix.
18866
libname_spec=$lt_libname_spec
18868
# List of archive names. First name is the real one, the rest are links.
18869
# The last name is the one that the linker finds with -lNAME.
18870
library_names_spec=$lt_library_names_spec
18872
# The coded name of the library, if different from the real name.
18873
soname_spec=$lt_soname_spec
18875
# Commands used to build and install an old-style archive.
18877
old_archive_cmds=$lt_old_archive_cmds_F77
18878
old_postinstall_cmds=$lt_old_postinstall_cmds
18879
old_postuninstall_cmds=$lt_old_postuninstall_cmds
18881
# Create an old-style archive from a shared archive.
18882
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
18884
# Create a temporary old-style archive to link instead of a shared archive.
18885
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
18887
# Commands used to build and install a shared archive.
18888
archive_cmds=$lt_archive_cmds_F77
18889
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
18890
postinstall_cmds=$lt_postinstall_cmds
18891
postuninstall_cmds=$lt_postuninstall_cmds
18893
# Commands used to build a loadable module (assumed same as above if empty)
18894
module_cmds=$lt_module_cmds_F77
18895
module_expsym_cmds=$lt_module_expsym_cmds_F77
18897
# Commands to strip libraries.
18898
old_striplib=$lt_old_striplib
18899
striplib=$lt_striplib
18901
# Dependencies to place before the objects being linked to create a
18903
predep_objects=$lt_predep_objects_F77
18905
# Dependencies to place after the objects being linked to create a
18907
postdep_objects=$lt_postdep_objects_F77
18909
# Dependencies to place before the objects being linked to create a
18911
predeps=$lt_predeps_F77
18913
# Dependencies to place after the objects being linked to create a
18915
postdeps=$lt_postdeps_F77
18917
# The library search path used internally by the compiler when linking
18918
# a shared library.
18919
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
18921
# Method to check whether dependent libraries are shared objects.
18922
deplibs_check_method=$lt_deplibs_check_method
18924
# Command to use when deplibs_check_method == file_magic.
18925
file_magic_cmd=$lt_file_magic_cmd
18927
# Flag that allows shared libraries with undefined symbols to be built.
18928
allow_undefined_flag=$lt_allow_undefined_flag_F77
18930
# Flag that forces no undefined symbols.
18931
no_undefined_flag=$lt_no_undefined_flag_F77
18933
# Commands used to finish a libtool library installation in a directory.
18934
finish_cmds=$lt_finish_cmds
18936
# Same as above, but a single script fragment to be evaled but not shown.
18937
finish_eval=$lt_finish_eval
18939
# Take the output of nm and produce a listing of raw symbols and C names.
18940
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18942
# Transform the output of nm in a proper C declaration
18943
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18945
# Transform the output of nm in a C name address pair
18946
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18948
# This is the shared library runtime path variable.
18949
runpath_var=$runpath_var
18951
# This is the shared library path variable.
18952
shlibpath_var=$shlibpath_var
18954
# Is shlibpath searched before the hard-coded library search path?
18955
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18957
# How to hardcode a shared library path into an executable.
18958
hardcode_action=$hardcode_action_F77
18960
# Whether we should hardcode library paths into libraries.
18961
hardcode_into_libs=$hardcode_into_libs
18963
# Flag to hardcode \$libdir into a binary during linking.
18964
# This must work even if \$libdir does not exist.
18965
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
18967
# If ld is used when linking, flag to hardcode \$libdir into
18968
# a binary during linking. This must work even if \$libdir does
18970
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
18972
# Whether we need a single -rpath flag with a separated argument.
18973
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
18975
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18976
# resulting binary.
18977
hardcode_direct=$hardcode_direct_F77
18979
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18980
# resulting binary.
18981
hardcode_minus_L=$hardcode_minus_L_F77
18983
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18984
# the resulting binary.
18985
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
18987
# Set to yes if building a shared library automatically hardcodes DIR into the library
18988
# and all subsequent libraries and executables linked against it.
18989
hardcode_automatic=$hardcode_automatic_F77
18991
# Variables whose values should be saved in libtool wrapper scripts and
18992
# restored at relink time.
18993
variables_saved_for_relink="$variables_saved_for_relink"
18995
# Whether libtool must link a program against all its dependency libraries.
18996
link_all_deplibs=$link_all_deplibs_F77
18998
# Compile-time system search path for libraries
18999
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19001
# Run-time system search path for libraries
19002
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19004
# Fix the shell variable \$srcfile for the compiler.
19005
fix_srcfile_path="$fix_srcfile_path_F77"
19007
# Set to yes if exported symbols are required.
19008
always_export_symbols=$always_export_symbols_F77
19010
# The commands to list exported symbols.
19011
export_symbols_cmds=$lt_export_symbols_cmds_F77
19013
# The commands to extract the exported symbol list from a shared archive.
19014
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19016
# Symbols that should not be listed in the preloaded symbols.
19017
exclude_expsyms=$lt_exclude_expsyms_F77
19019
# Symbols that must always be exported.
19020
include_expsyms=$lt_include_expsyms_F77
19022
# ### END LIBTOOL TAG CONFIG: $tagname
19028
# If there is no Makefile yet, we rely on a make rule to execute
19029
# `config.status --recheck' to rerun these tests and create the
19030
# libtool script then.
19031
test -f Makefile && make "$ltmain"
19036
ac_cpp='$CPP $CPPFLAGS'
19037
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19038
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19039
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19049
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
19052
# Source file extension for Java test sources.
19055
# Object file extension for compiled Java test sources.
19059
# Code to be used in simple compile tests
19060
lt_simple_compile_test_code="class foo {}\n"
19062
# Code to be used in simple link tests
19063
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
19065
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19067
# If no C compiler was specified, use CC.
19070
# Allow CC to be a program name with arguments.
19074
# Allow CC to be a program name with arguments.
19080
# GCJ did not exist at the time GCC didn't implicitly link libc in.
19081
archive_cmds_need_lc_GCJ=no
19084
## There is no encapsulation within the following macros, do not change
19085
## the running order or otherwise move them around unless you know exactly
19086
## what you are doing...
19088
lt_prog_compiler_no_builtin_flag_GCJ=
19090
if test "$GCC" = yes; then
19091
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
19094
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
19095
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
19096
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
19097
echo $ECHO_N "(cached) $ECHO_C" >&6
19099
lt_cv_prog_compiler_rtti_exceptions=no
19100
ac_outfile=conftest.$ac_objext
19101
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19102
lt_compiler_flag="-fno-rtti -fno-exceptions"
19103
# Insert the option either (1) after the last *FLAGS variable, or
19104
# (2) before a word containing "conftest.", or (3) at the end.
19105
# Note that $ac_compile itself does not contain backslashes and begins
19106
# with a dollar sign (not a hyphen), so the echo should work correctly.
19107
# The option is referenced via a variable to avoid confusing sed.
19108
lt_compile=`echo "$ac_compile" | $SED \
19109
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19110
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19111
-e 's:$: $lt_compiler_flag:'`
19112
(eval echo "\"\$as_me:19112: $lt_compile\"" >&5)
19113
(eval "$lt_compile" 2>conftest.err)
19115
cat conftest.err >&5
19116
echo "$as_me:19116: \$? = $ac_status" >&5
19117
if (exit $ac_status) && test -s "$ac_outfile"; then
19118
# The compiler can only warn and ignore the option if not recognized
19119
# So say no if there are warnings
19120
if test ! -s conftest.err; then
19121
lt_cv_prog_compiler_rtti_exceptions=yes
19127
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
19128
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
19130
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
19131
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
19138
lt_prog_compiler_wl_GCJ=
19139
lt_prog_compiler_pic_GCJ=
19140
lt_prog_compiler_static_GCJ=
19142
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19143
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
19145
if test "$GCC" = yes; then
19146
lt_prog_compiler_wl_GCJ='-Wl,'
19147
lt_prog_compiler_static_GCJ='-static'
19151
# All AIX code is PIC.
19152
if test "$host_cpu" = ia64; then
19153
# AIX 5 now supports IA64 processor
19154
lt_prog_compiler_static_GCJ='-Bstatic'
19159
# FIXME: we need at least 68020 code to build shared libraries, but
19160
# adding the `-m68020' flag to GCC prevents building anything better,
19162
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
19165
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19166
# PIC is the default for these OSes.
19169
mingw* | pw32* | os2*)
19170
# This hack is so that the source file can tell whether it is being
19171
# built for inclusion in a dll (and should export symbols for example).
19172
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
19175
darwin* | rhapsody*)
19176
# PIC is the default on this platform
19177
# Common symbols not allowed in MH_DYLIB files
19178
lt_prog_compiler_pic_GCJ='-fno-common'
19182
# Just because we use GCC doesn't mean we suddenly get shared libraries
19183
# on systems that don't support them.
19184
lt_prog_compiler_can_build_shared_GCJ=no
19189
if test -d /usr/nec; then
19190
lt_prog_compiler_pic_GCJ=-Kconform_pic
19195
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19196
# not for PA HP-UX.
19197
case "$host_cpu" in
19202
lt_prog_compiler_pic_GCJ='-fPIC'
19208
lt_prog_compiler_pic_GCJ='-fPIC'
19212
# PORTME Check for flag to pass linker flags through the system compiler.
19215
lt_prog_compiler_wl_GCJ='-Wl,'
19216
if test "$host_cpu" = ia64; then
19217
# AIX 5 now supports IA64 processor
19218
lt_prog_compiler_static_GCJ='-Bstatic'
19220
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
19224
mingw* | pw32* | os2*)
19225
# This hack is so that the source file can tell whether it is being
19226
# built for inclusion in a dll (and should export symbols for example).
19227
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
19230
hpux9* | hpux10* | hpux11*)
19231
lt_prog_compiler_wl_GCJ='-Wl,'
19232
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19233
# not for PA HP-UX.
19234
case "$host_cpu" in
19239
lt_prog_compiler_pic_GCJ='+Z'
19242
# Is there a better lt_prog_compiler_static that works with the bundled CC?
19243
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
19246
irix5* | irix6* | nonstopux*)
19247
lt_prog_compiler_wl_GCJ='-Wl,'
19248
# PIC (with -KPIC) is the default.
19249
lt_prog_compiler_static_GCJ='-non_shared'
19253
lt_prog_compiler_pic_GCJ='-KPIC'
19254
lt_prog_compiler_static_GCJ='-Bstatic'
19260
lt_prog_compiler_wl_GCJ='-Wl,'
19261
lt_prog_compiler_pic_GCJ='-KPIC'
19262
lt_prog_compiler_static_GCJ='-static'
19265
lt_prog_compiler_wl_GCJ='-Wl,'
19266
# All Alpha code is PIC.
19267
lt_prog_compiler_static_GCJ='-non_shared'
19272
osf3* | osf4* | osf5*)
19273
lt_prog_compiler_wl_GCJ='-Wl,'
19274
# All OSF/1 code is PIC.
19275
lt_prog_compiler_static_GCJ='-non_shared'
19279
lt_prog_compiler_pic_GCJ='-Kpic'
19280
lt_prog_compiler_static_GCJ='-dn'
19284
lt_prog_compiler_wl_GCJ='-Wl,'
19285
lt_prog_compiler_pic_GCJ='-KPIC'
19286
lt_prog_compiler_static_GCJ='-Bstatic'
19290
lt_prog_compiler_wl_GCJ='-Qoption ld '
19291
lt_prog_compiler_pic_GCJ='-PIC'
19292
lt_prog_compiler_static_GCJ='-Bstatic'
19295
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19296
lt_prog_compiler_wl_GCJ='-Wl,'
19297
lt_prog_compiler_pic_GCJ='-KPIC'
19298
lt_prog_compiler_static_GCJ='-Bstatic'
19302
if test -d /usr/nec ;then
19303
lt_prog_compiler_pic_GCJ='-Kconform_pic'
19304
lt_prog_compiler_static_GCJ='-Bstatic'
19309
lt_prog_compiler_pic_GCJ='-pic'
19310
lt_prog_compiler_static_GCJ='-Bstatic'
19314
lt_prog_compiler_can_build_shared_GCJ=no
19319
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
19320
echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
19323
# Check to make sure the PIC flag actually works.
19325
if test -n "$lt_prog_compiler_pic_GCJ"; then
19327
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
19328
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
19329
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
19330
echo $ECHO_N "(cached) $ECHO_C" >&6
19332
lt_prog_compiler_pic_works_GCJ=no
19333
ac_outfile=conftest.$ac_objext
19334
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19335
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
19336
# Insert the option either (1) after the last *FLAGS variable, or
19337
# (2) before a word containing "conftest.", or (3) at the end.
19338
# Note that $ac_compile itself does not contain backslashes and begins
19339
# with a dollar sign (not a hyphen), so the echo should work correctly.
19340
# The option is referenced via a variable to avoid confusing sed.
19341
lt_compile=`echo "$ac_compile" | $SED \
19342
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19343
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19344
-e 's:$: $lt_compiler_flag:'`
19345
(eval echo "\"\$as_me:19345: $lt_compile\"" >&5)
19346
(eval "$lt_compile" 2>conftest.err)
19348
cat conftest.err >&5
19349
echo "$as_me:19349: \$? = $ac_status" >&5
19350
if (exit $ac_status) && test -s "$ac_outfile"; then
19351
# The compiler can only warn and ignore the option if not recognized
19352
# So say no if there are warnings
19353
if test ! -s conftest.err; then
19354
lt_prog_compiler_pic_works_GCJ=yes
19360
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
19361
echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
19363
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
19364
case $lt_prog_compiler_pic_GCJ in
19366
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
19369
lt_prog_compiler_pic_GCJ=
19370
lt_prog_compiler_can_build_shared_GCJ=no
19375
# For platforms which do not support PIC, -DPIC is meaningless:
19377
lt_prog_compiler_pic_GCJ=
19380
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
19384
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19385
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
19386
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
19387
echo $ECHO_N "(cached) $ECHO_C" >&6
19389
lt_cv_prog_compiler_c_o_GCJ=no
19390
$rm -r conftest 2>/dev/null
19394
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19396
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
19397
# that will create temporary files in the current directory regardless of
19398
# the output directory. Thus, making CWD read-only will cause this test
19399
# to fail, enabling locking or at least warning the user not to do parallel
19403
lt_compiler_flag="-o out/conftest2.$ac_objext"
19404
# Insert the option either (1) after the last *FLAGS variable, or
19405
# (2) before a word containing "conftest.", or (3) at the end.
19406
# Note that $ac_compile itself does not contain backslashes and begins
19407
# with a dollar sign (not a hyphen), so the echo should work correctly.
19408
lt_compile=`echo "$ac_compile" | $SED \
19409
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19410
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19411
-e 's:$: $lt_compiler_flag:'`
19412
(eval echo "\"\$as_me:19412: $lt_compile\"" >&5)
19413
(eval "$lt_compile" 2>out/conftest.err)
19415
cat out/conftest.err >&5
19416
echo "$as_me:19416: \$? = $ac_status" >&5
19417
if (exit $ac_status) && test -s out/conftest2.$ac_objext
19419
# The compiler can only warn and ignore the option if not recognized
19420
# So say no if there are warnings
19421
if test ! -s out/conftest.err; then
19422
lt_cv_prog_compiler_c_o_GCJ=yes
19426
$rm conftest* out/*
19433
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
19434
echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
19437
hard_links="nottested"
19438
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
19439
# do not overwrite the value of need_locks provided by the user
19440
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19441
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
19444
ln conftest.a conftest.b 2>/dev/null && hard_links=no
19446
ln conftest.a conftest.b 2>&5 || hard_links=no
19447
ln conftest.a conftest.b 2>/dev/null && hard_links=no
19448
{ echo "$as_me:$LINENO: result: $hard_links" >&5
19449
echo "${ECHO_T}$hard_links" >&6; }
19450
if test "$hard_links" = no; then
19451
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19452
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19459
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19460
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
19463
allow_undefined_flag_GCJ=
19464
enable_shared_with_static_runtimes_GCJ=no
19466
archive_expsym_cmds_GCJ=
19467
old_archive_From_new_cmds_GCJ=
19468
old_archive_from_expsyms_cmds_GCJ=
19469
export_dynamic_flag_spec_GCJ=
19470
whole_archive_flag_spec_GCJ=
19471
thread_safe_flag_spec_GCJ=
19472
hardcode_libdir_flag_spec_GCJ=
19473
hardcode_libdir_flag_spec_ld_GCJ=
19474
hardcode_libdir_separator_GCJ=
19475
hardcode_direct_GCJ=no
19476
hardcode_minus_L_GCJ=no
19477
hardcode_shlibpath_var_GCJ=unsupported
19478
link_all_deplibs_GCJ=unknown
19479
hardcode_automatic_GCJ=no
19481
module_expsym_cmds_GCJ=
19482
always_export_symbols_GCJ=no
19483
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19484
# include_expsyms should be a list of space-separated symbols to be *always*
19485
# included in the symbol list
19486
include_expsyms_GCJ=
19487
# exclude_expsyms can be an extended regexp of symbols to exclude
19488
# it will be wrapped by ` (' and `)$', so one must not match beginning or
19489
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19490
# as well as any symbol that contains `d'.
19491
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
19492
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19493
# platforms (ab)use it in PIC code, but their linkers get confused if
19494
# the symbol is explicitly referenced. Since portable code cannot
19495
# rely on this symbol name, it's probably fine to never include it in
19496
# preloaded symbol tables.
19497
extract_expsyms_cmds=
19500
cygwin* | mingw* | pw32*)
19501
# FIXME: the MSVC++ port hasn't been tested in a loooong time
19502
# When not using gcc, we currently assume that we are using
19503
# Microsoft Visual C++.
19504
if test "$GCC" != yes; then
19514
if test "$with_gnu_ld" = yes; then
19515
# If archive_cmds runs LD, not CC, wlarc should be empty
19518
# See if GNU ld supports shared libraries.
19520
aix3* | aix4* | aix5*)
19521
# On AIX/PPC, the GNU linker is very broken
19522
if test "$host_cpu" != ia64; then
19526
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19527
*** to be unable to reliably create shared libraries on AIX.
19528
*** Therefore, libtool is disabling shared libraries support. If you
19529
*** really care for shared libraries, you may want to modify your PATH
19530
*** so that a non-GNU linker is found, and then restart.
19537
archive_cmds_GCJ='$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)'
19538
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19539
hardcode_minus_L_GCJ=yes
19541
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19542
# that the semantics of dynamic libraries on AmigaOS, at least up
19543
# to version 4, is to share data among multiple programs linked
19544
# with the same dynamic library. Since this doesn't match the
19545
# behavior of shared libraries on other platforms, we can't use
19551
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19552
allow_undefined_flag_GCJ=unsupported
19553
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19554
# support --undefined. This deserves some investigation. FIXME
19555
archive_cmds_GCJ='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
19561
cygwin* | mingw* | pw32*)
19562
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
19563
# as there is no search path for DLLs.
19564
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19565
allow_undefined_flag_GCJ=no
19566
always_export_symbols_GCJ=no
19567
enable_shared_with_static_runtimes_GCJ=yes
19568
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19570
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19571
archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19572
# If the export-symbols file already is a .def file (1st line
19573
# is EXPORTS), use it as is; otherwise, prepend...
19574
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19575
cp $export_symbols $output_objdir/$soname.def;
19577
echo EXPORTS > $output_objdir/$soname.def;
19578
cat $export_symbols >> $output_objdir/$soname.def;
19580
$CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19587
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19588
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19591
archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
19592
archive_expsym_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19597
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19601
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19602
*** create shared libraries on Solaris systems. Therefore, libtool
19603
*** is disabling shared libraries support. We urge you to upgrade GNU
19604
*** binutils to release 2.9.1 or newer. Another option is to modify
19605
*** your PATH or compiler configuration so that the native linker is
19606
*** used, and then restart.
19609
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19610
archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
19611
archive_expsym_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19618
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19620
hardcode_direct_GCJ=yes
19621
hardcode_shlibpath_var_GCJ=no
19625
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19626
archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
19627
archive_expsym_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19634
if test "$ld_shlibs_GCJ" = yes; then
19635
runpath_var=LD_RUN_PATH
19636
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
19637
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
19638
# ancient GNU ld didn't support --whole-archive et. al.
19639
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19640
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19642
whole_archive_flag_spec_GCJ=
19646
# PORTME fill in a description of your system's linker (not GNU ld)
19649
allow_undefined_flag_GCJ=unsupported
19650
always_export_symbols_GCJ=yes
19651
archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
19652
# Note: this linker hardcodes the directories in LIBPATH if there
19653
# are no directories specified by -L.
19654
hardcode_minus_L_GCJ=yes
19655
if test "$GCC" = yes && test -z "$link_static_flag"; then
19656
# Neither direct hardcoding nor static linking is supported with a
19658
hardcode_direct_GCJ=unsupported
19663
if test "$host_cpu" = ia64; then
19664
# On IA64, the linker does run time linking by default, so we don't
19665
# have to do anything special.
19666
aix_use_runtimelinking=no
19667
exp_sym_flag='-Bexport'
19670
# If we're using GNU nm, then we don't want the "-C" option.
19671
# -C means demangle to AIX nm, but means don't demangle with GNU nm
19672
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19673
export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
19675
export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
19678
# KDE requires run time linking. Make it the default.
19679
aix_use_runtimelinking=yes
19680
exp_sym_flag='-bexport'
19681
no_entry_flag='-bnoentry'
19684
# When large executables or shared objects are built, AIX ld can
19685
# have problems creating the table of contents. If linking a library
19686
# or program results in "error TOC overflow" add -mminimal-toc to
19687
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19688
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19690
archive_cmds_GCJ=''
19691
hardcode_direct_GCJ=yes
19692
hardcode_libdir_separator_GCJ=':'
19693
link_all_deplibs_GCJ=yes
19695
if test "$GCC" = yes; then
19696
case $host_os in aix4.012|aix4.012.*)
19697
# We only want to do this on AIX 4.2 and lower, the check
19698
# below for broken collect2 doesn't work under 4.3+
19699
collect2name=`${CC} -print-prog-name=collect2`
19700
if test -f "$collect2name" && \
19701
strings "$collect2name" | grep resolve_lib_name >/dev/null
19703
# We have reworked collect2
19704
hardcode_direct_GCJ=yes
19706
# We have old collect2
19707
hardcode_direct_GCJ=unsupported
19708
# It fails to find uninstalled libraries when the uninstalled
19709
# path is not listed in the libpath. Setting hardcode_minus_L
19710
# to unsupported forces relinking
19711
hardcode_minus_L_GCJ=yes
19712
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19713
hardcode_libdir_separator_GCJ=
19716
shared_flag='-shared'
19719
if test "$host_cpu" = ia64; then
19720
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19721
# chokes on -Wl,-G. The following line is correct:
19724
if test "$aix_use_runtimelinking" = yes; then
19725
shared_flag='-qmkshrobj ${wl}-G'
19727
shared_flag='-qmkshrobj'
19732
# Let the compiler handle the export list.
19733
always_export_symbols_GCJ=no
19734
if test "$aix_use_runtimelinking" = yes; then
19735
# Warning - without using the other runtime loading flags (-brtl),
19736
# -berok will link without error, but may produce a broken library.
19737
allow_undefined_flag_GCJ='-berok'
19738
# Determine the default libpath from the value encoded in an empty executable.
19739
cat >conftest.$ac_ext <<_ACEOF
19742
cat confdefs.h >>conftest.$ac_ext
19743
cat >>conftest.$ac_ext <<_ACEOF
19744
/* end confdefs.h. */
19754
rm -f conftest.$ac_objext conftest$ac_exeext
19755
if { (ac_try="$ac_link"
19756
case "(($ac_try" in
19757
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19758
*) ac_try_echo=$ac_try;;
19760
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19761
(eval "$ac_link") 2>conftest.er1
19763
grep -v '^ *+' conftest.er1 >conftest.err
19765
cat conftest.err >&5
19766
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767
(exit $ac_status); } && {
19768
test -z "$ac_c_werror_flag" ||
19769
test ! -s conftest.err
19770
} && test -s conftest$ac_exeext &&
19771
$as_test_x conftest$ac_exeext; then
19773
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19775
# Check for a 64-bit object if we didn't find anything.
19776
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19779
echo "$as_me: failed program was:" >&5
19780
sed 's/^/| /' conftest.$ac_ext >&5
19785
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19786
conftest$ac_exeext conftest.$ac_ext
19787
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19789
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19790
archive_cmds_GCJ="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '" $shared_flag"
19791
archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19793
if test "$host_cpu" = ia64; then
19794
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
19795
allow_undefined_flag_GCJ="-z nodefs"
19796
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
19798
# Determine the default libpath from the value encoded in an empty executable.
19799
cat >conftest.$ac_ext <<_ACEOF
19802
cat confdefs.h >>conftest.$ac_ext
19803
cat >>conftest.$ac_ext <<_ACEOF
19804
/* end confdefs.h. */
19814
rm -f conftest.$ac_objext conftest$ac_exeext
19815
if { (ac_try="$ac_link"
19816
case "(($ac_try" in
19817
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19818
*) ac_try_echo=$ac_try;;
19820
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19821
(eval "$ac_link") 2>conftest.er1
19823
grep -v '^ *+' conftest.er1 >conftest.err
19825
cat conftest.err >&5
19826
echo "$as_me:$LINENO: \$? = $ac_status" >&5
19827
(exit $ac_status); } && {
19828
test -z "$ac_c_werror_flag" ||
19829
test ! -s conftest.err
19830
} && test -s conftest$ac_exeext &&
19831
$as_test_x conftest$ac_exeext; then
19833
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19835
# Check for a 64-bit object if we didn't find anything.
19836
if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19839
echo "$as_me: failed program was:" >&5
19840
sed 's/^/| /' conftest.$ac_ext >&5
19845
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19846
conftest$ac_exeext conftest.$ac_ext
19847
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19849
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
19850
# Warning - without using the other run time loading flags,
19851
# -berok will link without error, but may produce a broken library.
19852
no_undefined_flag_GCJ=' ${wl}-bernotok'
19853
allow_undefined_flag_GCJ=' ${wl}-berok'
19854
# -bexpall does not export symbols beginning with underscore (_)
19855
always_export_symbols_GCJ=yes
19856
# Exported symbols can be pulled into shared objects from archives
19857
whole_archive_flag_spec_GCJ=' '
19858
archive_cmds_need_lc_GCJ=yes
19859
# This is similar to how AIX traditionally builds it's shared libraries.
19860
archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $compiler_flags $libobjs $deplibs ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
19866
archive_cmds_GCJ='$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)'
19867
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19868
hardcode_minus_L_GCJ=yes
19869
# see comment about different semantics on the GNU ld section
19874
export_dynamic_flag_spec_GCJ=-rdynamic
19877
cygwin* | mingw* | pw32*)
19878
# When not using gcc, we currently assume that we are using
19879
# Microsoft Visual C++.
19880
# hardcode_libdir_flag_spec is actually meaningless, as there is
19881
# no search path for DLLs.
19882
hardcode_libdir_flag_spec_GCJ=' '
19883
allow_undefined_flag_GCJ=no
19884
# Tell ltmain to make .lib files, not .a files.
19886
# Tell ltmain to make .dll files, not .so files.
19888
# FIXME: Setting linknames here is a bad hack.
19889
archive_cmds_GCJ='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19890
# The linker will automatically build a .lib file if we build a DLL.
19891
old_archive_From_new_cmds_GCJ='true'
19892
# FIXME: Should let the user specify the lib program.
19893
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
19894
fix_srcfile_path='`cygpath -w "$srcfile"`'
19895
enable_shared_with_static_runtimes_GCJ=yes
19898
darwin* | rhapsody*)
19899
if test "$GXX" = yes ; then
19900
archive_cmds_need_lc_GCJ=no
19902
rhapsody* | darwin1.[012])
19903
allow_undefined_flag_GCJ='-Wl,-undefined -Wl,suppress'
19906
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19907
allow_undefined_flag_GCJ='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
19909
case ${MACOSX_DEPLOYMENT_TARGET} in
19911
allow_undefined_flag_GCJ='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
19914
allow_undefined_flag_GCJ='-Wl,-undefined -Wl,dynamic_lookup'
19920
lt_int_apple_cc_single_mod=no
19921
output_verbose_link_cmd='echo'
19922
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
19923
lt_int_apple_cc_single_mod=yes
19925
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19926
archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
19928
archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring'
19930
module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
19931
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19932
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19933
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19935
archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $compiler_flags $deplibs -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19937
module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19938
hardcode_direct_GCJ=no
19939
hardcode_automatic_GCJ=yes
19940
hardcode_shlibpath_var_GCJ=unsupported
19941
whole_archive_flag_spec_GCJ='-all_load $convenience'
19942
link_all_deplibs_GCJ=yes
19949
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19950
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19951
hardcode_shlibpath_var_GCJ=no
19958
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19959
# support. Future versions do this automatically, but an explicit c++rt0.o
19960
# does not break anything, and helps significantly (at the cost of a little
19963
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19964
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19965
hardcode_direct_GCJ=yes
19966
hardcode_shlibpath_var_GCJ=no
19969
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
19971
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19972
hardcode_direct_GCJ=yes
19973
hardcode_minus_L_GCJ=yes
19974
hardcode_shlibpath_var_GCJ=no
19977
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19978
freebsd* | kfreebsd*-gnu)
19979
archive_cmds_GCJ='$CC -shared -o $lib $compiler_flags $libobjs $deplibs'
19980
hardcode_libdir_flag_spec_GCJ='-R$libdir'
19981
hardcode_direct_GCJ=yes
19982
hardcode_shlibpath_var_GCJ=no
19986
if test "$GCC" = yes; then
19987
archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $compiler_flags $libobjs $deplibs~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
19989
archive_cmds_GCJ='$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'
19991
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
19992
hardcode_libdir_separator_GCJ=:
19993
hardcode_direct_GCJ=yes
19995
# hardcode_minus_L: Not really in the search PATH,
19996
# but as the default location of the library.
19997
hardcode_minus_L_GCJ=yes
19998
export_dynamic_flag_spec_GCJ='${wl}-E'
20002
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20003
case "$host_cpu" in
20005
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
20008
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs'
20012
case "$host_cpu" in
20014
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
20017
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20021
if test "$with_gnu_ld" = no; then
20022
case "$host_cpu" in
20024
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20025
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
20026
hardcode_libdir_separator_GCJ=:
20027
hardcode_direct_GCJ=no
20028
hardcode_shlibpath_var_GCJ=no
20031
hardcode_libdir_flag_spec_GCJ='-L$libdir'
20032
hardcode_direct_GCJ=no
20033
hardcode_shlibpath_var_GCJ=no
20035
# hardcode_minus_L: Not really in the search PATH,
20036
# but as the default location of the library.
20037
hardcode_minus_L_GCJ=yes
20040
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20041
hardcode_libdir_separator_GCJ=:
20042
hardcode_direct_GCJ=yes
20043
export_dynamic_flag_spec_GCJ='${wl}-E'
20045
# hardcode_minus_L: Not really in the search PATH,
20046
# but as the default location of the library.
20047
hardcode_minus_L_GCJ=yes
20053
irix5* | irix6* | nonstopux*)
20054
if test "$GCC" = yes; then
20055
archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20057
archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
20058
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
20060
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20061
hardcode_libdir_separator_GCJ=:
20062
link_all_deplibs_GCJ=yes
20066
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20067
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
20069
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
20071
hardcode_libdir_flag_spec_GCJ='-R$libdir'
20072
hardcode_direct_GCJ=yes
20073
hardcode_shlibpath_var_GCJ=no
20077
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20078
hardcode_direct_GCJ=yes
20079
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20080
hardcode_libdir_separator_GCJ=:
20081
hardcode_shlibpath_var_GCJ=no
20085
hardcode_direct_GCJ=yes
20086
hardcode_shlibpath_var_GCJ=no
20087
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20088
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
20089
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20090
export_dynamic_flag_spec_GCJ='${wl}-E'
20093
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20094
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20095
hardcode_libdir_flag_spec_GCJ='-R$libdir'
20098
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
20099
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20106
hardcode_libdir_flag_spec_GCJ='-L$libdir'
20107
hardcode_minus_L_GCJ=yes
20108
allow_undefined_flag_GCJ=unsupported
20109
archive_cmds_GCJ='$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 $compiler_flags $libobjs $deplibs$output_objdir/$libname.def'
20110
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20114
if test "$GCC" = yes; then
20115
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
20116
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20118
allow_undefined_flag_GCJ=' -expect_unresolved \*'
20119
archive_cmds_GCJ='$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'
20121
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20122
hardcode_libdir_separator_GCJ=:
20125
osf4* | osf5*) # as osf3* with the addition of -msym flag
20126
if test "$GCC" = yes; then
20127
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
20128
archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $compiler_flags $libobjs $deplibs ${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'
20129
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20131
allow_undefined_flag_GCJ=' -expect_unresolved \*'
20132
archive_cmds_GCJ='$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'
20133
archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
20134
$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'
20136
# Both c and cxx compiler support -rpath directly
20137
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
20139
hardcode_libdir_separator_GCJ=:
20143
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20144
hardcode_shlibpath_var_GCJ=no
20145
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
20146
runpath_var=LD_RUN_PATH
20147
hardcode_runpath_var=yes
20151
no_undefined_flag_GCJ=' -z text'
20152
if test "$GCC" = yes; then
20153
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
20154
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20155
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp'
20157
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20158
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20159
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20161
hardcode_libdir_flag_spec_GCJ='-R$libdir'
20162
hardcode_shlibpath_var_GCJ=no
20164
solaris2.[0-5] | solaris2.[0-5].*) ;;
20165
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
20166
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
20168
link_all_deplibs_GCJ=yes
20172
if test "x$host_vendor" = xsequent; then
20173
# Use $CC to link under sequent, because it throws in some extra .o
20174
# files that make .init and .fini sections work.
20175
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs'
20177
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20179
hardcode_libdir_flag_spec_GCJ='-L$libdir'
20180
hardcode_direct_GCJ=yes
20181
hardcode_minus_L_GCJ=yes
20182
hardcode_shlibpath_var_GCJ=no
20186
case $host_vendor in
20188
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20189
hardcode_direct_GCJ=yes # is this really true???
20192
## LD is ld it makes a PLAMLIB
20193
## CC just makes a GrossModule.
20194
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20195
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
20196
hardcode_direct_GCJ=no
20199
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20200
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
20203
runpath_var='LD_RUN_PATH'
20204
hardcode_shlibpath_var_GCJ=no
20208
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20209
hardcode_shlibpath_var_GCJ=no
20210
export_dynamic_flag_spec_GCJ='-Bexport'
20214
if test -d /usr/nec; then
20215
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20216
hardcode_shlibpath_var_GCJ=no
20217
runpath_var=LD_RUN_PATH
20218
hardcode_runpath_var=yes
20224
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20225
hardcode_direct_GCJ=yes
20226
hardcode_minus_L_GCJ=no
20227
hardcode_shlibpath_var_GCJ=no
20228
hardcode_runpath_var=yes
20229
runpath_var=LD_RUN_PATH
20232
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
20233
no_undefined_flag_GCJ='${wl}-z ${wl}text'
20234
if test "$GCC" = yes; then
20235
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
20237
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
20239
runpath_var='LD_RUN_PATH'
20240
hardcode_shlibpath_var_GCJ=no
20244
no_undefined_flag_GCJ=' -z text'
20245
# $CC -shared without GNU ld will not create a library from C++
20246
# object files and a static libstdc++, better avoid it by now
20247
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20248
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20249
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20250
hardcode_libdir_flag_spec_GCJ=
20251
hardcode_shlibpath_var_GCJ=no
20252
runpath_var='LD_RUN_PATH'
20256
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20257
hardcode_libdir_flag_spec_GCJ='-L$libdir'
20258
hardcode_shlibpath_var_GCJ=no
20267
{ echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
20268
echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
20269
test "$ld_shlibs_GCJ" = no && can_build_shared=no
20271
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20272
if test "$GCC" = yes; then
20273
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20277
# Do we need to explicitly link libc?
20279
case "x$archive_cmds_need_lc_GCJ" in
20281
# Assume -lc should be added
20282
archive_cmds_need_lc_GCJ=yes
20284
if test "$enable_shared" = yes && test "$GCC" = yes; then
20285
case $archive_cmds_GCJ in
20287
# FIXME: we may have to deal with multi-command sequences.
20290
# Test whether the compiler implicitly links with -lc since on some
20291
# systems, -lgcc has to come before -lc. If gcc already passes -lc
20292
# to ld, don't add -lc before -lgcc.
20293
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20294
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
20296
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20298
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20299
(eval $ac_compile) 2>&5
20301
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302
(exit $ac_status); } 2>conftest.err; then
20305
libobjs=conftest.$ac_objext
20307
wl=$lt_prog_compiler_wl_GCJ
20313
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
20314
allow_undefined_flag_GCJ=
20315
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20316
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20318
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319
(exit $ac_status); }
20321
archive_cmds_need_lc_GCJ=no
20323
archive_cmds_need_lc_GCJ=yes
20325
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
20327
cat conftest.err 1>&5
20330
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
20331
echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
20338
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20339
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
20340
library_names_spec=
20341
libname_spec='lib$name'
20345
postuninstall_cmds=
20349
shlibpath_overrides_runpath=unknown
20351
dynamic_linker="$host_os ld.so"
20352
sys_lib_dlsearch_path_spec="/lib /usr/lib"
20353
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20354
need_lib_prefix=unknown
20355
hardcode_into_libs=no
20357
# when you set need_version to no, make sure it does not cause -set_version
20358
# flags to be left without arguments
20359
need_version=unknown
20364
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20365
shlibpath_var=LIBPATH
20367
# AIX 3 has no versioning support, so we append a major version to the name.
20368
soname_spec='${libname}${release}${shared_ext}$major'
20375
hardcode_into_libs=yes
20376
if test "$host_cpu" = ia64; then
20377
# AIX 5 supports IA64
20378
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20379
shlibpath_var=LD_LIBRARY_PATH
20381
# With GCC up to 2.95.x, collect2 would create an import file
20382
# for dependence libraries. The import file would start with
20383
# the line `#! .'. This would cause the generated library to
20384
# depend on `.', always an invalid library. This was fixed in
20385
# development snapshots of GCC prior to 3.0.
20387
aix4 | aix4.[01] | aix4.[01].*)
20388
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20390
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20393
can_build_shared=no
20397
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20398
# soname into executable. Probably we can add versioning support to
20399
# collect2, so additional links can be useful in future.
20400
if test "$aix_use_runtimelinking" = yes; then
20401
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
20402
# instead of lib<name>.a to let people know that these are not
20403
# typical AIX shared libraries.
20404
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20406
# We preserve .a as extension for shared libraries through AIX4.2
20407
# and later when we are not doing run time linking.
20408
library_names_spec='${libname}${release}.a $libname.a'
20409
soname_spec='${libname}${release}${shared_ext}$major'
20411
shlibpath_var=LIBPATH
20416
library_names_spec='$libname.ixlibrary $libname.a'
20417
# Create ${libname}_ixlibrary.a entries in /sys/libs.
20418
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'
20422
library_names_spec='${libname}${shared_ext}'
20423
dynamic_linker="$host_os ld.so"
20424
shlibpath_var=LIBRARY_PATH
20430
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20431
soname_spec='${libname}${release}${shared_ext}$major'
20432
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20433
shlibpath_var=LD_LIBRARY_PATH
20434
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20435
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20436
# the default ld.so.conf also contains /usr/contrib/lib and
20437
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20438
# libtool to hard-code these into programs
20441
cygwin* | mingw* | pw32*)
20442
version_type=windows
20447
case $GCC,$host_os in
20448
yes,cygwin* | yes,mingw* | yes,pw32*)
20449
library_names_spec='$libname.dll.a'
20450
# DLL is installed to $(libdir)/../bin by postinstall_cmds
20451
postinstall_cmds='base_file=`basename \${file}`~
20452
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20453
dldir=$destdir/`dirname \$dlpath`~
20454
test -d \$dldir || mkdir -p \$dldir~
20455
$install_prog $dir/$dlname \$dldir/$dlname'
20456
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20457
dlpath=$dir/\$dldll~
20459
shlibpath_overrides_runpath=yes
20463
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
20464
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20465
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20468
# MinGW DLLs use traditional 'lib' prefix
20469
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20470
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20471
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20472
# It is most probably a Windows format PATH printed by
20473
# mingw gcc, but we are running on Cygwin. Gcc prints its search
20474
# path with ; separators, and with drive letters. We can handle the
20475
# drive letters (cygwin fileutils understands them), so leave them,
20476
# especially as we might pass files found there to a mingw objdump,
20477
# which wouldn't understand a cygwinified path. Ahh.
20478
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20480
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20484
# pw32 DLLs use 'pw' prefix rather than 'lib'
20485
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20491
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20494
dynamic_linker='Win32 ld.exe'
20495
# FIXME: first we should search . and the directory the executable is in
20499
darwin* | rhapsody*)
20500
dynamic_linker="$host_os dyld"
20501
version_type=darwin
20504
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20505
soname_spec='${libname}${release}${major}$shared_ext'
20506
shlibpath_overrides_runpath=yes
20507
shlibpath_var=DYLD_LIBRARY_PATH
20508
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
20509
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20510
if test "$GCC" = yes; then
20511
sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
20513
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20515
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20522
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20523
soname_spec='${libname}${release}${shared_ext}$major'
20524
shlibpath_var=LD_LIBRARY_PATH
20535
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20536
soname_spec='${libname}${release}${shared_ext}$major'
20537
shlibpath_var=LD_LIBRARY_PATH
20538
shlibpath_overrides_runpath=no
20539
hardcode_into_libs=yes
20540
dynamic_linker='GNU ld.so'
20544
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20545
version_type=freebsd-$objformat
20546
case $version_type in
20548
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20553
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20557
shlibpath_var=LD_LIBRARY_PATH
20560
shlibpath_overrides_runpath=yes
20562
freebsd3.01* | freebsdelf3.01*)
20563
shlibpath_overrides_runpath=yes
20564
hardcode_into_libs=yes
20567
shlibpath_overrides_runpath=no
20568
hardcode_into_libs=yes
20577
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20578
soname_spec='${libname}${release}${shared_ext}$major'
20579
shlibpath_var=LD_LIBRARY_PATH
20580
hardcode_into_libs=yes
20583
hpux9* | hpux10* | hpux11*)
20584
# Give a soname corresponding to the major version so that dld.sl refuses to
20585
# link against other versions.
20589
case "$host_cpu" in
20592
hardcode_into_libs=yes
20593
dynamic_linker="$host_os dld.so"
20594
shlibpath_var=LD_LIBRARY_PATH
20595
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20596
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20597
soname_spec='${libname}${release}${shared_ext}$major'
20598
if test "X$HPUX_IA64_MODE" = X32; then
20599
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20601
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20603
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20607
hardcode_into_libs=yes
20608
dynamic_linker="$host_os dld.sl"
20609
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20610
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20611
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20612
soname_spec='${libname}${release}${shared_ext}$major'
20613
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20614
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20618
dynamic_linker="$host_os dld.sl"
20619
shlibpath_var=SHLIB_PATH
20620
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20621
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20622
soname_spec='${libname}${release}${shared_ext}$major'
20625
# HP-UX runs *really* slowly unless shared libraries are mode 555.
20626
postinstall_cmds='chmod 555 $lib'
20629
irix5* | irix6* | nonstopux*)
20631
nonstopux*) version_type=nonstopux ;;
20633
if test "$lt_cv_prog_gnu_ld" = yes; then
20641
soname_spec='${libname}${release}${shared_ext}$major'
20642
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20644
irix5* | nonstopux*)
20645
libsuff= shlibsuff=
20648
case $LD in # libtool.m4 will add one of these switches to LD
20649
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20650
libsuff= shlibsuff= libmagic=32-bit;;
20651
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20652
libsuff=32 shlibsuff=N32 libmagic=N32;;
20653
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20654
libsuff=64 shlibsuff=64 libmagic=64-bit;;
20655
*) libsuff= shlibsuff= libmagic=never-match;;
20659
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20660
shlibpath_overrides_runpath=no
20661
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20662
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20663
hardcode_into_libs=yes
20666
# No shared lib support for Linux oldld, aout, or coff.
20667
linux*oldld* | linux*aout* | linux*coff*)
20671
# This must be Linux ELF.
20676
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20677
soname_spec='${libname}${release}${shared_ext}$major'
20678
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20680
if test "x$LINUX_64_MODE" = x64; then
20681
# Some platforms are per default 64-bit, so there's no /lib64
20682
if test -d /lib64 -a ! -h /lib64; then
20686
shlibpath_var=LD_LIBRARY_PATH
20687
shlibpath_overrides_runpath=no
20688
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
20689
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
20690
# This implies no fast_install, which is unacceptable.
20691
# Some rework will be needed to allow for fast_install
20692
# before this can be enabled.
20693
hardcode_into_libs=yes
20695
# We used to test for /lib/ld.so.1 and disable shared libraries on
20696
# powerpc, because MkLinux only supported shared libraries with the
20697
# GNU dynamic linker. Since this was broken with cross compilers,
20698
# most powerpc-linux boxes support dynamic linking these days and
20699
# people can always --disable-shared, the test was removed, and we
20700
# assume the GNU/Linux dynamic linker is in use.
20701
dynamic_linker='GNU/Linux ld.so'
20708
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20709
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20710
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20711
dynamic_linker='NetBSD (a.out) ld.so'
20713
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
20714
soname_spec='${libname}${release}${shared_ext}$major'
20715
dynamic_linker='NetBSD ld.elf_so'
20717
shlibpath_var=LD_LIBRARY_PATH
20718
shlibpath_overrides_runpath=yes
20719
hardcode_into_libs=yes
20724
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20725
shlibpath_var=LD_LIBRARY_PATH
20726
shlibpath_overrides_runpath=yes
20733
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20734
soname_spec='${libname}${release}${shared_ext}$major'
20735
shlibpath_var=LD_LIBRARY_PATH
20736
shlibpath_overrides_runpath=yes
20743
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20744
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20745
shlibpath_var=LD_LIBRARY_PATH
20746
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20748
openbsd2.[89] | openbsd2.[89].*)
20749
shlibpath_overrides_runpath=no
20752
shlibpath_overrides_runpath=yes
20756
shlibpath_overrides_runpath=yes
20761
libname_spec='$name'
20764
library_names_spec='$libname${shared_ext} $libname.a'
20765
dynamic_linker='OS/2 ld.exe'
20766
shlibpath_var=LIBPATH
20769
osf3* | osf4* | osf5*)
20773
soname_spec='${libname}${release}${shared_ext}$major'
20774
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20775
shlibpath_var=LD_LIBRARY_PATH
20776
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20777
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20782
soname_spec='${libname}${release}${shared_ext}$major'
20783
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20784
shlibpath_var=LD_LIBRARY_PATH
20791
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20792
soname_spec='${libname}${release}${shared_ext}$major'
20793
shlibpath_var=LD_LIBRARY_PATH
20794
shlibpath_overrides_runpath=yes
20795
hardcode_into_libs=yes
20796
# ldd complains unless libraries are executable
20797
postinstall_cmds='chmod +x $lib'
20802
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20803
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20804
shlibpath_var=LD_LIBRARY_PATH
20805
shlibpath_overrides_runpath=yes
20806
if test "$with_gnu_ld" = yes; then
20812
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20814
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20815
soname_spec='${libname}${release}${shared_ext}$major'
20816
shlibpath_var=LD_LIBRARY_PATH
20817
case $host_vendor in
20819
shlibpath_overrides_runpath=no
20821
export_dynamic_flag_spec='${wl}-Blargedynsym'
20822
runpath_var=LD_RUN_PATH
20830
shlibpath_overrides_runpath=no
20831
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20837
if test -d /usr/nec ;then
20839
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20840
soname_spec='$libname${shared_ext}.$major'
20841
shlibpath_var=LD_LIBRARY_PATH
20847
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20848
soname_spec='${libname}${release}${shared_ext}$major'
20849
shlibpath_var=LD_LIBRARY_PATH
20856
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20857
echo "${ECHO_T}$dynamic_linker" >&6; }
20858
test "$dynamic_linker" = no && can_build_shared=no
20860
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20861
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
20862
hardcode_action_GCJ=
20863
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
20864
test -n "$runpath_var GCJ" || \
20865
test "X$hardcode_automatic_GCJ"="Xyes" ; then
20867
# We can hardcode non-existant directories.
20868
if test "$hardcode_direct_GCJ" != no &&
20869
# If the only mechanism to avoid hardcoding is shlibpath_var, we
20870
# have to relink, otherwise we might link with an installed library
20871
# when we should be linking with a yet-to-be-installed one
20872
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
20873
test "$hardcode_minus_L_GCJ" != no; then
20874
# Linking always hardcodes the temporary library directory.
20875
hardcode_action_GCJ=relink
20877
# We can link without hardcoding, and we can hardcode nonexisting dirs.
20878
hardcode_action_GCJ=immediate
20881
# We cannot hardcode anything, or else we can only hardcode existing
20883
hardcode_action_GCJ=unsupported
20885
{ echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
20886
echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
20888
if test "$hardcode_action_GCJ" = relink; then
20889
# Fast installation is not supported
20890
enable_fast_install=no
20891
elif test "$shlibpath_overrides_runpath" = yes ||
20892
test "$enable_shared" = no; then
20893
# Fast installation is not necessary
20894
enable_fast_install=needless
20899
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20900
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
20901
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20902
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20903
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20904
{ echo "$as_me:$LINENO: result: yes" >&5
20905
echo "${ECHO_T}yes" >&6; }
20907
# FIXME - insert some real tests, host_os isn't really good enough
20910
if test -n "$STRIP" ; then
20911
striplib="$STRIP -x"
20912
{ echo "$as_me:$LINENO: result: yes" >&5
20913
echo "${ECHO_T}yes" >&6; }
20915
{ echo "$as_me:$LINENO: result: no" >&5
20916
echo "${ECHO_T}no" >&6; }
20920
{ echo "$as_me:$LINENO: result: no" >&5
20921
echo "${ECHO_T}no" >&6; }
20926
if test "x$enable_dlopen" != xyes; then
20927
enable_dlopen=unknown
20928
enable_dlopen_self=unknown
20929
enable_dlopen_self_static=unknown
20936
lt_cv_dlopen="load_add_on"
20938
lt_cv_dlopen_self=yes
20942
lt_cv_dlopen="LoadLibrary"
20947
lt_cv_dlopen="dlopen"
20952
# if libdl is installed we need to link against it
20953
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
20954
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
20955
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
20956
echo $ECHO_N "(cached) $ECHO_C" >&6
20958
ac_check_lib_save_LIBS=$LIBS
20960
cat >conftest.$ac_ext <<_ACEOF
20963
cat confdefs.h >>conftest.$ac_ext
20964
cat >>conftest.$ac_ext <<_ACEOF
20965
/* end confdefs.h. */
20967
/* Override any GCC internal prototype to avoid an error.
20968
Use char because int might match the return type of a GCC
20969
builtin and then its argument prototype would still apply. */
20982
rm -f conftest.$ac_objext conftest$ac_exeext
20983
if { (ac_try="$ac_link"
20984
case "(($ac_try" in
20985
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20986
*) ac_try_echo=$ac_try;;
20988
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20989
(eval "$ac_link") 2>conftest.er1
20991
grep -v '^ *+' conftest.er1 >conftest.err
20993
cat conftest.err >&5
20994
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20995
(exit $ac_status); } && {
20996
test -z "$ac_c_werror_flag" ||
20997
test ! -s conftest.err
20998
} && test -s conftest$ac_exeext &&
20999
$as_test_x conftest$ac_exeext; then
21000
ac_cv_lib_dl_dlopen=yes
21002
echo "$as_me: failed program was:" >&5
21003
sed 's/^/| /' conftest.$ac_ext >&5
21005
ac_cv_lib_dl_dlopen=no
21008
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21009
conftest$ac_exeext conftest.$ac_ext
21010
LIBS=$ac_check_lib_save_LIBS
21012
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21013
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
21014
if test $ac_cv_lib_dl_dlopen = yes; then
21015
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21018
lt_cv_dlopen="dyld"
21020
lt_cv_dlopen_self=yes
21027
{ echo "$as_me:$LINENO: checking for shl_load" >&5
21028
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
21029
if test "${ac_cv_func_shl_load+set}" = set; then
21030
echo $ECHO_N "(cached) $ECHO_C" >&6
21032
cat >conftest.$ac_ext <<_ACEOF
21035
cat confdefs.h >>conftest.$ac_ext
21036
cat >>conftest.$ac_ext <<_ACEOF
21037
/* end confdefs.h. */
21038
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
21039
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21040
#define shl_load innocuous_shl_load
21042
/* System header to define __stub macros and hopefully few prototypes,
21043
which can conflict with char shl_load (); below.
21044
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21045
<limits.h> exists even on freestanding compilers. */
21048
# include <limits.h>
21050
# include <assert.h>
21055
/* Override any GCC internal prototype to avoid an error.
21056
Use char because int might match the return type of a GCC
21057
builtin and then its argument prototype would still apply. */
21062
/* The GNU C library defines this for functions which it implements
21063
to always fail with ENOSYS. Some functions are actually named
21064
something starting with __ and the normal name is an alias. */
21065
#if defined __stub_shl_load || defined __stub___shl_load
21072
return shl_load ();
21077
rm -f conftest.$ac_objext conftest$ac_exeext
21078
if { (ac_try="$ac_link"
21079
case "(($ac_try" in
21080
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21081
*) ac_try_echo=$ac_try;;
21083
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21084
(eval "$ac_link") 2>conftest.er1
21086
grep -v '^ *+' conftest.er1 >conftest.err
21088
cat conftest.err >&5
21089
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21090
(exit $ac_status); } && {
21091
test -z "$ac_c_werror_flag" ||
21092
test ! -s conftest.err
21093
} && test -s conftest$ac_exeext &&
21094
$as_test_x conftest$ac_exeext; then
21095
ac_cv_func_shl_load=yes
21097
echo "$as_me: failed program was:" >&5
21098
sed 's/^/| /' conftest.$ac_ext >&5
21100
ac_cv_func_shl_load=no
21103
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21104
conftest$ac_exeext conftest.$ac_ext
21106
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
21107
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
21108
if test $ac_cv_func_shl_load = yes; then
21109
lt_cv_dlopen="shl_load"
21111
{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
21112
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
21113
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
21114
echo $ECHO_N "(cached) $ECHO_C" >&6
21116
ac_check_lib_save_LIBS=$LIBS
21118
cat >conftest.$ac_ext <<_ACEOF
21121
cat confdefs.h >>conftest.$ac_ext
21122
cat >>conftest.$ac_ext <<_ACEOF
21123
/* end confdefs.h. */
21125
/* Override any GCC internal prototype to avoid an error.
21126
Use char because int might match the return type of a GCC
21127
builtin and then its argument prototype would still apply. */
21135
return shl_load ();
21140
rm -f conftest.$ac_objext conftest$ac_exeext
21141
if { (ac_try="$ac_link"
21142
case "(($ac_try" in
21143
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21144
*) ac_try_echo=$ac_try;;
21146
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21147
(eval "$ac_link") 2>conftest.er1
21149
grep -v '^ *+' conftest.er1 >conftest.err
21151
cat conftest.err >&5
21152
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153
(exit $ac_status); } && {
21154
test -z "$ac_c_werror_flag" ||
21155
test ! -s conftest.err
21156
} && test -s conftest$ac_exeext &&
21157
$as_test_x conftest$ac_exeext; then
21158
ac_cv_lib_dld_shl_load=yes
21160
echo "$as_me: failed program was:" >&5
21161
sed 's/^/| /' conftest.$ac_ext >&5
21163
ac_cv_lib_dld_shl_load=no
21166
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21167
conftest$ac_exeext conftest.$ac_ext
21168
LIBS=$ac_check_lib_save_LIBS
21170
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
21171
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
21172
if test $ac_cv_lib_dld_shl_load = yes; then
21173
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
21175
{ echo "$as_me:$LINENO: checking for dlopen" >&5
21176
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
21177
if test "${ac_cv_func_dlopen+set}" = set; then
21178
echo $ECHO_N "(cached) $ECHO_C" >&6
21180
cat >conftest.$ac_ext <<_ACEOF
21183
cat confdefs.h >>conftest.$ac_ext
21184
cat >>conftest.$ac_ext <<_ACEOF
21185
/* end confdefs.h. */
21186
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
21187
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21188
#define dlopen innocuous_dlopen
21190
/* System header to define __stub macros and hopefully few prototypes,
21191
which can conflict with char dlopen (); below.
21192
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21193
<limits.h> exists even on freestanding compilers. */
21196
# include <limits.h>
21198
# include <assert.h>
21203
/* Override any GCC internal prototype to avoid an error.
21204
Use char because int might match the return type of a GCC
21205
builtin and then its argument prototype would still apply. */
21210
/* The GNU C library defines this for functions which it implements
21211
to always fail with ENOSYS. Some functions are actually named
21212
something starting with __ and the normal name is an alias. */
21213
#if defined __stub_dlopen || defined __stub___dlopen
21225
rm -f conftest.$ac_objext conftest$ac_exeext
21226
if { (ac_try="$ac_link"
21227
case "(($ac_try" in
21228
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21229
*) ac_try_echo=$ac_try;;
21231
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21232
(eval "$ac_link") 2>conftest.er1
21234
grep -v '^ *+' conftest.er1 >conftest.err
21236
cat conftest.err >&5
21237
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21238
(exit $ac_status); } && {
21239
test -z "$ac_c_werror_flag" ||
21240
test ! -s conftest.err
21241
} && test -s conftest$ac_exeext &&
21242
$as_test_x conftest$ac_exeext; then
21243
ac_cv_func_dlopen=yes
21245
echo "$as_me: failed program was:" >&5
21246
sed 's/^/| /' conftest.$ac_ext >&5
21248
ac_cv_func_dlopen=no
21251
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21252
conftest$ac_exeext conftest.$ac_ext
21254
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
21255
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
21256
if test $ac_cv_func_dlopen = yes; then
21257
lt_cv_dlopen="dlopen"
21259
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21260
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
21261
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21262
echo $ECHO_N "(cached) $ECHO_C" >&6
21264
ac_check_lib_save_LIBS=$LIBS
21266
cat >conftest.$ac_ext <<_ACEOF
21269
cat confdefs.h >>conftest.$ac_ext
21270
cat >>conftest.$ac_ext <<_ACEOF
21271
/* end confdefs.h. */
21273
/* Override any GCC internal prototype to avoid an error.
21274
Use char because int might match the return type of a GCC
21275
builtin and then its argument prototype would still apply. */
21288
rm -f conftest.$ac_objext conftest$ac_exeext
21289
if { (ac_try="$ac_link"
21290
case "(($ac_try" in
21291
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21292
*) ac_try_echo=$ac_try;;
21294
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21295
(eval "$ac_link") 2>conftest.er1
21297
grep -v '^ *+' conftest.er1 >conftest.err
21299
cat conftest.err >&5
21300
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301
(exit $ac_status); } && {
21302
test -z "$ac_c_werror_flag" ||
21303
test ! -s conftest.err
21304
} && test -s conftest$ac_exeext &&
21305
$as_test_x conftest$ac_exeext; then
21306
ac_cv_lib_dl_dlopen=yes
21308
echo "$as_me: failed program was:" >&5
21309
sed 's/^/| /' conftest.$ac_ext >&5
21311
ac_cv_lib_dl_dlopen=no
21314
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21315
conftest$ac_exeext conftest.$ac_ext
21316
LIBS=$ac_check_lib_save_LIBS
21318
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21319
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
21320
if test $ac_cv_lib_dl_dlopen = yes; then
21321
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21323
{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
21324
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
21325
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
21326
echo $ECHO_N "(cached) $ECHO_C" >&6
21328
ac_check_lib_save_LIBS=$LIBS
21329
LIBS="-lsvld $LIBS"
21330
cat >conftest.$ac_ext <<_ACEOF
21333
cat confdefs.h >>conftest.$ac_ext
21334
cat >>conftest.$ac_ext <<_ACEOF
21335
/* end confdefs.h. */
21337
/* Override any GCC internal prototype to avoid an error.
21338
Use char because int might match the return type of a GCC
21339
builtin and then its argument prototype would still apply. */
21352
rm -f conftest.$ac_objext conftest$ac_exeext
21353
if { (ac_try="$ac_link"
21354
case "(($ac_try" in
21355
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21356
*) ac_try_echo=$ac_try;;
21358
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21359
(eval "$ac_link") 2>conftest.er1
21361
grep -v '^ *+' conftest.er1 >conftest.err
21363
cat conftest.err >&5
21364
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365
(exit $ac_status); } && {
21366
test -z "$ac_c_werror_flag" ||
21367
test ! -s conftest.err
21368
} && test -s conftest$ac_exeext &&
21369
$as_test_x conftest$ac_exeext; then
21370
ac_cv_lib_svld_dlopen=yes
21372
echo "$as_me: failed program was:" >&5
21373
sed 's/^/| /' conftest.$ac_ext >&5
21375
ac_cv_lib_svld_dlopen=no
21378
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21379
conftest$ac_exeext conftest.$ac_ext
21380
LIBS=$ac_check_lib_save_LIBS
21382
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
21383
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
21384
if test $ac_cv_lib_svld_dlopen = yes; then
21385
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
21387
{ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
21388
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
21389
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
21390
echo $ECHO_N "(cached) $ECHO_C" >&6
21392
ac_check_lib_save_LIBS=$LIBS
21394
cat >conftest.$ac_ext <<_ACEOF
21397
cat confdefs.h >>conftest.$ac_ext
21398
cat >>conftest.$ac_ext <<_ACEOF
21399
/* end confdefs.h. */
21401
/* Override any GCC internal prototype to avoid an error.
21402
Use char because int might match the return type of a GCC
21403
builtin and then its argument prototype would still apply. */
21411
return dld_link ();
21416
rm -f conftest.$ac_objext conftest$ac_exeext
21417
if { (ac_try="$ac_link"
21418
case "(($ac_try" in
21419
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21420
*) ac_try_echo=$ac_try;;
21422
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21423
(eval "$ac_link") 2>conftest.er1
21425
grep -v '^ *+' conftest.er1 >conftest.err
21427
cat conftest.err >&5
21428
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21429
(exit $ac_status); } && {
21430
test -z "$ac_c_werror_flag" ||
21431
test ! -s conftest.err
21432
} && test -s conftest$ac_exeext &&
21433
$as_test_x conftest$ac_exeext; then
21434
ac_cv_lib_dld_dld_link=yes
21436
echo "$as_me: failed program was:" >&5
21437
sed 's/^/| /' conftest.$ac_ext >&5
21439
ac_cv_lib_dld_dld_link=no
21442
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21443
conftest$ac_exeext conftest.$ac_ext
21444
LIBS=$ac_check_lib_save_LIBS
21446
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
21447
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
21448
if test $ac_cv_lib_dld_dld_link = yes; then
21449
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
21470
if test "x$lt_cv_dlopen" != xno; then
21476
case $lt_cv_dlopen in
21478
save_CPPFLAGS="$CPPFLAGS"
21479
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
21481
save_LDFLAGS="$LDFLAGS"
21482
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
21485
LIBS="$lt_cv_dlopen_libs $LIBS"
21487
{ echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
21488
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
21489
if test "${lt_cv_dlopen_self+set}" = set; then
21490
echo $ECHO_N "(cached) $ECHO_C" >&6
21492
if test "$cross_compiling" = yes; then :
21493
lt_cv_dlopen_self=cross
21495
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21496
lt_status=$lt_dlunknown
21497
cat > conftest.$ac_ext <<EOF
21498
#line 21498 "configure"
21499
#include "confdefs.h"
21508
# define LT_DLGLOBAL RTLD_GLOBAL
21511
# define LT_DLGLOBAL DL_GLOBAL
21513
# define LT_DLGLOBAL 0
21517
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21518
find out it does not work in some platform. */
21519
#ifndef LT_DLLAZY_OR_NOW
21521
# define LT_DLLAZY_OR_NOW RTLD_LAZY
21524
# define LT_DLLAZY_OR_NOW DL_LAZY
21527
# define LT_DLLAZY_OR_NOW RTLD_NOW
21530
# define LT_DLLAZY_OR_NOW DL_NOW
21532
# define LT_DLLAZY_OR_NOW 0
21540
extern "C" void exit (int);
21543
void fnord() { int i=42;}
21546
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21547
int status = $lt_dlunknown;
21551
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21552
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21553
/* dlclose (self); */
21559
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21560
(eval $ac_link) 2>&5
21562
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21563
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21564
(./conftest; exit; ) 2>/dev/null
21566
case x$lt_status in
21567
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
21568
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
21569
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
21572
# compilation failed
21573
lt_cv_dlopen_self=no
21580
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
21581
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
21583
if test "x$lt_cv_dlopen_self" = xyes; then
21584
LDFLAGS="$LDFLAGS $link_static_flag"
21585
{ echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
21586
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
21587
if test "${lt_cv_dlopen_self_static+set}" = set; then
21588
echo $ECHO_N "(cached) $ECHO_C" >&6
21590
if test "$cross_compiling" = yes; then :
21591
lt_cv_dlopen_self_static=cross
21593
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21594
lt_status=$lt_dlunknown
21595
cat > conftest.$ac_ext <<EOF
21596
#line 21596 "configure"
21597
#include "confdefs.h"
21606
# define LT_DLGLOBAL RTLD_GLOBAL
21609
# define LT_DLGLOBAL DL_GLOBAL
21611
# define LT_DLGLOBAL 0
21615
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21616
find out it does not work in some platform. */
21617
#ifndef LT_DLLAZY_OR_NOW
21619
# define LT_DLLAZY_OR_NOW RTLD_LAZY
21622
# define LT_DLLAZY_OR_NOW DL_LAZY
21625
# define LT_DLLAZY_OR_NOW RTLD_NOW
21628
# define LT_DLLAZY_OR_NOW DL_NOW
21630
# define LT_DLLAZY_OR_NOW 0
21638
extern "C" void exit (int);
21641
void fnord() { int i=42;}
21644
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21645
int status = $lt_dlunknown;
21649
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21650
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21651
/* dlclose (self); */
21657
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21658
(eval $ac_link) 2>&5
21660
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21661
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21662
(./conftest; exit; ) 2>/dev/null
21664
case x$lt_status in
21665
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
21666
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
21667
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
21670
# compilation failed
21671
lt_cv_dlopen_self_static=no
21678
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
21679
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
21682
CPPFLAGS="$save_CPPFLAGS"
21683
LDFLAGS="$save_LDFLAGS"
21688
case $lt_cv_dlopen_self in
21689
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
21690
*) enable_dlopen_self=unknown ;;
21693
case $lt_cv_dlopen_self_static in
21694
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
21695
*) enable_dlopen_self_static=unknown ;;
21700
# The else clause should only fire when bootstrapping the
21701
# libtool distribution, otherwise you forgot to ship ltmain.sh
21702
# with your package, and you will get complaints that there are
21703
# no rules to generate ltmain.sh.
21704
if test -f "$ltmain"; then
21705
# See if we are running on zsh, and set the options which allow our commands through
21706
# without removal of \ escapes.
21707
if test -n "${ZSH_VERSION+set}" ; then
21708
setopt NO_GLOB_SUBST
21710
# Now quote all the things that may contain metacharacters while being
21711
# careful not to overquote the AC_SUBSTed values. We take copies of the
21712
# variables and quote the copies for generation of the libtool script.
21713
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
21714
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
21715
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
21716
deplibs_check_method reload_flag reload_cmds need_locks \
21717
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
21718
lt_cv_sys_global_symbol_to_c_name_address \
21719
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
21720
old_postinstall_cmds old_postuninstall_cmds \
21724
lt_prog_compiler_wl_GCJ \
21725
lt_prog_compiler_pic_GCJ \
21726
lt_prog_compiler_static_GCJ \
21727
lt_prog_compiler_no_builtin_flag_GCJ \
21728
export_dynamic_flag_spec_GCJ \
21729
thread_safe_flag_spec_GCJ \
21730
whole_archive_flag_spec_GCJ \
21731
enable_shared_with_static_runtimes_GCJ \
21732
old_archive_cmds_GCJ \
21733
old_archive_from_new_cmds_GCJ \
21734
predep_objects_GCJ \
21735
postdep_objects_GCJ \
21738
compiler_lib_search_path_GCJ \
21740
archive_expsym_cmds_GCJ \
21741
postinstall_cmds_GCJ \
21742
postuninstall_cmds_GCJ \
21743
old_archive_from_expsyms_cmds_GCJ \
21744
allow_undefined_flag_GCJ \
21745
no_undefined_flag_GCJ \
21746
export_symbols_cmds_GCJ \
21747
hardcode_libdir_flag_spec_GCJ \
21748
hardcode_libdir_flag_spec_ld_GCJ \
21749
hardcode_libdir_separator_GCJ \
21750
hardcode_automatic_GCJ \
21752
module_expsym_cmds_GCJ \
21753
lt_cv_prog_compiler_c_o_GCJ \
21754
exclude_expsyms_GCJ \
21755
include_expsyms_GCJ; do
21758
old_archive_cmds_GCJ | \
21759
old_archive_from_new_cmds_GCJ | \
21760
archive_cmds_GCJ | \
21761
archive_expsym_cmds_GCJ | \
21762
module_cmds_GCJ | \
21763
module_expsym_cmds_GCJ | \
21764
old_archive_from_expsyms_cmds_GCJ | \
21765
export_symbols_cmds_GCJ | \
21766
extract_expsyms_cmds | reload_cmds | finish_cmds | \
21767
postinstall_cmds | postuninstall_cmds | \
21768
old_postinstall_cmds | old_postuninstall_cmds | \
21769
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
21770
# Double-quote double-evaled strings.
21771
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21774
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21780
*'\$0 --fallback-echo"')
21781
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21787
cat <<__EOF__ >> "$cfgfile"
21788
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
21790
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21792
# Shell to use when invoking shell scripts.
21795
# Whether or not to build shared libraries.
21796
build_libtool_libs=$enable_shared
21798
# Whether or not to build static libraries.
21799
build_old_libs=$enable_static
21801
# Whether or not to add -lc for building shared libraries.
21802
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
21804
# Whether or not to disallow shared libs when runtime libs are static
21805
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
21807
# Whether or not to optimize for fast installation.
21808
fast_install=$enable_fast_install
21811
host_alias=$host_alias
21814
# An echo program that does not interpret backslashes.
21819
AR_FLAGS=$lt_AR_FLAGS
21824
# A language-specific compiler.
21825
CC=$lt_compiler_GCJ
21827
# Is the compiler the GNU C compiler?
21833
# The linker used to build libraries.
21836
# Whether we need hard or soft links.
21839
# A BSD-compatible nm program.
21842
# A symbol stripping program
21845
# Used to examine libraries when file_magic_cmd begins "file"
21846
MAGIC_CMD=$MAGIC_CMD
21848
# Used on cygwin: DLL creation program.
21851
# Used on cygwin: object dumper.
21854
# Used on cygwin: assembler.
21857
# The name of the directory that contains temporary libtool files.
21860
# How to create reloadable object files.
21861
reload_flag=$lt_reload_flag
21862
reload_cmds=$lt_reload_cmds
21864
# How to pass a linker flag through the compiler.
21865
wl=$lt_lt_prog_compiler_wl_GCJ
21867
# Object file suffix (normally "o").
21868
objext="$ac_objext"
21870
# Old archive suffix (normally "a").
21873
# Shared library suffix (normally ".so").
21876
# Executable file suffix (normally "").
21879
# Additional compiler flags for building library objects.
21880
pic_flag=$lt_lt_prog_compiler_pic_GCJ
21883
# What is the maximum length of a command?
21884
max_cmd_len=$lt_cv_sys_max_cmd_len
21886
# Does compiler simultaneously support -c and -o options?
21887
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
21889
# Must we lock files when doing compilation ?
21890
need_locks=$lt_need_locks
21892
# Do we need the lib prefix for modules?
21893
need_lib_prefix=$need_lib_prefix
21895
# Do we need a version for libraries?
21896
need_version=$need_version
21898
# Whether dlopen is supported.
21899
dlopen_support=$enable_dlopen
21901
# Whether dlopen of programs is supported.
21902
dlopen_self=$enable_dlopen_self
21904
# Whether dlopen of statically linked programs is supported.
21905
dlopen_self_static=$enable_dlopen_self_static
21907
# Compiler flag to prevent dynamic linking.
21908
link_static_flag=$lt_lt_prog_compiler_static_GCJ
21910
# Compiler flag to turn off builtin functions.
21911
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
21913
# Compiler flag to allow reflexive dlopens.
21914
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
21916
# Compiler flag to generate shared objects directly from archives.
21917
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
21919
# Compiler flag to generate thread-safe objects.
21920
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
21922
# Library versioning type.
21923
version_type=$version_type
21925
# Format of library name prefix.
21926
libname_spec=$lt_libname_spec
21928
# List of archive names. First name is the real one, the rest are links.
21929
# The last name is the one that the linker finds with -lNAME.
21930
library_names_spec=$lt_library_names_spec
21932
# The coded name of the library, if different from the real name.
21933
soname_spec=$lt_soname_spec
21935
# Commands used to build and install an old-style archive.
21937
old_archive_cmds=$lt_old_archive_cmds_GCJ
21938
old_postinstall_cmds=$lt_old_postinstall_cmds
21939
old_postuninstall_cmds=$lt_old_postuninstall_cmds
21941
# Create an old-style archive from a shared archive.
21942
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
21944
# Create a temporary old-style archive to link instead of a shared archive.
21945
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
21947
# Commands used to build and install a shared archive.
21948
archive_cmds=$lt_archive_cmds_GCJ
21949
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
21950
postinstall_cmds=$lt_postinstall_cmds
21951
postuninstall_cmds=$lt_postuninstall_cmds
21953
# Commands used to build a loadable module (assumed same as above if empty)
21954
module_cmds=$lt_module_cmds_GCJ
21955
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
21957
# Commands to strip libraries.
21958
old_striplib=$lt_old_striplib
21959
striplib=$lt_striplib
21961
# Dependencies to place before the objects being linked to create a
21963
predep_objects=$lt_predep_objects_GCJ
21965
# Dependencies to place after the objects being linked to create a
21967
postdep_objects=$lt_postdep_objects_GCJ
21969
# Dependencies to place before the objects being linked to create a
21971
predeps=$lt_predeps_GCJ
21973
# Dependencies to place after the objects being linked to create a
21975
postdeps=$lt_postdeps_GCJ
21977
# The library search path used internally by the compiler when linking
21978
# a shared library.
21979
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
21981
# Method to check whether dependent libraries are shared objects.
21982
deplibs_check_method=$lt_deplibs_check_method
21984
# Command to use when deplibs_check_method == file_magic.
21985
file_magic_cmd=$lt_file_magic_cmd
21987
# Flag that allows shared libraries with undefined symbols to be built.
21988
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
21990
# Flag that forces no undefined symbols.
21991
no_undefined_flag=$lt_no_undefined_flag_GCJ
21993
# Commands used to finish a libtool library installation in a directory.
21994
finish_cmds=$lt_finish_cmds
21996
# Same as above, but a single script fragment to be evaled but not shown.
21997
finish_eval=$lt_finish_eval
21999
# Take the output of nm and produce a listing of raw symbols and C names.
22000
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22002
# Transform the output of nm in a proper C declaration
22003
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22005
# Transform the output of nm in a C name address pair
22006
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22008
# This is the shared library runtime path variable.
22009
runpath_var=$runpath_var
22011
# This is the shared library path variable.
22012
shlibpath_var=$shlibpath_var
22014
# Is shlibpath searched before the hard-coded library search path?
22015
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22017
# How to hardcode a shared library path into an executable.
22018
hardcode_action=$hardcode_action_GCJ
22020
# Whether we should hardcode library paths into libraries.
22021
hardcode_into_libs=$hardcode_into_libs
22023
# Flag to hardcode \$libdir into a binary during linking.
22024
# This must work even if \$libdir does not exist.
22025
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
22027
# If ld is used when linking, flag to hardcode \$libdir into
22028
# a binary during linking. This must work even if \$libdir does
22030
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
22032
# Whether we need a single -rpath flag with a separated argument.
22033
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
22035
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22036
# resulting binary.
22037
hardcode_direct=$hardcode_direct_GCJ
22039
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22040
# resulting binary.
22041
hardcode_minus_L=$hardcode_minus_L_GCJ
22043
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22044
# the resulting binary.
22045
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
22047
# Set to yes if building a shared library automatically hardcodes DIR into the library
22048
# and all subsequent libraries and executables linked against it.
22049
hardcode_automatic=$hardcode_automatic_GCJ
22051
# Variables whose values should be saved in libtool wrapper scripts and
22052
# restored at relink time.
22053
variables_saved_for_relink="$variables_saved_for_relink"
22055
# Whether libtool must link a program against all its dependency libraries.
22056
link_all_deplibs=$link_all_deplibs_GCJ
22058
# Compile-time system search path for libraries
22059
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22061
# Run-time system search path for libraries
22062
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22064
# Fix the shell variable \$srcfile for the compiler.
22065
fix_srcfile_path="$fix_srcfile_path_GCJ"
22067
# Set to yes if exported symbols are required.
22068
always_export_symbols=$always_export_symbols_GCJ
22070
# The commands to list exported symbols.
22071
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
22073
# The commands to extract the exported symbol list from a shared archive.
22074
extract_expsyms_cmds=$lt_extract_expsyms_cmds
22076
# Symbols that should not be listed in the preloaded symbols.
22077
exclude_expsyms=$lt_exclude_expsyms_GCJ
22079
# Symbols that must always be exported.
22080
include_expsyms=$lt_include_expsyms_GCJ
22082
# ### END LIBTOOL TAG CONFIG: $tagname
22088
# If there is no Makefile yet, we rely on a make rule to execute
22089
# `config.status --recheck' to rerun these tests and create the
22090
# libtool script then.
22091
test -f Makefile && make "$ltmain"
22096
ac_cpp='$CPP $CPPFLAGS'
22097
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22098
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22099
ac_compiler_gnu=$ac_cv_c_compiler_gnu
22111
# Source file extension for RC test sources.
22114
# Object file extension for compiled RC test sources.
22118
# Code to be used in simple compile tests
22119
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
22121
# Code to be used in simple link tests
22122
lt_simple_link_test_code="$lt_simple_compile_test_code"
22124
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
22126
# If no C compiler was specified, use CC.
22129
# Allow CC to be a program name with arguments.
22133
# Allow CC to be a program name with arguments.
22138
lt_cv_prog_compiler_c_o_RC=yes
22140
# The else clause should only fire when bootstrapping the
22141
# libtool distribution, otherwise you forgot to ship ltmain.sh
22142
# with your package, and you will get complaints that there are
22143
# no rules to generate ltmain.sh.
22144
if test -f "$ltmain"; then
22145
# See if we are running on zsh, and set the options which allow our commands through
22146
# without removal of \ escapes.
22147
if test -n "${ZSH_VERSION+set}" ; then
22148
setopt NO_GLOB_SUBST
22150
# Now quote all the things that may contain metacharacters while being
22151
# careful not to overquote the AC_SUBSTed values. We take copies of the
22152
# variables and quote the copies for generation of the libtool script.
22153
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
22154
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22155
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22156
deplibs_check_method reload_flag reload_cmds need_locks \
22157
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22158
lt_cv_sys_global_symbol_to_c_name_address \
22159
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22160
old_postinstall_cmds old_postuninstall_cmds \
22164
lt_prog_compiler_wl_RC \
22165
lt_prog_compiler_pic_RC \
22166
lt_prog_compiler_static_RC \
22167
lt_prog_compiler_no_builtin_flag_RC \
22168
export_dynamic_flag_spec_RC \
22169
thread_safe_flag_spec_RC \
22170
whole_archive_flag_spec_RC \
22171
enable_shared_with_static_runtimes_RC \
22172
old_archive_cmds_RC \
22173
old_archive_from_new_cmds_RC \
22174
predep_objects_RC \
22175
postdep_objects_RC \
22178
compiler_lib_search_path_RC \
22180
archive_expsym_cmds_RC \
22181
postinstall_cmds_RC \
22182
postuninstall_cmds_RC \
22183
old_archive_from_expsyms_cmds_RC \
22184
allow_undefined_flag_RC \
22185
no_undefined_flag_RC \
22186
export_symbols_cmds_RC \
22187
hardcode_libdir_flag_spec_RC \
22188
hardcode_libdir_flag_spec_ld_RC \
22189
hardcode_libdir_separator_RC \
22190
hardcode_automatic_RC \
22192
module_expsym_cmds_RC \
22193
lt_cv_prog_compiler_c_o_RC \
22194
exclude_expsyms_RC \
22195
include_expsyms_RC; do
22198
old_archive_cmds_RC | \
22199
old_archive_from_new_cmds_RC | \
22200
archive_cmds_RC | \
22201
archive_expsym_cmds_RC | \
22203
module_expsym_cmds_RC | \
22204
old_archive_from_expsyms_cmds_RC | \
22205
export_symbols_cmds_RC | \
22206
extract_expsyms_cmds | reload_cmds | finish_cmds | \
22207
postinstall_cmds | postuninstall_cmds | \
22208
old_postinstall_cmds | old_postuninstall_cmds | \
22209
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22210
# Double-quote double-evaled strings.
22211
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22214
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22220
*'\$0 --fallback-echo"')
22221
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22227
cat <<__EOF__ >> "$cfgfile"
22228
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
22230
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22232
# Shell to use when invoking shell scripts.
22235
# Whether or not to build shared libraries.
22236
build_libtool_libs=$enable_shared
22238
# Whether or not to build static libraries.
22239
build_old_libs=$enable_static
22241
# Whether or not to add -lc for building shared libraries.
22242
build_libtool_need_lc=$archive_cmds_need_lc_RC
22244
# Whether or not to disallow shared libs when runtime libs are static
22245
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
22247
# Whether or not to optimize for fast installation.
22248
fast_install=$enable_fast_install
22251
host_alias=$host_alias
22254
# An echo program that does not interpret backslashes.
22259
AR_FLAGS=$lt_AR_FLAGS
22264
# A language-specific compiler.
22267
# Is the compiler the GNU C compiler?
22273
# The linker used to build libraries.
22276
# Whether we need hard or soft links.
22279
# A BSD-compatible nm program.
22282
# A symbol stripping program
22285
# Used to examine libraries when file_magic_cmd begins "file"
22286
MAGIC_CMD=$MAGIC_CMD
22288
# Used on cygwin: DLL creation program.
22291
# Used on cygwin: object dumper.
22294
# Used on cygwin: assembler.
22297
# The name of the directory that contains temporary libtool files.
22300
# How to create reloadable object files.
22301
reload_flag=$lt_reload_flag
22302
reload_cmds=$lt_reload_cmds
22304
# How to pass a linker flag through the compiler.
22305
wl=$lt_lt_prog_compiler_wl_RC
22307
# Object file suffix (normally "o").
22308
objext="$ac_objext"
22310
# Old archive suffix (normally "a").
22313
# Shared library suffix (normally ".so").
22316
# Executable file suffix (normally "").
22319
# Additional compiler flags for building library objects.
22320
pic_flag=$lt_lt_prog_compiler_pic_RC
22323
# What is the maximum length of a command?
22324
max_cmd_len=$lt_cv_sys_max_cmd_len
22326
# Does compiler simultaneously support -c and -o options?
22327
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
22329
# Must we lock files when doing compilation ?
22330
need_locks=$lt_need_locks
22332
# Do we need the lib prefix for modules?
22333
need_lib_prefix=$need_lib_prefix
22335
# Do we need a version for libraries?
22336
need_version=$need_version
22338
# Whether dlopen is supported.
22339
dlopen_support=$enable_dlopen
22341
# Whether dlopen of programs is supported.
22342
dlopen_self=$enable_dlopen_self
22344
# Whether dlopen of statically linked programs is supported.
22345
dlopen_self_static=$enable_dlopen_self_static
22347
# Compiler flag to prevent dynamic linking.
22348
link_static_flag=$lt_lt_prog_compiler_static_RC
22350
# Compiler flag to turn off builtin functions.
22351
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
22353
# Compiler flag to allow reflexive dlopens.
22354
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
22356
# Compiler flag to generate shared objects directly from archives.
22357
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
22359
# Compiler flag to generate thread-safe objects.
22360
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
22362
# Library versioning type.
22363
version_type=$version_type
22365
# Format of library name prefix.
22366
libname_spec=$lt_libname_spec
22368
# List of archive names. First name is the real one, the rest are links.
22369
# The last name is the one that the linker finds with -lNAME.
22370
library_names_spec=$lt_library_names_spec
22372
# The coded name of the library, if different from the real name.
22373
soname_spec=$lt_soname_spec
22375
# Commands used to build and install an old-style archive.
22377
old_archive_cmds=$lt_old_archive_cmds_RC
22378
old_postinstall_cmds=$lt_old_postinstall_cmds
22379
old_postuninstall_cmds=$lt_old_postuninstall_cmds
22381
# Create an old-style archive from a shared archive.
22382
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
22384
# Create a temporary old-style archive to link instead of a shared archive.
22385
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
22387
# Commands used to build and install a shared archive.
22388
archive_cmds=$lt_archive_cmds_RC
22389
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
22390
postinstall_cmds=$lt_postinstall_cmds
22391
postuninstall_cmds=$lt_postuninstall_cmds
22393
# Commands used to build a loadable module (assumed same as above if empty)
22394
module_cmds=$lt_module_cmds_RC
22395
module_expsym_cmds=$lt_module_expsym_cmds_RC
22397
# Commands to strip libraries.
22398
old_striplib=$lt_old_striplib
22399
striplib=$lt_striplib
22401
# Dependencies to place before the objects being linked to create a
22403
predep_objects=$lt_predep_objects_RC
22405
# Dependencies to place after the objects being linked to create a
22407
postdep_objects=$lt_postdep_objects_RC
22409
# Dependencies to place before the objects being linked to create a
22411
predeps=$lt_predeps_RC
22413
# Dependencies to place after the objects being linked to create a
22415
postdeps=$lt_postdeps_RC
22417
# The library search path used internally by the compiler when linking
22418
# a shared library.
22419
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
22421
# Method to check whether dependent libraries are shared objects.
22422
deplibs_check_method=$lt_deplibs_check_method
22424
# Command to use when deplibs_check_method == file_magic.
22425
file_magic_cmd=$lt_file_magic_cmd
22427
# Flag that allows shared libraries with undefined symbols to be built.
22428
allow_undefined_flag=$lt_allow_undefined_flag_RC
22430
# Flag that forces no undefined symbols.
22431
no_undefined_flag=$lt_no_undefined_flag_RC
22433
# Commands used to finish a libtool library installation in a directory.
22434
finish_cmds=$lt_finish_cmds
22436
# Same as above, but a single script fragment to be evaled but not shown.
22437
finish_eval=$lt_finish_eval
22439
# Take the output of nm and produce a listing of raw symbols and C names.
22440
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22442
# Transform the output of nm in a proper C declaration
22443
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22445
# Transform the output of nm in a C name address pair
22446
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22448
# This is the shared library runtime path variable.
22449
runpath_var=$runpath_var
22451
# This is the shared library path variable.
22452
shlibpath_var=$shlibpath_var
22454
# Is shlibpath searched before the hard-coded library search path?
22455
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22457
# How to hardcode a shared library path into an executable.
22458
hardcode_action=$hardcode_action_RC
22460
# Whether we should hardcode library paths into libraries.
22461
hardcode_into_libs=$hardcode_into_libs
22463
# Flag to hardcode \$libdir into a binary during linking.
22464
# This must work even if \$libdir does not exist.
22465
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
22467
# If ld is used when linking, flag to hardcode \$libdir into
22468
# a binary during linking. This must work even if \$libdir does
22470
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
22472
# Whether we need a single -rpath flag with a separated argument.
22473
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
22475
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22476
# resulting binary.
22477
hardcode_direct=$hardcode_direct_RC
22479
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22480
# resulting binary.
22481
hardcode_minus_L=$hardcode_minus_L_RC
22483
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22484
# the resulting binary.
22485
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
22487
# Set to yes if building a shared library automatically hardcodes DIR into the library
22488
# and all subsequent libraries and executables linked against it.
22489
hardcode_automatic=$hardcode_automatic_RC
22491
# Variables whose values should be saved in libtool wrapper scripts and
22492
# restored at relink time.
22493
variables_saved_for_relink="$variables_saved_for_relink"
22495
# Whether libtool must link a program against all its dependency libraries.
22496
link_all_deplibs=$link_all_deplibs_RC
22498
# Compile-time system search path for libraries
22499
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22501
# Run-time system search path for libraries
22502
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22504
# Fix the shell variable \$srcfile for the compiler.
22505
fix_srcfile_path="$fix_srcfile_path_RC"
22507
# Set to yes if exported symbols are required.
22508
always_export_symbols=$always_export_symbols_RC
22510
# The commands to list exported symbols.
22511
export_symbols_cmds=$lt_export_symbols_cmds_RC
22513
# The commands to extract the exported symbol list from a shared archive.
22514
extract_expsyms_cmds=$lt_extract_expsyms_cmds
22516
# Symbols that should not be listed in the preloaded symbols.
22517
exclude_expsyms=$lt_exclude_expsyms_RC
22519
# Symbols that must always be exported.
22520
include_expsyms=$lt_include_expsyms_RC
22522
# ### END LIBTOOL TAG CONFIG: $tagname
22528
# If there is no Makefile yet, we rely on a make rule to execute
22529
# `config.status --recheck' to rerun these tests and create the
22530
# libtool script then.
22531
test -f Makefile && make "$ltmain"
22536
ac_cpp='$CPP $CPPFLAGS'
22537
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22538
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22539
ac_compiler_gnu=$ac_cv_c_compiler_gnu
22546
{ { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
22547
echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
22548
{ (exit 1); exit 1; }; }
22552
# Append the new tag name to the list of available tags.
22553
if test -n "$tagname" ; then
22554
available_tags="$available_tags $tagname"
22560
# Now substitute the updated list of available tags.
22561
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
22562
mv "${ofile}T" "$ofile"
22566
{ { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
22567
echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
22568
{ (exit 1); exit 1; }; }
22574
# This can be used to rebuild libtool when needed
22575
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
22577
# Always use our own libtool.
22578
LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent'
22580
# Prevent multiple expansion
22615
LIBTOOL_SHELL="/bin/sh ./libtool"
22616
# LIBTOOL="$LIBTOOL --silent"
22617
KDE_PLUGIN="-avoid-version -module -no-undefined \$(KDE_NO_UNDEFINED) \$(KDE_RPATH) \$(KDE_MT_LDFLAGS)"
22620
# This hack ensures that libtool creates shared libs for kunittest plugins. By default check_LTLIBRARIES makes static libs.
22621
KDE_CHECK_PLUGIN="\$(KDE_PLUGIN) -rpath \$(libdir)"
22624
# we patch configure quite some so we better keep that consistent for incremental runs
22625
AUTOCONF='$(SHELL) $(top_srcdir)/admin/cvs.sh configure || touch configure'
22631
# Extract the first word of "msgfmt", so it can be a program name with args.
22632
set dummy msgfmt; ac_word=$2
22633
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22634
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22635
if test "${ac_cv_path_MSGFMT+set}" = set; then
22636
echo $ECHO_N "(cached) $ECHO_C" >&6
22640
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
22643
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
22644
for ac_dir in $PATH; do
22645
test -z "$ac_dir" && ac_dir=.
22646
if test -f $ac_dir/$ac_word; then
22647
if test -n "`$ac_dir/$ac_word --version 2>&1 | grep 'GNU gettext'`"; then
22648
ac_cv_path_MSGFMT="$ac_dir/$ac_word"
22654
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
22658
MSGFMT="$ac_cv_path_MSGFMT"
22659
if test -n "$MSGFMT"; then
22660
{ echo "$as_me:$LINENO: result: $MSGFMT" >&5
22661
echo "${ECHO_T}$MSGFMT" >&6; }
22663
{ echo "$as_me:$LINENO: result: no" >&5
22664
echo "${ECHO_T}no" >&6; }
22667
# Extract the first word of "gmsgfmt", so it can be a program name with args.
22668
set dummy gmsgfmt; ac_word=$2
22669
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22670
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22671
if test "${ac_cv_path_GMSGFMT+set}" = set; then
22672
echo $ECHO_N "(cached) $ECHO_C" >&6
22676
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
22679
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22680
for as_dir in $PATH
22683
test -z "$as_dir" && as_dir=.
22684
for ac_exec_ext in '' $ac_executable_extensions; do
22685
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22686
ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
22687
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22694
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
22698
GMSGFMT=$ac_cv_path_GMSGFMT
22699
if test -n "$GMSGFMT"; then
22700
{ echo "$as_me:$LINENO: result: $GMSGFMT" >&5
22701
echo "${ECHO_T}$GMSGFMT" >&6; }
22703
{ echo "$as_me:$LINENO: result: no" >&5
22704
echo "${ECHO_T}no" >&6; }
22709
if test -z "`$GMSGFMT --version 2>&1 | grep 'GNU gettext'`"; then
22710
{ echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
22711
echo "${ECHO_T}found msgfmt program is not GNU msgfmt; ignore it" >&6; }
22718
# Extract the first word of "xgettext", so it can be a program name with args.
22719
set dummy xgettext; ac_word=$2
22720
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22721
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22722
if test "${ac_cv_path_XGETTEXT+set}" = set; then
22723
echo $ECHO_N "(cached) $ECHO_C" >&6
22725
case "$XGETTEXT" in
22727
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
22730
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
22731
for ac_dir in $PATH; do
22732
test -z "$ac_dir" && ac_dir=.
22733
if test -f $ac_dir/$ac_word; then
22734
if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
22735
ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
22741
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
22745
XGETTEXT="$ac_cv_path_XGETTEXT"
22746
if test -n "$XGETTEXT"; then
22747
{ echo "$as_me:$LINENO: result: $XGETTEXT" >&5
22748
echo "${ECHO_T}$XGETTEXT" >&6; }
22750
{ echo "$as_me:$LINENO: result: no" >&5
22751
echo "${ECHO_T}no" >&6; }
22755
if test "$XGETTEXT" != ":"; then
22756
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
22759
{ echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
22760
echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6; }
22769
if test -z "3.0.0"; then
22770
# Current default Qt version: 3.3
22774
kde_qtsubver=`echo "3.0.0" | sed -e 's#[0-9][0-9]*\.\([0-9][0-9]*\).*#\1#'`
22775
# following is the check if subversion isnt found in passed argument
22776
if test "$kde_qtsubver" = "3.0.0"; then
22779
kde_qtver=`echo "3.0.0" | sed -e 's#^\([0-9][0-9]*\)\..*#\1#'`
22780
if test "$kde_qtver" = "1"; then
22785
if test -z ""; then
22786
if test "$kde_qtver" = "2"; then
22787
if test $kde_qtsubver -gt 0; then
22788
kde_qt_minversion=">= Qt 2.2.2"
22790
kde_qt_minversion=">= Qt 2.0.2"
22793
if test "$kde_qtver" = "3"; then
22794
if test $kde_qtsubver -gt 0; then
22795
if test $kde_qtsubver -gt 1; then
22796
if test $kde_qtsubver -gt 2; then
22797
kde_qt_minversion=">= Qt 3.3 and < 4.0"
22799
kde_qt_minversion=">= Qt 3.2 and < 4.0"
22802
kde_qt_minversion=">= Qt 3.1 (20021021) and < 4.0"
22805
kde_qt_minversion=">= Qt 3.0 and < 4.0"
22808
if test "$kde_qtver" = "1"; then
22809
kde_qt_minversion=">= 1.42 and < 2.0"
22812
kde_qt_minversion=""
22815
if test -z ""; then
22816
if test $kde_qtver = 3; then
22817
if test $kde_qtsubver -gt 0; then
22818
kde_qt_verstring="QT_VERSION >= 0x03@VER@00 && QT_VERSION < 0x040000"
22819
qtsubver=`echo "00$kde_qtsubver" | sed -e 's,.*\(..\)$,\1,'`
22820
kde_qt_verstring=`echo $kde_qt_verstring | sed -e "s,@VER@,$qtsubver,"`
22822
kde_qt_verstring="QT_VERSION >= 300 && QT_VERSION < 0x040000"
22825
if test $kde_qtver = 2; then
22826
if test $kde_qtsubver -gt 0; then
22827
kde_qt_verstring="QT_VERSION >= 222"
22829
kde_qt_verstring="QT_VERSION >= 200"
22832
if test $kde_qtver = 1; then
22833
kde_qt_verstring="QT_VERSION >= 142 && QT_VERSION < 200"
22836
kde_qt_verstring=""
22839
if test $kde_qtver = 4; then
22840
kde_qt_dirs="$QTDIR /usr/lib/qt4 /usr/lib/qt /usr/share/qt4"
22842
if test $kde_qtver = 3; then
22843
kde_qt_dirs="$QTDIR /usr/lib/qt3 /usr/lib/qt /usr/share/qt3"
22845
if test $kde_qtver = 2; then
22846
kde_qt_dirs="$QTDIR /usr/lib/qt2 /usr/lib/qt"
22848
if test $kde_qtver = 1; then
22849
kde_qt_dirs="$QTDIR /usr/lib/qt"
22855
ac_cpp='$CXXCPP $CPPFLAGS'
22856
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22857
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22858
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22860
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22863
ac_save_CXXFLAGS="$CXXFLAGS"
22864
CXXFLAGS="`echo $CXXFLAGS | sed s/-fno-exceptions//`"
22866
{ echo "$as_me:$LINENO: checking if C++ programs can be compiled" >&5
22867
echo $ECHO_N "checking if C++ programs can be compiled... $ECHO_C" >&6; }
22868
if test "${kde_cv_stl_works+set}" = set; then
22869
echo $ECHO_N "(cached) $ECHO_C" >&6
22872
cat >conftest.$ac_ext <<_ACEOF
22875
cat confdefs.h >>conftest.$ac_ext
22876
cat >>conftest.$ac_ext <<_ACEOF
22877
/* end confdefs.h. */
22880
using namespace std;
22886
string astring="Hallo Welt.";
22887
astring.erase(0, 6); // now astring is "Welt"
22894
rm -f conftest.$ac_objext
22895
if { (ac_try="$ac_compile"
22896
case "(($ac_try" in
22897
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22898
*) ac_try_echo=$ac_try;;
22900
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22901
(eval "$ac_compile") 2>conftest.er1
22903
grep -v '^ *+' conftest.er1 >conftest.err
22905
cat conftest.err >&5
22906
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22907
(exit $ac_status); } && {
22908
test -z "$ac_cxx_werror_flag" ||
22909
test ! -s conftest.err
22910
} && test -s conftest.$ac_objext; then
22911
kde_cv_stl_works=yes
22913
echo "$as_me: failed program was:" >&5
22914
sed 's/^/| /' conftest.$ac_ext >&5
22916
kde_cv_stl_works=no
22919
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22924
{ echo "$as_me:$LINENO: result: $kde_cv_stl_works" >&5
22925
echo "${ECHO_T}$kde_cv_stl_works" >&6; }
22927
if test "$kde_cv_stl_works" = "yes"; then
22930
cat >>confdefs.h <<_ACEOF
22931
#define HAVE_SGI_STL 1
22935
{ { echo "$as_me:$LINENO: error: Your Installation isn't able to compile simple C++ programs.
22936
Check config.log for details - if you're using a Linux distribution you might miss
22937
a package named similar to libstdc++-dev." >&5
22938
echo "$as_me: error: Your Installation isn't able to compile simple C++ programs.
22939
Check config.log for details - if you're using a Linux distribution you might miss
22940
a package named similar to libstdc++-dev." >&2;}
22941
{ (exit 1); exit 1; }; }
22944
CXXFLAGS="$ac_save_CXXFLAGS"
22946
ac_cpp='$CPP $CPPFLAGS'
22947
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22948
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22949
ac_compiler_gnu=$ac_cv_c_compiler_gnu
22954
{ echo "$as_me:$LINENO: checking for strlcat" >&5
22955
echo $ECHO_N "checking for strlcat... $ECHO_C" >&6; }
22956
if test "${kde_cv_func_strlcat+set}" = set; then
22957
echo $ECHO_N "(cached) $ECHO_C" >&6
22962
ac_cpp='$CXXCPP $CPPFLAGS'
22963
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22964
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22965
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22967
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
22970
save_CXXFLAGS="$CXXFLAGS"
22971
kde_safe_LIBS="$LIBS"
22972
LIBS="$LIBS $X_EXTRA_LIBS"
22973
if test "$GXX" = "yes"; then
22974
CXXFLAGS="$CXXFLAGS -pedantic-errors"
22976
cat >conftest.$ac_ext <<_ACEOF
22979
cat confdefs.h >>conftest.$ac_ext
22980
cat >>conftest.$ac_ext <<_ACEOF
22981
/* end confdefs.h. */
22984
#include <string.h>
22993
strlcat(buf, "KDE function test", sizeof(buf));
23000
rm -f conftest.$ac_objext
23001
if { (ac_try="$ac_compile"
23002
case "(($ac_try" in
23003
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23004
*) ac_try_echo=$ac_try;;
23006
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23007
(eval "$ac_compile") 2>conftest.er1
23009
grep -v '^ *+' conftest.er1 >conftest.err
23011
cat conftest.err >&5
23012
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23013
(exit $ac_status); } && {
23014
test -z "$ac_cxx_werror_flag" ||
23015
test ! -s conftest.err
23016
} && test -s conftest.$ac_objext; then
23017
kde_cv_func_strlcat=yes
23019
echo "$as_me: failed program was:" >&5
23020
sed 's/^/| /' conftest.$ac_ext >&5
23022
kde_cv_func_strlcat=no
23025
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23026
CXXFLAGS="$save_CXXFLAGS"
23027
LIBS="$kde_safe_LIBS"
23029
ac_cpp='$CPP $CPPFLAGS'
23030
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23031
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23032
ac_compiler_gnu=$ac_cv_c_compiler_gnu
23038
{ echo "$as_me:$LINENO: result: $kde_cv_func_strlcat" >&5
23039
echo "${ECHO_T}$kde_cv_func_strlcat" >&6; }
23041
{ echo "$as_me:$LINENO: checking if strlcat needs custom prototype" >&5
23042
echo $ECHO_N "checking if strlcat needs custom prototype... $ECHO_C" >&6; }
23043
if test "${kde_cv_proto_strlcat+set}" = set; then
23044
echo $ECHO_N "(cached) $ECHO_C" >&6
23047
if test "x$kde_cv_func_strlcat" = xyes; then
23048
kde_cv_proto_strlcat=no
23051
setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat)
23052
kde_cv_proto_strlcat="yes - in libkdefakes"
23055
kde_cv_proto_strlcat=unknown
23060
if test "x$kde_cv_proto_strlcat" = xunknown; then
23064
ac_cpp='$CXXCPP $CPPFLAGS'
23065
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23066
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23067
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23069
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23072
kde_safe_libs=$LIBS
23073
LIBS="$LIBS $X_EXTRA_LIBS"
23074
cat >conftest.$ac_ext <<_ACEOF
23077
cat confdefs.h >>conftest.$ac_ext
23078
cat >>conftest.$ac_ext <<_ACEOF
23079
/* end confdefs.h. */
23082
#include <string.h>
23085
extern "C" unsigned long strlcat(char*, const char*, unsigned long);
23093
strlcat(buf, "KDE function test", sizeof(buf));
23100
rm -f conftest.$ac_objext conftest$ac_exeext
23101
if { (ac_try="$ac_link"
23102
case "(($ac_try" in
23103
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23104
*) ac_try_echo=$ac_try;;
23106
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23107
(eval "$ac_link") 2>conftest.er1
23109
grep -v '^ *+' conftest.er1 >conftest.err
23111
cat conftest.err >&5
23112
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23113
(exit $ac_status); } && {
23114
test -z "$ac_cxx_werror_flag" ||
23115
test ! -s conftest.err
23116
} && test -s conftest$ac_exeext &&
23117
$as_test_x conftest$ac_exeext; then
23118
kde_cv_func_strlcat=yes
23119
kde_cv_proto_strlcat=yes
23121
echo "$as_me: failed program was:" >&5
23122
sed 's/^/| /' conftest.$ac_ext >&5
23124
kde_cv_proto_strlcat="strlcat unavailable"
23128
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23129
conftest$ac_exeext conftest.$ac_ext
23130
LIBS=$kde_safe_libs
23132
ac_cpp='$CPP $CPPFLAGS'
23133
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23134
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23135
ac_compiler_gnu=$ac_cv_c_compiler_gnu
23141
{ echo "$as_me:$LINENO: result: $kde_cv_proto_strlcat" >&5
23142
echo "${ECHO_T}$kde_cv_proto_strlcat" >&6; }
23144
if test "x$kde_cv_func_strlcat" = xyes; then
23146
cat >>confdefs.h <<\_ACEOF
23147
#define HAVE_STRLCAT 1
23152
if test "x$kde_cv_proto_strlcat" = xno; then
23154
cat >>confdefs.h <<\_ACEOF
23155
#define HAVE_STRLCAT_PROTO 1
23166
{ echo "$as_me:$LINENO: checking for strlcpy" >&5
23167
echo $ECHO_N "checking for strlcpy... $ECHO_C" >&6; }
23168
if test "${kde_cv_func_strlcpy+set}" = set; then
23169
echo $ECHO_N "(cached) $ECHO_C" >&6
23174
ac_cpp='$CXXCPP $CPPFLAGS'
23175
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23176
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23177
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23179
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23182
save_CXXFLAGS="$CXXFLAGS"
23183
kde_safe_LIBS="$LIBS"
23184
LIBS="$LIBS $X_EXTRA_LIBS"
23185
if test "$GXX" = "yes"; then
23186
CXXFLAGS="$CXXFLAGS -pedantic-errors"
23188
cat >conftest.$ac_ext <<_ACEOF
23191
cat confdefs.h >>conftest.$ac_ext
23192
cat >>conftest.$ac_ext <<_ACEOF
23193
/* end confdefs.h. */
23196
#include <string.h>
23204
strlcpy(buf, "KDE function test", sizeof(buf));
23211
rm -f conftest.$ac_objext
23212
if { (ac_try="$ac_compile"
23213
case "(($ac_try" in
23214
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23215
*) ac_try_echo=$ac_try;;
23217
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23218
(eval "$ac_compile") 2>conftest.er1
23220
grep -v '^ *+' conftest.er1 >conftest.err
23222
cat conftest.err >&5
23223
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224
(exit $ac_status); } && {
23225
test -z "$ac_cxx_werror_flag" ||
23226
test ! -s conftest.err
23227
} && test -s conftest.$ac_objext; then
23228
kde_cv_func_strlcpy=yes
23230
echo "$as_me: failed program was:" >&5
23231
sed 's/^/| /' conftest.$ac_ext >&5
23233
kde_cv_func_strlcpy=no
23236
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23237
CXXFLAGS="$save_CXXFLAGS"
23238
LIBS="$kde_safe_LIBS"
23240
ac_cpp='$CPP $CPPFLAGS'
23241
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23242
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23243
ac_compiler_gnu=$ac_cv_c_compiler_gnu
23249
{ echo "$as_me:$LINENO: result: $kde_cv_func_strlcpy" >&5
23250
echo "${ECHO_T}$kde_cv_func_strlcpy" >&6; }
23252
{ echo "$as_me:$LINENO: checking if strlcpy needs custom prototype" >&5
23253
echo $ECHO_N "checking if strlcpy needs custom prototype... $ECHO_C" >&6; }
23254
if test "${kde_cv_proto_strlcpy+set}" = set; then
23255
echo $ECHO_N "(cached) $ECHO_C" >&6
23258
if test "x$kde_cv_func_strlcpy" = xyes; then
23259
kde_cv_proto_strlcpy=no
23262
setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat)
23263
kde_cv_proto_strlcpy="yes - in libkdefakes"
23266
kde_cv_proto_strlcpy=unknown
23271
if test "x$kde_cv_proto_strlcpy" = xunknown; then
23275
ac_cpp='$CXXCPP $CPPFLAGS'
23276
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23277
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23278
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23280
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23283
kde_safe_libs=$LIBS
23284
LIBS="$LIBS $X_EXTRA_LIBS"
23285
cat >conftest.$ac_ext <<_ACEOF
23288
cat confdefs.h >>conftest.$ac_ext
23289
cat >>conftest.$ac_ext <<_ACEOF
23290
/* end confdefs.h. */
23293
#include <string.h>
23296
extern "C" unsigned long strlcpy(char*, const char*, unsigned long);
23303
strlcpy(buf, "KDE function test", sizeof(buf));
23310
rm -f conftest.$ac_objext conftest$ac_exeext
23311
if { (ac_try="$ac_link"
23312
case "(($ac_try" in
23313
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23314
*) ac_try_echo=$ac_try;;
23316
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23317
(eval "$ac_link") 2>conftest.er1
23319
grep -v '^ *+' conftest.er1 >conftest.err
23321
cat conftest.err >&5
23322
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23323
(exit $ac_status); } && {
23324
test -z "$ac_cxx_werror_flag" ||
23325
test ! -s conftest.err
23326
} && test -s conftest$ac_exeext &&
23327
$as_test_x conftest$ac_exeext; then
23328
kde_cv_func_strlcpy=yes
23329
kde_cv_proto_strlcpy=yes
23331
echo "$as_me: failed program was:" >&5
23332
sed 's/^/| /' conftest.$ac_ext >&5
23334
kde_cv_proto_strlcpy="strlcpy unavailable"
23338
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23339
conftest$ac_exeext conftest.$ac_ext
23340
LIBS=$kde_safe_libs
23342
ac_cpp='$CPP $CPPFLAGS'
23343
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23344
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23345
ac_compiler_gnu=$ac_cv_c_compiler_gnu
23351
{ echo "$as_me:$LINENO: result: $kde_cv_proto_strlcpy" >&5
23352
echo "${ECHO_T}$kde_cv_proto_strlcpy" >&6; }
23354
if test "x$kde_cv_func_strlcpy" = xyes; then
23356
cat >>confdefs.h <<\_ACEOF
23357
#define HAVE_STRLCPY 1
23362
if test "x$kde_cv_proto_strlcpy" = xno; then
23364
cat >>confdefs.h <<\_ACEOF
23365
#define HAVE_STRLCPY_PROTO 1
23375
{ echo "$as_me:$LINENO: checking for main in -lutil" >&5
23376
echo $ECHO_N "checking for main in -lutil... $ECHO_C" >&6; }
23377
if test "${ac_cv_lib_util_main+set}" = set; then
23378
echo $ECHO_N "(cached) $ECHO_C" >&6
23380
ac_check_lib_save_LIBS=$LIBS
23381
LIBS="-lutil $LIBS"
23382
cat >conftest.$ac_ext <<_ACEOF
23385
cat confdefs.h >>conftest.$ac_ext
23386
cat >>conftest.$ac_ext <<_ACEOF
23387
/* end confdefs.h. */
23398
rm -f conftest.$ac_objext conftest$ac_exeext
23399
if { (ac_try="$ac_link"
23400
case "(($ac_try" in
23401
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23402
*) ac_try_echo=$ac_try;;
23404
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23405
(eval "$ac_link") 2>conftest.er1
23407
grep -v '^ *+' conftest.er1 >conftest.err
23409
cat conftest.err >&5
23410
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23411
(exit $ac_status); } && {
23412
test -z "$ac_c_werror_flag" ||
23413
test ! -s conftest.err
23414
} && test -s conftest$ac_exeext &&
23415
$as_test_x conftest$ac_exeext; then
23416
ac_cv_lib_util_main=yes
23418
echo "$as_me: failed program was:" >&5
23419
sed 's/^/| /' conftest.$ac_ext >&5
23421
ac_cv_lib_util_main=no
23424
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23425
conftest$ac_exeext conftest.$ac_ext
23426
LIBS=$ac_check_lib_save_LIBS
23428
{ echo "$as_me:$LINENO: result: $ac_cv_lib_util_main" >&5
23429
echo "${ECHO_T}$ac_cv_lib_util_main" >&6; }
23430
if test $ac_cv_lib_util_main = yes; then
23434
{ echo "$as_me:$LINENO: checking for main in -lcompat" >&5
23435
echo $ECHO_N "checking for main in -lcompat... $ECHO_C" >&6; }
23436
if test "${ac_cv_lib_compat_main+set}" = set; then
23437
echo $ECHO_N "(cached) $ECHO_C" >&6
23439
ac_check_lib_save_LIBS=$LIBS
23440
LIBS="-lcompat $LIBS"
23441
cat >conftest.$ac_ext <<_ACEOF
23444
cat confdefs.h >>conftest.$ac_ext
23445
cat >>conftest.$ac_ext <<_ACEOF
23446
/* end confdefs.h. */
23457
rm -f conftest.$ac_objext conftest$ac_exeext
23458
if { (ac_try="$ac_link"
23459
case "(($ac_try" in
23460
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23461
*) ac_try_echo=$ac_try;;
23463
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23464
(eval "$ac_link") 2>conftest.er1
23466
grep -v '^ *+' conftest.er1 >conftest.err
23468
cat conftest.err >&5
23469
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23470
(exit $ac_status); } && {
23471
test -z "$ac_c_werror_flag" ||
23472
test ! -s conftest.err
23473
} && test -s conftest$ac_exeext &&
23474
$as_test_x conftest$ac_exeext; then
23475
ac_cv_lib_compat_main=yes
23477
echo "$as_me: failed program was:" >&5
23478
sed 's/^/| /' conftest.$ac_ext >&5
23480
ac_cv_lib_compat_main=no
23483
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23484
conftest$ac_exeext conftest.$ac_ext
23485
LIBS=$ac_check_lib_save_LIBS
23487
{ echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
23488
echo "${ECHO_T}$ac_cv_lib_compat_main" >&6; }
23489
if test $ac_cv_lib_compat_main = yes; then
23490
LIBCOMPAT="-lcompat"
23494
{ echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
23495
echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
23496
if test "${ac_cv_lib_crypt_crypt+set}" = set; then
23497
echo $ECHO_N "(cached) $ECHO_C" >&6
23499
ac_check_lib_save_LIBS=$LIBS
23500
LIBS="-lcrypt $LIBS"
23501
cat >conftest.$ac_ext <<_ACEOF
23504
cat confdefs.h >>conftest.$ac_ext
23505
cat >>conftest.$ac_ext <<_ACEOF
23506
/* end confdefs.h. */
23508
/* Override any GCC internal prototype to avoid an error.
23509
Use char because int might match the return type of a GCC
23510
builtin and then its argument prototype would still apply. */
23523
rm -f conftest.$ac_objext conftest$ac_exeext
23524
if { (ac_try="$ac_link"
23525
case "(($ac_try" in
23526
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23527
*) ac_try_echo=$ac_try;;
23529
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23530
(eval "$ac_link") 2>conftest.er1
23532
grep -v '^ *+' conftest.er1 >conftest.err
23534
cat conftest.err >&5
23535
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23536
(exit $ac_status); } && {
23537
test -z "$ac_c_werror_flag" ||
23538
test ! -s conftest.err
23539
} && test -s conftest$ac_exeext &&
23540
$as_test_x conftest$ac_exeext; then
23541
ac_cv_lib_crypt_crypt=yes
23543
echo "$as_me: failed program was:" >&5
23544
sed 's/^/| /' conftest.$ac_ext >&5
23546
ac_cv_lib_crypt_crypt=no
23549
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23550
conftest$ac_exeext conftest.$ac_ext
23551
LIBS=$ac_check_lib_save_LIBS
23553
{ echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
23554
echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
23555
if test $ac_cv_lib_crypt_crypt = yes; then
23556
LIBCRYPT="-lcrypt"; kde_have_crypt=yes
23558
{ echo "$as_me:$LINENO: checking for crypt in -lc" >&5
23559
echo $ECHO_N "checking for crypt in -lc... $ECHO_C" >&6; }
23560
if test "${ac_cv_lib_c_crypt+set}" = set; then
23561
echo $ECHO_N "(cached) $ECHO_C" >&6
23563
ac_check_lib_save_LIBS=$LIBS
23565
cat >conftest.$ac_ext <<_ACEOF
23568
cat confdefs.h >>conftest.$ac_ext
23569
cat >>conftest.$ac_ext <<_ACEOF
23570
/* end confdefs.h. */
23572
/* Override any GCC internal prototype to avoid an error.
23573
Use char because int might match the return type of a GCC
23574
builtin and then its argument prototype would still apply. */
23587
rm -f conftest.$ac_objext conftest$ac_exeext
23588
if { (ac_try="$ac_link"
23589
case "(($ac_try" in
23590
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23591
*) ac_try_echo=$ac_try;;
23593
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23594
(eval "$ac_link") 2>conftest.er1
23596
grep -v '^ *+' conftest.er1 >conftest.err
23598
cat conftest.err >&5
23599
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23600
(exit $ac_status); } && {
23601
test -z "$ac_c_werror_flag" ||
23602
test ! -s conftest.err
23603
} && test -s conftest$ac_exeext &&
23604
$as_test_x conftest$ac_exeext; then
23605
ac_cv_lib_c_crypt=yes
23607
echo "$as_me: failed program was:" >&5
23608
sed 's/^/| /' conftest.$ac_ext >&5
23610
ac_cv_lib_c_crypt=no
23613
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23614
conftest$ac_exeext conftest.$ac_ext
23615
LIBS=$ac_check_lib_save_LIBS
23617
{ echo "$as_me:$LINENO: result: $ac_cv_lib_c_crypt" >&5
23618
echo "${ECHO_T}$ac_cv_lib_c_crypt" >&6; }
23619
if test $ac_cv_lib_c_crypt = yes; then
23623
{ echo "$as_me:$LINENO: WARNING: you have no crypt in either libcrypt or libc.
23624
You should install libcrypt from another source or configure with PAM
23626
echo "$as_me: WARNING: you have no crypt in either libcrypt or libc.
23627
You should install libcrypt from another source or configure with PAM
23636
if test $kde_have_crypt = yes; then
23638
cat >>confdefs.h <<_ACEOF
23639
#define HAVE_CRYPT 1
23644
{ echo "$as_me:$LINENO: checking for socklen_t" >&5
23645
echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
23646
if test "${kde_cv_socklen_t+set}" = set; then
23647
echo $ECHO_N "(cached) $ECHO_C" >&6
23651
ac_cpp='$CXXCPP $CPPFLAGS'
23652
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23653
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23654
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23656
kde_cv_socklen_t=no
23657
cat >conftest.$ac_ext <<_ACEOF
23660
cat confdefs.h >>conftest.$ac_ext
23661
cat >>conftest.$ac_ext <<_ACEOF
23662
/* end confdefs.h. */
23664
#include <sys/types.h>
23665
#include <sys/socket.h>
23672
getpeername(0,0,&len);
23678
rm -f conftest.$ac_objext
23679
if { (ac_try="$ac_compile"
23680
case "(($ac_try" in
23681
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23682
*) ac_try_echo=$ac_try;;
23684
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23685
(eval "$ac_compile") 2>conftest.er1
23687
grep -v '^ *+' conftest.er1 >conftest.err
23689
cat conftest.err >&5
23690
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23691
(exit $ac_status); } && {
23692
test -z "$ac_cxx_werror_flag" ||
23693
test ! -s conftest.err
23694
} && test -s conftest.$ac_objext; then
23696
kde_cv_socklen_t=yes
23697
kde_cv_socklen_t_equiv=socklen_t
23700
echo "$as_me: failed program was:" >&5
23701
sed 's/^/| /' conftest.$ac_ext >&5
23706
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23708
ac_cpp='$CPP $CPPFLAGS'
23709
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23710
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23711
ac_compiler_gnu=$ac_cv_c_compiler_gnu
23716
{ echo "$as_me:$LINENO: result: $kde_cv_socklen_t" >&5
23717
echo "${ECHO_T}$kde_cv_socklen_t" >&6; }
23718
if test $kde_cv_socklen_t = no; then
23719
{ echo "$as_me:$LINENO: checking for socklen_t equivalent for socket functions" >&5
23720
echo $ECHO_N "checking for socklen_t equivalent for socket functions... $ECHO_C" >&6; }
23721
if test "${kde_cv_socklen_t_equiv+set}" = set; then
23722
echo $ECHO_N "(cached) $ECHO_C" >&6
23725
kde_cv_socklen_t_equiv=int
23727
ac_cpp='$CXXCPP $CPPFLAGS'
23728
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23729
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23730
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23732
for t in int size_t unsigned long "unsigned long"; do
23733
cat >conftest.$ac_ext <<_ACEOF
23736
cat confdefs.h >>conftest.$ac_ext
23737
cat >>conftest.$ac_ext <<_ACEOF
23738
/* end confdefs.h. */
23740
#include <sys/types.h>
23741
#include <sys/socket.h>
23748
getpeername(0,0,&len);
23754
rm -f conftest.$ac_objext
23755
if { (ac_try="$ac_compile"
23756
case "(($ac_try" in
23757
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23758
*) ac_try_echo=$ac_try;;
23760
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23761
(eval "$ac_compile") 2>conftest.er1
23763
grep -v '^ *+' conftest.er1 >conftest.err
23765
cat conftest.err >&5
23766
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23767
(exit $ac_status); } && {
23768
test -z "$ac_cxx_werror_flag" ||
23769
test ! -s conftest.err
23770
} && test -s conftest.$ac_objext; then
23772
kde_cv_socklen_t_equiv="$t"
23776
echo "$as_me: failed program was:" >&5
23777
sed 's/^/| /' conftest.$ac_ext >&5
23782
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23785
ac_cpp='$CPP $CPPFLAGS'
23786
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23787
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23788
ac_compiler_gnu=$ac_cv_c_compiler_gnu
23793
{ echo "$as_me:$LINENO: result: $kde_cv_socklen_t_equiv" >&5
23794
echo "${ECHO_T}$kde_cv_socklen_t_equiv" >&6; }
23797
cat >>confdefs.h <<_ACEOF
23798
#define kde_socklen_t $kde_cv_socklen_t_equiv
23802
cat >>confdefs.h <<_ACEOF
23803
#define ksize_t $kde_cv_socklen_t_equiv
23807
{ echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
23808
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
23809
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
23810
echo $ECHO_N "(cached) $ECHO_C" >&6
23812
ac_check_lib_save_LIBS=$LIBS
23813
LIBS="-ldnet $LIBS"
23814
cat >conftest.$ac_ext <<_ACEOF
23817
cat confdefs.h >>conftest.$ac_ext
23818
cat >>conftest.$ac_ext <<_ACEOF
23819
/* end confdefs.h. */
23821
/* Override any GCC internal prototype to avoid an error.
23822
Use char because int might match the return type of a GCC
23823
builtin and then its argument prototype would still apply. */
23831
return dnet_ntoa ();
23836
rm -f conftest.$ac_objext conftest$ac_exeext
23837
if { (ac_try="$ac_link"
23838
case "(($ac_try" in
23839
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23840
*) ac_try_echo=$ac_try;;
23842
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23843
(eval "$ac_link") 2>conftest.er1
23845
grep -v '^ *+' conftest.er1 >conftest.err
23847
cat conftest.err >&5
23848
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23849
(exit $ac_status); } && {
23850
test -z "$ac_c_werror_flag" ||
23851
test ! -s conftest.err
23852
} && test -s conftest$ac_exeext &&
23853
$as_test_x conftest$ac_exeext; then
23854
ac_cv_lib_dnet_dnet_ntoa=yes
23856
echo "$as_me: failed program was:" >&5
23857
sed 's/^/| /' conftest.$ac_ext >&5
23859
ac_cv_lib_dnet_dnet_ntoa=no
23862
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23863
conftest$ac_exeext conftest.$ac_ext
23864
LIBS=$ac_check_lib_save_LIBS
23866
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23867
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
23868
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
23869
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23872
if test $ac_cv_lib_dnet_dnet_ntoa = no; then
23873
{ echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
23874
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
23875
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
23876
echo $ECHO_N "(cached) $ECHO_C" >&6
23878
ac_check_lib_save_LIBS=$LIBS
23879
LIBS="-ldnet_stub $LIBS"
23880
cat >conftest.$ac_ext <<_ACEOF
23883
cat confdefs.h >>conftest.$ac_ext
23884
cat >>conftest.$ac_ext <<_ACEOF
23885
/* end confdefs.h. */
23887
/* Override any GCC internal prototype to avoid an error.
23888
Use char because int might match the return type of a GCC
23889
builtin and then its argument prototype would still apply. */
23897
return dnet_ntoa ();
23902
rm -f conftest.$ac_objext conftest$ac_exeext
23903
if { (ac_try="$ac_link"
23904
case "(($ac_try" in
23905
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23906
*) ac_try_echo=$ac_try;;
23908
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23909
(eval "$ac_link") 2>conftest.er1
23911
grep -v '^ *+' conftest.er1 >conftest.err
23913
cat conftest.err >&5
23914
echo "$as_me:$LINENO: \$? = $ac_status" >&5
23915
(exit $ac_status); } && {
23916
test -z "$ac_c_werror_flag" ||
23917
test ! -s conftest.err
23918
} && test -s conftest$ac_exeext &&
23919
$as_test_x conftest$ac_exeext; then
23920
ac_cv_lib_dnet_stub_dnet_ntoa=yes
23922
echo "$as_me: failed program was:" >&5
23923
sed 's/^/| /' conftest.$ac_ext >&5
23925
ac_cv_lib_dnet_stub_dnet_ntoa=no
23928
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23929
conftest$ac_exeext conftest.$ac_ext
23930
LIBS=$ac_check_lib_save_LIBS
23932
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23933
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
23934
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
23935
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23939
{ echo "$as_me:$LINENO: checking for inet_ntoa" >&5
23940
echo $ECHO_N "checking for inet_ntoa... $ECHO_C" >&6; }
23941
if test "${ac_cv_func_inet_ntoa+set}" = set; then
23942
echo $ECHO_N "(cached) $ECHO_C" >&6
23944
cat >conftest.$ac_ext <<_ACEOF
23947
cat confdefs.h >>conftest.$ac_ext
23948
cat >>conftest.$ac_ext <<_ACEOF
23949
/* end confdefs.h. */
23950
/* Define inet_ntoa to an innocuous variant, in case <limits.h> declares inet_ntoa.
23951
For example, HP-UX 11i <limits.h> declares gettimeofday. */
23952
#define inet_ntoa innocuous_inet_ntoa
23954
/* System header to define __stub macros and hopefully few prototypes,
23955
which can conflict with char inet_ntoa (); below.
23956
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23957
<limits.h> exists even on freestanding compilers. */
23960
# include <limits.h>
23962
# include <assert.h>
23967
/* Override any GCC internal prototype to avoid an error.
23968
Use char because int might match the return type of a GCC
23969
builtin and then its argument prototype would still apply. */
23974
/* The GNU C library defines this for functions which it implements
23975
to always fail with ENOSYS. Some functions are actually named
23976
something starting with __ and the normal name is an alias. */
23977
#if defined __stub_inet_ntoa || defined __stub___inet_ntoa
23984
return inet_ntoa ();
23989
rm -f conftest.$ac_objext conftest$ac_exeext
23990
if { (ac_try="$ac_link"
23991
case "(($ac_try" in
23992
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23993
*) ac_try_echo=$ac_try;;
23995
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23996
(eval "$ac_link") 2>conftest.er1
23998
grep -v '^ *+' conftest.er1 >conftest.err
24000
cat conftest.err >&5
24001
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24002
(exit $ac_status); } && {
24003
test -z "$ac_c_werror_flag" ||
24004
test ! -s conftest.err
24005
} && test -s conftest$ac_exeext &&
24006
$as_test_x conftest$ac_exeext; then
24007
ac_cv_func_inet_ntoa=yes
24009
echo "$as_me: failed program was:" >&5
24010
sed 's/^/| /' conftest.$ac_ext >&5
24012
ac_cv_func_inet_ntoa=no
24015
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24016
conftest$ac_exeext conftest.$ac_ext
24018
{ echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntoa" >&5
24019
echo "${ECHO_T}$ac_cv_func_inet_ntoa" >&6; }
24021
if test $ac_cv_func_inet_ntoa = no; then
24022
{ echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
24023
echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6; }
24024
if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
24025
echo $ECHO_N "(cached) $ECHO_C" >&6
24027
ac_check_lib_save_LIBS=$LIBS
24029
cat >conftest.$ac_ext <<_ACEOF
24032
cat confdefs.h >>conftest.$ac_ext
24033
cat >>conftest.$ac_ext <<_ACEOF
24034
/* end confdefs.h. */
24036
/* Override any GCC internal prototype to avoid an error.
24037
Use char because int might match the return type of a GCC
24038
builtin and then its argument prototype would still apply. */
24046
return inet_ntoa ();
24051
rm -f conftest.$ac_objext conftest$ac_exeext
24052
if { (ac_try="$ac_link"
24053
case "(($ac_try" in
24054
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24055
*) ac_try_echo=$ac_try;;
24057
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24058
(eval "$ac_link") 2>conftest.er1
24060
grep -v '^ *+' conftest.er1 >conftest.err
24062
cat conftest.err >&5
24063
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24064
(exit $ac_status); } && {
24065
test -z "$ac_c_werror_flag" ||
24066
test ! -s conftest.err
24067
} && test -s conftest$ac_exeext &&
24068
$as_test_x conftest$ac_exeext; then
24069
ac_cv_lib_nsl_inet_ntoa=yes
24071
echo "$as_me: failed program was:" >&5
24072
sed 's/^/| /' conftest.$ac_ext >&5
24074
ac_cv_lib_nsl_inet_ntoa=no
24077
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24078
conftest$ac_exeext conftest.$ac_ext
24079
LIBS=$ac_check_lib_save_LIBS
24081
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
24082
echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6; }
24083
if test $ac_cv_lib_nsl_inet_ntoa = yes; then
24084
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24088
{ echo "$as_me:$LINENO: checking for connect" >&5
24089
echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
24090
if test "${ac_cv_func_connect+set}" = set; then
24091
echo $ECHO_N "(cached) $ECHO_C" >&6
24093
cat >conftest.$ac_ext <<_ACEOF
24096
cat confdefs.h >>conftest.$ac_ext
24097
cat >>conftest.$ac_ext <<_ACEOF
24098
/* end confdefs.h. */
24099
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
24100
For example, HP-UX 11i <limits.h> declares gettimeofday. */
24101
#define connect innocuous_connect
24103
/* System header to define __stub macros and hopefully few prototypes,
24104
which can conflict with char connect (); below.
24105
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24106
<limits.h> exists even on freestanding compilers. */
24109
# include <limits.h>
24111
# include <assert.h>
24116
/* Override any GCC internal prototype to avoid an error.
24117
Use char because int might match the return type of a GCC
24118
builtin and then its argument prototype would still apply. */
24123
/* The GNU C library defines this for functions which it implements
24124
to always fail with ENOSYS. Some functions are actually named
24125
something starting with __ and the normal name is an alias. */
24126
#if defined __stub_connect || defined __stub___connect
24138
rm -f conftest.$ac_objext conftest$ac_exeext
24139
if { (ac_try="$ac_link"
24140
case "(($ac_try" in
24141
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24142
*) ac_try_echo=$ac_try;;
24144
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24145
(eval "$ac_link") 2>conftest.er1
24147
grep -v '^ *+' conftest.er1 >conftest.err
24149
cat conftest.err >&5
24150
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24151
(exit $ac_status); } && {
24152
test -z "$ac_c_werror_flag" ||
24153
test ! -s conftest.err
24154
} && test -s conftest$ac_exeext &&
24155
$as_test_x conftest$ac_exeext; then
24156
ac_cv_func_connect=yes
24158
echo "$as_me: failed program was:" >&5
24159
sed 's/^/| /' conftest.$ac_ext >&5
24161
ac_cv_func_connect=no
24164
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24165
conftest$ac_exeext conftest.$ac_ext
24167
{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24168
echo "${ECHO_T}$ac_cv_func_connect" >&6; }
24170
if test $ac_cv_func_connect = no; then
24171
{ echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24172
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
24173
if test "${ac_cv_lib_socket_connect+set}" = set; then
24174
echo $ECHO_N "(cached) $ECHO_C" >&6
24176
ac_check_lib_save_LIBS=$LIBS
24177
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24178
cat >conftest.$ac_ext <<_ACEOF
24181
cat confdefs.h >>conftest.$ac_ext
24182
cat >>conftest.$ac_ext <<_ACEOF
24183
/* end confdefs.h. */
24185
/* Override any GCC internal prototype to avoid an error.
24186
Use char because int might match the return type of a GCC
24187
builtin and then its argument prototype would still apply. */
24200
rm -f conftest.$ac_objext conftest$ac_exeext
24201
if { (ac_try="$ac_link"
24202
case "(($ac_try" in
24203
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24204
*) ac_try_echo=$ac_try;;
24206
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24207
(eval "$ac_link") 2>conftest.er1
24209
grep -v '^ *+' conftest.er1 >conftest.err
24211
cat conftest.err >&5
24212
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24213
(exit $ac_status); } && {
24214
test -z "$ac_c_werror_flag" ||
24215
test ! -s conftest.err
24216
} && test -s conftest$ac_exeext &&
24217
$as_test_x conftest$ac_exeext; then
24218
ac_cv_lib_socket_connect=yes
24220
echo "$as_me: failed program was:" >&5
24221
sed 's/^/| /' conftest.$ac_ext >&5
24223
ac_cv_lib_socket_connect=no
24226
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24227
conftest$ac_exeext conftest.$ac_ext
24228
LIBS=$ac_check_lib_save_LIBS
24230
{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24231
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
24232
if test $ac_cv_lib_socket_connect = yes; then
24233
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24238
{ echo "$as_me:$LINENO: checking for remove" >&5
24239
echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
24240
if test "${ac_cv_func_remove+set}" = set; then
24241
echo $ECHO_N "(cached) $ECHO_C" >&6
24243
cat >conftest.$ac_ext <<_ACEOF
24246
cat confdefs.h >>conftest.$ac_ext
24247
cat >>conftest.$ac_ext <<_ACEOF
24248
/* end confdefs.h. */
24249
/* Define remove to an innocuous variant, in case <limits.h> declares remove.
24250
For example, HP-UX 11i <limits.h> declares gettimeofday. */
24251
#define remove innocuous_remove
24253
/* System header to define __stub macros and hopefully few prototypes,
24254
which can conflict with char remove (); below.
24255
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24256
<limits.h> exists even on freestanding compilers. */
24259
# include <limits.h>
24261
# include <assert.h>
24266
/* Override any GCC internal prototype to avoid an error.
24267
Use char because int might match the return type of a GCC
24268
builtin and then its argument prototype would still apply. */
24273
/* The GNU C library defines this for functions which it implements
24274
to always fail with ENOSYS. Some functions are actually named
24275
something starting with __ and the normal name is an alias. */
24276
#if defined __stub_remove || defined __stub___remove
24288
rm -f conftest.$ac_objext conftest$ac_exeext
24289
if { (ac_try="$ac_link"
24290
case "(($ac_try" in
24291
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24292
*) ac_try_echo=$ac_try;;
24294
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24295
(eval "$ac_link") 2>conftest.er1
24297
grep -v '^ *+' conftest.er1 >conftest.err
24299
cat conftest.err >&5
24300
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24301
(exit $ac_status); } && {
24302
test -z "$ac_c_werror_flag" ||
24303
test ! -s conftest.err
24304
} && test -s conftest$ac_exeext &&
24305
$as_test_x conftest$ac_exeext; then
24306
ac_cv_func_remove=yes
24308
echo "$as_me: failed program was:" >&5
24309
sed 's/^/| /' conftest.$ac_ext >&5
24311
ac_cv_func_remove=no
24314
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24315
conftest$ac_exeext conftest.$ac_ext
24317
{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
24318
echo "${ECHO_T}$ac_cv_func_remove" >&6; }
24320
if test $ac_cv_func_remove = no; then
24321
{ echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24322
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
24323
if test "${ac_cv_lib_posix_remove+set}" = set; then
24324
echo $ECHO_N "(cached) $ECHO_C" >&6
24326
ac_check_lib_save_LIBS=$LIBS
24327
LIBS="-lposix $LIBS"
24328
cat >conftest.$ac_ext <<_ACEOF
24331
cat confdefs.h >>conftest.$ac_ext
24332
cat >>conftest.$ac_ext <<_ACEOF
24333
/* end confdefs.h. */
24335
/* Override any GCC internal prototype to avoid an error.
24336
Use char because int might match the return type of a GCC
24337
builtin and then its argument prototype would still apply. */
24350
rm -f conftest.$ac_objext conftest$ac_exeext
24351
if { (ac_try="$ac_link"
24352
case "(($ac_try" in
24353
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24354
*) ac_try_echo=$ac_try;;
24356
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24357
(eval "$ac_link") 2>conftest.er1
24359
grep -v '^ *+' conftest.er1 >conftest.err
24361
cat conftest.err >&5
24362
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24363
(exit $ac_status); } && {
24364
test -z "$ac_c_werror_flag" ||
24365
test ! -s conftest.err
24366
} && test -s conftest$ac_exeext &&
24367
$as_test_x conftest$ac_exeext; then
24368
ac_cv_lib_posix_remove=yes
24370
echo "$as_me: failed program was:" >&5
24371
sed 's/^/| /' conftest.$ac_ext >&5
24373
ac_cv_lib_posix_remove=no
24376
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24377
conftest$ac_exeext conftest.$ac_ext
24378
LIBS=$ac_check_lib_save_LIBS
24380
{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24381
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
24382
if test $ac_cv_lib_posix_remove = yes; then
24383
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24388
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24389
{ echo "$as_me:$LINENO: checking for shmat" >&5
24390
echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
24391
if test "${ac_cv_func_shmat+set}" = set; then
24392
echo $ECHO_N "(cached) $ECHO_C" >&6
24394
cat >conftest.$ac_ext <<_ACEOF
24397
cat confdefs.h >>conftest.$ac_ext
24398
cat >>conftest.$ac_ext <<_ACEOF
24399
/* end confdefs.h. */
24400
/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
24401
For example, HP-UX 11i <limits.h> declares gettimeofday. */
24402
#define shmat innocuous_shmat
24404
/* System header to define __stub macros and hopefully few prototypes,
24405
which can conflict with char shmat (); below.
24406
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24407
<limits.h> exists even on freestanding compilers. */
24410
# include <limits.h>
24412
# include <assert.h>
24417
/* Override any GCC internal prototype to avoid an error.
24418
Use char because int might match the return type of a GCC
24419
builtin and then its argument prototype would still apply. */
24424
/* The GNU C library defines this for functions which it implements
24425
to always fail with ENOSYS. Some functions are actually named
24426
something starting with __ and the normal name is an alias. */
24427
#if defined __stub_shmat || defined __stub___shmat
24439
rm -f conftest.$ac_objext conftest$ac_exeext
24440
if { (ac_try="$ac_link"
24441
case "(($ac_try" in
24442
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24443
*) ac_try_echo=$ac_try;;
24445
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24446
(eval "$ac_link") 2>conftest.er1
24448
grep -v '^ *+' conftest.er1 >conftest.err
24450
cat conftest.err >&5
24451
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24452
(exit $ac_status); } && {
24453
test -z "$ac_c_werror_flag" ||
24454
test ! -s conftest.err
24455
} && test -s conftest$ac_exeext &&
24456
$as_test_x conftest$ac_exeext; then
24457
ac_cv_func_shmat=yes
24459
echo "$as_me: failed program was:" >&5
24460
sed 's/^/| /' conftest.$ac_ext >&5
24462
ac_cv_func_shmat=no
24465
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24466
conftest$ac_exeext conftest.$ac_ext
24468
{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
24469
echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
24470
if test $ac_cv_func_shmat = yes; then
24473
{ echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
24474
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
24475
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
24476
echo $ECHO_N "(cached) $ECHO_C" >&6
24478
ac_check_lib_save_LIBS=$LIBS
24480
cat >conftest.$ac_ext <<_ACEOF
24483
cat confdefs.h >>conftest.$ac_ext
24484
cat >>conftest.$ac_ext <<_ACEOF
24485
/* end confdefs.h. */
24487
/* Override any GCC internal prototype to avoid an error.
24488
Use char because int might match the return type of a GCC
24489
builtin and then its argument prototype would still apply. */
24502
rm -f conftest.$ac_objext conftest$ac_exeext
24503
if { (ac_try="$ac_link"
24504
case "(($ac_try" in
24505
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24506
*) ac_try_echo=$ac_try;;
24508
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24509
(eval "$ac_link") 2>conftest.er1
24511
grep -v '^ *+' conftest.er1 >conftest.err
24513
cat conftest.err >&5
24514
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24515
(exit $ac_status); } && {
24516
test -z "$ac_c_werror_flag" ||
24517
test ! -s conftest.err
24518
} && test -s conftest$ac_exeext &&
24519
$as_test_x conftest$ac_exeext; then
24520
ac_cv_lib_ipc_shmat=yes
24522
echo "$as_me: failed program was:" >&5
24523
sed 's/^/| /' conftest.$ac_ext >&5
24525
ac_cv_lib_ipc_shmat=no
24528
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24529
conftest$ac_exeext conftest.$ac_ext
24530
LIBS=$ac_check_lib_save_LIBS
24532
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
24533
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
24534
if test $ac_cv_lib_ipc_shmat = yes; then
24535
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24541
# more headers that need to be explicitly included on darwin
24544
for ac_header in sys/types.h stdint.h
24546
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24547
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24548
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
24549
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24550
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24551
echo $ECHO_N "(cached) $ECHO_C" >&6
24553
ac_res=`eval echo '${'$as_ac_Header'}'`
24554
{ echo "$as_me:$LINENO: result: $ac_res" >&5
24555
echo "${ECHO_T}$ac_res" >&6; }
24557
# Is the header compilable?
24558
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
24559
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24560
cat >conftest.$ac_ext <<_ACEOF
24563
cat confdefs.h >>conftest.$ac_ext
24564
cat >>conftest.$ac_ext <<_ACEOF
24565
/* end confdefs.h. */
24566
$ac_includes_default
24567
#include <$ac_header>
24569
rm -f conftest.$ac_objext
24570
if { (ac_try="$ac_compile"
24571
case "(($ac_try" in
24572
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24573
*) ac_try_echo=$ac_try;;
24575
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24576
(eval "$ac_compile") 2>conftest.er1
24578
grep -v '^ *+' conftest.er1 >conftest.err
24580
cat conftest.err >&5
24581
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582
(exit $ac_status); } && {
24583
test -z "$ac_c_werror_flag" ||
24584
test ! -s conftest.err
24585
} && test -s conftest.$ac_objext; then
24586
ac_header_compiler=yes
24588
echo "$as_me: failed program was:" >&5
24589
sed 's/^/| /' conftest.$ac_ext >&5
24591
ac_header_compiler=no
24594
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24595
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24596
echo "${ECHO_T}$ac_header_compiler" >&6; }
24598
# Is the header present?
24599
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
24600
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24601
cat >conftest.$ac_ext <<_ACEOF
24604
cat confdefs.h >>conftest.$ac_ext
24605
cat >>conftest.$ac_ext <<_ACEOF
24606
/* end confdefs.h. */
24607
#include <$ac_header>
24609
if { (ac_try="$ac_cpp conftest.$ac_ext"
24610
case "(($ac_try" in
24611
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24612
*) ac_try_echo=$ac_try;;
24614
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24615
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24617
grep -v '^ *+' conftest.er1 >conftest.err
24619
cat conftest.err >&5
24620
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24621
(exit $ac_status); } >/dev/null && {
24622
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24623
test ! -s conftest.err
24625
ac_header_preproc=yes
24627
echo "$as_me: failed program was:" >&5
24628
sed 's/^/| /' conftest.$ac_ext >&5
24630
ac_header_preproc=no
24633
rm -f conftest.err conftest.$ac_ext
24634
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24635
echo "${ECHO_T}$ac_header_preproc" >&6; }
24637
# So? What about this header?
24638
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24640
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24641
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24642
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24643
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24644
ac_header_preproc=yes
24647
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24648
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24649
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24650
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24651
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24652
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24653
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24654
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24655
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24656
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24657
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24658
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24662
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
24663
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24664
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24665
echo $ECHO_N "(cached) $ECHO_C" >&6
24667
eval "$as_ac_Header=\$ac_header_preproc"
24669
ac_res=`eval echo '${'$as_ac_Header'}'`
24670
{ echo "$as_me:$LINENO: result: $ac_res" >&5
24671
echo "${ECHO_T}$ac_res" >&6; }
24674
if test `eval echo '${'$as_ac_Header'}'` = yes; then
24675
cat >>confdefs.h <<_ACEOF
24676
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24684
# sys/bitypes.h is needed for uint32_t and friends on Tru64
24686
for ac_header in sys/bitypes.h
24688
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24689
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24690
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
24691
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24692
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24693
echo $ECHO_N "(cached) $ECHO_C" >&6
24695
ac_res=`eval echo '${'$as_ac_Header'}'`
24696
{ echo "$as_me:$LINENO: result: $ac_res" >&5
24697
echo "${ECHO_T}$ac_res" >&6; }
24699
# Is the header compilable?
24700
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
24701
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24702
cat >conftest.$ac_ext <<_ACEOF
24705
cat confdefs.h >>conftest.$ac_ext
24706
cat >>conftest.$ac_ext <<_ACEOF
24707
/* end confdefs.h. */
24708
$ac_includes_default
24709
#include <$ac_header>
24711
rm -f conftest.$ac_objext
24712
if { (ac_try="$ac_compile"
24713
case "(($ac_try" in
24714
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24715
*) ac_try_echo=$ac_try;;
24717
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24718
(eval "$ac_compile") 2>conftest.er1
24720
grep -v '^ *+' conftest.er1 >conftest.err
24722
cat conftest.err >&5
24723
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24724
(exit $ac_status); } && {
24725
test -z "$ac_c_werror_flag" ||
24726
test ! -s conftest.err
24727
} && test -s conftest.$ac_objext; then
24728
ac_header_compiler=yes
24730
echo "$as_me: failed program was:" >&5
24731
sed 's/^/| /' conftest.$ac_ext >&5
24733
ac_header_compiler=no
24736
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24737
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24738
echo "${ECHO_T}$ac_header_compiler" >&6; }
24740
# Is the header present?
24741
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
24742
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24743
cat >conftest.$ac_ext <<_ACEOF
24746
cat confdefs.h >>conftest.$ac_ext
24747
cat >>conftest.$ac_ext <<_ACEOF
24748
/* end confdefs.h. */
24749
#include <$ac_header>
24751
if { (ac_try="$ac_cpp conftest.$ac_ext"
24752
case "(($ac_try" in
24753
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24754
*) ac_try_echo=$ac_try;;
24756
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24757
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24759
grep -v '^ *+' conftest.er1 >conftest.err
24761
cat conftest.err >&5
24762
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24763
(exit $ac_status); } >/dev/null && {
24764
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24765
test ! -s conftest.err
24767
ac_header_preproc=yes
24769
echo "$as_me: failed program was:" >&5
24770
sed 's/^/| /' conftest.$ac_ext >&5
24772
ac_header_preproc=no
24775
rm -f conftest.err conftest.$ac_ext
24776
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24777
echo "${ECHO_T}$ac_header_preproc" >&6; }
24779
# So? What about this header?
24780
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24782
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24783
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24784
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24785
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24786
ac_header_preproc=yes
24789
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24790
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24791
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24792
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24793
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24794
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24795
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24796
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24797
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24798
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24799
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24800
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24804
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
24805
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24806
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24807
echo $ECHO_N "(cached) $ECHO_C" >&6
24809
eval "$as_ac_Header=\$ac_header_preproc"
24811
ac_res=`eval echo '${'$as_ac_Header'}'`
24812
{ echo "$as_me:$LINENO: result: $ac_res" >&5
24813
echo "${ECHO_T}$ac_res" >&6; }
24816
if test `eval echo '${'$as_ac_Header'}'` = yes; then
24817
cat >>confdefs.h <<_ACEOF
24818
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24826
# darwin requires a poll emulation library
24827
{ echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
24828
echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6; }
24829
if test "${ac_cv_lib_poll_poll+set}" = set; then
24830
echo $ECHO_N "(cached) $ECHO_C" >&6
24832
ac_check_lib_save_LIBS=$LIBS
24833
LIBS="-lpoll $LIBS"
24834
cat >conftest.$ac_ext <<_ACEOF
24837
cat confdefs.h >>conftest.$ac_ext
24838
cat >>conftest.$ac_ext <<_ACEOF
24839
/* end confdefs.h. */
24841
/* Override any GCC internal prototype to avoid an error.
24842
Use char because int might match the return type of a GCC
24843
builtin and then its argument prototype would still apply. */
24856
rm -f conftest.$ac_objext conftest$ac_exeext
24857
if { (ac_try="$ac_link"
24858
case "(($ac_try" in
24859
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24860
*) ac_try_echo=$ac_try;;
24862
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24863
(eval "$ac_link") 2>conftest.er1
24865
grep -v '^ *+' conftest.er1 >conftest.err
24867
cat conftest.err >&5
24868
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24869
(exit $ac_status); } && {
24870
test -z "$ac_c_werror_flag" ||
24871
test ! -s conftest.err
24872
} && test -s conftest$ac_exeext &&
24873
$as_test_x conftest$ac_exeext; then
24874
ac_cv_lib_poll_poll=yes
24876
echo "$as_me: failed program was:" >&5
24877
sed 's/^/| /' conftest.$ac_ext >&5
24879
ac_cv_lib_poll_poll=no
24882
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24883
conftest$ac_exeext conftest.$ac_ext
24884
LIBS=$ac_check_lib_save_LIBS
24886
{ echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
24887
echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6; }
24888
if test $ac_cv_lib_poll_poll = yes; then
24893
# for some image handling on Mac OS X
24895
for ac_header in Carbon/Carbon.h
24897
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24898
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24899
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
24900
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24901
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24902
echo $ECHO_N "(cached) $ECHO_C" >&6
24904
ac_res=`eval echo '${'$as_ac_Header'}'`
24905
{ echo "$as_me:$LINENO: result: $ac_res" >&5
24906
echo "${ECHO_T}$ac_res" >&6; }
24908
# Is the header compilable?
24909
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
24910
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24911
cat >conftest.$ac_ext <<_ACEOF
24914
cat confdefs.h >>conftest.$ac_ext
24915
cat >>conftest.$ac_ext <<_ACEOF
24916
/* end confdefs.h. */
24917
$ac_includes_default
24918
#include <$ac_header>
24920
rm -f conftest.$ac_objext
24921
if { (ac_try="$ac_compile"
24922
case "(($ac_try" in
24923
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24924
*) ac_try_echo=$ac_try;;
24926
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24927
(eval "$ac_compile") 2>conftest.er1
24929
grep -v '^ *+' conftest.er1 >conftest.err
24931
cat conftest.err >&5
24932
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24933
(exit $ac_status); } && {
24934
test -z "$ac_c_werror_flag" ||
24935
test ! -s conftest.err
24936
} && test -s conftest.$ac_objext; then
24937
ac_header_compiler=yes
24939
echo "$as_me: failed program was:" >&5
24940
sed 's/^/| /' conftest.$ac_ext >&5
24942
ac_header_compiler=no
24945
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24946
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24947
echo "${ECHO_T}$ac_header_compiler" >&6; }
24949
# Is the header present?
24950
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
24951
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24952
cat >conftest.$ac_ext <<_ACEOF
24955
cat confdefs.h >>conftest.$ac_ext
24956
cat >>conftest.$ac_ext <<_ACEOF
24957
/* end confdefs.h. */
24958
#include <$ac_header>
24960
if { (ac_try="$ac_cpp conftest.$ac_ext"
24961
case "(($ac_try" in
24962
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24963
*) ac_try_echo=$ac_try;;
24965
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24966
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24968
grep -v '^ *+' conftest.er1 >conftest.err
24970
cat conftest.err >&5
24971
echo "$as_me:$LINENO: \$? = $ac_status" >&5
24972
(exit $ac_status); } >/dev/null && {
24973
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24974
test ! -s conftest.err
24976
ac_header_preproc=yes
24978
echo "$as_me: failed program was:" >&5
24979
sed 's/^/| /' conftest.$ac_ext >&5
24981
ac_header_preproc=no
24984
rm -f conftest.err conftest.$ac_ext
24985
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24986
echo "${ECHO_T}$ac_header_preproc" >&6; }
24988
# So? What about this header?
24989
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24991
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24992
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24993
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24994
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24995
ac_header_preproc=yes
24998
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24999
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25000
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25001
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25002
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25003
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25004
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25005
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25006
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25007
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25008
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25009
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25013
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
25014
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25015
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25016
echo $ECHO_N "(cached) $ECHO_C" >&6
25018
eval "$as_ac_Header=\$ac_header_preproc"
25020
ac_res=`eval echo '${'$as_ac_Header'}'`
25021
{ echo "$as_me:$LINENO: result: $ac_res" >&5
25022
echo "${ECHO_T}$ac_res" >&6; }
25025
if test `eval echo '${'$as_ac_Header'}'` = yes; then
25026
cat >>confdefs.h <<_ACEOF
25027
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25035
# CoreAudio framework
25036
if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
25037
{ echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
25038
echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
25039
if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
25040
echo $ECHO_N "(cached) $ECHO_C" >&6
25042
{ echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
25043
echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
25045
# Is the header compilable?
25046
{ echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
25047
echo $ECHO_N "checking CoreAudio/CoreAudio.h usability... $ECHO_C" >&6; }
25048
cat >conftest.$ac_ext <<_ACEOF
25051
cat confdefs.h >>conftest.$ac_ext
25052
cat >>conftest.$ac_ext <<_ACEOF
25053
/* end confdefs.h. */
25054
$ac_includes_default
25055
#include <CoreAudio/CoreAudio.h>
25057
rm -f conftest.$ac_objext
25058
if { (ac_try="$ac_compile"
25059
case "(($ac_try" in
25060
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25061
*) ac_try_echo=$ac_try;;
25063
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25064
(eval "$ac_compile") 2>conftest.er1
25066
grep -v '^ *+' conftest.er1 >conftest.err
25068
cat conftest.err >&5
25069
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25070
(exit $ac_status); } && {
25071
test -z "$ac_c_werror_flag" ||
25072
test ! -s conftest.err
25073
} && test -s conftest.$ac_objext; then
25074
ac_header_compiler=yes
25076
echo "$as_me: failed program was:" >&5
25077
sed 's/^/| /' conftest.$ac_ext >&5
25079
ac_header_compiler=no
25082
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25083
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25084
echo "${ECHO_T}$ac_header_compiler" >&6; }
25086
# Is the header present?
25087
{ echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
25088
echo $ECHO_N "checking CoreAudio/CoreAudio.h presence... $ECHO_C" >&6; }
25089
cat >conftest.$ac_ext <<_ACEOF
25092
cat confdefs.h >>conftest.$ac_ext
25093
cat >>conftest.$ac_ext <<_ACEOF
25094
/* end confdefs.h. */
25095
#include <CoreAudio/CoreAudio.h>
25097
if { (ac_try="$ac_cpp conftest.$ac_ext"
25098
case "(($ac_try" in
25099
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25100
*) ac_try_echo=$ac_try;;
25102
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25103
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25105
grep -v '^ *+' conftest.er1 >conftest.err
25107
cat conftest.err >&5
25108
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25109
(exit $ac_status); } >/dev/null && {
25110
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25111
test ! -s conftest.err
25113
ac_header_preproc=yes
25115
echo "$as_me: failed program was:" >&5
25116
sed 's/^/| /' conftest.$ac_ext >&5
25118
ac_header_preproc=no
25121
rm -f conftest.err conftest.$ac_ext
25122
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25123
echo "${ECHO_T}$ac_header_preproc" >&6; }
25125
# So? What about this header?
25126
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25128
{ echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
25129
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25130
{ echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
25131
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
25132
ac_header_preproc=yes
25135
{ echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
25136
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
25137
{ echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
25138
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
25139
{ echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
25140
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
25141
{ echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
25142
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
25143
{ echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
25144
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
25145
{ echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
25146
echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
25150
{ echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
25151
echo $ECHO_N "checking for CoreAudio/CoreAudio.h... $ECHO_C" >&6; }
25152
if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
25153
echo $ECHO_N "(cached) $ECHO_C" >&6
25155
ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
25157
{ echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
25158
echo "${ECHO_T}$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
25161
if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
25164
cat >>confdefs.h <<\_ACEOF
25165
#define HAVE_COREAUDIO 1
25168
FRAMEWORK_COREAUDIO="-Wl,-framework,CoreAudio"
25175
{ echo "$as_me:$LINENO: checking if res_init needs -lresolv" >&5
25176
echo $ECHO_N "checking if res_init needs -lresolv... $ECHO_C" >&6; }
25177
kde_libs_safe="$LIBS"
25178
LIBS="$LIBS $X_EXTRA_LIBS -lresolv"
25179
cat >conftest.$ac_ext <<_ACEOF
25182
cat confdefs.h >>conftest.$ac_ext
25183
cat >>conftest.$ac_ext <<_ACEOF
25184
/* end confdefs.h. */
25186
#include <sys/types.h>
25187
#include <netinet/in.h>
25188
#include <arpa/nameser.h>
25189
#include <resolv.h>
25201
rm -f conftest.$ac_objext conftest$ac_exeext
25202
if { (ac_try="$ac_link"
25203
case "(($ac_try" in
25204
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25205
*) ac_try_echo=$ac_try;;
25207
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25208
(eval "$ac_link") 2>conftest.er1
25210
grep -v '^ *+' conftest.er1 >conftest.err
25212
cat conftest.err >&5
25213
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25214
(exit $ac_status); } && {
25215
test -z "$ac_c_werror_flag" ||
25216
test ! -s conftest.err
25217
} && test -s conftest$ac_exeext &&
25218
$as_test_x conftest$ac_exeext; then
25220
LIBRESOLV="-lresolv"
25221
{ echo "$as_me:$LINENO: result: yes" >&5
25222
echo "${ECHO_T}yes" >&6; }
25224
cat >>confdefs.h <<\_ACEOF
25225
#define HAVE_RES_INIT 1
25230
echo "$as_me: failed program was:" >&5
25231
sed 's/^/| /' conftest.$ac_ext >&5
25233
{ echo "$as_me:$LINENO: result: no" >&5
25234
echo "${ECHO_T}no" >&6; }
25238
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25239
conftest$ac_exeext conftest.$ac_ext
25240
LIBS=$kde_libs_safe
25244
{ echo "$as_me:$LINENO: checking for res_init" >&5
25245
echo $ECHO_N "checking for res_init... $ECHO_C" >&6; }
25246
if test "${kde_cv_func_res_init+set}" = set; then
25247
echo $ECHO_N "(cached) $ECHO_C" >&6
25252
ac_cpp='$CXXCPP $CPPFLAGS'
25253
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25254
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25255
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25257
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
25260
save_CXXFLAGS="$CXXFLAGS"
25261
kde_safe_LIBS="$LIBS"
25262
LIBS="$LIBS $X_EXTRA_LIBS"
25263
if test "$GXX" = "yes"; then
25264
CXXFLAGS="$CXXFLAGS -pedantic-errors"
25266
cat >conftest.$ac_ext <<_ACEOF
25269
cat confdefs.h >>conftest.$ac_ext
25270
cat >>conftest.$ac_ext <<_ACEOF
25271
/* end confdefs.h. */
25274
#include <sys/types.h>
25275
#include <netinet/in.h>
25276
#include <arpa/nameser.h>
25277
#include <resolv.h>
25290
rm -f conftest.$ac_objext
25291
if { (ac_try="$ac_compile"
25292
case "(($ac_try" in
25293
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25294
*) ac_try_echo=$ac_try;;
25296
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25297
(eval "$ac_compile") 2>conftest.er1
25299
grep -v '^ *+' conftest.er1 >conftest.err
25301
cat conftest.err >&5
25302
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25303
(exit $ac_status); } && {
25304
test -z "$ac_cxx_werror_flag" ||
25305
test ! -s conftest.err
25306
} && test -s conftest.$ac_objext; then
25307
kde_cv_func_res_init=yes
25309
echo "$as_me: failed program was:" >&5
25310
sed 's/^/| /' conftest.$ac_ext >&5
25312
kde_cv_func_res_init=no
25315
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25316
CXXFLAGS="$save_CXXFLAGS"
25317
LIBS="$kde_safe_LIBS"
25319
ac_cpp='$CPP $CPPFLAGS'
25320
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25321
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25322
ac_compiler_gnu=$ac_cv_c_compiler_gnu
25328
{ echo "$as_me:$LINENO: result: $kde_cv_func_res_init" >&5
25329
echo "${ECHO_T}$kde_cv_func_res_init" >&6; }
25331
{ echo "$as_me:$LINENO: checking if res_init needs custom prototype" >&5
25332
echo $ECHO_N "checking if res_init needs custom prototype... $ECHO_C" >&6; }
25333
if test "${kde_cv_proto_res_init+set}" = set; then
25334
echo $ECHO_N "(cached) $ECHO_C" >&6
25337
if test "x$kde_cv_func_res_init" = xyes; then
25338
kde_cv_proto_res_init=no
25341
setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat)
25342
kde_cv_proto_res_init="yes - in libkdefakes"
25345
kde_cv_proto_res_init=unknown
25350
if test "x$kde_cv_proto_res_init" = xunknown; then
25354
ac_cpp='$CXXCPP $CPPFLAGS'
25355
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25356
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25357
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25359
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
25362
kde_safe_libs=$LIBS
25363
LIBS="$LIBS $X_EXTRA_LIBS"
25364
cat >conftest.$ac_ext <<_ACEOF
25367
cat confdefs.h >>conftest.$ac_ext
25368
cat >>conftest.$ac_ext <<_ACEOF
25369
/* end confdefs.h. */
25372
#include <sys/types.h>
25373
#include <netinet/in.h>
25374
#include <arpa/nameser.h>
25375
#include <resolv.h>
25378
extern "C" int res_init(void);
25390
rm -f conftest.$ac_objext conftest$ac_exeext
25391
if { (ac_try="$ac_link"
25392
case "(($ac_try" in
25393
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25394
*) ac_try_echo=$ac_try;;
25396
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25397
(eval "$ac_link") 2>conftest.er1
25399
grep -v '^ *+' conftest.er1 >conftest.err
25401
cat conftest.err >&5
25402
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25403
(exit $ac_status); } && {
25404
test -z "$ac_cxx_werror_flag" ||
25405
test ! -s conftest.err
25406
} && test -s conftest$ac_exeext &&
25407
$as_test_x conftest$ac_exeext; then
25408
kde_cv_func_res_init=yes
25409
kde_cv_proto_res_init=yes
25411
echo "$as_me: failed program was:" >&5
25412
sed 's/^/| /' conftest.$ac_ext >&5
25414
kde_cv_proto_res_init="res_init unavailable"
25418
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25419
conftest$ac_exeext conftest.$ac_ext
25420
LIBS=$kde_safe_libs
25422
ac_cpp='$CPP $CPPFLAGS'
25423
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25424
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25425
ac_compiler_gnu=$ac_cv_c_compiler_gnu
25431
{ echo "$as_me:$LINENO: result: $kde_cv_proto_res_init" >&5
25432
echo "${ECHO_T}$kde_cv_proto_res_init" >&6; }
25434
if test "x$kde_cv_func_res_init" = xyes; then
25436
cat >>confdefs.h <<\_ACEOF
25437
#define HAVE_RES_INIT 1
25442
if test "x$kde_cv_proto_res_init" = xno; then
25444
cat >>confdefs.h <<\_ACEOF
25445
#define HAVE_RES_INIT_PROTO 1
25456
LIBSOCKET="$X_EXTRA_LIBS"
25459
{ echo "$as_me:$LINENO: checking for killpg in -lucb" >&5
25460
echo $ECHO_N "checking for killpg in -lucb... $ECHO_C" >&6; }
25461
if test "${ac_cv_lib_ucb_killpg+set}" = set; then
25462
echo $ECHO_N "(cached) $ECHO_C" >&6
25464
ac_check_lib_save_LIBS=$LIBS
25466
cat >conftest.$ac_ext <<_ACEOF
25469
cat confdefs.h >>conftest.$ac_ext
25470
cat >>conftest.$ac_ext <<_ACEOF
25471
/* end confdefs.h. */
25473
/* Override any GCC internal prototype to avoid an error.
25474
Use char because int might match the return type of a GCC
25475
builtin and then its argument prototype would still apply. */
25488
rm -f conftest.$ac_objext conftest$ac_exeext
25489
if { (ac_try="$ac_link"
25490
case "(($ac_try" in
25491
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25492
*) ac_try_echo=$ac_try;;
25494
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25495
(eval "$ac_link") 2>conftest.er1
25497
grep -v '^ *+' conftest.er1 >conftest.err
25499
cat conftest.err >&5
25500
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25501
(exit $ac_status); } && {
25502
test -z "$ac_c_werror_flag" ||
25503
test ! -s conftest.err
25504
} && test -s conftest$ac_exeext &&
25505
$as_test_x conftest$ac_exeext; then
25506
ac_cv_lib_ucb_killpg=yes
25508
echo "$as_me: failed program was:" >&5
25509
sed 's/^/| /' conftest.$ac_ext >&5
25511
ac_cv_lib_ucb_killpg=no
25514
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25515
conftest$ac_exeext conftest.$ac_ext
25516
LIBS=$ac_check_lib_save_LIBS
25518
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_killpg" >&5
25519
echo "${ECHO_T}$ac_cv_lib_ucb_killpg" >&6; }
25520
if test $ac_cv_lib_ucb_killpg = yes; then
25525
case $host in *-*-lynxos* )
25526
{ echo "$as_me:$LINENO: checking LynxOS header file wrappers" >&5
25527
echo $ECHO_N "checking LynxOS header file wrappers... $ECHO_C" >&6; }
25528
CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
25529
{ echo "$as_me:$LINENO: result: disabled" >&5
25530
echo "${ECHO_T}disabled" >&6; }
25531
{ echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
25532
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
25533
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
25534
echo $ECHO_N "(cached) $ECHO_C" >&6
25536
ac_check_lib_save_LIBS=$LIBS
25538
cat >conftest.$ac_ext <<_ACEOF
25541
cat confdefs.h >>conftest.$ac_ext
25542
cat >>conftest.$ac_ext <<_ACEOF
25543
/* end confdefs.h. */
25545
/* Override any GCC internal prototype to avoid an error.
25546
Use char because int might match the return type of a GCC
25547
builtin and then its argument prototype would still apply. */
25551
char gethostbyname ();
25555
return gethostbyname ();
25560
rm -f conftest.$ac_objext conftest$ac_exeext
25561
if { (ac_try="$ac_link"
25562
case "(($ac_try" in
25563
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25564
*) ac_try_echo=$ac_try;;
25566
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25567
(eval "$ac_link") 2>conftest.er1
25569
grep -v '^ *+' conftest.er1 >conftest.err
25571
cat conftest.err >&5
25572
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25573
(exit $ac_status); } && {
25574
test -z "$ac_c_werror_flag" ||
25575
test ! -s conftest.err
25576
} && test -s conftest$ac_exeext &&
25577
$as_test_x conftest$ac_exeext; then
25578
ac_cv_lib_bsd_gethostbyname=yes
25580
echo "$as_me: failed program was:" >&5
25581
sed 's/^/| /' conftest.$ac_ext >&5
25583
ac_cv_lib_bsd_gethostbyname=no
25586
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25587
conftest$ac_exeext conftest.$ac_ext
25588
LIBS=$ac_check_lib_save_LIBS
25590
{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
25591
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
25592
if test $ac_cv_lib_bsd_gethostbyname = yes; then
25598
{ echo "$as_me:$LINENO: checking for int" >&5
25599
echo $ECHO_N "checking for int... $ECHO_C" >&6; }
25600
if test "${ac_cv_type_int+set}" = set; then
25601
echo $ECHO_N "(cached) $ECHO_C" >&6
25603
cat >conftest.$ac_ext <<_ACEOF
25606
cat confdefs.h >>conftest.$ac_ext
25607
cat >>conftest.$ac_ext <<_ACEOF
25608
/* end confdefs.h. */
25609
$ac_includes_default
25610
typedef int ac__type_new_;
25614
if ((ac__type_new_ *) 0)
25616
if (sizeof (ac__type_new_))
25622
rm -f conftest.$ac_objext
25623
if { (ac_try="$ac_compile"
25624
case "(($ac_try" in
25625
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25626
*) ac_try_echo=$ac_try;;
25628
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25629
(eval "$ac_compile") 2>conftest.er1
25631
grep -v '^ *+' conftest.er1 >conftest.err
25633
cat conftest.err >&5
25634
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25635
(exit $ac_status); } && {
25636
test -z "$ac_c_werror_flag" ||
25637
test ! -s conftest.err
25638
} && test -s conftest.$ac_objext; then
25641
echo "$as_me: failed program was:" >&5
25642
sed 's/^/| /' conftest.$ac_ext >&5
25647
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25649
{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
25650
echo "${ECHO_T}$ac_cv_type_int" >&6; }
25652
# The cast to long int works around a bug in the HP C Compiler
25653
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25654
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25655
# This bug is HP SR number 8606223364.
25656
{ echo "$as_me:$LINENO: checking size of int" >&5
25657
echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
25658
if test "${ac_cv_sizeof_int+set}" = set; then
25659
echo $ECHO_N "(cached) $ECHO_C" >&6
25661
if test "$cross_compiling" = yes; then
25662
# Depending upon the size, compute the lo and hi bounds.
25663
cat >conftest.$ac_ext <<_ACEOF
25666
cat confdefs.h >>conftest.$ac_ext
25667
cat >>conftest.$ac_ext <<_ACEOF
25668
/* end confdefs.h. */
25669
$ac_includes_default
25670
typedef int ac__type_sizeof_;
25674
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25681
rm -f conftest.$ac_objext
25682
if { (ac_try="$ac_compile"
25683
case "(($ac_try" in
25684
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25685
*) ac_try_echo=$ac_try;;
25687
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25688
(eval "$ac_compile") 2>conftest.er1
25690
grep -v '^ *+' conftest.er1 >conftest.err
25692
cat conftest.err >&5
25693
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25694
(exit $ac_status); } && {
25695
test -z "$ac_c_werror_flag" ||
25696
test ! -s conftest.err
25697
} && test -s conftest.$ac_objext; then
25700
cat >conftest.$ac_ext <<_ACEOF
25703
cat confdefs.h >>conftest.$ac_ext
25704
cat >>conftest.$ac_ext <<_ACEOF
25705
/* end confdefs.h. */
25706
$ac_includes_default
25707
typedef int ac__type_sizeof_;
25711
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25718
rm -f conftest.$ac_objext
25719
if { (ac_try="$ac_compile"
25720
case "(($ac_try" in
25721
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25722
*) ac_try_echo=$ac_try;;
25724
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25725
(eval "$ac_compile") 2>conftest.er1
25727
grep -v '^ *+' conftest.er1 >conftest.err
25729
cat conftest.err >&5
25730
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731
(exit $ac_status); } && {
25732
test -z "$ac_c_werror_flag" ||
25733
test ! -s conftest.err
25734
} && test -s conftest.$ac_objext; then
25735
ac_hi=$ac_mid; break
25737
echo "$as_me: failed program was:" >&5
25738
sed 's/^/| /' conftest.$ac_ext >&5
25740
ac_lo=`expr $ac_mid + 1`
25741
if test $ac_lo -le $ac_mid; then
25745
ac_mid=`expr 2 '*' $ac_mid + 1`
25748
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25751
echo "$as_me: failed program was:" >&5
25752
sed 's/^/| /' conftest.$ac_ext >&5
25754
cat >conftest.$ac_ext <<_ACEOF
25757
cat confdefs.h >>conftest.$ac_ext
25758
cat >>conftest.$ac_ext <<_ACEOF
25759
/* end confdefs.h. */
25760
$ac_includes_default
25761
typedef int ac__type_sizeof_;
25765
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25772
rm -f conftest.$ac_objext
25773
if { (ac_try="$ac_compile"
25774
case "(($ac_try" in
25775
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25776
*) ac_try_echo=$ac_try;;
25778
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25779
(eval "$ac_compile") 2>conftest.er1
25781
grep -v '^ *+' conftest.er1 >conftest.err
25783
cat conftest.err >&5
25784
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25785
(exit $ac_status); } && {
25786
test -z "$ac_c_werror_flag" ||
25787
test ! -s conftest.err
25788
} && test -s conftest.$ac_objext; then
25791
cat >conftest.$ac_ext <<_ACEOF
25794
cat confdefs.h >>conftest.$ac_ext
25795
cat >>conftest.$ac_ext <<_ACEOF
25796
/* end confdefs.h. */
25797
$ac_includes_default
25798
typedef int ac__type_sizeof_;
25802
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25809
rm -f conftest.$ac_objext
25810
if { (ac_try="$ac_compile"
25811
case "(($ac_try" in
25812
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25813
*) ac_try_echo=$ac_try;;
25815
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25816
(eval "$ac_compile") 2>conftest.er1
25818
grep -v '^ *+' conftest.er1 >conftest.err
25820
cat conftest.err >&5
25821
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25822
(exit $ac_status); } && {
25823
test -z "$ac_c_werror_flag" ||
25824
test ! -s conftest.err
25825
} && test -s conftest.$ac_objext; then
25826
ac_lo=$ac_mid; break
25828
echo "$as_me: failed program was:" >&5
25829
sed 's/^/| /' conftest.$ac_ext >&5
25831
ac_hi=`expr '(' $ac_mid ')' - 1`
25832
if test $ac_mid -le $ac_hi; then
25836
ac_mid=`expr 2 '*' $ac_mid`
25839
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25842
echo "$as_me: failed program was:" >&5
25843
sed 's/^/| /' conftest.$ac_ext >&5
25848
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25851
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25852
# Binary search between lo and hi bounds.
25853
while test "x$ac_lo" != "x$ac_hi"; do
25854
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25855
cat >conftest.$ac_ext <<_ACEOF
25858
cat confdefs.h >>conftest.$ac_ext
25859
cat >>conftest.$ac_ext <<_ACEOF
25860
/* end confdefs.h. */
25861
$ac_includes_default
25862
typedef int ac__type_sizeof_;
25866
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25873
rm -f conftest.$ac_objext
25874
if { (ac_try="$ac_compile"
25875
case "(($ac_try" in
25876
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25877
*) ac_try_echo=$ac_try;;
25879
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25880
(eval "$ac_compile") 2>conftest.er1
25882
grep -v '^ *+' conftest.er1 >conftest.err
25884
cat conftest.err >&5
25885
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25886
(exit $ac_status); } && {
25887
test -z "$ac_c_werror_flag" ||
25888
test ! -s conftest.err
25889
} && test -s conftest.$ac_objext; then
25892
echo "$as_me: failed program was:" >&5
25893
sed 's/^/| /' conftest.$ac_ext >&5
25895
ac_lo=`expr '(' $ac_mid ')' + 1`
25898
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25901
?*) ac_cv_sizeof_int=$ac_lo;;
25902
'') if test "$ac_cv_type_int" = yes; then
25903
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
25904
See \`config.log' for more details." >&5
25905
echo "$as_me: error: cannot compute sizeof (int)
25906
See \`config.log' for more details." >&2;}
25907
{ (exit 77); exit 77; }; }
25913
cat >conftest.$ac_ext <<_ACEOF
25916
cat confdefs.h >>conftest.$ac_ext
25917
cat >>conftest.$ac_ext <<_ACEOF
25918
/* end confdefs.h. */
25919
$ac_includes_default
25920
typedef int ac__type_sizeof_;
25921
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25922
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25924
#include <stdlib.h>
25929
FILE *f = fopen ("conftest.val", "w");
25932
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25934
long int i = longval ();
25935
if (i != ((long int) (sizeof (ac__type_sizeof_))))
25937
fprintf (f, "%ld\n", i);
25941
unsigned long int i = ulongval ();
25942
if (i != ((long int) (sizeof (ac__type_sizeof_))))
25944
fprintf (f, "%lu\n", i);
25946
return ferror (f) || fclose (f) != 0;
25952
rm -f conftest$ac_exeext
25953
if { (ac_try="$ac_link"
25954
case "(($ac_try" in
25955
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25956
*) ac_try_echo=$ac_try;;
25958
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25959
(eval "$ac_link") 2>&5
25961
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25962
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25963
{ (case "(($ac_try" in
25964
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25965
*) ac_try_echo=$ac_try;;
25967
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25968
(eval "$ac_try") 2>&5
25970
echo "$as_me:$LINENO: \$? = $ac_status" >&5
25971
(exit $ac_status); }; }; then
25972
ac_cv_sizeof_int=`cat conftest.val`
25974
echo "$as_me: program exited with status $ac_status" >&5
25975
echo "$as_me: failed program was:" >&5
25976
sed 's/^/| /' conftest.$ac_ext >&5
25978
( exit $ac_status )
25979
if test "$ac_cv_type_int" = yes; then
25980
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
25981
See \`config.log' for more details." >&5
25982
echo "$as_me: error: cannot compute sizeof (int)
25983
See \`config.log' for more details." >&2;}
25984
{ (exit 77); exit 77; }; }
25989
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25993
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
25994
echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
25998
cat >>confdefs.h <<_ACEOF
25999
#define SIZEOF_INT $ac_cv_sizeof_int
26002
{ echo "$as_me:$LINENO: checking for short" >&5
26003
echo $ECHO_N "checking for short... $ECHO_C" >&6; }
26004
if test "${ac_cv_type_short+set}" = set; then
26005
echo $ECHO_N "(cached) $ECHO_C" >&6
26007
cat >conftest.$ac_ext <<_ACEOF
26010
cat confdefs.h >>conftest.$ac_ext
26011
cat >>conftest.$ac_ext <<_ACEOF
26012
/* end confdefs.h. */
26013
$ac_includes_default
26014
typedef short ac__type_new_;
26018
if ((ac__type_new_ *) 0)
26020
if (sizeof (ac__type_new_))
26026
rm -f conftest.$ac_objext
26027
if { (ac_try="$ac_compile"
26028
case "(($ac_try" in
26029
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26030
*) ac_try_echo=$ac_try;;
26032
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26033
(eval "$ac_compile") 2>conftest.er1
26035
grep -v '^ *+' conftest.er1 >conftest.err
26037
cat conftest.err >&5
26038
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26039
(exit $ac_status); } && {
26040
test -z "$ac_c_werror_flag" ||
26041
test ! -s conftest.err
26042
} && test -s conftest.$ac_objext; then
26043
ac_cv_type_short=yes
26045
echo "$as_me: failed program was:" >&5
26046
sed 's/^/| /' conftest.$ac_ext >&5
26048
ac_cv_type_short=no
26051
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26053
{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
26054
echo "${ECHO_T}$ac_cv_type_short" >&6; }
26056
# The cast to long int works around a bug in the HP C Compiler
26057
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26058
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26059
# This bug is HP SR number 8606223364.
26060
{ echo "$as_me:$LINENO: checking size of short" >&5
26061
echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
26062
if test "${ac_cv_sizeof_short+set}" = set; then
26063
echo $ECHO_N "(cached) $ECHO_C" >&6
26065
if test "$cross_compiling" = yes; then
26066
# Depending upon the size, compute the lo and hi bounds.
26067
cat >conftest.$ac_ext <<_ACEOF
26070
cat confdefs.h >>conftest.$ac_ext
26071
cat >>conftest.$ac_ext <<_ACEOF
26072
/* end confdefs.h. */
26073
$ac_includes_default
26074
typedef short ac__type_sizeof_;
26078
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26085
rm -f conftest.$ac_objext
26086
if { (ac_try="$ac_compile"
26087
case "(($ac_try" in
26088
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26089
*) ac_try_echo=$ac_try;;
26091
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26092
(eval "$ac_compile") 2>conftest.er1
26094
grep -v '^ *+' conftest.er1 >conftest.err
26096
cat conftest.err >&5
26097
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26098
(exit $ac_status); } && {
26099
test -z "$ac_c_werror_flag" ||
26100
test ! -s conftest.err
26101
} && test -s conftest.$ac_objext; then
26104
cat >conftest.$ac_ext <<_ACEOF
26107
cat confdefs.h >>conftest.$ac_ext
26108
cat >>conftest.$ac_ext <<_ACEOF
26109
/* end confdefs.h. */
26110
$ac_includes_default
26111
typedef short ac__type_sizeof_;
26115
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26122
rm -f conftest.$ac_objext
26123
if { (ac_try="$ac_compile"
26124
case "(($ac_try" in
26125
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26126
*) ac_try_echo=$ac_try;;
26128
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26129
(eval "$ac_compile") 2>conftest.er1
26131
grep -v '^ *+' conftest.er1 >conftest.err
26133
cat conftest.err >&5
26134
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26135
(exit $ac_status); } && {
26136
test -z "$ac_c_werror_flag" ||
26137
test ! -s conftest.err
26138
} && test -s conftest.$ac_objext; then
26139
ac_hi=$ac_mid; break
26141
echo "$as_me: failed program was:" >&5
26142
sed 's/^/| /' conftest.$ac_ext >&5
26144
ac_lo=`expr $ac_mid + 1`
26145
if test $ac_lo -le $ac_mid; then
26149
ac_mid=`expr 2 '*' $ac_mid + 1`
26152
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26155
echo "$as_me: failed program was:" >&5
26156
sed 's/^/| /' conftest.$ac_ext >&5
26158
cat >conftest.$ac_ext <<_ACEOF
26161
cat confdefs.h >>conftest.$ac_ext
26162
cat >>conftest.$ac_ext <<_ACEOF
26163
/* end confdefs.h. */
26164
$ac_includes_default
26165
typedef short ac__type_sizeof_;
26169
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26176
rm -f conftest.$ac_objext
26177
if { (ac_try="$ac_compile"
26178
case "(($ac_try" in
26179
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26180
*) ac_try_echo=$ac_try;;
26182
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26183
(eval "$ac_compile") 2>conftest.er1
26185
grep -v '^ *+' conftest.er1 >conftest.err
26187
cat conftest.err >&5
26188
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26189
(exit $ac_status); } && {
26190
test -z "$ac_c_werror_flag" ||
26191
test ! -s conftest.err
26192
} && test -s conftest.$ac_objext; then
26195
cat >conftest.$ac_ext <<_ACEOF
26198
cat confdefs.h >>conftest.$ac_ext
26199
cat >>conftest.$ac_ext <<_ACEOF
26200
/* end confdefs.h. */
26201
$ac_includes_default
26202
typedef short ac__type_sizeof_;
26206
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26213
rm -f conftest.$ac_objext
26214
if { (ac_try="$ac_compile"
26215
case "(($ac_try" in
26216
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26217
*) ac_try_echo=$ac_try;;
26219
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26220
(eval "$ac_compile") 2>conftest.er1
26222
grep -v '^ *+' conftest.er1 >conftest.err
26224
cat conftest.err >&5
26225
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26226
(exit $ac_status); } && {
26227
test -z "$ac_c_werror_flag" ||
26228
test ! -s conftest.err
26229
} && test -s conftest.$ac_objext; then
26230
ac_lo=$ac_mid; break
26232
echo "$as_me: failed program was:" >&5
26233
sed 's/^/| /' conftest.$ac_ext >&5
26235
ac_hi=`expr '(' $ac_mid ')' - 1`
26236
if test $ac_mid -le $ac_hi; then
26240
ac_mid=`expr 2 '*' $ac_mid`
26243
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26246
echo "$as_me: failed program was:" >&5
26247
sed 's/^/| /' conftest.$ac_ext >&5
26252
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26255
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26256
# Binary search between lo and hi bounds.
26257
while test "x$ac_lo" != "x$ac_hi"; do
26258
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26259
cat >conftest.$ac_ext <<_ACEOF
26262
cat confdefs.h >>conftest.$ac_ext
26263
cat >>conftest.$ac_ext <<_ACEOF
26264
/* end confdefs.h. */
26265
$ac_includes_default
26266
typedef short ac__type_sizeof_;
26270
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26277
rm -f conftest.$ac_objext
26278
if { (ac_try="$ac_compile"
26279
case "(($ac_try" in
26280
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26281
*) ac_try_echo=$ac_try;;
26283
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26284
(eval "$ac_compile") 2>conftest.er1
26286
grep -v '^ *+' conftest.er1 >conftest.err
26288
cat conftest.err >&5
26289
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26290
(exit $ac_status); } && {
26291
test -z "$ac_c_werror_flag" ||
26292
test ! -s conftest.err
26293
} && test -s conftest.$ac_objext; then
26296
echo "$as_me: failed program was:" >&5
26297
sed 's/^/| /' conftest.$ac_ext >&5
26299
ac_lo=`expr '(' $ac_mid ')' + 1`
26302
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26305
?*) ac_cv_sizeof_short=$ac_lo;;
26306
'') if test "$ac_cv_type_short" = yes; then
26307
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
26308
See \`config.log' for more details." >&5
26309
echo "$as_me: error: cannot compute sizeof (short)
26310
See \`config.log' for more details." >&2;}
26311
{ (exit 77); exit 77; }; }
26313
ac_cv_sizeof_short=0
26317
cat >conftest.$ac_ext <<_ACEOF
26320
cat confdefs.h >>conftest.$ac_ext
26321
cat >>conftest.$ac_ext <<_ACEOF
26322
/* end confdefs.h. */
26323
$ac_includes_default
26324
typedef short ac__type_sizeof_;
26325
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26326
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26328
#include <stdlib.h>
26333
FILE *f = fopen ("conftest.val", "w");
26336
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26338
long int i = longval ();
26339
if (i != ((long int) (sizeof (ac__type_sizeof_))))
26341
fprintf (f, "%ld\n", i);
26345
unsigned long int i = ulongval ();
26346
if (i != ((long int) (sizeof (ac__type_sizeof_))))
26348
fprintf (f, "%lu\n", i);
26350
return ferror (f) || fclose (f) != 0;
26356
rm -f conftest$ac_exeext
26357
if { (ac_try="$ac_link"
26358
case "(($ac_try" in
26359
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26360
*) ac_try_echo=$ac_try;;
26362
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26363
(eval "$ac_link") 2>&5
26365
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26366
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26367
{ (case "(($ac_try" in
26368
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26369
*) ac_try_echo=$ac_try;;
26371
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26372
(eval "$ac_try") 2>&5
26374
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26375
(exit $ac_status); }; }; then
26376
ac_cv_sizeof_short=`cat conftest.val`
26378
echo "$as_me: program exited with status $ac_status" >&5
26379
echo "$as_me: failed program was:" >&5
26380
sed 's/^/| /' conftest.$ac_ext >&5
26382
( exit $ac_status )
26383
if test "$ac_cv_type_short" = yes; then
26384
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
26385
See \`config.log' for more details." >&5
26386
echo "$as_me: error: cannot compute sizeof (short)
26387
See \`config.log' for more details." >&2;}
26388
{ (exit 77); exit 77; }; }
26390
ac_cv_sizeof_short=0
26393
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26397
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
26398
echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
26402
cat >>confdefs.h <<_ACEOF
26403
#define SIZEOF_SHORT $ac_cv_sizeof_short
26406
{ echo "$as_me:$LINENO: checking for long" >&5
26407
echo $ECHO_N "checking for long... $ECHO_C" >&6; }
26408
if test "${ac_cv_type_long+set}" = set; then
26409
echo $ECHO_N "(cached) $ECHO_C" >&6
26411
cat >conftest.$ac_ext <<_ACEOF
26414
cat confdefs.h >>conftest.$ac_ext
26415
cat >>conftest.$ac_ext <<_ACEOF
26416
/* end confdefs.h. */
26417
$ac_includes_default
26418
typedef long ac__type_new_;
26422
if ((ac__type_new_ *) 0)
26424
if (sizeof (ac__type_new_))
26430
rm -f conftest.$ac_objext
26431
if { (ac_try="$ac_compile"
26432
case "(($ac_try" in
26433
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26434
*) ac_try_echo=$ac_try;;
26436
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26437
(eval "$ac_compile") 2>conftest.er1
26439
grep -v '^ *+' conftest.er1 >conftest.err
26441
cat conftest.err >&5
26442
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26443
(exit $ac_status); } && {
26444
test -z "$ac_c_werror_flag" ||
26445
test ! -s conftest.err
26446
} && test -s conftest.$ac_objext; then
26447
ac_cv_type_long=yes
26449
echo "$as_me: failed program was:" >&5
26450
sed 's/^/| /' conftest.$ac_ext >&5
26455
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26457
{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
26458
echo "${ECHO_T}$ac_cv_type_long" >&6; }
26460
# The cast to long int works around a bug in the HP C Compiler
26461
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26462
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26463
# This bug is HP SR number 8606223364.
26464
{ echo "$as_me:$LINENO: checking size of long" >&5
26465
echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
26466
if test "${ac_cv_sizeof_long+set}" = set; then
26467
echo $ECHO_N "(cached) $ECHO_C" >&6
26469
if test "$cross_compiling" = yes; then
26470
# Depending upon the size, compute the lo and hi bounds.
26471
cat >conftest.$ac_ext <<_ACEOF
26474
cat confdefs.h >>conftest.$ac_ext
26475
cat >>conftest.$ac_ext <<_ACEOF
26476
/* end confdefs.h. */
26477
$ac_includes_default
26478
typedef long ac__type_sizeof_;
26482
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26489
rm -f conftest.$ac_objext
26490
if { (ac_try="$ac_compile"
26491
case "(($ac_try" in
26492
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26493
*) ac_try_echo=$ac_try;;
26495
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26496
(eval "$ac_compile") 2>conftest.er1
26498
grep -v '^ *+' conftest.er1 >conftest.err
26500
cat conftest.err >&5
26501
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26502
(exit $ac_status); } && {
26503
test -z "$ac_c_werror_flag" ||
26504
test ! -s conftest.err
26505
} && test -s conftest.$ac_objext; then
26508
cat >conftest.$ac_ext <<_ACEOF
26511
cat confdefs.h >>conftest.$ac_ext
26512
cat >>conftest.$ac_ext <<_ACEOF
26513
/* end confdefs.h. */
26514
$ac_includes_default
26515
typedef long ac__type_sizeof_;
26519
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26526
rm -f conftest.$ac_objext
26527
if { (ac_try="$ac_compile"
26528
case "(($ac_try" in
26529
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26530
*) ac_try_echo=$ac_try;;
26532
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26533
(eval "$ac_compile") 2>conftest.er1
26535
grep -v '^ *+' conftest.er1 >conftest.err
26537
cat conftest.err >&5
26538
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26539
(exit $ac_status); } && {
26540
test -z "$ac_c_werror_flag" ||
26541
test ! -s conftest.err
26542
} && test -s conftest.$ac_objext; then
26543
ac_hi=$ac_mid; break
26545
echo "$as_me: failed program was:" >&5
26546
sed 's/^/| /' conftest.$ac_ext >&5
26548
ac_lo=`expr $ac_mid + 1`
26549
if test $ac_lo -le $ac_mid; then
26553
ac_mid=`expr 2 '*' $ac_mid + 1`
26556
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26559
echo "$as_me: failed program was:" >&5
26560
sed 's/^/| /' conftest.$ac_ext >&5
26562
cat >conftest.$ac_ext <<_ACEOF
26565
cat confdefs.h >>conftest.$ac_ext
26566
cat >>conftest.$ac_ext <<_ACEOF
26567
/* end confdefs.h. */
26568
$ac_includes_default
26569
typedef long ac__type_sizeof_;
26573
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26580
rm -f conftest.$ac_objext
26581
if { (ac_try="$ac_compile"
26582
case "(($ac_try" in
26583
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26584
*) ac_try_echo=$ac_try;;
26586
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26587
(eval "$ac_compile") 2>conftest.er1
26589
grep -v '^ *+' conftest.er1 >conftest.err
26591
cat conftest.err >&5
26592
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26593
(exit $ac_status); } && {
26594
test -z "$ac_c_werror_flag" ||
26595
test ! -s conftest.err
26596
} && test -s conftest.$ac_objext; then
26599
cat >conftest.$ac_ext <<_ACEOF
26602
cat confdefs.h >>conftest.$ac_ext
26603
cat >>conftest.$ac_ext <<_ACEOF
26604
/* end confdefs.h. */
26605
$ac_includes_default
26606
typedef long ac__type_sizeof_;
26610
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
26617
rm -f conftest.$ac_objext
26618
if { (ac_try="$ac_compile"
26619
case "(($ac_try" in
26620
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26621
*) ac_try_echo=$ac_try;;
26623
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26624
(eval "$ac_compile") 2>conftest.er1
26626
grep -v '^ *+' conftest.er1 >conftest.err
26628
cat conftest.err >&5
26629
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26630
(exit $ac_status); } && {
26631
test -z "$ac_c_werror_flag" ||
26632
test ! -s conftest.err
26633
} && test -s conftest.$ac_objext; then
26634
ac_lo=$ac_mid; break
26636
echo "$as_me: failed program was:" >&5
26637
sed 's/^/| /' conftest.$ac_ext >&5
26639
ac_hi=`expr '(' $ac_mid ')' - 1`
26640
if test $ac_mid -le $ac_hi; then
26644
ac_mid=`expr 2 '*' $ac_mid`
26647
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26650
echo "$as_me: failed program was:" >&5
26651
sed 's/^/| /' conftest.$ac_ext >&5
26656
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26659
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26660
# Binary search between lo and hi bounds.
26661
while test "x$ac_lo" != "x$ac_hi"; do
26662
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26663
cat >conftest.$ac_ext <<_ACEOF
26666
cat confdefs.h >>conftest.$ac_ext
26667
cat >>conftest.$ac_ext <<_ACEOF
26668
/* end confdefs.h. */
26669
$ac_includes_default
26670
typedef long ac__type_sizeof_;
26674
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26681
rm -f conftest.$ac_objext
26682
if { (ac_try="$ac_compile"
26683
case "(($ac_try" in
26684
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26685
*) ac_try_echo=$ac_try;;
26687
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26688
(eval "$ac_compile") 2>conftest.er1
26690
grep -v '^ *+' conftest.er1 >conftest.err
26692
cat conftest.err >&5
26693
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26694
(exit $ac_status); } && {
26695
test -z "$ac_c_werror_flag" ||
26696
test ! -s conftest.err
26697
} && test -s conftest.$ac_objext; then
26700
echo "$as_me: failed program was:" >&5
26701
sed 's/^/| /' conftest.$ac_ext >&5
26703
ac_lo=`expr '(' $ac_mid ')' + 1`
26706
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26709
?*) ac_cv_sizeof_long=$ac_lo;;
26710
'') if test "$ac_cv_type_long" = yes; then
26711
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
26712
See \`config.log' for more details." >&5
26713
echo "$as_me: error: cannot compute sizeof (long)
26714
See \`config.log' for more details." >&2;}
26715
{ (exit 77); exit 77; }; }
26717
ac_cv_sizeof_long=0
26721
cat >conftest.$ac_ext <<_ACEOF
26724
cat confdefs.h >>conftest.$ac_ext
26725
cat >>conftest.$ac_ext <<_ACEOF
26726
/* end confdefs.h. */
26727
$ac_includes_default
26728
typedef long ac__type_sizeof_;
26729
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
26730
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
26732
#include <stdlib.h>
26737
FILE *f = fopen ("conftest.val", "w");
26740
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
26742
long int i = longval ();
26743
if (i != ((long int) (sizeof (ac__type_sizeof_))))
26745
fprintf (f, "%ld\n", i);
26749
unsigned long int i = ulongval ();
26750
if (i != ((long int) (sizeof (ac__type_sizeof_))))
26752
fprintf (f, "%lu\n", i);
26754
return ferror (f) || fclose (f) != 0;
26760
rm -f conftest$ac_exeext
26761
if { (ac_try="$ac_link"
26762
case "(($ac_try" in
26763
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26764
*) ac_try_echo=$ac_try;;
26766
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26767
(eval "$ac_link") 2>&5
26769
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26770
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26771
{ (case "(($ac_try" in
26772
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26773
*) ac_try_echo=$ac_try;;
26775
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26776
(eval "$ac_try") 2>&5
26778
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26779
(exit $ac_status); }; }; then
26780
ac_cv_sizeof_long=`cat conftest.val`
26782
echo "$as_me: program exited with status $ac_status" >&5
26783
echo "$as_me: failed program was:" >&5
26784
sed 's/^/| /' conftest.$ac_ext >&5
26786
( exit $ac_status )
26787
if test "$ac_cv_type_long" = yes; then
26788
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
26789
See \`config.log' for more details." >&5
26790
echo "$as_me: error: cannot compute sizeof (long)
26791
See \`config.log' for more details." >&2;}
26792
{ (exit 77); exit 77; }; }
26794
ac_cv_sizeof_long=0
26797
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26801
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
26802
echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
26806
cat >>confdefs.h <<_ACEOF
26807
#define SIZEOF_LONG $ac_cv_sizeof_long
26810
{ echo "$as_me:$LINENO: checking for char *" >&5
26811
echo $ECHO_N "checking for char *... $ECHO_C" >&6; }
26812
if test "${ac_cv_type_char_p+set}" = set; then
26813
echo $ECHO_N "(cached) $ECHO_C" >&6
26815
cat >conftest.$ac_ext <<_ACEOF
26818
cat confdefs.h >>conftest.$ac_ext
26819
cat >>conftest.$ac_ext <<_ACEOF
26820
/* end confdefs.h. */
26821
$ac_includes_default
26822
typedef char * ac__type_new_;
26826
if ((ac__type_new_ *) 0)
26828
if (sizeof (ac__type_new_))
26834
rm -f conftest.$ac_objext
26835
if { (ac_try="$ac_compile"
26836
case "(($ac_try" in
26837
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26838
*) ac_try_echo=$ac_try;;
26840
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26841
(eval "$ac_compile") 2>conftest.er1
26843
grep -v '^ *+' conftest.er1 >conftest.err
26845
cat conftest.err >&5
26846
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26847
(exit $ac_status); } && {
26848
test -z "$ac_c_werror_flag" ||
26849
test ! -s conftest.err
26850
} && test -s conftest.$ac_objext; then
26851
ac_cv_type_char_p=yes
26853
echo "$as_me: failed program was:" >&5
26854
sed 's/^/| /' conftest.$ac_ext >&5
26856
ac_cv_type_char_p=no
26859
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26861
{ echo "$as_me:$LINENO: result: $ac_cv_type_char_p" >&5
26862
echo "${ECHO_T}$ac_cv_type_char_p" >&6; }
26864
# The cast to long int works around a bug in the HP C Compiler
26865
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26866
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26867
# This bug is HP SR number 8606223364.
26868
{ echo "$as_me:$LINENO: checking size of char *" >&5
26869
echo $ECHO_N "checking size of char *... $ECHO_C" >&6; }
26870
if test "${ac_cv_sizeof_char_p+set}" = set; then
26871
echo $ECHO_N "(cached) $ECHO_C" >&6
26873
if test "$cross_compiling" = yes; then
26874
# Depending upon the size, compute the lo and hi bounds.
26875
cat >conftest.$ac_ext <<_ACEOF
26878
cat confdefs.h >>conftest.$ac_ext
26879
cat >>conftest.$ac_ext <<_ACEOF
26880
/* end confdefs.h. */
26881
$ac_includes_default
26882
typedef char * ac__type_sizeof_;
26886
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
26893
rm -f conftest.$ac_objext
26894
if { (ac_try="$ac_compile"
26895
case "(($ac_try" in
26896
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26897
*) ac_try_echo=$ac_try;;
26899
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26900
(eval "$ac_compile") 2>conftest.er1
26902
grep -v '^ *+' conftest.er1 >conftest.err
26904
cat conftest.err >&5
26905
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26906
(exit $ac_status); } && {
26907
test -z "$ac_c_werror_flag" ||
26908
test ! -s conftest.err
26909
} && test -s conftest.$ac_objext; then
26912
cat >conftest.$ac_ext <<_ACEOF
26915
cat confdefs.h >>conftest.$ac_ext
26916
cat >>conftest.$ac_ext <<_ACEOF
26917
/* end confdefs.h. */
26918
$ac_includes_default
26919
typedef char * ac__type_sizeof_;
26923
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
26930
rm -f conftest.$ac_objext
26931
if { (ac_try="$ac_compile"
26932
case "(($ac_try" in
26933
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26934
*) ac_try_echo=$ac_try;;
26936
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26937
(eval "$ac_compile") 2>conftest.er1
26939
grep -v '^ *+' conftest.er1 >conftest.err
26941
cat conftest.err >&5
26942
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26943
(exit $ac_status); } && {
26944
test -z "$ac_c_werror_flag" ||
26945
test ! -s conftest.err
26946
} && test -s conftest.$ac_objext; then
26947
ac_hi=$ac_mid; break
26949
echo "$as_me: failed program was:" >&5
26950
sed 's/^/| /' conftest.$ac_ext >&5
26952
ac_lo=`expr $ac_mid + 1`
26953
if test $ac_lo -le $ac_mid; then
26957
ac_mid=`expr 2 '*' $ac_mid + 1`
26960
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26963
echo "$as_me: failed program was:" >&5
26964
sed 's/^/| /' conftest.$ac_ext >&5
26966
cat >conftest.$ac_ext <<_ACEOF
26969
cat confdefs.h >>conftest.$ac_ext
26970
cat >>conftest.$ac_ext <<_ACEOF
26971
/* end confdefs.h. */
26972
$ac_includes_default
26973
typedef char * ac__type_sizeof_;
26977
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
26984
rm -f conftest.$ac_objext
26985
if { (ac_try="$ac_compile"
26986
case "(($ac_try" in
26987
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26988
*) ac_try_echo=$ac_try;;
26990
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26991
(eval "$ac_compile") 2>conftest.er1
26993
grep -v '^ *+' conftest.er1 >conftest.err
26995
cat conftest.err >&5
26996
echo "$as_me:$LINENO: \$? = $ac_status" >&5
26997
(exit $ac_status); } && {
26998
test -z "$ac_c_werror_flag" ||
26999
test ! -s conftest.err
27000
} && test -s conftest.$ac_objext; then
27003
cat >conftest.$ac_ext <<_ACEOF
27006
cat confdefs.h >>conftest.$ac_ext
27007
cat >>conftest.$ac_ext <<_ACEOF
27008
/* end confdefs.h. */
27009
$ac_includes_default
27010
typedef char * ac__type_sizeof_;
27014
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27021
rm -f conftest.$ac_objext
27022
if { (ac_try="$ac_compile"
27023
case "(($ac_try" in
27024
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27025
*) ac_try_echo=$ac_try;;
27027
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27028
(eval "$ac_compile") 2>conftest.er1
27030
grep -v '^ *+' conftest.er1 >conftest.err
27032
cat conftest.err >&5
27033
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27034
(exit $ac_status); } && {
27035
test -z "$ac_c_werror_flag" ||
27036
test ! -s conftest.err
27037
} && test -s conftest.$ac_objext; then
27038
ac_lo=$ac_mid; break
27040
echo "$as_me: failed program was:" >&5
27041
sed 's/^/| /' conftest.$ac_ext >&5
27043
ac_hi=`expr '(' $ac_mid ')' - 1`
27044
if test $ac_mid -le $ac_hi; then
27048
ac_mid=`expr 2 '*' $ac_mid`
27051
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27054
echo "$as_me: failed program was:" >&5
27055
sed 's/^/| /' conftest.$ac_ext >&5
27060
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27063
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27064
# Binary search between lo and hi bounds.
27065
while test "x$ac_lo" != "x$ac_hi"; do
27066
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27067
cat >conftest.$ac_ext <<_ACEOF
27070
cat confdefs.h >>conftest.$ac_ext
27071
cat >>conftest.$ac_ext <<_ACEOF
27072
/* end confdefs.h. */
27073
$ac_includes_default
27074
typedef char * ac__type_sizeof_;
27078
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27085
rm -f conftest.$ac_objext
27086
if { (ac_try="$ac_compile"
27087
case "(($ac_try" in
27088
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27089
*) ac_try_echo=$ac_try;;
27091
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27092
(eval "$ac_compile") 2>conftest.er1
27094
grep -v '^ *+' conftest.er1 >conftest.err
27096
cat conftest.err >&5
27097
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27098
(exit $ac_status); } && {
27099
test -z "$ac_c_werror_flag" ||
27100
test ! -s conftest.err
27101
} && test -s conftest.$ac_objext; then
27104
echo "$as_me: failed program was:" >&5
27105
sed 's/^/| /' conftest.$ac_ext >&5
27107
ac_lo=`expr '(' $ac_mid ')' + 1`
27110
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27113
?*) ac_cv_sizeof_char_p=$ac_lo;;
27114
'') if test "$ac_cv_type_char_p" = yes; then
27115
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
27116
See \`config.log' for more details." >&5
27117
echo "$as_me: error: cannot compute sizeof (char *)
27118
See \`config.log' for more details." >&2;}
27119
{ (exit 77); exit 77; }; }
27121
ac_cv_sizeof_char_p=0
27125
cat >conftest.$ac_ext <<_ACEOF
27128
cat confdefs.h >>conftest.$ac_ext
27129
cat >>conftest.$ac_ext <<_ACEOF
27130
/* end confdefs.h. */
27131
$ac_includes_default
27132
typedef char * ac__type_sizeof_;
27133
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27134
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27136
#include <stdlib.h>
27141
FILE *f = fopen ("conftest.val", "w");
27144
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27146
long int i = longval ();
27147
if (i != ((long int) (sizeof (ac__type_sizeof_))))
27149
fprintf (f, "%ld\n", i);
27153
unsigned long int i = ulongval ();
27154
if (i != ((long int) (sizeof (ac__type_sizeof_))))
27156
fprintf (f, "%lu\n", i);
27158
return ferror (f) || fclose (f) != 0;
27164
rm -f conftest$ac_exeext
27165
if { (ac_try="$ac_link"
27166
case "(($ac_try" in
27167
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27168
*) ac_try_echo=$ac_try;;
27170
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27171
(eval "$ac_link") 2>&5
27173
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27174
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27175
{ (case "(($ac_try" in
27176
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27177
*) ac_try_echo=$ac_try;;
27179
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27180
(eval "$ac_try") 2>&5
27182
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27183
(exit $ac_status); }; }; then
27184
ac_cv_sizeof_char_p=`cat conftest.val`
27186
echo "$as_me: program exited with status $ac_status" >&5
27187
echo "$as_me: failed program was:" >&5
27188
sed 's/^/| /' conftest.$ac_ext >&5
27190
( exit $ac_status )
27191
if test "$ac_cv_type_char_p" = yes; then
27192
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
27193
See \`config.log' for more details." >&5
27194
echo "$as_me: error: cannot compute sizeof (char *)
27195
See \`config.log' for more details." >&2;}
27196
{ (exit 77); exit 77; }; }
27198
ac_cv_sizeof_char_p=0
27201
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27205
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
27206
echo "${ECHO_T}$ac_cv_sizeof_char_p" >&6; }
27210
cat >>confdefs.h <<_ACEOF
27211
#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
27216
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
27217
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
27218
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
27219
echo $ECHO_N "(cached) $ECHO_C" >&6
27221
ac_check_lib_save_LIBS=$LIBS
27223
cat >conftest.$ac_ext <<_ACEOF
27226
cat confdefs.h >>conftest.$ac_ext
27227
cat >>conftest.$ac_ext <<_ACEOF
27228
/* end confdefs.h. */
27230
/* Override any GCC internal prototype to avoid an error.
27231
Use char because int might match the return type of a GCC
27232
builtin and then its argument prototype would still apply. */
27245
rm -f conftest.$ac_objext conftest$ac_exeext
27246
if { (ac_try="$ac_link"
27247
case "(($ac_try" in
27248
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27249
*) ac_try_echo=$ac_try;;
27251
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27252
(eval "$ac_link") 2>conftest.er1
27254
grep -v '^ *+' conftest.er1 >conftest.err
27256
cat conftest.err >&5
27257
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27258
(exit $ac_status); } && {
27259
test -z "$ac_c_werror_flag" ||
27260
test ! -s conftest.err
27261
} && test -s conftest$ac_exeext &&
27262
$as_test_x conftest$ac_exeext; then
27263
ac_cv_lib_dl_dlopen=yes
27265
echo "$as_me: failed program was:" >&5
27266
sed 's/^/| /' conftest.$ac_ext >&5
27268
ac_cv_lib_dl_dlopen=no
27271
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27272
conftest$ac_exeext conftest.$ac_ext
27273
LIBS=$ac_check_lib_save_LIBS
27275
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
27276
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
27277
if test $ac_cv_lib_dl_dlopen = yes; then
27280
ac_cv_have_dlfcn=yes
27285
{ echo "$as_me:$LINENO: checking for shl_unload in -ldld" >&5
27286
echo $ECHO_N "checking for shl_unload in -ldld... $ECHO_C" >&6; }
27287
if test "${ac_cv_lib_dld_shl_unload+set}" = set; then
27288
echo $ECHO_N "(cached) $ECHO_C" >&6
27290
ac_check_lib_save_LIBS=$LIBS
27292
cat >conftest.$ac_ext <<_ACEOF
27295
cat confdefs.h >>conftest.$ac_ext
27296
cat >>conftest.$ac_ext <<_ACEOF
27297
/* end confdefs.h. */
27299
/* Override any GCC internal prototype to avoid an error.
27300
Use char because int might match the return type of a GCC
27301
builtin and then its argument prototype would still apply. */
27305
char shl_unload ();
27309
return shl_unload ();
27314
rm -f conftest.$ac_objext conftest$ac_exeext
27315
if { (ac_try="$ac_link"
27316
case "(($ac_try" in
27317
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27318
*) ac_try_echo=$ac_try;;
27320
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27321
(eval "$ac_link") 2>conftest.er1
27323
grep -v '^ *+' conftest.er1 >conftest.err
27325
cat conftest.err >&5
27326
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27327
(exit $ac_status); } && {
27328
test -z "$ac_c_werror_flag" ||
27329
test ! -s conftest.err
27330
} && test -s conftest$ac_exeext &&
27331
$as_test_x conftest$ac_exeext; then
27332
ac_cv_lib_dld_shl_unload=yes
27334
echo "$as_me: failed program was:" >&5
27335
sed 's/^/| /' conftest.$ac_ext >&5
27337
ac_cv_lib_dld_shl_unload=no
27340
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27341
conftest$ac_exeext conftest.$ac_ext
27342
LIBS=$ac_check_lib_save_LIBS
27344
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_unload" >&5
27345
echo "${ECHO_T}$ac_cv_lib_dld_shl_unload" >&6; }
27346
if test $ac_cv_lib_dld_shl_unload = yes; then
27349
ac_cv_have_shload=yes
27359
{ echo "$as_me:$LINENO: checking for size_t" >&5
27360
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
27361
if test "${ac_cv_type_size_t+set}" = set; then
27362
echo $ECHO_N "(cached) $ECHO_C" >&6
27364
cat >conftest.$ac_ext <<_ACEOF
27367
cat confdefs.h >>conftest.$ac_ext
27368
cat >>conftest.$ac_ext <<_ACEOF
27369
/* end confdefs.h. */
27370
$ac_includes_default
27371
typedef size_t ac__type_new_;
27375
if ((ac__type_new_ *) 0)
27377
if (sizeof (ac__type_new_))
27383
rm -f conftest.$ac_objext
27384
if { (ac_try="$ac_compile"
27385
case "(($ac_try" in
27386
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27387
*) ac_try_echo=$ac_try;;
27389
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27390
(eval "$ac_compile") 2>conftest.er1
27392
grep -v '^ *+' conftest.er1 >conftest.err
27394
cat conftest.err >&5
27395
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27396
(exit $ac_status); } && {
27397
test -z "$ac_c_werror_flag" ||
27398
test ! -s conftest.err
27399
} && test -s conftest.$ac_objext; then
27400
ac_cv_type_size_t=yes
27402
echo "$as_me: failed program was:" >&5
27403
sed 's/^/| /' conftest.$ac_ext >&5
27405
ac_cv_type_size_t=no
27408
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27410
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
27411
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
27413
# The cast to long int works around a bug in the HP C Compiler
27414
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27415
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27416
# This bug is HP SR number 8606223364.
27417
{ echo "$as_me:$LINENO: checking size of size_t" >&5
27418
echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
27419
if test "${ac_cv_sizeof_size_t+set}" = set; then
27420
echo $ECHO_N "(cached) $ECHO_C" >&6
27422
if test "$cross_compiling" = yes; then
27423
# Depending upon the size, compute the lo and hi bounds.
27424
cat >conftest.$ac_ext <<_ACEOF
27427
cat confdefs.h >>conftest.$ac_ext
27428
cat >>conftest.$ac_ext <<_ACEOF
27429
/* end confdefs.h. */
27430
$ac_includes_default
27431
typedef size_t ac__type_sizeof_;
27435
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27442
rm -f conftest.$ac_objext
27443
if { (ac_try="$ac_compile"
27444
case "(($ac_try" in
27445
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27446
*) ac_try_echo=$ac_try;;
27448
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27449
(eval "$ac_compile") 2>conftest.er1
27451
grep -v '^ *+' conftest.er1 >conftest.err
27453
cat conftest.err >&5
27454
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27455
(exit $ac_status); } && {
27456
test -z "$ac_c_werror_flag" ||
27457
test ! -s conftest.err
27458
} && test -s conftest.$ac_objext; then
27461
cat >conftest.$ac_ext <<_ACEOF
27464
cat confdefs.h >>conftest.$ac_ext
27465
cat >>conftest.$ac_ext <<_ACEOF
27466
/* end confdefs.h. */
27467
$ac_includes_default
27468
typedef size_t ac__type_sizeof_;
27472
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27479
rm -f conftest.$ac_objext
27480
if { (ac_try="$ac_compile"
27481
case "(($ac_try" in
27482
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27483
*) ac_try_echo=$ac_try;;
27485
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27486
(eval "$ac_compile") 2>conftest.er1
27488
grep -v '^ *+' conftest.er1 >conftest.err
27490
cat conftest.err >&5
27491
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27492
(exit $ac_status); } && {
27493
test -z "$ac_c_werror_flag" ||
27494
test ! -s conftest.err
27495
} && test -s conftest.$ac_objext; then
27496
ac_hi=$ac_mid; break
27498
echo "$as_me: failed program was:" >&5
27499
sed 's/^/| /' conftest.$ac_ext >&5
27501
ac_lo=`expr $ac_mid + 1`
27502
if test $ac_lo -le $ac_mid; then
27506
ac_mid=`expr 2 '*' $ac_mid + 1`
27509
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27512
echo "$as_me: failed program was:" >&5
27513
sed 's/^/| /' conftest.$ac_ext >&5
27515
cat >conftest.$ac_ext <<_ACEOF
27518
cat confdefs.h >>conftest.$ac_ext
27519
cat >>conftest.$ac_ext <<_ACEOF
27520
/* end confdefs.h. */
27521
$ac_includes_default
27522
typedef size_t ac__type_sizeof_;
27526
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27533
rm -f conftest.$ac_objext
27534
if { (ac_try="$ac_compile"
27535
case "(($ac_try" in
27536
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27537
*) ac_try_echo=$ac_try;;
27539
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27540
(eval "$ac_compile") 2>conftest.er1
27542
grep -v '^ *+' conftest.er1 >conftest.err
27544
cat conftest.err >&5
27545
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27546
(exit $ac_status); } && {
27547
test -z "$ac_c_werror_flag" ||
27548
test ! -s conftest.err
27549
} && test -s conftest.$ac_objext; then
27552
cat >conftest.$ac_ext <<_ACEOF
27555
cat confdefs.h >>conftest.$ac_ext
27556
cat >>conftest.$ac_ext <<_ACEOF
27557
/* end confdefs.h. */
27558
$ac_includes_default
27559
typedef size_t ac__type_sizeof_;
27563
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27570
rm -f conftest.$ac_objext
27571
if { (ac_try="$ac_compile"
27572
case "(($ac_try" in
27573
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27574
*) ac_try_echo=$ac_try;;
27576
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27577
(eval "$ac_compile") 2>conftest.er1
27579
grep -v '^ *+' conftest.er1 >conftest.err
27581
cat conftest.err >&5
27582
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27583
(exit $ac_status); } && {
27584
test -z "$ac_c_werror_flag" ||
27585
test ! -s conftest.err
27586
} && test -s conftest.$ac_objext; then
27587
ac_lo=$ac_mid; break
27589
echo "$as_me: failed program was:" >&5
27590
sed 's/^/| /' conftest.$ac_ext >&5
27592
ac_hi=`expr '(' $ac_mid ')' - 1`
27593
if test $ac_mid -le $ac_hi; then
27597
ac_mid=`expr 2 '*' $ac_mid`
27600
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27603
echo "$as_me: failed program was:" >&5
27604
sed 's/^/| /' conftest.$ac_ext >&5
27609
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27612
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27613
# Binary search between lo and hi bounds.
27614
while test "x$ac_lo" != "x$ac_hi"; do
27615
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27616
cat >conftest.$ac_ext <<_ACEOF
27619
cat confdefs.h >>conftest.$ac_ext
27620
cat >>conftest.$ac_ext <<_ACEOF
27621
/* end confdefs.h. */
27622
$ac_includes_default
27623
typedef size_t ac__type_sizeof_;
27627
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27634
rm -f conftest.$ac_objext
27635
if { (ac_try="$ac_compile"
27636
case "(($ac_try" in
27637
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27638
*) ac_try_echo=$ac_try;;
27640
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27641
(eval "$ac_compile") 2>conftest.er1
27643
grep -v '^ *+' conftest.er1 >conftest.err
27645
cat conftest.err >&5
27646
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27647
(exit $ac_status); } && {
27648
test -z "$ac_c_werror_flag" ||
27649
test ! -s conftest.err
27650
} && test -s conftest.$ac_objext; then
27653
echo "$as_me: failed program was:" >&5
27654
sed 's/^/| /' conftest.$ac_ext >&5
27656
ac_lo=`expr '(' $ac_mid ')' + 1`
27659
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27662
?*) ac_cv_sizeof_size_t=$ac_lo;;
27663
'') if test "$ac_cv_type_size_t" = yes; then
27664
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
27665
See \`config.log' for more details." >&5
27666
echo "$as_me: error: cannot compute sizeof (size_t)
27667
See \`config.log' for more details." >&2;}
27668
{ (exit 77); exit 77; }; }
27670
ac_cv_sizeof_size_t=0
27674
cat >conftest.$ac_ext <<_ACEOF
27677
cat confdefs.h >>conftest.$ac_ext
27678
cat >>conftest.$ac_ext <<_ACEOF
27679
/* end confdefs.h. */
27680
$ac_includes_default
27681
typedef size_t ac__type_sizeof_;
27682
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
27683
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
27685
#include <stdlib.h>
27690
FILE *f = fopen ("conftest.val", "w");
27693
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
27695
long int i = longval ();
27696
if (i != ((long int) (sizeof (ac__type_sizeof_))))
27698
fprintf (f, "%ld\n", i);
27702
unsigned long int i = ulongval ();
27703
if (i != ((long int) (sizeof (ac__type_sizeof_))))
27705
fprintf (f, "%lu\n", i);
27707
return ferror (f) || fclose (f) != 0;
27713
rm -f conftest$ac_exeext
27714
if { (ac_try="$ac_link"
27715
case "(($ac_try" in
27716
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27717
*) ac_try_echo=$ac_try;;
27719
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27720
(eval "$ac_link") 2>&5
27722
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27723
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27724
{ (case "(($ac_try" in
27725
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27726
*) ac_try_echo=$ac_try;;
27728
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27729
(eval "$ac_try") 2>&5
27731
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27732
(exit $ac_status); }; }; then
27733
ac_cv_sizeof_size_t=`cat conftest.val`
27735
echo "$as_me: program exited with status $ac_status" >&5
27736
echo "$as_me: failed program was:" >&5
27737
sed 's/^/| /' conftest.$ac_ext >&5
27739
( exit $ac_status )
27740
if test "$ac_cv_type_size_t" = yes; then
27741
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
27742
See \`config.log' for more details." >&5
27743
echo "$as_me: error: cannot compute sizeof (size_t)
27744
See \`config.log' for more details." >&2;}
27745
{ (exit 77); exit 77; }; }
27747
ac_cv_sizeof_size_t=0
27750
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27754
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
27755
echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
27759
cat >>confdefs.h <<_ACEOF
27760
#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
27764
{ echo "$as_me:$LINENO: checking for unsigned long" >&5
27765
echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6; }
27766
if test "${ac_cv_type_unsigned_long+set}" = set; then
27767
echo $ECHO_N "(cached) $ECHO_C" >&6
27769
cat >conftest.$ac_ext <<_ACEOF
27772
cat confdefs.h >>conftest.$ac_ext
27773
cat >>conftest.$ac_ext <<_ACEOF
27774
/* end confdefs.h. */
27775
$ac_includes_default
27776
typedef unsigned long ac__type_new_;
27780
if ((ac__type_new_ *) 0)
27782
if (sizeof (ac__type_new_))
27788
rm -f conftest.$ac_objext
27789
if { (ac_try="$ac_compile"
27790
case "(($ac_try" in
27791
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27792
*) ac_try_echo=$ac_try;;
27794
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27795
(eval "$ac_compile") 2>conftest.er1
27797
grep -v '^ *+' conftest.er1 >conftest.err
27799
cat conftest.err >&5
27800
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27801
(exit $ac_status); } && {
27802
test -z "$ac_c_werror_flag" ||
27803
test ! -s conftest.err
27804
} && test -s conftest.$ac_objext; then
27805
ac_cv_type_unsigned_long=yes
27807
echo "$as_me: failed program was:" >&5
27808
sed 's/^/| /' conftest.$ac_ext >&5
27810
ac_cv_type_unsigned_long=no
27813
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27815
{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
27816
echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6; }
27818
# The cast to long int works around a bug in the HP C Compiler
27819
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27820
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27821
# This bug is HP SR number 8606223364.
27822
{ echo "$as_me:$LINENO: checking size of unsigned long" >&5
27823
echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6; }
27824
if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
27825
echo $ECHO_N "(cached) $ECHO_C" >&6
27827
if test "$cross_compiling" = yes; then
27828
# Depending upon the size, compute the lo and hi bounds.
27829
cat >conftest.$ac_ext <<_ACEOF
27832
cat confdefs.h >>conftest.$ac_ext
27833
cat >>conftest.$ac_ext <<_ACEOF
27834
/* end confdefs.h. */
27835
$ac_includes_default
27836
typedef unsigned long ac__type_sizeof_;
27840
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
27847
rm -f conftest.$ac_objext
27848
if { (ac_try="$ac_compile"
27849
case "(($ac_try" in
27850
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27851
*) ac_try_echo=$ac_try;;
27853
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27854
(eval "$ac_compile") 2>conftest.er1
27856
grep -v '^ *+' conftest.er1 >conftest.err
27858
cat conftest.err >&5
27859
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27860
(exit $ac_status); } && {
27861
test -z "$ac_c_werror_flag" ||
27862
test ! -s conftest.err
27863
} && test -s conftest.$ac_objext; then
27866
cat >conftest.$ac_ext <<_ACEOF
27869
cat confdefs.h >>conftest.$ac_ext
27870
cat >>conftest.$ac_ext <<_ACEOF
27871
/* end confdefs.h. */
27872
$ac_includes_default
27873
typedef unsigned long ac__type_sizeof_;
27877
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
27884
rm -f conftest.$ac_objext
27885
if { (ac_try="$ac_compile"
27886
case "(($ac_try" in
27887
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27888
*) ac_try_echo=$ac_try;;
27890
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27891
(eval "$ac_compile") 2>conftest.er1
27893
grep -v '^ *+' conftest.er1 >conftest.err
27895
cat conftest.err >&5
27896
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27897
(exit $ac_status); } && {
27898
test -z "$ac_c_werror_flag" ||
27899
test ! -s conftest.err
27900
} && test -s conftest.$ac_objext; then
27901
ac_hi=$ac_mid; break
27903
echo "$as_me: failed program was:" >&5
27904
sed 's/^/| /' conftest.$ac_ext >&5
27906
ac_lo=`expr $ac_mid + 1`
27907
if test $ac_lo -le $ac_mid; then
27911
ac_mid=`expr 2 '*' $ac_mid + 1`
27914
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27917
echo "$as_me: failed program was:" >&5
27918
sed 's/^/| /' conftest.$ac_ext >&5
27920
cat >conftest.$ac_ext <<_ACEOF
27923
cat confdefs.h >>conftest.$ac_ext
27924
cat >>conftest.$ac_ext <<_ACEOF
27925
/* end confdefs.h. */
27926
$ac_includes_default
27927
typedef unsigned long ac__type_sizeof_;
27931
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
27938
rm -f conftest.$ac_objext
27939
if { (ac_try="$ac_compile"
27940
case "(($ac_try" in
27941
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27942
*) ac_try_echo=$ac_try;;
27944
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27945
(eval "$ac_compile") 2>conftest.er1
27947
grep -v '^ *+' conftest.er1 >conftest.err
27949
cat conftest.err >&5
27950
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27951
(exit $ac_status); } && {
27952
test -z "$ac_c_werror_flag" ||
27953
test ! -s conftest.err
27954
} && test -s conftest.$ac_objext; then
27957
cat >conftest.$ac_ext <<_ACEOF
27960
cat confdefs.h >>conftest.$ac_ext
27961
cat >>conftest.$ac_ext <<_ACEOF
27962
/* end confdefs.h. */
27963
$ac_includes_default
27964
typedef unsigned long ac__type_sizeof_;
27968
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
27975
rm -f conftest.$ac_objext
27976
if { (ac_try="$ac_compile"
27977
case "(($ac_try" in
27978
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27979
*) ac_try_echo=$ac_try;;
27981
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27982
(eval "$ac_compile") 2>conftest.er1
27984
grep -v '^ *+' conftest.er1 >conftest.err
27986
cat conftest.err >&5
27987
echo "$as_me:$LINENO: \$? = $ac_status" >&5
27988
(exit $ac_status); } && {
27989
test -z "$ac_c_werror_flag" ||
27990
test ! -s conftest.err
27991
} && test -s conftest.$ac_objext; then
27992
ac_lo=$ac_mid; break
27994
echo "$as_me: failed program was:" >&5
27995
sed 's/^/| /' conftest.$ac_ext >&5
27997
ac_hi=`expr '(' $ac_mid ')' - 1`
27998
if test $ac_mid -le $ac_hi; then
28002
ac_mid=`expr 2 '*' $ac_mid`
28005
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28008
echo "$as_me: failed program was:" >&5
28009
sed 's/^/| /' conftest.$ac_ext >&5
28014
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28017
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28018
# Binary search between lo and hi bounds.
28019
while test "x$ac_lo" != "x$ac_hi"; do
28020
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28021
cat >conftest.$ac_ext <<_ACEOF
28024
cat confdefs.h >>conftest.$ac_ext
28025
cat >>conftest.$ac_ext <<_ACEOF
28026
/* end confdefs.h. */
28027
$ac_includes_default
28028
typedef unsigned long ac__type_sizeof_;
28032
static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
28039
rm -f conftest.$ac_objext
28040
if { (ac_try="$ac_compile"
28041
case "(($ac_try" in
28042
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28043
*) ac_try_echo=$ac_try;;
28045
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28046
(eval "$ac_compile") 2>conftest.er1
28048
grep -v '^ *+' conftest.er1 >conftest.err
28050
cat conftest.err >&5
28051
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28052
(exit $ac_status); } && {
28053
test -z "$ac_c_werror_flag" ||
28054
test ! -s conftest.err
28055
} && test -s conftest.$ac_objext; then
28058
echo "$as_me: failed program was:" >&5
28059
sed 's/^/| /' conftest.$ac_ext >&5
28061
ac_lo=`expr '(' $ac_mid ')' + 1`
28064
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28067
?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
28068
'') if test "$ac_cv_type_unsigned_long" = yes; then
28069
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
28070
See \`config.log' for more details." >&5
28071
echo "$as_me: error: cannot compute sizeof (unsigned long)
28072
See \`config.log' for more details." >&2;}
28073
{ (exit 77); exit 77; }; }
28075
ac_cv_sizeof_unsigned_long=0
28079
cat >conftest.$ac_ext <<_ACEOF
28082
cat confdefs.h >>conftest.$ac_ext
28083
cat >>conftest.$ac_ext <<_ACEOF
28084
/* end confdefs.h. */
28085
$ac_includes_default
28086
typedef unsigned long ac__type_sizeof_;
28087
static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
28088
static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
28090
#include <stdlib.h>
28095
FILE *f = fopen ("conftest.val", "w");
28098
if (((long int) (sizeof (ac__type_sizeof_))) < 0)
28100
long int i = longval ();
28101
if (i != ((long int) (sizeof (ac__type_sizeof_))))
28103
fprintf (f, "%ld\n", i);
28107
unsigned long int i = ulongval ();
28108
if (i != ((long int) (sizeof (ac__type_sizeof_))))
28110
fprintf (f, "%lu\n", i);
28112
return ferror (f) || fclose (f) != 0;
28118
rm -f conftest$ac_exeext
28119
if { (ac_try="$ac_link"
28120
case "(($ac_try" in
28121
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28122
*) ac_try_echo=$ac_try;;
28124
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28125
(eval "$ac_link") 2>&5
28127
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28128
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28129
{ (case "(($ac_try" in
28130
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28131
*) ac_try_echo=$ac_try;;
28133
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28134
(eval "$ac_try") 2>&5
28136
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28137
(exit $ac_status); }; }; then
28138
ac_cv_sizeof_unsigned_long=`cat conftest.val`
28140
echo "$as_me: program exited with status $ac_status" >&5
28141
echo "$as_me: failed program was:" >&5
28142
sed 's/^/| /' conftest.$ac_ext >&5
28144
( exit $ac_status )
28145
if test "$ac_cv_type_unsigned_long" = yes; then
28146
{ { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
28147
See \`config.log' for more details." >&5
28148
echo "$as_me: error: cannot compute sizeof (unsigned long)
28149
See \`config.log' for more details." >&2;}
28150
{ (exit 77); exit 77; }; }
28152
ac_cv_sizeof_unsigned_long=0
28155
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28159
{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
28160
echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6; }
28164
cat >>confdefs.h <<_ACEOF
28165
#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
28170
{ echo "$as_me:$LINENO: checking sizeof size_t == sizeof unsigned long" >&5
28171
echo $ECHO_N "checking sizeof size_t == sizeof unsigned long... $ECHO_C" >&6; }
28172
cat >conftest.$ac_ext <<_ACEOF
28175
cat confdefs.h >>conftest.$ac_ext
28176
cat >>conftest.$ac_ext <<_ACEOF
28177
/* end confdefs.h. */
28183
#if SIZEOF_SIZE_T != SIZEOF_UNSIGNED_LONG
28191
rm -f conftest.$ac_objext
28192
if { (ac_try="$ac_compile"
28193
case "(($ac_try" in
28194
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28195
*) ac_try_echo=$ac_try;;
28197
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28198
(eval "$ac_compile") 2>conftest.er1
28200
grep -v '^ *+' conftest.er1 >conftest.err
28202
cat conftest.err >&5
28203
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28204
(exit $ac_status); } && {
28205
test -z "$ac_c_werror_flag" ||
28206
test ! -s conftest.err
28207
} && test -s conftest.$ac_objext; then
28208
{ echo "$as_me:$LINENO: result: yes" >&5
28209
echo "${ECHO_T}yes" >&6; }
28211
echo "$as_me: failed program was:" >&5
28212
sed 's/^/| /' conftest.$ac_ext >&5
28215
{ echo "$as_me:$LINENO: result: no" >&5
28216
echo "${ECHO_T}no" >&6; }
28217
{ { echo "$as_me:$LINENO: error:
28218
Apparently on your system our assumption sizeof size_t == sizeof unsigned long
28219
does not apply. Please mail kde-devel@kde.org with a description of your system!
28221
echo "$as_me: error:
28222
Apparently on your system our assumption sizeof size_t == sizeof unsigned long
28223
does not apply. Please mail kde-devel@kde.org with a description of your system!
28225
{ (exit 1); exit 1; }; }
28229
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28232
{ echo "$as_me:$LINENO: checking for PIE support" >&5
28233
echo $ECHO_N "checking for PIE support... $ECHO_C" >&6; }
28234
if test "${kde_cv_val_pie_support+set}" = set; then
28235
echo $ECHO_N "(cached) $ECHO_C" >&6
28240
ac_cpp='$CXXCPP $CPPFLAGS'
28241
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28242
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28243
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28245
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
28248
safe_CXXFLAGS=$CXXFLAGS
28249
safe_LDFLAGS=$LDFLAGS
28250
CXXFLAGS="$CXXFLAGS -fPIE"
28251
LDFLAGS="$LDFLAGS -pie"
28253
cat >conftest.$ac_ext <<_ACEOF
28256
cat confdefs.h >>conftest.$ac_ext
28257
cat >>conftest.$ac_ext <<_ACEOF
28258
/* end confdefs.h. */
28268
rm -f conftest.$ac_objext conftest$ac_exeext
28269
if { (ac_try="$ac_link"
28270
case "(($ac_try" in
28271
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28272
*) ac_try_echo=$ac_try;;
28274
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28275
(eval "$ac_link") 2>conftest.er1
28277
grep -v '^ *+' conftest.er1 >conftest.err
28279
cat conftest.err >&5
28280
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28281
(exit $ac_status); } && {
28282
test -z "$ac_cxx_werror_flag" ||
28283
test ! -s conftest.err
28284
} && test -s conftest$ac_exeext &&
28285
$as_test_x conftest$ac_exeext; then
28286
kde_cv_val_pie_support=yes
28288
echo "$as_me: failed program was:" >&5
28289
sed 's/^/| /' conftest.$ac_ext >&5
28291
kde_cv_val_pie_support=no
28294
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28295
conftest$ac_exeext conftest.$ac_ext
28297
CXXFLAGS=$safe_CXXFLAGS
28298
LDFLAGS=$safe_LDFLAGS
28300
ac_cpp='$CPP $CPPFLAGS'
28301
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28302
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28303
ac_compiler_gnu=$ac_cv_c_compiler_gnu
28307
{ echo "$as_me:$LINENO: result: $kde_cv_val_pie_support" >&5
28308
echo "${ECHO_T}$kde_cv_val_pie_support" >&6; }
28310
{ echo "$as_me:$LINENO: checking if enabling -pie/fPIE support" >&5
28311
echo $ECHO_N "checking if enabling -pie/fPIE support... $ECHO_C" >&6; }
28313
# Check whether --enable-pie was given.
28314
if test "${enable_pie+set}" = set; then
28315
enableval=$enable_pie; kde_has_pie_support=$enableval
28317
kde_has_pie_support=detect
28321
if test "$kde_has_pie_support" = "detect"; then
28322
kde_has_pie_support=$kde_cv_val_pie_support
28325
{ echo "$as_me:$LINENO: result: $kde_has_pie_support" >&5
28326
echo "${ECHO_T}$kde_has_pie_support" >&6; }
28334
if test "$kde_has_pie_support" = "yes"; then
28335
KDE_USE_FPIE="-fPIE"
28340
# darwin needs this to initialize the environment
28342
for ac_header in crt_externs.h
28344
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28345
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28346
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28347
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28348
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28349
echo $ECHO_N "(cached) $ECHO_C" >&6
28351
ac_res=`eval echo '${'$as_ac_Header'}'`
28352
{ echo "$as_me:$LINENO: result: $ac_res" >&5
28353
echo "${ECHO_T}$ac_res" >&6; }
28355
# Is the header compilable?
28356
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
28357
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28358
cat >conftest.$ac_ext <<_ACEOF
28361
cat confdefs.h >>conftest.$ac_ext
28362
cat >>conftest.$ac_ext <<_ACEOF
28363
/* end confdefs.h. */
28364
$ac_includes_default
28365
#include <$ac_header>
28367
rm -f conftest.$ac_objext
28368
if { (ac_try="$ac_compile"
28369
case "(($ac_try" in
28370
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28371
*) ac_try_echo=$ac_try;;
28373
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28374
(eval "$ac_compile") 2>conftest.er1
28376
grep -v '^ *+' conftest.er1 >conftest.err
28378
cat conftest.err >&5
28379
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28380
(exit $ac_status); } && {
28381
test -z "$ac_c_werror_flag" ||
28382
test ! -s conftest.err
28383
} && test -s conftest.$ac_objext; then
28384
ac_header_compiler=yes
28386
echo "$as_me: failed program was:" >&5
28387
sed 's/^/| /' conftest.$ac_ext >&5
28389
ac_header_compiler=no
28392
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28393
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28394
echo "${ECHO_T}$ac_header_compiler" >&6; }
28396
# Is the header present?
28397
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
28398
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28399
cat >conftest.$ac_ext <<_ACEOF
28402
cat confdefs.h >>conftest.$ac_ext
28403
cat >>conftest.$ac_ext <<_ACEOF
28404
/* end confdefs.h. */
28405
#include <$ac_header>
28407
if { (ac_try="$ac_cpp conftest.$ac_ext"
28408
case "(($ac_try" in
28409
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28410
*) ac_try_echo=$ac_try;;
28412
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28413
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28415
grep -v '^ *+' conftest.er1 >conftest.err
28417
cat conftest.err >&5
28418
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28419
(exit $ac_status); } >/dev/null && {
28420
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28421
test ! -s conftest.err
28423
ac_header_preproc=yes
28425
echo "$as_me: failed program was:" >&5
28426
sed 's/^/| /' conftest.$ac_ext >&5
28428
ac_header_preproc=no
28431
rm -f conftest.err conftest.$ac_ext
28432
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28433
echo "${ECHO_T}$ac_header_preproc" >&6; }
28435
# So? What about this header?
28436
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28438
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28439
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28440
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28441
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28442
ac_header_preproc=yes
28445
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28446
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28447
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28448
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28449
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28450
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28451
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28452
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28453
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28454
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28455
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28456
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28460
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
28461
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28462
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28463
echo $ECHO_N "(cached) $ECHO_C" >&6
28465
eval "$as_ac_Header=\$ac_header_preproc"
28467
ac_res=`eval echo '${'$as_ac_Header'}'`
28468
{ echo "$as_me:$LINENO: result: $ac_res" >&5
28469
echo "${ECHO_T}$ac_res" >&6; }
28472
if test `eval echo '${'$as_ac_Header'}'` = yes; then
28473
cat >>confdefs.h <<_ACEOF
28474
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28481
{ echo "$as_me:$LINENO: checking for _NSGetEnviron" >&5
28482
echo $ECHO_N "checking for _NSGetEnviron... $ECHO_C" >&6; }
28483
if test "${ac_cv_func__NSGetEnviron+set}" = set; then
28484
echo $ECHO_N "(cached) $ECHO_C" >&6
28486
cat >conftest.$ac_ext <<_ACEOF
28489
cat confdefs.h >>conftest.$ac_ext
28490
cat >>conftest.$ac_ext <<_ACEOF
28491
/* end confdefs.h. */
28492
/* Define _NSGetEnviron to an innocuous variant, in case <limits.h> declares _NSGetEnviron.
28493
For example, HP-UX 11i <limits.h> declares gettimeofday. */
28494
#define _NSGetEnviron innocuous__NSGetEnviron
28496
/* System header to define __stub macros and hopefully few prototypes,
28497
which can conflict with char _NSGetEnviron (); below.
28498
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28499
<limits.h> exists even on freestanding compilers. */
28502
# include <limits.h>
28504
# include <assert.h>
28507
#undef _NSGetEnviron
28509
/* Override any GCC internal prototype to avoid an error.
28510
Use char because int might match the return type of a GCC
28511
builtin and then its argument prototype would still apply. */
28515
char _NSGetEnviron ();
28516
/* The GNU C library defines this for functions which it implements
28517
to always fail with ENOSYS. Some functions are actually named
28518
something starting with __ and the normal name is an alias. */
28519
#if defined __stub__NSGetEnviron || defined __stub____NSGetEnviron
28526
return _NSGetEnviron ();
28531
rm -f conftest.$ac_objext conftest$ac_exeext
28532
if { (ac_try="$ac_link"
28533
case "(($ac_try" in
28534
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28535
*) ac_try_echo=$ac_try;;
28537
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28538
(eval "$ac_link") 2>conftest.er1
28540
grep -v '^ *+' conftest.er1 >conftest.err
28542
cat conftest.err >&5
28543
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28544
(exit $ac_status); } && {
28545
test -z "$ac_c_werror_flag" ||
28546
test ! -s conftest.err
28547
} && test -s conftest$ac_exeext &&
28548
$as_test_x conftest$ac_exeext; then
28549
ac_cv_func__NSGetEnviron=yes
28551
echo "$as_me: failed program was:" >&5
28552
sed 's/^/| /' conftest.$ac_ext >&5
28554
ac_cv_func__NSGetEnviron=no
28557
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28558
conftest$ac_exeext conftest.$ac_ext
28560
{ echo "$as_me:$LINENO: result: $ac_cv_func__NSGetEnviron" >&5
28561
echo "${ECHO_T}$ac_cv_func__NSGetEnviron" >&6; }
28562
if test $ac_cv_func__NSGetEnviron = yes; then
28564
cat >>confdefs.h <<\_ACEOF
28565
#define HAVE_NSGETENVIRON 1
28579
for ac_func in vsnprintf snprintf
28581
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28582
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
28583
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28584
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28585
echo $ECHO_N "(cached) $ECHO_C" >&6
28587
cat >conftest.$ac_ext <<_ACEOF
28590
cat confdefs.h >>conftest.$ac_ext
28591
cat >>conftest.$ac_ext <<_ACEOF
28592
/* end confdefs.h. */
28593
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28594
For example, HP-UX 11i <limits.h> declares gettimeofday. */
28595
#define $ac_func innocuous_$ac_func
28597
/* System header to define __stub macros and hopefully few prototypes,
28598
which can conflict with char $ac_func (); below.
28599
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28600
<limits.h> exists even on freestanding compilers. */
28603
# include <limits.h>
28605
# include <assert.h>
28610
/* Override any GCC internal prototype to avoid an error.
28611
Use char because int might match the return type of a GCC
28612
builtin and then its argument prototype would still apply. */
28617
/* The GNU C library defines this for functions which it implements
28618
to always fail with ENOSYS. Some functions are actually named
28619
something starting with __ and the normal name is an alias. */
28620
#if defined __stub_$ac_func || defined __stub___$ac_func
28627
return $ac_func ();
28632
rm -f conftest.$ac_objext conftest$ac_exeext
28633
if { (ac_try="$ac_link"
28634
case "(($ac_try" in
28635
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28636
*) ac_try_echo=$ac_try;;
28638
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28639
(eval "$ac_link") 2>conftest.er1
28641
grep -v '^ *+' conftest.er1 >conftest.err
28643
cat conftest.err >&5
28644
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28645
(exit $ac_status); } && {
28646
test -z "$ac_c_werror_flag" ||
28647
test ! -s conftest.err
28648
} && test -s conftest$ac_exeext &&
28649
$as_test_x conftest$ac_exeext; then
28650
eval "$as_ac_var=yes"
28652
echo "$as_me: failed program was:" >&5
28653
sed 's/^/| /' conftest.$ac_ext >&5
28655
eval "$as_ac_var=no"
28658
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28659
conftest$ac_exeext conftest.$ac_ext
28661
ac_res=`eval echo '${'$as_ac_var'}'`
28662
{ echo "$as_me:$LINENO: result: $ac_res" >&5
28663
echo "${ECHO_T}$ac_res" >&6; }
28664
if test `eval echo '${'$as_ac_var'}'` = yes; then
28665
cat >>confdefs.h <<_ACEOF
28666
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28680
# Check whether --enable-embedded was given.
28681
if test "${enable_embedded+set}" = set; then
28682
enableval=$enable_embedded; kde_use_qt_emb=$enableval
28689
# Check whether --enable-qtopia was given.
28690
if test "${enable_qtopia+set}" = set; then
28691
enableval=$enable_qtopia; kde_use_qt_emb_palm=$enableval
28693
kde_use_qt_emb_palm=no
28698
# Check whether --enable-mac was given.
28699
if test "${enable_mac+set}" = set; then
28700
enableval=$enable_mac; kde_use_qt_mac=$enableval
28707
# used to disable x11-specific stuff on special platforms
28710
if test "$kde_use_qt_emb" = "no" && test "$kde_use_qt_mac" = "no"; then
28712
include_x11_FALSE='#'
28714
include_x11_TRUE='#'
28719
if test "$kde_use_qt_emb" = "no" && test "$kde_use_qt_mac" = "no"; then
28721
{ echo "$as_me:$LINENO: checking for X" >&5
28722
echo $ECHO_N "checking for X... $ECHO_C" >&6; }
28724
if test "${kde_cv_have_x+set}" = set; then
28725
echo $ECHO_N "(cached) $ECHO_C" >&6
28727
# One or both of the vars are not set, and there is no cached value.
28728
if test "{$x_includes+set}" = set || test "$x_includes" = NONE; then
28731
kde_x_includes=$x_includes
28733
if test "{$x_libraries+set}" = set || test "$x_libraries" = NONE; then
28736
kde_x_libraries=$x_libraries
28739
# below we use the standard autoconf calls
28740
ac_x_libraries=$kde_x_libraries
28741
ac_x_includes=$kde_x_includes
28746
if test "$ac_x_includes" = NO; then
28747
# Guess where to find include files, by looking for this one X11 .h file.
28748
test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
28750
# First, try using that file with no special directory specified.
28751
cat >conftest.$ac_ext <<_ACEOF
28754
cat confdefs.h >>conftest.$ac_ext
28755
cat >>conftest.$ac_ext <<_ACEOF
28756
/* end confdefs.h. */
28757
#include <$x_direct_test_include>
28759
if { (ac_try="$ac_cpp conftest.$ac_ext"
28760
case "(($ac_try" in
28761
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28762
*) ac_try_echo=$ac_try;;
28764
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28765
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28767
grep -v '^ *+' conftest.er1 >conftest.err
28769
cat conftest.err >&5
28770
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28771
(exit $ac_status); } >/dev/null && {
28772
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28773
test ! -s conftest.err
28775
# We can compile using X headers with no special include directory.
28778
echo "$as_me: failed program was:" >&5
28779
sed 's/^/| /' conftest.$ac_ext >&5
28781
# Look for the header file in a standard set of common directories.
28782
# Check X11 before X11Rn because it is often a symlink to the current release.
28785
/usr/X11R6/include \
28786
/usr/X11R5/include \
28787
/usr/X11R4/include \
28790
/usr/include/X11R6 \
28791
/usr/include/X11R5 \
28792
/usr/include/X11R4 \
28794
/usr/local/X11/include \
28795
/usr/local/X11R6/include \
28796
/usr/local/X11R5/include \
28797
/usr/local/X11R4/include \
28799
/usr/local/include/X11 \
28800
/usr/local/include/X11R6 \
28801
/usr/local/include/X11R5 \
28802
/usr/local/include/X11R4 \
28804
/usr/X386/include \
28805
/usr/x386/include \
28806
/usr/XFree86/include/X11 \
28809
/usr/local/include \
28810
/usr/unsupported/include \
28811
/usr/athena/include \
28812
/usr/local/x11r5/include \
28813
/usr/lpp/Xamples/include \
28815
/usr/openwin/include \
28816
/usr/openwin/share/include \
28819
if test -r "$ac_dir/$x_direct_test_include"; then
28820
ac_x_includes=$ac_dir
28826
rm -f conftest.err conftest.$ac_ext
28827
fi # $ac_x_includes = NO
28829
if test "$ac_x_libraries" = NO; then
28830
# Check for the libraries.
28832
test -z "$x_direct_test_library" && x_direct_test_library=Xt
28833
test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
28835
# See if we find them without any special options.
28836
# Don't add to $LIBS permanently.
28837
ac_save_LIBS="$LIBS"
28838
LIBS="-l$x_direct_test_library $LIBS"
28839
cat >conftest.$ac_ext <<_ACEOF
28842
cat confdefs.h >>conftest.$ac_ext
28843
cat >>conftest.$ac_ext <<_ACEOF
28844
/* end confdefs.h. */
28845
#include <X11/Intrinsic.h>
28849
${x_direct_test_function}(1)
28854
rm -f conftest.$ac_objext conftest$ac_exeext
28855
if { (ac_try="$ac_link"
28856
case "(($ac_try" in
28857
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28858
*) ac_try_echo=$ac_try;;
28860
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28861
(eval "$ac_link") 2>conftest.er1
28863
grep -v '^ *+' conftest.er1 >conftest.err
28865
cat conftest.err >&5
28866
echo "$as_me:$LINENO: \$? = $ac_status" >&5
28867
(exit $ac_status); } && {
28868
test -z "$ac_c_werror_flag" ||
28869
test ! -s conftest.err
28870
} && test -s conftest$ac_exeext &&
28871
$as_test_x conftest$ac_exeext; then
28872
LIBS="$ac_save_LIBS"
28873
# We can link X programs with no special library path.
28876
echo "$as_me: failed program was:" >&5
28877
sed 's/^/| /' conftest.$ac_ext >&5
28879
LIBS="$ac_save_LIBS"
28880
# First see if replacing the include by lib works.
28881
# Check X11 before X11Rn because it is often a symlink to the current release.
28882
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib${kdelibsuff}/` \
28883
/usr/X11/lib${kdelibsuff} \
28884
/usr/X11R6/lib${kdelibsuff} \
28885
/usr/X11R5/lib${kdelibsuff} \
28886
/usr/X11R4/lib${kdelibsuff} \
28888
/usr/lib${kdelibsuff}/X11 \
28889
/usr/lib${kdelibsuff}/X11R6 \
28890
/usr/lib${kdelibsuff}/X11R5 \
28891
/usr/lib${kdelibsuff}/X11R4 \
28893
/usr/local/X11/lib${kdelibsuff} \
28894
/usr/local/X11R6/lib${kdelibsuff} \
28895
/usr/local/X11R5/lib${kdelibsuff} \
28896
/usr/local/X11R4/lib${kdelibsuff} \
28898
/usr/local/lib${kdelibsuff}/X11 \
28899
/usr/local/lib${kdelibsuff}/X11R6 \
28900
/usr/local/lib${kdelibsuff}/X11R5 \
28901
/usr/local/lib${kdelibsuff}/X11R4 \
28903
/usr/X386/lib${kdelibsuff} \
28904
/usr/x386/lib${kdelibsuff} \
28905
/usr/XFree86/lib${kdelibsuff}/X11 \
28907
/usr/lib${kdelibsuff} \
28908
/usr/local/lib${kdelibsuff} \
28909
/usr/unsupported/lib${kdelibsuff} \
28910
/usr/athena/lib${kdelibsuff} \
28911
/usr/local/x11r5/lib${kdelibsuff} \
28912
/usr/lpp/Xamples/lib${kdelibsuff} \
28913
/lib/usr/lib${kdelibsuff}/X11 \
28915
/usr/openwin/lib${kdelibsuff} \
28916
/usr/openwin/share/lib${kdelibsuff} \
28919
for ac_extension in a so sl; do
28920
if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
28921
ac_x_libraries=$ac_dir
28928
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28929
conftest$ac_exeext conftest.$ac_ext
28930
fi # $ac_x_libraries = NO
28938
rm -f -r conftest.dir
28939
if mkdir conftest.dir; then
28941
cat >Imakefile <<'_ACEOF'
28943
@echo incroot='${INCROOT}'
28945
@echo usrlibdir='${USRLIBDIR}'
28947
@echo libdir='${LIBDIR}'
28949
if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
28950
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
28951
for ac_var in incroot usrlibdir libdir; do
28952
eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
28954
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
28955
for ac_extension in a so sl; do
28956
if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
28957
test -f "$ac_im_libdir/libX11.$ac_extension"; then
28958
ac_im_usrlibdir=$ac_im_libdir; break
28961
# Screen out bogus values from the imake configuration. They are
28962
# bogus both because they are the default anyway, and because
28963
# using them would break gcc on systems where it needs fixed includes.
28964
case $ac_im_incroot in
28965
/usr/include) ac_x_includes= ;;
28966
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
28968
case $ac_im_usrlibdir in
28969
/usr/lib | /lib) ;;
28970
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
28974
rm -f -r conftest.dir
28977
if test -z "$ac_x_includes"; then
28980
if test -z "$ac_x_libraries"; then
28981
ac_x_libraries="/usr/lib${kdelibsuff}"
28984
#from now on we use our own again
28986
# when the user already gave --x-includes, we ignore
28987
# what the standard autoconf macros told us.
28988
if test "$kde_x_includes" = NO; then
28989
kde_x_includes=$ac_x_includes
28992
# for --x-libraries too
28993
if test "$kde_x_libraries" = NO; then
28994
kde_x_libraries=$ac_x_libraries
28997
if test "$kde_x_includes" = NO; then
28998
{ { echo "$as_me:$LINENO: error: Can't find X includes. Please check your installation and add the correct paths!" >&5
28999
echo "$as_me: error: Can't find X includes. Please check your installation and add the correct paths!" >&2;}
29000
{ (exit 1); exit 1; }; }
29003
if test "$kde_x_libraries" = NO; then
29004
{ { echo "$as_me:$LINENO: error: Can't find X libraries. Please check your installation and add the correct paths!" >&5
29005
echo "$as_me: error: Can't find X libraries. Please check your installation and add the correct paths!" >&2;}
29006
{ (exit 1); exit 1; }; }
29009
# Record where we found X for the cache.
29010
kde_cv_have_x="have_x=yes \
29011
kde_x_includes=$kde_x_includes kde_x_libraries=$kde_x_libraries"
29015
eval "$kde_cv_have_x"
29017
if test "$have_x" != yes; then
29018
{ echo "$as_me:$LINENO: result: $have_x" >&5
29019
echo "${ECHO_T}$have_x" >&6; }
29022
{ echo "$as_me:$LINENO: result: libraries $kde_x_libraries, headers $kde_x_includes" >&5
29023
echo "${ECHO_T}libraries $kde_x_libraries, headers $kde_x_includes" >&6; }
29026
if test -z "$kde_x_includes" || test "x$kde_x_includes" = xNONE; then
29028
x_includes="."; else
29029
x_includes=$kde_x_includes
29030
X_INCLUDES="-I$x_includes"
29033
if test -z "$kde_x_libraries" || test "x$kde_x_libraries" = xNONE || test "$kde_x_libraries" = "/usr/lib"; then
29035
x_libraries="/usr/lib"; else
29036
x_libraries=$kde_x_libraries
29037
X_LDFLAGS="-L$x_libraries"
29039
all_includes="$X_INCLUDES"
29040
all_libraries="$X_LDFLAGS $LDFLAGS_AS_NEEDED $LDFLAGS_NEW_DTAGS"
29042
# Check for libraries that X11R6 Xt/Xaw programs need.
29043
ac_save_LDFLAGS="$LDFLAGS"
29044
LDFLAGS="$LDFLAGS $X_LDFLAGS"
29045
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
29046
# check for ICE first), but we must link in the order -lSM -lICE or
29047
# we get undefined symbols. So assume we have SM if we have ICE.
29048
# These have to be linked with before -lX11, unlike the other
29049
# libraries we check for below, so use a different variable.
29050
# --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
29051
{ echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
29052
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
29053
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
29054
echo $ECHO_N "(cached) $ECHO_C" >&6
29056
ac_check_lib_save_LIBS=$LIBS
29057
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
29058
cat >conftest.$ac_ext <<_ACEOF
29061
cat confdefs.h >>conftest.$ac_ext
29062
cat >>conftest.$ac_ext <<_ACEOF
29063
/* end confdefs.h. */
29065
/* Override any GCC internal prototype to avoid an error.
29066
Use char because int might match the return type of a GCC
29067
builtin and then its argument prototype would still apply. */
29071
char IceConnectionNumber ();
29075
return IceConnectionNumber ();
29080
rm -f conftest.$ac_objext conftest$ac_exeext
29081
if { (ac_try="$ac_link"
29082
case "(($ac_try" in
29083
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29084
*) ac_try_echo=$ac_try;;
29086
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29087
(eval "$ac_link") 2>conftest.er1
29089
grep -v '^ *+' conftest.er1 >conftest.err
29091
cat conftest.err >&5
29092
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29093
(exit $ac_status); } && {
29094
test -z "$ac_c_werror_flag" ||
29095
test ! -s conftest.err
29096
} && test -s conftest$ac_exeext &&
29097
$as_test_x conftest$ac_exeext; then
29098
ac_cv_lib_ICE_IceConnectionNumber=yes
29100
echo "$as_me: failed program was:" >&5
29101
sed 's/^/| /' conftest.$ac_ext >&5
29103
ac_cv_lib_ICE_IceConnectionNumber=no
29106
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29107
conftest$ac_exeext conftest.$ac_ext
29108
LIBS=$ac_check_lib_save_LIBS
29110
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
29111
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
29112
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
29116
LDFLAGS="$ac_save_LDFLAGS"
29118
LIB_X11='-lX11 $(LIBSOCKET)'
29120
{ echo "$as_me:$LINENO: checking for libXext" >&5
29121
echo $ECHO_N "checking for libXext... $ECHO_C" >&6; }
29122
if test "${kde_cv_have_libXext+set}" = set; then
29123
echo $ECHO_N "(cached) $ECHO_C" >&6
29126
kde_ldflags_safe="$LDFLAGS"
29127
kde_libs_safe="$LIBS"
29129
LDFLAGS="$LDFLAGS $X_LDFLAGS $USER_LDFLAGS"
29130
LIBS="-lXext -lX11 $LIBSOCKET"
29132
cat >conftest.$ac_ext <<_ACEOF
29135
cat confdefs.h >>conftest.$ac_ext
29136
cat >>conftest.$ac_ext <<_ACEOF
29137
/* end confdefs.h. */
29140
#ifdef STDC_HEADERS
29141
# include <stdlib.h>
29148
printf("hello Xext\n");
29154
rm -f conftest.$ac_objext conftest$ac_exeext
29155
if { (ac_try="$ac_link"
29156
case "(($ac_try" in
29157
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29158
*) ac_try_echo=$ac_try;;
29160
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29161
(eval "$ac_link") 2>conftest.er1
29163
grep -v '^ *+' conftest.er1 >conftest.err
29165
cat conftest.err >&5
29166
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29167
(exit $ac_status); } && {
29168
test -z "$ac_c_werror_flag" ||
29169
test ! -s conftest.err
29170
} && test -s conftest$ac_exeext &&
29171
$as_test_x conftest$ac_exeext; then
29172
kde_cv_have_libXext=yes
29174
echo "$as_me: failed program was:" >&5
29175
sed 's/^/| /' conftest.$ac_ext >&5
29177
kde_cv_have_libXext=no
29181
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29182
conftest$ac_exeext conftest.$ac_ext
29184
LDFLAGS=$kde_ldflags_safe
29185
LIBS=$kde_libs_safe
29190
{ echo "$as_me:$LINENO: result: $kde_cv_have_libXext" >&5
29191
echo "${ECHO_T}$kde_cv_have_libXext" >&6; }
29193
if test "$kde_cv_have_libXext" = "no"; then
29194
{ { echo "$as_me:$LINENO: error: We need a working libXext to proceed. Since configure
29195
can't find it itself, we stop here assuming that make wouldn't find
29197
echo "$as_me: error: We need a working libXext to proceed. Since configure
29198
can't find it itself, we stop here assuming that make wouldn't find
29199
them either." >&2;}
29200
{ (exit 1); exit 1; }; }
29206
elif test "$kde_use_qt_emb" = "yes"; then
29208
CXXFLAGS="$CXXFLAGS -fno-rtti"
29209
QTE_NORTTI="-fno-rtti -DQWS"
29219
elif test "$kde_use_qt_mac" = "yes"; then
29220
CXXFLAGS="$CXXFLAGS -DQT_MAC -no-cpp-precomp"
29221
CFLAGS="$CFLAGS -DQT_MAC -no-cpp-precomp"
29247
if test -n "$PTHREAD_LIBS"; then
29248
if test "x$PTHREAD_LIBS" = "x-pthread" ; then
29249
LIBPTHREAD="PTHREAD"
29251
PTHREAD_LIBS_save="$PTHREAD_LIBS"
29252
PTHREAD_LIBS=`echo "$PTHREAD_LIBS_save" | sed -e 's,^-l,,g'`
29253
{ echo "$as_me:$LINENO: checking for pthread_create in $PTHREAD_LIBS" >&5
29254
echo $ECHO_N "checking for pthread_create in $PTHREAD_LIBS... $ECHO_C" >&6; }
29256
kde_save_LDFLAGS="$LDFLAGS"
29257
kde_save_LIBS="$LIBS"
29258
LDFLAGS="$LDFLAGS $all_libraries"
29260
aix*) LDFLAGS="-brtl $LDFLAGS"
29261
test "$GCC" = yes && LDFLAGS="-Wl,$LDFLAGS"
29264
as_ac_Lib=`echo "ac_cv_lib_$PTHREAD_LIBS''_pthread_create" | $as_tr_sh`
29265
{ echo "$as_me:$LINENO: checking for pthread_create in -l$PTHREAD_LIBS" >&5
29266
echo $ECHO_N "checking for pthread_create in -l$PTHREAD_LIBS... $ECHO_C" >&6; }
29267
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29268
echo $ECHO_N "(cached) $ECHO_C" >&6
29270
ac_check_lib_save_LIBS=$LIBS
29271
LIBS="-l$PTHREAD_LIBS $LIBS"
29272
cat >conftest.$ac_ext <<_ACEOF
29275
cat confdefs.h >>conftest.$ac_ext
29276
cat >>conftest.$ac_ext <<_ACEOF
29277
/* end confdefs.h. */
29279
/* Override any GCC internal prototype to avoid an error.
29280
Use char because int might match the return type of a GCC
29281
builtin and then its argument prototype would still apply. */
29285
char pthread_create ();
29289
return pthread_create ();
29294
rm -f conftest.$ac_objext conftest$ac_exeext
29295
if { (ac_try="$ac_link"
29296
case "(($ac_try" in
29297
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29298
*) ac_try_echo=$ac_try;;
29300
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29301
(eval "$ac_link") 2>conftest.er1
29303
grep -v '^ *+' conftest.er1 >conftest.err
29305
cat conftest.err >&5
29306
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29307
(exit $ac_status); } && {
29308
test -z "$ac_c_werror_flag" ||
29309
test ! -s conftest.err
29310
} && test -s conftest$ac_exeext &&
29311
$as_test_x conftest$ac_exeext; then
29312
eval "$as_ac_Lib=yes"
29314
echo "$as_me: failed program was:" >&5
29315
sed 's/^/| /' conftest.$ac_ext >&5
29317
eval "$as_ac_Lib=no"
29320
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29321
conftest$ac_exeext conftest.$ac_ext
29322
LIBS=$ac_check_lib_save_LIBS
29324
ac_res=`eval echo '${'$as_ac_Lib'}'`
29325
{ echo "$as_me:$LINENO: result: $ac_res" >&5
29326
echo "${ECHO_T}$ac_res" >&6; }
29327
if test `eval echo '${'$as_ac_Lib'}'` = yes; then
29328
LIBPTHREAD="$PTHREAD_LIBS_save"
29331
LDFLAGS="$kde_save_LDFLAGS"
29332
LIBS="$kde_save_LIBS"
29334
PTHREAD_LIBS="$PTHREAD_LIBS_save"
29338
if test -z "$LIBPTHREAD"; then
29339
{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29340
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
29341
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29342
echo $ECHO_N "(cached) $ECHO_C" >&6
29344
ac_check_lib_save_LIBS=$LIBS
29345
LIBS="-lpthread $LIBS"
29346
cat >conftest.$ac_ext <<_ACEOF
29349
cat confdefs.h >>conftest.$ac_ext
29350
cat >>conftest.$ac_ext <<_ACEOF
29351
/* end confdefs.h. */
29353
/* Override any GCC internal prototype to avoid an error.
29354
Use char because int might match the return type of a GCC
29355
builtin and then its argument prototype would still apply. */
29359
char pthread_create ();
29363
return pthread_create ();
29368
rm -f conftest.$ac_objext conftest$ac_exeext
29369
if { (ac_try="$ac_link"
29370
case "(($ac_try" in
29371
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29372
*) ac_try_echo=$ac_try;;
29374
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29375
(eval "$ac_link") 2>conftest.er1
29377
grep -v '^ *+' conftest.er1 >conftest.err
29379
cat conftest.err >&5
29380
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29381
(exit $ac_status); } && {
29382
test -z "$ac_c_werror_flag" ||
29383
test ! -s conftest.err
29384
} && test -s conftest$ac_exeext &&
29385
$as_test_x conftest$ac_exeext; then
29386
ac_cv_lib_pthread_pthread_create=yes
29388
echo "$as_me: failed program was:" >&5
29389
sed 's/^/| /' conftest.$ac_ext >&5
29391
ac_cv_lib_pthread_pthread_create=no
29394
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29395
conftest$ac_exeext conftest.$ac_ext
29396
LIBS=$ac_check_lib_save_LIBS
29398
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29399
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
29400
if test $ac_cv_lib_pthread_pthread_create = yes; then
29401
LIBPTHREAD="-lpthread"
29406
if test -z "$LIBPTHREAD" ; then
29407
{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29408
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
29409
kde_safe_libs=$LIBS
29410
LIBS="$LIBS -lpthread"
29411
cat >conftest.$ac_ext <<_ACEOF
29414
cat confdefs.h >>conftest.$ac_ext
29415
cat >>conftest.$ac_ext <<_ACEOF
29416
/* end confdefs.h. */
29417
#include <pthread.h>
29421
(void)pthread_create(0,0,0,0);
29426
rm -f conftest.$ac_objext conftest$ac_exeext
29427
if { (ac_try="$ac_link"
29428
case "(($ac_try" in
29429
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29430
*) ac_try_echo=$ac_try;;
29432
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29433
(eval "$ac_link") 2>conftest.er1
29435
grep -v '^ *+' conftest.er1 >conftest.err
29437
cat conftest.err >&5
29438
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29439
(exit $ac_status); } && {
29440
test -z "$ac_c_werror_flag" ||
29441
test ! -s conftest.err
29442
} && test -s conftest$ac_exeext &&
29443
$as_test_x conftest$ac_exeext; then
29445
{ echo "$as_me:$LINENO: result: yes" >&5
29446
echo "${ECHO_T}yes" >&6; }
29447
LIBPTHREAD="-lpthread"
29449
echo "$as_me: failed program was:" >&5
29450
sed 's/^/| /' conftest.$ac_ext >&5
29453
{ echo "$as_me:$LINENO: result: no" >&5
29454
echo "${ECHO_T}no" >&6; }
29457
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29458
conftest$ac_exeext conftest.$ac_ext
29459
LIBS=$kde_safe_libs
29462
if test "x$LIBPTHREAD" = "xPTHREAD" ; then
29470
if test -z "$LIBPTHREAD"; then
29472
{ echo "$as_me:$LINENO: checking whether $CXX supports -pthread" >&5
29473
echo $ECHO_N "checking whether $CXX supports -pthread... $ECHO_C" >&6; }
29474
kde_cache=`echo pthread | sed 'y% .=/+-,%____p__%'`
29475
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
29476
echo $ECHO_N "(cached) $ECHO_C" >&6
29481
ac_cpp='$CXXCPP $CPPFLAGS'
29482
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29483
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29484
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29486
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
29489
save_CXXFLAGS="$CXXFLAGS"
29490
CXXFLAGS="$CXXFLAGS -pthread"
29491
cat >conftest.$ac_ext <<_ACEOF
29494
cat confdefs.h >>conftest.$ac_ext
29495
cat >>conftest.$ac_ext <<_ACEOF
29496
/* end confdefs.h. */
29506
rm -f conftest.$ac_objext conftest$ac_exeext
29507
if { (ac_try="$ac_link"
29508
case "(($ac_try" in
29509
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29510
*) ac_try_echo=$ac_try;;
29512
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29513
(eval "$ac_link") 2>conftest.er1
29515
grep -v '^ *+' conftest.er1 >conftest.err
29517
cat conftest.err >&5
29518
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29519
(exit $ac_status); } && {
29520
test -z "$ac_cxx_werror_flag" ||
29521
test ! -s conftest.err
29522
} && test -s conftest$ac_exeext &&
29523
$as_test_x conftest$ac_exeext; then
29524
eval "kde_cv_prog_cxx_$kde_cache=yes"
29526
echo "$as_me: failed program was:" >&5
29527
sed 's/^/| /' conftest.$ac_ext >&5
29532
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29533
conftest$ac_exeext conftest.$ac_ext
29534
CXXFLAGS="$save_CXXFLAGS"
29536
ac_cpp='$CPP $CPPFLAGS'
29537
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29538
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29539
ac_compiler_gnu=$ac_cv_c_compiler_gnu
29544
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
29545
{ echo "$as_me:$LINENO: result: yes" >&5
29546
echo "${ECHO_T}yes" >&6; }
29548
USE_THREADS="-D_THREAD_SAFE -pthread"
29550
{ echo "$as_me:$LINENO: result: no" >&5
29551
echo "${ECHO_T}no" >&6; }
29563
{ echo "$as_me:$LINENO: checking whether $CXX supports -mt" >&5
29564
echo $ECHO_N "checking whether $CXX supports -mt... $ECHO_C" >&6; }
29565
kde_cache=`echo mt | sed 'y% .=/+-,%____p__%'`
29566
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
29567
echo $ECHO_N "(cached) $ECHO_C" >&6
29572
ac_cpp='$CXXCPP $CPPFLAGS'
29573
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29574
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29575
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29577
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
29580
save_CXXFLAGS="$CXXFLAGS"
29581
CXXFLAGS="$CXXFLAGS -mt"
29582
cat >conftest.$ac_ext <<_ACEOF
29585
cat confdefs.h >>conftest.$ac_ext
29586
cat >>conftest.$ac_ext <<_ACEOF
29587
/* end confdefs.h. */
29597
rm -f conftest.$ac_objext conftest$ac_exeext
29598
if { (ac_try="$ac_link"
29599
case "(($ac_try" in
29600
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29601
*) ac_try_echo=$ac_try;;
29603
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29604
(eval "$ac_link") 2>conftest.er1
29606
grep -v '^ *+' conftest.er1 >conftest.err
29608
cat conftest.err >&5
29609
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29610
(exit $ac_status); } && {
29611
test -z "$ac_cxx_werror_flag" ||
29612
test ! -s conftest.err
29613
} && test -s conftest$ac_exeext &&
29614
$as_test_x conftest$ac_exeext; then
29615
eval "kde_cv_prog_cxx_$kde_cache=yes"
29617
echo "$as_me: failed program was:" >&5
29618
sed 's/^/| /' conftest.$ac_ext >&5
29623
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29624
conftest$ac_exeext conftest.$ac_ext
29625
CXXFLAGS="$save_CXXFLAGS"
29627
ac_cpp='$CPP $CPPFLAGS'
29628
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29629
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29630
ac_compiler_gnu=$ac_cv_c_compiler_gnu
29635
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
29636
{ echo "$as_me:$LINENO: result: yes" >&5
29637
echo "${ECHO_T}yes" >&6; }
29641
{ echo "$as_me:$LINENO: result: no" >&5
29642
echo "${ECHO_T}no" >&6; }
29647
CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4"
29650
CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE $PTHREAD_CFLAGS"
29653
CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
29654
LIBPTHREAD="$LIBPTHREAD -lc_r"
29656
linux*) CPPFLAGS="$CPPFLAGS -D_REENTRANT"
29657
if test "$CXX" = "KCC"; then
29658
CXXFLAGS="$CXXFLAGS --thread_safe"
29659
NOOPT_CXXFLAGS="$NOOPT_CXXFLAGS --thread_safe"
29669
{ echo "$as_me:$LINENO: checking for extra includes" >&5
29670
echo $ECHO_N "checking for extra includes... $ECHO_C" >&6; }
29672
# Check whether --with-extra-includes was given.
29673
if test "${with_extra_includes+set}" = set; then
29674
withval=$with_extra_includes; kde_use_extra_includes="$withval"
29676
kde_use_extra_includes=NONE
29680
kde_extra_includes=
29681
if test -n "$kde_use_extra_includes" && \
29682
test "$kde_use_extra_includes" != "NONE"; then
29686
for dir in $kde_use_extra_includes; do
29687
kde_extra_includes="$kde_extra_includes $dir"
29688
USER_INCLUDES="$USER_INCLUDES -I$dir"
29691
kde_use_extra_includes="added"
29693
kde_use_extra_includes="no"
29697
{ echo "$as_me:$LINENO: result: $kde_use_extra_includes" >&5
29698
echo "${ECHO_T}$kde_use_extra_includes" >&6; }
29701
{ echo "$as_me:$LINENO: checking for extra libs" >&5
29702
echo $ECHO_N "checking for extra libs... $ECHO_C" >&6; }
29704
# Check whether --with-extra-libs was given.
29705
if test "${with_extra_libs+set}" = set; then
29706
withval=$with_extra_libs; kde_use_extra_libs=$withval
29708
kde_use_extra_libs=NONE
29712
if test -n "$kde_use_extra_libs" && \
29713
test "$kde_use_extra_libs" != "NONE"; then
29717
for dir in $kde_use_extra_libs; do
29718
kde_extra_libs="$kde_extra_libs $dir"
29719
KDE_EXTRA_RPATH="$KDE_EXTRA_RPATH -R $dir"
29720
USER_LDFLAGS="$USER_LDFLAGS -L$dir"
29723
kde_use_extra_libs="added"
29725
kde_use_extra_libs="no"
29730
{ echo "$as_me:$LINENO: result: $kde_use_extra_libs" >&5
29731
echo "${ECHO_T}$kde_use_extra_libs" >&6; }
29736
{ echo "$as_me:$LINENO: checking for libz" >&5
29737
echo $ECHO_N "checking for libz... $ECHO_C" >&6; }
29738
if test "${ac_cv_lib_z+set}" = set; then
29739
echo $ECHO_N "(cached) $ECHO_C" >&6
29742
kde_save_LIBS="$LIBS"
29743
LIBS="$all_libraries $USER_LDFLAGS -lz $LIBSOCKET"
29744
kde_save_CFLAGS="$CFLAGS"
29745
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
29746
cat >conftest.$ac_ext <<_ACEOF
29749
cat confdefs.h >>conftest.$ac_ext
29750
cat >>conftest.$ac_ext <<_ACEOF
29751
/* end confdefs.h. */
29760
gzFile f = (gzFile) 0;
29761
/* this would segfault.. but we only link, don't run */
29762
(void) gzgets(f, buf, sizeof(buf));
29764
return (zlibVersion() == ZLIB_VERSION);
29770
rm -f conftest.$ac_objext conftest$ac_exeext
29771
if { (ac_try="$ac_link"
29772
case "(($ac_try" in
29773
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29774
*) ac_try_echo=$ac_try;;
29776
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29777
(eval "$ac_link") 2>conftest.er1
29779
grep -v '^ *+' conftest.er1 >conftest.err
29781
cat conftest.err >&5
29782
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29783
(exit $ac_status); } && {
29784
test -z "$ac_c_werror_flag" ||
29785
test ! -s conftest.err
29786
} && test -s conftest$ac_exeext &&
29787
$as_test_x conftest$ac_exeext; then
29788
eval "ac_cv_lib_z='-lz'"
29790
echo "$as_me: failed program was:" >&5
29791
sed 's/^/| /' conftest.$ac_ext >&5
29793
eval "ac_cv_lib_z=no"
29796
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29797
conftest$ac_exeext conftest.$ac_ext
29798
LIBS="$kde_save_LIBS"
29799
CFLAGS="$kde_save_CFLAGS"
29802
if test ! "$ac_cv_lib_z" = no; then
29804
cat >>confdefs.h <<_ACEOF
29805
#define HAVE_LIBZ 1
29808
LIBZ="$ac_cv_lib_z"
29809
{ echo "$as_me:$LINENO: result: $ac_cv_lib_z" >&5
29810
echo "${ECHO_T}$ac_cv_lib_z" >&6; }
29812
{ { echo "$as_me:$LINENO: error: not found.
29813
Possibly configure picks up an outdated version
29814
installed by XFree86. Remove it from your system.
29816
Check your installation and look into config.log" >&5
29817
echo "$as_me: error: not found.
29818
Possibly configure picks up an outdated version
29819
installed by XFree86. Remove it from your system.
29821
Check your installation and look into config.log" >&2;}
29822
{ (exit 1); exit 1; }; }
29830
{ echo "$as_me:$LINENO: checking for libpng" >&5
29831
echo $ECHO_N "checking for libpng... $ECHO_C" >&6; }
29832
if test "${ac_cv_lib_png+set}" = set; then
29833
echo $ECHO_N "(cached) $ECHO_C" >&6
29836
kde_save_LIBS="$LIBS"
29837
if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
29838
LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm -lX11 $LIBSOCKET"
29840
LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm"
29842
kde_save_CFLAGS="$CFLAGS"
29843
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
29845
cat >conftest.$ac_ext <<_ACEOF
29848
cat confdefs.h >>conftest.$ac_ext
29849
cat >>conftest.$ac_ext <<_ACEOF
29850
/* end confdefs.h. */
29858
png_structp png_ptr = png_create_read_struct( /* image ptr */
29859
PNG_LIBPNG_VER_STRING, 0, 0, 0 );
29860
return( png_ptr != 0 );
29866
rm -f conftest.$ac_objext conftest$ac_exeext
29867
if { (ac_try="$ac_link"
29868
case "(($ac_try" in
29869
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29870
*) ac_try_echo=$ac_try;;
29872
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29873
(eval "$ac_link") 2>conftest.er1
29875
grep -v '^ *+' conftest.er1 >conftest.err
29877
cat conftest.err >&5
29878
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29879
(exit $ac_status); } && {
29880
test -z "$ac_c_werror_flag" ||
29881
test ! -s conftest.err
29882
} && test -s conftest$ac_exeext &&
29883
$as_test_x conftest$ac_exeext; then
29884
eval "ac_cv_lib_png='-lpng $LIBZ -lm'"
29886
echo "$as_me: failed program was:" >&5
29887
sed 's/^/| /' conftest.$ac_ext >&5
29889
eval "ac_cv_lib_png=no"
29893
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29894
conftest$ac_exeext conftest.$ac_ext
29895
LIBS="$kde_save_LIBS"
29896
CFLAGS="$kde_save_CFLAGS"
29899
if eval "test ! \"`echo $ac_cv_lib_png`\" = no"; then
29901
cat >>confdefs.h <<_ACEOF
29902
#define HAVE_LIBPNG 1
29905
LIBPNG="$ac_cv_lib_png"
29907
{ echo "$as_me:$LINENO: result: $ac_cv_lib_png" >&5
29908
echo "${ECHO_T}$ac_cv_lib_png" >&6; }
29910
{ echo "$as_me:$LINENO: result: no" >&5
29911
echo "${ECHO_T}no" >&6; }
29918
{ echo "$as_me:$LINENO: checking for libjpeg6b" >&5
29919
echo $ECHO_N "checking for libjpeg6b... $ECHO_C" >&6; }
29920
if test "${ac_cv_lib_jpeg_6b+set}" = set; then
29921
echo $ECHO_N "(cached) $ECHO_C" >&6
29924
ac_save_LIBS="$LIBS"
29925
LIBS="$all_libraries $USER_LDFLAGS -ljpeg6b -lm"
29926
ac_save_CFLAGS="$CFLAGS"
29927
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
29928
cat >conftest.$ac_ext <<_ACEOF
29931
cat confdefs.h >>conftest.$ac_ext
29932
cat >>conftest.$ac_ext <<_ACEOF
29933
/* end confdefs.h. */
29938
void jpeg_CreateDecompress();
29946
jpeg_CreateDecompress();
29951
rm -f conftest.$ac_objext conftest$ac_exeext
29952
if { (ac_try="$ac_link"
29953
case "(($ac_try" in
29954
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29955
*) ac_try_echo=$ac_try;;
29957
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29958
(eval "$ac_link") 2>conftest.er1
29960
grep -v '^ *+' conftest.er1 >conftest.err
29962
cat conftest.err >&5
29963
echo "$as_me:$LINENO: \$? = $ac_status" >&5
29964
(exit $ac_status); } && {
29965
test -z "$ac_c_werror_flag" ||
29966
test ! -s conftest.err
29967
} && test -s conftest$ac_exeext &&
29968
$as_test_x conftest$ac_exeext; then
29969
eval "ac_cv_lib_jpeg_6b=-ljpeg6b"
29971
echo "$as_me: failed program was:" >&5
29972
sed 's/^/| /' conftest.$ac_ext >&5
29974
eval "ac_cv_lib_jpeg_6b=no"
29977
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29978
conftest$ac_exeext conftest.$ac_ext
29979
LIBS="$ac_save_LIBS"
29980
CFLAGS="$ac_save_CFLAGS"
29985
if eval "test ! \"`echo $ac_cv_lib_jpeg_6b`\" = no"; then
29986
LIBJPEG="$ac_cv_lib_jpeg_6b"
29987
{ echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_6b" >&5
29988
echo "${ECHO_T}$ac_cv_lib_jpeg_6b" >&6; }
29990
{ echo "$as_me:$LINENO: result: no" >&5
29991
echo "${ECHO_T}no" >&6; }
29993
{ echo "$as_me:$LINENO: checking for libjpeg" >&5
29994
echo $ECHO_N "checking for libjpeg... $ECHO_C" >&6; }
29995
if test "${ac_cv_lib_jpeg_normal+set}" = set; then
29996
echo $ECHO_N "(cached) $ECHO_C" >&6
29999
ac_save_LIBS="$LIBS"
30000
LIBS="$all_libraries $USER_LDFLAGS -ljpeg -lm"
30001
ac_save_CFLAGS="$CFLAGS"
30002
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
30003
cat >conftest.$ac_ext <<_ACEOF
30006
cat confdefs.h >>conftest.$ac_ext
30007
cat >>conftest.$ac_ext <<_ACEOF
30008
/* end confdefs.h. */
30013
void jpeg_CreateDecompress();
30021
jpeg_CreateDecompress();
30026
rm -f conftest.$ac_objext conftest$ac_exeext
30027
if { (ac_try="$ac_link"
30028
case "(($ac_try" in
30029
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30030
*) ac_try_echo=$ac_try;;
30032
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30033
(eval "$ac_link") 2>conftest.er1
30035
grep -v '^ *+' conftest.er1 >conftest.err
30037
cat conftest.err >&5
30038
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30039
(exit $ac_status); } && {
30040
test -z "$ac_c_werror_flag" ||
30041
test ! -s conftest.err
30042
} && test -s conftest$ac_exeext &&
30043
$as_test_x conftest$ac_exeext; then
30044
eval "ac_cv_lib_jpeg_normal=-ljpeg"
30046
echo "$as_me: failed program was:" >&5
30047
sed 's/^/| /' conftest.$ac_ext >&5
30049
eval "ac_cv_lib_jpeg_normal=no"
30052
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30053
conftest$ac_exeext conftest.$ac_ext
30054
LIBS="$ac_save_LIBS"
30055
CFLAGS="$ac_save_CFLAGS"
30060
if eval "test ! \"`echo $ac_cv_lib_jpeg_normal`\" = no"; then
30061
LIBJPEG="$ac_cv_lib_jpeg_normal"
30062
{ echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_normal" >&5
30063
echo "${ECHO_T}$ac_cv_lib_jpeg_normal" >&6; }
30065
{ echo "$as_me:$LINENO: result: no" >&5
30066
echo "${ECHO_T}no" >&6; }
30079
jpeg_incdirs="$includedir /usr/include /usr/local/include $kde_extra_includes"
30082
for i in $jpeg_incdirs;
30084
for j in jpeglib.h;
30086
echo "configure: 30086: $i/$j" >&5
30087
if test -r "$i/$j"; then
30088
echo "taking that" >&5
30095
test "x$jpeg_incdir" = xNO && jpeg_incdir=
30097
if test -n "$jpeg_incdir" && test -n "$LIBJPEG" ; then
30099
cat >>confdefs.h <<_ACEOF
30100
#define HAVE_LIBJPEG 1
30104
if test -n "$jpeg_incdir" || test -n "$LIBJPEG" ; then
30105
{ echo "$as_me:$LINENO: WARNING:
30106
There is an installation error in jpeg support. You seem to have only one
30107
of either the headers _or_ the libraries installed. You may need to either
30108
provide correct --with-extra-... options, or the development package of
30109
libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
30110
Disabling JPEG support.
30112
echo "$as_me: WARNING:
30113
There is an installation error in jpeg support. You seem to have only one
30114
of either the headers _or_ the libraries installed. You may need to either
30115
provide correct --with-extra-... options, or the development package of
30116
libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
30117
Disabling JPEG support.
30120
{ echo "$as_me:$LINENO: WARNING: libjpeg not found. disable JPEG support." >&5
30121
echo "$as_me: WARNING: libjpeg not found. disable JPEG support." >&2;}
30133
{ echo "$as_me:$LINENO: checking for perl" >&5
30134
echo $ECHO_N "checking for perl... $ECHO_C" >&6; }
30135
if test -n "$PERL"; then
30136
kde_cv_path="$PERL";
30138
kde_cache=`echo perl | sed 'y%./+-%__p_%'`
30140
if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
30141
echo $ECHO_N "(cached) $ECHO_C" >&6
30148
for dir in $PATH; do
30151
if test -z ""; then dirs="$bindir $exec_prefix/bin $prefix/bin $dirs"
30152
else dirs="$dirs $bindir $exec_prefix/bin $prefix/bin"
30156
for dir in $dirs; do
30157
if test -x "$dir/perl"; then
30160
evalstr="$dir/perl 2>&1 "
30161
if eval $evalstr; then
30162
kde_cv_path="$dir/perl"
30166
kde_cv_path="$dir/perl"
30172
eval "kde_cv_path_$kde_cache=$kde_cv_path"
30178
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
30182
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
30183
{ echo "$as_me:$LINENO: result: not found" >&5
30184
echo "${ECHO_T}not found" >&6; }
30186
{ { echo "$as_me:$LINENO: error: No Perl found in your $PATH.
30187
We need perl to generate some code." >&5
30188
echo "$as_me: error: No Perl found in your $PATH.
30189
We need perl to generate some code." >&2;}
30190
{ (exit 1); exit 1; }; }
30193
{ echo "$as_me:$LINENO: result: $kde_cv_path" >&5
30194
echo "${ECHO_T}$kde_cv_path" >&6; }
30208
# Check whether --enable-mt was given.
30209
if test "${enable_mt+set}" = set; then
30210
enableval=$enable_mt; kde_use_qt_mt=$enableval
30213
if test $kde_qtver = 3; then
30228
if test "x$kde_use_qt_mt" = "xyes"; then
30232
if test -z "$LIBPTHREAD"; then
30233
if test -z "$USE_THREADS"; then
30234
kde_check_threading_default=no
30236
kde_check_threading_default=yes
30239
kde_check_threading_default=yes
30241
# Check whether --enable-threading was given.
30242
if test "${enable_threading+set}" = set; then
30243
enableval=$enable_threading; kde_use_threading=$enableval
30245
kde_use_threading=$kde_check_threading_default
30248
if test "x$kde_use_threading" = "xyes"; then
30250
cat >>confdefs.h <<\_ACEOF
30251
#define HAVE_LIBPTHREAD 1
30256
if test "x$kde_use_threading" = "xyes"; then
30257
CPPFLAGS="$USE_THREADS -DQT_THREAD_SUPPORT $CPPFLAGS"
30258
KDE_MT_LDFLAGS="$USE_THREADS"
30259
KDE_MT_LIBS="$LIBPTHREAD"
30267
kde_qt_was_given=yes
30269
if test -z "$LIBQT_GLOB"; then
30270
if test "x$kde_use_qt_emb" = "xyes"; then
30271
LIBQT_GLOB="libqte.*"
30273
LIBQT_GLOB="libqt.*"
30277
if test "x$kde_use_qt_emb" = "xyes"; then
30283
kde_int_qt="-l$qtlib"
30285
if test -z "$LIBQPE"; then
30286
if test "x$kde_use_qt_emb" = "xyes"; then
30287
if test "x$kde_use_qt_emb_palm" = "xyes"; then
30298
if test "x$kde_use_qt_mt" = "xyes"; then
30299
LIBQT="-l$qtlib-mt"
30300
kde_int_qt="-l$qtlib-mt"
30301
LIBQT_GLOB="lib$qtlib-mt.*"
30302
USING_QT_MT="using -mt"
30307
if test $kde_qtver != 1; then
30311
LIBQT="$LIBQT $LIBPNG $LIBJPEG"
30314
if test $kde_qtver = 3; then
30316
LIBQT="$LIBQT $LIBDL"
30319
{ echo "$as_me:$LINENO: checking for Qt" >&5
30320
echo $ECHO_N "checking for Qt... $ECHO_C" >&6; }
30322
if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
30323
LIBQT="$LIBQT $X_PRE_LIBS -lXext -lX11 $LIBSM $LIBSOCKET"
30325
ac_qt_includes=NO ac_qt_libraries=NO ac_qt_bindir=NO
30329
# Check whether --with-qt-dir was given.
30330
if test "${with_qt_dir+set}" = set; then
30331
withval=$with_qt_dir; ac_qt_includes="$withval"/include
30332
ac_qt_libraries="$withval"/lib${kdelibsuff}
30333
ac_qt_bindir="$withval"/bin
30339
# Check whether --with-qt-includes was given.
30340
if test "${with_qt_includes+set}" = set; then
30341
withval=$with_qt_includes;
30342
ac_qt_includes="$withval"
30347
kde_qt_libs_given=no
30350
# Check whether --with-qt-libraries was given.
30351
if test "${with_qt_libraries+set}" = set; then
30352
withval=$with_qt_libraries; ac_qt_libraries="$withval"
30353
kde_qt_libs_given=yes
30358
if test "${ac_cv_have_qt+set}" = set; then
30359
echo $ECHO_N "(cached) $ECHO_C" >&6
30361
#try to guess Qt locations
30364
for dir in $kde_qt_dirs; do
30365
qt_incdirs="$qt_incdirs $dir/include $dir"
30367
qt_incdirs="$QTINC $qt_incdirs /usr/local/qt/include /usr/include/qt /usr/include /usr/X11R6/include/X11/qt /usr/X11R6/include/qt /usr/X11R6/include/qt2 /usr/include/qt3 $x_includes"
30368
if test ! "$ac_qt_includes" = "NO"; then
30369
qt_incdirs="$ac_qt_includes $qt_incdirs"
30372
if test "$kde_qtver" != "1"; then
30373
kde_qt_header=qstyle.h
30375
kde_qt_header=qglobal.h
30380
for i in $qt_incdirs;
30382
for j in $kde_qt_header;
30384
echo "configure: 30384: $i/$j" >&5
30385
if test -r "$i/$j"; then
30386
echo "taking that" >&5
30393
ac_qt_includes="$qt_incdir"
30396
for dir in $kde_qt_dirs; do
30397
qt_libdirs="$qt_libdirs $dir/lib${kdelibsuff} $dir"
30399
qt_libdirs="$QTLIB $qt_libdirs /usr/X11R6/lib /usr/lib /usr/local/qt/lib $x_libraries"
30400
if test ! "$ac_qt_libraries" = "NO"; then
30401
qt_libdir=$ac_qt_libraries
30403
qt_libdirs="$ac_qt_libraries $qt_libdirs"
30404
# if the Qt was given, the chance is too big that libqt.* doesn't exist
30406
for dir in $qt_libdirs; do
30407
try="ls -1 $dir/${LIBQT_GLOB}"
30408
if test -n "`$try 2> /dev/null`"; then qt_libdir=$dir; break; else echo "tried $dir" >&5 ; fi
30411
for a in $qt_libdir/lib`echo ${kde_int_qt} | sed 's,^-l,,'`_incremental.*; do
30412
if test -e "$a"; then
30413
LIBQT="$LIBQT ${kde_int_qt}_incremental"
30418
ac_qt_libraries="$qt_libdir"
30422
ac_cpp='$CXXCPP $CPPFLAGS'
30423
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30424
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30425
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30427
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
30431
ac_cxxflags_safe="$CXXFLAGS"
30432
ac_ldflags_safe="$LDFLAGS"
30433
ac_libs_safe="$LIBS"
30435
CXXFLAGS="$CXXFLAGS -I$qt_incdir $all_includes"
30436
LDFLAGS="$LDFLAGS -L$qt_libdir $all_libraries $USER_LDFLAGS $KDE_MT_LDFLAGS"
30437
LIBS="$LIBS $LIBQT $KDE_MT_LIBS"
30441
cat > conftest.$ac_ext <<EOF
30442
#include "confdefs.h"
30443
#include <qglobal.h>
30444
#include <qapplication.h>
30446
if test "$kde_qtver" = "2"; then
30447
cat >> conftest.$ac_ext <<EOF
30448
#include <qevent.h>
30449
#include <qstring.h>
30450
#include <qstyle.h>
30453
if test $kde_qtsubver -gt 0; then
30454
cat >> conftest.$ac_ext <<EOF
30455
#if QT_VERSION < 210
30462
if test "$kde_qtver" = "3"; then
30463
cat >> conftest.$ac_ext <<EOF
30464
#include <qcursor.h>
30465
#include <qstylefactory.h>
30466
#include <private/qucomextra_p.h>
30470
echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
30471
cat >> conftest.$ac_ext <<EOF
30477
if test "$kde_qtver" = "2"; then
30478
cat >> conftest.$ac_ext <<EOF
30479
QStringList *t = new QStringList();
30482
if test $kde_qtsubver -gt 0; then
30483
cat >> conftest.$ac_ext <<EOF
30485
s.setLatin1("Elvis is alive", 14);
30489
if test "$kde_qtver" = "3"; then
30490
cat >> conftest.$ac_ext <<EOF
30491
(void)QStyleFactory::create(QString::null);
30492
QCursor c(Qt::WhatsThisCursor);
30495
cat >> conftest.$ac_ext <<EOF
30501
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30502
(eval $ac_link) 2>&5
30504
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30505
(exit $ac_status); } && test -s conftest; then
30508
echo "configure: failed program was:" >&5
30509
cat conftest.$ac_ext >&5
30510
ac_qt_libraries="NO"
30513
CXXFLAGS="$ac_cxxflags_safe"
30514
LDFLAGS="$ac_ldflags_safe"
30515
LIBS="$ac_libs_safe"
30518
ac_cpp='$CPP $CPPFLAGS'
30519
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30520
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30521
ac_compiler_gnu=$ac_cv_c_compiler_gnu
30523
if test "$ac_qt_includes" = NO || test "$ac_qt_libraries" = NO; then
30524
ac_cv_have_qt="have_qt=no"
30527
if test "$ac_qt_includes" = NO; then
30528
if test "$ac_qt_libraries" = NO; then
30529
ac_qt_notfound="(headers and libraries)";
30531
ac_qt_notfound="(headers)";
30534
if test "x$kde_use_qt_mt" = "xyes"; then
30536
Make sure that you have compiled Qt with thread support!"
30537
ac_qt_notfound="(library $qtlib-mt)";
30539
ac_qt_notfound="(library $qtlib)";
30543
{ { echo "$as_me:$LINENO: error: Qt ($kde_qt_minversion) $ac_qt_notfound not found. Please check your installation!
30544
For more details about this problem, look at the end of config.log.$missing_qt_mt" >&5
30545
echo "$as_me: error: Qt ($kde_qt_minversion) $ac_qt_notfound not found. Please check your installation!
30546
For more details about this problem, look at the end of config.log.$missing_qt_mt" >&2;}
30547
{ (exit 1); exit 1; }; }
30555
eval "$ac_cv_have_qt"
30557
if test "$have_qt" != yes; then
30558
{ echo "$as_me:$LINENO: result: $have_qt" >&5
30559
echo "${ECHO_T}$have_qt" >&6; };
30561
ac_cv_have_qt="have_qt=yes \
30562
ac_qt_includes=$ac_qt_includes ac_qt_libraries=$ac_qt_libraries"
30563
{ echo "$as_me:$LINENO: result: libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" >&5
30564
echo "${ECHO_T}libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" >&6; }
30566
qt_libraries="$ac_qt_libraries"
30567
qt_includes="$ac_qt_includes"
30570
if test ! "$kde_qt_libs_given" = "yes" && test ! "$kde_qtver" = 3; then
30573
{ echo "$as_me:$LINENO: checking if Qt compiles without flags" >&5
30574
echo $ECHO_N "checking if Qt compiles without flags... $ECHO_C" >&6; }
30575
if test "${kde_cv_qt_direct+set}" = set; then
30576
echo $ECHO_N "(cached) $ECHO_C" >&6
30581
ac_cpp='$CXXCPP $CPPFLAGS'
30582
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30583
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30584
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30586
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
30589
ac_LD_LIBRARY_PATH_safe=$LD_LIBRARY_PATH
30590
ac_LIBRARY_PATH="$LIBRARY_PATH"
30591
ac_cxxflags_safe="$CXXFLAGS"
30592
ac_ldflags_safe="$LDFLAGS"
30593
ac_libs_safe="$LIBS"
30595
CXXFLAGS="$CXXFLAGS -I$qt_includes"
30596
LDFLAGS="$LDFLAGS $X_LDFLAGS"
30597
if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
30598
LIBS="$LIBQT -lXext -lX11 $LIBSOCKET"
30600
LIBS="$LIBQT $LIBSOCKET"
30603
export LD_LIBRARY_PATH
30605
export LIBRARY_PATH
30609
cat > conftest.$ac_ext <<EOF
30610
#include "confdefs.h"
30611
#include <qglobal.h>
30612
#include <qapplication.h>
30614
if test "$kde_qtver" = "2"; then
30615
cat >> conftest.$ac_ext <<EOF
30616
#include <qevent.h>
30617
#include <qstring.h>
30618
#include <qstyle.h>
30621
if test $kde_qtsubver -gt 0; then
30622
cat >> conftest.$ac_ext <<EOF
30623
#if QT_VERSION < 210
30630
if test "$kde_qtver" = "3"; then
30631
cat >> conftest.$ac_ext <<EOF
30632
#include <qcursor.h>
30633
#include <qstylefactory.h>
30634
#include <private/qucomextra_p.h>
30638
echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
30639
cat >> conftest.$ac_ext <<EOF
30645
if test "$kde_qtver" = "2"; then
30646
cat >> conftest.$ac_ext <<EOF
30647
QStringList *t = new QStringList();
30650
if test $kde_qtsubver -gt 0; then
30651
cat >> conftest.$ac_ext <<EOF
30653
s.setLatin1("Elvis is alive", 14);
30657
if test "$kde_qtver" = "3"; then
30658
cat >> conftest.$ac_ext <<EOF
30659
(void)QStyleFactory::create(QString::null);
30660
QCursor c(Qt::WhatsThisCursor);
30663
cat >> conftest.$ac_ext <<EOF
30669
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30670
(eval $ac_link) 2>&5
30672
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30673
(exit $ac_status); } && test -s conftest; then
30674
kde_cv_qt_direct="yes"
30676
kde_cv_qt_direct="no"
30677
echo "configure: failed program was:" >&5
30678
cat conftest.$ac_ext >&5
30682
CXXFLAGS="$ac_cxxflags_safe"
30683
LDFLAGS="$ac_ldflags_safe"
30684
LIBS="$ac_libs_safe"
30686
LD_LIBRARY_PATH="$ac_LD_LIBRARY_PATH_safe"
30687
export LD_LIBRARY_PATH
30688
LIBRARY_PATH="$ac_LIBRARY_PATH"
30689
export LIBRARY_PATH
30691
ac_cpp='$CPP $CPPFLAGS'
30692
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30693
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30694
ac_compiler_gnu=$ac_cv_c_compiler_gnu
30700
if test "$kde_cv_qt_direct" = "yes"; then
30701
{ echo "$as_me:$LINENO: result: yes" >&5
30702
echo "${ECHO_T}yes" >&6; }
30705
{ echo "$as_me:$LINENO: result: no" >&5
30706
echo "${ECHO_T}no" >&6; }
30715
if test "$qt_includes" = "$x_includes" || test -z "$qt_includes"; then
30718
QT_INCLUDES="-I$qt_includes"
30719
all_includes="$QT_INCLUDES $all_includes"
30722
if test "$qt_libraries" = "$x_libraries" || test -z "$qt_libraries"; then
30725
QT_LDFLAGS="-L$qt_libraries"
30726
all_libraries="$QT_LDFLAGS $all_libraries"
30728
test -z "$KDE_MT_LDFLAGS" || all_libraries="$all_libraries $KDE_MT_LDFLAGS"
30735
for dir in $kde_qt_dirs; do
30736
qt_bindirs="$qt_bindirs $dir/bin $dir/src/moc"
30738
qt_bindirs="$qt_bindirs /usr/bin /usr/X11R6/bin /usr/local/qt/bin"
30739
if test ! "$ac_qt_bindir" = "NO"; then
30740
qt_bindirs="$ac_qt_bindir $qt_bindirs"
30744
{ echo "$as_me:$LINENO: checking for moc" >&5
30745
echo $ECHO_N "checking for moc... $ECHO_C" >&6; }
30746
if test -n "$MOC"; then
30747
kde_cv_path="$MOC";
30749
kde_cache=`echo moc | sed 'y%./+-%__p_%'`
30751
if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
30752
echo $ECHO_N "(cached) $ECHO_C" >&6
30759
for dir in $PATH; do
30762
if test -z ""; then dirs="$qt_bindirs $dirs"
30763
else dirs="$dirs $qt_bindirs"
30767
for dir in $dirs; do
30768
if test -x "$dir/moc"; then
30771
evalstr="$dir/moc 2>&1 "
30772
if eval $evalstr; then
30773
kde_cv_path="$dir/moc"
30777
kde_cv_path="$dir/moc"
30783
eval "kde_cv_path_$kde_cache=$kde_cv_path"
30789
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
30793
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
30794
{ echo "$as_me:$LINENO: result: not found" >&5
30795
echo "${ECHO_T}not found" >&6; }
30797
{ { echo "$as_me:$LINENO: error: No Qt meta object compiler (moc) found!
30798
Please check whether you installed Qt correctly.
30799
You need to have a running moc binary.
30800
configure tried to run $ac_cv_path_moc and the test didn't
30801
succeed. If configure shouldn't have tried this one, set
30802
the environment variable MOC to the right one before running
30805
echo "$as_me: error: No Qt meta object compiler (moc) found!
30806
Please check whether you installed Qt correctly.
30807
You need to have a running moc binary.
30808
configure tried to run $ac_cv_path_moc and the test didn't
30809
succeed. If configure shouldn't have tried this one, set
30810
the environment variable MOC to the right one before running
30813
{ (exit 1); exit 1; }; }
30816
{ echo "$as_me:$LINENO: result: $kde_cv_path" >&5
30817
echo "${ECHO_T}$kde_cv_path" >&6; }
30822
if test -z "$UIC_NOT_NEEDED"; then
30824
{ echo "$as_me:$LINENO: checking for uic" >&5
30825
echo $ECHO_N "checking for uic... $ECHO_C" >&6; }
30826
if test -n "$UIC_PATH"; then
30827
kde_cv_path="$UIC_PATH";
30829
kde_cache=`echo uic | sed 'y%./+-%__p_%'`
30831
if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
30832
echo $ECHO_N "(cached) $ECHO_C" >&6
30839
for dir in $PATH; do
30842
if test -z ""; then dirs="$qt_bindirs $dirs"
30843
else dirs="$dirs $qt_bindirs"
30847
for dir in $dirs; do
30848
if test -x "$dir/uic"; then
30851
evalstr="$dir/uic 2>&1 "
30852
if eval $evalstr; then
30853
kde_cv_path="$dir/uic"
30857
kde_cv_path="$dir/uic"
30863
eval "kde_cv_path_$kde_cache=$kde_cv_path"
30869
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
30873
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
30874
{ echo "$as_me:$LINENO: result: not found" >&5
30875
echo "${ECHO_T}not found" >&6; }
30878
{ echo "$as_me:$LINENO: result: $kde_cv_path" >&5
30879
echo "${ECHO_T}$kde_cv_path" >&6; }
30880
UIC_PATH=$kde_cv_path
30884
if test -z "$UIC_PATH" ; then
30886
{ echo "$as_me:$LINENO: WARNING: No Qt ui compiler (uic) found!
30887
Please check whether you installed Qt correctly.
30888
You need to have a running uic binary.
30889
configure tried to run $ac_cv_path_uic and the test didn't
30890
succeed. If configure shouldn't have tried this one, set
30891
the environment variable UIC to the right one before running
30894
echo "$as_me: WARNING: No Qt ui compiler (uic) found!
30895
Please check whether you installed Qt correctly.
30896
You need to have a running uic binary.
30897
configure tried to run $ac_cv_path_uic and the test didn't
30898
succeed. If configure shouldn't have tried this one, set
30899
the environment variable UIC to the right one before running
30907
if test $kde_qtver = 3; then
30909
{ echo "$as_me:$LINENO: checking whether uic supports -L " >&5
30910
echo $ECHO_N "checking whether uic supports -L ... $ECHO_C" >&6; }
30911
kde_cache=`echo L | sed 'y% .=/+-%____p_%'`
30912
if { as_var=kde_cv_prog_uic_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
30913
echo $ECHO_N "(cached) $ECHO_C" >&6
30916
cat >conftest.ui <<EOT
30917
<!DOCTYPE UI><UI version="3" stdsetdef="1"></UI>
30919
ac_uic_testrun="$UIC_PATH -L /nonexistent conftest.ui >/dev/null"
30920
if { (eval echo "$as_me:$LINENO: \"$ac_uic_testrun\"") >&5
30921
(eval $ac_uic_testrun) 2>&5
30923
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30924
(exit $ac_status); }; then
30925
eval "kde_cv_prog_uic_$kde_cache=yes"
30927
eval "kde_cv_prog_uic_$kde_cache=no"
30934
if eval "test \"`echo '$kde_cv_prog_uic_'$kde_cache`\" = yes"; then
30935
{ echo "$as_me:$LINENO: result: yes" >&5
30936
echo "${ECHO_T}yes" >&6; }
30938
ac_uic_supports_libpath=yes
30940
{ echo "$as_me:$LINENO: result: no" >&5
30941
echo "${ECHO_T}no" >&6; }
30943
ac_uic_supports_libpath=no
30947
{ echo "$as_me:$LINENO: checking whether uic supports -nounload " >&5
30948
echo $ECHO_N "checking whether uic supports -nounload ... $ECHO_C" >&6; }
30949
kde_cache=`echo nounload | sed 'y% .=/+-%____p_%'`
30950
if { as_var=kde_cv_prog_uic_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
30951
echo $ECHO_N "(cached) $ECHO_C" >&6
30954
cat >conftest.ui <<EOT
30955
<!DOCTYPE UI><UI version="3" stdsetdef="1"></UI>
30957
ac_uic_testrun="$UIC_PATH -nounload conftest.ui >/dev/null"
30958
if { (eval echo "$as_me:$LINENO: \"$ac_uic_testrun\"") >&5
30959
(eval $ac_uic_testrun) 2>&5
30961
echo "$as_me:$LINENO: \$? = $ac_status" >&5
30962
(exit $ac_status); }; then
30963
eval "kde_cv_prog_uic_$kde_cache=yes"
30965
eval "kde_cv_prog_uic_$kde_cache=no"
30972
if eval "test \"`echo '$kde_cv_prog_uic_'$kde_cache`\" = yes"; then
30973
{ echo "$as_me:$LINENO: result: yes" >&5
30974
echo "${ECHO_T}yes" >&6; }
30976
ac_uic_supports_nounload=yes
30978
{ echo "$as_me:$LINENO: result: no" >&5
30979
echo "${ECHO_T}no" >&6; }
30981
ac_uic_supports_nounload=no
30985
if test x$ac_uic_supports_libpath = xyes; then
30986
UIC="$UIC -L \$(kde_widgetdir)"
30988
if test x$ac_uic_supports_nounload = xyes; then
30989
UIC="$UIC -nounload"
30994
UIC="echo uic not available: "
31001
if test $kde_qtver = 3; then
31009
if test -n "$LIBJPEG"; then
31010
{ echo "$as_me:$LINENO: checking if Qt needs $LIBJPEG" >&5
31011
echo $ECHO_N "checking if Qt needs $LIBJPEG... $ECHO_C" >&6; }
31012
if test "${kde_cv_qt_jpeg+set}" = set; then
31013
echo $ECHO_N "(cached) $ECHO_C" >&6
31018
ac_cpp='$CXXCPP $CPPFLAGS'
31019
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31020
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31021
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31023
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
31026
ac_save_LIBS="$LIBS"
31027
LIBS="$all_libraries $USER_LDFLAGS $LIBQT"
31028
LIBS=`echo $LIBS | sed "s/$LIBJPEG//"`
31029
ac_save_CXXFLAGS="$CXXFLAGS"
31030
CXXFLAGS="$CXXFLAGS $all_includes $USER_INCLUDES"
31031
cat >conftest.$ac_ext <<_ACEOF
31034
cat confdefs.h >>conftest.$ac_ext
31035
cat >>conftest.$ac_ext <<_ACEOF
31036
/* end confdefs.h. */
31037
#include <qapplication.h>
31044
QApplication app(argc, argv);
31049
rm -f conftest.$ac_objext conftest$ac_exeext
31050
if { (ac_try="$ac_link"
31051
case "(($ac_try" in
31052
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31053
*) ac_try_echo=$ac_try;;
31055
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31056
(eval "$ac_link") 2>conftest.er1
31058
grep -v '^ *+' conftest.er1 >conftest.err
31060
cat conftest.err >&5
31061
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31062
(exit $ac_status); } && {
31063
test -z "$ac_cxx_werror_flag" ||
31064
test ! -s conftest.err
31065
} && test -s conftest$ac_exeext &&
31066
$as_test_x conftest$ac_exeext; then
31067
eval "kde_cv_qt_jpeg=no"
31069
echo "$as_me: failed program was:" >&5
31070
sed 's/^/| /' conftest.$ac_ext >&5
31072
eval "kde_cv_qt_jpeg=yes"
31075
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31076
conftest$ac_exeext conftest.$ac_ext
31077
LIBS="$ac_save_LIBS"
31078
CXXFLAGS="$ac_save_CXXFLAGS"
31080
ac_cpp='$CPP $CPPFLAGS'
31081
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31082
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31083
ac_compiler_gnu=$ac_cv_c_compiler_gnu
31090
if eval "test ! \"`echo $kde_cv_qt_jpeg`\" = no"; then
31091
{ echo "$as_me:$LINENO: result: yes" >&5
31092
echo "${ECHO_T}yes" >&6; }
31093
LIBJPEG_QT='$(LIBJPEG)'
31095
{ echo "$as_me:$LINENO: result: no" >&5
31096
echo "${ECHO_T}no" >&6; }
31102
if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
31103
LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBZ) $(LIBPNG) -lXext $(LIB_X11) $(LIBSM)'
31105
LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBZ) $(LIBPNG)'
31107
test -z "$KDE_MT_LIBS" || LIB_QT="$LIB_QT $KDE_MT_LIBS"
31108
for a in $qt_libdir/lib`echo ${kde_int_qt} | sed 's,^-l,,'`_incremental.*; do
31109
if test -e "$a"; then
31110
LIB_QT="$LIB_QT ${kde_int_qt}_incremental"
31127
{ echo "$as_me:$LINENO: checking for rpath" >&5
31128
echo $ECHO_N "checking for rpath... $ECHO_C" >&6; }
31129
# Check whether --enable-rpath was given.
31130
if test "${enable_rpath+set}" = set; then
31131
enableval=$enable_rpath; USE_RPATH=$enableval
31137
if test -z "$KDE_RPATH" && test "$USE_RPATH" = "yes"; then
31139
KDE_RPATH="-R \$(libdir)"
31141
if test "$kde_libraries" != "$libdir"; then
31142
KDE_RPATH="$KDE_RPATH -R \$(kde_libraries)"
31145
if test -n "$qt_libraries"; then
31146
KDE_RPATH="$KDE_RPATH -R \$(qt_libraries)"
31148
if test -n "$X_LDFLAGS"; then
31149
X_RPATH="-R \$(x_libraries)"
31150
KDE_RPATH="$KDE_RPATH $X_RPATH"
31152
if test -n "$KDE_EXTRA_RPATH"; then
31153
KDE_RPATH="$KDE_RPATH \$(KDE_EXTRA_RPATH)"
31159
{ echo "$as_me:$LINENO: result: $USE_RPATH" >&5
31160
echo "${ECHO_T}$USE_RPATH" >&6; }
31162
{ echo "$as_me:$LINENO: checking for KDE" >&5
31163
echo $ECHO_N "checking for KDE... $ECHO_C" >&6; }
31165
if test "${prefix}" != NONE; then
31166
kde_includes=${includedir}
31169
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
31171
while ac_kde_includes=`eval echo "$tmp"`; test "x$ac_kde_includes" != "x$tmp"; do tmp=$ac_kde_includes; done
31175
kde_libraries=${libdir}
31178
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
31180
while ac_kde_libraries=`eval echo "$tmp"`; test "x$ac_kde_libraries" != "x$tmp"; do tmp=$ac_kde_libraries; done
31191
if test "${ac_cv_have_kde+set}" = set; then
31192
echo $ECHO_N "(cached) $ECHO_C" >&6
31194
#try to guess kde locations
31196
if test "$kde_qtver" = 1; then
31197
kde_check_header="ksock.h"
31198
kde_check_lib="libkdecore.la"
31200
kde_check_header="ksharedptr.h"
31201
kde_check_lib="libkio.la"
31204
if test -z ""; then
31206
kde_incdirs="$kde_libs_prefix/include /usr/lib/kde/include /usr/local/kde/include /usr/local/include /usr/kde/include /usr/include/kde /usr/include /opt/kde3/include /opt/kde/include $x_includes $qt_includes"
31207
test -n "$KDEDIR" && kde_incdirs="$KDEDIR/include $KDEDIR/include/kde $KDEDIR $kde_incdirs"
31208
kde_incdirs="$ac_kde_includes $kde_incdirs"
31211
for i in $kde_incdirs;
31213
for j in $kde_check_header;
31215
echo "configure: 31215: $i/$j" >&5
31216
if test -r "$i/$j"; then
31217
echo "taking that" >&5
31224
ac_kde_includes="$kde_incdir"
31226
if test -n "$ac_kde_includes" && test ! -r "$ac_kde_includes/$kde_check_header"; then
31227
{ { echo "$as_me:$LINENO: error:
31228
in the prefix, you've chosen, are no KDE headers installed. This will fail.
31229
So, check this please and use another prefix!" >&5
31230
echo "$as_me: error:
31231
in the prefix, you've chosen, are no KDE headers installed. This will fail.
31232
So, check this please and use another prefix!" >&2;}
31233
{ (exit 1); exit 1; }; }
31236
kde_libdirs="$kde_libs_prefix/lib${kdelibsuff} /usr/lib/kde/lib${kdelibsuff} /usr/local/kde/lib${kdelibsuff} /usr/kde/lib${kdelibsuff} /usr/lib${kdelibsuff}/kde /usr/lib${kdelibsuff}/kde3 /usr/lib${kdelibsuff} /usr/X11R6/lib${kdelibsuff} /usr/local/lib${kdelibsuff} /opt/kde3/lib${kdelibsuff} /opt/kde/lib${kdelibsuff} /usr/X11R6/kde/lib${kdelibsuff}"
31237
test -n "$KDEDIR" && kde_libdirs="$KDEDIR/lib${kdelibsuff} $KDEDIR $kde_libdirs"
31238
kde_libdirs="$ac_kde_libraries $libdir $kde_libdirs"
31241
for i in $kde_libdirs;
31243
for j in $kde_check_lib;
31245
echo "configure: 31245: $i/$j" >&5
31246
if test -r "$i/$j"; then
31247
echo "taking that" >&5
31254
ac_kde_libraries="$kde_libdir"
31259
for i in $kde_libdirs;
31261
for j in "kde3/plugins/designer/kdewidgets.la";
31263
echo "configure: 31263: $i/$j" >&5
31264
if test -r "$i/$j"; then
31265
echo "taking that" >&5
31273
if test -n "$ac_kde_libraries" && test ! -r "$ac_kde_libraries/$kde_check_lib"; then
31274
{ { echo "$as_me:$LINENO: error:
31275
in the prefix, you've chosen, are no KDE libraries installed. This will fail.
31276
So, check this please and use another prefix!" >&5
31277
echo "$as_me: error:
31278
in the prefix, you've chosen, are no KDE libraries installed. This will fail.
31279
So, check this please and use another prefix!" >&2;}
31280
{ (exit 1); exit 1; }; }
31283
if test -n "$kde_widgetdir" && test ! -r "$kde_widgetdir/kde3/plugins/designer/kdewidgets.la"; then
31284
{ { echo "$as_me:$LINENO: error:
31285
I can't find the designer plugins. These are required and should have been installed
31287
echo "$as_me: error:
31288
I can't find the designer plugins. These are required and should have been installed
31290
{ (exit 1); exit 1; }; }
31293
if test -n "$kde_widgetdir"; then
31294
kde_widgetdir="$kde_widgetdir/kde3/plugins/designer"
31298
if test "$ac_kde_includes" = NO || test "$ac_kde_libraries" = NO || test "$kde_widgetdir" = NO; then
31299
ac_cv_have_kde="have_kde=no"
31301
ac_cv_have_kde="have_kde=yes \
31302
ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries"
31306
ac_cv_have_kde="have_kde=no"
31312
eval "$ac_cv_have_kde"
31314
if test "$have_kde" != "yes"; then
31315
if test "${prefix}" = NONE; then
31316
ac_kde_prefix="$ac_default_prefix"
31318
ac_kde_prefix="$prefix"
31320
if test "$exec_prefix" = NONE; then
31321
ac_kde_exec_prefix="$ac_kde_prefix"
31322
{ echo "$as_me:$LINENO: result: will be installed in $ac_kde_prefix" >&5
31323
echo "${ECHO_T}will be installed in $ac_kde_prefix" >&6; }
31325
ac_kde_exec_prefix="$exec_prefix"
31326
{ echo "$as_me:$LINENO: result: will be installed in $ac_kde_prefix and $ac_kde_exec_prefix" >&5
31327
echo "${ECHO_T}will be installed in $ac_kde_prefix and $ac_kde_exec_prefix" >&6; }
31330
kde_libraries="${libdir}"
31331
kde_includes="${includedir}"
31334
ac_cv_have_kde="have_kde=yes \
31335
ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries"
31336
{ echo "$as_me:$LINENO: result: libraries $ac_kde_libraries, headers $ac_kde_includes" >&5
31337
echo "${ECHO_T}libraries $ac_kde_libraries, headers $ac_kde_includes" >&6; }
31339
kde_libraries="$ac_kde_libraries"
31340
kde_includes="$ac_kde_includes"
31345
if test "$kde_includes" = "$x_includes" || test "$kde_includes" = "$qt_includes" || test "$kde_includes" = "/usr/include"; then
31348
KDE_INCLUDES="-I$kde_includes"
31349
all_includes="$KDE_INCLUDES $all_includes"
31352
KDE_DEFAULT_CXXFLAGS="-DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION"
31354
KDE_LDFLAGS="-L$kde_libraries"
31355
if test ! "$kde_libraries" = "$x_libraries" && test ! "$kde_libraries" = "$qt_libraries" ; then
31356
all_libraries="$KDE_LDFLAGS $all_libraries"
31364
all_libraries="$all_libraries $USER_LDFLAGS"
31365
all_includes="$all_includes $USER_INCLUDES"
31369
if test -z ""; then
31373
if test x$ac_uic_supports_libpath = xyes; then
31375
{ echo "$as_me:$LINENO: checking if UIC has KDE plugins available" >&5
31376
echo $ECHO_N "checking if UIC has KDE plugins available... $ECHO_C" >&6; }
31377
if test "${kde_cv_uic_plugins+set}" = set; then
31378
echo $ECHO_N "(cached) $ECHO_C" >&6
31381
cat > actest.ui << EOF
31382
<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
31383
<class>NewConnectionDialog</class>
31384
<widget class="QDialog">
31385
<widget class="KLineEdit">
31386
<property name="name">
31387
<cstring>testInput</cstring>
31396
kde_cv_uic_plugins=no
31397
kde_line="$UIC_PATH -L $kde_widgetdir"
31398
if test x$ac_uic_supports_nounload = xyes; then
31399
kde_line="$kde_line -nounload"
31401
kde_line="$kde_line -impl actest.h actest.ui > actest.cpp"
31402
if { (eval echo "$as_me:$LINENO: \"$kde_line\"") >&5
31403
(eval $kde_line) 2>&5
31405
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31406
(exit $ac_status); }; then
31407
# if you're trying to debug this check and think it's incorrect,
31408
# better check your installation. The check _is_ correct - your
31409
# installation is not.
31410
if test -f actest.cpp && grep klineedit actest.cpp > /dev/null; then
31411
kde_cv_uic_plugins=yes
31414
rm -f actest.ui actest.cpp
31419
{ echo "$as_me:$LINENO: result: $kde_cv_uic_plugins" >&5
31420
echo "${ECHO_T}$kde_cv_uic_plugins" >&6; }
31421
if test "$kde_cv_uic_plugins" != yes; then
31422
{ { echo "$as_me:$LINENO: error:
31423
you need to install kdelibs first.
31425
If you did install kdelibs, then the Qt version that is picked up by
31426
this configure is not the same version you used to compile kdelibs.
31427
The Qt Plugin installed by kdelibs is *ONLY* loadable if it is the
31428
_same Qt version_, compiled with the _same compiler_ and the same Qt
31429
configuration settings.
31431
echo "$as_me: error:
31432
you need to install kdelibs first.
31434
If you did install kdelibs, then the Qt version that is picked up by
31435
this configure is not the same version you used to compile kdelibs.
31436
The Qt Plugin installed by kdelibs is *ONLY* loadable if it is the
31437
_same Qt version_, compiled with the _same compiler_ and the same Qt
31438
configuration settings.
31440
{ (exit 1); exit 1; }; }
31446
ac_kde_libraries="$kde_libdir"
31452
# Check whether --enable-path-check was given.
31453
if test "${enable_path_check+set}" = set; then
31454
enableval=$enable_path_check;
31455
if test "$enableval" = "no";
31456
then ac_use_path_checking="default"
31457
else ac_use_path_checking=""
31462
if test "$kde_qtver" = 1;
31463
then ac_use_path_checking=""
31464
else ac_use_path_checking="default"
31474
{ echo "$as_me:$LINENO: checking for KDE paths" >&5
31475
echo $ECHO_N "checking for KDE paths... $ECHO_C" >&6; }
31477
kde_cached_paths=yes
31478
if test "${kde_cv_all_paths+set}" = set; then
31479
echo $ECHO_N "(cached) $ECHO_C" >&6
31483
if test "$ac_use_path_checking" = "default"; then
31485
if test -z "$kde_htmldir"; then
31486
kde_htmldir='\${datadir}/doc/HTML'
31488
if test -z "$kde_appsdir"; then
31489
kde_appsdir='\${datadir}/applnk'
31491
if test -z "$kde_icondir"; then
31492
kde_icondir='\${datadir}/icons'
31494
if test -z "$kde_sounddir"; then
31495
kde_sounddir='\${datadir}/sounds'
31497
if test -z "$kde_datadir"; then
31498
kde_datadir='\${datadir}/apps'
31500
if test -z "$kde_locale"; then
31501
kde_locale='\${datadir}/locale'
31503
if test -z "$kde_cgidir"; then
31504
kde_cgidir='\${exec_prefix}/cgi-bin'
31506
if test -z "$kde_confdir"; then
31507
kde_confdir='\${datadir}/config'
31509
if test -z "$kde_kcfgdir"; then
31510
kde_kcfgdir='\${datadir}/config.kcfg'
31512
if test -z "$kde_mimedir"; then
31513
kde_mimedir='\${datadir}/mimelnk'
31515
if test -z "$kde_toolbardir"; then
31516
kde_toolbardir='\${datadir}/toolbar'
31518
if test -z "$kde_wallpaperdir"; then
31519
kde_wallpaperdir='\${datadir}/wallpapers'
31521
if test -z "$kde_templatesdir"; then
31522
kde_templatesdir='\${datadir}/templates'
31524
if test -z "$kde_bindir"; then
31525
kde_bindir='\${exec_prefix}/bin'
31527
if test -z "$kde_servicesdir"; then
31528
kde_servicesdir='\${datadir}/services'
31530
if test -z "$kde_servicetypesdir"; then
31531
kde_servicetypesdir='\${datadir}/servicetypes'
31533
if test -z "$kde_moduledir"; then
31534
if test "$kde_qtver" = "2"; then
31535
kde_moduledir='\${libdir}/kde2'
31537
kde_moduledir='\${libdir}/kde3'
31540
if test -z "$kde_styledir"; then
31541
kde_styledir='\${libdir}/kde3/plugins/styles'
31543
if test -z "$kde_widgetdir"; then
31544
kde_widgetdir='\${libdir}/kde3/plugins/designer'
31546
if test -z "$xdg_appsdir"; then
31547
xdg_appsdir='\${datadir}/applications/kde'
31549
if test -z "$xdg_menudir"; then
31550
xdg_menudir='\${sysconfdir}/xdg/menus'
31552
if test -z "$xdg_directorydir"; then
31553
xdg_directorydir='\${datadir}/desktop-directories'
31557
kde_cv_all_paths="kde_have_all_paths=\"yes\" \
31558
kde_htmldir=\"$kde_htmldir\" \
31559
kde_appsdir=\"$kde_appsdir\" \
31560
kde_icondir=\"$kde_icondir\" \
31561
kde_sounddir=\"$kde_sounddir\" \
31562
kde_datadir=\"$kde_datadir\" \
31563
kde_locale=\"$kde_locale\" \
31564
kde_cgidir=\"$kde_cgidir\" \
31565
kde_confdir=\"$kde_confdir\" \
31566
kde_kcfgdir=\"$kde_kcfgdir\" \
31567
kde_mimedir=\"$kde_mimedir\" \
31568
kde_toolbardir=\"$kde_toolbardir\" \
31569
kde_wallpaperdir=\"$kde_wallpaperdir\" \
31570
kde_templatesdir=\"$kde_templatesdir\" \
31571
kde_bindir=\"$kde_bindir\" \
31572
kde_servicesdir=\"$kde_servicesdir\" \
31573
kde_servicetypesdir=\"$kde_servicetypesdir\" \
31574
kde_moduledir=\"$kde_moduledir\" \
31575
kde_styledir=\"$kde_styledir\" \
31576
kde_widgetdir=\"$kde_widgetdir\" \
31577
xdg_appsdir=\"$xdg_appsdir\" \
31578
xdg_menudir=\"$xdg_menudir\" \
31579
xdg_directorydir=\"$xdg_directorydir\" \
31580
kde_result=defaults"
31585
if test $kde_qtver = 1; then
31586
{ echo "$as_me:$LINENO: result: compiling" >&5
31587
echo "${ECHO_T}compiling" >&6; }
31590
{ echo "$as_me:$LINENO: checking for KDE headers installed" >&5
31591
echo $ECHO_N "checking for KDE headers installed... $ECHO_C" >&6; }
31594
ac_cpp='$CXXCPP $CPPFLAGS'
31595
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31596
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31597
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31599
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
31602
cat > conftest.$ac_ext <<EOF
31603
#ifdef STDC_HEADERS
31604
# include <stdlib.h>
31607
#include "confdefs.h"
31611
printf("kde_htmldir=\\"%s\\"\n", KApplication::kde_htmldir().data());
31612
printf("kde_appsdir=\\"%s\\"\n", KApplication::kde_appsdir().data());
31613
printf("kde_icondir=\\"%s\\"\n", KApplication::kde_icondir().data());
31614
printf("kde_sounddir=\\"%s\\"\n", KApplication::kde_sounddir().data());
31615
printf("kde_datadir=\\"%s\\"\n", KApplication::kde_datadir().data());
31616
printf("kde_locale=\\"%s\\"\n", KApplication::kde_localedir().data());
31617
printf("kde_cgidir=\\"%s\\"\n", KApplication::kde_cgidir().data());
31618
printf("kde_confdir=\\"%s\\"\n", KApplication::kde_configdir().data());
31619
printf("kde_mimedir=\\"%s\\"\n", KApplication::kde_mimedir().data());
31620
printf("kde_toolbardir=\\"%s\\"\n", KApplication::kde_toolbardir().data());
31621
printf("kde_wallpaperdir=\\"%s\\"\n",
31622
KApplication::kde_wallpaperdir().data());
31623
printf("kde_bindir=\\"%s\\"\n", KApplication::kde_bindir().data());
31624
printf("kde_partsdir=\\"%s\\"\n", KApplication::kde_partsdir().data());
31625
printf("kde_servicesdir=\\"/tmp/dummy\\"\n");
31626
printf("kde_servicetypesdir=\\"/tmp/dummy\\"\n");
31627
printf("kde_moduledir=\\"/tmp/dummy\\"\n");
31628
printf("kde_styledir=\\"/tmp/dummy\\"\n");
31629
printf("kde_widgetdir=\\"/tmp/dummy\\"\n");
31630
printf("xdg_appsdir=\\"/tmp/dummy\\"\n");
31631
printf("xdg_menudir=\\"/tmp/dummy\\"\n");
31632
printf("xdg_directorydir=\\"/tmp/dummy\\"\n");
31633
printf("kde_kcfgdir=\\"/tmp/dummy\\"\n");
31638
ac_save_CPPFLAGS=$CPPFLAGS
31639
CPPFLAGS="$all_includes $CPPFLAGS"
31640
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31641
(eval $ac_compile) 2>&5
31643
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31644
(exit $ac_status); }; then
31645
{ echo "$as_me:$LINENO: result: yes" >&5
31646
echo "${ECHO_T}yes" >&6; }
31648
{ { echo "$as_me:$LINENO: error: your system is not able to compile a small KDE application!
31649
Check, if you installed the KDE header files correctly.
31650
For more details about this problem, look at the end of config.log." >&5
31651
echo "$as_me: error: your system is not able to compile a small KDE application!
31652
Check, if you installed the KDE header files correctly.
31653
For more details about this problem, look at the end of config.log." >&2;}
31654
{ (exit 1); exit 1; }; }
31656
CPPFLAGS=$ac_save_CPPFLAGS
31659
ac_cpp='$CPP $CPPFLAGS'
31660
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31661
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31662
ac_compiler_gnu=$ac_cv_c_compiler_gnu
31668
if test -n "$USE_RPATH"; then
31670
if test -n "$kde_libraries"; then
31671
KDE_TEST_RPATH="-R $kde_libraries"
31674
if test -n "$qt_libraries"; then
31675
KDE_TEST_RPATH="$KDE_TEST_RPATH -R $qt_libraries"
31678
if test -n "$x_libraries"; then
31679
KDE_TEST_RPATH="$KDE_TEST_RPATH -R $x_libraries"
31682
KDE_TEST_RPATH="$KDE_TEST_RPATH $KDE_EXTRA_RPATH"
31685
{ echo "$as_me:$LINENO: checking for KDE libraries installed" >&5
31686
echo $ECHO_N "checking for KDE libraries installed... $ECHO_C" >&6; }
31687
ac_link='$LIBTOOL_SHELL --silent --mode=link ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS $all_libraries conftest.$ac_ext $LIBS -lkdecore $LIBQT $KDE_TEST_RPATH 1>&5'
31689
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31690
(eval $ac_link) 2>&5
31692
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31693
(exit $ac_status); } && test -s conftest; then
31694
{ echo "$as_me:$LINENO: result: yes" >&5
31695
echo "${ECHO_T}yes" >&6; }
31697
{ { echo "$as_me:$LINENO: error: your system fails at linking a small KDE application!
31698
Check, if your compiler is installed correctly and if you have used the
31699
same compiler to compile Qt and kdelibs as you did use now.
31700
For more details about this problem, look at the end of config.log." >&5
31701
echo "$as_me: error: your system fails at linking a small KDE application!
31702
Check, if your compiler is installed correctly and if you have used the
31703
same compiler to compile Qt and kdelibs as you did use now.
31704
For more details about this problem, look at the end of config.log." >&2;}
31705
{ (exit 1); exit 1; }; }
31708
if eval `KDEDIR= ./conftest 2>&5`; then
31711
kde_result=problems
31714
KDEDIR= ./conftest 2> /dev/null >&5 # make an echo for config.log
31715
kde_have_all_paths=yes
31718
kde_cv_all_paths="kde_have_all_paths=\"yes\" \
31719
kde_htmldir=\"$kde_htmldir\" \
31720
kde_appsdir=\"$kde_appsdir\" \
31721
kde_icondir=\"$kde_icondir\" \
31722
kde_sounddir=\"$kde_sounddir\" \
31723
kde_datadir=\"$kde_datadir\" \
31724
kde_locale=\"$kde_locale\" \
31725
kde_cgidir=\"$kde_cgidir\" \
31726
kde_confdir=\"$kde_confdir\" \
31727
kde_kcfgdir=\"$kde_kcfgdir\" \
31728
kde_mimedir=\"$kde_mimedir\" \
31729
kde_toolbardir=\"$kde_toolbardir\" \
31730
kde_wallpaperdir=\"$kde_wallpaperdir\" \
31731
kde_templatesdir=\"$kde_templatesdir\" \
31732
kde_bindir=\"$kde_bindir\" \
31733
kde_servicesdir=\"$kde_servicesdir\" \
31734
kde_servicetypesdir=\"$kde_servicetypesdir\" \
31735
kde_moduledir=\"$kde_moduledir\" \
31736
kde_styledir=\"$kde_styledir\" \
31737
kde_widgetdir=\"$kde_widgetdir\" \
31738
xdg_appsdir=\"$xdg_appsdir\" \
31739
xdg_menudir=\"$xdg_menudir\" \
31740
xdg_directorydir=\"$xdg_directorydir\" \
31741
kde_result=$kde_result"
31746
{ { echo "$as_me:$LINENO: error: path checking not yet supported for KDE 2" >&5
31747
echo "$as_me: error: path checking not yet supported for KDE 2" >&2;}
31748
{ (exit 1); exit 1; }; }
31753
kde_cached_paths=no
31757
eval "$kde_cv_all_paths"
31758
if test -z "$kde_htmldir" || test -z "$kde_appsdir" ||
31759
test -z "$kde_icondir" || test -z "$kde_sounddir" ||
31760
test -z "$kde_datadir" || test -z "$kde_locale" ||
31761
test -z "$kde_cgidir" || test -z "$kde_confdir" ||
31762
test -z "$kde_kcfgdir" ||
31763
test -z "$kde_mimedir" || test -z "$kde_toolbardir" ||
31764
test -z "$kde_wallpaperdir" || test -z "$kde_templatesdir" ||
31765
test -z "$kde_bindir" || test -z "$kde_servicesdir" ||
31766
test -z "$kde_servicetypesdir" || test -z "$kde_moduledir" ||
31767
test -z "$kde_styledir" || test -z "kde_widgetdir" ||
31768
test -z "$xdg_appsdir" || test -z "$xdg_menudir" || test -z "$xdg_directorydir" ||
31769
test "x$kde_have_all_paths" != "xyes"; then
31770
kde_have_all_paths=no
31773
if test "$kde_have_all_paths" = "no" && test "$kde_cached_paths" = "yes"; then
31774
# wrong values were cached, may be, we can set better ones
31776
kde_htmldir= kde_appsdir= kde_icondir= kde_sounddir=
31777
kde_datadir= kde_locale= kde_cgidir= kde_confdir= kde_kcfgdir=
31778
kde_mimedir= kde_toolbardir= kde_wallpaperdir= kde_templatesdir=
31779
kde_bindir= kde_servicesdir= kde_servicetypesdir= kde_moduledir=
31780
kde_have_all_paths=
31783
xdg_appsdir = xdg_menudir= xdg_directorydir=
31785
if test "$ac_use_path_checking" = "default"; then
31787
if test -z "$kde_htmldir"; then
31788
kde_htmldir='\${datadir}/doc/HTML'
31790
if test -z "$kde_appsdir"; then
31791
kde_appsdir='\${datadir}/applnk'
31793
if test -z "$kde_icondir"; then
31794
kde_icondir='\${datadir}/icons'
31796
if test -z "$kde_sounddir"; then
31797
kde_sounddir='\${datadir}/sounds'
31799
if test -z "$kde_datadir"; then
31800
kde_datadir='\${datadir}/apps'
31802
if test -z "$kde_locale"; then
31803
kde_locale='\${datadir}/locale'
31805
if test -z "$kde_cgidir"; then
31806
kde_cgidir='\${exec_prefix}/cgi-bin'
31808
if test -z "$kde_confdir"; then
31809
kde_confdir='\${datadir}/config'
31811
if test -z "$kde_kcfgdir"; then
31812
kde_kcfgdir='\${datadir}/config.kcfg'
31814
if test -z "$kde_mimedir"; then
31815
kde_mimedir='\${datadir}/mimelnk'
31817
if test -z "$kde_toolbardir"; then
31818
kde_toolbardir='\${datadir}/toolbar'
31820
if test -z "$kde_wallpaperdir"; then
31821
kde_wallpaperdir='\${datadir}/wallpapers'
31823
if test -z "$kde_templatesdir"; then
31824
kde_templatesdir='\${datadir}/templates'
31826
if test -z "$kde_bindir"; then
31827
kde_bindir='\${exec_prefix}/bin'
31829
if test -z "$kde_servicesdir"; then
31830
kde_servicesdir='\${datadir}/services'
31832
if test -z "$kde_servicetypesdir"; then
31833
kde_servicetypesdir='\${datadir}/servicetypes'
31835
if test -z "$kde_moduledir"; then
31836
if test "$kde_qtver" = "2"; then
31837
kde_moduledir='\${libdir}/kde2'
31839
kde_moduledir='\${libdir}/kde3'
31842
if test -z "$kde_styledir"; then
31843
kde_styledir='\${libdir}/kde3/plugins/styles'
31845
if test -z "$kde_widgetdir"; then
31846
kde_widgetdir='\${libdir}/kde3/plugins/designer'
31848
if test -z "$xdg_appsdir"; then
31849
xdg_appsdir='\${datadir}/applications/kde'
31851
if test -z "$xdg_menudir"; then
31852
xdg_menudir='\${sysconfdir}/xdg/menus'
31854
if test -z "$xdg_directorydir"; then
31855
xdg_directorydir='\${datadir}/desktop-directories'
31859
kde_cv_all_paths="kde_have_all_paths=\"yes\" \
31860
kde_htmldir=\"$kde_htmldir\" \
31861
kde_appsdir=\"$kde_appsdir\" \
31862
kde_icondir=\"$kde_icondir\" \
31863
kde_sounddir=\"$kde_sounddir\" \
31864
kde_datadir=\"$kde_datadir\" \
31865
kde_locale=\"$kde_locale\" \
31866
kde_cgidir=\"$kde_cgidir\" \
31867
kde_confdir=\"$kde_confdir\" \
31868
kde_kcfgdir=\"$kde_kcfgdir\" \
31869
kde_mimedir=\"$kde_mimedir\" \
31870
kde_toolbardir=\"$kde_toolbardir\" \
31871
kde_wallpaperdir=\"$kde_wallpaperdir\" \
31872
kde_templatesdir=\"$kde_templatesdir\" \
31873
kde_bindir=\"$kde_bindir\" \
31874
kde_servicesdir=\"$kde_servicesdir\" \
31875
kde_servicetypesdir=\"$kde_servicetypesdir\" \
31876
kde_moduledir=\"$kde_moduledir\" \
31877
kde_styledir=\"$kde_styledir\" \
31878
kde_widgetdir=\"$kde_widgetdir\" \
31879
xdg_appsdir=\"$xdg_appsdir\" \
31880
xdg_menudir=\"$xdg_menudir\" \
31881
xdg_directorydir=\"$xdg_directorydir\" \
31882
kde_result=defaults"
31887
if test $kde_qtver = 1; then
31888
{ echo "$as_me:$LINENO: result: compiling" >&5
31889
echo "${ECHO_T}compiling" >&6; }
31892
{ echo "$as_me:$LINENO: checking for KDE headers installed" >&5
31893
echo $ECHO_N "checking for KDE headers installed... $ECHO_C" >&6; }
31896
ac_cpp='$CXXCPP $CPPFLAGS'
31897
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31898
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31899
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31901
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
31904
cat > conftest.$ac_ext <<EOF
31905
#ifdef STDC_HEADERS
31906
# include <stdlib.h>
31909
#include "confdefs.h"
31913
printf("kde_htmldir=\\"%s\\"\n", KApplication::kde_htmldir().data());
31914
printf("kde_appsdir=\\"%s\\"\n", KApplication::kde_appsdir().data());
31915
printf("kde_icondir=\\"%s\\"\n", KApplication::kde_icondir().data());
31916
printf("kde_sounddir=\\"%s\\"\n", KApplication::kde_sounddir().data());
31917
printf("kde_datadir=\\"%s\\"\n", KApplication::kde_datadir().data());
31918
printf("kde_locale=\\"%s\\"\n", KApplication::kde_localedir().data());
31919
printf("kde_cgidir=\\"%s\\"\n", KApplication::kde_cgidir().data());
31920
printf("kde_confdir=\\"%s\\"\n", KApplication::kde_configdir().data());
31921
printf("kde_mimedir=\\"%s\\"\n", KApplication::kde_mimedir().data());
31922
printf("kde_toolbardir=\\"%s\\"\n", KApplication::kde_toolbardir().data());
31923
printf("kde_wallpaperdir=\\"%s\\"\n",
31924
KApplication::kde_wallpaperdir().data());
31925
printf("kde_bindir=\\"%s\\"\n", KApplication::kde_bindir().data());
31926
printf("kde_partsdir=\\"%s\\"\n", KApplication::kde_partsdir().data());
31927
printf("kde_servicesdir=\\"/tmp/dummy\\"\n");
31928
printf("kde_servicetypesdir=\\"/tmp/dummy\\"\n");
31929
printf("kde_moduledir=\\"/tmp/dummy\\"\n");
31930
printf("kde_styledir=\\"/tmp/dummy\\"\n");
31931
printf("kde_widgetdir=\\"/tmp/dummy\\"\n");
31932
printf("xdg_appsdir=\\"/tmp/dummy\\"\n");
31933
printf("xdg_menudir=\\"/tmp/dummy\\"\n");
31934
printf("xdg_directorydir=\\"/tmp/dummy\\"\n");
31935
printf("kde_kcfgdir=\\"/tmp/dummy\\"\n");
31940
ac_save_CPPFLAGS=$CPPFLAGS
31941
CPPFLAGS="$all_includes $CPPFLAGS"
31942
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31943
(eval $ac_compile) 2>&5
31945
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31946
(exit $ac_status); }; then
31947
{ echo "$as_me:$LINENO: result: yes" >&5
31948
echo "${ECHO_T}yes" >&6; }
31950
{ { echo "$as_me:$LINENO: error: your system is not able to compile a small KDE application!
31951
Check, if you installed the KDE header files correctly.
31952
For more details about this problem, look at the end of config.log." >&5
31953
echo "$as_me: error: your system is not able to compile a small KDE application!
31954
Check, if you installed the KDE header files correctly.
31955
For more details about this problem, look at the end of config.log." >&2;}
31956
{ (exit 1); exit 1; }; }
31958
CPPFLAGS=$ac_save_CPPFLAGS
31961
ac_cpp='$CPP $CPPFLAGS'
31962
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31963
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31964
ac_compiler_gnu=$ac_cv_c_compiler_gnu
31970
if test -n "$USE_RPATH"; then
31972
if test -n "$kde_libraries"; then
31973
KDE_TEST_RPATH="-R $kde_libraries"
31976
if test -n "$qt_libraries"; then
31977
KDE_TEST_RPATH="$KDE_TEST_RPATH -R $qt_libraries"
31980
if test -n "$x_libraries"; then
31981
KDE_TEST_RPATH="$KDE_TEST_RPATH -R $x_libraries"
31984
KDE_TEST_RPATH="$KDE_TEST_RPATH $KDE_EXTRA_RPATH"
31987
{ echo "$as_me:$LINENO: checking for KDE libraries installed" >&5
31988
echo $ECHO_N "checking for KDE libraries installed... $ECHO_C" >&6; }
31989
ac_link='$LIBTOOL_SHELL --silent --mode=link ${CXX-g++} -o conftest $CXXFLAGS $all_includes $CPPFLAGS $LDFLAGS $all_libraries conftest.$ac_ext $LIBS -lkdecore $LIBQT $KDE_TEST_RPATH 1>&5'
31991
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31992
(eval $ac_link) 2>&5
31994
echo "$as_me:$LINENO: \$? = $ac_status" >&5
31995
(exit $ac_status); } && test -s conftest; then
31996
{ echo "$as_me:$LINENO: result: yes" >&5
31997
echo "${ECHO_T}yes" >&6; }
31999
{ { echo "$as_me:$LINENO: error: your system fails at linking a small KDE application!
32000
Check, if your compiler is installed correctly and if you have used the
32001
same compiler to compile Qt and kdelibs as you did use now.
32002
For more details about this problem, look at the end of config.log." >&5
32003
echo "$as_me: error: your system fails at linking a small KDE application!
32004
Check, if your compiler is installed correctly and if you have used the
32005
same compiler to compile Qt and kdelibs as you did use now.
32006
For more details about this problem, look at the end of config.log." >&2;}
32007
{ (exit 1); exit 1; }; }
32010
if eval `KDEDIR= ./conftest 2>&5`; then
32013
kde_result=problems
32016
KDEDIR= ./conftest 2> /dev/null >&5 # make an echo for config.log
32017
kde_have_all_paths=yes
32020
kde_cv_all_paths="kde_have_all_paths=\"yes\" \
32021
kde_htmldir=\"$kde_htmldir\" \
32022
kde_appsdir=\"$kde_appsdir\" \
32023
kde_icondir=\"$kde_icondir\" \
32024
kde_sounddir=\"$kde_sounddir\" \
32025
kde_datadir=\"$kde_datadir\" \
32026
kde_locale=\"$kde_locale\" \
32027
kde_cgidir=\"$kde_cgidir\" \
32028
kde_confdir=\"$kde_confdir\" \
32029
kde_kcfgdir=\"$kde_kcfgdir\" \
32030
kde_mimedir=\"$kde_mimedir\" \
32031
kde_toolbardir=\"$kde_toolbardir\" \
32032
kde_wallpaperdir=\"$kde_wallpaperdir\" \
32033
kde_templatesdir=\"$kde_templatesdir\" \
32034
kde_bindir=\"$kde_bindir\" \
32035
kde_servicesdir=\"$kde_servicesdir\" \
32036
kde_servicetypesdir=\"$kde_servicetypesdir\" \
32037
kde_moduledir=\"$kde_moduledir\" \
32038
kde_styledir=\"$kde_styledir\" \
32039
kde_widgetdir=\"$kde_widgetdir\" \
32040
xdg_appsdir=\"$xdg_appsdir\" \
32041
xdg_menudir=\"$xdg_menudir\" \
32042
xdg_directorydir=\"$xdg_directorydir\" \
32043
kde_result=$kde_result"
32048
{ { echo "$as_me:$LINENO: error: path checking not yet supported for KDE 2" >&5
32049
echo "$as_me: error: path checking not yet supported for KDE 2" >&2;}
32050
{ (exit 1); exit 1; }; }
32055
eval "$kde_cv_all_paths"
32056
if test -z "$kde_htmldir" || test -z "$kde_appsdir" ||
32057
test -z "$kde_icondir" || test -z "$kde_sounddir" ||
32058
test -z "$kde_datadir" || test -z "$kde_locale" ||
32059
test -z "$kde_cgidir" || test -z "$kde_confdir" ||
32060
test -z "$kde_kcfgdir" ||
32061
test -z "$kde_mimedir" || test -z "$kde_toolbardir" ||
32062
test -z "$kde_wallpaperdir" || test -z "$kde_templatesdir" ||
32063
test -z "$kde_bindir" || test -z "$kde_servicesdir" ||
32064
test -z "$kde_servicetypesdir" || test -z "$kde_moduledir" ||
32065
test -z "$kde_styledir" || test -z "kde_widgetdir" ||
32066
test -z "$xdg_appsdir" || test -z "$xdg_menudir" || test -z "$xdg_directorydir" ||
32067
test "x$kde_have_all_paths" != "xyes"; then
32068
kde_have_all_paths=no
32071
kde_result="$kde_result (cache overridden)"
32073
if test "$kde_have_all_paths" = "no"; then
32074
{ { echo "$as_me:$LINENO: error: configure could not run a little KDE program to test the environment.
32075
Since it had compiled and linked before, it must be a strange problem on your system.
32076
Look at config.log for details. If you are not able to fix this, look at
32077
http://www.kde.org/faq/installation.html or any www.kde.org mirror.
32078
(If you're using an egcs version on Linux, you may update binutils!)
32080
echo "$as_me: error: configure could not run a little KDE program to test the environment.
32081
Since it had compiled and linked before, it must be a strange problem on your system.
32082
Look at config.log for details. If you are not able to fix this, look at
32083
http://www.kde.org/faq/installation.html or any www.kde.org mirror.
32084
(If you're using an egcs version on Linux, you may update binutils!)
32086
{ (exit 1); exit 1; }; }
32089
{ echo "$as_me:$LINENO: result: $kde_result" >&5
32090
echo "${ECHO_T}$kde_result" >&6; }
32097
# Check whether --with-arts was given.
32098
if test "${with_arts+set}" = set; then
32099
withval=$with_arts; build_arts=$withval
32107
if test "$build_arts" '!=' "no"; then
32109
include_ARTS_FALSE='#'
32111
include_ARTS_TRUE='#'
32112
include_ARTS_FALSE=
32115
if test "$build_arts" = "no"; then
32117
cat >>confdefs.h <<\_ACEOF
32118
#define WITHOUT_ARTS 1
32124
kde_default_bindirs="/usr/bin /usr/local/bin /opt/local/bin /usr/X11R6/bin /opt/kde/bin /opt/kde3/bin /usr/kde/bin /usr/local/kde/bin"
32125
test -n "$KDEDIR" && kde_default_bindirs="$KDEDIR/bin $kde_default_bindirs"
32126
if test -n "$KDEDIRS"; then
32129
for dir in $KDEDIRS; do
32130
kde_default_bindirs="$dir/bin $kde_default_bindirs "
32135
kde_default_bindirs="$exec_prefix/bin $prefix/bin $kde_libs_prefix/bin $kde_default_bindirs"
32137
{ echo "$as_me:$LINENO: checking for dcopidl" >&5
32138
echo $ECHO_N "checking for dcopidl... $ECHO_C" >&6; }
32139
if test -n "$DCOPIDL"; then
32140
kde_cv_path="$DCOPIDL";
32142
kde_cache=`echo dcopidl | sed 'y%./+-%__p_%'`
32144
if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
32145
echo $ECHO_N "(cached) $ECHO_C" >&6
32152
for dir in $PATH; do
32155
if test -z ""; then dirs="$kde_default_bindirs $dirs"
32156
else dirs="$dirs $kde_default_bindirs"
32160
for dir in $dirs; do
32161
if test -x "$dir/dcopidl"; then
32164
evalstr="$dir/dcopidl 2>&1 "
32165
if eval $evalstr; then
32166
kde_cv_path="$dir/dcopidl"
32170
kde_cv_path="$dir/dcopidl"
32176
eval "kde_cv_path_$kde_cache=$kde_cv_path"
32182
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32186
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32187
{ echo "$as_me:$LINENO: result: not found" >&5
32188
echo "${ECHO_T}not found" >&6; }
32190
{ { echo "$as_me:$LINENO: error: The important program dcopidl was not found!
32191
Please check whether you installed KDE correctly.
32193
echo "$as_me: error: The important program dcopidl was not found!
32194
Please check whether you installed KDE correctly.
32196
{ (exit 1); exit 1; }; }
32199
{ echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32200
echo "${ECHO_T}$kde_cv_path" >&6; }
32201
DCOPIDL=$kde_cv_path
32206
{ echo "$as_me:$LINENO: checking for dcopidl2cpp" >&5
32207
echo $ECHO_N "checking for dcopidl2cpp... $ECHO_C" >&6; }
32208
if test -n "$DCOPIDL2CPP"; then
32209
kde_cv_path="$DCOPIDL2CPP";
32211
kde_cache=`echo dcopidl2cpp | sed 'y%./+-%__p_%'`
32213
if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
32214
echo $ECHO_N "(cached) $ECHO_C" >&6
32221
for dir in $PATH; do
32224
if test -z ""; then dirs="$kde_default_bindirs $dirs"
32225
else dirs="$dirs $kde_default_bindirs"
32229
for dir in $dirs; do
32230
if test -x "$dir/dcopidl2cpp"; then
32233
evalstr="$dir/dcopidl2cpp 2>&1 "
32234
if eval $evalstr; then
32235
kde_cv_path="$dir/dcopidl2cpp"
32239
kde_cv_path="$dir/dcopidl2cpp"
32245
eval "kde_cv_path_$kde_cache=$kde_cv_path"
32251
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32255
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32256
{ echo "$as_me:$LINENO: result: not found" >&5
32257
echo "${ECHO_T}not found" >&6; }
32259
{ { echo "$as_me:$LINENO: error: The important program dcopidl2cpp was not found!
32260
Please check whether you installed KDE correctly.
32262
echo "$as_me: error: The important program dcopidl2cpp was not found!
32263
Please check whether you installed KDE correctly.
32265
{ (exit 1); exit 1; }; }
32268
{ echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32269
echo "${ECHO_T}$kde_cv_path" >&6; }
32270
DCOPIDL2CPP=$kde_cv_path
32274
if test "$build_arts" '!=' "no"; then
32276
{ echo "$as_me:$LINENO: checking for mcopidl" >&5
32277
echo $ECHO_N "checking for mcopidl... $ECHO_C" >&6; }
32278
if test -n "$MCOPIDL"; then
32279
kde_cv_path="$MCOPIDL";
32281
kde_cache=`echo mcopidl | sed 'y%./+-%__p_%'`
32283
if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
32284
echo $ECHO_N "(cached) $ECHO_C" >&6
32291
for dir in $PATH; do
32294
if test -z ""; then dirs="$kde_default_bindirs $dirs"
32295
else dirs="$dirs $kde_default_bindirs"
32299
for dir in $dirs; do
32300
if test -x "$dir/mcopidl"; then
32303
evalstr="$dir/mcopidl 2>&1 "
32304
if eval $evalstr; then
32305
kde_cv_path="$dir/mcopidl"
32309
kde_cv_path="$dir/mcopidl"
32315
eval "kde_cv_path_$kde_cache=$kde_cv_path"
32321
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32325
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32326
{ echo "$as_me:$LINENO: result: not found" >&5
32327
echo "${ECHO_T}not found" >&6; }
32329
{ { echo "$as_me:$LINENO: error: The important program mcopidl was not found!
32330
Please check whether you installed aRts correctly or use
32331
--without-arts to compile without aRts support (this will remove functionality).
32333
echo "$as_me: error: The important program mcopidl was not found!
32334
Please check whether you installed aRts correctly or use
32335
--without-arts to compile without aRts support (this will remove functionality).
32337
{ (exit 1); exit 1; }; }
32340
{ echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32341
echo "${ECHO_T}$kde_cv_path" >&6; }
32342
MCOPIDL=$kde_cv_path
32347
{ echo "$as_me:$LINENO: checking for artsc-config" >&5
32348
echo $ECHO_N "checking for artsc-config... $ECHO_C" >&6; }
32349
if test -n "$ARTSCCONFIG"; then
32350
kde_cv_path="$ARTSCCONFIG";
32352
kde_cache=`echo artsc-config | sed 'y%./+-%__p_%'`
32354
if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
32355
echo $ECHO_N "(cached) $ECHO_C" >&6
32362
for dir in $PATH; do
32365
if test -z ""; then dirs="$kde_default_bindirs $dirs"
32366
else dirs="$dirs $kde_default_bindirs"
32370
for dir in $dirs; do
32371
if test -x "$dir/artsc-config"; then
32374
evalstr="$dir/artsc-config 2>&1 "
32375
if eval $evalstr; then
32376
kde_cv_path="$dir/artsc-config"
32380
kde_cv_path="$dir/artsc-config"
32386
eval "kde_cv_path_$kde_cache=$kde_cv_path"
32392
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32396
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32397
{ echo "$as_me:$LINENO: result: not found" >&5
32398
echo "${ECHO_T}not found" >&6; }
32400
{ { echo "$as_me:$LINENO: error: The important program artsc-config was not found!
32401
Please check whether you installed aRts correctly or use
32402
--without-arts to compile without aRts support (this will remove functionality).
32404
echo "$as_me: error: The important program artsc-config was not found!
32405
Please check whether you installed aRts correctly or use
32406
--without-arts to compile without aRts support (this will remove functionality).
32408
{ (exit 1); exit 1; }; }
32411
{ echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32412
echo "${ECHO_T}$kde_cv_path" >&6; }
32413
ARTSCCONFIG=$kde_cv_path
32419
{ echo "$as_me:$LINENO: checking for meinproc" >&5
32420
echo $ECHO_N "checking for meinproc... $ECHO_C" >&6; }
32421
if test -n "$MEINPROC"; then
32422
kde_cv_path="$MEINPROC";
32424
kde_cache=`echo meinproc | sed 'y%./+-%__p_%'`
32426
if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
32427
echo $ECHO_N "(cached) $ECHO_C" >&6
32434
for dir in $PATH; do
32437
if test -z ""; then dirs="$kde_default_bindirs $dirs"
32438
else dirs="$dirs $kde_default_bindirs"
32442
for dir in $dirs; do
32443
if test -x "$dir/meinproc"; then
32446
evalstr="$dir/meinproc 2>&1 "
32447
if eval $evalstr; then
32448
kde_cv_path="$dir/meinproc"
32452
kde_cv_path="$dir/meinproc"
32458
eval "kde_cv_path_$kde_cache=$kde_cv_path"
32464
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32468
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32469
{ echo "$as_me:$LINENO: result: not found" >&5
32470
echo "${ECHO_T}not found" >&6; }
32473
{ echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32474
echo "${ECHO_T}$kde_cv_path" >&6; }
32475
MEINPROC=$kde_cv_path
32482
if test -n "$kde_qtver" && test "$kde_qtver" -lt 3; then
32486
if test "$kde_qtver" = "3"; then
32487
if test "$kde_qtsubver" -le 1; then
32490
if test "$kde_qtsubver" -le 2; then
32493
if test "$KDECONFIG" != "compiled"; then
32494
if test `$KDECONFIG --version | grep KDE | sed 's/KDE: \(...\).*/\1/'` = 3.2; then
32501
if test -n "$kde32ornewer"; then
32503
{ echo "$as_me:$LINENO: checking for kconfig_compiler" >&5
32504
echo $ECHO_N "checking for kconfig_compiler... $ECHO_C" >&6; }
32505
if test -n "$KCONFIG_COMPILER"; then
32506
kde_cv_path="$KCONFIG_COMPILER";
32508
kde_cache=`echo kconfig_compiler | sed 'y%./+-%__p_%'`
32510
if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
32511
echo $ECHO_N "(cached) $ECHO_C" >&6
32518
for dir in $PATH; do
32521
if test -z ""; then dirs="$kde_default_bindirs $dirs"
32522
else dirs="$dirs $kde_default_bindirs"
32526
for dir in $dirs; do
32527
if test -x "$dir/kconfig_compiler"; then
32530
evalstr="$dir/kconfig_compiler 2>&1 "
32531
if eval $evalstr; then
32532
kde_cv_path="$dir/kconfig_compiler"
32536
kde_cv_path="$dir/kconfig_compiler"
32542
eval "kde_cv_path_$kde_cache=$kde_cv_path"
32548
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32552
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32553
{ echo "$as_me:$LINENO: result: not found" >&5
32554
echo "${ECHO_T}not found" >&6; }
32556
{ { echo "$as_me:$LINENO: error: The important program kconfig_compiler was not found!
32557
Please check whether you installed KDE correctly.
32559
echo "$as_me: error: The important program kconfig_compiler was not found!
32560
Please check whether you installed KDE correctly.
32562
{ (exit 1); exit 1; }; }
32565
{ echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32566
echo "${ECHO_T}$kde_cv_path" >&6; }
32567
KCONFIG_COMPILER=$kde_cv_path
32572
{ echo "$as_me:$LINENO: checking for dcopidlng" >&5
32573
echo $ECHO_N "checking for dcopidlng... $ECHO_C" >&6; }
32574
if test -n "$DCOPIDLNG"; then
32575
kde_cv_path="$DCOPIDLNG";
32577
kde_cache=`echo dcopidlng | sed 'y%./+-%__p_%'`
32579
if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
32580
echo $ECHO_N "(cached) $ECHO_C" >&6
32587
for dir in $PATH; do
32590
if test -z ""; then dirs="$kde_default_bindirs $dirs"
32591
else dirs="$dirs $kde_default_bindirs"
32595
for dir in $dirs; do
32596
if test -x "$dir/dcopidlng"; then
32599
evalstr="$dir/dcopidlng 2>&1 "
32600
if eval $evalstr; then
32601
kde_cv_path="$dir/dcopidlng"
32605
kde_cv_path="$dir/dcopidlng"
32611
eval "kde_cv_path_$kde_cache=$kde_cv_path"
32617
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32621
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32622
{ echo "$as_me:$LINENO: result: not found" >&5
32623
echo "${ECHO_T}not found" >&6; }
32625
{ { echo "$as_me:$LINENO: error: The important program dcopidlng was not found!
32626
Please check whether you installed KDE correctly.
32628
echo "$as_me: error: The important program dcopidlng was not found!
32629
Please check whether you installed KDE correctly.
32631
{ (exit 1); exit 1; }; }
32634
{ echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32635
echo "${ECHO_T}$kde_cv_path" >&6; }
32636
DCOPIDLNG=$kde_cv_path
32641
if test -n "$kde33ornewer"; then
32643
{ echo "$as_me:$LINENO: checking for makekdewidgets" >&5
32644
echo $ECHO_N "checking for makekdewidgets... $ECHO_C" >&6; }
32645
if test -n "$MAKEKDEWIDGETS"; then
32646
kde_cv_path="$MAKEKDEWIDGETS";
32648
kde_cache=`echo makekdewidgets | sed 'y%./+-%__p_%'`
32650
if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
32651
echo $ECHO_N "(cached) $ECHO_C" >&6
32658
for dir in $PATH; do
32661
if test -z ""; then dirs="$kde_default_bindirs $dirs"
32662
else dirs="$dirs $kde_default_bindirs"
32666
for dir in $dirs; do
32667
if test -x "$dir/makekdewidgets"; then
32670
evalstr="$dir/makekdewidgets 2>&1 "
32671
if eval $evalstr; then
32672
kde_cv_path="$dir/makekdewidgets"
32676
kde_cv_path="$dir/makekdewidgets"
32682
eval "kde_cv_path_$kde_cache=$kde_cv_path"
32688
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32692
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32693
{ echo "$as_me:$LINENO: result: not found" >&5
32694
echo "${ECHO_T}not found" >&6; }
32696
{ { echo "$as_me:$LINENO: error: The important program makekdewidgets was not found!
32697
Please check whether you installed KDE correctly.
32699
echo "$as_me: error: The important program makekdewidgets was not found!
32700
Please check whether you installed KDE correctly.
32702
{ (exit 1); exit 1; }; }
32705
{ echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32706
echo "${ECHO_T}$kde_cv_path" >&6; }
32707
MAKEKDEWIDGETS=$kde_cv_path
32714
{ echo "$as_me:$LINENO: checking for xmllint" >&5
32715
echo $ECHO_N "checking for xmllint... $ECHO_C" >&6; }
32716
if test -n "$XMLLINT"; then
32717
kde_cv_path="$XMLLINT";
32719
kde_cache=`echo xmllint | sed 'y%./+-%__p_%'`
32721
if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
32722
echo $ECHO_N "(cached) $ECHO_C" >&6
32729
for dir in $PATH; do
32732
if test -z ""; then dirs="${prefix}/bin ${exec_prefix}/bin $dirs"
32733
else dirs="$dirs ${prefix}/bin ${exec_prefix}/bin"
32737
for dir in $dirs; do
32738
if test -x "$dir/xmllint"; then
32741
evalstr="$dir/xmllint 2>&1 "
32742
if eval $evalstr; then
32743
kde_cv_path="$dir/xmllint"
32747
kde_cv_path="$dir/xmllint"
32753
eval "kde_cv_path_$kde_cache=$kde_cv_path"
32759
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32763
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32764
{ echo "$as_me:$LINENO: result: not found" >&5
32765
echo "${ECHO_T}not found" >&6; }
32768
{ echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32769
echo "${ECHO_T}$kde_cv_path" >&6; }
32770
XMLLINT=$kde_cv_path
32775
if test -n "$MEINPROC" -a "$MEINPROC" != "compiled"; then
32776
kde_sharedirs="/usr/share/kde /usr/local/share /usr/share /opt/kde3/share /opt/kde/share $prefix/share"
32777
test -n "$KDEDIR" && kde_sharedirs="$KDEDIR/share $kde_sharedirs"
32779
KDE_XSL_STYLESHEET=NO
32780
for i in $kde_sharedirs;
32782
for j in apps/ksgmltools2/customization/kde-chunk.xsl;
32784
echo "configure: 32784: $i/$j" >&5
32785
if test -r "$i/$j"; then
32786
echo "taking that" >&5
32787
KDE_XSL_STYLESHEET=$i
32793
if test "$KDE_XSL_STYLESHEET" = "NO"; then
32794
KDE_XSL_STYLESHEET=""
32796
KDE_XSL_STYLESHEET="$KDE_XSL_STYLESHEET/apps/ksgmltools2/customization/kde-chunk.xsl"
32800
DCOP_DEPENDENCIES='$(DCOPIDL)'
32801
if test -n "$kde32ornewer"; then
32802
KCFG_DEPENDENCIES='$(KCONFIG_COMPILER)'
32803
DCOP_DEPENDENCIES='$(DCOPIDL) $(DCOPIDLNG)'
32839
kdeinitdir='$(kde_moduledir)'
32843
if test "$kde_qtver" = 1; then
32844
kde_minidir="$kde_icondir/mini"
32846
# for KDE 1 - this breaks KDE2 apps using minidir, but
32847
# that's the plan ;-/
32848
kde_minidir="/dev/null"
32856
if test $kde_qtver = 3; then
32858
*cygwin*) lib_kded="-lkdeinit_kded" ;;
32863
LIB_KDECORE="-lkdecore"
32865
LIB_KDEUI="-lkdeui"
32877
LIB_KHTML="-lkhtml"
32879
LIB_KSPELL="-lkspell"
32881
LIB_KPARTS="-lkparts"
32883
LIB_KDEPRINT="-lkdeprint"
32885
LIB_KUTILS="-lkutils"
32887
LIB_KDEPIM="-lkdepim"
32889
LIB_KIMPROXY="-lkimproxy"
32891
LIB_KNEWSTUFF="-lknewstuff"
32893
LIB_KDNSSD="-lkdnssd"
32895
LIB_KUNITTEST="-lkunittest"
32897
# these are for backward compatibility
32898
LIB_KSYCOCA="-lkio"
32902
elif test $kde_qtver = 2; then
32903
LIB_KDECORE="-lkdecore"
32905
LIB_KDEUI="-lkdeui"
32909
LIB_KSYCOCA="-lksycoca"
32913
LIB_KFILE="-lkfile"
32917
LIB_KHTML="-lkhtml"
32919
LIB_KSPELL="-lkspell"
32921
LIB_KPARTS="-lkparts"
32923
LIB_KDEPRINT="-lkdeprint"
32926
LIB_KDECORE="-lkdecore -lXext $(LIB_QT)"
32928
LIB_KDEUI="-lkdeui $(LIB_KDECORE)"
32930
LIB_KFM="-lkfm $(LIB_KDECORE)"
32932
LIB_KFILE="-lkfile $(LIB_KFM) $(LIB_KDEUI)"
32934
LIB_KAB="-lkab $(LIB_KIMGIO) $(LIB_KDECORE)"
32942
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
32943
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
32944
if test "${ac_cv_c_bigendian+set}" = set; then
32945
echo $ECHO_N "(cached) $ECHO_C" >&6
32947
# See if sys/param.h defines the BYTE_ORDER macro.
32948
cat >conftest.$ac_ext <<_ACEOF
32951
cat confdefs.h >>conftest.$ac_ext
32952
cat >>conftest.$ac_ext <<_ACEOF
32953
/* end confdefs.h. */
32954
#include <sys/types.h>
32955
#include <sys/param.h>
32960
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
32961
&& BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
32962
bogus endian macros
32969
rm -f conftest.$ac_objext
32970
if { (ac_try="$ac_compile"
32971
case "(($ac_try" in
32972
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32973
*) ac_try_echo=$ac_try;;
32975
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32976
(eval "$ac_compile") 2>conftest.er1
32978
grep -v '^ *+' conftest.er1 >conftest.err
32980
cat conftest.err >&5
32981
echo "$as_me:$LINENO: \$? = $ac_status" >&5
32982
(exit $ac_status); } && {
32983
test -z "$ac_c_werror_flag" ||
32984
test ! -s conftest.err
32985
} && test -s conftest.$ac_objext; then
32986
# It does; now see whether it defined to BIG_ENDIAN or not.
32987
cat >conftest.$ac_ext <<_ACEOF
32990
cat confdefs.h >>conftest.$ac_ext
32991
cat >>conftest.$ac_ext <<_ACEOF
32992
/* end confdefs.h. */
32993
#include <sys/types.h>
32994
#include <sys/param.h>
32999
#if BYTE_ORDER != BIG_ENDIAN
33007
rm -f conftest.$ac_objext
33008
if { (ac_try="$ac_compile"
33009
case "(($ac_try" in
33010
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33011
*) ac_try_echo=$ac_try;;
33013
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33014
(eval "$ac_compile") 2>conftest.er1
33016
grep -v '^ *+' conftest.er1 >conftest.err
33018
cat conftest.err >&5
33019
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33020
(exit $ac_status); } && {
33021
test -z "$ac_c_werror_flag" ||
33022
test ! -s conftest.err
33023
} && test -s conftest.$ac_objext; then
33024
ac_cv_c_bigendian=yes
33026
echo "$as_me: failed program was:" >&5
33027
sed 's/^/| /' conftest.$ac_ext >&5
33029
ac_cv_c_bigendian=no
33032
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33034
echo "$as_me: failed program was:" >&5
33035
sed 's/^/| /' conftest.$ac_ext >&5
33037
# It does not; compile a test program.
33038
if test "$cross_compiling" = yes; then
33039
# try to guess the endianness by grepping values into an object file
33040
ac_cv_c_bigendian=unknown
33041
cat >conftest.$ac_ext <<_ACEOF
33044
cat confdefs.h >>conftest.$ac_ext
33045
cat >>conftest.$ac_ext <<_ACEOF
33046
/* end confdefs.h. */
33047
short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33048
short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33049
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
33050
short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33051
short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33052
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
33056
_ascii (); _ebcdic ();
33061
rm -f conftest.$ac_objext
33062
if { (ac_try="$ac_compile"
33063
case "(($ac_try" in
33064
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33065
*) ac_try_echo=$ac_try;;
33067
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33068
(eval "$ac_compile") 2>conftest.er1
33070
grep -v '^ *+' conftest.er1 >conftest.err
33072
cat conftest.err >&5
33073
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33074
(exit $ac_status); } && {
33075
test -z "$ac_c_werror_flag" ||
33076
test ! -s conftest.err
33077
} && test -s conftest.$ac_objext; then
33078
if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
33079
ac_cv_c_bigendian=yes
33081
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33082
if test "$ac_cv_c_bigendian" = unknown; then
33083
ac_cv_c_bigendian=no
33085
# finding both strings is unlikely to happen, but who knows?
33086
ac_cv_c_bigendian=unknown
33090
echo "$as_me: failed program was:" >&5
33091
sed 's/^/| /' conftest.$ac_ext >&5
33096
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33098
cat >conftest.$ac_ext <<_ACEOF
33101
cat confdefs.h >>conftest.$ac_ext
33102
cat >>conftest.$ac_ext <<_ACEOF
33103
/* end confdefs.h. */
33104
$ac_includes_default
33109
/* Are we little or big endian? From Harbison&Steele. */
33113
char c[sizeof (long int)];
33116
return u.c[sizeof (long int) - 1] == 1;
33122
rm -f conftest$ac_exeext
33123
if { (ac_try="$ac_link"
33124
case "(($ac_try" in
33125
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33126
*) ac_try_echo=$ac_try;;
33128
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33129
(eval "$ac_link") 2>&5
33131
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33132
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33133
{ (case "(($ac_try" in
33134
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33135
*) ac_try_echo=$ac_try;;
33137
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33138
(eval "$ac_try") 2>&5
33140
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33141
(exit $ac_status); }; }; then
33142
ac_cv_c_bigendian=no
33144
echo "$as_me: program exited with status $ac_status" >&5
33145
echo "$as_me: failed program was:" >&5
33146
sed 's/^/| /' conftest.$ac_ext >&5
33148
( exit $ac_status )
33149
ac_cv_c_bigendian=yes
33151
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33157
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33159
{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
33160
echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
33161
case $ac_cv_c_bigendian in
33164
cat >>confdefs.h <<\_ACEOF
33165
#define WORDS_BIGENDIAN 1
33171
{ { echo "$as_me:$LINENO: error: unknown endianness
33172
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
33173
echo "$as_me: error: unknown endianness
33174
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
33175
{ (exit 1); exit 1; }; } ;;
33179
{ echo "$as_me:$LINENO: checking for MAXPATHLEN" >&5
33180
echo $ECHO_N "checking for MAXPATHLEN... $ECHO_C" >&6; }
33181
if test "${ac_cv_maxpathlen+set}" = set; then
33182
echo $ECHO_N "(cached) $ECHO_C" >&6
33185
cat > conftest.$ac_ext <<EOF
33186
#ifdef STDC_HEADERS
33187
# include <stdlib.h>
33190
#include <sys/param.h>
33192
#define MAXPATHLEN 1024
33195
KDE_HELLO MAXPATHLEN
33199
ac_try="$ac_cpp conftest.$ac_ext 2>/dev/null | grep '^KDE_HELLO' >conftest.out"
33201
if { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33202
(eval $ac_try) 2>&5
33204
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33205
(exit $ac_status); } && test -s conftest.out; then
33206
ac_cv_maxpathlen=`sed 's#KDE_HELLO ##' conftest.out`
33208
ac_cv_maxpathlen=1024
33216
{ echo "$as_me:$LINENO: result: $ac_cv_maxpathlen" >&5
33217
echo "${ECHO_T}$ac_cv_maxpathlen" >&6; }
33219
cat >>confdefs.h <<_ACEOF
33220
#define KDEMAXPATHLEN $ac_cv_maxpathlen
33227
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
33228
if test -n "$ac_tool_prefix"; then
33229
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
33230
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
33231
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
33232
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33233
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
33234
echo $ECHO_N "(cached) $ECHO_C" >&6
33236
case $PKG_CONFIG in
33238
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
33241
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33242
for as_dir in $PATH
33245
test -z "$as_dir" && as_dir=.
33246
for ac_exec_ext in '' $ac_executable_extensions; do
33247
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33248
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33249
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33259
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
33260
if test -n "$PKG_CONFIG"; then
33261
{ echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
33262
echo "${ECHO_T}$PKG_CONFIG" >&6; }
33264
{ echo "$as_me:$LINENO: result: no" >&5
33265
echo "${ECHO_T}no" >&6; }
33270
if test -z "$ac_cv_path_PKG_CONFIG"; then
33271
ac_pt_PKG_CONFIG=$PKG_CONFIG
33272
# Extract the first word of "pkg-config", so it can be a program name with args.
33273
set dummy pkg-config; ac_word=$2
33274
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
33275
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33276
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
33277
echo $ECHO_N "(cached) $ECHO_C" >&6
33279
case $ac_pt_PKG_CONFIG in
33281
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
33284
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33285
for as_dir in $PATH
33288
test -z "$as_dir" && as_dir=.
33289
for ac_exec_ext in '' $ac_executable_extensions; do
33290
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33291
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33292
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33302
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
33303
if test -n "$ac_pt_PKG_CONFIG"; then
33304
{ echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
33305
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
33307
{ echo "$as_me:$LINENO: result: no" >&5
33308
echo "${ECHO_T}no" >&6; }
33311
if test "x$ac_pt_PKG_CONFIG" = x; then
33314
case $cross_compiling:$ac_tool_warned in
33316
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
33317
whose name does not start with the host triplet. If you think this
33318
configuration is useful to you, please write to autoconf@gnu.org." >&5
33319
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
33320
whose name does not start with the host triplet. If you think this
33321
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
33322
ac_tool_warned=yes ;;
33324
PKG_CONFIG=$ac_pt_PKG_CONFIG
33327
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
33331
if test -n "$PKG_CONFIG"; then
33332
_pkg_min_version=0.9.0
33333
{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
33334
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
33335
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
33336
{ echo "$as_me:$LINENO: result: yes" >&5
33337
echo "${ECHO_T}yes" >&6; }
33339
{ echo "$as_me:$LINENO: result: no" >&5
33340
echo "${ECHO_T}no" >&6; }
33347
{ echo "$as_me:$LINENO: checking for LIBYAZ" >&5
33348
echo $ECHO_N "checking for LIBYAZ... $ECHO_C" >&6; }
33350
if test -n "$PKG_CONFIG"; then
33351
if test -n "$LIBYAZ_CFLAGS"; then
33352
pkg_cv_LIBYAZ_CFLAGS="$LIBYAZ_CFLAGS"
33354
if test -n "$PKG_CONFIG" && \
33355
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"yaz\"") >&5
33356
($PKG_CONFIG --exists --print-errors "yaz") 2>&5
33358
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33359
(exit $ac_status); }; then
33360
pkg_cv_LIBYAZ_CFLAGS=`$PKG_CONFIG --cflags "yaz" 2>/dev/null`
33368
if test -n "$PKG_CONFIG"; then
33369
if test -n "$LIBYAZ_LIBS"; then
33370
pkg_cv_LIBYAZ_LIBS="$LIBYAZ_LIBS"
33372
if test -n "$PKG_CONFIG" && \
33373
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"yaz\"") >&5
33374
($PKG_CONFIG --exists --print-errors "yaz") 2>&5
33376
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33377
(exit $ac_status); }; then
33378
pkg_cv_LIBYAZ_LIBS=`$PKG_CONFIG --libs "yaz" 2>/dev/null`
33389
if test $pkg_failed = yes; then
33391
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33392
_pkg_short_errors_supported=yes
33394
_pkg_short_errors_supported=no
33396
if test $_pkg_short_errors_supported = yes; then
33397
LIBYAZ_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "yaz"`
33399
LIBYAZ_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "yaz"`
33401
# Put the nasty error message in config.log where it belongs
33402
echo "$LIBYAZ_PKG_ERRORS" >&5
33404
{ echo "$as_me:$LINENO: result: no" >&5
33405
echo "${ECHO_T}no" >&6; }
33406
{ echo "$as_me:$LINENO: result: no" >&5
33407
echo "${ECHO_T}no" >&6; }
33408
elif test $pkg_failed = untried; then
33409
{ echo "$as_me:$LINENO: result: no" >&5
33410
echo "${ECHO_T}no" >&6; }
33412
LIBYAZ_CFLAGS=$pkg_cv_LIBYAZ_CFLAGS
33413
LIBYAZ_LIBS=$pkg_cv_LIBYAZ_LIBS
33414
{ echo "$as_me:$LINENO: result: yes" >&5
33415
echo "${ECHO_T}yes" >&6; }
33417
cat >>confdefs.h <<\_ACEOF
33428
{ echo "$as_me:$LINENO: checking for LIBXML" >&5
33429
echo $ECHO_N "checking for LIBXML... $ECHO_C" >&6; }
33431
if test -n "$PKG_CONFIG"; then
33432
if test -n "$LIBXML_CFLAGS"; then
33433
pkg_cv_LIBXML_CFLAGS="$LIBXML_CFLAGS"
33435
if test -n "$PKG_CONFIG" && \
33436
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\"") >&5
33437
($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
33439
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33440
(exit $ac_status); }; then
33441
pkg_cv_LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0" 2>/dev/null`
33449
if test -n "$PKG_CONFIG"; then
33450
if test -n "$LIBXML_LIBS"; then
33451
pkg_cv_LIBXML_LIBS="$LIBXML_LIBS"
33453
if test -n "$PKG_CONFIG" && \
33454
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxml-2.0\"") >&5
33455
($PKG_CONFIG --exists --print-errors "libxml-2.0") 2>&5
33457
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33458
(exit $ac_status); }; then
33459
pkg_cv_LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0" 2>/dev/null`
33470
if test $pkg_failed = yes; then
33472
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33473
_pkg_short_errors_supported=yes
33475
_pkg_short_errors_supported=no
33477
if test $_pkg_short_errors_supported = yes; then
33478
LIBXML_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libxml-2.0"`
33480
LIBXML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0"`
33482
# Put the nasty error message in config.log where it belongs
33483
echo "$LIBXML_PKG_ERRORS" >&5
33485
{ echo "$as_me:$LINENO: result: no" >&5
33486
echo "${ECHO_T}no" >&6; }
33487
{ echo "$as_me:$LINENO: result: no" >&5
33488
echo "${ECHO_T}no" >&6; }
33489
elif test $pkg_failed = untried; then
33490
{ echo "$as_me:$LINENO: result: no" >&5
33491
echo "${ECHO_T}no" >&6; }
33493
LIBXML_CFLAGS=$pkg_cv_LIBXML_CFLAGS
33494
LIBXML_LIBS=$pkg_cv_LIBXML_LIBS
33495
{ echo "$as_me:$LINENO: result: yes" >&5
33496
echo "${ECHO_T}yes" >&6; }
33498
cat >>confdefs.h <<\_ACEOF
33508
{ echo "$as_me:$LINENO: checking for LIBXSLT" >&5
33509
echo $ECHO_N "checking for LIBXSLT... $ECHO_C" >&6; }
33511
if test -n "$PKG_CONFIG"; then
33512
if test -n "$LIBXSLT_CFLAGS"; then
33513
pkg_cv_LIBXSLT_CFLAGS="$LIBXSLT_CFLAGS"
33515
if test -n "$PKG_CONFIG" && \
33516
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxslt\"") >&5
33517
($PKG_CONFIG --exists --print-errors "libxslt") 2>&5
33519
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33520
(exit $ac_status); }; then
33521
pkg_cv_LIBXSLT_CFLAGS=`$PKG_CONFIG --cflags "libxslt" 2>/dev/null`
33529
if test -n "$PKG_CONFIG"; then
33530
if test -n "$LIBXSLT_LIBS"; then
33531
pkg_cv_LIBXSLT_LIBS="$LIBXSLT_LIBS"
33533
if test -n "$PKG_CONFIG" && \
33534
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libxslt\"") >&5
33535
($PKG_CONFIG --exists --print-errors "libxslt") 2>&5
33537
echo "$as_me:$LINENO: \$? = $ac_status" >&5
33538
(exit $ac_status); }; then
33539
pkg_cv_LIBXSLT_LIBS=`$PKG_CONFIG --libs "libxslt" 2>/dev/null`
33550
if test $pkg_failed = yes; then
33552
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33553
_pkg_short_errors_supported=yes
33555
_pkg_short_errors_supported=no
33557
if test $_pkg_short_errors_supported = yes; then
33558
LIBXSLT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libxslt"`
33560
LIBXSLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxslt"`
33562
# Put the nasty error message in config.log where it belongs
33563
echo "$LIBXSLT_PKG_ERRORS" >&5
33565
{ echo "$as_me:$LINENO: result: no" >&5
33566
echo "${ECHO_T}no" >&6; }
33567
{ echo "$as_me:$LINENO: result: no" >&5
33568
echo "${ECHO_T}no" >&6; }
33569
elif test $pkg_failed = untried; then
33570
{ echo "$as_me:$LINENO: result: no" >&5
33571
echo "${ECHO_T}no" >&6; }
33573
LIBXSLT_CFLAGS=$pkg_cv_LIBXSLT_CFLAGS
33574
LIBXSLT_LIBS=$pkg_cv_LIBXSLT_LIBS
33575
{ echo "$as_me:$LINENO: result: yes" >&5
33576
echo "${ECHO_T}yes" >&6; }
33578
cat >>confdefs.h <<\_ACEOF
33579
#define HAVE_XSLT 1
33589
DO_NOT_COMPILE="$DO_NOT_COMPILE CVS debian bsd-port admin"
33592
if test ! -s $srcdir/subdirs; then
33593
files=`cd $srcdir && ls -1`
33594
dirs=`for i in $files; do if test -d $i; then echo $i; fi; done`
33596
echo $i >> $srcdir/subdirs
33601
if test -s $srcdir/inst-apps; then
33602
ac_topsubdirs="`cat $srcdir/inst-apps`"
33603
elif test -s $srcdir/subdirs; then
33604
ac_topsubdirs="`cat $srcdir/subdirs`"
33607
for i in $ac_topsubdirs; do
33608
{ echo "$as_me:$LINENO: checking if $i should be compiled" >&5
33609
echo $ECHO_N "checking if $i should be compiled... $ECHO_C" >&6; }
33610
if test -d $srcdir/$i; then
33612
for j in $DO_NOT_COMPILE; do
33613
if test $i = $j; then
33620
{ echo "$as_me:$LINENO: result: $install_it" >&5
33621
echo "${ECHO_T}$install_it" >&6; }
33622
vari=`echo $i | sed -e 's,[-+.@],_,g'`
33623
if test $install_it = "yes"; then
33624
TOPSUBDIRS="$TOPSUBDIRS $i"
33625
eval "$vari""_SUBDIR_included=yes"
33627
eval "$vari""_SUBDIR_included=no"
33633
ac_config_files="$ac_config_files Makefile"
33635
ac_config_files="$ac_config_files doc/Makefile"
33637
ac_config_files="$ac_config_files doc/en/Makefile"
33639
ac_config_files="$ac_config_files man/Makefile"
33641
ac_config_files="$ac_config_files po/Makefile"
33643
ac_config_files="$ac_config_files src/Makefile"
33645
ac_config_files="$ac_config_files xslt/Makefile"
33647
cat >confcache <<\_ACEOF
33648
# This file is a shell script that caches the results of configure
33649
# tests run on this system so they can be shared between configure
33650
# scripts and configure runs, see configure's option --config-cache.
33651
# It is not useful on other systems. If it contains results you don't
33652
# want to keep, you may remove or edit it.
33654
# config.status only pays attention to the cache file if you give it
33655
# the --recheck option to rerun configure.
33657
# `ac_cv_env_foo' variables (set or unset) will be overridden when
33658
# loading this file, other *unset* `ac_cv_foo' will be assigned the
33659
# following values.
33663
# The following way of writing the cache mishandles newlines in values,
33664
# but we know of no workaround that is simple, portable, and efficient.
33665
# So, we kill variables containing newlines.
33666
# Ultrix sh set writes to stderr and can't be redirected directly,
33667
# and sets the high bit in the cache file unless we assign to the vars.
33669
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33670
eval ac_val=\$$ac_var
33674
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33675
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33678
_ | IFS | as_nl) ;; #(
33679
*) $as_unset $ac_var ;;
33685
case $as_nl`(ac_space=' '; set) 2>&1` in #(
33686
*${as_nl}ac_space=\ *)
33687
# `set' does not quote correctly, so add quotes (double-quote
33688
# substitution turns \\\\ into \\, and sed turns \\ into \).
33691
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33694
# `set' quotes correctly as required by POSIX, so do not add quotes.
33695
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33704
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33706
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33708
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33709
if test -w "$cache_file"; then
33710
test "x$cache_file" != "x/dev/null" &&
33711
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
33712
echo "$as_me: updating cache $cache_file" >&6;}
33713
cat confcache >$cache_file
33715
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33716
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33721
test "x$prefix" = xNONE && prefix=$ac_default_prefix
33722
# Let make expand exec_prefix.
33723
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33725
DEFS=-DHAVE_CONFIG_H
33729
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33730
# 1. Remove the extension, and $U if already installed.
33731
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33732
ac_i=`echo "$ac_i" | sed "$ac_script"`
33733
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33734
# will be set to the directory where LIBOBJS objects are built.
33735
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33736
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
33738
LIBOBJS=$ac_libobjs
33740
LTLIBOBJS=$ac_ltlibobjs
33743
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
33744
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
33745
Usually this means the macro was only invoked conditionally." >&5
33746
echo "$as_me: error: conditional \"AMDEP\" was never defined.
33747
Usually this means the macro was only invoked conditionally." >&2;}
33748
{ (exit 1); exit 1; }; }
33750
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
33751
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
33752
Usually this means the macro was only invoked conditionally." >&5
33753
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
33754
Usually this means the macro was only invoked conditionally." >&2;}
33755
{ (exit 1); exit 1; }; }
33757
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
33758
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
33759
Usually this means the macro was only invoked conditionally." >&5
33760
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
33761
Usually this means the macro was only invoked conditionally." >&2;}
33762
{ (exit 1); exit 1; }; }
33764
if test -z "${unsermake_enable_pch_TRUE}" && test -z "${unsermake_enable_pch_FALSE}"; then
33765
{ { echo "$as_me:$LINENO: error: conditional \"unsermake_enable_pch\" was never defined.
33766
Usually this means the macro was only invoked conditionally." >&5
33767
echo "$as_me: error: conditional \"unsermake_enable_pch\" was never defined.
33768
Usually this means the macro was only invoked conditionally." >&2;}
33769
{ (exit 1); exit 1; }; }
33771
if test -z "${include_x11_TRUE}" && test -z "${include_x11_FALSE}"; then
33772
{ { echo "$as_me:$LINENO: error: conditional \"include_x11\" was never defined.
33773
Usually this means the macro was only invoked conditionally." >&5
33774
echo "$as_me: error: conditional \"include_x11\" was never defined.
33775
Usually this means the macro was only invoked conditionally." >&2;}
33776
{ (exit 1); exit 1; }; }
33778
if test -z "${include_ARTS_TRUE}" && test -z "${include_ARTS_FALSE}"; then
33779
{ { echo "$as_me:$LINENO: error: conditional \"include_ARTS\" was never defined.
33780
Usually this means the macro was only invoked conditionally." >&5
33781
echo "$as_me: error: conditional \"include_ARTS\" was never defined.
33782
Usually this means the macro was only invoked conditionally." >&2;}
33783
{ (exit 1); exit 1; }; }
33786
: ${CONFIG_STATUS=./config.status}
33787
ac_clean_files_save=$ac_clean_files
33788
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33789
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33790
echo "$as_me: creating $CONFIG_STATUS" >&6;}
33791
cat >$CONFIG_STATUS <<_ACEOF
33793
# Generated by $as_me.
33794
# Run this file to recreate the current configuration.
33795
# Compiler output produced by configure, useful for debugging
33796
# configure, is in config.log if it exists.
33799
ac_cs_recheck=false
33801
SHELL=\${CONFIG_SHELL-$SHELL}
33804
cat >>$CONFIG_STATUS <<\_ACEOF
33805
## --------------------- ##
33806
## M4sh Initialization. ##
33807
## --------------------- ##
33809
# Be more Bourne compatible
33810
DUALCASE=1; export DUALCASE # for MKS sh
33811
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33814
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33815
# is contrary to our usage. Disable this feature.
33816
alias -g '${1+"$@"}'='"$@"'
33817
setopt NO_GLOB_SUBST
33819
case `(set -o) 2>/dev/null` in
33820
*posix*) set -o posix ;;
33829
# Avoid depending upon Character Ranges.
33830
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33831
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33832
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33833
as_cr_digits='0123456789'
33834
as_cr_alnum=$as_cr_Letters$as_cr_digits
33836
# The user is always right.
33837
if test "${PATH_SEPARATOR+set}" != set; then
33838
echo "#! /bin/sh" >conf$$.sh
33839
echo "exit 0" >>conf$$.sh
33841
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33849
# Support unset when possible.
33850
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33858
# We need space, tab and new line, in precisely that order. Quoting is
33859
# there to prevent editors from complaining about space-tab.
33860
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33861
# splitting by setting IFS to empty value.)
33866
# Find who we are. Look in the path if we contain no directory separator.
33868
*[\\/]* ) as_myself=$0 ;;
33869
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33870
for as_dir in $PATH
33873
test -z "$as_dir" && as_dir=.
33874
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33880
# We did not find ourselves, most probably we were run as `sh COMMAND'
33881
# in which case we are not to be found in the path.
33882
if test "x$as_myself" = x; then
33885
if test ! -f "$as_myself"; then
33886
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33887
{ (exit 1); exit 1; }
33890
# Work around bugs in pre-3.0 UWIN ksh.
33891
for as_var in ENV MAIL MAILPATH
33892
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33900
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33901
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33902
LC_TELEPHONE LC_TIME
33904
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33905
eval $as_var=C; export $as_var
33907
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33911
# Required to use basename.
33912
if expr a : '\(a\)' >/dev/null 2>&1 &&
33913
test "X`expr 00001 : '.*\(...\)'`" = X001; then
33919
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33920
as_basename=basename
33926
# Name of the executable.
33927
as_me=`$as_basename -- "$0" ||
33928
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33929
X"$0" : 'X\(//\)$' \| \
33930
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33932
sed '/^.*\/\([^/][^/]*\)\/*$/{
33951
as_lineno_1=$LINENO
33952
as_lineno_2=$LINENO
33953
test "x$as_lineno_1" != "x$as_lineno_2" &&
33954
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
33956
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33957
# uniformly replaced by the line number. The first 'sed' inserts a
33958
# line-number line after each line using $LINENO; the second 'sed'
33959
# does the real work. The second script uses 'N' to pair each
33960
# line-number line with the line containing $LINENO, and appends
33961
# trailing '-' during substitution so that $LINENO is not a special
33962
# case at line end.
33963
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33964
# scripts with optimization help from Paolo Bonzini. Blame Lee
33965
# E. McMahon (1931-1989) for sed's syntax. :-)
33977
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
33980
' >$as_me.lineno &&
33981
chmod +x "$as_me.lineno" ||
33982
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
33983
{ (exit 1); exit 1; }; }
33985
# Don't try to exec as it changes $[0], causing all sort of problems
33986
# (the dirname of $[0] is not the place where we might find the
33987
# original and so on. Autoconf is especially sensitive to this).
33988
. "./$as_me.lineno"
33989
# Exit status is that of the last command.
33994
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34000
ECHO_C= ECHO_N= ECHO_T=
34001
case `echo -n x` in
34003
case `echo 'x\c'` in
34004
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
34011
if expr a : '\(a\)' >/dev/null 2>&1 &&
34012
test "X`expr 00001 : '.*\(...\)'`" = X001; then
34018
rm -f conf$$ conf$$.exe conf$$.file
34019
if test -d conf$$.dir; then
34020
rm -f conf$$.dir/conf$$.file
34026
if ln -s conf$$.file conf$$ 2>/dev/null; then
34028
# ... but there are two gotchas:
34029
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34030
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34031
# In both cases, we have to default to `cp -p'.
34032
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34034
elif ln conf$$.file conf$$ 2>/dev/null; then
34039
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34040
rmdir conf$$.dir 2>/dev/null
34042
if mkdir -p . 2>/dev/null; then
34045
test -d ./-p && rmdir ./-p
34049
if test -x / >/dev/null 2>&1; then
34050
as_test_x='test -x'
34052
if ls -dL / >/dev/null 2>&1; then
34059
if test -d "$1"; then
34065
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
34066
???[sx]*):;;*)false;;esac;fi
34070
as_executable_p=$as_test_x
34072
# Sed expression to map a string onto a valid CPP name.
34073
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34075
# Sed expression to map a string onto a valid variable name.
34076
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34081
# Save the log message, to keep $[0] and so on meaningful, and to
34082
# report actual input values of CONFIG_FILES etc. instead of their
34083
# values after options handling.
34085
This file was extended by $as_me, which was
34086
generated by GNU Autoconf 2.61. Invocation command line was
34088
CONFIG_FILES = $CONFIG_FILES
34089
CONFIG_HEADERS = $CONFIG_HEADERS
34090
CONFIG_LINKS = $CONFIG_LINKS
34091
CONFIG_COMMANDS = $CONFIG_COMMANDS
34094
on `(hostname || uname -n) 2>/dev/null | sed 1q`
34099
cat >>$CONFIG_STATUS <<_ACEOF
34100
# Files that config.status was made for.
34101
config_files="$ac_config_files"
34102
config_headers="$ac_config_headers"
34103
config_commands="$ac_config_commands"
34107
cat >>$CONFIG_STATUS <<\_ACEOF
34109
\`$as_me' instantiates files from templates according to the
34110
current configuration.
34112
Usage: $0 [OPTIONS] [FILE]...
34114
-h, --help print this help, then exit
34115
-V, --version print version number and configuration settings, then exit
34116
-q, --quiet do not print progress messages
34117
-d, --debug don't remove temporary files
34118
--recheck update $as_me by reconfiguring in the same conditions
34119
--file=FILE[:TEMPLATE]
34120
instantiate the configuration file FILE
34121
--header=FILE[:TEMPLATE]
34122
instantiate the configuration header FILE
34124
Configuration files:
34127
Configuration headers:
34130
Configuration commands:
34133
Report bugs to <bug-autoconf@gnu.org>."
34136
cat >>$CONFIG_STATUS <<_ACEOF
34139
configured by $0, generated by GNU Autoconf 2.61,
34140
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
34142
Copyright (C) 2006 Free Software Foundation, Inc.
34143
This config.status script is free software; the Free Software Foundation
34144
gives unlimited permission to copy, distribute and modify it."
34151
cat >>$CONFIG_STATUS <<\_ACEOF
34152
# If no file are specified by the user, then we need to provide default
34153
# value. By we need to know if files were specified by the user.
34159
ac_option=`expr "X$1" : 'X\([^=]*\)='`
34160
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34171
# Handling of the options.
34172
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34174
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34175
echo "$ac_cs_version"; exit ;;
34176
--debug | --debu | --deb | --de | --d | -d )
34178
--file | --fil | --fi | --f )
34180
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
34181
ac_need_defaults=false;;
34182
--header | --heade | --head | --hea )
34184
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
34185
ac_need_defaults=false;;
34187
# Conflict between --help and --header
34188
{ echo "$as_me: error: ambiguous option: $1
34189
Try \`$0 --help' for more information." >&2
34190
{ (exit 1); exit 1; }; };;
34191
--help | --hel | -h )
34192
echo "$ac_cs_usage"; exit ;;
34193
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
34194
| -silent | --silent | --silen | --sile | --sil | --si | --s)
34197
# This is an error.
34198
-*) { echo "$as_me: error: unrecognized option: $1
34199
Try \`$0 --help' for more information." >&2
34200
{ (exit 1); exit 1; }; } ;;
34202
*) ac_config_targets="$ac_config_targets $1"
34203
ac_need_defaults=false ;;
34209
ac_configure_extra_args=
34211
if $ac_cs_silent; then
34213
ac_configure_extra_args="$ac_configure_extra_args --silent"
34217
cat >>$CONFIG_STATUS <<_ACEOF
34218
if \$ac_cs_recheck; then
34219
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
34220
CONFIG_SHELL=$SHELL
34221
export CONFIG_SHELL
34222
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34226
cat >>$CONFIG_STATUS <<\_ACEOF
34230
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34231
## Running $as_me. ##
34237
cat >>$CONFIG_STATUS <<_ACEOF
34241
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
34245
cat >>$CONFIG_STATUS <<\_ACEOF
34247
# Handling of arguments.
34248
for ac_config_target in $ac_config_targets
34250
case $ac_config_target in
34251
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
34252
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34253
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34254
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
34255
"doc/en/Makefile") CONFIG_FILES="$CONFIG_FILES doc/en/Makefile" ;;
34256
"man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
34257
"po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
34258
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
34259
"xslt/Makefile") CONFIG_FILES="$CONFIG_FILES xslt/Makefile" ;;
34261
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
34262
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
34263
{ (exit 1); exit 1; }; };;
34268
# If the user did not use the arguments to specify the items to instantiate,
34269
# then the envvar interface is used. Set only those that are not.
34270
# We use the long form for the default assignment because of an extremely
34271
# bizarre bug on SunOS 4.1.3.
34272
if $ac_need_defaults; then
34273
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34274
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34275
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34278
# Have a temporary directory for convenience. Make it in the build tree
34279
# simply because there is no reason against having it here, and in addition,
34280
# creating and moving files from /tmp can sometimes cause problems.
34281
# Hook for its removal unless debugging.
34282
# Note that there is a small window in which the directory will not be cleaned:
34283
# after its creation but before its name has been assigned to `$tmp'.
34287
trap 'exit_status=$?
34288
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34290
trap '{ (exit 1); exit 1; }' 1 2 13 15
34292
# Create a (secure) tmp directory for tmp files.
34295
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34296
test -n "$tmp" && test -d "$tmp"
34299
tmp=./conf$$-$RANDOM
34300
(umask 077 && mkdir "$tmp")
34303
echo "$me: cannot create a temporary directory in ." >&2
34304
{ (exit 1); exit 1; }
34308
# Set up the sed scripts for CONFIG_FILES section.
34311
# No need to generate the scripts if there are no CONFIG_FILES.
34312
# This happens for instance when ./config.status config.h
34313
if test -n "$CONFIG_FILES"; then
34320
for ac_last_try in false false false false false :; do
34321
cat >conf$$subs.sed <<_ACEOF
34322
SHELL!$SHELL$ac_delim
34323
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
34324
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
34325
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
34326
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
34327
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
34328
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
34329
exec_prefix!$exec_prefix$ac_delim
34330
prefix!$prefix$ac_delim
34331
program_transform_name!$program_transform_name$ac_delim
34332
bindir!$bindir$ac_delim
34333
sbindir!$sbindir$ac_delim
34334
libexecdir!$libexecdir$ac_delim
34335
datarootdir!$datarootdir$ac_delim
34336
datadir!$datadir$ac_delim
34337
sysconfdir!$sysconfdir$ac_delim
34338
sharedstatedir!$sharedstatedir$ac_delim
34339
localstatedir!$localstatedir$ac_delim
34340
includedir!$includedir$ac_delim
34341
oldincludedir!$oldincludedir$ac_delim
34342
docdir!$docdir$ac_delim
34343
infodir!$infodir$ac_delim
34344
htmldir!$htmldir$ac_delim
34345
dvidir!$dvidir$ac_delim
34346
pdfdir!$pdfdir$ac_delim
34347
psdir!$psdir$ac_delim
34348
libdir!$libdir$ac_delim
34349
localedir!$localedir$ac_delim
34350
mandir!$mandir$ac_delim
34351
DEFS!$DEFS$ac_delim
34352
ECHO_C!$ECHO_C$ac_delim
34353
ECHO_N!$ECHO_N$ac_delim
34354
ECHO_T!$ECHO_T$ac_delim
34355
LIBS!$LIBS$ac_delim
34356
build_alias!$build_alias$ac_delim
34357
host_alias!$host_alias$ac_delim
34358
target_alias!$target_alias$ac_delim
34359
build!$build$ac_delim
34360
build_cpu!$build_cpu$ac_delim
34361
build_vendor!$build_vendor$ac_delim
34362
build_os!$build_os$ac_delim
34363
host!$host$ac_delim
34364
host_cpu!$host_cpu$ac_delim
34365
host_vendor!$host_vendor$ac_delim
34366
host_os!$host_os$ac_delim
34367
target!$target$ac_delim
34368
target_cpu!$target_cpu$ac_delim
34369
target_vendor!$target_vendor$ac_delim
34370
target_os!$target_os$ac_delim
34371
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
34372
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
34373
INSTALL_DATA!$INSTALL_DATA$ac_delim
34374
CYGPATH_W!$CYGPATH_W$ac_delim
34375
PACKAGE!$PACKAGE$ac_delim
34376
VERSION!$VERSION$ac_delim
34377
ACLOCAL!$ACLOCAL$ac_delim
34378
AUTOCONF!$AUTOCONF$ac_delim
34379
AUTOMAKE!$AUTOMAKE$ac_delim
34380
AUTOHEADER!$AUTOHEADER$ac_delim
34381
MAKEINFO!$MAKEINFO$ac_delim
34382
install_sh!$install_sh$ac_delim
34383
STRIP!$STRIP$ac_delim
34384
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
34385
mkdir_p!$mkdir_p$ac_delim
34387
SET_MAKE!$SET_MAKE$ac_delim
34388
am__leading_dot!$am__leading_dot$ac_delim
34389
AMTAR!$AMTAR$ac_delim
34390
am__tar!$am__tar$ac_delim
34391
am__untar!$am__untar$ac_delim
34392
KDECONFIG!$KDECONFIG$ac_delim
34393
kde_libs_prefix!$kde_libs_prefix$ac_delim
34394
kde_libs_htmldir!$kde_libs_htmldir$ac_delim
34395
CONF_FILES!$CONF_FILES$ac_delim
34397
CFLAGS!$CFLAGS$ac_delim
34398
LDFLAGS!$LDFLAGS$ac_delim
34399
CPPFLAGS!$CPPFLAGS$ac_delim
34400
ac_ct_CC!$ac_ct_CC$ac_delim
34401
EXEEXT!$EXEEXT$ac_delim
34402
OBJEXT!$OBJEXT$ac_delim
34403
DEPDIR!$DEPDIR$ac_delim
34404
am__include!$am__include$ac_delim
34405
am__quote!$am__quote$ac_delim
34406
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
34407
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
34408
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
34409
CCDEPMODE!$CCDEPMODE$ac_delim
34410
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
34411
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
34414
CXXFLAGS!$CXXFLAGS$ac_delim
34415
ac_ct_CXX!$ac_ct_CXX$ac_delim
34416
CXXDEPMODE!$CXXDEPMODE$ac_delim
34417
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
34418
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
34421
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34423
elif $ac_last_try; then
34424
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34425
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34426
{ (exit 1); exit 1; }; }
34428
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34432
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34433
if test -n "$ac_eof"; then
34434
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34435
ac_eof=`expr $ac_eof + 1`
34438
cat >>$CONFIG_STATUS <<_ACEOF
34439
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
34440
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34443
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34444
s/^/s,@/; s/!/@,|#_!!_#|/
34447
s/'"$ac_delim"'$/,g/; t
34449
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34450
' >>$CONFIG_STATUS <conf$$subs.sed
34451
rm -f conf$$subs.sed
34452
cat >>$CONFIG_STATUS <<_ACEOF
34458
for ac_last_try in false false false false false :; do
34459
cat >conf$$subs.sed <<_ACEOF
34460
WOVERLOADED_VIRTUAL!$WOVERLOADED_VIRTUAL$ac_delim
34461
HAVE_GCC_VISIBILITY!$HAVE_GCC_VISIBILITY$ac_delim
34462
unsermake_enable_pch_TRUE!$unsermake_enable_pch_TRUE$ac_delim
34463
unsermake_enable_pch_FALSE!$unsermake_enable_pch_FALSE$ac_delim
34464
USE_EXCEPTIONS!$USE_EXCEPTIONS$ac_delim
34465
USE_RTTI!$USE_RTTI$ac_delim
34466
CXXCPP!$CXXCPP$ac_delim
34467
NOOPT_CXXFLAGS!$NOOPT_CXXFLAGS$ac_delim
34468
NOOPT_CFLAGS!$NOOPT_CFLAGS$ac_delim
34469
ENABLE_PERMISSIVE_FLAG!$ENABLE_PERMISSIVE_FLAG$ac_delim
34470
LDFLAGS_AS_NEEDED!$LDFLAGS_AS_NEEDED$ac_delim
34471
LDFLAGS_NEW_DTAGS!$LDFLAGS_NEW_DTAGS$ac_delim
34472
KDE_USE_FINAL_TRUE!$KDE_USE_FINAL_TRUE$ac_delim
34473
KDE_USE_FINAL_FALSE!$KDE_USE_FINAL_FALSE$ac_delim
34474
KDE_USE_CLOSURE_TRUE!$KDE_USE_CLOSURE_TRUE$ac_delim
34475
KDE_USE_CLOSURE_FALSE!$KDE_USE_CLOSURE_FALSE$ac_delim
34476
KDE_NO_UNDEFINED!$KDE_NO_UNDEFINED$ac_delim
34477
KDE_USE_NMCHECK_TRUE!$KDE_USE_NMCHECK_TRUE$ac_delim
34478
KDE_USE_NMCHECK_FALSE!$KDE_USE_NMCHECK_FALSE$ac_delim
34479
GREP!$GREP$ac_delim
34480
EGREP!$EGREP$ac_delim
34481
LN_S!$LN_S$ac_delim
34482
ECHO!$ECHO$ac_delim
34484
RANLIB!$RANLIB$ac_delim
34486
FFLAGS!$FFLAGS$ac_delim
34487
ac_ct_F77!$ac_ct_F77$ac_delim
34488
LIBTOOL!$LIBTOOL$ac_delim
34489
KDE_PLUGIN!$KDE_PLUGIN$ac_delim
34490
KDE_CHECK_PLUGIN!$KDE_CHECK_PLUGIN$ac_delim
34491
MSGFMT!$MSGFMT$ac_delim
34492
GMSGFMT!$GMSGFMT$ac_delim
34493
XGETTEXT!$XGETTEXT$ac_delim
34494
LIBUTIL!$LIBUTIL$ac_delim
34495
LIBCOMPAT!$LIBCOMPAT$ac_delim
34496
LIBCRYPT!$LIBCRYPT$ac_delim
34497
LIBRESOLV!$LIBRESOLV$ac_delim
34498
LIB_POLL!$LIB_POLL$ac_delim
34499
FRAMEWORK_COREAUDIO!$FRAMEWORK_COREAUDIO$ac_delim
34500
LIBSOCKET!$LIBSOCKET$ac_delim
34501
X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
34502
LIBUCB!$LIBUCB$ac_delim
34503
LIBDL!$LIBDL$ac_delim
34504
KDE_USE_FPIE!$KDE_USE_FPIE$ac_delim
34505
KDE_USE_PIE!$KDE_USE_PIE$ac_delim
34506
include_x11_TRUE!$include_x11_TRUE$ac_delim
34507
include_x11_FALSE!$include_x11_FALSE$ac_delim
34508
XMKMF!$XMKMF$ac_delim
34509
X_PRE_LIBS!$X_PRE_LIBS$ac_delim
34510
LIB_X11!$LIB_X11$ac_delim
34511
LIB_XRENDER!$LIB_XRENDER$ac_delim
34512
LIBSM!$LIBSM$ac_delim
34513
X_INCLUDES!$X_INCLUDES$ac_delim
34514
X_LDFLAGS!$X_LDFLAGS$ac_delim
34515
x_includes!$x_includes$ac_delim
34516
x_libraries!$x_libraries$ac_delim
34517
QTE_NORTTI!$QTE_NORTTI$ac_delim
34518
LIB_XEXT!$LIB_XEXT$ac_delim
34519
LIBPTHREAD!$LIBPTHREAD$ac_delim
34520
USE_THREADS!$USE_THREADS$ac_delim
34521
KDE_MT_LDFLAGS!$KDE_MT_LDFLAGS$ac_delim
34522
KDE_MT_LIBS!$KDE_MT_LIBS$ac_delim
34523
USER_INCLUDES!$USER_INCLUDES$ac_delim
34524
USER_LDFLAGS!$USER_LDFLAGS$ac_delim
34525
LIBZ!$LIBZ$ac_delim
34526
LIBPNG!$LIBPNG$ac_delim
34527
LIBJPEG!$LIBJPEG$ac_delim
34528
qt_libraries!$qt_libraries$ac_delim
34529
qt_includes!$qt_includes$ac_delim
34530
QT_INCLUDES!$QT_INCLUDES$ac_delim
34531
QT_LDFLAGS!$QT_LDFLAGS$ac_delim
34532
PERL!$PERL$ac_delim
34535
UIC_TR!$UIC_TR$ac_delim
34536
LIB_QT!$LIB_QT$ac_delim
34537
LIB_QPE!$LIB_QPE$ac_delim
34538
kde_qtver!$kde_qtver$ac_delim
34539
KDE_EXTRA_RPATH!$KDE_EXTRA_RPATH$ac_delim
34540
KDE_RPATH!$KDE_RPATH$ac_delim
34541
X_RPATH!$X_RPATH$ac_delim
34542
kde_libraries!$kde_libraries$ac_delim
34543
kde_includes!$kde_includes$ac_delim
34544
KDE_LDFLAGS!$KDE_LDFLAGS$ac_delim
34545
KDE_INCLUDES!$KDE_INCLUDES$ac_delim
34546
all_includes!$all_includes$ac_delim
34547
all_libraries!$all_libraries$ac_delim
34548
AUTODIRS!$AUTODIRS$ac_delim
34549
include_ARTS_TRUE!$include_ARTS_TRUE$ac_delim
34550
include_ARTS_FALSE!$include_ARTS_FALSE$ac_delim
34551
MAKEKDEWIDGETS!$MAKEKDEWIDGETS$ac_delim
34552
KCONFIG_COMPILER!$KCONFIG_COMPILER$ac_delim
34553
KCFG_DEPENDENCIES!$KCFG_DEPENDENCIES$ac_delim
34554
DCOPIDLNG!$DCOPIDLNG$ac_delim
34555
DCOPIDL!$DCOPIDL$ac_delim
34556
DCOPIDL2CPP!$DCOPIDL2CPP$ac_delim
34559
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
34561
elif $ac_last_try; then
34562
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34563
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34564
{ (exit 1); exit 1; }; }
34566
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34570
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34571
if test -n "$ac_eof"; then
34572
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34573
ac_eof=`expr $ac_eof + 1`
34576
cat >>$CONFIG_STATUS <<_ACEOF
34577
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
34578
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34581
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34582
s/^/s,@/; s/!/@,|#_!!_#|/
34585
s/'"$ac_delim"'$/,g/; t
34587
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34588
' >>$CONFIG_STATUS <conf$$subs.sed
34589
rm -f conf$$subs.sed
34590
cat >>$CONFIG_STATUS <<_ACEOF
34596
for ac_last_try in false false false false false :; do
34597
cat >conf$$subs.sed <<_ACEOF
34598
DCOP_DEPENDENCIES!$DCOP_DEPENDENCIES$ac_delim
34599
MCOPIDL!$MCOPIDL$ac_delim
34600
ARTSCCONFIG!$ARTSCCONFIG$ac_delim
34601
MEINPROC!$MEINPROC$ac_delim
34602
KDE_XSL_STYLESHEET!$KDE_XSL_STYLESHEET$ac_delim
34603
XMLLINT!$XMLLINT$ac_delim
34604
kde_htmldir!$kde_htmldir$ac_delim
34605
kde_appsdir!$kde_appsdir$ac_delim
34606
kde_icondir!$kde_icondir$ac_delim
34607
kde_sounddir!$kde_sounddir$ac_delim
34608
kde_datadir!$kde_datadir$ac_delim
34609
kde_locale!$kde_locale$ac_delim
34610
kde_confdir!$kde_confdir$ac_delim
34611
kde_kcfgdir!$kde_kcfgdir$ac_delim
34612
kde_mimedir!$kde_mimedir$ac_delim
34613
kde_wallpaperdir!$kde_wallpaperdir$ac_delim
34614
kde_bindir!$kde_bindir$ac_delim
34615
xdg_appsdir!$xdg_appsdir$ac_delim
34616
xdg_menudir!$xdg_menudir$ac_delim
34617
xdg_directorydir!$xdg_directorydir$ac_delim
34618
kde_templatesdir!$kde_templatesdir$ac_delim
34619
kde_servicesdir!$kde_servicesdir$ac_delim
34620
kde_servicetypesdir!$kde_servicetypesdir$ac_delim
34621
kde_moduledir!$kde_moduledir$ac_delim
34622
kdeinitdir!$kdeinitdir$ac_delim
34623
kde_styledir!$kde_styledir$ac_delim
34624
kde_widgetdir!$kde_widgetdir$ac_delim
34625
LIB_KDED!$LIB_KDED$ac_delim
34626
LIB_KDECORE!$LIB_KDECORE$ac_delim
34627
LIB_KDEUI!$LIB_KDEUI$ac_delim
34628
LIB_KIO!$LIB_KIO$ac_delim
34629
LIB_KJS!$LIB_KJS$ac_delim
34630
LIB_SMB!$LIB_SMB$ac_delim
34631
LIB_KAB!$LIB_KAB$ac_delim
34632
LIB_KABC!$LIB_KABC$ac_delim
34633
LIB_KHTML!$LIB_KHTML$ac_delim
34634
LIB_KSPELL!$LIB_KSPELL$ac_delim
34635
LIB_KPARTS!$LIB_KPARTS$ac_delim
34636
LIB_KDEPRINT!$LIB_KDEPRINT$ac_delim
34637
LIB_KUTILS!$LIB_KUTILS$ac_delim
34638
LIB_KDEPIM!$LIB_KDEPIM$ac_delim
34639
LIB_KIMPROXY!$LIB_KIMPROXY$ac_delim
34640
LIB_KNEWSTUFF!$LIB_KNEWSTUFF$ac_delim
34641
LIB_KDNSSD!$LIB_KDNSSD$ac_delim
34642
LIB_KUNITTEST!$LIB_KUNITTEST$ac_delim
34643
LIB_KSYCOCA!$LIB_KSYCOCA$ac_delim
34644
LIB_KFILE!$LIB_KFILE$ac_delim
34645
LIB_KFM!$LIB_KFM$ac_delim
34646
PKG_CONFIG!$PKG_CONFIG$ac_delim
34647
LIBYAZ_CFLAGS!$LIBYAZ_CFLAGS$ac_delim
34648
LIBYAZ_LIBS!$LIBYAZ_LIBS$ac_delim
34649
LIBYAZ_RPATH!$LIBYAZ_RPATH$ac_delim
34650
LIBXML_CFLAGS!$LIBXML_CFLAGS$ac_delim
34651
LIBXML_LIBS!$LIBXML_LIBS$ac_delim
34652
LIBXSLT_CFLAGS!$LIBXSLT_CFLAGS$ac_delim
34653
LIBXSLT_LIBS!$LIBXSLT_LIBS$ac_delim
34654
TOPSUBDIRS!$TOPSUBDIRS$ac_delim
34655
LIBOBJS!$LIBOBJS$ac_delim
34656
LTLIBOBJS!$LTLIBOBJS$ac_delim
34659
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 59; then
34661
elif $ac_last_try; then
34662
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
34663
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
34664
{ (exit 1); exit 1; }; }
34666
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34670
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
34671
if test -n "$ac_eof"; then
34672
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
34673
ac_eof=`expr $ac_eof + 1`
34676
cat >>$CONFIG_STATUS <<_ACEOF
34677
cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
34678
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
34681
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
34682
s/^/s,@/; s/!/@,|#_!!_#|/
34685
s/'"$ac_delim"'$/,g/; t
34687
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
34688
' >>$CONFIG_STATUS <conf$$subs.sed
34689
rm -f conf$$subs.sed
34690
cat >>$CONFIG_STATUS <<_ACEOF
34697
# VPATH may cause trouble with some makes, so we remove $(srcdir),
34698
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34699
# trailing colons and then remove the whole line if VPATH becomes empty
34700
# (actually we leave an empty line to preserve line numbers).
34701
if test "x$srcdir" = x.; then
34702
ac_vpsub='/^[ ]*VPATH[ ]*=/{
34703
s/:*\$(srcdir):*/:/
34704
s/:*\${srcdir}:*/:/
34706
s/^\([^=]*=[ ]*\):*/\1/
34712
cat >>$CONFIG_STATUS <<\_ACEOF
34713
fi # test -n "$CONFIG_FILES"
34716
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
34719
:[FHLC]) ac_mode=$ac_tag; continue;;
34721
case $ac_mode$ac_tag in
34723
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34724
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34725
{ (exit 1); exit 1; }; };;
34726
:[FH]-) ac_tag=-:-;;
34727
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34744
-) ac_f="$tmp/stdin";;
34745
*) # Look for the file first in the build tree, then in the source tree
34746
# (if the path is not absolute). The absolute path cannot be DOS-style,
34747
# because $ac_f cannot contain `:'.
34751
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34753
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34754
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34755
{ (exit 1); exit 1; }; };;
34757
ac_file_inputs="$ac_file_inputs $ac_f"
34760
# Let's still pretend it is `configure' which instantiates (i.e., don't
34761
# use $as_me), people would be surprised to read:
34762
# /* config.h. Generated by config.status. */
34763
configure_input="Generated from "`IFS=:
34764
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
34765
if test x"$ac_file" != x-; then
34766
configure_input="$ac_file. $configure_input"
34767
{ echo "$as_me:$LINENO: creating $ac_file" >&5
34768
echo "$as_me: creating $ac_file" >&6;}
34772
*:-:* | *:-) cat >"$tmp/stdin";;
34777
ac_dir=`$as_dirname -- "$ac_file" ||
34778
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34779
X"$ac_file" : 'X\(//\)[^/]' \| \
34780
X"$ac_file" : 'X\(//\)$' \| \
34781
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34783
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34787
/^X\(\/\/\)[^/].*/{
34802
-*) as_dir=./$as_dir;;
34804
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34808
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
34809
*) as_qdir=$as_dir;;
34811
as_dirs="'$as_qdir' $as_dirs"
34812
as_dir=`$as_dirname -- "$as_dir" ||
34813
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34814
X"$as_dir" : 'X\(//\)[^/]' \| \
34815
X"$as_dir" : 'X\(//\)$' \| \
34816
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34818
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34822
/^X\(\/\/\)[^/].*/{
34835
test -d "$as_dir" && break
34837
test -z "$as_dirs" || eval "mkdir $as_dirs"
34838
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34839
echo "$as_me: error: cannot create directory $as_dir" >&2;}
34840
{ (exit 1); exit 1; }; }; }
34844
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34846
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34847
# A ".." for each directory in $ac_dir_suffix.
34848
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
34849
case $ac_top_builddir_sub in
34850
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34851
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34854
ac_abs_top_builddir=$ac_pwd
34855
ac_abs_builddir=$ac_pwd$ac_dir_suffix
34856
# for backward compatibility:
34857
ac_top_builddir=$ac_top_build_prefix
34860
.) # We are building in place.
34862
ac_top_srcdir=$ac_top_builddir_sub
34863
ac_abs_top_srcdir=$ac_pwd ;;
34864
[\\/]* | ?:[\\/]* ) # Absolute name.
34865
ac_srcdir=$srcdir$ac_dir_suffix;
34866
ac_top_srcdir=$srcdir
34867
ac_abs_top_srcdir=$srcdir ;;
34868
*) # Relative name.
34869
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34870
ac_top_srcdir=$ac_top_build_prefix$srcdir
34871
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34873
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34883
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34884
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34888
cat >>$CONFIG_STATUS <<\_ACEOF
34889
# If the template does not know about datarootdir, expand it.
34890
# FIXME: This hack should be removed a few years after 2.60.
34891
ac_datarootdir_hack=; ac_datarootdir_seen=
34893
case `sed -n '/datarootdir/ {
34902
' $ac_file_inputs` in
34903
*datarootdir*) ac_datarootdir_seen=yes;;
34904
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34905
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34906
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34908
cat >>$CONFIG_STATUS <<_ACEOF
34909
ac_datarootdir_hack='
34910
s&@datadir@&$datadir&g
34911
s&@docdir@&$docdir&g
34912
s&@infodir@&$infodir&g
34913
s&@localedir@&$localedir&g
34914
s&@mandir@&$mandir&g
34915
s&\\\${datarootdir}&$datarootdir&g' ;;
34919
# Neutralize VPATH when `$srcdir' = `.'.
34920
# Shell code in configure.ac might set extrasub.
34921
# FIXME: do we really want to maintain this feature?
34922
cat >>$CONFIG_STATUS <<_ACEOF
34926
cat >>$CONFIG_STATUS <<\_ACEOF
34928
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34929
s&@configure_input@&$configure_input&;t t
34930
s&@top_builddir@&$ac_top_builddir_sub&;t t
34931
s&@srcdir@&$ac_srcdir&;t t
34932
s&@abs_srcdir@&$ac_abs_srcdir&;t t
34933
s&@top_srcdir@&$ac_top_srcdir&;t t
34934
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34935
s&@builddir@&$ac_builddir&;t t
34936
s&@abs_builddir@&$ac_abs_builddir&;t t
34937
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34938
s&@INSTALL@&$ac_INSTALL&;t t
34939
$ac_datarootdir_hack
34940
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
34942
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34943
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34944
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34945
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34946
which seems to be undefined. Please make sure it is defined." >&5
34947
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34948
which seems to be undefined. Please make sure it is defined." >&2;}
34952
-) cat "$tmp/out"; rm -f "$tmp/out";;
34953
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
34962
# Transform confdefs.h into a sed script `conftest.defines', that
34963
# substitutes the proper values into config.h.in to produce config.h.
34964
rm -f conftest.defines conftest.tail
34965
# First, append a space to every undef/define line, to ease matching.
34966
echo 's/$/ /' >conftest.defines
34967
# Then, protect against being on the right side of a sed subst, or in
34968
# an unquoted here document, in config.status. If some macros were
34969
# called several times there might be several #defines for the same
34970
# symbol, which is useless. But do not sort them, since the last
34971
# AC_DEFINE must be honored.
34972
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34973
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
34974
# NAME is the cpp macro being defined, VALUE is the value it is being given.
34975
# PARAMS is the parameter list in the macro definition--in most cases, it's
34976
# just an empty string.
34977
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
34978
ac_dB='\\)[ (].*,\\1define\\2'
34986
s/^[ ]*#[ ]*define[ ][ ]*//
34991
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
34992
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
34993
' >>conftest.defines
34995
# Remove the space that was appended to ease matching.
34996
# Then replace #undef with comments. This is necessary, for
34997
# example, in the case of _POSIX_SOURCE, which is predefined and required
34998
# on some systems where configure will not decide to define it.
34999
# (The regexp can be short, since the line contains either #define or #undef.)
35001
s,^[ #]*u.*,/* & */,' >>conftest.defines
35003
# Break up conftest.defines:
35004
ac_max_sed_lines=50
35006
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
35007
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
35008
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
35010
ac_in='$ac_file_inputs'
35011
ac_out='"$tmp/out1"'
35012
ac_nxt='"$tmp/out2"'
35016
# Write a here document:
35017
cat >>$CONFIG_STATUS <<_ACEOF
35018
# First, check the format of the line:
35019
cat >"\$tmp/defines.sed" <<\\CEOF
35020
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
35021
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
35025
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
35027
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
35028
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
35029
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
35030
grep . conftest.tail >/dev/null || break
35031
rm -f conftest.defines
35032
mv conftest.tail conftest.defines
35034
rm -f conftest.defines conftest.tail
35036
echo "ac_result=$ac_in" >>$CONFIG_STATUS
35037
cat >>$CONFIG_STATUS <<\_ACEOF
35038
if test x"$ac_file" != x-; then
35039
echo "/* $configure_input */" >"$tmp/config.h"
35040
cat "$ac_result" >>"$tmp/config.h"
35041
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
35042
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
35043
echo "$as_me: $ac_file is unchanged" >&6;}
35046
mv "$tmp/config.h" $ac_file
35049
echo "/* $configure_input */"
35053
# Compute $ac_file's index in $config_headers.
35055
for _am_header in $config_headers :; do
35056
case $_am_header in
35057
$ac_file | $ac_file:* )
35060
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
35063
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
35064
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35065
X$ac_file : 'X\(//\)[^/]' \| \
35066
X$ac_file : 'X\(//\)$' \| \
35067
X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
35069
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35073
/^X\(\/\/\)[^/].*/{
35085
s/.*/./; q'`/stamp-h$_am_stamp_count
35088
:C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
35089
echo "$as_me: executing $ac_file commands" >&6;}
35094
case $ac_file$ac_mode in
35095
"depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
35096
# Strip MF so we end up with the name of the file.
35097
mf=`echo "$mf" | sed -e 's/:.*$//'`
35098
# Check whether this is an Automake generated Makefile or not.
35099
# We used to match only the files named `Makefile.in', but
35100
# some people rename them; so instead we look at the file content.
35101
# Grep'ing the first line is not enough: some people post-process
35102
# each Makefile.in and add a new line on top of each file to say so.
35103
# So let's grep whole file.
35104
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
35105
dirpart=`$as_dirname -- "$mf" ||
35106
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35107
X"$mf" : 'X\(//\)[^/]' \| \
35108
X"$mf" : 'X\(//\)$' \| \
35109
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
35111
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35115
/^X\(\/\/\)[^/].*/{
35131
# Extract the definition of DEPDIR, am__include, and am__quote
35132
# from the Makefile without running `make'.
35133
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
35134
test -z "$DEPDIR" && continue
35135
am__include=`sed -n 's/^am__include = //p' < "$mf"`
35136
test -z "am__include" && continue
35137
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
35138
# When using ansi2knr, U may be empty or an underscore; expand it
35139
U=`sed -n 's/^U = //p' < "$mf"`
35140
# Find all dependency output files, they are included files with
35141
# $(DEPDIR) in their names. We invoke sed twice because it is the
35142
# simplest approach to changing $(DEPDIR) to its actual value in the
35144
for file in `sed -n "
35145
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
35146
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
35147
# Make sure the directory exists.
35148
test -f "$dirpart/$file" && continue
35149
fdir=`$as_dirname -- "$file" ||
35150
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35151
X"$file" : 'X\(//\)[^/]' \| \
35152
X"$file" : 'X\(//\)$' \| \
35153
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
35155
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35159
/^X\(\/\/\)[^/].*/{
35172
{ as_dir=$dirpart/$fdir
35174
-*) as_dir=./$as_dir;;
35176
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
35180
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
35181
*) as_qdir=$as_dir;;
35183
as_dirs="'$as_qdir' $as_dirs"
35184
as_dir=`$as_dirname -- "$as_dir" ||
35185
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35186
X"$as_dir" : 'X\(//\)[^/]' \| \
35187
X"$as_dir" : 'X\(//\)$' \| \
35188
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35190
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35194
/^X\(\/\/\)[^/].*/{
35207
test -d "$as_dir" && break
35209
test -z "$as_dirs" || eval "mkdir $as_dirs"
35210
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
35211
echo "$as_me: error: cannot create directory $as_dir" >&2;}
35212
{ (exit 1); exit 1; }; }; }
35213
# echo "creating $dirpart/$file"
35214
echo '# dummy' > "$dirpart/$file"
35223
{ (exit 0); exit 0; }
35225
if test "x$with_fast_perl" = "xyes"; then
35226
perl -i.bak $ac_aux_dir/conf.change.pl $CONFIG_STATUS \
35227
|| mv $CONFIG_STATUS.bak $CONFIG_STATUS
35228
rm -f $CONFIG_STATUS.bak
35230
chmod +x $CONFIG_STATUS
35231
ac_clean_files=$ac_clean_files_save
35234
# configure is writing to config.log, and then calls config.status.
35235
# config.status does its own redirection, appending to config.log.
35236
# Unfortunately, on DOS this fails, as config.log is still kept open
35237
# by configure, so config.status won't be able to write to it; its
35238
# output is simply discarded. So we exec the FD to /dev/null,
35239
# effectively closing config.log, so it can be properly (re)opened and
35240
# appended to by config.status. When coming back to configure, we
35241
# need to make the FD available again.
35242
if test "$no_create" != yes; then
35244
ac_config_status_args=
35245
test "$silent" = yes &&
35246
ac_config_status_args="$ac_config_status_args --quiet"
35248
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35250
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
35251
# would make configure fail if this is the last instruction.
35252
$ac_cs_success || { (exit 1); exit 1; }
35255
# Check if KDE_SET_PREFIX was called, and --prefix was passed to configure
35256
if test -n "$kde_libs_prefix" -a -n "$given_prefix"; then
35257
# And if so, warn when they don't match
35258
if test "$kde_libs_prefix" != "$given_prefix"; then
35259
# And if kde doesn't know about the prefix yet
35260
echo ":"`kde-config --path exe`":" | grep ":$given_prefix/bin/:" 2>&1 >/dev/null
35261
if test $? -ne 0; then
35263
echo "Warning: you chose to install this package in $given_prefix,"
35264
echo "but KDE was found in $kde_libs_prefix."
35265
echo "For this to work, you will need to tell KDE about the new prefix, by ensuring"
35266
echo "that KDEDIRS contains it, e.g. export KDEDIRS=$given_prefix:$kde_libs_prefix"
35267
echo "Then restart KDE."
35273
if test x$GXX = "xyes" -a x$kde_have_gcc_visibility = "xyes" -a x$kde_cv_val_qt_gcc_visibility_patched = "xno"; then
35275
echo "Your GCC supports symbol visibility, but the patch for Qt supporting visibility"
35276
echo "was not included. Therefore, GCC symbol visibility support remains disabled."
35278
echo "For better performance, consider including the Qt visibility supporting patch"
35281
echo "http://bugs.kde.org/show_bug.cgi?id=109386"
35283
echo "and recompile all of Qt and KDE. Note, this is entirely optional and"
35284
echo "everything will continue to work just fine without it."
35288
if test "$all_tests" = "bad"; then
35289
if test ! "$cache_file" = "/dev/null"; then
35291
echo "Please remove the file $cache_file after changing your setup"
35292
echo "so that configure will find the changes next time."
35297
echo "Good - your configure finished. Start make now"