2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.62.
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6
# 2002, 2003, 2004, 2005, 2006, 2007, 2008 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
# Pre-4.2 versions of Zsh do 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
43
# Printing a long string crashes Solaris 7 /usr/bin/printf.
44
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53
as_echo_n='/usr/ucb/echo -n'
55
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60
expr "X$arg" : "X\\(.*\\)$as_nl";
61
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66
as_echo_n='sh -c $as_echo_n_body as_echo'
69
as_echo='sh -c $as_echo_body as_echo'
72
# The user is always right.
73
if test "${PATH_SEPARATOR+set}" != set; then
75
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81
# Support unset when possible.
82
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
90
# We need space, tab and new line, in precisely that order. Quoting is
91
# there to prevent editors from complaining about space-tab.
92
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
93
# splitting by setting IFS to empty value.)
96
# Find who we are. Look in the path if we contain no directory separator.
98
*[\\/]* ) as_myself=$0 ;;
99
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103
test -z "$as_dir" && as_dir=.
104
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110
# We did not find ourselves, most probably we were run as `sh COMMAND'
111
# in which case we are not to be found in the path.
112
if test "x$as_myself" = x; then
115
if test ! -f "$as_myself"; then
116
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117
{ (exit 1); exit 1; }
120
# Work around bugs in pre-3.0 UWIN ksh.
121
for as_var in ENV MAIL MAILPATH
122
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
134
# Required to use basename.
135
if expr a : '\(a\)' >/dev/null 2>&1 &&
136
test "X`expr 00001 : '.*\(...\)'`" = X001; then
142
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
149
# Name of the executable.
150
as_me=`$as_basename -- "$0" ||
151
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152
X"$0" : 'X\(//\)$' \| \
153
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
155
sed '/^.*\/\([^/][^/]*\)\/*$/{
173
if test "x$CONFIG_SHELL" = x; then
174
if (eval ":") 2>/dev/null; then
180
if test $as_have_required = yes && (eval ":
190
as_func_ret_success () {
193
as_func_ret_failure () {
198
if as_func_success; then
202
echo as_func_success failed.
205
if as_func_failure; then
207
echo as_func_failure succeeded.
210
if as_func_ret_success; then
214
echo as_func_ret_success failed.
217
if as_func_ret_failure; then
219
echo as_func_ret_failure succeeded.
222
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226
echo positional parameters were not saved.
229
test \$exitcode = 0) || { (exit 1); exit 1; }
234
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236
") 2> /dev/null; then
240
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244
test -z "$as_dir" && as_dir=.
247
for as_base in sh bash ksh sh5; do
248
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
255
for as_shell in $as_candidate_shells $SHELL; do
256
# Try only shells that exist, to save several forks.
257
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258
{ ("$as_shell") 2> /dev/null <<\_ASEOF
259
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263
# is contrary to our usage. Disable this feature.
264
alias -g '${1+"$@"}'='"$@"'
267
case `(set -o) 2>/dev/null` in
268
*posix*) set -o posix ;;
277
CONFIG_SHELL=$as_shell
279
if { "$as_shell" 2> /dev/null <<\_ASEOF
280
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284
# is contrary to our usage. Disable this feature.
285
alias -g '${1+"$@"}'='"$@"'
288
case `(set -o) 2>/dev/null` in
289
*posix*) set -o posix ;;
305
as_func_ret_success () {
308
as_func_ret_failure () {
313
if as_func_success; then
317
echo as_func_success failed.
320
if as_func_failure; then
322
echo as_func_failure succeeded.
325
if as_func_ret_success; then
329
echo as_func_ret_success failed.
332
if as_func_ret_failure; then
334
echo as_func_ret_failure succeeded.
337
if ( set x; as_func_ret_success y && test x = "$1" ); then
341
echo positional parameters were not saved.
344
test $exitcode = 0) || { (exit 1); exit 1; }
349
test "x$as_lineno_1" != "x$as_lineno_2" &&
350
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
361
if test "x$CONFIG_SHELL" != x; then
362
for as_var in BASH_ENV ENV
363
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370
if test $as_have_required = no; then
371
echo This script requires a shell more modern than all the
372
echo shells that I found on your system. Please install a
373
echo modern shell, or manually run the script under such a
374
echo shell if you do have one.
375
{ (exit 1); exit 1; }
385
(eval "as_func_return () {
394
as_func_ret_success () {
397
as_func_ret_failure () {
402
if as_func_success; then
406
echo as_func_success failed.
409
if as_func_failure; then
411
echo as_func_failure succeeded.
414
if as_func_ret_success; then
418
echo as_func_ret_success failed.
421
if as_func_ret_failure; then
423
echo as_func_ret_failure succeeded.
426
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430
echo positional parameters were not saved.
433
test \$exitcode = 0") || {
434
echo No shell found that supports shell functions.
435
echo Please tell bug-autoconf@gnu.org about your system,
436
echo including any error possibly output before this message.
437
echo This can help us improve future autoconf versions.
438
echo Configuration will now proceed without shell functions.
445
test "x$as_lineno_1" != "x$as_lineno_2" &&
446
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
448
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449
# uniformly replaced by the line number. The first 'sed' inserts a
450
# line-number line after each line using $LINENO; the second 'sed'
451
# does the real work. The second script uses 'N' to pair each
452
# line-number line with the line containing $LINENO, and appends
453
# trailing '-' during substitution so that $LINENO is not a special
455
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456
# scripts with optimization help from Paolo Bonzini. Blame Lee
457
# E. McMahon (1931-1989) for sed's syntax. :-)
469
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473
chmod +x "$as_me.lineno" ||
474
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475
{ (exit 1); exit 1; }; }
477
# Don't try to exec as it changes $[0], causing all sort of problems
478
# (the dirname of $[0] is not the place where we might find the
479
# original and so on. Autoconf is especially sensitive to this).
481
# Exit status is that of the last command.
486
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
492
ECHO_C= ECHO_N= ECHO_T=
496
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
502
if expr a : '\(a\)' >/dev/null 2>&1 &&
503
test "X`expr 00001 : '.*\(...\)'`" = X001; then
509
rm -f conf$$ conf$$.exe conf$$.file
510
if test -d conf$$.dir; then
511
rm -f conf$$.dir/conf$$.file
514
mkdir conf$$.dir 2>/dev/null
516
if (echo >conf$$.file) 2>/dev/null; then
517
if ln -s conf$$.file conf$$ 2>/dev/null; then
519
# ... but there are two gotchas:
520
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
521
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
522
# In both cases, we have to default to `cp -p'.
523
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
525
elif ln conf$$.file conf$$ 2>/dev/null; then
533
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534
rmdir conf$$.dir 2>/dev/null
536
if mkdir -p . 2>/dev/null; then
539
test -d ./-p && rmdir ./-p
543
if test -x / >/dev/null 2>&1; then
546
if ls -dL / >/dev/null 2>&1; then
553
if test -d "$1"; then
559
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
560
???[sx]*):;;*)false;;esac;fi
564
as_executable_p=$as_test_x
566
# Sed expression to map a string onto a valid CPP name.
567
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
569
# Sed expression to map a string onto a valid variable name.
570
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
575
# Check that we are running under the correct shell.
576
SHELL=${CONFIG_SHELL-/bin/sh}
580
# Remove one level of quotation (which was required for Make).
581
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
586
if test "X$1" = X--no-reexec; then
587
# Discard the --no-reexec flag, and continue.
589
elif test "X$1" = X--fallback-echo; then
590
# Avoid inline document here, it may be left over
592
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
593
# Yippee, $echo works!
596
# Restart under the correct shell.
597
exec $SHELL "$0" --no-reexec ${1+"$@"}
600
if test "X$1" = X--fallback-echo; then
601
# used as fallback echo
609
# The HP-UX ksh and POSIX shell print the target directory to stdout
611
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
613
if test -z "$ECHO"; then
614
if test "X${echo_test_string+set}" != Xset; then
615
# find a string as large as possible, as long as the shell can cope with it
616
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
617
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
618
if (echo_test_string="`eval $cmd`") 2>/dev/null &&
619
echo_test_string="`eval $cmd`" &&
620
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
627
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
628
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
629
test "X$echo_testing_string" = "X$echo_test_string"; then
632
# The Solaris, AIX, and Digital Unix default echo programs unquote
633
# backslashes. This makes it impossible to quote backslashes using
634
# echo "$something" | sed 's/\\/\\\\/g'
636
# So, first we look for a working echo in the user's PATH.
638
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
639
for dir in $PATH /usr/ucb; do
641
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
642
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
643
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
644
test "X$echo_testing_string" = "X$echo_test_string"; then
651
if test "X$echo" = Xecho; then
652
# We didn't find a better echo, so look for alternatives.
653
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
654
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
655
test "X$echo_testing_string" = "X$echo_test_string"; then
656
# This shell has a builtin print -r that does the trick.
658
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
659
test "X$CONFIG_SHELL" != X/bin/ksh; then
660
# If we have ksh, try running configure again with it.
661
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
662
export ORIGINAL_CONFIG_SHELL
663
CONFIG_SHELL=/bin/ksh
665
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
669
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
670
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
671
test "X$echo_testing_string" = "X$echo_test_string"; then
674
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
675
test "X$echo_testing_string" = 'X\t' &&
676
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
677
test "X$echo_testing_string" = "X$echo_test_string"; then
678
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680
SHELL="$CONFIG_SHELL"
682
echo="$CONFIG_SHELL $0 --fallback-echo"
683
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
684
test "X$echo_testing_string" = 'X\t' &&
685
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
686
test "X$echo_testing_string" = "X$echo_test_string"; then
687
echo="$CONFIG_SHELL $0 --fallback-echo"
689
# maybe with a smaller string...
692
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
693
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
700
if test "$prev" != 'sed 50q "$0"'; then
701
echo_test_string=`eval $prev`
702
export echo_test_string
703
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705
# Oops. We lost completely, so just stick with echo.
714
# Copy echo and quote the copy suitably for passing to libtool from
715
# the Makefile, instead of quoting the original, which is used later.
717
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
718
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
724
tagnames=${tagnames+${tagnames},}CXX
726
tagnames=${tagnames+${tagnames},}F77
728
exec 7<&0 </dev/null 6>&1
731
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
732
# so uname gets run too.
733
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
738
ac_default_prefix=/usr/local
740
ac_config_libobj_dir=.
746
SHELL=${CONFIG_SHELL-/bin/sh}
748
# Identity of this package.
755
ac_unique_file="acinclude.m4"
756
ac_default_prefix=${KDEDIR:-the kde prefix}
757
# Factoring default headers for most tests.
758
ac_includes_default="\
760
#ifdef HAVE_SYS_TYPES_H
761
# include <sys/types.h>
763
#ifdef HAVE_SYS_STAT_H
764
# include <sys/stat.h>
770
# ifdef HAVE_STDLIB_H
775
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
780
#ifdef HAVE_STRINGS_H
781
# include <strings.h>
783
#ifdef HAVE_INTTYPES_H
784
# include <inttypes.h>
802
program_transform_name
856
INSTALL_STRIP_PROGRAM
889
unsermake_enable_pch_TRUE
890
unsermake_enable_pch_FALSE
896
ENABLE_PERMISSIVE_FLAG
902
KDE_USE_CLOSURE_FALSE
905
KDE_USE_NMCHECK_FALSE
1037
enable_option_checking
1044
enable_dependency_tracking
1074
ac_precious_vars='build_alias
1092
# Initialize some variables set by options.
1094
ac_init_version=false
1095
ac_unrecognized_opts=
1096
ac_unrecognized_sep=
1097
# The variables have the same names as the options, with
1098
# dashes changed to underlines.
1099
cache_file=/dev/null
1106
program_transform_name=s,x,x,
1114
# Installation directory options.
1115
# These are left unexpanded so users can "make install exec_prefix=/foo"
1116
# and all the variables that are supposed to be based on exec_prefix
1117
# by default will actually change.
1118
# Use braces instead of parens because sh, perl, etc. also accept them.
1119
# (The list follows the same order as the GNU Coding Standards.)
1120
bindir='${exec_prefix}/bin'
1121
sbindir='${exec_prefix}/sbin'
1122
libexecdir='${exec_prefix}/libexec'
1123
datarootdir='${prefix}/share'
1124
datadir='${datarootdir}'
1125
sysconfdir='${prefix}/etc'
1126
sharedstatedir='${prefix}/com'
1127
localstatedir='${prefix}/var'
1128
includedir='${prefix}/include'
1129
oldincludedir='/usr/include'
1130
docdir='${datarootdir}/doc/${PACKAGE}'
1131
infodir='${datarootdir}/info'
1136
libdir='${exec_prefix}/lib'
1137
localedir='${datarootdir}/locale'
1138
mandir='${datarootdir}/man'
1144
# If the previous option needs an argument, assign it.
1145
if test -n "$ac_prev"; then
1146
eval $ac_prev=\$ac_option
1152
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1156
# Accept the important Cygnus configure options, so we can diagnose typos.
1158
case $ac_dashdash$ac_option in
1162
-bindir | --bindir | --bindi | --bind | --bin | --bi)
1164
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1165
bindir=$ac_optarg ;;
1167
-build | --build | --buil | --bui | --bu)
1168
ac_prev=build_alias ;;
1169
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
1170
build_alias=$ac_optarg ;;
1172
-cache-file | --cache-file | --cache-fil | --cache-fi \
1173
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1174
ac_prev=cache_file ;;
1175
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1176
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1177
cache_file=$ac_optarg ;;
1179
--config-cache | -C)
1180
cache_file=config.cache ;;
1182
-datadir | --datadir | --datadi | --datad)
1184
-datadir=* | --datadir=* | --datadi=* | --datad=*)
1185
datadir=$ac_optarg ;;
1187
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1188
| --dataroo | --dataro | --datar)
1189
ac_prev=datarootdir ;;
1190
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1191
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1192
datarootdir=$ac_optarg ;;
1194
-disable-* | --disable-*)
1195
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1196
# Reject names that are not valid shell variable names.
1197
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1198
{ $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1199
{ (exit 1); exit 1; }; }
1200
ac_useropt_orig=$ac_useropt
1201
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202
case $ac_user_opts in
1204
"enable_$ac_useropt"
1206
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1207
ac_unrecognized_sep=', ';;
1209
eval enable_$ac_useropt=no ;;
1211
-docdir | --docdir | --docdi | --doc | --do)
1213
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1214
docdir=$ac_optarg ;;
1216
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1218
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1219
dvidir=$ac_optarg ;;
1221
-enable-* | --enable-*)
1222
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1223
# Reject names that are not valid shell variable names.
1224
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1225
{ $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1226
{ (exit 1); exit 1; }; }
1227
ac_useropt_orig=$ac_useropt
1228
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1229
case $ac_user_opts in
1231
"enable_$ac_useropt"
1233
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1234
ac_unrecognized_sep=', ';;
1236
eval enable_$ac_useropt=\$ac_optarg ;;
1238
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1239
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1240
| --exec | --exe | --ex)
1241
ac_prev=exec_prefix ;;
1242
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1243
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1244
| --exec=* | --exe=* | --ex=*)
1245
exec_prefix=$ac_optarg ;;
1247
-gas | --gas | --ga | --g)
1248
# Obsolete; use --with-gas.
1251
-help | --help | --hel | --he | -h)
1252
ac_init_help=long ;;
1253
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1254
ac_init_help=recursive ;;
1255
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1256
ac_init_help=short ;;
1258
-host | --host | --hos | --ho)
1259
ac_prev=host_alias ;;
1260
-host=* | --host=* | --hos=* | --ho=*)
1261
host_alias=$ac_optarg ;;
1263
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1265
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1267
htmldir=$ac_optarg ;;
1269
-includedir | --includedir | --includedi | --included | --include \
1270
| --includ | --inclu | --incl | --inc)
1271
ac_prev=includedir ;;
1272
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1273
| --includ=* | --inclu=* | --incl=* | --inc=*)
1274
includedir=$ac_optarg ;;
1276
-infodir | --infodir | --infodi | --infod | --info | --inf)
1278
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1279
infodir=$ac_optarg ;;
1281
-libdir | --libdir | --libdi | --libd)
1283
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1284
libdir=$ac_optarg ;;
1286
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1287
| --libexe | --libex | --libe)
1288
ac_prev=libexecdir ;;
1289
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1290
| --libexe=* | --libex=* | --libe=*)
1291
libexecdir=$ac_optarg ;;
1293
-localedir | --localedir | --localedi | --localed | --locale)
1294
ac_prev=localedir ;;
1295
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1296
localedir=$ac_optarg ;;
1298
-localstatedir | --localstatedir | --localstatedi | --localstated \
1299
| --localstate | --localstat | --localsta | --localst | --locals)
1300
ac_prev=localstatedir ;;
1301
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1302
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1303
localstatedir=$ac_optarg ;;
1305
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1307
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1308
mandir=$ac_optarg ;;
1310
-nfp | --nfp | --nf)
1311
# Obsolete; use --without-fp.
1314
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1315
| --no-cr | --no-c | -n)
1318
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1319
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1322
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1323
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1324
| --oldin | --oldi | --old | --ol | --o)
1325
ac_prev=oldincludedir ;;
1326
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1327
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1328
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1329
oldincludedir=$ac_optarg ;;
1331
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1333
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1334
prefix=$ac_optarg ;;
1336
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1337
| --program-pre | --program-pr | --program-p)
1338
ac_prev=program_prefix ;;
1339
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1340
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1341
program_prefix=$ac_optarg ;;
1343
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1344
| --program-suf | --program-su | --program-s)
1345
ac_prev=program_suffix ;;
1346
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1347
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1348
program_suffix=$ac_optarg ;;
1350
-program-transform-name | --program-transform-name \
1351
| --program-transform-nam | --program-transform-na \
1352
| --program-transform-n | --program-transform- \
1353
| --program-transform | --program-transfor \
1354
| --program-transfo | --program-transf \
1355
| --program-trans | --program-tran \
1356
| --progr-tra | --program-tr | --program-t)
1357
ac_prev=program_transform_name ;;
1358
-program-transform-name=* | --program-transform-name=* \
1359
| --program-transform-nam=* | --program-transform-na=* \
1360
| --program-transform-n=* | --program-transform-=* \
1361
| --program-transform=* | --program-transfor=* \
1362
| --program-transfo=* | --program-transf=* \
1363
| --program-trans=* | --program-tran=* \
1364
| --progr-tra=* | --program-tr=* | --program-t=*)
1365
program_transform_name=$ac_optarg ;;
1367
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1369
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1370
pdfdir=$ac_optarg ;;
1372
-psdir | --psdir | --psdi | --psd | --ps)
1374
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1377
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1378
| -silent | --silent | --silen | --sile | --sil)
1381
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1383
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1385
sbindir=$ac_optarg ;;
1387
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1388
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1389
| --sharedst | --shareds | --shared | --share | --shar \
1391
ac_prev=sharedstatedir ;;
1392
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1393
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1394
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1396
sharedstatedir=$ac_optarg ;;
1398
-site | --site | --sit)
1400
-site=* | --site=* | --sit=*)
1403
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1405
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1406
srcdir=$ac_optarg ;;
1408
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1409
| --syscon | --sysco | --sysc | --sys | --sy)
1410
ac_prev=sysconfdir ;;
1411
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1412
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1413
sysconfdir=$ac_optarg ;;
1415
-target | --target | --targe | --targ | --tar | --ta | --t)
1416
ac_prev=target_alias ;;
1417
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1418
target_alias=$ac_optarg ;;
1420
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1423
-version | --version | --versio | --versi | --vers | -V)
1424
ac_init_version=: ;;
1427
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1428
# Reject names that are not valid shell variable names.
1429
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1430
{ $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1431
{ (exit 1); exit 1; }; }
1432
ac_useropt_orig=$ac_useropt
1433
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1434
case $ac_user_opts in
1438
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1439
ac_unrecognized_sep=', ';;
1441
eval with_$ac_useropt=\$ac_optarg ;;
1443
-without-* | --without-*)
1444
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1445
# Reject names that are not valid shell variable names.
1446
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1447
{ $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1448
{ (exit 1); exit 1; }; }
1449
ac_useropt_orig=$ac_useropt
1450
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1451
case $ac_user_opts in
1455
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1456
ac_unrecognized_sep=', ';;
1458
eval with_$ac_useropt=no ;;
1461
# Obsolete; use --with-x.
1464
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1465
| --x-incl | --x-inc | --x-in | --x-i)
1466
ac_prev=x_includes ;;
1467
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1468
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1469
x_includes=$ac_optarg ;;
1471
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1472
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1473
ac_prev=x_libraries ;;
1474
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1475
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1476
x_libraries=$ac_optarg ;;
1478
-*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1479
Try \`$0 --help' for more information." >&2
1480
{ (exit 1); exit 1; }; }
1484
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1485
# Reject names that are not valid shell variable names.
1486
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1487
{ $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1488
{ (exit 1); exit 1; }; }
1489
eval $ac_envvar=\$ac_optarg
1490
export $ac_envvar ;;
1493
# FIXME: should be removed in autoconf 3.0.
1494
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1495
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1496
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1497
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1503
if test -n "$ac_prev"; then
1504
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1505
{ $as_echo "$as_me: error: missing argument to $ac_option" >&2
1506
{ (exit 1); exit 1; }; }
1509
if test -n "$ac_unrecognized_opts"; then
1510
case $enable_option_checking in
1512
fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1513
{ (exit 1); exit 1; }; } ;;
1514
*) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1518
# Check all directory arguments for consistency.
1519
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1520
datadir sysconfdir sharedstatedir localstatedir includedir \
1521
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1522
libdir localedir mandir
1524
eval ac_val=\$$ac_var
1525
# Remove trailing slashes.
1528
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1529
eval $ac_var=\$ac_val;;
1531
# Be sure to have absolute directory names.
1533
[\\/$]* | ?:[\\/]* ) continue;;
1534
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1536
{ $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1537
{ (exit 1); exit 1; }; }
1540
# There might be people who depend on the old broken behavior: `$host'
1541
# used to hold the argument of --host etc.
1542
# FIXME: To remove some day.
1545
target=$target_alias
1547
# FIXME: To remove some day.
1548
if test "x$host_alias" != x; then
1549
if test "x$build_alias" = x; then
1550
cross_compiling=maybe
1551
$as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1552
If a cross compiler is detected then cross compile mode will be used." >&2
1553
elif test "x$build_alias" != "x$host_alias"; then
1559
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1561
test "$silent" = yes && exec 6>/dev/null
1564
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1565
ac_ls_di=`ls -di .` &&
1566
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1567
{ $as_echo "$as_me: error: Working directory cannot be determined" >&2
1568
{ (exit 1); exit 1; }; }
1569
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1570
{ $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1571
{ (exit 1); exit 1; }; }
1574
# Find the source files, if location was not specified.
1575
if test -z "$srcdir"; then
1576
ac_srcdir_defaulted=yes
1577
# Try the directory containing this script, then the parent directory.
1578
ac_confdir=`$as_dirname -- "$as_myself" ||
1579
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1580
X"$as_myself" : 'X\(//\)[^/]' \| \
1581
X"$as_myself" : 'X\(//\)$' \| \
1582
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1583
$as_echo X"$as_myself" |
1584
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1602
if test ! -r "$srcdir/$ac_unique_file"; then
1606
ac_srcdir_defaulted=no
1608
if test ! -r "$srcdir/$ac_unique_file"; then
1609
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1610
{ $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1611
{ (exit 1); exit 1; }; }
1613
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1615
cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1616
{ (exit 1); exit 1; }; }
1618
# When building in place, set srcdir=.
1619
if test "$ac_abs_confdir" = "$ac_pwd"; then
1622
# Remove unnecessary trailing slashes from srcdir.
1623
# Double slashes in file names in object file debugging info
1624
# mess up M-x gdb in Emacs.
1626
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1628
for ac_var in $ac_precious_vars; do
1629
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1630
eval ac_env_${ac_var}_value=\$${ac_var}
1631
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1632
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1636
# Report the --help message.
1638
if test "$ac_init_help" = "long"; then
1639
# Omit some internal or obsolete options to make the list less imposing.
1640
# This message is too long to be a string in the A/UX 3.1 sh.
1642
\`configure' configures this package to adapt to many kinds of systems.
1644
Usage: $0 [OPTION]... [VAR=VALUE]...
1646
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1647
VAR=VALUE. See below for descriptions of some of the useful variables.
1649
Defaults for the options are specified in brackets.
1652
-h, --help display this help and exit
1653
--help=short display options specific to this package
1654
--help=recursive display the short help of all the included packages
1655
-V, --version display version information and exit
1656
-q, --quiet, --silent do not print \`checking...' messages
1657
--cache-file=FILE cache test results in FILE [disabled]
1658
-C, --config-cache alias for \`--cache-file=config.cache'
1659
-n, --no-create do not create output files
1660
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1662
Installation directories:
1663
--prefix=PREFIX install architecture-independent files in PREFIX
1664
[$ac_default_prefix]
1665
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1668
By default, \`make install' will install all the files in
1669
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1670
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1671
for instance \`--prefix=\$HOME'.
1673
For better control, use the options below.
1675
Fine tuning of the installation directories:
1676
--bindir=DIR user executables [EPREFIX/bin]
1677
--sbindir=DIR system admin executables [EPREFIX/sbin]
1678
--libexecdir=DIR program executables [EPREFIX/libexec]
1679
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1680
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1681
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1682
--libdir=DIR object code libraries [EPREFIX/lib]
1683
--includedir=DIR C header files [PREFIX/include]
1684
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1685
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1686
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1687
--infodir=DIR info documentation [DATAROOTDIR/info]
1688
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1689
--mandir=DIR man documentation [DATAROOTDIR/man]
1690
--docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1691
--htmldir=DIR html documentation [DOCDIR]
1692
--dvidir=DIR dvi documentation [DOCDIR]
1693
--pdfdir=DIR pdf documentation [DOCDIR]
1694
--psdir=DIR ps documentation [DOCDIR]
1700
--program-prefix=PREFIX prepend PREFIX to installed program names
1701
--program-suffix=SUFFIX append SUFFIX to installed program names
1702
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1705
--build=BUILD configure for building on BUILD [guessed]
1706
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1707
--target=TARGET configure for building compilers for TARGET [HOST]
1711
if test -n "$ac_init_help"; then
1716
--disable-option-checking ignore unrecognized --enable/--with options
1717
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1718
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1719
--disable-fast-perl disable fast Makefile generation (needs perl)
1720
--enable-debug=ARG enables debug symbols (yes|no|full) default=no
1721
--disable-debug disables debug output and debug symbols default=no
1722
--enable-strict compiles with strict compiler options (may not
1724
--disable-warnings disables compilation with -Wall and similar
1725
--enable-profile creates profiling infos default=no
1726
--disable-dependency-tracking Speeds up one-time builds
1727
--enable-dependency-tracking Do not reject slow dependency extractors
1728
--enable-pch enables precompiled header support (currently only
1729
KCC or gcc >=3.4+unsermake) default=no
1730
--enable-coverage use gcc coverage testing
1731
--enable-new-ldflags enable the new linker flags
1732
--enable-final build size optimized apps (experimental - needs lots
1734
--enable-closure delay template instantiation
1735
--enable-nmcheck enable automatic namespace cleanness check
1736
--enable-shared[=PKGS] build shared libraries [default=yes]
1737
--enable-static[=PKGS] build static libraries [default=no]
1738
--enable-libsuffix /lib directory suffix (64,32,none,auto=default)
1739
--enable-fast-install[=PKGS]
1740
optimize for fast installation [default=yes]
1741
--disable-libtool-lock avoid locking (might break parallel builds)
1742
--enable-pie platform supports PIE linking default=detect
1743
--enable-embedded link to Qt-embedded, don't use X
1744
--enable-qtopia link to Qt-embedded, link to the Qtopia Environment
1745
--enable-mac link to Qt/Mac (don't use X)
1746
--disable-mt link to non-threaded Qt (deprecated)
1747
--disable-threading disables threading even if libpthread found
1748
--disable-rpath do not use the rpath feature of ld
1749
--disable-path-check don't try to find out, where to install
1752
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1753
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1754
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1755
--with-pic try to use only PIC/non-PIC objects [default=use
1757
--with-tags[=TAGS] include additional configurations [automatic]
1758
--with-extra-includes=DIR
1759
adds non standard include paths
1760
--with-extra-libs=DIR adds non standard library paths
1761
--with-qt-dir=DIR where the root of Qt is installed
1762
--with-qt-includes=DIR where the Qt includes are.
1763
--with-qt-libraries=DIR where the Qt library is installed.
1764
--without-arts build without aRts default=no
1766
Some influential environment variables:
1767
CC C compiler command
1768
CFLAGS C compiler flags
1769
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1770
nonstandard directory <lib dir>
1771
LIBS libraries to pass to the linker, e.g. -l<library>
1772
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1773
you have headers in a nonstandard directory <include dir>
1775
CXX C++ compiler command
1776
CXXFLAGS C++ compiler flags
1777
CXXCPP C++ preprocessor
1778
F77 Fortran 77 compiler command
1779
FFLAGS Fortran 77 compiler flags
1780
XMKMF Path to xmkmf, Makefile generator for X Window System
1782
Use these variables to override the choices made by `configure' or to help
1783
it to find libraries and programs with nonstandard names/locations.
1789
if test "$ac_init_help" = "recursive"; then
1790
# If there are subdirs, report their specific --help.
1791
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1792
test -d "$ac_dir" ||
1793
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1798
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1800
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1801
# A ".." for each directory in $ac_dir_suffix.
1802
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1803
case $ac_top_builddir_sub in
1804
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1805
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1808
ac_abs_top_builddir=$ac_pwd
1809
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1810
# for backward compatibility:
1811
ac_top_builddir=$ac_top_build_prefix
1814
.) # We are building in place.
1816
ac_top_srcdir=$ac_top_builddir_sub
1817
ac_abs_top_srcdir=$ac_pwd ;;
1818
[\\/]* | ?:[\\/]* ) # Absolute name.
1819
ac_srcdir=$srcdir$ac_dir_suffix;
1820
ac_top_srcdir=$srcdir
1821
ac_abs_top_srcdir=$srcdir ;;
1823
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1824
ac_top_srcdir=$ac_top_build_prefix$srcdir
1825
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1827
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1829
cd "$ac_dir" || { ac_status=$?; continue; }
1830
# Check for guested configure.
1831
if test -f "$ac_srcdir/configure.gnu"; then
1833
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1834
elif test -f "$ac_srcdir/configure"; then
1836
$SHELL "$ac_srcdir/configure" --help=recursive
1838
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1840
cd "$ac_pwd" || { ac_status=$?; break; }
1844
test -n "$ac_init_help" && exit $ac_status
1845
if $ac_init_version; then
1848
generated by GNU Autoconf 2.62
1850
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1851
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1852
This configure script is free software; the Free Software Foundation
1853
gives unlimited permission to copy, distribute and modify it.
1857
cat >config.log <<_ACEOF
1858
This file contains any messages produced by compilers while
1859
running configure, to aid debugging if configure makes a mistake.
1861
It was created by $as_me, which was
1862
generated by GNU Autoconf 2.62. Invocation command line was
1874
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1875
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1876
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1877
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1878
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1880
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1881
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1883
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1884
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1885
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1886
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1887
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1888
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1889
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1893
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1897
test -z "$as_dir" && as_dir=.
1898
$as_echo "PATH: $as_dir"
1914
# Keep a trace of the command line.
1915
# Strip out --no-create and --no-recursion so they do not pile up.
1916
# Strip out --silent because we don't want to record it for future runs.
1917
# Also quote any args containing shell meta-characters.
1918
# Make two passes to allow for proper duplicate-argument suppression.
1922
ac_must_keep_next=false
1928
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1929
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1930
| -silent | --silent | --silen | --sile | --sil)
1933
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1936
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1938
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1939
if test $ac_must_keep_next = true; then
1940
ac_must_keep_next=false # Got value, back to normal.
1943
*=* | --config-cache | -C | -disable-* | --disable-* \
1944
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1945
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1946
| -with-* | --with-* | -without-* | --without-* | --x)
1947
case "$ac_configure_args0 " in
1948
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1951
-* ) ac_must_keep_next=true ;;
1954
ac_configure_args="$ac_configure_args '$ac_arg'"
1959
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1960
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1962
# When interrupted or exit'd, cleanup temporary files, and complete
1963
# config.log. We remove comments because anyway the quotes in there
1964
# would cause problems or look ugly.
1965
# WARNING: Use '\'' to represent an apostrophe within the trap.
1966
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1967
trap 'exit_status=$?
1968
# Save into config.log some information that might help in debugging.
1973
## ---------------- ##
1974
## Cache variables. ##
1975
## ---------------- ##
1978
# The following way of writing the cache mishandles newlines in values,
1980
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1981
eval ac_val=\$$ac_var
1985
*_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1986
$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1989
_ | IFS | as_nl) ;; #(
1990
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1991
*) $as_unset $ac_var ;;
1996
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1997
*${as_nl}ac_space=\ *)
1999
"s/'\''/'\''\\\\'\'''\''/g;
2000
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2003
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2011
## ----------------- ##
2012
## Output variables. ##
2013
## ----------------- ##
2016
for ac_var in $ac_subst_vars
2018
eval ac_val=\$$ac_var
2020
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2022
$as_echo "$ac_var='\''$ac_val'\''"
2026
if test -n "$ac_subst_files"; then
2028
## ------------------- ##
2029
## File substitutions. ##
2030
## ------------------- ##
2033
for ac_var in $ac_subst_files
2035
eval ac_val=\$$ac_var
2037
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2039
$as_echo "$ac_var='\''$ac_val'\''"
2044
if test -s confdefs.h; then
2054
test "$ac_signal" != 0 &&
2055
$as_echo "$as_me: caught signal $ac_signal"
2056
$as_echo "$as_me: exit $exit_status"
2058
rm -f core *.core core.conftest.* &&
2059
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2062
for ac_signal in 1 2 13 15; do
2063
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2067
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2068
rm -f -r conftest* confdefs.h
2070
# Predefined preprocessor variables.
2072
cat >>confdefs.h <<_ACEOF
2073
#define PACKAGE_NAME "$PACKAGE_NAME"
2077
cat >>confdefs.h <<_ACEOF
2078
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2082
cat >>confdefs.h <<_ACEOF
2083
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2087
cat >>confdefs.h <<_ACEOF
2088
#define PACKAGE_STRING "$PACKAGE_STRING"
2092
cat >>confdefs.h <<_ACEOF
2093
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2097
# Let the site file select an alternate cache file if it wants to.
2098
# Prefer an explicitly selected file to automatically selected ones.
2101
if test -n "$CONFIG_SITE"; then
2102
ac_site_file1=$CONFIG_SITE
2103
elif test "x$prefix" != xNONE; then
2104
ac_site_file1=$prefix/share/config.site
2105
ac_site_file2=$prefix/etc/config.site
2107
ac_site_file1=$ac_default_prefix/share/config.site
2108
ac_site_file2=$ac_default_prefix/etc/config.site
2110
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2112
test "x$ac_site_file" = xNONE && continue
2113
if test -r "$ac_site_file"; then
2114
{ $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2115
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2116
sed 's/^/| /' "$ac_site_file" >&5
2121
if test -r "$cache_file"; then
2122
# Some versions of bash will fail to source /dev/null (special
2123
# files actually), so we avoid doing that.
2124
if test -f "$cache_file"; then
2125
{ $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2126
$as_echo "$as_me: loading cache $cache_file" >&6;}
2128
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2129
*) . "./$cache_file";;
2133
{ $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2134
$as_echo "$as_me: creating cache $cache_file" >&6;}
2138
# Check that the precious variables saved in the cache have kept the same
2140
ac_cache_corrupted=false
2141
for ac_var in $ac_precious_vars; do
2142
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2143
eval ac_new_set=\$ac_env_${ac_var}_set
2144
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2145
eval ac_new_val=\$ac_env_${ac_var}_value
2146
case $ac_old_set,$ac_new_set in
2148
{ $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2149
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2150
ac_cache_corrupted=: ;;
2152
{ $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2153
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2154
ac_cache_corrupted=: ;;
2157
if test "x$ac_old_val" != "x$ac_new_val"; then
2158
# differences in whitespace do not lead to failure.
2159
ac_old_val_w=`echo x $ac_old_val`
2160
ac_new_val_w=`echo x $ac_new_val`
2161
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2162
{ $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2163
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2164
ac_cache_corrupted=:
2166
{ $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2167
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2168
eval $ac_var=\$ac_old_val
2170
{ $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2171
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2172
{ $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2173
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2176
# Pass precious variables to config.status.
2177
if test "$ac_new_set" = set; then
2179
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2180
*) ac_arg=$ac_var=$ac_new_val ;;
2182
case " $ac_configure_args " in
2183
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2184
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2188
if $ac_cache_corrupted; then
2189
{ $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2190
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2191
{ { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2192
$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2193
{ (exit 1); exit 1; }; }
2213
ac_cpp='$CPP $CPPFLAGS'
2214
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2215
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2216
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2220
for ac_dir in admin "$srcdir"/admin; do
2221
if test -f "$ac_dir/install-sh"; then
2223
ac_install_sh="$ac_aux_dir/install-sh -c"
2225
elif test -f "$ac_dir/install.sh"; then
2227
ac_install_sh="$ac_aux_dir/install.sh -c"
2229
elif test -f "$ac_dir/shtool"; then
2231
ac_install_sh="$ac_aux_dir/shtool install -c"
2235
if test -z "$ac_aux_dir"; then
2236
{ { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in admin \"$srcdir\"/admin" >&5
2237
$as_echo "$as_me: error: cannot find install-sh or install.sh in admin \"$srcdir\"/admin" >&2;}
2238
{ (exit 1); exit 1; }; }
2241
# These three variables are undocumented and unsupported,
2242
# and are intended to be withdrawn in a future Autoconf release.
2243
# They can cause serious problems if a builder's source tree is in a directory
2244
# whose full name contains unusual characters.
2245
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2246
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2247
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2253
# Make sure we can run config.sub.
2254
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2255
{ { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2256
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2257
{ (exit 1); exit 1; }; }
2259
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2260
$as_echo_n "checking build system type... " >&6; }
2261
if test "${ac_cv_build+set}" = set; then
2262
$as_echo_n "(cached) " >&6
2264
ac_build_alias=$build_alias
2265
test "x$ac_build_alias" = x &&
2266
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2267
test "x$ac_build_alias" = x &&
2268
{ { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2269
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2270
{ (exit 1); exit 1; }; }
2271
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2272
{ { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2273
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2274
{ (exit 1); exit 1; }; }
2277
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2278
$as_echo "$ac_cv_build" >&6; }
2279
case $ac_cv_build in
2281
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2282
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2283
{ (exit 1); exit 1; }; };;
2286
ac_save_IFS=$IFS; IFS='-'
2292
# Remember, the first character of IFS is used to create $*,
2293
# except with old shells:
2296
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2299
{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2300
$as_echo_n "checking host system type... " >&6; }
2301
if test "${ac_cv_host+set}" = set; then
2302
$as_echo_n "(cached) " >&6
2304
if test "x$host_alias" = x; then
2305
ac_cv_host=$ac_cv_build
2307
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2308
{ { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2309
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2310
{ (exit 1); exit 1; }; }
2314
{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2315
$as_echo "$ac_cv_host" >&6; }
2318
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2319
$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2320
{ (exit 1); exit 1; }; };;
2323
ac_save_IFS=$IFS; IFS='-'
2329
# Remember, the first character of IFS is used to create $*,
2330
# except with old shells:
2333
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2336
{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2337
$as_echo_n "checking target system type... " >&6; }
2338
if test "${ac_cv_target+set}" = set; then
2339
$as_echo_n "(cached) " >&6
2341
if test "x$target_alias" = x; then
2342
ac_cv_target=$ac_cv_host
2344
ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2345
{ { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2346
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2347
{ (exit 1); exit 1; }; }
2351
{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2352
$as_echo "$ac_cv_target" >&6; }
2353
case $ac_cv_target in
2355
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2356
$as_echo "$as_me: error: invalid value of canonical target" >&2;}
2357
{ (exit 1); exit 1; }; };;
2359
target=$ac_cv_target
2360
ac_save_IFS=$IFS; IFS='-'
2366
# Remember, the first character of IFS is used to create $*,
2367
# except with old shells:
2370
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2373
# The aliases save the names the user supplied, while $host etc.
2374
# will get canonicalized.
2375
test -n "$target_alias" &&
2376
test "$program_prefix$program_suffix$program_transform_name" = \
2378
program_prefix=${target_alias}-
2379
test "$program_prefix" != NONE &&
2380
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2381
# Use a double $ so make ignores it.
2382
test "$program_suffix" != NONE &&
2383
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2384
# Double any \ or $.
2385
# By default was `s,x,x', remove it if useless.
2386
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2387
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2390
am__api_version="1.7"
2393
test -n "$INSTALL" && kde_save_INSTALL_given=$INSTALL
2394
test -n "$INSTALL_PROGRAM" && kde_save_INSTALL_PROGRAM_given=$INSTALL_PROGRAM
2395
test -n "$INSTALL_SCRIPT" && kde_save_INSTALL_SCRIPT_given=$INSTALL_SCRIPT
2396
# Find a good install program. We prefer a C program (faster),
2397
# so one script is as good as another. But avoid the broken or
2398
# incompatible versions:
2399
# SysV /etc/install, /usr/sbin/install
2400
# SunOS /usr/etc/install
2401
# IRIX /sbin/install
2403
# AmigaOS /C/install, which installs bootblocks on floppy discs
2404
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2405
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2406
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2407
# OS/2's system install, which has a completely different semantic
2408
# ./install, which can be erroneously created by make from ./install.sh.
2409
# Reject install programs that cannot install multiple files.
2410
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2411
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2412
if test -z "$INSTALL"; then
2413
if test "${ac_cv_path_install+set}" = set; then
2414
$as_echo_n "(cached) " >&6
2416
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2420
test -z "$as_dir" && as_dir=.
2421
# Account for people who put trailing slashes in PATH elements.
2423
./ | .// | /cC/* | \
2424
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2425
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2428
# OSF1 and SCO ODT 3.0 have their own names for install.
2429
# Don't use installbsd from OSF since it installs stuff as root
2431
for ac_prog in ginstall scoinst install; do
2432
for ac_exec_ext in '' $ac_executable_extensions; do
2433
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2434
if test $ac_prog = install &&
2435
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2436
# AIX install. It has an incompatible calling convention.
2438
elif test $ac_prog = install &&
2439
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2440
# program-specific install script used by HP pwplus--don't use.
2443
rm -rf conftest.one conftest.two conftest.dir
2444
echo one > conftest.one
2445
echo two > conftest.two
2447
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2448
test -s conftest.one && test -s conftest.two &&
2449
test -s conftest.dir/conftest.one &&
2450
test -s conftest.dir/conftest.two
2452
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2465
rm -rf conftest.one conftest.two conftest.dir
2468
if test "${ac_cv_path_install+set}" = set; then
2469
INSTALL=$ac_cv_path_install
2471
# As a last resort, use the slow shell script. Don't cache a
2472
# value for INSTALL within a source directory, because that will
2473
# break other packages using the cache if that directory is
2474
# removed, or if the value is a relative name.
2475
INSTALL=$ac_install_sh
2478
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2479
$as_echo "$INSTALL" >&6; }
2481
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2482
# It thinks the first close brace ends the variable substitution.
2483
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2485
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2487
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2490
if test -z "$kde_save_INSTALL_given" ; then
2491
# OK, user hasn't given any INSTALL, autoconf found one for us
2492
# now we test, if it supports the -p flag
2493
{ $as_echo "$as_me:$LINENO: checking for -p flag to install" >&5
2494
$as_echo_n "checking for -p flag to install... " >&6; }
2495
rm -f confinst.$$.* > /dev/null 2>&1
2496
echo "Testtest" > confinst.$$.orig
2498
if ${INSTALL} -p confinst.$$.orig confinst.$$.new > /dev/null 2>&1 ; then
2499
if test -f confinst.$$.new ; then
2500
# OK, -p seems to do no harm to install
2501
INSTALL="${INSTALL} -p"
2506
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
2507
$as_echo "$ac_res" >&6; }
2510
if test -z "$kde_save_INSTALL_PROGRAM_given" ; then
2511
INSTALL_PROGRAM='${INSTALL} $(INSTALL_STRIP_FLAG)'
2513
if test -z "$kde_save_INSTALL_SCRIPT_given" ; then
2514
INSTALL_SCRIPT='${INSTALL}'
2517
{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2518
$as_echo_n "checking whether build environment is sane... " >&6; }
2521
echo timestamp > conftest.file
2522
# Do `set' in a subshell so we don't clobber the current shell's
2523
# arguments. Must try -L first in case configure is actually a
2524
# symlink; some systems play weird games with the mod time of symlinks
2525
# (eg FreeBSD returns the mod time of the symlink's containing
2528
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2529
if test "$*" = "X"; then
2531
set X `ls -t $srcdir/configure conftest.file`
2534
if test "$*" != "X $srcdir/configure conftest.file" \
2535
&& test "$*" != "X conftest.file $srcdir/configure"; then
2537
# If neither matched, then we have a broken ls. This can happen
2538
# if, for instance, CONFIG_SHELL is bash and it inherits a
2539
# broken ls alias from the environment. This has actually
2540
# happened. Such a system could not be considered "sane".
2541
{ { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2542
alias in your environment" >&5
2543
$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2544
alias in your environment" >&2;}
2545
{ (exit 1); exit 1; }; }
2548
test "$2" = conftest.file
2554
{ { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2555
Check your system clock" >&5
2556
$as_echo "$as_me: error: newly created file is older than distributed files!
2557
Check your system clock" >&2;}
2558
{ (exit 1); exit 1; }; }
2560
{ $as_echo "$as_me:$LINENO: result: yes" >&5
2561
$as_echo "yes" >&6; }
2563
# expand $ac_aux_dir to an absolute path
2564
am_aux_dir=`cd $ac_aux_dir && pwd`
2566
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2567
# Use eval to expand $SHELL
2568
if eval "$MISSING --run true"; then
2569
am_missing_run="$MISSING --run "
2572
{ $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2573
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2576
for ac_prog in gawk mawk nawk awk
2578
# Extract the first word of "$ac_prog", so it can be a program name with args.
2579
set dummy $ac_prog; ac_word=$2
2580
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2581
$as_echo_n "checking for $ac_word... " >&6; }
2582
if test "${ac_cv_prog_AWK+set}" = set; then
2583
$as_echo_n "(cached) " >&6
2585
if test -n "$AWK"; then
2586
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2588
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2592
test -z "$as_dir" && as_dir=.
2593
for ac_exec_ext in '' $ac_executable_extensions; do
2594
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2595
ac_cv_prog_AWK="$ac_prog"
2596
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2606
if test -n "$AWK"; then
2607
{ $as_echo "$as_me:$LINENO: result: $AWK" >&5
2608
$as_echo "$AWK" >&6; }
2610
{ $as_echo "$as_me:$LINENO: result: no" >&5
2611
$as_echo "no" >&6; }
2615
test -n "$AWK" && break
2618
{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2619
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2621
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2622
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2623
$as_echo_n "(cached) " >&6
2625
cat >conftest.make <<\_ACEOF
2628
@echo '@@@%%%=$(MAKE)=@@@%%%'
2630
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2631
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2633
eval ac_cv_prog_make_${ac_make}_set=yes;;
2635
eval ac_cv_prog_make_${ac_make}_set=no;;
2639
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2640
{ $as_echo "$as_me:$LINENO: result: yes" >&5
2641
$as_echo "yes" >&6; }
2644
{ $as_echo "$as_me:$LINENO: result: no" >&5
2645
$as_echo "no" >&6; }
2646
SET_MAKE="MAKE=${MAKE-make}"
2649
rm -rf .tst 2>/dev/null
2650
mkdir .tst 2>/dev/null
2651
if test -d .tst; then
2656
rmdir .tst 2>/dev/null
2658
# test to see if srcdir already configured
2659
if test "`cd $srcdir && pwd`" != "`pwd`" &&
2660
test -f $srcdir/config.status; then
2661
{ { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2662
$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2663
{ (exit 1); exit 1; }; }
2666
# test whether we have cygpath
2667
if test -z "$CYGPATH_W"; then
2668
if (cygpath --version) >/dev/null 2>/dev/null; then
2669
CYGPATH_W='cygpath -w'
2676
# Define the identity of the package.
2681
cat >>confdefs.h <<_ACEOF
2682
#define PACKAGE "$PACKAGE"
2686
cat >>confdefs.h <<_ACEOF
2687
#define VERSION "$VERSION"
2690
# Some tools Automake needs.
2692
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2695
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2698
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2701
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2704
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2707
AMTAR=${AMTAR-"${am_missing_run}tar"}
2709
install_sh=${install_sh-"$am_aux_dir/install-sh"}
2711
# Installed binaries are usually stripped using `strip' when the user
2712
# run `make install-strip'. However `strip' might not be the right
2713
# tool to use in cross-compilation environments, therefore Automake
2714
# will honor the `STRIP' environment variable to overrule this program.
2715
if test "$cross_compiling" != no; then
2716
if test -n "$ac_tool_prefix"; then
2717
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2718
set dummy ${ac_tool_prefix}strip; ac_word=$2
2719
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2720
$as_echo_n "checking for $ac_word... " >&6; }
2721
if test "${ac_cv_prog_STRIP+set}" = set; then
2722
$as_echo_n "(cached) " >&6
2724
if test -n "$STRIP"; then
2725
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2727
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731
test -z "$as_dir" && as_dir=.
2732
for ac_exec_ext in '' $ac_executable_extensions; do
2733
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2734
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2735
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2744
STRIP=$ac_cv_prog_STRIP
2745
if test -n "$STRIP"; then
2746
{ $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2747
$as_echo "$STRIP" >&6; }
2749
{ $as_echo "$as_me:$LINENO: result: no" >&5
2750
$as_echo "no" >&6; }
2755
if test -z "$ac_cv_prog_STRIP"; then
2757
# Extract the first word of "strip", so it can be a program name with args.
2758
set dummy strip; ac_word=$2
2759
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2760
$as_echo_n "checking for $ac_word... " >&6; }
2761
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2762
$as_echo_n "(cached) " >&6
2764
if test -n "$ac_ct_STRIP"; then
2765
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2767
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771
test -z "$as_dir" && as_dir=.
2772
for ac_exec_ext in '' $ac_executable_extensions; do
2773
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2774
ac_cv_prog_ac_ct_STRIP="strip"
2775
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2784
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2785
if test -n "$ac_ct_STRIP"; then
2786
{ $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2787
$as_echo "$ac_ct_STRIP" >&6; }
2789
{ $as_echo "$as_me:$LINENO: result: no" >&5
2790
$as_echo "no" >&6; }
2793
if test "x$ac_ct_STRIP" = x; then
2796
case $cross_compiling:$ac_tool_warned in
2798
{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2799
whose name does not start with the host triplet. If you think this
2800
configuration is useful to you, please write to autoconf@gnu.org." >&5
2801
$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2802
whose name does not start with the host triplet. If you think this
2803
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2804
ac_tool_warned=yes ;;
2809
STRIP="$ac_cv_prog_STRIP"
2813
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2815
# We need awk for the "check" target. The system "awk" is bad on
2825
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"
2826
test -n "$KDEDIR" && kde_default_bindirs="$KDEDIR/bin $kde_default_bindirs"
2827
if test -n "$KDEDIRS"; then
2830
for dir in $KDEDIRS; do
2831
kde_default_bindirs="$dir/bin $kde_default_bindirs "
2836
if test "x$prefix" = "xNONE"; then
2838
{ $as_echo "$as_me:$LINENO: checking for kde-config" >&5
2839
$as_echo_n "checking for kde-config... " >&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
$as_echo_n "(cached) " >&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
{ $as_echo "$as_me:$LINENO: result: not found" >&5
2889
$as_echo "not found" >&6; }
2891
{ { $as_echo "$as_me:$LINENO: error: The important program kde-config was not found!
2892
Please check whether you installed KDE correctly.
2894
$as_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
{ $as_echo "$as_me:$LINENO: result: $kde_cv_path" >&5
2901
$as_echo "$kde_cv_path" >&6; }
2902
KDECONFIG=$kde_cv_path
2907
kde_save_PATH="$PATH"
2908
PATH="$exec_prefix/bin:$prefix/bin:$PATH"
2910
{ $as_echo "$as_me:$LINENO: checking for kde-config" >&5
2911
$as_echo_n "checking for kde-config... " >&6; }
2912
if test -n "$KDECONFIG"; then
2913
kde_cv_path="$KDECONFIG";
2915
kde_cache=`echo kde-config | sed 'y%./+-%__p_%'`
2917
if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
2918
$as_echo_n "(cached) " >&6
2925
for dir in $PATH; do
2928
if test -z "prepend"; then dirs="$kde_default_bindirs $dirs"
2929
else dirs="$dirs $kde_default_bindirs"
2933
for dir in $dirs; do
2934
if test -x "$dir/kde-config"; then
2937
evalstr="$dir/kde-config 2>&1 "
2938
if eval $evalstr; then
2939
kde_cv_path="$dir/kde-config"
2943
kde_cv_path="$dir/kde-config"
2949
eval "kde_cv_path_$kde_cache=$kde_cv_path"
2955
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
2959
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
2960
{ $as_echo "$as_me:$LINENO: result: not found" >&5
2961
$as_echo "not found" >&6; }
2963
{ { $as_echo "$as_me:$LINENO: error: The important program kde-config was not found!
2964
Please check whether you installed KDE correctly.
2966
$as_echo "$as_me: error: The important program kde-config was not found!
2967
Please check whether you installed KDE correctly.
2969
{ (exit 1); exit 1; }; }
2972
{ $as_echo "$as_me:$LINENO: result: $kde_cv_path" >&5
2973
$as_echo "$kde_cv_path" >&6; }
2974
KDECONFIG=$kde_cv_path
2978
PATH="$kde_save_PATH"
2981
kde_libs_prefix=`$KDECONFIG --prefix`
2982
if test -z "$kde_libs_prefix" || test ! -x "$kde_libs_prefix"; then
2983
{ { $as_echo "$as_me:$LINENO: error: $KDECONFIG --prefix outputed the non existant prefix '$kde_libs_prefix' for kdelibs.
2984
This means it has been moved since you installed it.
2985
This won't work. Please recompile kdelibs for the new prefix.
2987
$as_echo "$as_me: error: $KDECONFIG --prefix outputed the non existant prefix '$kde_libs_prefix' for kdelibs.
2988
This means it has been moved since you installed it.
2989
This won't work. Please recompile kdelibs for the new prefix.
2991
{ (exit 1); exit 1; }; }
2993
kde_libs_htmldir=`$KDECONFIG --install html --expandvars`
2995
{ $as_echo "$as_me:$LINENO: checking where to install" >&5
2996
$as_echo_n "checking where to install... " >&6; }
2997
if test "x$prefix" = "xNONE"; then
2998
prefix=$kde_libs_prefix
2999
{ $as_echo "$as_me:$LINENO: result: $prefix (as returned by kde-config)" >&5
3000
$as_echo "$prefix (as returned by kde-config)" >&6; }
3002
given_prefix=$prefix
3003
{ $as_echo "$as_me:$LINENO: result: $prefix (as requested)" >&5
3004
$as_echo "$prefix (as requested)" >&6; }
3007
# And delete superfluous '/' to make compares easier
3008
prefix=`echo "$prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
3009
exec_prefix=`echo "$exec_prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
3010
given_prefix=`echo "$given_prefix" | sed 's,//*,/,g' | sed -e 's,/$,,'`
3017
# Check whether --enable-fast-perl was given.
3018
if test "${enable_fast_perl+set}" = set; then
3019
enableval=$enable_fast_perl; with_fast_perl=$enableval
3027
if test -f $srcdir/configure.files ; then
3028
val=`sed -e 's%^%\$(top_srcdir)/%' $srcdir/configure.files`
3031
if test -n "$val" ; then
3033
CONF_FILES="$CONF_FILES $i"
3040
ac_config_headers="$ac_config_headers config.h"
3042
DEPDIR="${am__leading_dot}deps"
3044
ac_config_commands="$ac_config_commands depfiles"
3047
am_make=${MAKE-make}
3048
cat > confinc << 'END'
3053
# If we don't find an include directive, just comment out the code.
3054
{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3055
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3059
# First try GNU make style include.
3060
echo "include confinc" > confmf
3061
# We grep out `Entering directory' and `Leaving directory'
3062
# messages which can occur if `w' ends up in MAKEFLAGS.
3063
# In particular we don't look at `^make:' because GNU make might
3064
# be invoked under some other name (usually "gmake"), in which
3065
# case it prints its new name instead of `make'.
3066
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3071
# Now try BSD make style include.
3072
if test "$am__include" = "#"; then
3073
echo '.include "confinc"' > confmf
3074
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3075
am__include=.include
3082
{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3083
$as_echo "$_am_result" >&6; }
3084
rm -f confinc confmf
3086
# Check whether --enable-dependency-tracking was given.
3087
if test "${enable_dependency_tracking+set}" = set; then
3088
enableval=$enable_dependency_tracking;
3091
if test "x$enable_dependency_tracking" != xno; then
3092
am_depcomp="$ac_aux_dir/depcomp"
3097
if test "x$enable_dependency_tracking" != xno; then
3110
# Check whether --enable-debug was given.
3111
if test "${enable_debug+set}" = set; then
3112
enableval=$enable_debug;
3115
kde_use_debug_code="yes"
3116
kde_use_debug_define=no
3119
kde_use_debug_code="full"
3120
kde_use_debug_define=no
3123
kde_use_debug_code="no"
3124
kde_use_debug_define=yes
3129
kde_use_debug_code="no"
3130
kde_use_debug_define=no
3135
# Check whether --enable-dummyoption was given.
3136
if test "${enable_dummyoption+set}" = set; then
3137
enableval=$enable_dummyoption;
3141
# Check whether --enable-strict was given.
3142
if test "${enable_strict+set}" = set; then
3143
enableval=$enable_strict;
3144
if test $enableval = "no"; then
3145
kde_use_strict_options="no"
3147
kde_use_strict_options="yes"
3151
kde_use_strict_options="no"
3155
# Check whether --enable-warnings was given.
3156
if test "${enable_warnings+set}" = set; then
3157
enableval=$enable_warnings;
3158
if test $enableval = "no"; then
3159
kde_use_warnings="no"
3161
kde_use_warnings="yes"
3165
kde_use_warnings="yes"
3169
if test "$kde_use_debug_code" != "no"; then
3170
kde_use_warnings=yes
3173
# Check whether --enable-profile was given.
3174
if test "${enable_profile+set}" = set; then
3175
enableval=$enable_profile; kde_use_profiling=$enableval
3177
kde_use_profiling="no"
3185
ac_cpp='$CPP $CPPFLAGS'
3186
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3187
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3188
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3189
if test -n "$ac_tool_prefix"; then
3190
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3191
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3192
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3193
$as_echo_n "checking for $ac_word... " >&6; }
3194
if test "${ac_cv_prog_CC+set}" = set; then
3195
$as_echo_n "(cached) " >&6
3197
if test -n "$CC"; then
3198
ac_cv_prog_CC="$CC" # Let the user override the test.
3200
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204
test -z "$as_dir" && as_dir=.
3205
for ac_exec_ext in '' $ac_executable_extensions; do
3206
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3207
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3208
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3218
if test -n "$CC"; then
3219
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
3220
$as_echo "$CC" >&6; }
3222
{ $as_echo "$as_me:$LINENO: result: no" >&5
3223
$as_echo "no" >&6; }
3228
if test -z "$ac_cv_prog_CC"; then
3230
# Extract the first word of "gcc", so it can be a program name with args.
3231
set dummy gcc; ac_word=$2
3232
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3233
$as_echo_n "checking for $ac_word... " >&6; }
3234
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3235
$as_echo_n "(cached) " >&6
3237
if test -n "$ac_ct_CC"; then
3238
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3240
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244
test -z "$as_dir" && as_dir=.
3245
for ac_exec_ext in '' $ac_executable_extensions; do
3246
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3247
ac_cv_prog_ac_ct_CC="gcc"
3248
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3257
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3258
if test -n "$ac_ct_CC"; then
3259
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3260
$as_echo "$ac_ct_CC" >&6; }
3262
{ $as_echo "$as_me:$LINENO: result: no" >&5
3263
$as_echo "no" >&6; }
3266
if test "x$ac_ct_CC" = x; then
3269
case $cross_compiling:$ac_tool_warned in
3271
{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3272
whose name does not start with the host triplet. If you think this
3273
configuration is useful to you, please write to autoconf@gnu.org." >&5
3274
$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3275
whose name does not start with the host triplet. If you think this
3276
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3277
ac_tool_warned=yes ;;
3285
if test -z "$CC"; then
3286
if test -n "$ac_tool_prefix"; then
3287
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3288
set dummy ${ac_tool_prefix}cc; ac_word=$2
3289
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3290
$as_echo_n "checking for $ac_word... " >&6; }
3291
if test "${ac_cv_prog_CC+set}" = set; then
3292
$as_echo_n "(cached) " >&6
3294
if test -n "$CC"; then
3295
ac_cv_prog_CC="$CC" # Let the user override the test.
3297
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301
test -z "$as_dir" && as_dir=.
3302
for ac_exec_ext in '' $ac_executable_extensions; do
3303
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3304
ac_cv_prog_CC="${ac_tool_prefix}cc"
3305
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3315
if test -n "$CC"; then
3316
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
3317
$as_echo "$CC" >&6; }
3319
{ $as_echo "$as_me:$LINENO: result: no" >&5
3320
$as_echo "no" >&6; }
3326
if test -z "$CC"; then
3327
# Extract the first word of "cc", so it can be a program name with args.
3328
set dummy cc; ac_word=$2
3329
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3330
$as_echo_n "checking for $ac_word... " >&6; }
3331
if test "${ac_cv_prog_CC+set}" = set; then
3332
$as_echo_n "(cached) " >&6
3334
if test -n "$CC"; then
3335
ac_cv_prog_CC="$CC" # Let the user override the test.
3338
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342
test -z "$as_dir" && as_dir=.
3343
for ac_exec_ext in '' $ac_executable_extensions; do
3344
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3345
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3346
ac_prog_rejected=yes
3350
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3357
if test $ac_prog_rejected = yes; then
3358
# We found a bogon in the path, so make sure we never use it.
3359
set dummy $ac_cv_prog_CC
3361
if test $# != 0; then
3362
# We chose a different compiler from the bogus one.
3363
# However, it has the same basename, so the bogon will be chosen
3364
# first if we set CC to just the basename; use the full file name.
3366
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3372
if test -n "$CC"; then
3373
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
3374
$as_echo "$CC" >&6; }
3376
{ $as_echo "$as_me:$LINENO: result: no" >&5
3377
$as_echo "no" >&6; }
3382
if test -z "$CC"; then
3383
if test -n "$ac_tool_prefix"; then
3384
for ac_prog in cl.exe
3386
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3387
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3388
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3389
$as_echo_n "checking for $ac_word... " >&6; }
3390
if test "${ac_cv_prog_CC+set}" = set; then
3391
$as_echo_n "(cached) " >&6
3393
if test -n "$CC"; then
3394
ac_cv_prog_CC="$CC" # Let the user override the test.
3396
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400
test -z "$as_dir" && as_dir=.
3401
for ac_exec_ext in '' $ac_executable_extensions; do
3402
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3403
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3404
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3414
if test -n "$CC"; then
3415
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
3416
$as_echo "$CC" >&6; }
3418
{ $as_echo "$as_me:$LINENO: result: no" >&5
3419
$as_echo "no" >&6; }
3423
test -n "$CC" && break
3426
if test -z "$CC"; then
3428
for ac_prog in cl.exe
3430
# Extract the first word of "$ac_prog", so it can be a program name with args.
3431
set dummy $ac_prog; ac_word=$2
3432
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3433
$as_echo_n "checking for $ac_word... " >&6; }
3434
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3435
$as_echo_n "(cached) " >&6
3437
if test -n "$ac_ct_CC"; then
3438
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3440
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444
test -z "$as_dir" && as_dir=.
3445
for ac_exec_ext in '' $ac_executable_extensions; do
3446
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3447
ac_cv_prog_ac_ct_CC="$ac_prog"
3448
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3457
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3458
if test -n "$ac_ct_CC"; then
3459
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3460
$as_echo "$ac_ct_CC" >&6; }
3462
{ $as_echo "$as_me:$LINENO: result: no" >&5
3463
$as_echo "no" >&6; }
3467
test -n "$ac_ct_CC" && break
3470
if test "x$ac_ct_CC" = x; then
3473
case $cross_compiling:$ac_tool_warned in
3475
{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3476
whose name does not start with the host triplet. If you think this
3477
configuration is useful to you, please write to autoconf@gnu.org." >&5
3478
$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3479
whose name does not start with the host triplet. If you think this
3480
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3481
ac_tool_warned=yes ;;
3490
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3491
See \`config.log' for more details." >&5
3492
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3493
See \`config.log' for more details." >&2;}
3494
{ (exit 1); exit 1; }; }
3496
# Provide some information about the compiler.
3497
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3500
{ (ac_try="$ac_compiler --version >&5"
3502
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503
*) ac_try_echo=$ac_try;;
3505
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3506
$as_echo "$ac_try_echo") >&5
3507
(eval "$ac_compiler --version >&5") 2>&5
3509
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510
(exit $ac_status); }
3511
{ (ac_try="$ac_compiler -v >&5"
3513
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514
*) ac_try_echo=$ac_try;;
3516
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3517
$as_echo "$ac_try_echo") >&5
3518
(eval "$ac_compiler -v >&5") 2>&5
3520
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521
(exit $ac_status); }
3522
{ (ac_try="$ac_compiler -V >&5"
3524
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3525
*) ac_try_echo=$ac_try;;
3527
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3528
$as_echo "$ac_try_echo") >&5
3529
(eval "$ac_compiler -V >&5") 2>&5
3531
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532
(exit $ac_status); }
3534
cat >conftest.$ac_ext <<_ACEOF
3537
cat confdefs.h >>conftest.$ac_ext
3538
cat >>conftest.$ac_ext <<_ACEOF
3539
/* end confdefs.h. */
3549
ac_clean_files_save=$ac_clean_files
3550
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3551
# Try to create an executable without -o first, disregard a.out.
3552
# It will help us diagnose broken compilers, and finding out an intuition
3554
{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3555
$as_echo_n "checking for C compiler default output file name... " >&6; }
3556
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3558
# The possible output files:
3559
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3562
for ac_file in $ac_files
3565
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3566
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3571
if { (ac_try="$ac_link_default"
3573
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574
*) ac_try_echo=$ac_try;;
3576
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3577
$as_echo "$ac_try_echo") >&5
3578
(eval "$ac_link_default") 2>&5
3580
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581
(exit $ac_status); }; then
3582
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3583
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3584
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3585
# so that the user can short-circuit this test for compilers unknown to
3587
for ac_file in $ac_files ''
3589
test -f "$ac_file" || continue
3591
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3594
# We found the default executable, but exeext='' is most
3598
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3600
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3602
# We set ac_cv_exeext here because the later test for it is not
3603
# safe: cross compilers may not add the suffix if given an `-o'
3604
# argument, so we may need to know it at that point already.
3605
# Even if this section looks crufty: it has the advantage of
3612
test "$ac_cv_exeext" = no && ac_cv_exeext=
3618
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3619
$as_echo "$ac_file" >&6; }
3620
if test -z "$ac_file"; then
3621
$as_echo "$as_me: failed program was:" >&5
3622
sed 's/^/| /' conftest.$ac_ext >&5
3624
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3625
See \`config.log' for more details." >&5
3626
$as_echo "$as_me: error: C compiler cannot create executables
3627
See \`config.log' for more details." >&2;}
3628
{ (exit 77); exit 77; }; }
3631
ac_exeext=$ac_cv_exeext
3633
# Check that the compiler produces executables we can run. If not, either
3634
# the compiler is broken, or we cross compile.
3635
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3636
$as_echo_n "checking whether the C compiler works... " >&6; }
3637
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3638
# If not cross compiling, check that we can run a simple program.
3639
if test "$cross_compiling" != yes; then
3640
if { ac_try='./$ac_file'
3641
{ (case "(($ac_try" in
3642
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643
*) ac_try_echo=$ac_try;;
3645
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3646
$as_echo "$ac_try_echo") >&5
3647
(eval "$ac_try") 2>&5
3649
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3650
(exit $ac_status); }; }; then
3653
if test "$cross_compiling" = maybe; then
3656
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3657
If you meant to cross compile, use \`--host'.
3658
See \`config.log' for more details." >&5
3659
$as_echo "$as_me: error: cannot run C compiled programs.
3660
If you meant to cross compile, use \`--host'.
3661
See \`config.log' for more details." >&2;}
3662
{ (exit 1); exit 1; }; }
3666
{ $as_echo "$as_me:$LINENO: result: yes" >&5
3667
$as_echo "yes" >&6; }
3669
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3670
ac_clean_files=$ac_clean_files_save
3671
# Check that the compiler produces executables we can run. If not, either
3672
# the compiler is broken, or we cross compile.
3673
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3674
$as_echo_n "checking whether we are cross compiling... " >&6; }
3675
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3676
$as_echo "$cross_compiling" >&6; }
3678
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3679
$as_echo_n "checking for suffix of executables... " >&6; }
3680
if { (ac_try="$ac_link"
3682
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3683
*) ac_try_echo=$ac_try;;
3685
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3686
$as_echo "$ac_try_echo") >&5
3687
(eval "$ac_link") 2>&5
3689
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690
(exit $ac_status); }; then
3691
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3692
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3693
# work properly (i.e., refer to `conftest.exe'), while it won't with
3695
for ac_file in conftest.exe conftest conftest.*; do
3696
test -f "$ac_file" || continue
3698
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3699
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3705
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3706
See \`config.log' for more details." >&5
3707
$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3708
See \`config.log' for more details." >&2;}
3709
{ (exit 1); exit 1; }; }
3712
rm -f conftest$ac_cv_exeext
3713
{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3714
$as_echo "$ac_cv_exeext" >&6; }
3716
rm -f conftest.$ac_ext
3717
EXEEXT=$ac_cv_exeext
3719
{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3720
$as_echo_n "checking for suffix of object files... " >&6; }
3721
if test "${ac_cv_objext+set}" = set; then
3722
$as_echo_n "(cached) " >&6
3724
cat >conftest.$ac_ext <<_ACEOF
3727
cat confdefs.h >>conftest.$ac_ext
3728
cat >>conftest.$ac_ext <<_ACEOF
3729
/* end confdefs.h. */
3739
rm -f conftest.o conftest.obj
3740
if { (ac_try="$ac_compile"
3742
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743
*) ac_try_echo=$ac_try;;
3745
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3746
$as_echo "$ac_try_echo") >&5
3747
(eval "$ac_compile") 2>&5
3749
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750
(exit $ac_status); }; then
3751
for ac_file in conftest.o conftest.obj conftest.*; do
3752
test -f "$ac_file" || continue;
3754
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3755
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3760
$as_echo "$as_me: failed program was:" >&5
3761
sed 's/^/| /' conftest.$ac_ext >&5
3763
{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3764
See \`config.log' for more details." >&5
3765
$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3766
See \`config.log' for more details." >&2;}
3767
{ (exit 1); exit 1; }; }
3770
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3772
{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3773
$as_echo "$ac_cv_objext" >&6; }
3774
OBJEXT=$ac_cv_objext
3776
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3777
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3778
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3779
$as_echo_n "(cached) " >&6
3781
cat >conftest.$ac_ext <<_ACEOF
3784
cat confdefs.h >>conftest.$ac_ext
3785
cat >>conftest.$ac_ext <<_ACEOF
3786
/* end confdefs.h. */
3799
rm -f conftest.$ac_objext
3800
if { (ac_try="$ac_compile"
3802
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3803
*) ac_try_echo=$ac_try;;
3805
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3806
$as_echo "$ac_try_echo") >&5
3807
(eval "$ac_compile") 2>conftest.er1
3809
grep -v '^ *+' conftest.er1 >conftest.err
3811
cat conftest.err >&5
3812
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813
(exit $ac_status); } && {
3814
test -z "$ac_c_werror_flag" ||
3815
test ! -s conftest.err
3816
} && test -s conftest.$ac_objext; then
3819
$as_echo "$as_me: failed program was:" >&5
3820
sed 's/^/| /' conftest.$ac_ext >&5
3825
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3826
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3829
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3830
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3831
if test $ac_compiler_gnu = yes; then
3836
ac_test_CFLAGS=${CFLAGS+set}
3837
ac_save_CFLAGS=$CFLAGS
3838
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3839
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3840
if test "${ac_cv_prog_cc_g+set}" = set; then
3841
$as_echo_n "(cached) " >&6
3843
ac_save_c_werror_flag=$ac_c_werror_flag
3844
ac_c_werror_flag=yes
3847
cat >conftest.$ac_ext <<_ACEOF
3850
cat confdefs.h >>conftest.$ac_ext
3851
cat >>conftest.$ac_ext <<_ACEOF
3852
/* end confdefs.h. */
3862
rm -f conftest.$ac_objext
3863
if { (ac_try="$ac_compile"
3865
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3866
*) ac_try_echo=$ac_try;;
3868
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3869
$as_echo "$ac_try_echo") >&5
3870
(eval "$ac_compile") 2>conftest.er1
3872
grep -v '^ *+' conftest.er1 >conftest.err
3874
cat conftest.err >&5
3875
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3876
(exit $ac_status); } && {
3877
test -z "$ac_c_werror_flag" ||
3878
test ! -s conftest.err
3879
} && test -s conftest.$ac_objext; then
3882
$as_echo "$as_me: failed program was:" >&5
3883
sed 's/^/| /' conftest.$ac_ext >&5
3886
cat >conftest.$ac_ext <<_ACEOF
3889
cat confdefs.h >>conftest.$ac_ext
3890
cat >>conftest.$ac_ext <<_ACEOF
3891
/* end confdefs.h. */
3901
rm -f conftest.$ac_objext
3902
if { (ac_try="$ac_compile"
3904
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905
*) ac_try_echo=$ac_try;;
3907
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3908
$as_echo "$ac_try_echo") >&5
3909
(eval "$ac_compile") 2>conftest.er1
3911
grep -v '^ *+' conftest.er1 >conftest.err
3913
cat conftest.err >&5
3914
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915
(exit $ac_status); } && {
3916
test -z "$ac_c_werror_flag" ||
3917
test ! -s conftest.err
3918
} && test -s conftest.$ac_objext; then
3921
$as_echo "$as_me: failed program was:" >&5
3922
sed 's/^/| /' conftest.$ac_ext >&5
3924
ac_c_werror_flag=$ac_save_c_werror_flag
3926
cat >conftest.$ac_ext <<_ACEOF
3929
cat confdefs.h >>conftest.$ac_ext
3930
cat >>conftest.$ac_ext <<_ACEOF
3931
/* end confdefs.h. */
3941
rm -f conftest.$ac_objext
3942
if { (ac_try="$ac_compile"
3944
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3945
*) ac_try_echo=$ac_try;;
3947
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3948
$as_echo "$ac_try_echo") >&5
3949
(eval "$ac_compile") 2>conftest.er1
3951
grep -v '^ *+' conftest.er1 >conftest.err
3953
cat conftest.err >&5
3954
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3955
(exit $ac_status); } && {
3956
test -z "$ac_c_werror_flag" ||
3957
test ! -s conftest.err
3958
} && test -s conftest.$ac_objext; then
3961
$as_echo "$as_me: failed program was:" >&5
3962
sed 's/^/| /' conftest.$ac_ext >&5
3967
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3970
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3973
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3974
ac_c_werror_flag=$ac_save_c_werror_flag
3976
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3977
$as_echo "$ac_cv_prog_cc_g" >&6; }
3978
if test "$ac_test_CFLAGS" = set; then
3979
CFLAGS=$ac_save_CFLAGS
3980
elif test $ac_cv_prog_cc_g = yes; then
3981
if test "$GCC" = yes; then
3987
if test "$GCC" = yes; then
3993
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3994
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3995
if test "${ac_cv_prog_cc_c89+set}" = set; then
3996
$as_echo_n "(cached) " >&6
3998
ac_cv_prog_cc_c89=no
4000
cat >conftest.$ac_ext <<_ACEOF
4003
cat confdefs.h >>conftest.$ac_ext
4004
cat >>conftest.$ac_ext <<_ACEOF
4005
/* end confdefs.h. */
4008
#include <sys/types.h>
4009
#include <sys/stat.h>
4010
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4011
struct buf { int x; };
4012
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4013
static char *e (p, i)
4019
static char *f (char * (*g) (char **, int), char **p, ...)
4024
s = g (p, va_arg (v,int));
4029
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4030
function prototypes and stuff, but not '\xHH' hex character constants.
4031
These don't provoke an error unfortunately, instead are silently treated
4032
as 'x'. The following induces an error, until -std is added to get
4033
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4034
array size at least. It's necessary to write '\x00'==0 to get something
4035
that's true only with -std. */
4036
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4038
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4039
inside strings and character constants. */
4041
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4043
int test (int i, double x);
4044
struct s1 {int (*f) (int a);};
4045
struct s2 {int (*f) (double a);};
4046
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4052
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4057
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4058
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4060
CC="$ac_save_CC $ac_arg"
4061
rm -f conftest.$ac_objext
4062
if { (ac_try="$ac_compile"
4064
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065
*) ac_try_echo=$ac_try;;
4067
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4068
$as_echo "$ac_try_echo") >&5
4069
(eval "$ac_compile") 2>conftest.er1
4071
grep -v '^ *+' conftest.er1 >conftest.err
4073
cat conftest.err >&5
4074
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4075
(exit $ac_status); } && {
4076
test -z "$ac_c_werror_flag" ||
4077
test ! -s conftest.err
4078
} && test -s conftest.$ac_objext; then
4079
ac_cv_prog_cc_c89=$ac_arg
4081
$as_echo "$as_me: failed program was:" >&5
4082
sed 's/^/| /' conftest.$ac_ext >&5
4087
rm -f core conftest.err conftest.$ac_objext
4088
test "x$ac_cv_prog_cc_c89" != "xno" && break
4090
rm -f conftest.$ac_ext
4095
case "x$ac_cv_prog_cc_c89" in
4097
{ $as_echo "$as_me:$LINENO: result: none needed" >&5
4098
$as_echo "none needed" >&6; } ;;
4100
{ $as_echo "$as_me:$LINENO: result: unsupported" >&5
4101
$as_echo "unsupported" >&6; } ;;
4103
CC="$CC $ac_cv_prog_cc_c89"
4104
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4105
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4110
ac_cpp='$CPP $CPPFLAGS'
4111
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4112
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4113
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4115
depcc="$CC" am_compiler_list=
4117
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4118
$as_echo_n "checking dependency style of $depcc... " >&6; }
4119
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4120
$as_echo_n "(cached) " >&6
4122
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4123
# We make a subdir and do the tests there. Otherwise we can end up
4124
# making bogus files that we don't know about and never remove. For
4125
# instance it was reported that on HP-UX the gcc test will end up
4126
# making a dummy file named `D' -- because `-MD' means `put the output
4129
# Copy depcomp to subdir because otherwise we won't find it if we're
4130
# using a relative directory.
4131
cp "$am_depcomp" conftest.dir
4133
# We will build objects and dependencies in a subdirectory because
4134
# it helps to detect inapplicable dependency modes. For instance
4135
# both Tru64's cc and ICC support -MD to output dependencies as a
4136
# side effect of compilation, but ICC will put the dependencies in
4137
# the current directory while Tru64 will put them in the object
4141
am_cv_CC_dependencies_compiler_type=none
4142
if test "$am_compiler_list" = ""; then
4143
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4145
for depmode in $am_compiler_list; do
4146
# Setup a source with many dependencies, because some compilers
4147
# like to wrap large dependency lists on column 80 (with \), and
4148
# we should not choose a depcomp mode which is confused by this.
4150
# We need to recreate these files for each test, as the compiler may
4151
# overwrite some of them when testing with obscure command lines.
4152
# This happens at least with the AIX C compiler.
4154
for i in 1 2 3 4 5 6; do
4155
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4158
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4162
# after this tag, mechanisms are not by side-effect, so they'll
4163
# only be used when explicitly requested
4164
if test "x$enable_dependency_tracking" = xyes; then
4172
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4173
# mode. It turns out that the SunPro C++ compiler does not properly
4174
# handle `-M -o', and we need to detect this.
4175
if depmode=$depmode \
4176
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4177
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4178
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4179
>/dev/null 2>conftest.err &&
4180
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4181
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4182
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4183
# icc doesn't choke on unknown options, it will just issue warnings
4184
# (even with -Werror). So we grep stderr for any message
4185
# that says an option was ignored.
4186
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4187
am_cv_CC_dependencies_compiler_type=$depmode
4196
am_cv_CC_dependencies_compiler_type=none
4200
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4201
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4202
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4207
test "x$enable_dependency_tracking" != xno \
4208
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4210
am__fastdepCC_FALSE='#'
4212
am__fastdepCC_TRUE='#'
4213
am__fastdepCC_FALSE=
4219
ac_cpp='$CPP $CPPFLAGS'
4220
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4221
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4222
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4223
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4224
$as_echo_n "checking how to run the C preprocessor... " >&6; }
4225
# On Suns, sometimes $CPP names a directory.
4226
if test -n "$CPP" && test -d "$CPP"; then
4229
if test -z "$CPP"; then
4230
if test "${ac_cv_prog_CPP+set}" = set; then
4231
$as_echo_n "(cached) " >&6
4233
# Double quotes because CPP needs to be expanded
4234
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4237
for ac_c_preproc_warn_flag in '' yes
4239
# Use a header file that comes with gcc, so configuring glibc
4240
# with a fresh cross-compiler works.
4241
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4242
# <limits.h> exists even on freestanding compilers.
4243
# On the NeXT, cc -E runs the code through the compiler's parser,
4244
# not just through cpp. "Syntax error" is here to catch this case.
4245
cat >conftest.$ac_ext <<_ACEOF
4248
cat confdefs.h >>conftest.$ac_ext
4249
cat >>conftest.$ac_ext <<_ACEOF
4250
/* end confdefs.h. */
4252
# include <limits.h>
4254
# include <assert.h>
4258
if { (ac_try="$ac_cpp conftest.$ac_ext"
4260
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261
*) ac_try_echo=$ac_try;;
4263
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4264
$as_echo "$ac_try_echo") >&5
4265
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4267
grep -v '^ *+' conftest.er1 >conftest.err
4269
cat conftest.err >&5
4270
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271
(exit $ac_status); } >/dev/null && {
4272
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4273
test ! -s conftest.err
4277
$as_echo "$as_me: failed program was:" >&5
4278
sed 's/^/| /' conftest.$ac_ext >&5
4280
# Broken: fails on valid input.
4284
rm -f conftest.err conftest.$ac_ext
4286
# OK, works on sane cases. Now check whether nonexistent headers
4287
# can be detected and how.
4288
cat >conftest.$ac_ext <<_ACEOF
4291
cat confdefs.h >>conftest.$ac_ext
4292
cat >>conftest.$ac_ext <<_ACEOF
4293
/* end confdefs.h. */
4294
#include <ac_nonexistent.h>
4296
if { (ac_try="$ac_cpp conftest.$ac_ext"
4298
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4299
*) ac_try_echo=$ac_try;;
4301
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4302
$as_echo "$ac_try_echo") >&5
4303
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4305
grep -v '^ *+' conftest.er1 >conftest.err
4307
cat conftest.err >&5
4308
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4309
(exit $ac_status); } >/dev/null && {
4310
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4311
test ! -s conftest.err
4313
# Broken: success on invalid input.
4316
$as_echo "$as_me: failed program was:" >&5
4317
sed 's/^/| /' conftest.$ac_ext >&5
4319
# Passes both tests.
4324
rm -f conftest.err conftest.$ac_ext
4327
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4328
rm -f conftest.err conftest.$ac_ext
4329
if $ac_preproc_ok; then
4341
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4342
$as_echo "$CPP" >&6; }
4344
for ac_c_preproc_warn_flag in '' yes
4346
# Use a header file that comes with gcc, so configuring glibc
4347
# with a fresh cross-compiler works.
4348
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4349
# <limits.h> exists even on freestanding compilers.
4350
# On the NeXT, cc -E runs the code through the compiler's parser,
4351
# not just through cpp. "Syntax error" is here to catch this case.
4352
cat >conftest.$ac_ext <<_ACEOF
4355
cat confdefs.h >>conftest.$ac_ext
4356
cat >>conftest.$ac_ext <<_ACEOF
4357
/* end confdefs.h. */
4359
# include <limits.h>
4361
# include <assert.h>
4365
if { (ac_try="$ac_cpp conftest.$ac_ext"
4367
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368
*) ac_try_echo=$ac_try;;
4370
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4371
$as_echo "$ac_try_echo") >&5
4372
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4374
grep -v '^ *+' conftest.er1 >conftest.err
4376
cat conftest.err >&5
4377
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378
(exit $ac_status); } >/dev/null && {
4379
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4380
test ! -s conftest.err
4384
$as_echo "$as_me: failed program was:" >&5
4385
sed 's/^/| /' conftest.$ac_ext >&5
4387
# Broken: fails on valid input.
4391
rm -f conftest.err conftest.$ac_ext
4393
# OK, works on sane cases. Now check whether nonexistent headers
4394
# can be detected and how.
4395
cat >conftest.$ac_ext <<_ACEOF
4398
cat confdefs.h >>conftest.$ac_ext
4399
cat >>conftest.$ac_ext <<_ACEOF
4400
/* end confdefs.h. */
4401
#include <ac_nonexistent.h>
4403
if { (ac_try="$ac_cpp conftest.$ac_ext"
4405
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4406
*) ac_try_echo=$ac_try;;
4408
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4409
$as_echo "$ac_try_echo") >&5
4410
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4412
grep -v '^ *+' conftest.er1 >conftest.err
4414
cat conftest.err >&5
4415
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416
(exit $ac_status); } >/dev/null && {
4417
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4418
test ! -s conftest.err
4420
# Broken: success on invalid input.
4423
$as_echo "$as_me: failed program was:" >&5
4424
sed 's/^/| /' conftest.$ac_ext >&5
4426
# Passes both tests.
4431
rm -f conftest.err conftest.$ac_ext
4434
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4435
rm -f conftest.err conftest.$ac_ext
4436
if $ac_preproc_ok; then
4439
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4440
See \`config.log' for more details." >&5
4441
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4442
See \`config.log' for more details." >&2;}
4443
{ (exit 1); exit 1; }; }
4447
ac_cpp='$CPP $CPPFLAGS'
4448
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4449
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4450
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4453
if test "$GCC" = "yes"; then
4454
if test "$kde_use_debug_code" != "no"; then
4455
if test $kde_use_debug_code = "full"; then
4456
CFLAGS="-g3 -fno-inline $CFLAGS"
4458
CFLAGS="-g -O2 -fno-schedule-insns -fno-inline $CFLAGS"
4461
CFLAGS="-O2 $CFLAGS"
4465
if test "$kde_use_debug_define" = "yes"; then
4466
CFLAGS="-DNDEBUG $CFLAGS"
4471
*-*-sysv4.2uw*) CFLAGS="-D_UNIXWARE $CFLAGS";;
4472
*-*-sysv5uw7*) CFLAGS="-D_UNIXWARE7 $CFLAGS";;
4475
if test -z "$LDFLAGS" && test "$kde_use_debug_code" = "no" && test "$GCC" = "yes"; then
4479
CXXFLAGS=" $CXXFLAGS"
4482
ac_cpp='$CXXCPP $CPPFLAGS'
4483
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4484
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4485
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4486
if test -z "$CXX"; then
4487
if test -n "$CCC"; then
4490
if test -n "$ac_tool_prefix"; then
4491
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4493
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4494
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4495
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4496
$as_echo_n "checking for $ac_word... " >&6; }
4497
if test "${ac_cv_prog_CXX+set}" = set; then
4498
$as_echo_n "(cached) " >&6
4500
if test -n "$CXX"; then
4501
ac_cv_prog_CXX="$CXX" # Let the user override the test.
4503
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507
test -z "$as_dir" && as_dir=.
4508
for ac_exec_ext in '' $ac_executable_extensions; do
4509
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4510
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4511
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4521
if test -n "$CXX"; then
4522
{ $as_echo "$as_me:$LINENO: result: $CXX" >&5
4523
$as_echo "$CXX" >&6; }
4525
{ $as_echo "$as_me:$LINENO: result: no" >&5
4526
$as_echo "no" >&6; }
4530
test -n "$CXX" && break
4533
if test -z "$CXX"; then
4535
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4537
# Extract the first word of "$ac_prog", so it can be a program name with args.
4538
set dummy $ac_prog; ac_word=$2
4539
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4540
$as_echo_n "checking for $ac_word... " >&6; }
4541
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4542
$as_echo_n "(cached) " >&6
4544
if test -n "$ac_ct_CXX"; then
4545
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4547
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551
test -z "$as_dir" && as_dir=.
4552
for ac_exec_ext in '' $ac_executable_extensions; do
4553
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4554
ac_cv_prog_ac_ct_CXX="$ac_prog"
4555
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4564
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4565
if test -n "$ac_ct_CXX"; then
4566
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4567
$as_echo "$ac_ct_CXX" >&6; }
4569
{ $as_echo "$as_me:$LINENO: result: no" >&5
4570
$as_echo "no" >&6; }
4574
test -n "$ac_ct_CXX" && break
4577
if test "x$ac_ct_CXX" = x; then
4580
case $cross_compiling:$ac_tool_warned in
4582
{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4583
whose name does not start with the host triplet. If you think this
4584
configuration is useful to you, please write to autoconf@gnu.org." >&5
4585
$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4586
whose name does not start with the host triplet. If you think this
4587
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4588
ac_tool_warned=yes ;;
4596
# Provide some information about the compiler.
4597
$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4600
{ (ac_try="$ac_compiler --version >&5"
4602
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4603
*) ac_try_echo=$ac_try;;
4605
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4606
$as_echo "$ac_try_echo") >&5
4607
(eval "$ac_compiler --version >&5") 2>&5
4609
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610
(exit $ac_status); }
4611
{ (ac_try="$ac_compiler -v >&5"
4613
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4614
*) ac_try_echo=$ac_try;;
4616
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4617
$as_echo "$ac_try_echo") >&5
4618
(eval "$ac_compiler -v >&5") 2>&5
4620
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4621
(exit $ac_status); }
4622
{ (ac_try="$ac_compiler -V >&5"
4624
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625
*) ac_try_echo=$ac_try;;
4627
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4628
$as_echo "$ac_try_echo") >&5
4629
(eval "$ac_compiler -V >&5") 2>&5
4631
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632
(exit $ac_status); }
4634
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4635
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4636
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4637
$as_echo_n "(cached) " >&6
4639
cat >conftest.$ac_ext <<_ACEOF
4642
cat confdefs.h >>conftest.$ac_ext
4643
cat >>conftest.$ac_ext <<_ACEOF
4644
/* end confdefs.h. */
4657
rm -f conftest.$ac_objext
4658
if { (ac_try="$ac_compile"
4660
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4661
*) ac_try_echo=$ac_try;;
4663
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4664
$as_echo "$ac_try_echo") >&5
4665
(eval "$ac_compile") 2>conftest.er1
4667
grep -v '^ *+' conftest.er1 >conftest.err
4669
cat conftest.err >&5
4670
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671
(exit $ac_status); } && {
4672
test -z "$ac_cxx_werror_flag" ||
4673
test ! -s conftest.err
4674
} && test -s conftest.$ac_objext; then
4677
$as_echo "$as_me: failed program was:" >&5
4678
sed 's/^/| /' conftest.$ac_ext >&5
4683
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4684
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4687
{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4688
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4689
if test $ac_compiler_gnu = yes; then
4694
ac_test_CXXFLAGS=${CXXFLAGS+set}
4695
ac_save_CXXFLAGS=$CXXFLAGS
4696
{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4697
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4698
if test "${ac_cv_prog_cxx_g+set}" = set; then
4699
$as_echo_n "(cached) " >&6
4701
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4702
ac_cxx_werror_flag=yes
4705
cat >conftest.$ac_ext <<_ACEOF
4708
cat confdefs.h >>conftest.$ac_ext
4709
cat >>conftest.$ac_ext <<_ACEOF
4710
/* end confdefs.h. */
4720
rm -f conftest.$ac_objext
4721
if { (ac_try="$ac_compile"
4723
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4724
*) ac_try_echo=$ac_try;;
4726
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4727
$as_echo "$ac_try_echo") >&5
4728
(eval "$ac_compile") 2>conftest.er1
4730
grep -v '^ *+' conftest.er1 >conftest.err
4732
cat conftest.err >&5
4733
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734
(exit $ac_status); } && {
4735
test -z "$ac_cxx_werror_flag" ||
4736
test ! -s conftest.err
4737
} && test -s conftest.$ac_objext; then
4738
ac_cv_prog_cxx_g=yes
4740
$as_echo "$as_me: failed program was:" >&5
4741
sed 's/^/| /' conftest.$ac_ext >&5
4744
cat >conftest.$ac_ext <<_ACEOF
4747
cat confdefs.h >>conftest.$ac_ext
4748
cat >>conftest.$ac_ext <<_ACEOF
4749
/* end confdefs.h. */
4759
rm -f conftest.$ac_objext
4760
if { (ac_try="$ac_compile"
4762
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4763
*) ac_try_echo=$ac_try;;
4765
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4766
$as_echo "$ac_try_echo") >&5
4767
(eval "$ac_compile") 2>conftest.er1
4769
grep -v '^ *+' conftest.er1 >conftest.err
4771
cat conftest.err >&5
4772
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773
(exit $ac_status); } && {
4774
test -z "$ac_cxx_werror_flag" ||
4775
test ! -s conftest.err
4776
} && test -s conftest.$ac_objext; then
4779
$as_echo "$as_me: failed program was:" >&5
4780
sed 's/^/| /' conftest.$ac_ext >&5
4782
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4784
cat >conftest.$ac_ext <<_ACEOF
4787
cat confdefs.h >>conftest.$ac_ext
4788
cat >>conftest.$ac_ext <<_ACEOF
4789
/* end confdefs.h. */
4799
rm -f conftest.$ac_objext
4800
if { (ac_try="$ac_compile"
4802
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4803
*) ac_try_echo=$ac_try;;
4805
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4806
$as_echo "$ac_try_echo") >&5
4807
(eval "$ac_compile") 2>conftest.er1
4809
grep -v '^ *+' conftest.er1 >conftest.err
4811
cat conftest.err >&5
4812
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813
(exit $ac_status); } && {
4814
test -z "$ac_cxx_werror_flag" ||
4815
test ! -s conftest.err
4816
} && test -s conftest.$ac_objext; then
4817
ac_cv_prog_cxx_g=yes
4819
$as_echo "$as_me: failed program was:" >&5
4820
sed 's/^/| /' conftest.$ac_ext >&5
4825
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4828
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4831
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4832
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4834
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4835
$as_echo "$ac_cv_prog_cxx_g" >&6; }
4836
if test "$ac_test_CXXFLAGS" = set; then
4837
CXXFLAGS=$ac_save_CXXFLAGS
4838
elif test $ac_cv_prog_cxx_g = yes; then
4839
if test "$GXX" = yes; then
4845
if test "$GXX" = yes; then
4852
ac_cpp='$CPP $CPPFLAGS'
4853
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4854
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4855
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4857
depcc="$CXX" am_compiler_list=
4859
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4860
$as_echo_n "checking dependency style of $depcc... " >&6; }
4861
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4862
$as_echo_n "(cached) " >&6
4864
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4865
# We make a subdir and do the tests there. Otherwise we can end up
4866
# making bogus files that we don't know about and never remove. For
4867
# instance it was reported that on HP-UX the gcc test will end up
4868
# making a dummy file named `D' -- because `-MD' means `put the output
4871
# Copy depcomp to subdir because otherwise we won't find it if we're
4872
# using a relative directory.
4873
cp "$am_depcomp" conftest.dir
4875
# We will build objects and dependencies in a subdirectory because
4876
# it helps to detect inapplicable dependency modes. For instance
4877
# both Tru64's cc and ICC support -MD to output dependencies as a
4878
# side effect of compilation, but ICC will put the dependencies in
4879
# the current directory while Tru64 will put them in the object
4883
am_cv_CXX_dependencies_compiler_type=none
4884
if test "$am_compiler_list" = ""; then
4885
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4887
for depmode in $am_compiler_list; do
4888
# Setup a source with many dependencies, because some compilers
4889
# like to wrap large dependency lists on column 80 (with \), and
4890
# we should not choose a depcomp mode which is confused by this.
4892
# We need to recreate these files for each test, as the compiler may
4893
# overwrite some of them when testing with obscure command lines.
4894
# This happens at least with the AIX C compiler.
4896
for i in 1 2 3 4 5 6; do
4897
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4900
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4904
# after this tag, mechanisms are not by side-effect, so they'll
4905
# only be used when explicitly requested
4906
if test "x$enable_dependency_tracking" = xyes; then
4914
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4915
# mode. It turns out that the SunPro C++ compiler does not properly
4916
# handle `-M -o', and we need to detect this.
4917
if depmode=$depmode \
4918
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4919
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4920
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4921
>/dev/null 2>conftest.err &&
4922
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4923
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4924
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4925
# icc doesn't choke on unknown options, it will just issue warnings
4926
# (even with -Werror). So we grep stderr for any message
4927
# that says an option was ignored.
4928
if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4929
am_cv_CXX_dependencies_compiler_type=$depmode
4938
am_cv_CXX_dependencies_compiler_type=none
4942
{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4943
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4944
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4949
test "x$enable_dependency_tracking" != xno \
4950
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4951
am__fastdepCXX_TRUE=
4952
am__fastdepCXX_FALSE='#'
4954
am__fastdepCXX_TRUE='#'
4955
am__fastdepCXX_FALSE=
4961
{ $as_echo "$as_me:$LINENO: checking whether $CC is blacklisted" >&5
4962
$as_echo_n "checking whether $CC is blacklisted... " >&6; }
4965
cat >conftest.$ac_ext <<_ACEOF
4968
cat confdefs.h >>conftest.$ac_ext
4969
cat >>conftest.$ac_ext <<_ACEOF
4970
/* end confdefs.h. */
4973
#if __GNUC__ == 4 && __GNUC_MINOR__ == 0 && __GNUC_PATCHLEVEL__ == 0
4986
rm -f conftest.$ac_objext
4987
if { (ac_try="$ac_compile"
4989
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4990
*) ac_try_echo=$ac_try;;
4992
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4993
$as_echo "$ac_try_echo") >&5
4994
(eval "$ac_compile") 2>conftest.er1
4996
grep -v '^ *+' conftest.er1 >conftest.err
4998
cat conftest.err >&5
4999
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000
(exit $ac_status); } && {
5001
test -z "$ac_c_werror_flag" ||
5002
test ! -s conftest.err
5003
} && test -s conftest.$ac_objext; then
5006
$as_echo "$as_me: failed program was:" >&5
5007
sed 's/^/| /' conftest.$ac_ext >&5
5009
kde_bad_compiler=yes
5013
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5015
{ $as_echo "$as_me:$LINENO: result: $kde_bad_compiler" >&5
5016
$as_echo "$kde_bad_compiler" >&6; }
5018
if test "$kde_bad_compiler" = "yes"; then
5019
{ { $as_echo "$as_me:$LINENO: error:
5021
This particular compiler version is blacklisted because it
5022
is known to miscompile KDE. Please use a newer version, or
5023
if that is not yet available, choose an older version.
5025
Please do not report a bug or bother us reporting this
5026
configure error. We know about it, and we introduced
5027
it by intention to avoid untraceable bugs or crashes in KDE.
5030
$as_echo "$as_me: error:
5032
This particular compiler version is blacklisted because it
5033
is known to miscompile KDE. Please use a newer version, or
5034
if that is not yet available, choose an older version.
5036
Please do not report a bug or bother us reporting this
5037
configure error. We know about it, and we introduced
5038
it by intention to avoid untraceable bugs or crashes in KDE.
5041
{ (exit 1); exit 1; }; }
5046
if test "$GXX" = "yes" || test "$CXX" = "KCC"; then
5047
if test "$kde_use_debug_code" != "no"; then
5048
if test "$CXX" = "KCC"; then
5049
CXXFLAGS="+K0 -Wall -pedantic -W -Wpointer-arith -Wwrite-strings $CXXFLAGS"
5051
if test "$kde_use_debug_code" = "full"; then
5052
CXXFLAGS="-g3 -fno-inline $CXXFLAGS"
5054
CXXFLAGS="-g -O2 -fno-schedule-insns -fno-inline $CXXFLAGS"
5058
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports -fno-builtin" >&5
5059
$as_echo_n "checking whether $CXX supports -fno-builtin... " >&6; }
5060
kde_cache=`echo fno-builtin | sed 'y% .=/+-,%____p__%'`
5061
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5062
$as_echo_n "(cached) " >&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'
5077
save_CXXFLAGS="$CXXFLAGS"
5078
CXXFLAGS="$CXXFLAGS -fno-builtin"
5079
cat >conftest.$ac_ext <<_ACEOF
5082
cat confdefs.h >>conftest.$ac_ext
5083
cat >>conftest.$ac_ext <<_ACEOF
5084
/* end confdefs.h. */
5094
rm -f conftest.$ac_objext conftest$ac_exeext
5095
if { (ac_try="$ac_link"
5097
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5098
*) ac_try_echo=$ac_try;;
5100
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5101
$as_echo "$ac_try_echo") >&5
5102
(eval "$ac_link") 2>conftest.er1
5104
grep -v '^ *+' conftest.er1 >conftest.err
5106
cat conftest.err >&5
5107
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108
(exit $ac_status); } && {
5109
test -z "$ac_cxx_werror_flag" ||
5110
test ! -s conftest.err
5111
} && test -s conftest$ac_exeext && {
5112
test "$cross_compiling" = yes ||
5113
$as_test_x conftest$ac_exeext
5115
eval "kde_cv_prog_cxx_$kde_cache=yes"
5117
$as_echo "$as_me: failed program was:" >&5
5118
sed 's/^/| /' conftest.$ac_ext >&5
5123
rm -rf conftest.dSYM
5124
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5125
conftest$ac_exeext conftest.$ac_ext
5126
CXXFLAGS="$save_CXXFLAGS"
5128
ac_cpp='$CPP $CPPFLAGS'
5129
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5130
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5131
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5136
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5137
{ $as_echo "$as_me:$LINENO: result: yes" >&5
5138
$as_echo "yes" >&6; }
5140
CXXFLAGS="-fno-builtin $CXXFLAGS"
5142
{ $as_echo "$as_me:$LINENO: result: no" >&5
5143
$as_echo "no" >&6; }
5150
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports -Woverloaded-virtual" >&5
5151
$as_echo_n "checking whether $CXX supports -Woverloaded-virtual... " >&6; }
5152
kde_cache=`echo Woverloaded-virtual | sed 'y% .=/+-,%____p__%'`
5153
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5154
$as_echo_n "(cached) " >&6
5159
ac_cpp='$CXXCPP $CPPFLAGS'
5160
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5161
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5162
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5164
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5167
save_CXXFLAGS="$CXXFLAGS"
5168
CXXFLAGS="$CXXFLAGS -Woverloaded-virtual"
5169
cat >conftest.$ac_ext <<_ACEOF
5172
cat confdefs.h >>conftest.$ac_ext
5173
cat >>conftest.$ac_ext <<_ACEOF
5174
/* end confdefs.h. */
5184
rm -f conftest.$ac_objext conftest$ac_exeext
5185
if { (ac_try="$ac_link"
5187
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5188
*) ac_try_echo=$ac_try;;
5190
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5191
$as_echo "$ac_try_echo") >&5
5192
(eval "$ac_link") 2>conftest.er1
5194
grep -v '^ *+' conftest.er1 >conftest.err
5196
cat conftest.err >&5
5197
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198
(exit $ac_status); } && {
5199
test -z "$ac_cxx_werror_flag" ||
5200
test ! -s conftest.err
5201
} && test -s conftest$ac_exeext && {
5202
test "$cross_compiling" = yes ||
5203
$as_test_x conftest$ac_exeext
5205
eval "kde_cv_prog_cxx_$kde_cache=yes"
5207
$as_echo "$as_me: failed program was:" >&5
5208
sed 's/^/| /' conftest.$ac_ext >&5
5213
rm -rf conftest.dSYM
5214
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5215
conftest$ac_exeext conftest.$ac_ext
5216
CXXFLAGS="$save_CXXFLAGS"
5218
ac_cpp='$CPP $CPPFLAGS'
5219
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5220
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5221
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5226
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5227
{ $as_echo "$as_me:$LINENO: result: yes" >&5
5228
$as_echo "yes" >&6; }
5230
WOVERLOADED_VIRTUAL="-Woverloaded-virtual"
5232
{ $as_echo "$as_me:$LINENO: result: no" >&5
5233
$as_echo "no" >&6; }
5235
WOVERLOADED_VRITUAL=""
5240
if test "$CXX" = "KCC"; then
5241
CXXFLAGS="+K3 $CXXFLAGS"
5243
CXXFLAGS="-O2 $CXXFLAGS"
5248
if test "$kde_use_debug_define" = "yes"; then
5249
CXXFLAGS="-DNDEBUG -DNO_DEBUG $CXXFLAGS"
5252
if test "$kde_use_profiling" = "yes"; then
5254
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports -pg" >&5
5255
$as_echo_n "checking whether $CXX supports -pg... " >&6; }
5256
kde_cache=`echo pg | sed 'y% .=/+-,%____p__%'`
5257
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5258
$as_echo_n "(cached) " >&6
5263
ac_cpp='$CXXCPP $CPPFLAGS'
5264
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5265
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5266
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5268
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5271
save_CXXFLAGS="$CXXFLAGS"
5272
CXXFLAGS="$CXXFLAGS -pg"
5273
cat >conftest.$ac_ext <<_ACEOF
5276
cat confdefs.h >>conftest.$ac_ext
5277
cat >>conftest.$ac_ext <<_ACEOF
5278
/* end confdefs.h. */
5288
rm -f conftest.$ac_objext conftest$ac_exeext
5289
if { (ac_try="$ac_link"
5291
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5292
*) ac_try_echo=$ac_try;;
5294
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5295
$as_echo "$ac_try_echo") >&5
5296
(eval "$ac_link") 2>conftest.er1
5298
grep -v '^ *+' conftest.er1 >conftest.err
5300
cat conftest.err >&5
5301
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302
(exit $ac_status); } && {
5303
test -z "$ac_cxx_werror_flag" ||
5304
test ! -s conftest.err
5305
} && test -s conftest$ac_exeext && {
5306
test "$cross_compiling" = yes ||
5307
$as_test_x conftest$ac_exeext
5309
eval "kde_cv_prog_cxx_$kde_cache=yes"
5311
$as_echo "$as_me: failed program was:" >&5
5312
sed 's/^/| /' conftest.$ac_ext >&5
5317
rm -rf conftest.dSYM
5318
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5319
conftest$ac_exeext conftest.$ac_ext
5320
CXXFLAGS="$save_CXXFLAGS"
5322
ac_cpp='$CPP $CPPFLAGS'
5323
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5324
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5325
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5330
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5331
{ $as_echo "$as_me:$LINENO: result: yes" >&5
5332
$as_echo "yes" >&6; }
5335
CFLAGS="-pg $CFLAGS"
5336
CXXFLAGS="-pg $CXXFLAGS"
5339
{ $as_echo "$as_me:$LINENO: result: no" >&5
5340
$as_echo "no" >&6; }
5347
if test "$kde_use_warnings" = "yes"; then
5348
if test "$GCC" = "yes"; then
5349
CXXFLAGS="-Wall -W -Wpointer-arith $CXXFLAGS"
5352
CFLAGS="-std=iso9899:1990 -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE $CFLAGS"
5353
CXXFLAGS="-ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wchar-subscripts $CXXFLAGS"
5355
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports -Wmissing-format-attribute" >&5
5356
$as_echo_n "checking whether $CXX supports -Wmissing-format-attribute... " >&6; }
5357
kde_cache=`echo Wmissing-format-attribute | sed 'y% .=/+-,%____p__%'`
5358
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5359
$as_echo_n "(cached) " >&6
5364
ac_cpp='$CXXCPP $CPPFLAGS'
5365
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5366
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5367
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5369
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5372
save_CXXFLAGS="$CXXFLAGS"
5373
CXXFLAGS="$CXXFLAGS -Wmissing-format-attribute"
5374
cat >conftest.$ac_ext <<_ACEOF
5377
cat confdefs.h >>conftest.$ac_ext
5378
cat >>conftest.$ac_ext <<_ACEOF
5379
/* end confdefs.h. */
5389
rm -f conftest.$ac_objext conftest$ac_exeext
5390
if { (ac_try="$ac_link"
5392
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5393
*) ac_try_echo=$ac_try;;
5395
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5396
$as_echo "$ac_try_echo") >&5
5397
(eval "$ac_link") 2>conftest.er1
5399
grep -v '^ *+' conftest.er1 >conftest.err
5401
cat conftest.err >&5
5402
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403
(exit $ac_status); } && {
5404
test -z "$ac_cxx_werror_flag" ||
5405
test ! -s conftest.err
5406
} && test -s conftest$ac_exeext && {
5407
test "$cross_compiling" = yes ||
5408
$as_test_x conftest$ac_exeext
5410
eval "kde_cv_prog_cxx_$kde_cache=yes"
5412
$as_echo "$as_me: failed program was:" >&5
5413
sed 's/^/| /' conftest.$ac_ext >&5
5418
rm -rf conftest.dSYM
5419
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5420
conftest$ac_exeext conftest.$ac_ext
5421
CXXFLAGS="$save_CXXFLAGS"
5423
ac_cpp='$CPP $CPPFLAGS'
5424
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5425
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5426
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5431
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5432
{ $as_echo "$as_me:$LINENO: result: yes" >&5
5433
$as_echo "yes" >&6; }
5435
CXXFLAGS="$CXXFLAGS -Wformat-security -Wmissing-format-attribute"
5437
{ $as_echo "$as_me:$LINENO: result: no" >&5
5438
$as_echo "no" >&6; }
5444
{ $as_echo "$as_me:$LINENO: checking whether $CC supports -Wmissing-format-attribute" >&5
5445
$as_echo_n "checking whether $CC supports -Wmissing-format-attribute... " >&6; }
5446
kde_cache=`echo Wmissing-format-attribute | sed 'y% .=/+-,%____p__%'`
5447
if { as_var=kde_cv_prog_cc_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5448
$as_echo_n "(cached) " >&6
5453
ac_cpp='$CPP $CPPFLAGS'
5454
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5455
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5456
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5458
save_CFLAGS="$CFLAGS"
5459
CFLAGS="$CFLAGS -Wmissing-format-attribute"
5460
cat >conftest.$ac_ext <<_ACEOF
5463
cat confdefs.h >>conftest.$ac_ext
5464
cat >>conftest.$ac_ext <<_ACEOF
5465
/* end confdefs.h. */
5475
rm -f conftest.$ac_objext conftest$ac_exeext
5476
if { (ac_try="$ac_link"
5478
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5479
*) ac_try_echo=$ac_try;;
5481
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5482
$as_echo "$ac_try_echo") >&5
5483
(eval "$ac_link") 2>conftest.er1
5485
grep -v '^ *+' conftest.er1 >conftest.err
5487
cat conftest.err >&5
5488
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489
(exit $ac_status); } && {
5490
test -z "$ac_c_werror_flag" ||
5491
test ! -s conftest.err
5492
} && test -s conftest$ac_exeext && {
5493
test "$cross_compiling" = yes ||
5494
$as_test_x conftest$ac_exeext
5496
eval "kde_cv_prog_cc_$kde_cache=yes"
5498
$as_echo "$as_me: failed program was:" >&5
5499
sed 's/^/| /' conftest.$ac_ext >&5
5504
rm -rf conftest.dSYM
5505
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5506
conftest$ac_exeext conftest.$ac_ext
5507
CFLAGS="$save_CFLAGS"
5509
ac_cpp='$CPP $CPPFLAGS'
5510
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5511
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5512
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5517
if eval "test \"`echo '$kde_cv_prog_cc_'$kde_cache`\" = yes"; then
5518
{ $as_echo "$as_me:$LINENO: result: yes" >&5
5519
$as_echo "yes" >&6; }
5521
CFLAGS="$CFLAGS -Wformat-security -Wmissing-format-attribute"
5523
{ $as_echo "$as_me:$LINENO: result: no" >&5
5524
$as_echo "no" >&6; }
5532
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports -Wundef" >&5
5533
$as_echo_n "checking whether $CXX supports -Wundef... " >&6; }
5534
kde_cache=`echo Wundef | sed 'y% .=/+-,%____p__%'`
5535
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5536
$as_echo_n "(cached) " >&6
5541
ac_cpp='$CXXCPP $CPPFLAGS'
5542
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5543
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5544
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5546
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5549
save_CXXFLAGS="$CXXFLAGS"
5550
CXXFLAGS="$CXXFLAGS -Wundef"
5551
cat >conftest.$ac_ext <<_ACEOF
5554
cat confdefs.h >>conftest.$ac_ext
5555
cat >>conftest.$ac_ext <<_ACEOF
5556
/* end confdefs.h. */
5566
rm -f conftest.$ac_objext conftest$ac_exeext
5567
if { (ac_try="$ac_link"
5569
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5570
*) ac_try_echo=$ac_try;;
5572
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5573
$as_echo "$ac_try_echo") >&5
5574
(eval "$ac_link") 2>conftest.er1
5576
grep -v '^ *+' conftest.er1 >conftest.err
5578
cat conftest.err >&5
5579
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580
(exit $ac_status); } && {
5581
test -z "$ac_cxx_werror_flag" ||
5582
test ! -s conftest.err
5583
} && test -s conftest$ac_exeext && {
5584
test "$cross_compiling" = yes ||
5585
$as_test_x conftest$ac_exeext
5587
eval "kde_cv_prog_cxx_$kde_cache=yes"
5589
$as_echo "$as_me: failed program was:" >&5
5590
sed 's/^/| /' conftest.$ac_ext >&5
5595
rm -rf conftest.dSYM
5596
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5597
conftest$ac_exeext conftest.$ac_ext
5598
CXXFLAGS="$save_CXXFLAGS"
5600
ac_cpp='$CPP $CPPFLAGS'
5601
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5602
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5603
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5608
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5609
{ $as_echo "$as_me:$LINENO: result: yes" >&5
5610
$as_echo "yes" >&6; }
5612
CXXFLAGS="-Wundef $CXXFLAGS"
5614
{ $as_echo "$as_me:$LINENO: result: no" >&5
5615
$as_echo "no" >&6; }
5621
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports -Wno-long-long" >&5
5622
$as_echo_n "checking whether $CXX supports -Wno-long-long... " >&6; }
5623
kde_cache=`echo Wno-long-long | sed 'y% .=/+-,%____p__%'`
5624
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5625
$as_echo_n "(cached) " >&6
5630
ac_cpp='$CXXCPP $CPPFLAGS'
5631
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5632
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5633
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5635
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5638
save_CXXFLAGS="$CXXFLAGS"
5639
CXXFLAGS="$CXXFLAGS -Wno-long-long"
5640
cat >conftest.$ac_ext <<_ACEOF
5643
cat confdefs.h >>conftest.$ac_ext
5644
cat >>conftest.$ac_ext <<_ACEOF
5645
/* end confdefs.h. */
5655
rm -f conftest.$ac_objext conftest$ac_exeext
5656
if { (ac_try="$ac_link"
5658
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5659
*) ac_try_echo=$ac_try;;
5661
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5662
$as_echo "$ac_try_echo") >&5
5663
(eval "$ac_link") 2>conftest.er1
5665
grep -v '^ *+' conftest.er1 >conftest.err
5667
cat conftest.err >&5
5668
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669
(exit $ac_status); } && {
5670
test -z "$ac_cxx_werror_flag" ||
5671
test ! -s conftest.err
5672
} && test -s conftest$ac_exeext && {
5673
test "$cross_compiling" = yes ||
5674
$as_test_x conftest$ac_exeext
5676
eval "kde_cv_prog_cxx_$kde_cache=yes"
5678
$as_echo "$as_me: failed program was:" >&5
5679
sed 's/^/| /' conftest.$ac_ext >&5
5684
rm -rf conftest.dSYM
5685
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5686
conftest$ac_exeext conftest.$ac_ext
5687
CXXFLAGS="$save_CXXFLAGS"
5689
ac_cpp='$CPP $CPPFLAGS'
5690
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5691
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5692
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5697
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5698
{ $as_echo "$as_me:$LINENO: result: yes" >&5
5699
$as_echo "yes" >&6; }
5701
CXXFLAGS="-Wno-long-long $CXXFLAGS"
5703
{ $as_echo "$as_me:$LINENO: result: no" >&5
5704
$as_echo "no" >&6; }
5710
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports -Wno-non-virtual-dtor" >&5
5711
$as_echo_n "checking whether $CXX supports -Wno-non-virtual-dtor... " >&6; }
5712
kde_cache=`echo Wno-non-virtual-dtor | sed 'y% .=/+-,%____p__%'`
5713
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5714
$as_echo_n "(cached) " >&6
5719
ac_cpp='$CXXCPP $CPPFLAGS'
5720
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5721
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5722
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5724
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5727
save_CXXFLAGS="$CXXFLAGS"
5728
CXXFLAGS="$CXXFLAGS -Wno-non-virtual-dtor"
5729
cat >conftest.$ac_ext <<_ACEOF
5732
cat confdefs.h >>conftest.$ac_ext
5733
cat >>conftest.$ac_ext <<_ACEOF
5734
/* end confdefs.h. */
5744
rm -f conftest.$ac_objext conftest$ac_exeext
5745
if { (ac_try="$ac_link"
5747
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5748
*) ac_try_echo=$ac_try;;
5750
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5751
$as_echo "$ac_try_echo") >&5
5752
(eval "$ac_link") 2>conftest.er1
5754
grep -v '^ *+' conftest.er1 >conftest.err
5756
cat conftest.err >&5
5757
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5758
(exit $ac_status); } && {
5759
test -z "$ac_cxx_werror_flag" ||
5760
test ! -s conftest.err
5761
} && test -s conftest$ac_exeext && {
5762
test "$cross_compiling" = yes ||
5763
$as_test_x conftest$ac_exeext
5765
eval "kde_cv_prog_cxx_$kde_cache=yes"
5767
$as_echo "$as_me: failed program was:" >&5
5768
sed 's/^/| /' conftest.$ac_ext >&5
5773
rm -rf conftest.dSYM
5774
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5775
conftest$ac_exeext conftest.$ac_ext
5776
CXXFLAGS="$save_CXXFLAGS"
5778
ac_cpp='$CPP $CPPFLAGS'
5779
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5780
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5781
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5786
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5787
{ $as_echo "$as_me:$LINENO: result: yes" >&5
5788
$as_echo "yes" >&6; }
5790
CXXFLAGS="$CXXFLAGS -Wno-non-virtual-dtor"
5792
{ $as_echo "$as_me:$LINENO: result: no" >&5
5793
$as_echo "no" >&6; }
5801
if test "$GXX" = "yes" && test "$kde_use_strict_options" = "yes"; then
5802
CXXFLAGS="-Wcast-qual -Wshadow -Wcast-align $CXXFLAGS"
5805
# Check whether --enable-pch was given.
5806
if test "${enable_pch+set}" = set; then
5807
enableval=$enable_pch; kde_use_pch=$enableval
5813
HAVE_GCC_VISIBILITY=0
5816
if test "$GXX" = "yes"; then
5817
gcc_no_reorder_blocks=NO
5819
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports -fno-reorder-blocks" >&5
5820
$as_echo_n "checking whether $CXX supports -fno-reorder-blocks... " >&6; }
5821
kde_cache=`echo fno-reorder-blocks | sed 'y% .=/+-,%____p__%'`
5822
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5823
$as_echo_n "(cached) " >&6
5828
ac_cpp='$CXXCPP $CPPFLAGS'
5829
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5830
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5831
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5833
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5836
save_CXXFLAGS="$CXXFLAGS"
5837
CXXFLAGS="$CXXFLAGS -fno-reorder-blocks"
5838
cat >conftest.$ac_ext <<_ACEOF
5841
cat confdefs.h >>conftest.$ac_ext
5842
cat >>conftest.$ac_ext <<_ACEOF
5843
/* end confdefs.h. */
5853
rm -f conftest.$ac_objext conftest$ac_exeext
5854
if { (ac_try="$ac_link"
5856
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5857
*) ac_try_echo=$ac_try;;
5859
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5860
$as_echo "$ac_try_echo") >&5
5861
(eval "$ac_link") 2>conftest.er1
5863
grep -v '^ *+' conftest.er1 >conftest.err
5865
cat conftest.err >&5
5866
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5867
(exit $ac_status); } && {
5868
test -z "$ac_cxx_werror_flag" ||
5869
test ! -s conftest.err
5870
} && test -s conftest$ac_exeext && {
5871
test "$cross_compiling" = yes ||
5872
$as_test_x conftest$ac_exeext
5874
eval "kde_cv_prog_cxx_$kde_cache=yes"
5876
$as_echo "$as_me: failed program was:" >&5
5877
sed 's/^/| /' conftest.$ac_ext >&5
5882
rm -rf conftest.dSYM
5883
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5884
conftest$ac_exeext conftest.$ac_ext
5885
CXXFLAGS="$save_CXXFLAGS"
5887
ac_cpp='$CPP $CPPFLAGS'
5888
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5889
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5890
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5895
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5896
{ $as_echo "$as_me:$LINENO: result: yes" >&5
5897
$as_echo "yes" >&6; }
5899
gcc_no_reorder_blocks=YES
5901
{ $as_echo "$as_me:$LINENO: result: no" >&5
5902
$as_echo "no" >&6; }
5907
if test $kde_use_debug_code != "no" && \
5908
test $kde_use_debug_code != "full" && \
5909
test "YES" = "$gcc_no_reorder_blocks" ; then
5910
CXXFLAGS="$CXXFLAGS -fno-reorder-blocks"
5911
CFLAGS="$CFLAGS -fno-reorder-blocks"
5914
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports -fno-exceptions" >&5
5915
$as_echo_n "checking whether $CXX supports -fno-exceptions... " >&6; }
5916
kde_cache=`echo fno-exceptions | sed 'y% .=/+-,%____p__%'`
5917
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
5918
$as_echo_n "(cached) " >&6
5923
ac_cpp='$CXXCPP $CPPFLAGS'
5924
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5925
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5926
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5928
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5931
save_CXXFLAGS="$CXXFLAGS"
5932
CXXFLAGS="$CXXFLAGS -fno-exceptions"
5933
cat >conftest.$ac_ext <<_ACEOF
5936
cat confdefs.h >>conftest.$ac_ext
5937
cat >>conftest.$ac_ext <<_ACEOF
5938
/* end confdefs.h. */
5948
rm -f conftest.$ac_objext conftest$ac_exeext
5949
if { (ac_try="$ac_link"
5951
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5952
*) ac_try_echo=$ac_try;;
5954
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5955
$as_echo "$ac_try_echo") >&5
5956
(eval "$ac_link") 2>conftest.er1
5958
grep -v '^ *+' conftest.er1 >conftest.err
5960
cat conftest.err >&5
5961
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5962
(exit $ac_status); } && {
5963
test -z "$ac_cxx_werror_flag" ||
5964
test ! -s conftest.err
5965
} && test -s conftest$ac_exeext && {
5966
test "$cross_compiling" = yes ||
5967
$as_test_x conftest$ac_exeext
5969
eval "kde_cv_prog_cxx_$kde_cache=yes"
5971
$as_echo "$as_me: failed program was:" >&5
5972
sed 's/^/| /' conftest.$ac_ext >&5
5977
rm -rf conftest.dSYM
5978
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5979
conftest$ac_exeext conftest.$ac_ext
5980
CXXFLAGS="$save_CXXFLAGS"
5982
ac_cpp='$CPP $CPPFLAGS'
5983
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5984
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5985
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5990
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
5991
{ $as_echo "$as_me:$LINENO: result: yes" >&5
5992
$as_echo "yes" >&6; }
5994
CXXFLAGS="$CXXFLAGS -fno-exceptions"
5996
{ $as_echo "$as_me:$LINENO: result: no" >&5
5997
$as_echo "no" >&6; }
6003
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports -fno-check-new" >&5
6004
$as_echo_n "checking whether $CXX supports -fno-check-new... " >&6; }
6005
kde_cache=`echo fno-check-new | sed 'y% .=/+-,%____p__%'`
6006
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6007
$as_echo_n "(cached) " >&6
6012
ac_cpp='$CXXCPP $CPPFLAGS'
6013
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6014
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6015
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6017
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6020
save_CXXFLAGS="$CXXFLAGS"
6021
CXXFLAGS="$CXXFLAGS -fno-check-new"
6022
cat >conftest.$ac_ext <<_ACEOF
6025
cat confdefs.h >>conftest.$ac_ext
6026
cat >>conftest.$ac_ext <<_ACEOF
6027
/* end confdefs.h. */
6037
rm -f conftest.$ac_objext conftest$ac_exeext
6038
if { (ac_try="$ac_link"
6040
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6041
*) ac_try_echo=$ac_try;;
6043
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6044
$as_echo "$ac_try_echo") >&5
6045
(eval "$ac_link") 2>conftest.er1
6047
grep -v '^ *+' conftest.er1 >conftest.err
6049
cat conftest.err >&5
6050
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6051
(exit $ac_status); } && {
6052
test -z "$ac_cxx_werror_flag" ||
6053
test ! -s conftest.err
6054
} && test -s conftest$ac_exeext && {
6055
test "$cross_compiling" = yes ||
6056
$as_test_x conftest$ac_exeext
6058
eval "kde_cv_prog_cxx_$kde_cache=yes"
6060
$as_echo "$as_me: failed program was:" >&5
6061
sed 's/^/| /' conftest.$ac_ext >&5
6066
rm -rf conftest.dSYM
6067
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6068
conftest$ac_exeext conftest.$ac_ext
6069
CXXFLAGS="$save_CXXFLAGS"
6071
ac_cpp='$CPP $CPPFLAGS'
6072
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6073
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6074
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6079
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6080
{ $as_echo "$as_me:$LINENO: result: yes" >&5
6081
$as_echo "yes" >&6; }
6083
CXXFLAGS="$CXXFLAGS -fno-check-new"
6085
{ $as_echo "$as_me:$LINENO: result: no" >&5
6086
$as_echo "no" >&6; }
6092
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports -fno-common" >&5
6093
$as_echo_n "checking whether $CXX supports -fno-common... " >&6; }
6094
kde_cache=`echo fno-common | sed 'y% .=/+-,%____p__%'`
6095
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6096
$as_echo_n "(cached) " >&6
6101
ac_cpp='$CXXCPP $CPPFLAGS'
6102
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6103
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6104
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6106
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6109
save_CXXFLAGS="$CXXFLAGS"
6110
CXXFLAGS="$CXXFLAGS -fno-common"
6111
cat >conftest.$ac_ext <<_ACEOF
6114
cat confdefs.h >>conftest.$ac_ext
6115
cat >>conftest.$ac_ext <<_ACEOF
6116
/* end confdefs.h. */
6126
rm -f conftest.$ac_objext conftest$ac_exeext
6127
if { (ac_try="$ac_link"
6129
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6130
*) ac_try_echo=$ac_try;;
6132
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6133
$as_echo "$ac_try_echo") >&5
6134
(eval "$ac_link") 2>conftest.er1
6136
grep -v '^ *+' conftest.er1 >conftest.err
6138
cat conftest.err >&5
6139
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140
(exit $ac_status); } && {
6141
test -z "$ac_cxx_werror_flag" ||
6142
test ! -s conftest.err
6143
} && test -s conftest$ac_exeext && {
6144
test "$cross_compiling" = yes ||
6145
$as_test_x conftest$ac_exeext
6147
eval "kde_cv_prog_cxx_$kde_cache=yes"
6149
$as_echo "$as_me: failed program was:" >&5
6150
sed 's/^/| /' conftest.$ac_ext >&5
6155
rm -rf conftest.dSYM
6156
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6157
conftest$ac_exeext conftest.$ac_ext
6158
CXXFLAGS="$save_CXXFLAGS"
6160
ac_cpp='$CPP $CPPFLAGS'
6161
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6162
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6163
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6168
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6169
{ $as_echo "$as_me:$LINENO: result: yes" >&5
6170
$as_echo "yes" >&6; }
6172
CXXFLAGS="$CXXFLAGS -fno-common"
6174
{ $as_echo "$as_me:$LINENO: result: no" >&5
6175
$as_echo "no" >&6; }
6181
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports -fexceptions" >&5
6182
$as_echo_n "checking whether $CXX supports -fexceptions... " >&6; }
6183
kde_cache=`echo fexceptions | sed 'y% .=/+-,%____p__%'`
6184
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6185
$as_echo_n "(cached) " >&6
6190
ac_cpp='$CXXCPP $CPPFLAGS'
6191
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6192
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6193
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6195
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6198
save_CXXFLAGS="$CXXFLAGS"
6199
CXXFLAGS="$CXXFLAGS -fexceptions"
6200
cat >conftest.$ac_ext <<_ACEOF
6203
cat confdefs.h >>conftest.$ac_ext
6204
cat >>conftest.$ac_ext <<_ACEOF
6205
/* end confdefs.h. */
6215
rm -f conftest.$ac_objext conftest$ac_exeext
6216
if { (ac_try="$ac_link"
6218
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6219
*) ac_try_echo=$ac_try;;
6221
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6222
$as_echo "$ac_try_echo") >&5
6223
(eval "$ac_link") 2>conftest.er1
6225
grep -v '^ *+' conftest.er1 >conftest.err
6227
cat conftest.err >&5
6228
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6229
(exit $ac_status); } && {
6230
test -z "$ac_cxx_werror_flag" ||
6231
test ! -s conftest.err
6232
} && test -s conftest$ac_exeext && {
6233
test "$cross_compiling" = yes ||
6234
$as_test_x conftest$ac_exeext
6236
eval "kde_cv_prog_cxx_$kde_cache=yes"
6238
$as_echo "$as_me: failed program was:" >&5
6239
sed 's/^/| /' conftest.$ac_ext >&5
6244
rm -rf conftest.dSYM
6245
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6246
conftest$ac_exeext conftest.$ac_ext
6247
CXXFLAGS="$save_CXXFLAGS"
6249
ac_cpp='$CPP $CPPFLAGS'
6250
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6251
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6252
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6257
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6258
{ $as_echo "$as_me:$LINENO: result: yes" >&5
6259
$as_echo "yes" >&6; }
6261
USE_EXCEPTIONS="-fexceptions"
6263
{ $as_echo "$as_me:$LINENO: result: no" >&5
6264
$as_echo "no" >&6; }
6269
ENABLE_PERMISSIVE_FLAG="-fpermissive"
6271
if test "$kde_use_pch" = "yes"; then
6272
{ $as_echo "$as_me:$LINENO: checking whether gcc supports precompiling c header files" >&5
6273
$as_echo_n "checking whether gcc supports precompiling c header files... " >&6; }
6275
if $CC -x c-header conftest.h >/dev/null 2>/dev/null; then
6276
kde_gcc_supports_pch=yes
6277
{ $as_echo "$as_me:$LINENO: result: yes" >&5
6278
$as_echo "yes" >&6; }
6280
kde_gcc_supports_pch=no
6281
{ $as_echo "$as_me:$LINENO: result: no" >&5
6282
$as_echo "no" >&6; }
6284
if test "$kde_gcc_supports_pch" = "yes"; then
6285
{ $as_echo "$as_me:$LINENO: checking whether gcc supports precompiling c++ header files" >&5
6286
$as_echo_n "checking whether gcc supports precompiling c++ header files... " >&6; }
6287
if $CXX -x c++-header conftest.h >/dev/null 2>/dev/null; then
6288
kde_gcc_supports_pch=yes
6289
{ $as_echo "$as_me:$LINENO: result: yes" >&5
6290
$as_echo "yes" >&6; }
6292
kde_gcc_supports_pch=no
6293
{ $as_echo "$as_me:$LINENO: result: no" >&5
6294
$as_echo "no" >&6; }
6297
rm -f conftest.h conftest.h.gch
6301
{ $as_echo "$as_me:$LINENO: checking whether system headers can cope with -O2 -fno-inline" >&5
6302
$as_echo_n "checking whether system headers can cope with -O2 -fno-inline... " >&6; }
6303
if test "${kde_cv_opt_noinline_match+set}" = set; then
6304
$as_echo_n "(cached) " >&6
6307
kde_cv_opt_noinline_match=irrelevant
6308
if echo "$CFLAGS" | grep -e -O2 >/dev/null 2>/dev/null \
6309
&& echo "$CFLAGS" | grep -e -fno-inline >/dev/null 2>/dev/null ; then
6311
ac_cflags_save="$CFLAGS"
6312
CFLAGS="$CFLAGS -D_USE_GNU"
6314
cat >conftest.$ac_ext <<_ACEOF
6317
cat confdefs.h >>conftest.$ac_ext
6318
cat >>conftest.$ac_ext <<_ACEOF
6319
/* end confdefs.h. */
6326
const char *pt, *et;
6327
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 , ";," )); }) ;
6333
rm -f conftest.$ac_objext conftest$ac_exeext
6334
if { (ac_try="$ac_link"
6336
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6337
*) ac_try_echo=$ac_try;;
6339
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6340
$as_echo "$ac_try_echo") >&5
6341
(eval "$ac_link") 2>conftest.er1
6343
grep -v '^ *+' conftest.er1 >conftest.err
6345
cat conftest.err >&5
6346
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347
(exit $ac_status); } && {
6348
test -z "$ac_c_werror_flag" ||
6349
test ! -s conftest.err
6350
} && test -s conftest$ac_exeext && {
6351
test "$cross_compiling" = yes ||
6352
$as_test_x conftest$ac_exeext
6354
kde_cv_opt_noinline_match=yes
6356
$as_echo "$as_me: failed program was:" >&5
6357
sed 's/^/| /' conftest.$ac_ext >&5
6359
kde_cv_opt_noinline_match=no
6363
rm -rf conftest.dSYM
6364
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6365
conftest$ac_exeext conftest.$ac_ext
6367
CFLAGS="$ac_cflags_save"
6371
{ $as_echo "$as_me:$LINENO: result: $kde_cv_opt_noinline_match" >&5
6372
$as_echo "$kde_cv_opt_noinline_match" >&6; }
6374
if test "x$kde_cv_opt_noinline_match" = "xno" ; then
6375
CFLAGS="`echo "$CFLAGS" | sed "s/ -fno-inline//"`"
6380
if test "$kde_use_pch" = "yes" && test "$kde_gcc_supports_pch" = "yes"; then
6381
unsermake_enable_pch_TRUE=
6382
unsermake_enable_pch_FALSE='#'
6384
unsermake_enable_pch_TRUE='#'
6385
unsermake_enable_pch_FALSE=
6388
if test "$CXX" = "KCC"; then
6390
if test "$kde_use_pch" = "yes"; then
6392
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports --pch" >&5
6393
$as_echo_n "checking whether $CXX supports --pch... " >&6; }
6394
kde_cache=`echo -pch | sed 'y% .=/+-,%____p__%'`
6395
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6396
$as_echo_n "(cached) " >&6
6401
ac_cpp='$CXXCPP $CPPFLAGS'
6402
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6403
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6404
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6406
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6409
save_CXXFLAGS="$CXXFLAGS"
6410
CXXFLAGS="$CXXFLAGS --pch"
6411
cat >conftest.$ac_ext <<_ACEOF
6414
cat confdefs.h >>conftest.$ac_ext
6415
cat >>conftest.$ac_ext <<_ACEOF
6416
/* end confdefs.h. */
6426
rm -f conftest.$ac_objext conftest$ac_exeext
6427
if { (ac_try="$ac_link"
6429
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6430
*) ac_try_echo=$ac_try;;
6432
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6433
$as_echo "$ac_try_echo") >&5
6434
(eval "$ac_link") 2>conftest.er1
6436
grep -v '^ *+' conftest.er1 >conftest.err
6438
cat conftest.err >&5
6439
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440
(exit $ac_status); } && {
6441
test -z "$ac_cxx_werror_flag" ||
6442
test ! -s conftest.err
6443
} && test -s conftest$ac_exeext && {
6444
test "$cross_compiling" = yes ||
6445
$as_test_x conftest$ac_exeext
6447
eval "kde_cv_prog_cxx_$kde_cache=yes"
6449
$as_echo "$as_me: failed program was:" >&5
6450
sed 's/^/| /' conftest.$ac_ext >&5
6455
rm -rf conftest.dSYM
6456
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6457
conftest$ac_exeext conftest.$ac_ext
6458
CXXFLAGS="$save_CXXFLAGS"
6460
ac_cpp='$CPP $CPPFLAGS'
6461
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6462
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6463
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6468
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6469
{ $as_echo "$as_me:$LINENO: result: yes" >&5
6470
$as_echo "yes" >&6; }
6472
CXXFLAGS="$CXXFLAGS --pch"
6474
{ $as_echo "$as_me:$LINENO: result: no" >&5
6475
$as_echo "no" >&6; }
6482
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports --inline_keyword_space_time=6" >&5
6483
$as_echo_n "checking whether $CXX supports --inline_keyword_space_time=6... " >&6; }
6484
kde_cache=`echo -inline_keyword_space_time=6 | sed 'y% .=/+-,%____p__%'`
6485
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6486
$as_echo_n "(cached) " >&6
6491
ac_cpp='$CXXCPP $CPPFLAGS'
6492
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6493
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6494
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6496
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6499
save_CXXFLAGS="$CXXFLAGS"
6500
CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6"
6501
cat >conftest.$ac_ext <<_ACEOF
6504
cat confdefs.h >>conftest.$ac_ext
6505
cat >>conftest.$ac_ext <<_ACEOF
6506
/* end confdefs.h. */
6516
rm -f conftest.$ac_objext conftest$ac_exeext
6517
if { (ac_try="$ac_link"
6519
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6520
*) ac_try_echo=$ac_try;;
6522
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6523
$as_echo "$ac_try_echo") >&5
6524
(eval "$ac_link") 2>conftest.er1
6526
grep -v '^ *+' conftest.er1 >conftest.err
6528
cat conftest.err >&5
6529
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530
(exit $ac_status); } && {
6531
test -z "$ac_cxx_werror_flag" ||
6532
test ! -s conftest.err
6533
} && test -s conftest$ac_exeext && {
6534
test "$cross_compiling" = yes ||
6535
$as_test_x conftest$ac_exeext
6537
eval "kde_cv_prog_cxx_$kde_cache=yes"
6539
$as_echo "$as_me: failed program was:" >&5
6540
sed 's/^/| /' conftest.$ac_ext >&5
6545
rm -rf conftest.dSYM
6546
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6547
conftest$ac_exeext conftest.$ac_ext
6548
CXXFLAGS="$save_CXXFLAGS"
6550
ac_cpp='$CPP $CPPFLAGS'
6551
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6552
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6553
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6558
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6559
{ $as_echo "$as_me:$LINENO: result: yes" >&5
6560
$as_echo "yes" >&6; }
6562
CXXFLAGS="$CXXFLAGS --inline_keyword_space_time=6"
6564
{ $as_echo "$as_me:$LINENO: result: no" >&5
6565
$as_echo "no" >&6; }
6571
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports --inline_auto_space_time=2" >&5
6572
$as_echo_n "checking whether $CXX supports --inline_auto_space_time=2... " >&6; }
6573
kde_cache=`echo -inline_auto_space_time=2 | sed 'y% .=/+-,%____p__%'`
6574
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6575
$as_echo_n "(cached) " >&6
6580
ac_cpp='$CXXCPP $CPPFLAGS'
6581
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6582
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6583
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6585
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6588
save_CXXFLAGS="$CXXFLAGS"
6589
CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2"
6590
cat >conftest.$ac_ext <<_ACEOF
6593
cat confdefs.h >>conftest.$ac_ext
6594
cat >>conftest.$ac_ext <<_ACEOF
6595
/* end confdefs.h. */
6605
rm -f conftest.$ac_objext conftest$ac_exeext
6606
if { (ac_try="$ac_link"
6608
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6609
*) ac_try_echo=$ac_try;;
6611
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6612
$as_echo "$ac_try_echo") >&5
6613
(eval "$ac_link") 2>conftest.er1
6615
grep -v '^ *+' conftest.er1 >conftest.err
6617
cat conftest.err >&5
6618
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619
(exit $ac_status); } && {
6620
test -z "$ac_cxx_werror_flag" ||
6621
test ! -s conftest.err
6622
} && test -s conftest$ac_exeext && {
6623
test "$cross_compiling" = yes ||
6624
$as_test_x conftest$ac_exeext
6626
eval "kde_cv_prog_cxx_$kde_cache=yes"
6628
$as_echo "$as_me: failed program was:" >&5
6629
sed 's/^/| /' conftest.$ac_ext >&5
6634
rm -rf conftest.dSYM
6635
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6636
conftest$ac_exeext conftest.$ac_ext
6637
CXXFLAGS="$save_CXXFLAGS"
6639
ac_cpp='$CPP $CPPFLAGS'
6640
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6641
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6642
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6647
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6648
{ $as_echo "$as_me:$LINENO: result: yes" >&5
6649
$as_echo "yes" >&6; }
6651
CXXFLAGS="$CXXFLAGS --inline_auto_space_time=2"
6653
{ $as_echo "$as_me:$LINENO: result: no" >&5
6654
$as_echo "no" >&6; }
6660
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports --inline_implicit_space_time=2.0" >&5
6661
$as_echo_n "checking whether $CXX supports --inline_implicit_space_time=2.0... " >&6; }
6662
kde_cache=`echo -inline_implicit_space_time=2.0 | sed 'y% .=/+-,%____p__%'`
6663
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6664
$as_echo_n "(cached) " >&6
6669
ac_cpp='$CXXCPP $CPPFLAGS'
6670
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6671
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6672
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6674
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6677
save_CXXFLAGS="$CXXFLAGS"
6678
CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0"
6679
cat >conftest.$ac_ext <<_ACEOF
6682
cat confdefs.h >>conftest.$ac_ext
6683
cat >>conftest.$ac_ext <<_ACEOF
6684
/* end confdefs.h. */
6694
rm -f conftest.$ac_objext conftest$ac_exeext
6695
if { (ac_try="$ac_link"
6697
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6698
*) ac_try_echo=$ac_try;;
6700
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6701
$as_echo "$ac_try_echo") >&5
6702
(eval "$ac_link") 2>conftest.er1
6704
grep -v '^ *+' conftest.er1 >conftest.err
6706
cat conftest.err >&5
6707
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6708
(exit $ac_status); } && {
6709
test -z "$ac_cxx_werror_flag" ||
6710
test ! -s conftest.err
6711
} && test -s conftest$ac_exeext && {
6712
test "$cross_compiling" = yes ||
6713
$as_test_x conftest$ac_exeext
6715
eval "kde_cv_prog_cxx_$kde_cache=yes"
6717
$as_echo "$as_me: failed program was:" >&5
6718
sed 's/^/| /' conftest.$ac_ext >&5
6723
rm -rf conftest.dSYM
6724
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6725
conftest$ac_exeext conftest.$ac_ext
6726
CXXFLAGS="$save_CXXFLAGS"
6728
ac_cpp='$CPP $CPPFLAGS'
6729
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6730
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6731
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6736
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6737
{ $as_echo "$as_me:$LINENO: result: yes" >&5
6738
$as_echo "yes" >&6; }
6740
CXXFLAGS="$CXXFLAGS --inline_implicit_space_time=2.0"
6742
{ $as_echo "$as_me:$LINENO: result: no" >&5
6743
$as_echo "no" >&6; }
6749
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports --inline_generated_space_time=2.0" >&5
6750
$as_echo_n "checking whether $CXX supports --inline_generated_space_time=2.0... " >&6; }
6751
kde_cache=`echo -inline_generated_space_time=2.0 | sed 'y% .=/+-,%____p__%'`
6752
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6753
$as_echo_n "(cached) " >&6
6758
ac_cpp='$CXXCPP $CPPFLAGS'
6759
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6760
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6761
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6763
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6766
save_CXXFLAGS="$CXXFLAGS"
6767
CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0"
6768
cat >conftest.$ac_ext <<_ACEOF
6771
cat confdefs.h >>conftest.$ac_ext
6772
cat >>conftest.$ac_ext <<_ACEOF
6773
/* end confdefs.h. */
6783
rm -f conftest.$ac_objext conftest$ac_exeext
6784
if { (ac_try="$ac_link"
6786
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6787
*) ac_try_echo=$ac_try;;
6789
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6790
$as_echo "$ac_try_echo") >&5
6791
(eval "$ac_link") 2>conftest.er1
6793
grep -v '^ *+' conftest.er1 >conftest.err
6795
cat conftest.err >&5
6796
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6797
(exit $ac_status); } && {
6798
test -z "$ac_cxx_werror_flag" ||
6799
test ! -s conftest.err
6800
} && test -s conftest$ac_exeext && {
6801
test "$cross_compiling" = yes ||
6802
$as_test_x conftest$ac_exeext
6804
eval "kde_cv_prog_cxx_$kde_cache=yes"
6806
$as_echo "$as_me: failed program was:" >&5
6807
sed 's/^/| /' conftest.$ac_ext >&5
6812
rm -rf conftest.dSYM
6813
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6814
conftest$ac_exeext conftest.$ac_ext
6815
CXXFLAGS="$save_CXXFLAGS"
6817
ac_cpp='$CPP $CPPFLAGS'
6818
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6819
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6820
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6825
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6826
{ $as_echo "$as_me:$LINENO: result: yes" >&5
6827
$as_echo "yes" >&6; }
6829
CXXFLAGS="$CXXFLAGS --inline_generated_space_time=2.0"
6831
{ $as_echo "$as_me:$LINENO: result: no" >&5
6832
$as_echo "no" >&6; }
6838
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports --one_per" >&5
6839
$as_echo_n "checking whether $CXX supports --one_per... " >&6; }
6840
kde_cache=`echo -one_per | sed 'y% .=/+-,%____p__%'`
6841
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
6842
$as_echo_n "(cached) " >&6
6847
ac_cpp='$CXXCPP $CPPFLAGS'
6848
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6849
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6850
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6852
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
6855
save_CXXFLAGS="$CXXFLAGS"
6856
CXXFLAGS="$CXXFLAGS --one_per"
6857
cat >conftest.$ac_ext <<_ACEOF
6860
cat confdefs.h >>conftest.$ac_ext
6861
cat >>conftest.$ac_ext <<_ACEOF
6862
/* end confdefs.h. */
6872
rm -f conftest.$ac_objext conftest$ac_exeext
6873
if { (ac_try="$ac_link"
6875
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6876
*) ac_try_echo=$ac_try;;
6878
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6879
$as_echo "$ac_try_echo") >&5
6880
(eval "$ac_link") 2>conftest.er1
6882
grep -v '^ *+' conftest.er1 >conftest.err
6884
cat conftest.err >&5
6885
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6886
(exit $ac_status); } && {
6887
test -z "$ac_cxx_werror_flag" ||
6888
test ! -s conftest.err
6889
} && test -s conftest$ac_exeext && {
6890
test "$cross_compiling" = yes ||
6891
$as_test_x conftest$ac_exeext
6893
eval "kde_cv_prog_cxx_$kde_cache=yes"
6895
$as_echo "$as_me: failed program was:" >&5
6896
sed 's/^/| /' conftest.$ac_ext >&5
6901
rm -rf conftest.dSYM
6902
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6903
conftest$ac_exeext conftest.$ac_ext
6904
CXXFLAGS="$save_CXXFLAGS"
6906
ac_cpp='$CPP $CPPFLAGS'
6907
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6908
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6909
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6914
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
6915
{ $as_echo "$as_me:$LINENO: result: yes" >&5
6916
$as_echo "yes" >&6; }
6918
CXXFLAGS="$CXXFLAGS --one_per"
6920
{ $as_echo "$as_me:$LINENO: result: no" >&5
6921
$as_echo "no" >&6; }
6932
*-*-irix*) test "$GXX" = yes && CXXFLAGS="-D_LANGUAGE_C_PLUS_PLUS -D__LANGUAGE_C_PLUS_PLUS $CXXFLAGS" ;;
6933
*-*-sysv4.2uw*) CXXFLAGS="-D_UNIXWARE $CXXFLAGS";;
6934
*-*-sysv5uw7*) CXXFLAGS="-D_UNIXWARE7 $CXXFLAGS";;
6936
if test "$GXX" = yes; then
6937
libstdcpp=`$CXX -print-file-name=libstdc++.so`
6938
if test ! -f $libstdcpp; then
6939
{ { $as_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
6940
$as_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;}
6941
{ (exit 1); exit 1; }; }
6947
if test "x$kde_use_qt_emb" != "xyes"; then
6949
__forbid=" -fno-rtti -rpath "
6950
if test -n "$__val"; then
6956
*" $i "*) { $as_echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5
6957
$as_echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;;
6958
*) # Careful to not add spaces, where there were none, because otherwise
6959
# libtool gets confused, if we change e.g. CXX
6960
if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
6968
__forbid=" -fno-rtti -rpath "
6969
if test -n "$__val"; then
6975
*" $i "*) { $as_echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5
6976
$as_echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;;
6977
*) # Careful to not add spaces, where there were none, because otherwise
6978
# libtool gets confused, if we change e.g. CXX
6979
if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
6989
if test -n "$__val"; then
6995
*" $i "*) { $as_echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5
6996
$as_echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;;
6997
*) # Careful to not add spaces, where there were none, because otherwise
6998
# libtool gets confused, if we change e.g. CXX
6999
if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
7008
if test -n "$__val"; then
7014
*" $i "*) { $as_echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5
7015
$as_echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;;
7016
*) # Careful to not add spaces, where there were none, because otherwise
7017
# libtool gets confused, if we change e.g. CXX
7018
if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
7029
ac_cpp='$CXXCPP $CPPFLAGS'
7030
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7031
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7032
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7033
{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
7034
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7035
if test -z "$CXXCPP"; then
7036
if test "${ac_cv_prog_CXXCPP+set}" = set; then
7037
$as_echo_n "(cached) " >&6
7039
# Double quotes because CXXCPP needs to be expanded
7040
for CXXCPP in "$CXX -E" "/lib/cpp"
7043
for ac_cxx_preproc_warn_flag in '' yes
7045
# Use a header file that comes with gcc, so configuring glibc
7046
# with a fresh cross-compiler works.
7047
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7048
# <limits.h> exists even on freestanding compilers.
7049
# On the NeXT, cc -E runs the code through the compiler's parser,
7050
# not just through cpp. "Syntax error" is here to catch this case.
7051
cat >conftest.$ac_ext <<_ACEOF
7054
cat confdefs.h >>conftest.$ac_ext
7055
cat >>conftest.$ac_ext <<_ACEOF
7056
/* end confdefs.h. */
7058
# include <limits.h>
7060
# include <assert.h>
7064
if { (ac_try="$ac_cpp conftest.$ac_ext"
7066
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7067
*) ac_try_echo=$ac_try;;
7069
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7070
$as_echo "$ac_try_echo") >&5
7071
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7073
grep -v '^ *+' conftest.er1 >conftest.err
7075
cat conftest.err >&5
7076
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077
(exit $ac_status); } >/dev/null && {
7078
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7079
test ! -s conftest.err
7083
$as_echo "$as_me: failed program was:" >&5
7084
sed 's/^/| /' conftest.$ac_ext >&5
7086
# Broken: fails on valid input.
7090
rm -f conftest.err conftest.$ac_ext
7092
# OK, works on sane cases. Now check whether nonexistent headers
7093
# can be detected and how.
7094
cat >conftest.$ac_ext <<_ACEOF
7097
cat confdefs.h >>conftest.$ac_ext
7098
cat >>conftest.$ac_ext <<_ACEOF
7099
/* end confdefs.h. */
7100
#include <ac_nonexistent.h>
7102
if { (ac_try="$ac_cpp conftest.$ac_ext"
7104
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7105
*) ac_try_echo=$ac_try;;
7107
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7108
$as_echo "$ac_try_echo") >&5
7109
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7111
grep -v '^ *+' conftest.er1 >conftest.err
7113
cat conftest.err >&5
7114
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7115
(exit $ac_status); } >/dev/null && {
7116
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7117
test ! -s conftest.err
7119
# Broken: success on invalid input.
7122
$as_echo "$as_me: failed program was:" >&5
7123
sed 's/^/| /' conftest.$ac_ext >&5
7125
# Passes both tests.
7130
rm -f conftest.err conftest.$ac_ext
7133
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7134
rm -f conftest.err conftest.$ac_ext
7135
if $ac_preproc_ok; then
7140
ac_cv_prog_CXXCPP=$CXXCPP
7143
CXXCPP=$ac_cv_prog_CXXCPP
7145
ac_cv_prog_CXXCPP=$CXXCPP
7147
{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
7148
$as_echo "$CXXCPP" >&6; }
7150
for ac_cxx_preproc_warn_flag in '' yes
7152
# Use a header file that comes with gcc, so configuring glibc
7153
# with a fresh cross-compiler works.
7154
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7155
# <limits.h> exists even on freestanding compilers.
7156
# On the NeXT, cc -E runs the code through the compiler's parser,
7157
# not just through cpp. "Syntax error" is here to catch this case.
7158
cat >conftest.$ac_ext <<_ACEOF
7161
cat confdefs.h >>conftest.$ac_ext
7162
cat >>conftest.$ac_ext <<_ACEOF
7163
/* end confdefs.h. */
7165
# include <limits.h>
7167
# include <assert.h>
7171
if { (ac_try="$ac_cpp conftest.$ac_ext"
7173
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7174
*) ac_try_echo=$ac_try;;
7176
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7177
$as_echo "$ac_try_echo") >&5
7178
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7180
grep -v '^ *+' conftest.er1 >conftest.err
7182
cat conftest.err >&5
7183
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184
(exit $ac_status); } >/dev/null && {
7185
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7186
test ! -s conftest.err
7190
$as_echo "$as_me: failed program was:" >&5
7191
sed 's/^/| /' conftest.$ac_ext >&5
7193
# Broken: fails on valid input.
7197
rm -f conftest.err conftest.$ac_ext
7199
# OK, works on sane cases. Now check whether nonexistent headers
7200
# can be detected and how.
7201
cat >conftest.$ac_ext <<_ACEOF
7204
cat confdefs.h >>conftest.$ac_ext
7205
cat >>conftest.$ac_ext <<_ACEOF
7206
/* end confdefs.h. */
7207
#include <ac_nonexistent.h>
7209
if { (ac_try="$ac_cpp conftest.$ac_ext"
7211
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7212
*) ac_try_echo=$ac_try;;
7214
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7215
$as_echo "$ac_try_echo") >&5
7216
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7218
grep -v '^ *+' conftest.er1 >conftest.err
7220
cat conftest.err >&5
7221
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222
(exit $ac_status); } >/dev/null && {
7223
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7224
test ! -s conftest.err
7226
# Broken: success on invalid input.
7229
$as_echo "$as_me: failed program was:" >&5
7230
sed 's/^/| /' conftest.$ac_ext >&5
7232
# Passes both tests.
7237
rm -f conftest.err conftest.$ac_ext
7240
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7241
rm -f conftest.err conftest.$ac_ext
7242
if $ac_preproc_ok; then
7245
{ { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7246
See \`config.log' for more details." >&5
7247
$as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7248
See \`config.log' for more details." >&2;}
7249
{ (exit 1); exit 1; }; }
7253
ac_cpp='$CPP $CPPFLAGS'
7254
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7255
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7256
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7259
if test "$GCC" = yes; then
7263
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports -O0" >&5
7264
$as_echo_n "checking whether $CXX supports -O0... " >&6; }
7265
kde_cache=`echo O0 | sed 'y% .=/+-,%____p__%'`
7266
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
7267
$as_echo_n "(cached) " >&6
7272
ac_cpp='$CXXCPP $CPPFLAGS'
7273
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7274
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7275
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7277
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7280
save_CXXFLAGS="$CXXFLAGS"
7281
CXXFLAGS="$CXXFLAGS -O0"
7282
cat >conftest.$ac_ext <<_ACEOF
7285
cat confdefs.h >>conftest.$ac_ext
7286
cat >>conftest.$ac_ext <<_ACEOF
7287
/* end confdefs.h. */
7297
rm -f conftest.$ac_objext conftest$ac_exeext
7298
if { (ac_try="$ac_link"
7300
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7301
*) ac_try_echo=$ac_try;;
7303
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7304
$as_echo "$ac_try_echo") >&5
7305
(eval "$ac_link") 2>conftest.er1
7307
grep -v '^ *+' conftest.er1 >conftest.err
7309
cat conftest.err >&5
7310
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311
(exit $ac_status); } && {
7312
test -z "$ac_cxx_werror_flag" ||
7313
test ! -s conftest.err
7314
} && test -s conftest$ac_exeext && {
7315
test "$cross_compiling" = yes ||
7316
$as_test_x conftest$ac_exeext
7318
eval "kde_cv_prog_cxx_$kde_cache=yes"
7320
$as_echo "$as_me: failed program was:" >&5
7321
sed 's/^/| /' conftest.$ac_ext >&5
7326
rm -rf conftest.dSYM
7327
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7328
conftest$ac_exeext conftest.$ac_ext
7329
CXXFLAGS="$save_CXXFLAGS"
7331
ac_cpp='$CPP $CPPFLAGS'
7332
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7333
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7334
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7339
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
7340
{ $as_echo "$as_me:$LINENO: result: yes" >&5
7341
$as_echo "yes" >&6; }
7345
{ $as_echo "$as_me:$LINENO: result: no" >&5
7346
$as_echo "no" >&6; }
7352
# Check whether --enable-coverage was given.
7353
if test "${enable_coverage+set}" = set; then
7354
enableval=$enable_coverage;
7355
if test "$am_cv_CC_dependencies_compiler_type" = "gcc3"; then
7356
ac_coverage_compiler="-fprofile-arcs -ftest-coverage"
7357
ac_coverage_linker="-lgcc"
7358
elif test "$am_cv_CC_dependencies_compiler_type" = "gcc"; then
7359
ac_coverage_compiler="-fprofile-arcs -ftest-coverage"
7360
ac_coverage_linker=""
7362
{ { $as_echo "$as_me:$LINENO: error: coverage with your compiler is not supported" >&5
7363
$as_echo "$as_me: error: coverage with your compiler is not supported" >&2;}
7364
{ (exit 1); exit 1; }; }
7366
CFLAGS="$CFLAGS $ac_coverage_compiler"
7367
CXXFLAGS="$CXXFLAGS $ac_coverage_compiler"
7368
LDFLAGS="$LDFLAGS $ac_coverage_linker"
7378
# Check whether --enable-new_ldflags was given.
7379
if test "${enable_new_ldflags+set}" = set; then
7380
enableval=$enable_new_ldflags; kde_use_new_ldflags=$enableval
7382
kde_use_new_ldflags=no
7386
LDFLAGS_AS_NEEDED=""
7387
LDFLAGS_NEW_DTAGS=""
7388
if test "x$kde_use_new_ldflags" = "xyes"; then
7389
LDFLAGS_NEW_DTAGS=""
7391
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--enable-new-dtags" >&5
7392
$as_echo_n "checking whether $CXX supports -Wl,--enable-new-dtags... " >&6; }
7393
kde_cache=`echo Wl,--enable-new-dtags | sed 'y% .=/+-,%____p__%'`
7394
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
7395
$as_echo_n "(cached) " >&6
7400
ac_cpp='$CXXCPP $CPPFLAGS'
7401
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7402
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7403
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7405
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7408
save_CXXFLAGS="$CXXFLAGS"
7409
CXXFLAGS="$CXXFLAGS -Wl,--enable-new-dtags"
7410
cat >conftest.$ac_ext <<_ACEOF
7413
cat confdefs.h >>conftest.$ac_ext
7414
cat >>conftest.$ac_ext <<_ACEOF
7415
/* end confdefs.h. */
7425
rm -f conftest.$ac_objext conftest$ac_exeext
7426
if { (ac_try="$ac_link"
7428
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7429
*) ac_try_echo=$ac_try;;
7431
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7432
$as_echo "$ac_try_echo") >&5
7433
(eval "$ac_link") 2>conftest.er1
7435
grep -v '^ *+' conftest.er1 >conftest.err
7437
cat conftest.err >&5
7438
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7439
(exit $ac_status); } && {
7440
test -z "$ac_cxx_werror_flag" ||
7441
test ! -s conftest.err
7442
} && test -s conftest$ac_exeext && {
7443
test "$cross_compiling" = yes ||
7444
$as_test_x conftest$ac_exeext
7446
eval "kde_cv_prog_cxx_$kde_cache=yes"
7448
$as_echo "$as_me: failed program was:" >&5
7449
sed 's/^/| /' conftest.$ac_ext >&5
7454
rm -rf conftest.dSYM
7455
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7456
conftest$ac_exeext conftest.$ac_ext
7457
CXXFLAGS="$save_CXXFLAGS"
7459
ac_cpp='$CPP $CPPFLAGS'
7460
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7461
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7462
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7467
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
7468
{ $as_echo "$as_me:$LINENO: result: yes" >&5
7469
$as_echo "yes" >&6; }
7471
LDFLAGS_NEW_DTAGS="-Wl,--enable-new-dtags"
7473
{ $as_echo "$as_me:$LINENO: result: no" >&5
7474
$as_echo "no" >&6; }
7481
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--as-needed" >&5
7482
$as_echo_n "checking whether $CXX supports -Wl,--as-needed... " >&6; }
7483
kde_cache=`echo Wl,--as-needed | sed 'y% .=/+-,%____p__%'`
7484
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
7485
$as_echo_n "(cached) " >&6
7490
ac_cpp='$CXXCPP $CPPFLAGS'
7491
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7492
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7493
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7495
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7498
save_CXXFLAGS="$CXXFLAGS"
7499
CXXFLAGS="$CXXFLAGS -Wl,--as-needed"
7500
cat >conftest.$ac_ext <<_ACEOF
7503
cat confdefs.h >>conftest.$ac_ext
7504
cat >>conftest.$ac_ext <<_ACEOF
7505
/* end confdefs.h. */
7515
rm -f conftest.$ac_objext conftest$ac_exeext
7516
if { (ac_try="$ac_link"
7518
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7519
*) ac_try_echo=$ac_try;;
7521
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7522
$as_echo "$ac_try_echo") >&5
7523
(eval "$ac_link") 2>conftest.er1
7525
grep -v '^ *+' conftest.er1 >conftest.err
7527
cat conftest.err >&5
7528
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529
(exit $ac_status); } && {
7530
test -z "$ac_cxx_werror_flag" ||
7531
test ! -s conftest.err
7532
} && test -s conftest$ac_exeext && {
7533
test "$cross_compiling" = yes ||
7534
$as_test_x conftest$ac_exeext
7536
eval "kde_cv_prog_cxx_$kde_cache=yes"
7538
$as_echo "$as_me: failed program was:" >&5
7539
sed 's/^/| /' conftest.$ac_ext >&5
7544
rm -rf conftest.dSYM
7545
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7546
conftest$ac_exeext conftest.$ac_ext
7547
CXXFLAGS="$save_CXXFLAGS"
7549
ac_cpp='$CPP $CPPFLAGS'
7550
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7551
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7552
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7557
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
7558
{ $as_echo "$as_me:$LINENO: result: yes" >&5
7559
$as_echo "yes" >&6; }
7561
LDFLAGS_AS_NEEDED="-Wl,--as-needed"
7563
{ $as_echo "$as_me:$LINENO: result: no" >&5
7564
$as_echo "no" >&6; }
7574
# Check whether --enable-final was given.
7575
if test "${enable_final+set}" = set; then
7576
enableval=$enable_final; kde_use_final=$enableval
7582
if test "x$kde_use_final" = "xyes"; then
7583
KDE_USE_FINAL_TRUE=""
7584
KDE_USE_FINAL_FALSE="#"
7586
KDE_USE_FINAL_TRUE="#"
7587
KDE_USE_FINAL_FALSE=""
7593
# Check whether --enable-closure was given.
7594
if test "${enable_closure+set}" = set; then
7595
enableval=$enable_closure; kde_use_closure=$enableval
7602
if test "x$kde_use_closure" = "xyes"; then
7603
KDE_USE_CLOSURE_TRUE=""
7604
KDE_USE_CLOSURE_FALSE="#"
7605
# CXXFLAGS="$CXXFLAGS $REPO"
7607
KDE_USE_CLOSURE_TRUE="#"
7608
KDE_USE_CLOSURE_FALSE=""
7613
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--no-undefined" >&5
7614
$as_echo_n "checking whether $CXX supports -Wl,--no-undefined... " >&6; }
7615
kde_cache=`echo Wl,--no-undefined | sed 'y% .=/+-,%____p__%'`
7616
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
7617
$as_echo_n "(cached) " >&6
7622
ac_cpp='$CXXCPP $CPPFLAGS'
7623
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7624
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7625
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7627
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7630
save_CXXFLAGS="$CXXFLAGS"
7631
CXXFLAGS="$CXXFLAGS -Wl,--no-undefined"
7632
cat >conftest.$ac_ext <<_ACEOF
7635
cat confdefs.h >>conftest.$ac_ext
7636
cat >>conftest.$ac_ext <<_ACEOF
7637
/* end confdefs.h. */
7647
rm -f conftest.$ac_objext conftest$ac_exeext
7648
if { (ac_try="$ac_link"
7650
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7651
*) ac_try_echo=$ac_try;;
7653
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7654
$as_echo "$ac_try_echo") >&5
7655
(eval "$ac_link") 2>conftest.er1
7657
grep -v '^ *+' conftest.er1 >conftest.err
7659
cat conftest.err >&5
7660
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661
(exit $ac_status); } && {
7662
test -z "$ac_cxx_werror_flag" ||
7663
test ! -s conftest.err
7664
} && test -s conftest$ac_exeext && {
7665
test "$cross_compiling" = yes ||
7666
$as_test_x conftest$ac_exeext
7668
eval "kde_cv_prog_cxx_$kde_cache=yes"
7670
$as_echo "$as_me: failed program was:" >&5
7671
sed 's/^/| /' conftest.$ac_ext >&5
7676
rm -rf conftest.dSYM
7677
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7678
conftest$ac_exeext conftest.$ac_ext
7679
CXXFLAGS="$save_CXXFLAGS"
7681
ac_cpp='$CPP $CPPFLAGS'
7682
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7683
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7684
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7689
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
7690
{ $as_echo "$as_me:$LINENO: result: yes" >&5
7691
$as_echo "yes" >&6; }
7694
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports -Wl,--allow-shlib-undefined" >&5
7695
$as_echo_n "checking whether $CXX supports -Wl,--allow-shlib-undefined... " >&6; }
7696
kde_cache=`echo Wl,--allow-shlib-undefined | sed 'y% .=/+-,%____p__%'`
7697
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
7698
$as_echo_n "(cached) " >&6
7703
ac_cpp='$CXXCPP $CPPFLAGS'
7704
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7705
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7706
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7708
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
7711
save_CXXFLAGS="$CXXFLAGS"
7712
CXXFLAGS="$CXXFLAGS -Wl,--allow-shlib-undefined"
7713
cat >conftest.$ac_ext <<_ACEOF
7716
cat confdefs.h >>conftest.$ac_ext
7717
cat >>conftest.$ac_ext <<_ACEOF
7718
/* end confdefs.h. */
7728
rm -f conftest.$ac_objext conftest$ac_exeext
7729
if { (ac_try="$ac_link"
7731
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7732
*) ac_try_echo=$ac_try;;
7734
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7735
$as_echo "$ac_try_echo") >&5
7736
(eval "$ac_link") 2>conftest.er1
7738
grep -v '^ *+' conftest.er1 >conftest.err
7740
cat conftest.err >&5
7741
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742
(exit $ac_status); } && {
7743
test -z "$ac_cxx_werror_flag" ||
7744
test ! -s conftest.err
7745
} && test -s conftest$ac_exeext && {
7746
test "$cross_compiling" = yes ||
7747
$as_test_x conftest$ac_exeext
7749
eval "kde_cv_prog_cxx_$kde_cache=yes"
7751
$as_echo "$as_me: failed program was:" >&5
7752
sed 's/^/| /' conftest.$ac_ext >&5
7757
rm -rf conftest.dSYM
7758
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7759
conftest$ac_exeext conftest.$ac_ext
7760
CXXFLAGS="$save_CXXFLAGS"
7762
ac_cpp='$CPP $CPPFLAGS'
7763
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7764
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7765
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7770
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
7771
{ $as_echo "$as_me:$LINENO: result: yes" >&5
7772
$as_echo "yes" >&6; }
7774
KDE_NO_UNDEFINED="-Wl,--no-undefined -Wl,--allow-shlib-undefined"
7776
{ $as_echo "$as_me:$LINENO: result: no" >&5
7777
$as_echo "no" >&6; }
7783
{ $as_echo "$as_me:$LINENO: result: no" >&5
7784
$as_echo "no" >&6; }
7797
# Check whether --enable-nmcheck was given.
7798
if test "${enable_nmcheck+set}" = set; then
7799
enableval=$enable_nmcheck; kde_use_nmcheck=$enableval
7805
if test "$kde_use_nmcheck" = "yes"; then
7806
KDE_USE_NMCHECK_TRUE=""
7807
KDE_USE_NMCHECK_FALSE="#"
7809
KDE_USE_NMCHECK_TRUE="#"
7810
KDE_USE_NMCHECK_FALSE=""
7818
# Check whether --enable-shared was given.
7819
if test "${enable_shared+set}" = set; then
7820
enableval=$enable_shared; p=${PACKAGE-default}
7822
yes) enable_shared=yes ;;
7823
no) enable_shared=no ;;
7826
# Look at the argument we got. We use all the common list separators.
7827
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7828
for pkg in $enableval; do
7830
if test "X$pkg" = "X$p"; then
7842
# Check whether --enable-static was given.
7843
if test "${enable_static+set}" = set; then
7844
enableval=$enable_static; p=${PACKAGE-default}
7846
yes) enable_static=yes ;;
7847
no) enable_static=no ;;
7850
# Look at the argument we got. We use all the common list separators.
7851
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7852
for pkg in $enableval; do
7854
if test "X$pkg" = "X$p"; then
7869
# Check whether --enable-libsuffix was given.
7870
if test "${enable_libsuffix+set}" = set; then
7871
enableval=$enable_libsuffix; kdelibsuff=$enableval
7877
if test "$kdelibsuff" = "auto"; then
7879
cat > conftest.c << EOF
7885
kdelibsuff=`$CC conftest.c -o conftest.out; ldd conftest.out |sed -ne '/libc.so/{
7886
s,.*/lib\([^\/]*\)/.*,\1,
7892
if test "$kdelibsuff" = "no" || test "$kdelibsuff" = "none"; then
7895
if test -z "$kdelibsuff"; then
7896
{ $as_echo "$as_me:$LINENO: result: not using lib directory suffix" >&5
7897
$as_echo "not using lib directory suffix" >&6; }
7899
cat >>confdefs.h <<\_ACEOF
7900
#define KDELIBSUFF ""
7904
if test "$libdir" = '${exec_prefix}/lib'; then
7905
libdir="$libdir${kdelibsuff}"
7909
cat >>confdefs.h <<_ACEOF
7910
#define KDELIBSUFF "${kdelibsuff}"
7913
{ $as_echo "$as_me:$LINENO: result: using lib directory suffix $kdelibsuff" >&5
7914
$as_echo "using lib directory suffix $kdelibsuff" >&6; }
7917
# Check whether --enable-fast-install was given.
7918
if test "${enable_fast_install+set}" = set; then
7919
enableval=$enable_fast_install; p=${PACKAGE-default}
7921
yes) enable_fast_install=yes ;;
7922
no) enable_fast_install=no ;;
7924
enable_fast_install=no
7925
# Look at the argument we got. We use all the common list separators.
7926
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7927
for pkg in $enableval; do
7929
if test "X$pkg" = "X$p"; then
7930
enable_fast_install=yes
7937
enable_fast_install=yes
7941
{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
7942
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7943
if test "${lt_cv_path_SED+set}" = set; then
7944
$as_echo_n "(cached) " >&6
7946
# Loop through the user's path and test for sed and gsed.
7947
# Then use that list of sed's as ones to test for truncation.
7948
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7952
test -z "$as_dir" && as_dir=.
7953
for lt_ac_prog in sed gsed; do
7954
for ac_exec_ext in '' $ac_executable_extensions; do
7955
if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
7956
lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
7963
# Add /usr/xpg4/bin/sed as it is typically found on Solaris
7964
# along with /bin/sed that truncates output.
7965
for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
7966
test ! -f $lt_ac_sed && break
7967
cat /dev/null > conftest.in
7969
echo $ECHO_N "0123456789$ECHO_C" >conftest.in
7970
# Check for GNU sed and select it if it is found.
7971
if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
7972
lt_cv_path_SED=$lt_ac_sed
7976
cat conftest.in conftest.in >conftest.tmp
7977
mv conftest.tmp conftest.in
7978
cp conftest.in conftest.nl
7980
$lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
7981
cmp -s conftest.out conftest.nl || break
7982
# 10000 chars as input seems more than enough
7983
test $lt_ac_count -gt 10 && break
7984
lt_ac_count=`expr $lt_ac_count + 1`
7985
if test $lt_ac_count -gt $lt_ac_max; then
7986
lt_ac_max=$lt_ac_count
7987
lt_cv_path_SED=$lt_ac_sed
7995
{ $as_echo "$as_me:$LINENO: result: $SED" >&5
7996
$as_echo "$SED" >&6; }
7998
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
7999
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
8000
if test "${ac_cv_path_GREP+set}" = set; then
8001
$as_echo_n "(cached) " >&6
8003
if test -z "$GREP"; then
8004
ac_path_GREP_found=false
8005
# Loop through the user's path and test for each of PROGNAME-LIST
8006
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8007
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8010
test -z "$as_dir" && as_dir=.
8011
for ac_prog in grep ggrep; do
8012
for ac_exec_ext in '' $ac_executable_extensions; do
8013
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
8014
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
8015
# Check for GNU ac_path_GREP and select it if it is found.
8016
# Check for GNU $ac_path_GREP
8017
case `"$ac_path_GREP" --version 2>&1` in
8019
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
8022
$as_echo_n 0123456789 >"conftest.in"
8025
cat "conftest.in" "conftest.in" >"conftest.tmp"
8026
mv "conftest.tmp" "conftest.in"
8027
cp "conftest.in" "conftest.nl"
8028
$as_echo 'GREP' >> "conftest.nl"
8029
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8030
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8031
ac_count=`expr $ac_count + 1`
8032
if test $ac_count -gt ${ac_path_GREP_max-0}; then
8033
# Best one so far, save it but keep looking for a better one
8034
ac_cv_path_GREP="$ac_path_GREP"
8035
ac_path_GREP_max=$ac_count
8037
# 10*(2^10) chars as input seems more than enough
8038
test $ac_count -gt 10 && break
8040
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8043
$ac_path_GREP_found && break 3
8048
if test -z "$ac_cv_path_GREP"; then
8049
{ { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8050
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8051
{ (exit 1); exit 1; }; }
8054
ac_cv_path_GREP=$GREP
8058
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
8059
$as_echo "$ac_cv_path_GREP" >&6; }
8060
GREP="$ac_cv_path_GREP"
8063
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
8064
$as_echo_n "checking for egrep... " >&6; }
8065
if test "${ac_cv_path_EGREP+set}" = set; then
8066
$as_echo_n "(cached) " >&6
8068
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
8069
then ac_cv_path_EGREP="$GREP -E"
8071
if test -z "$EGREP"; then
8072
ac_path_EGREP_found=false
8073
# Loop through the user's path and test for each of PROGNAME-LIST
8074
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8075
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8078
test -z "$as_dir" && as_dir=.
8079
for ac_prog in egrep; do
8080
for ac_exec_ext in '' $ac_executable_extensions; do
8081
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8082
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
8083
# Check for GNU ac_path_EGREP and select it if it is found.
8084
# Check for GNU $ac_path_EGREP
8085
case `"$ac_path_EGREP" --version 2>&1` in
8087
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
8090
$as_echo_n 0123456789 >"conftest.in"
8093
cat "conftest.in" "conftest.in" >"conftest.tmp"
8094
mv "conftest.tmp" "conftest.in"
8095
cp "conftest.in" "conftest.nl"
8096
$as_echo 'EGREP' >> "conftest.nl"
8097
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
8098
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8099
ac_count=`expr $ac_count + 1`
8100
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
8101
# Best one so far, save it but keep looking for a better one
8102
ac_cv_path_EGREP="$ac_path_EGREP"
8103
ac_path_EGREP_max=$ac_count
8105
# 10*(2^10) chars as input seems more than enough
8106
test $ac_count -gt 10 && break
8108
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8111
$ac_path_EGREP_found && break 3
8116
if test -z "$ac_cv_path_EGREP"; then
8117
{ { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
8118
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
8119
{ (exit 1); exit 1; }; }
8122
ac_cv_path_EGREP=$EGREP
8127
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
8128
$as_echo "$ac_cv_path_EGREP" >&6; }
8129
EGREP="$ac_cv_path_EGREP"
8133
# Check whether --with-gnu-ld was given.
8134
if test "${with_gnu_ld+set}" = set; then
8135
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8141
if test "$GCC" = yes; then
8142
# Check if gcc -print-prog-name=ld gives a path.
8143
{ $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
8144
$as_echo_n "checking for ld used by $CC... " >&6; }
8147
# gcc leaves a trailing carriage return which upsets mingw
8148
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8150
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8153
# Accept absolute paths.
8155
re_direlt='/[^/][^/]*/\.\./'
8156
# Canonicalize the pathname of ld
8157
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
8158
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8159
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
8161
test -z "$LD" && LD="$ac_prog"
8164
# If it fails, then pretend we aren't using GCC.
8168
# If it is relative, then search for the first ld in PATH.
8172
elif test "$with_gnu_ld" = yes; then
8173
{ $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
8174
$as_echo_n "checking for GNU ld... " >&6; }
8176
{ $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8177
$as_echo_n "checking for non-GNU ld... " >&6; }
8179
if test "${lt_cv_path_LD+set}" = set; then
8180
$as_echo_n "(cached) " >&6
8182
if test -z "$LD"; then
8183
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8184
for ac_dir in $PATH; do
8186
test -z "$ac_dir" && ac_dir=.
8187
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8188
lt_cv_path_LD="$ac_dir/$ac_prog"
8189
# Check to see if the program is GNU ld. I'd rather use --version,
8190
# but apparently some GNU ld's only accept -v.
8191
# Break only if it was the GNU/non-GNU ld that we prefer.
8192
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8193
*GNU* | *'with BFD'*)
8194
test "$with_gnu_ld" != no && break
8197
test "$with_gnu_ld" != yes && break
8204
lt_cv_path_LD="$LD" # Let the user override the test with a path.
8209
if test -n "$LD"; then
8210
{ $as_echo "$as_me:$LINENO: result: $LD" >&5
8211
$as_echo "$LD" >&6; }
8213
{ $as_echo "$as_me:$LINENO: result: no" >&5
8214
$as_echo "no" >&6; }
8216
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8217
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8218
{ (exit 1); exit 1; }; }
8219
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8220
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8221
if test "${lt_cv_prog_gnu_ld+set}" = set; then
8222
$as_echo_n "(cached) " >&6
8224
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
8225
case `$LD -v 2>&1 </dev/null` in
8226
*GNU* | *'with BFD'*)
8227
lt_cv_prog_gnu_ld=yes
8230
lt_cv_prog_gnu_ld=no
8234
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
8235
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
8236
with_gnu_ld=$lt_cv_prog_gnu_ld
8239
{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
8240
$as_echo_n "checking for $LD option to reload object files... " >&6; }
8241
if test "${lt_cv_ld_reload_flag+set}" = set; then
8242
$as_echo_n "(cached) " >&6
8244
lt_cv_ld_reload_flag='-r'
8246
{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
8247
$as_echo "$lt_cv_ld_reload_flag" >&6; }
8248
reload_flag=$lt_cv_ld_reload_flag
8249
case $reload_flag in
8251
*) reload_flag=" $reload_flag" ;;
8253
reload_cmds='$LD$reload_flag -o $output$reload_objs'
8255
{ $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
8256
$as_echo_n "checking for BSD-compatible nm... " >&6; }
8257
if test "${lt_cv_path_NM+set}" = set; then
8258
$as_echo_n "(cached) " >&6
8260
if test -n "$NM"; then
8261
# Let the user override the test.
8264
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8265
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
8267
test -z "$ac_dir" && ac_dir=.
8268
tmp_nm="$ac_dir/${ac_tool_prefix}nm"
8269
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8270
# Check to see if the nm accepts a BSD-compat flag.
8271
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
8272
# nm: unknown option "B" ignored
8273
# Tru64's nm complains that /dev/null is an invalid object file
8274
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8275
*/dev/null* | *'Invalid file or object type'*)
8276
lt_cv_path_NM="$tmp_nm -B"
8280
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8282
lt_cv_path_NM="$tmp_nm -p"
8286
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8287
continue # so that we can try to find one that supports BSD flags
8294
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
8297
{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
8298
$as_echo "$lt_cv_path_NM" >&6; }
8301
{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
8302
$as_echo_n "checking whether ln -s works... " >&6; }
8304
if test "$LN_S" = "ln -s"; then
8305
{ $as_echo "$as_me:$LINENO: result: yes" >&5
8306
$as_echo "yes" >&6; }
8308
{ $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
8309
$as_echo "no, using $LN_S" >&6; }
8312
{ $as_echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
8313
$as_echo_n "checking how to recognise dependent libraries... " >&6; }
8314
if test "${lt_cv_deplibs_check_method+set}" = set; then
8315
$as_echo_n "(cached) " >&6
8317
lt_cv_file_magic_cmd='$MAGIC_CMD'
8318
lt_cv_file_magic_test_file=
8319
lt_cv_deplibs_check_method='unknown'
8320
# Need to set the preceding variable on all platforms that support
8321
# interlibrary dependencies.
8322
# 'none' -- dependencies not supported.
8323
# `unknown' -- same as none, but documents that we really don't know.
8324
# 'pass_all' -- all dependencies passed with no checks.
8325
# 'test_compile' -- check by making test program.
8326
# 'file_magic [[regex]]' -- check by looking for files in library path
8327
# which responds to the $file_magic_cmd with a given extended regex.
8328
# If you have `file' or equivalent on your system and you're not sure
8329
# whether `pass_all' will *always* work, you probably want this one.
8333
lt_cv_deplibs_check_method=pass_all
8337
lt_cv_deplibs_check_method=pass_all
8341
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8342
lt_cv_file_magic_cmd='/usr/bin/file -L'
8343
lt_cv_file_magic_test_file=/shlib/libc.so
8347
lt_cv_deplibs_check_method=pass_all
8351
# win32_libid is a shell function defined in ltmain.sh
8352
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8353
lt_cv_file_magic_cmd='win32_libid'
8356
darwin* | rhapsody*)
8357
# this will be overwritten by pass_all, but leave it in just in case
8358
lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
8359
lt_cv_file_magic_cmd='/usr/bin/file -L'
8361
rhapsody* | darwin1.[012])
8362
lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
8365
lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
8368
lt_cv_deplibs_check_method=pass_all
8371
freebsd* | kfreebsd*-gnu)
8372
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8375
# Not sure whether the presence of OpenBSD here was a mistake.
8376
# Let's accept both of them until this is cleared up.
8377
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
8378
lt_cv_file_magic_cmd=/usr/bin/file
8379
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8383
lt_cv_deplibs_check_method=pass_all
8388
lt_cv_deplibs_check_method=pass_all
8391
hpux10.20* | hpux11*)
8392
lt_cv_file_magic_cmd=/usr/bin/file
8395
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8396
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8399
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]'
8400
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8403
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
8404
lt_cv_file_magic_test_file=/usr/lib/libc.sl
8409
irix5* | irix6* | nonstopux*)
8411
irix5* | nonstopux*)
8412
# this will be overridden with pass_all, but let us keep it just in case
8413
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
8417
*-32|*"-32 ") libmagic=32-bit;;
8418
*-n32|*"-n32 ") libmagic=N32;;
8419
*-64|*"-64 ") libmagic=64-bit;;
8420
*) libmagic=never-match;;
8422
# this will be overridden with pass_all, but let us keep it just in case
8423
lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
8426
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
8427
lt_cv_deplibs_check_method=pass_all
8430
# This must be Linux ELF.
8433
alpha* | hppa* | i*86 | ia64* | m68* | mips* | powerpc* | sparc* | s390* | sh* | x86_64* )
8434
lt_cv_deplibs_check_method=pass_all ;;
8435
# the debian people say, arm and glibc 2.3.1 works for them with pass_all
8437
lt_cv_deplibs_check_method=pass_all ;;
8439
# glibc up to 2.1.1 does not perform some relocations on ARM
8440
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
8442
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
8446
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
8447
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8449
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8454
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8455
lt_cv_file_magic_cmd=/usr/bin/file
8456
lt_cv_file_magic_test_file=/usr/lib/libnls.so
8460
lt_cv_deplibs_check_method=unknown
8464
lt_cv_file_magic_cmd=/usr/bin/file
8465
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8466
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8467
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
8469
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
8473
osf3* | osf4* | osf5*)
8474
# this will be overridden with pass_all, but let us keep it just in case
8475
lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
8476
lt_cv_file_magic_test_file=/shlib/libc.so
8477
lt_cv_deplibs_check_method=pass_all
8481
lt_cv_deplibs_check_method=pass_all
8485
lt_cv_deplibs_check_method=pass_all
8486
lt_cv_file_magic_test_file=/lib/libc.so
8489
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8490
case $host_vendor in
8492
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]'
8493
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8496
lt_cv_deplibs_check_method=pass_all
8499
lt_cv_file_magic_cmd='/bin/file'
8500
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8503
lt_cv_file_magic_cmd='/bin/file'
8504
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8505
lt_cv_file_magic_test_file=/lib/libc.so
8508
lt_cv_deplibs_check_method=pass_all
8513
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
8514
lt_cv_deplibs_check_method=pass_all
8519
{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
8520
$as_echo "$lt_cv_deplibs_check_method" >&6; }
8521
file_magic_cmd=$lt_cv_file_magic_cmd
8522
deplibs_check_method=$lt_cv_deplibs_check_method
8523
test -z "$deplibs_check_method" && deplibs_check_method=unknown
8526
# If no C compiler was specified, use CC.
8529
# Allow CC to be a program name with arguments.
8532
# Check whether --enable-libtool-lock was given.
8533
if test "${enable_libtool_lock+set}" = set; then
8534
enableval=$enable_libtool_lock;
8537
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8539
# Some flags need to be propagated to the compiler or linker for good
8543
# Find out which ABI we are using.
8544
echo 'int i;' > conftest.$ac_ext
8545
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8546
(eval $ac_compile) 2>&5
8548
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549
(exit $ac_status); }; then
8550
case `/usr/bin/file conftest.$ac_objext` in
8562
# Find out which ABI we are using.
8563
echo '#line 8563 "configure"' > conftest.$ac_ext
8564
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8565
(eval $ac_compile) 2>&5
8567
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568
(exit $ac_status); }; then
8569
if test "$lt_cv_prog_gnu_ld" = yes; then
8570
case `/usr/bin/file conftest.$ac_objext` in
8572
LD="${LD-ld} -melf32bsmip"
8575
LD="${LD-ld} -melf32bmipn32"
8578
LD="${LD-ld} -melf64bmip"
8582
case `/usr/bin/file conftest.$ac_objext` in
8598
x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
8599
# Find out which ABI we are using.
8600
echo 'int i;' > conftest.$ac_ext
8601
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8602
(eval $ac_compile) 2>&5
8604
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605
(exit $ac_status); }; then
8606
case "`/usr/bin/file conftest.o`" in
8611
LD="${LD-ld} -m elf_i386"
8614
LD="${LD-ld} -m elf32ppclinux"
8617
LD="${LD-ld} -m elf_s390"
8620
LD="${LD-ld} -m elf32_sparc"
8628
LD="${LD-ld} -m elf_x86_64"
8630
ppc*-*linux*|powerpc*-*linux*)
8631
LD="${LD-ld} -m elf64ppc"
8634
LD="${LD-ld} -m elf64_s390"
8637
LD="${LD-ld} -m elf64_sparc"
8647
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
8648
SAVE_CFLAGS="$CFLAGS"
8649
CFLAGS="$CFLAGS -belf"
8650
{ $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
8651
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8652
if test "${lt_cv_cc_needs_belf+set}" = set; then
8653
$as_echo_n "(cached) " >&6
8656
ac_cpp='$CPP $CPPFLAGS'
8657
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8658
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8659
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8661
cat >conftest.$ac_ext <<_ACEOF
8664
cat confdefs.h >>conftest.$ac_ext
8665
cat >>conftest.$ac_ext <<_ACEOF
8666
/* end confdefs.h. */
8676
rm -f conftest.$ac_objext conftest$ac_exeext
8677
if { (ac_try="$ac_link"
8679
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8680
*) ac_try_echo=$ac_try;;
8682
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8683
$as_echo "$ac_try_echo") >&5
8684
(eval "$ac_link") 2>conftest.er1
8686
grep -v '^ *+' conftest.er1 >conftest.err
8688
cat conftest.err >&5
8689
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690
(exit $ac_status); } && {
8691
test -z "$ac_c_werror_flag" ||
8692
test ! -s conftest.err
8693
} && test -s conftest$ac_exeext && {
8694
test "$cross_compiling" = yes ||
8695
$as_test_x conftest$ac_exeext
8697
lt_cv_cc_needs_belf=yes
8699
$as_echo "$as_me: failed program was:" >&5
8700
sed 's/^/| /' conftest.$ac_ext >&5
8702
lt_cv_cc_needs_belf=no
8705
rm -rf conftest.dSYM
8706
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8707
conftest$ac_exeext conftest.$ac_ext
8709
ac_cpp='$CPP $CPPFLAGS'
8710
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8711
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8712
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8715
{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
8716
$as_echo "$lt_cv_cc_needs_belf" >&6; }
8717
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8718
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8719
CFLAGS="$SAVE_CFLAGS"
8725
need_locks="$enable_libtool_lock"
8729
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8730
$as_echo_n "checking for ANSI C header files... " >&6; }
8731
if test "${ac_cv_header_stdc+set}" = set; then
8732
$as_echo_n "(cached) " >&6
8734
cat >conftest.$ac_ext <<_ACEOF
8737
cat confdefs.h >>conftest.$ac_ext
8738
cat >>conftest.$ac_ext <<_ACEOF
8739
/* end confdefs.h. */
8753
rm -f conftest.$ac_objext
8754
if { (ac_try="$ac_compile"
8756
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8757
*) ac_try_echo=$ac_try;;
8759
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8760
$as_echo "$ac_try_echo") >&5
8761
(eval "$ac_compile") 2>conftest.er1
8763
grep -v '^ *+' conftest.er1 >conftest.err
8765
cat conftest.err >&5
8766
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767
(exit $ac_status); } && {
8768
test -z "$ac_c_werror_flag" ||
8769
test ! -s conftest.err
8770
} && test -s conftest.$ac_objext; then
8771
ac_cv_header_stdc=yes
8773
$as_echo "$as_me: failed program was:" >&5
8774
sed 's/^/| /' conftest.$ac_ext >&5
8776
ac_cv_header_stdc=no
8779
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8781
if test $ac_cv_header_stdc = yes; then
8782
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8783
cat >conftest.$ac_ext <<_ACEOF
8786
cat confdefs.h >>conftest.$ac_ext
8787
cat >>conftest.$ac_ext <<_ACEOF
8788
/* end confdefs.h. */
8792
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8793
$EGREP "memchr" >/dev/null 2>&1; then
8796
ac_cv_header_stdc=no
8802
if test $ac_cv_header_stdc = yes; then
8803
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8804
cat >conftest.$ac_ext <<_ACEOF
8807
cat confdefs.h >>conftest.$ac_ext
8808
cat >>conftest.$ac_ext <<_ACEOF
8809
/* end confdefs.h. */
8813
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8814
$EGREP "free" >/dev/null 2>&1; then
8817
ac_cv_header_stdc=no
8823
if test $ac_cv_header_stdc = yes; then
8824
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8825
if test "$cross_compiling" = yes; then
8828
cat >conftest.$ac_ext <<_ACEOF
8831
cat confdefs.h >>conftest.$ac_ext
8832
cat >>conftest.$ac_ext <<_ACEOF
8833
/* end confdefs.h. */
8836
#if ((' ' & 0x0FF) == 0x020)
8837
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8838
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8840
# define ISLOWER(c) \
8841
(('a' <= (c) && (c) <= 'i') \
8842
|| ('j' <= (c) && (c) <= 'r') \
8843
|| ('s' <= (c) && (c) <= 'z'))
8844
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8847
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8852
for (i = 0; i < 256; i++)
8853
if (XOR (islower (i), ISLOWER (i))
8854
|| toupper (i) != TOUPPER (i))
8859
rm -f conftest$ac_exeext
8860
if { (ac_try="$ac_link"
8862
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8863
*) ac_try_echo=$ac_try;;
8865
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8866
$as_echo "$ac_try_echo") >&5
8867
(eval "$ac_link") 2>&5
8869
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8871
{ (case "(($ac_try" in
8872
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8873
*) ac_try_echo=$ac_try;;
8875
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8876
$as_echo "$ac_try_echo") >&5
8877
(eval "$ac_try") 2>&5
8879
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880
(exit $ac_status); }; }; then
8883
$as_echo "$as_me: program exited with status $ac_status" >&5
8884
$as_echo "$as_me: failed program was:" >&5
8885
sed 's/^/| /' conftest.$ac_ext >&5
8888
ac_cv_header_stdc=no
8890
rm -rf conftest.dSYM
8891
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8897
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8898
$as_echo "$ac_cv_header_stdc" >&6; }
8899
if test $ac_cv_header_stdc = yes; then
8901
cat >>confdefs.h <<\_ACEOF
8902
#define STDC_HEADERS 1
8907
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8917
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8918
inttypes.h stdint.h unistd.h
8920
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8921
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8922
$as_echo_n "checking for $ac_header... " >&6; }
8923
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8924
$as_echo_n "(cached) " >&6
8926
cat >conftest.$ac_ext <<_ACEOF
8929
cat confdefs.h >>conftest.$ac_ext
8930
cat >>conftest.$ac_ext <<_ACEOF
8931
/* end confdefs.h. */
8932
$ac_includes_default
8934
#include <$ac_header>
8936
rm -f conftest.$ac_objext
8937
if { (ac_try="$ac_compile"
8939
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8940
*) ac_try_echo=$ac_try;;
8942
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8943
$as_echo "$ac_try_echo") >&5
8944
(eval "$ac_compile") 2>conftest.er1
8946
grep -v '^ *+' conftest.er1 >conftest.err
8948
cat conftest.err >&5
8949
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950
(exit $ac_status); } && {
8951
test -z "$ac_c_werror_flag" ||
8952
test ! -s conftest.err
8953
} && test -s conftest.$ac_objext; then
8954
eval "$as_ac_Header=yes"
8956
$as_echo "$as_me: failed program was:" >&5
8957
sed 's/^/| /' conftest.$ac_ext >&5
8959
eval "$as_ac_Header=no"
8962
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8964
ac_res=`eval 'as_val=${'$as_ac_Header'}
8965
$as_echo "$as_val"'`
8966
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8967
$as_echo "$ac_res" >&6; }
8968
if test `eval 'as_val=${'$as_ac_Header'}
8969
$as_echo "$as_val"'` = yes; then
8970
cat >>confdefs.h <<_ACEOF
8971
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8980
for ac_header in dlfcn.h
8982
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8983
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8984
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8985
$as_echo_n "checking for $ac_header... " >&6; }
8986
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8987
$as_echo_n "(cached) " >&6
8989
ac_res=`eval 'as_val=${'$as_ac_Header'}
8990
$as_echo "$as_val"'`
8991
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8992
$as_echo "$ac_res" >&6; }
8994
# Is the header compilable?
8995
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
8996
$as_echo_n "checking $ac_header usability... " >&6; }
8997
cat >conftest.$ac_ext <<_ACEOF
9000
cat confdefs.h >>conftest.$ac_ext
9001
cat >>conftest.$ac_ext <<_ACEOF
9002
/* end confdefs.h. */
9003
$ac_includes_default
9004
#include <$ac_header>
9006
rm -f conftest.$ac_objext
9007
if { (ac_try="$ac_compile"
9009
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9010
*) ac_try_echo=$ac_try;;
9012
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9013
$as_echo "$ac_try_echo") >&5
9014
(eval "$ac_compile") 2>conftest.er1
9016
grep -v '^ *+' conftest.er1 >conftest.err
9018
cat conftest.err >&5
9019
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020
(exit $ac_status); } && {
9021
test -z "$ac_c_werror_flag" ||
9022
test ! -s conftest.err
9023
} && test -s conftest.$ac_objext; then
9024
ac_header_compiler=yes
9026
$as_echo "$as_me: failed program was:" >&5
9027
sed 's/^/| /' conftest.$ac_ext >&5
9029
ac_header_compiler=no
9032
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9033
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9034
$as_echo "$ac_header_compiler" >&6; }
9036
# Is the header present?
9037
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9038
$as_echo_n "checking $ac_header presence... " >&6; }
9039
cat >conftest.$ac_ext <<_ACEOF
9042
cat confdefs.h >>conftest.$ac_ext
9043
cat >>conftest.$ac_ext <<_ACEOF
9044
/* end confdefs.h. */
9045
#include <$ac_header>
9047
if { (ac_try="$ac_cpp conftest.$ac_ext"
9049
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9050
*) ac_try_echo=$ac_try;;
9052
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9053
$as_echo "$ac_try_echo") >&5
9054
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9056
grep -v '^ *+' conftest.er1 >conftest.err
9058
cat conftest.err >&5
9059
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060
(exit $ac_status); } >/dev/null && {
9061
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9062
test ! -s conftest.err
9064
ac_header_preproc=yes
9066
$as_echo "$as_me: failed program was:" >&5
9067
sed 's/^/| /' conftest.$ac_ext >&5
9069
ac_header_preproc=no
9072
rm -f conftest.err conftest.$ac_ext
9073
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9074
$as_echo "$ac_header_preproc" >&6; }
9076
# So? What about this header?
9077
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9079
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9080
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9081
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9082
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9083
ac_header_preproc=yes
9086
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9087
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9088
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9089
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9090
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9091
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9092
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9093
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9094
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9095
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9096
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9097
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9101
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9102
$as_echo_n "checking for $ac_header... " >&6; }
9103
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9104
$as_echo_n "(cached) " >&6
9106
eval "$as_ac_Header=\$ac_header_preproc"
9108
ac_res=`eval 'as_val=${'$as_ac_Header'}
9109
$as_echo "$as_val"'`
9110
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9111
$as_echo "$ac_res" >&6; }
9114
if test `eval 'as_val=${'$as_ac_Header'}
9115
$as_echo "$as_val"'` = yes; then
9116
cat >>confdefs.h <<_ACEOF
9117
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9125
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
9126
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9127
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
9128
if test -n "$ac_tool_prefix"; then
9129
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
9131
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9132
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9133
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9134
$as_echo_n "checking for $ac_word... " >&6; }
9135
if test "${ac_cv_prog_F77+set}" = set; then
9136
$as_echo_n "(cached) " >&6
9138
if test -n "$F77"; then
9139
ac_cv_prog_F77="$F77" # Let the user override the test.
9141
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9145
test -z "$as_dir" && as_dir=.
9146
for ac_exec_ext in '' $ac_executable_extensions; do
9147
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9148
ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
9149
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9159
if test -n "$F77"; then
9160
{ $as_echo "$as_me:$LINENO: result: $F77" >&5
9161
$as_echo "$F77" >&6; }
9163
{ $as_echo "$as_me:$LINENO: result: no" >&5
9164
$as_echo "no" >&6; }
9168
test -n "$F77" && break
9171
if test -z "$F77"; then
9173
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
9175
# Extract the first word of "$ac_prog", so it can be a program name with args.
9176
set dummy $ac_prog; ac_word=$2
9177
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9178
$as_echo_n "checking for $ac_word... " >&6; }
9179
if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
9180
$as_echo_n "(cached) " >&6
9182
if test -n "$ac_ct_F77"; then
9183
ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
9185
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9189
test -z "$as_dir" && as_dir=.
9190
for ac_exec_ext in '' $ac_executable_extensions; do
9191
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9192
ac_cv_prog_ac_ct_F77="$ac_prog"
9193
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9202
ac_ct_F77=$ac_cv_prog_ac_ct_F77
9203
if test -n "$ac_ct_F77"; then
9204
{ $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
9205
$as_echo "$ac_ct_F77" >&6; }
9207
{ $as_echo "$as_me:$LINENO: result: no" >&5
9208
$as_echo "no" >&6; }
9212
test -n "$ac_ct_F77" && break
9215
if test "x$ac_ct_F77" = x; then
9218
case $cross_compiling:$ac_tool_warned in
9220
{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9221
whose name does not start with the host triplet. If you think this
9222
configuration is useful to you, please write to autoconf@gnu.org." >&5
9223
$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9224
whose name does not start with the host triplet. If you think this
9225
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9226
ac_tool_warned=yes ;;
9233
# Provide some information about the compiler.
9234
$as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
9237
{ (ac_try="$ac_compiler --version >&5"
9239
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9240
*) ac_try_echo=$ac_try;;
9242
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9243
$as_echo "$ac_try_echo") >&5
9244
(eval "$ac_compiler --version >&5") 2>&5
9246
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247
(exit $ac_status); }
9248
{ (ac_try="$ac_compiler -v >&5"
9250
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9251
*) ac_try_echo=$ac_try;;
9253
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9254
$as_echo "$ac_try_echo") >&5
9255
(eval "$ac_compiler -v >&5") 2>&5
9257
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258
(exit $ac_status); }
9259
{ (ac_try="$ac_compiler -V >&5"
9261
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9262
*) ac_try_echo=$ac_try;;
9264
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9265
$as_echo "$ac_try_echo") >&5
9266
(eval "$ac_compiler -V >&5") 2>&5
9268
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269
(exit $ac_status); }
9272
# If we don't use `.F' as extension, the preprocessor is not run on the
9273
# input file. (Note that this only needs to work for GNU compilers.)
9276
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
9277
$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
9278
if test "${ac_cv_f77_compiler_gnu+set}" = set; then
9279
$as_echo_n "(cached) " >&6
9281
cat >conftest.$ac_ext <<_ACEOF
9289
rm -f conftest.$ac_objext
9290
if { (ac_try="$ac_compile"
9292
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9293
*) ac_try_echo=$ac_try;;
9295
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9296
$as_echo "$ac_try_echo") >&5
9297
(eval "$ac_compile") 2>conftest.er1
9299
grep -v '^ *+' conftest.er1 >conftest.err
9301
cat conftest.err >&5
9302
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9303
(exit $ac_status); } && {
9304
test -z "$ac_f77_werror_flag" ||
9305
test ! -s conftest.err
9306
} && test -s conftest.$ac_objext; then
9309
$as_echo "$as_me: failed program was:" >&5
9310
sed 's/^/| /' conftest.$ac_ext >&5
9315
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9316
ac_cv_f77_compiler_gnu=$ac_compiler_gnu
9319
{ $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
9320
$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
9322
ac_test_FFLAGS=${FFLAGS+set}
9323
ac_save_FFLAGS=$FFLAGS
9325
{ $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
9326
$as_echo_n "checking whether $F77 accepts -g... " >&6; }
9327
if test "${ac_cv_prog_f77_g+set}" = set; then
9328
$as_echo_n "(cached) " >&6
9331
cat >conftest.$ac_ext <<_ACEOF
9336
rm -f conftest.$ac_objext
9337
if { (ac_try="$ac_compile"
9339
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9340
*) ac_try_echo=$ac_try;;
9342
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9343
$as_echo "$ac_try_echo") >&5
9344
(eval "$ac_compile") 2>conftest.er1
9346
grep -v '^ *+' conftest.er1 >conftest.err
9348
cat conftest.err >&5
9349
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9350
(exit $ac_status); } && {
9351
test -z "$ac_f77_werror_flag" ||
9352
test ! -s conftest.err
9353
} && test -s conftest.$ac_objext; then
9354
ac_cv_prog_f77_g=yes
9356
$as_echo "$as_me: failed program was:" >&5
9357
sed 's/^/| /' conftest.$ac_ext >&5
9362
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9365
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
9366
$as_echo "$ac_cv_prog_f77_g" >&6; }
9367
if test "$ac_test_FFLAGS" = set; then
9368
FFLAGS=$ac_save_FFLAGS
9369
elif test $ac_cv_prog_f77_g = yes; then
9370
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
9376
if test "x$ac_cv_f77_compiler_gnu" = xyes; then
9383
if test $ac_compiler_gnu = yes; then
9389
ac_cpp='$CPP $CPPFLAGS'
9390
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9391
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9392
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9396
# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
9398
# find the maximum length of command line arguments
9399
{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
9400
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
9401
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
9402
$as_echo_n "(cached) " >&6
9409
# On DJGPP, this test can blow up pretty badly due to problems in libc
9410
# (any single argument exceeding 2000 bytes causes a buffer overrun
9411
# during glob expansion). Even if it were fixed, the result of this
9412
# check would be larger than it should be.
9413
lt_cv_sys_max_cmd_len=12288; # 12K is about right
9417
# Under GNU Hurd, this test is not required because there is
9418
# no limit to the length of command line arguments.
9419
# Libtool will interpret -1 as no limit whatsoever
9420
lt_cv_sys_max_cmd_len=-1;
9424
# On Win9x/ME, this test blows up -- it succeeds, but takes
9425
# about 5 minutes as the teststring grows exponentially.
9426
# Worse, since 9x/ME are not pre-emptively multitasking,
9427
# you end up with a "frozen" computer, even though with patience
9428
# the test eventually succeeds (with a max line length of 256k).
9429
# Instead, let's just punt: use the minimum linelength reported by
9430
# all of the supported platforms: 8192 (on NT/2K/XP).
9431
lt_cv_sys_max_cmd_len=8192;
9435
# If test is not a shell built-in, we'll probably end up computing a
9436
# maximum length that is only half of the actual maximum length, but
9438
while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
9439
= "XX$testring") >/dev/null 2>&1 &&
9440
new_result=`expr "X$testring" : ".*" 2>&1` &&
9441
lt_cv_sys_max_cmd_len=$new_result &&
9442
test $i != 17 # 1/2 MB should be enough
9445
testring=$testring$testring
9448
# Add a significant safety factor because C++ compilers can tack on massive
9449
# amounts of additional arguments before passing them to the linker.
9450
# It appears as though 1/2 is a usable value.
9451
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9457
if test -n $lt_cv_sys_max_cmd_len ; then
9458
{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
9459
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9461
{ $as_echo "$as_me:$LINENO: result: none" >&5
9462
$as_echo "none" >&6; }
9468
# Check for command to grab the raw symbol name followed by C symbol from nm.
9469
{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9470
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9471
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9472
$as_echo_n "(cached) " >&6
9475
# These are sane defaults that work on at least a few old systems.
9476
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9478
# Character class describing NM global symbol codes.
9479
symcode='[BCDEGRST]'
9481
# Regexp to match symbols that can be accessed directly from C.
9482
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9484
# Transform the above into a raw symbol and a C symbol.
9485
symxfrm='\1 \2\3 \3'
9487
# Transform an extracted symbol line into a proper C declaration
9488
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9490
# Transform an extracted symbol line into symbol name and symbol address
9491
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'"
9493
# Define system-specific variables.
9498
cygwin* | mingw* | pw32*)
9499
symcode='[ABCDGISTW]'
9501
hpux*) # Its linker distinguishes data from code symbols
9502
if test "$host_cpu" = ia64; then
9503
symcode='[ABCDEGRST]'
9505
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9506
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'"
9509
symcode='[BCDEGRST]'
9512
symcode='[BCDEGQRST]'
9522
# Handle CRLF in mingw tool chain
9526
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9530
# If we're using GNU nm, then use its standard symbol codes.
9531
case `$NM -V 2>&1` in
9532
*GNU* | *'with BFD'*)
9533
symcode='[ABCDGISTW]' ;;
9536
# Try without a prefix undercore, then with it.
9537
for ac_symprfx in "" "_"; do
9539
# Write the raw and C identifiers.
9540
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
9542
# Check to see that the pipe works correctly.
9546
cat > conftest.$ac_ext <<EOF
9551
void nm_test_func(){}
9555
int main(){nm_test_var='a';nm_test_func();return(0);}
9558
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9559
(eval $ac_compile) 2>&5
9561
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9562
(exit $ac_status); }; then
9563
# Now try to grab the symbols.
9565
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9566
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9568
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569
(exit $ac_status); } && test -s "$nlist"; then
9570
# Try sorting and uniquifying the output.
9571
if sort "$nlist" | uniq > "$nlist"T; then
9572
mv -f "$nlist"T "$nlist"
9577
# Make sure that we snagged all the symbols we need.
9578
if grep ' nm_test_var$' "$nlist" >/dev/null; then
9579
if grep ' nm_test_func$' "$nlist" >/dev/null; then
9580
cat <<EOF > conftest.$ac_ext
9586
# Now generate the symbol file.
9587
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9589
cat <<EOF >> conftest.$ac_ext
9590
#if defined (__STDC__) && __STDC__
9591
# define lt_ptr_t void *
9593
# define lt_ptr_t char *
9597
/* The mapping between symbol names and symbols. */
9602
lt_preloaded_symbols[] =
9605
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9606
cat <<\EOF >> conftest.$ac_ext
9614
# Now try linking the two files.
9615
mv conftest.$ac_objext conftstm.$ac_objext
9616
lt_save_LIBS="$LIBS"
9617
lt_save_CFLAGS="$CFLAGS"
9618
LIBS="conftstm.$ac_objext"
9619
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9620
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9621
(eval $ac_link) 2>&5
9623
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9624
(exit $ac_status); } && test -s conftest${ac_exeext}; then
9627
LIBS="$lt_save_LIBS"
9628
CFLAGS="$lt_save_CFLAGS"
9630
echo "cannot find nm_test_func in $nlist" >&5
9633
echo "cannot find nm_test_var in $nlist" >&5
9636
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9639
echo "$progname: failed program was:" >&5
9640
cat conftest.$ac_ext >&5
9642
rm -f conftest* conftst*
9644
# Do not use the global_symbol_pipe unless it works.
9645
if test "$pipe_works" = yes; then
9648
lt_cv_sys_global_symbol_pipe=
9654
if test -z "$lt_cv_sys_global_symbol_pipe"; then
9655
lt_cv_sys_global_symbol_to_cdecl=
9657
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9658
{ $as_echo "$as_me:$LINENO: result: failed" >&5
9659
$as_echo "failed" >&6; }
9661
{ $as_echo "$as_me:$LINENO: result: ok" >&5
9662
$as_echo "ok" >&6; }
9665
{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
9666
$as_echo_n "checking for objdir... " >&6; }
9667
if test "${lt_cv_objdir+set}" = set; then
9668
$as_echo_n "(cached) " >&6
9670
rm -f .libs 2>/dev/null
9671
mkdir .libs 2>/dev/null
9672
if test -d .libs; then
9675
# MS-DOS does not allow filenames that begin with a dot.
9678
rmdir .libs 2>/dev/null
9680
{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
9681
$as_echo "$lt_cv_objdir" >&6; }
9682
objdir=$lt_cv_objdir
9690
# AIX sometimes has problems with the GCC collect2 program. For some
9691
# reason, if we set the COLLECT_NAMES environment variable, the problems
9692
# vanish in a puff of smoke.
9693
if test "X${COLLECT_NAMES+set}" != Xset; then
9695
export COLLECT_NAMES
9700
# Sed substitution that helps us do robust quoting. It backslashifies
9701
# metacharacters that are still active within double-quoted strings.
9702
Xsed='sed -e s/^X//'
9703
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
9705
# Same as above, but do not quote variable references.
9706
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
9708
# Sed substitution to delay expansion of an escaped shell variable in a
9709
# double_quote_subst'ed string.
9710
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9712
# Sed substitution to avoid accidental globbing in evaled expressions
9713
no_glob_subst='s/\*/\\\*/g'
9719
default_ofile=libtool
9720
can_build_shared=yes
9722
# All known linkers require a `.a' archive for static linking (except M$VC,
9723
# which needs '.lib').
9725
ltmain="$ac_aux_dir/ltmain.sh"
9726
ofile="$default_ofile"
9727
with_gnu_ld="$lt_cv_prog_gnu_ld"
9729
if test -n "$ac_tool_prefix"; then
9730
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9731
set dummy ${ac_tool_prefix}ar; ac_word=$2
9732
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9733
$as_echo_n "checking for $ac_word... " >&6; }
9734
if test "${ac_cv_prog_AR+set}" = set; then
9735
$as_echo_n "(cached) " >&6
9737
if test -n "$AR"; then
9738
ac_cv_prog_AR="$AR" # Let the user override the test.
9740
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9744
test -z "$as_dir" && as_dir=.
9745
for ac_exec_ext in '' $ac_executable_extensions; do
9746
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9747
ac_cv_prog_AR="${ac_tool_prefix}ar"
9748
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9758
if test -n "$AR"; then
9759
{ $as_echo "$as_me:$LINENO: result: $AR" >&5
9760
$as_echo "$AR" >&6; }
9762
{ $as_echo "$as_me:$LINENO: result: no" >&5
9763
$as_echo "no" >&6; }
9768
if test -z "$ac_cv_prog_AR"; then
9770
# Extract the first word of "ar", so it can be a program name with args.
9771
set dummy ar; ac_word=$2
9772
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9773
$as_echo_n "checking for $ac_word... " >&6; }
9774
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9775
$as_echo_n "(cached) " >&6
9777
if test -n "$ac_ct_AR"; then
9778
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9780
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9784
test -z "$as_dir" && as_dir=.
9785
for ac_exec_ext in '' $ac_executable_extensions; do
9786
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9787
ac_cv_prog_ac_ct_AR="ar"
9788
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9797
ac_ct_AR=$ac_cv_prog_ac_ct_AR
9798
if test -n "$ac_ct_AR"; then
9799
{ $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9800
$as_echo "$ac_ct_AR" >&6; }
9802
{ $as_echo "$as_me:$LINENO: result: no" >&5
9803
$as_echo "no" >&6; }
9806
if test "x$ac_ct_AR" = x; then
9809
case $cross_compiling:$ac_tool_warned in
9811
{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9812
whose name does not start with the host triplet. If you think this
9813
configuration is useful to you, please write to autoconf@gnu.org." >&5
9814
$as_echo "$as_me: 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." >&2;}
9817
ac_tool_warned=yes ;;
9825
if test -n "$ac_tool_prefix"; then
9826
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9827
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9828
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9829
$as_echo_n "checking for $ac_word... " >&6; }
9830
if test "${ac_cv_prog_RANLIB+set}" = set; then
9831
$as_echo_n "(cached) " >&6
9833
if test -n "$RANLIB"; then
9834
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9836
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9840
test -z "$as_dir" && as_dir=.
9841
for ac_exec_ext in '' $ac_executable_extensions; do
9842
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9843
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9844
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9853
RANLIB=$ac_cv_prog_RANLIB
9854
if test -n "$RANLIB"; then
9855
{ $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
9856
$as_echo "$RANLIB" >&6; }
9858
{ $as_echo "$as_me:$LINENO: result: no" >&5
9859
$as_echo "no" >&6; }
9864
if test -z "$ac_cv_prog_RANLIB"; then
9865
ac_ct_RANLIB=$RANLIB
9866
# Extract the first word of "ranlib", so it can be a program name with args.
9867
set dummy ranlib; ac_word=$2
9868
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9869
$as_echo_n "checking for $ac_word... " >&6; }
9870
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9871
$as_echo_n "(cached) " >&6
9873
if test -n "$ac_ct_RANLIB"; then
9874
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9876
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9880
test -z "$as_dir" && as_dir=.
9881
for ac_exec_ext in '' $ac_executable_extensions; do
9882
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9883
ac_cv_prog_ac_ct_RANLIB="ranlib"
9884
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9893
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9894
if test -n "$ac_ct_RANLIB"; then
9895
{ $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9896
$as_echo "$ac_ct_RANLIB" >&6; }
9898
{ $as_echo "$as_me:$LINENO: result: no" >&5
9899
$as_echo "no" >&6; }
9902
if test "x$ac_ct_RANLIB" = x; then
9905
case $cross_compiling:$ac_tool_warned in
9907
{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
9908
whose name does not start with the host triplet. If you think this
9909
configuration is useful to you, please write to autoconf@gnu.org." >&5
9910
$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
9911
whose name does not start with the host triplet. If you think this
9912
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
9913
ac_tool_warned=yes ;;
9915
RANLIB=$ac_ct_RANLIB
9918
RANLIB="$ac_cv_prog_RANLIB"
9921
if test -n "$ac_tool_prefix"; then
9922
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9923
set dummy ${ac_tool_prefix}strip; ac_word=$2
9924
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9925
$as_echo_n "checking for $ac_word... " >&6; }
9926
if test "${ac_cv_prog_STRIP+set}" = set; then
9927
$as_echo_n "(cached) " >&6
9929
if test -n "$STRIP"; then
9930
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9932
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9936
test -z "$as_dir" && as_dir=.
9937
for ac_exec_ext in '' $ac_executable_extensions; do
9938
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9939
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9940
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9949
STRIP=$ac_cv_prog_STRIP
9950
if test -n "$STRIP"; then
9951
{ $as_echo "$as_me:$LINENO: result: $STRIP" >&5
9952
$as_echo "$STRIP" >&6; }
9954
{ $as_echo "$as_me:$LINENO: result: no" >&5
9955
$as_echo "no" >&6; }
9960
if test -z "$ac_cv_prog_STRIP"; then
9962
# Extract the first word of "strip", so it can be a program name with args.
9963
set dummy strip; ac_word=$2
9964
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9965
$as_echo_n "checking for $ac_word... " >&6; }
9966
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9967
$as_echo_n "(cached) " >&6
9969
if test -n "$ac_ct_STRIP"; then
9970
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9972
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9976
test -z "$as_dir" && as_dir=.
9977
for ac_exec_ext in '' $ac_executable_extensions; do
9978
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9979
ac_cv_prog_ac_ct_STRIP="strip"
9980
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9989
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9990
if test -n "$ac_ct_STRIP"; then
9991
{ $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9992
$as_echo "$ac_ct_STRIP" >&6; }
9994
{ $as_echo "$as_me:$LINENO: result: no" >&5
9995
$as_echo "no" >&6; }
9998
if test "x$ac_ct_STRIP" = x; then
10001
case $cross_compiling:$ac_tool_warned in
10003
{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
10004
whose name does not start with the host triplet. If you think this
10005
configuration is useful to you, please write to autoconf@gnu.org." >&5
10006
$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
10007
whose name does not start with the host triplet. If you think this
10008
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
10009
ac_tool_warned=yes ;;
10014
STRIP="$ac_cv_prog_STRIP"
10019
old_CFLAGS="$CFLAGS"
10021
# Set sane defaults for various variables
10022
test -z "$AR" && AR=ar
10023
test -z "$AR_FLAGS" && AR_FLAGS=cru
10024
test -z "$AS" && AS=as
10025
test -z "$CC" && CC=cc
10026
test -z "$LTCC" && LTCC=$CC
10027
test -z "$DLLTOOL" && DLLTOOL=dlltool
10028
test -z "$LD" && LD=ld
10029
test -z "$LN_S" && LN_S="ln -s"
10030
test -z "$MAGIC_CMD" && MAGIC_CMD=file
10031
test -z "$NM" && NM=nm
10032
test -z "$SED" && SED=sed
10033
test -z "$OBJDUMP" && OBJDUMP=objdump
10034
test -z "$RANLIB" && RANLIB=:
10035
test -z "$STRIP" && STRIP=:
10036
test -z "$ac_objext" && ac_objext=o
10038
# Determine commands to create old-style static archives.
10039
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
10040
old_postinstall_cmds='chmod 644 $oldlib'
10041
old_postuninstall_cmds=
10043
if test -n "$RANLIB"; then
10046
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
10049
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
10052
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10055
# Only perform the check for file, if the check method requires it
10056
case $deplibs_check_method in
10058
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10059
{ $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
10060
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10061
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10062
$as_echo_n "(cached) " >&6
10066
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10069
lt_save_MAGIC_CMD="$MAGIC_CMD"
10070
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10071
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10072
for ac_dir in $ac_dummy; do
10074
test -z "$ac_dir" && ac_dir=.
10075
if test -f $ac_dir/${ac_tool_prefix}file; then
10076
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10077
if test -n "$file_magic_test_file"; then
10078
case $deplibs_check_method in
10080
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
10081
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10082
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10083
$EGREP "$file_magic_regex" > /dev/null; then
10088
*** Warning: the command libtool uses to detect shared libraries,
10089
*** $file_magic_cmd, produces output that libtool cannot recognize.
10090
*** The result is that libtool may fail to recognize shared libraries
10091
*** as such. This will affect the creation of libtool libraries that
10092
*** depend on shared libraries, but programs linked with such libtool
10093
*** libraries will work regardless of this problem. Nevertheless, you
10094
*** may want to report the problem to your system manager and/or to
10095
*** bug-libtool@gnu.org
10105
MAGIC_CMD="$lt_save_MAGIC_CMD"
10110
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10111
if test -n "$MAGIC_CMD"; then
10112
{ $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10113
$as_echo "$MAGIC_CMD" >&6; }
10115
{ $as_echo "$as_me:$LINENO: result: no" >&5
10116
$as_echo "no" >&6; }
10119
if test -z "$lt_cv_path_MAGIC_CMD"; then
10120
if test -n "$ac_tool_prefix"; then
10121
{ $as_echo "$as_me:$LINENO: checking for file" >&5
10122
$as_echo_n "checking for file... " >&6; }
10123
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
10124
$as_echo_n "(cached) " >&6
10128
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10131
lt_save_MAGIC_CMD="$MAGIC_CMD"
10132
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10133
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10134
for ac_dir in $ac_dummy; do
10136
test -z "$ac_dir" && ac_dir=.
10137
if test -f $ac_dir/file; then
10138
lt_cv_path_MAGIC_CMD="$ac_dir/file"
10139
if test -n "$file_magic_test_file"; then
10140
case $deplibs_check_method in
10142
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
10143
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10144
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10145
$EGREP "$file_magic_regex" > /dev/null; then
10150
*** Warning: the command libtool uses to detect shared libraries,
10151
*** $file_magic_cmd, produces output that libtool cannot recognize.
10152
*** The result is that libtool may fail to recognize shared libraries
10153
*** as such. This will affect the creation of libtool libraries that
10154
*** depend on shared libraries, but programs linked with such libtool
10155
*** libraries will work regardless of this problem. Nevertheless, you
10156
*** may want to report the problem to your system manager and/or to
10157
*** bug-libtool@gnu.org
10167
MAGIC_CMD="$lt_save_MAGIC_CMD"
10172
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10173
if test -n "$MAGIC_CMD"; then
10174
{ $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
10175
$as_echo "$MAGIC_CMD" >&6; }
10177
{ $as_echo "$as_me:$LINENO: result: no" >&5
10178
$as_echo "no" >&6; }
10191
enable_win32_dll=no
10193
# Check whether --enable-libtool-lock was given.
10194
if test "${enable_libtool_lock+set}" = set; then
10195
enableval=$enable_libtool_lock;
10198
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10201
# Check whether --with-pic was given.
10202
if test "${with_pic+set}" = set; then
10203
withval=$with_pic; pic_mode="$withval"
10208
test -z "$pic_mode" && pic_mode=default
10210
# Use C for the default configuration in the libtool script
10214
ac_cpp='$CPP $CPPFLAGS'
10215
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10216
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10217
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10220
# Source file extension for C test sources.
10223
# Object file extension for compiled C test sources.
10227
# Code to be used in simple compile tests
10228
lt_simple_compile_test_code="int some_variable = 0;\n"
10230
# Code to be used in simple link tests
10231
lt_simple_link_test_code='int main(){return(0);}\n'
10234
# If no C compiler was specified, use CC.
10237
# Allow CC to be a program name with arguments.
10242
# Check for any special shared library compilation flags.
10245
if test "$GCC" = no; then
10248
lt_prog_cc_shlib='-belf'
10252
if test -n "$lt_prog_cc_shlib"; then
10253
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
10254
$as_echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
10255
if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
10257
{ $as_echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
10258
$as_echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
10259
lt_cv_prog_cc_can_build_shared=no
10265
# Check to make sure the static flag actually works.
10267
{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
10268
$as_echo_n "checking if $compiler static flag $lt_prog_compiler_static works... " >&6; }
10269
if test "${lt_prog_compiler_static_works+set}" = set; then
10270
$as_echo_n "(cached) " >&6
10272
lt_prog_compiler_static_works=no
10273
save_LDFLAGS="$LDFLAGS"
10274
LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
10275
printf "$lt_simple_link_test_code" > conftest.$ac_ext
10276
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10277
# The compiler can only warn and ignore the option if not recognized
10278
# So say no if there are warnings
10279
if test -s conftest.err; then
10280
# Append any errors to the config.log.
10281
cat conftest.err 1>&5
10283
lt_prog_compiler_static_works=yes
10287
LDFLAGS="$save_LDFLAGS"
10290
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
10291
$as_echo "$lt_prog_compiler_static_works" >&6; }
10293
if test x"$lt_prog_compiler_static_works" = xyes; then
10296
lt_prog_compiler_static=
10302
lt_prog_compiler_no_builtin_flag=
10304
if test "$GCC" = yes; then
10305
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10308
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10309
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10310
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
10311
$as_echo_n "(cached) " >&6
10313
lt_cv_prog_compiler_rtti_exceptions=no
10314
ac_outfile=conftest.$ac_objext
10315
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10316
lt_compiler_flag="-fno-rtti -fno-exceptions"
10317
# Insert the option either (1) after the last *FLAGS variable, or
10318
# (2) before a word containing "conftest.", or (3) at the end.
10319
# Note that $ac_compile itself does not contain backslashes and begins
10320
# with a dollar sign (not a hyphen), so the echo should work correctly.
10321
# The option is referenced via a variable to avoid confusing sed.
10322
lt_compile=`echo "$ac_compile" | $SED \
10323
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10324
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10325
-e 's:$: $lt_compiler_flag:'`
10326
(eval echo "\"\$as_me:10326: $lt_compile\"" >&5)
10327
(eval "$lt_compile" 2>conftest.err)
10329
cat conftest.err >&5
10330
echo "$as_me:10330: \$? = $ac_status" >&5
10331
if (exit $ac_status) && test -s "$ac_outfile"; then
10332
# The compiler can only warn and ignore the option if not recognized
10333
# So say no if there are warnings
10334
if test ! -s conftest.err; then
10335
lt_cv_prog_compiler_rtti_exceptions=yes
10341
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10342
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10344
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10345
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10352
lt_prog_compiler_wl=
10353
lt_prog_compiler_pic=
10354
lt_prog_compiler_static=
10356
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10357
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10359
if test "$GCC" = yes; then
10360
lt_prog_compiler_wl='-Wl,'
10361
lt_prog_compiler_static='-static'
10365
# All AIX code is PIC.
10366
if test "$host_cpu" = ia64; then
10367
# AIX 5 now supports IA64 processor
10368
lt_prog_compiler_static='-Bstatic'
10373
# FIXME: we need at least 68020 code to build shared libraries, but
10374
# adding the `-m68020' flag to GCC prevents building anything better,
10376
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10379
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10380
# PIC is the default for these OSes.
10383
mingw* | pw32* | os2*)
10384
# This hack is so that the source file can tell whether it is being
10385
# built for inclusion in a dll (and should export symbols for example).
10386
lt_prog_compiler_pic='-DDLL_EXPORT'
10389
darwin* | rhapsody*)
10390
# PIC is the default on this platform
10391
# Common symbols not allowed in MH_DYLIB files
10392
lt_prog_compiler_pic='-fno-common'
10396
# Just because we use GCC doesn't mean we suddenly get shared libraries
10397
# on systems that don't support them.
10398
lt_prog_compiler_can_build_shared=no
10403
if test -d /usr/nec; then
10404
lt_prog_compiler_pic=-Kconform_pic
10409
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10410
# not for PA HP-UX.
10411
case "$host_cpu" in
10416
lt_prog_compiler_pic='-fPIC'
10422
lt_prog_compiler_pic='-fPIC'
10426
# PORTME Check for flag to pass linker flags through the system compiler.
10429
lt_prog_compiler_wl='-Wl,'
10430
if test "$host_cpu" = ia64; then
10431
# AIX 5 now supports IA64 processor
10432
lt_prog_compiler_static='-Bstatic'
10434
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10438
mingw* | pw32* | os2*)
10439
# This hack is so that the source file can tell whether it is being
10440
# built for inclusion in a dll (and should export symbols for example).
10441
lt_prog_compiler_pic='-DDLL_EXPORT'
10444
hpux9* | hpux10* | hpux11*)
10445
lt_prog_compiler_wl='-Wl,'
10446
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10447
# not for PA HP-UX.
10448
case "$host_cpu" in
10453
lt_prog_compiler_pic='+Z'
10456
# Is there a better lt_prog_compiler_static that works with the bundled CC?
10457
lt_prog_compiler_static='${wl}-a ${wl}archive'
10460
irix5* | irix6* | nonstopux*)
10461
lt_prog_compiler_wl='-Wl,'
10462
# PIC (with -KPIC) is the default.
10463
lt_prog_compiler_static='-non_shared'
10467
lt_prog_compiler_pic='-KPIC'
10468
lt_prog_compiler_static='-Bstatic'
10474
lt_prog_compiler_wl='-Wl,'
10475
lt_prog_compiler_pic='-KPIC'
10476
lt_prog_compiler_static='-static'
10479
lt_prog_compiler_wl='-Wl,'
10480
# All Alpha code is PIC.
10481
lt_prog_compiler_static='-non_shared'
10486
osf3* | osf4* | osf5*)
10487
lt_prog_compiler_wl='-Wl,'
10488
# All OSF/1 code is PIC.
10489
lt_prog_compiler_static='-non_shared'
10493
lt_prog_compiler_pic='-Kpic'
10494
lt_prog_compiler_static='-dn'
10498
lt_prog_compiler_wl='-Wl,'
10499
lt_prog_compiler_pic='-KPIC'
10500
lt_prog_compiler_static='-Bstatic'
10504
lt_prog_compiler_wl='-Qoption ld '
10505
lt_prog_compiler_pic='-PIC'
10506
lt_prog_compiler_static='-Bstatic'
10509
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10510
lt_prog_compiler_wl='-Wl,'
10511
lt_prog_compiler_pic='-KPIC'
10512
lt_prog_compiler_static='-Bstatic'
10516
if test -d /usr/nec ;then
10517
lt_prog_compiler_pic='-Kconform_pic'
10518
lt_prog_compiler_static='-Bstatic'
10523
lt_prog_compiler_pic='-pic'
10524
lt_prog_compiler_static='-Bstatic'
10528
lt_prog_compiler_can_build_shared=no
10533
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
10534
$as_echo "$lt_prog_compiler_pic" >&6; }
10537
# Check to make sure the PIC flag actually works.
10539
if test -n "$lt_prog_compiler_pic"; then
10541
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10542
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10543
if test "${lt_prog_compiler_pic_works+set}" = set; then
10544
$as_echo_n "(cached) " >&6
10546
lt_prog_compiler_pic_works=no
10547
ac_outfile=conftest.$ac_objext
10548
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10549
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10550
# Insert the option either (1) after the last *FLAGS variable, or
10551
# (2) before a word containing "conftest.", or (3) at the end.
10552
# Note that $ac_compile itself does not contain backslashes and begins
10553
# with a dollar sign (not a hyphen), so the echo should work correctly.
10554
# The option is referenced via a variable to avoid confusing sed.
10555
lt_compile=`echo "$ac_compile" | $SED \
10556
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10557
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10558
-e 's:$: $lt_compiler_flag:'`
10559
(eval echo "\"\$as_me:10559: $lt_compile\"" >&5)
10560
(eval "$lt_compile" 2>conftest.err)
10562
cat conftest.err >&5
10563
echo "$as_me:10563: \$? = $ac_status" >&5
10564
if (exit $ac_status) && test -s "$ac_outfile"; then
10565
# The compiler can only warn and ignore the option if not recognized
10566
# So say no if there are warnings
10567
if test ! -s conftest.err; then
10568
lt_prog_compiler_pic_works=yes
10574
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
10575
$as_echo "$lt_prog_compiler_pic_works" >&6; }
10577
if test x"$lt_prog_compiler_pic_works" = xyes; then
10578
case $lt_prog_compiler_pic in
10580
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10583
lt_prog_compiler_pic=
10584
lt_prog_compiler_can_build_shared=no
10589
# For platforms which do not support PIC, -DPIC is meaningless:
10591
lt_prog_compiler_pic=
10594
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10598
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10599
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10600
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
10601
$as_echo_n "(cached) " >&6
10603
lt_cv_prog_compiler_c_o=no
10604
$rm -r conftest 2>/dev/null
10608
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10610
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10611
# that will create temporary files in the current directory regardless of
10612
# the output directory. Thus, making CWD read-only will cause this test
10613
# to fail, enabling locking or at least warning the user not to do parallel
10617
lt_compiler_flag="-o out/conftest2.$ac_objext"
10618
# Insert the option either (1) after the last *FLAGS variable, or
10619
# (2) before a word containing "conftest.", or (3) at the end.
10620
# Note that $ac_compile itself does not contain backslashes and begins
10621
# with a dollar sign (not a hyphen), so the echo should work correctly.
10622
lt_compile=`echo "$ac_compile" | $SED \
10623
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10624
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10625
-e 's:$: $lt_compiler_flag:'`
10626
(eval echo "\"\$as_me:10626: $lt_compile\"" >&5)
10627
(eval "$lt_compile" 2>out/conftest.err)
10629
cat out/conftest.err >&5
10630
echo "$as_me:10630: \$? = $ac_status" >&5
10631
if (exit $ac_status) && test -s out/conftest2.$ac_objext
10633
# The compiler can only warn and ignore the option if not recognized
10634
# So say no if there are warnings
10635
if test ! -s out/conftest.err; then
10636
lt_cv_prog_compiler_c_o=yes
10640
$rm conftest* out/*
10647
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
10648
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10651
hard_links="nottested"
10652
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10653
# do not overwrite the value of need_locks provided by the user
10654
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10655
$as_echo_n "checking if we can lock with hard links... " >&6; }
10658
ln conftest.a conftest.b 2>/dev/null && hard_links=no
10660
ln conftest.a conftest.b 2>&5 || hard_links=no
10661
ln conftest.a conftest.b 2>/dev/null && hard_links=no
10662
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
10663
$as_echo "$hard_links" >&6; }
10664
if test "$hard_links" = no; then
10665
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10666
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10673
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10674
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10677
allow_undefined_flag=
10678
enable_shared_with_static_runtimes=no
10680
archive_expsym_cmds=
10681
old_archive_From_new_cmds=
10682
old_archive_from_expsyms_cmds=
10683
export_dynamic_flag_spec=
10684
whole_archive_flag_spec=
10685
thread_safe_flag_spec=
10686
hardcode_libdir_flag_spec=
10687
hardcode_libdir_flag_spec_ld=
10688
hardcode_libdir_separator=
10690
hardcode_minus_L=no
10691
hardcode_shlibpath_var=unsupported
10692
link_all_deplibs=unknown
10693
hardcode_automatic=no
10695
module_expsym_cmds=
10696
always_export_symbols=no
10697
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10698
# include_expsyms should be a list of space-separated symbols to be *always*
10699
# included in the symbol list
10701
# exclude_expsyms can be an extended regexp of symbols to exclude
10702
# it will be wrapped by ` (' and `)$', so one must not match beginning or
10703
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10704
# as well as any symbol that contains `d'.
10705
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
10706
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10707
# platforms (ab)use it in PIC code, but their linkers get confused if
10708
# the symbol is explicitly referenced. Since portable code cannot
10709
# rely on this symbol name, it's probably fine to never include it in
10710
# preloaded symbol tables.
10711
extract_expsyms_cmds=
10714
cygwin* | mingw* | pw32*)
10715
# FIXME: the MSVC++ port hasn't been tested in a loooong time
10716
# When not using gcc, we currently assume that we are using
10717
# Microsoft Visual C++.
10718
if test "$GCC" != yes; then
10728
if test "$with_gnu_ld" = yes; then
10729
# If archive_cmds runs LD, not CC, wlarc should be empty
10732
# See if GNU ld supports shared libraries.
10734
aix3* | aix4* | aix5*)
10735
# On AIX/PPC, the GNU linker is very broken
10736
if test "$host_cpu" != ia64; then
10740
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
10741
*** to be unable to reliably create shared libraries on AIX.
10742
*** Therefore, libtool is disabling shared libraries support. If you
10743
*** really care for shared libraries, you may want to modify your PATH
10744
*** so that a non-GNU linker is found, and then restart.
10751
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)'
10752
hardcode_libdir_flag_spec='-L$libdir'
10753
hardcode_minus_L=yes
10755
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
10756
# that the semantics of dynamic libraries on AmigaOS, at least up
10757
# to version 4, is to share data among multiple programs linked
10758
# with the same dynamic library. Since this doesn't match the
10759
# behavior of shared libraries on other platforms, we can't use
10765
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10766
allow_undefined_flag=unsupported
10767
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10768
# support --undefined. This deserves some investigation. FIXME
10769
archive_cmds='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
10775
cygwin* | mingw* | pw32*)
10776
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10777
# as there is no search path for DLLs.
10778
hardcode_libdir_flag_spec='-L$libdir'
10779
allow_undefined_flag=no
10780
always_export_symbols=no
10781
enable_shared_with_static_runtimes=yes
10782
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10784
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10785
archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10786
# If the export-symbols file already is a .def file (1st line
10787
# is EXPORTS), use it as is; otherwise, prepend...
10788
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10789
cp $export_symbols $output_objdir/$soname.def;
10791
echo EXPORTS > $output_objdir/$soname.def;
10792
cat $export_symbols >> $output_objdir/$soname.def;
10794
$CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
10801
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10802
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10805
archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
10806
archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10811
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
10815
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10816
*** create shared libraries on Solaris systems. Therefore, libtool
10817
*** is disabling shared libraries support. We urge you to upgrade GNU
10818
*** binutils to release 2.9.1 or newer. Another option is to modify
10819
*** your PATH or compiler configuration so that the native linker is
10820
*** used, and then restart.
10823
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10824
archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
10825
archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10832
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10834
hardcode_direct=yes
10835
hardcode_shlibpath_var=no
10839
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10840
archive_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
10841
archive_expsym_cmds='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10848
if test "$ld_shlibs" = yes; then
10849
runpath_var=LD_RUN_PATH
10850
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
10851
export_dynamic_flag_spec='${wl}--export-dynamic'
10852
# ancient GNU ld didn't support --whole-archive et. al.
10853
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
10854
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10856
whole_archive_flag_spec=
10860
# PORTME fill in a description of your system's linker (not GNU ld)
10863
allow_undefined_flag=unsupported
10864
always_export_symbols=yes
10865
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'
10866
# Note: this linker hardcodes the directories in LIBPATH if there
10867
# are no directories specified by -L.
10868
hardcode_minus_L=yes
10869
if test "$GCC" = yes && test -z "$link_static_flag"; then
10870
# Neither direct hardcoding nor static linking is supported with a
10872
hardcode_direct=unsupported
10877
if test "$host_cpu" = ia64; then
10878
# On IA64, the linker does run time linking by default, so we don't
10879
# have to do anything special.
10880
aix_use_runtimelinking=no
10881
exp_sym_flag='-Bexport'
10884
# If we're using GNU nm, then we don't want the "-C" option.
10885
# -C means demangle to AIX nm, but means don't demangle with GNU nm
10886
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10887
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'
10889
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'
10892
# KDE requires run time linking. Make it the default.
10893
aix_use_runtimelinking=yes
10894
exp_sym_flag='-bexport'
10895
no_entry_flag='-bnoentry'
10898
# When large executables or shared objects are built, AIX ld can
10899
# have problems creating the table of contents. If linking a library
10900
# or program results in "error TOC overflow" add -mminimal-toc to
10901
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10902
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10905
hardcode_direct=yes
10906
hardcode_libdir_separator=':'
10907
link_all_deplibs=yes
10909
if test "$GCC" = yes; then
10910
case $host_os in aix4.012|aix4.012.*)
10911
# We only want to do this on AIX 4.2 and lower, the check
10912
# below for broken collect2 doesn't work under 4.3+
10913
collect2name=`${CC} -print-prog-name=collect2`
10914
if test -f "$collect2name" && \
10915
strings "$collect2name" | grep resolve_lib_name >/dev/null
10917
# We have reworked collect2
10918
hardcode_direct=yes
10920
# We have old collect2
10921
hardcode_direct=unsupported
10922
# It fails to find uninstalled libraries when the uninstalled
10923
# path is not listed in the libpath. Setting hardcode_minus_L
10924
# to unsupported forces relinking
10925
hardcode_minus_L=yes
10926
hardcode_libdir_flag_spec='-L$libdir'
10927
hardcode_libdir_separator=
10930
shared_flag='-shared'
10933
if test "$host_cpu" = ia64; then
10934
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10935
# chokes on -Wl,-G. The following line is correct:
10938
if test "$aix_use_runtimelinking" = yes; then
10939
shared_flag='-qmkshrobj ${wl}-G'
10941
shared_flag='-qmkshrobj'
10946
# Let the compiler handle the export list.
10947
always_export_symbols=no
10948
if test "$aix_use_runtimelinking" = yes; then
10949
# Warning - without using the other runtime loading flags (-brtl),
10950
# -berok will link without error, but may produce a broken library.
10951
allow_undefined_flag='-berok'
10952
# Determine the default libpath from the value encoded in an empty executable.
10953
cat >conftest.$ac_ext <<_ACEOF
10956
cat confdefs.h >>conftest.$ac_ext
10957
cat >>conftest.$ac_ext <<_ACEOF
10958
/* end confdefs.h. */
10968
rm -f conftest.$ac_objext conftest$ac_exeext
10969
if { (ac_try="$ac_link"
10970
case "(($ac_try" in
10971
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10972
*) ac_try_echo=$ac_try;;
10974
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10975
$as_echo "$ac_try_echo") >&5
10976
(eval "$ac_link") 2>conftest.er1
10978
grep -v '^ *+' conftest.er1 >conftest.err
10980
cat conftest.err >&5
10981
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982
(exit $ac_status); } && {
10983
test -z "$ac_c_werror_flag" ||
10984
test ! -s conftest.err
10985
} && test -s conftest$ac_exeext && {
10986
test "$cross_compiling" = yes ||
10987
$as_test_x conftest$ac_exeext
10990
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10992
# Check for a 64-bit object if we didn't find anything.
10993
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; }
10996
$as_echo "$as_me: failed program was:" >&5
10997
sed 's/^/| /' conftest.$ac_ext >&5
11002
rm -rf conftest.dSYM
11003
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11004
conftest$ac_exeext conftest.$ac_ext
11005
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11007
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11008
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"
11009
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"
11011
if test "$host_cpu" = ia64; then
11012
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11013
allow_undefined_flag="-z nodefs"
11014
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"
11016
# Determine the default libpath from the value encoded in an empty executable.
11017
cat >conftest.$ac_ext <<_ACEOF
11020
cat confdefs.h >>conftest.$ac_ext
11021
cat >>conftest.$ac_ext <<_ACEOF
11022
/* end confdefs.h. */
11032
rm -f conftest.$ac_objext conftest$ac_exeext
11033
if { (ac_try="$ac_link"
11034
case "(($ac_try" in
11035
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11036
*) ac_try_echo=$ac_try;;
11038
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11039
$as_echo "$ac_try_echo") >&5
11040
(eval "$ac_link") 2>conftest.er1
11042
grep -v '^ *+' conftest.er1 >conftest.err
11044
cat conftest.err >&5
11045
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046
(exit $ac_status); } && {
11047
test -z "$ac_c_werror_flag" ||
11048
test ! -s conftest.err
11049
} && test -s conftest$ac_exeext && {
11050
test "$cross_compiling" = yes ||
11051
$as_test_x conftest$ac_exeext
11054
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11056
# Check for a 64-bit object if we didn't find anything.
11057
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; }
11060
$as_echo "$as_me: failed program was:" >&5
11061
sed 's/^/| /' conftest.$ac_ext >&5
11066
rm -rf conftest.dSYM
11067
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11068
conftest$ac_exeext conftest.$ac_ext
11069
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11071
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11072
# Warning - without using the other run time loading flags,
11073
# -berok will link without error, but may produce a broken library.
11074
no_undefined_flag=' ${wl}-bernotok'
11075
allow_undefined_flag=' ${wl}-berok'
11076
# -bexpall does not export symbols beginning with underscore (_)
11077
always_export_symbols=yes
11078
# Exported symbols can be pulled into shared objects from archives
11079
whole_archive_flag_spec=' '
11080
archive_cmds_need_lc=yes
11081
# This is similar to how AIX traditionally builds it's shared libraries.
11082
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'
11088
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)'
11089
hardcode_libdir_flag_spec='-L$libdir'
11090
hardcode_minus_L=yes
11091
# see comment about different semantics on the GNU ld section
11096
export_dynamic_flag_spec=-rdynamic
11099
cygwin* | mingw* | pw32*)
11100
# When not using gcc, we currently assume that we are using
11101
# Microsoft Visual C++.
11102
# hardcode_libdir_flag_spec is actually meaningless, as there is
11103
# no search path for DLLs.
11104
hardcode_libdir_flag_spec=' '
11105
allow_undefined_flag=no
11106
# Tell ltmain to make .lib files, not .a files.
11108
# Tell ltmain to make .dll files, not .so files.
11110
# FIXME: Setting linknames here is a bad hack.
11111
archive_cmds='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
11112
# The linker will automatically build a .lib file if we build a DLL.
11113
old_archive_From_new_cmds='true'
11114
# FIXME: Should let the user specify the lib program.
11115
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
11116
fix_srcfile_path='`cygpath -w "$srcfile"`'
11117
enable_shared_with_static_runtimes=yes
11120
darwin* | rhapsody*)
11121
if test "$GXX" = yes ; then
11122
archive_cmds_need_lc=no
11124
rhapsody* | darwin1.[012])
11125
allow_undefined_flag='-Wl,-undefined -Wl,suppress'
11128
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11129
allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
11131
case ${MACOSX_DEPLOYMENT_TARGET} in
11133
allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
11136
allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup'
11142
lt_int_apple_cc_single_mod=no
11143
output_verbose_link_cmd='echo'
11144
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
11145
lt_int_apple_cc_single_mod=yes
11147
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11148
archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
11150
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'
11152
module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
11153
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11154
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11155
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}'
11157
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}'
11159
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}'
11161
hardcode_automatic=yes
11162
hardcode_shlibpath_var=unsupported
11163
whole_archive_flag_spec='-all_load $convenience'
11164
link_all_deplibs=yes
11171
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11172
hardcode_libdir_flag_spec='-L$libdir'
11173
hardcode_shlibpath_var=no
11180
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11181
# support. Future versions do this automatically, but an explicit c++rt0.o
11182
# does not break anything, and helps significantly (at the cost of a little
11185
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11186
hardcode_libdir_flag_spec='-R$libdir'
11187
hardcode_direct=yes
11188
hardcode_shlibpath_var=no
11191
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
11193
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11194
hardcode_direct=yes
11195
hardcode_minus_L=yes
11196
hardcode_shlibpath_var=no
11199
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11200
freebsd* | kfreebsd*-gnu)
11201
archive_cmds='$CC -shared -o $lib $compiler_flags $libobjs $deplibs'
11202
hardcode_libdir_flag_spec='-R$libdir'
11203
hardcode_direct=yes
11204
hardcode_shlibpath_var=no
11208
if test "$GCC" = yes; then
11209
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'
11211
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'
11213
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11214
hardcode_libdir_separator=:
11215
hardcode_direct=yes
11217
# hardcode_minus_L: Not really in the search PATH,
11218
# but as the default location of the library.
11219
hardcode_minus_L=yes
11220
export_dynamic_flag_spec='${wl}-E'
11224
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11225
case "$host_cpu" in
11227
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
11230
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs'
11234
case "$host_cpu" in
11236
archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
11239
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11243
if test "$with_gnu_ld" = no; then
11244
case "$host_cpu" in
11246
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11247
hardcode_libdir_flag_spec_ld='+b $libdir'
11248
hardcode_libdir_separator=:
11250
hardcode_shlibpath_var=no
11253
hardcode_libdir_flag_spec='-L$libdir'
11255
hardcode_shlibpath_var=no
11257
# hardcode_minus_L: Not really in the search PATH,
11258
# but as the default location of the library.
11259
hardcode_minus_L=yes
11262
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11263
hardcode_libdir_separator=:
11264
hardcode_direct=yes
11265
export_dynamic_flag_spec='${wl}-E'
11267
# hardcode_minus_L: Not really in the search PATH,
11268
# but as the default location of the library.
11269
hardcode_minus_L=yes
11275
irix5* | irix6* | nonstopux*)
11276
if test "$GCC" = yes; then
11277
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'
11279
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'
11280
hardcode_libdir_flag_spec_ld='-rpath $libdir'
11282
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11283
hardcode_libdir_separator=:
11284
link_all_deplibs=yes
11288
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11289
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11291
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11293
hardcode_libdir_flag_spec='-R$libdir'
11294
hardcode_direct=yes
11295
hardcode_shlibpath_var=no
11299
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11300
hardcode_direct=yes
11301
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11302
hardcode_libdir_separator=:
11303
hardcode_shlibpath_var=no
11307
hardcode_direct=yes
11308
hardcode_shlibpath_var=no
11309
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11310
archive_cmds='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
11311
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11312
export_dynamic_flag_spec='${wl}-E'
11315
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11316
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11317
hardcode_libdir_flag_spec='-R$libdir'
11320
archive_cmds='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
11321
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11328
hardcode_libdir_flag_spec='-L$libdir'
11329
hardcode_minus_L=yes
11330
allow_undefined_flag=unsupported
11331
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'
11332
old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11336
if test "$GCC" = yes; then
11337
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11338
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'
11340
allow_undefined_flag=' -expect_unresolved \*'
11341
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'
11343
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11344
hardcode_libdir_separator=:
11347
osf4* | osf5*) # as osf3* with the addition of -msym flag
11348
if test "$GCC" = yes; then
11349
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11350
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'
11351
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11353
allow_undefined_flag=' -expect_unresolved \*'
11354
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'
11355
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
11356
$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'
11358
# Both c and cxx compiler support -rpath directly
11359
hardcode_libdir_flag_spec='-rpath $libdir'
11361
hardcode_libdir_separator=:
11365
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11366
hardcode_shlibpath_var=no
11367
export_dynamic_flag_spec='${wl}-Bexport'
11368
runpath_var=LD_RUN_PATH
11369
hardcode_runpath_var=yes
11373
no_undefined_flag=' -z text'
11374
if test "$GCC" = yes; then
11375
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
11376
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11377
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp'
11379
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11380
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11381
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
11383
hardcode_libdir_flag_spec='-R$libdir'
11384
hardcode_shlibpath_var=no
11386
solaris2.[0-5] | solaris2.[0-5].*) ;;
11387
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
11388
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
11390
link_all_deplibs=yes
11394
if test "x$host_vendor" = xsequent; then
11395
# Use $CC to link under sequent, because it throws in some extra .o
11396
# files that make .init and .fini sections work.
11397
archive_cmds='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs'
11399
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11401
hardcode_libdir_flag_spec='-L$libdir'
11402
hardcode_direct=yes
11403
hardcode_minus_L=yes
11404
hardcode_shlibpath_var=no
11408
case $host_vendor in
11410
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11411
hardcode_direct=yes # is this really true???
11414
## LD is ld it makes a PLAMLIB
11415
## CC just makes a GrossModule.
11416
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11417
reload_cmds='$CC -r -o $output$reload_objs'
11421
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11422
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11425
runpath_var='LD_RUN_PATH'
11426
hardcode_shlibpath_var=no
11430
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11431
hardcode_shlibpath_var=no
11432
export_dynamic_flag_spec='-Bexport'
11436
if test -d /usr/nec; then
11437
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11438
hardcode_shlibpath_var=no
11439
runpath_var=LD_RUN_PATH
11440
hardcode_runpath_var=yes
11446
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11447
hardcode_direct=yes
11448
hardcode_minus_L=no
11449
hardcode_shlibpath_var=no
11450
hardcode_runpath_var=yes
11451
runpath_var=LD_RUN_PATH
11454
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
11455
no_undefined_flag='${wl}-z ${wl}text'
11456
if test "$GCC" = yes; then
11457
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
11459
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
11461
runpath_var='LD_RUN_PATH'
11462
hardcode_shlibpath_var=no
11466
no_undefined_flag=' -z text'
11467
# $CC -shared without GNU ld will not create a library from C++
11468
# object files and a static libstdc++, better avoid it by now
11469
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11470
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11471
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
11472
hardcode_libdir_flag_spec=
11473
hardcode_shlibpath_var=no
11474
runpath_var='LD_RUN_PATH'
11478
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11479
hardcode_libdir_flag_spec='-L$libdir'
11480
hardcode_shlibpath_var=no
11489
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
11490
$as_echo "$ld_shlibs" >&6; }
11491
test "$ld_shlibs" = no && can_build_shared=no
11493
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11494
if test "$GCC" = yes; then
11495
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11499
# Do we need to explicitly link libc?
11501
case "x$archive_cmds_need_lc" in
11503
# Assume -lc should be added
11504
archive_cmds_need_lc=yes
11506
if test "$enable_shared" = yes && test "$GCC" = yes; then
11507
case $archive_cmds in
11509
# FIXME: we may have to deal with multi-command sequences.
11512
# Test whether the compiler implicitly links with -lc since on some
11513
# systems, -lgcc has to come before -lc. If gcc already passes -lc
11514
# to ld, don't add -lc before -lgcc.
11515
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11516
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11518
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11520
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11521
(eval $ac_compile) 2>&5
11523
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11524
(exit $ac_status); } 2>conftest.err; then
11527
libobjs=conftest.$ac_objext
11529
wl=$lt_prog_compiler_wl
11535
lt_save_allow_undefined_flag=$allow_undefined_flag
11536
allow_undefined_flag=
11537
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11538
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11540
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541
(exit $ac_status); }
11543
archive_cmds_need_lc=no
11545
archive_cmds_need_lc=yes
11547
allow_undefined_flag=$lt_save_allow_undefined_flag
11549
cat conftest.err 1>&5
11552
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
11553
$as_echo "$archive_cmds_need_lc" >&6; }
11560
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11561
$as_echo_n "checking dynamic linker characteristics... " >&6; }
11562
library_names_spec=
11563
libname_spec='lib$name'
11567
postuninstall_cmds=
11571
shlibpath_overrides_runpath=unknown
11573
dynamic_linker="$host_os ld.so"
11574
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11575
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11576
need_lib_prefix=unknown
11577
hardcode_into_libs=no
11579
# when you set need_version to no, make sure it does not cause -set_version
11580
# flags to be left without arguments
11581
need_version=unknown
11586
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11587
shlibpath_var=LIBPATH
11589
# AIX 3 has no versioning support, so we append a major version to the name.
11590
soname_spec='${libname}${release}${shared_ext}$major'
11597
hardcode_into_libs=yes
11598
if test "$host_cpu" = ia64; then
11599
# AIX 5 supports IA64
11600
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11601
shlibpath_var=LD_LIBRARY_PATH
11603
# With GCC up to 2.95.x, collect2 would create an import file
11604
# for dependence libraries. The import file would start with
11605
# the line `#! .'. This would cause the generated library to
11606
# depend on `.', always an invalid library. This was fixed in
11607
# development snapshots of GCC prior to 3.0.
11609
aix4 | aix4.[01] | aix4.[01].*)
11610
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11612
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11615
can_build_shared=no
11619
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11620
# soname into executable. Probably we can add versioning support to
11621
# collect2, so additional links can be useful in future.
11622
if test "$aix_use_runtimelinking" = yes; then
11623
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
11624
# instead of lib<name>.a to let people know that these are not
11625
# typical AIX shared libraries.
11626
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11628
# We preserve .a as extension for shared libraries through AIX4.2
11629
# and later when we are not doing run time linking.
11630
library_names_spec='${libname}${release}.a $libname.a'
11631
soname_spec='${libname}${release}${shared_ext}$major'
11633
shlibpath_var=LIBPATH
11638
library_names_spec='$libname.ixlibrary $libname.a'
11639
# Create ${libname}_ixlibrary.a entries in /sys/libs.
11640
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'
11644
library_names_spec='${libname}${shared_ext}'
11645
dynamic_linker="$host_os ld.so"
11646
shlibpath_var=LIBRARY_PATH
11652
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11653
soname_spec='${libname}${release}${shared_ext}$major'
11654
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11655
shlibpath_var=LD_LIBRARY_PATH
11656
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11657
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11658
# the default ld.so.conf also contains /usr/contrib/lib and
11659
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11660
# libtool to hard-code these into programs
11663
cygwin* | mingw* | pw32*)
11664
version_type=windows
11669
case $GCC,$host_os in
11670
yes,cygwin* | yes,mingw* | yes,pw32*)
11671
library_names_spec='$libname.dll.a'
11672
# DLL is installed to $(libdir)/../bin by postinstall_cmds
11673
postinstall_cmds='base_file=`basename \${file}`~
11674
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11675
dldir=$destdir/`dirname \$dlpath`~
11676
test -d \$dldir || mkdir -p \$dldir~
11677
$install_prog $dir/$dlname \$dldir/$dlname'
11678
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11679
dlpath=$dir/\$dldll~
11681
shlibpath_overrides_runpath=yes
11685
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
11686
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11687
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11690
# MinGW DLLs use traditional 'lib' prefix
11691
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11692
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11693
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11694
# It is most probably a Windows format PATH printed by
11695
# mingw gcc, but we are running on Cygwin. Gcc prints its search
11696
# path with ; separators, and with drive letters. We can handle the
11697
# drive letters (cygwin fileutils understands them), so leave them,
11698
# especially as we might pass files found there to a mingw objdump,
11699
# which wouldn't understand a cygwinified path. Ahh.
11700
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11702
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11706
# pw32 DLLs use 'pw' prefix rather than 'lib'
11707
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11713
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11716
dynamic_linker='Win32 ld.exe'
11717
# FIXME: first we should search . and the directory the executable is in
11721
darwin* | rhapsody*)
11722
dynamic_linker="$host_os dyld"
11723
version_type=darwin
11726
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11727
soname_spec='${libname}${release}${major}$shared_ext'
11728
shlibpath_overrides_runpath=yes
11729
shlibpath_var=DYLD_LIBRARY_PATH
11730
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11731
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11732
if test "$GCC" = yes; then
11733
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"`
11735
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11737
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11744
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11745
soname_spec='${libname}${release}${shared_ext}$major'
11746
shlibpath_var=LD_LIBRARY_PATH
11757
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11758
soname_spec='${libname}${release}${shared_ext}$major'
11759
shlibpath_var=LD_LIBRARY_PATH
11760
shlibpath_overrides_runpath=no
11761
hardcode_into_libs=yes
11762
dynamic_linker='GNU ld.so'
11766
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11767
version_type=freebsd-$objformat
11768
case $version_type in
11770
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11775
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11779
shlibpath_var=LD_LIBRARY_PATH
11782
shlibpath_overrides_runpath=yes
11784
freebsd3.01* | freebsdelf3.01*)
11785
shlibpath_overrides_runpath=yes
11786
hardcode_into_libs=yes
11789
shlibpath_overrides_runpath=no
11790
hardcode_into_libs=yes
11799
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11800
soname_spec='${libname}${release}${shared_ext}$major'
11801
shlibpath_var=LD_LIBRARY_PATH
11802
hardcode_into_libs=yes
11805
hpux9* | hpux10* | hpux11*)
11806
# Give a soname corresponding to the major version so that dld.sl refuses to
11807
# link against other versions.
11811
case "$host_cpu" in
11814
hardcode_into_libs=yes
11815
dynamic_linker="$host_os dld.so"
11816
shlibpath_var=LD_LIBRARY_PATH
11817
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11818
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11819
soname_spec='${libname}${release}${shared_ext}$major'
11820
if test "X$HPUX_IA64_MODE" = X32; then
11821
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11823
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11825
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11829
hardcode_into_libs=yes
11830
dynamic_linker="$host_os dld.sl"
11831
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11832
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11833
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11834
soname_spec='${libname}${release}${shared_ext}$major'
11835
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11836
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11840
dynamic_linker="$host_os dld.sl"
11841
shlibpath_var=SHLIB_PATH
11842
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
11847
# HP-UX runs *really* slowly unless shared libraries are mode 555.
11848
postinstall_cmds='chmod 555 $lib'
11851
irix5* | irix6* | nonstopux*)
11853
nonstopux*) version_type=nonstopux ;;
11855
if test "$lt_cv_prog_gnu_ld" = yes; then
11863
soname_spec='${libname}${release}${shared_ext}$major'
11864
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11866
irix5* | nonstopux*)
11867
libsuff= shlibsuff=
11870
case $LD in # libtool.m4 will add one of these switches to LD
11871
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11872
libsuff= shlibsuff= libmagic=32-bit;;
11873
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11874
libsuff=32 shlibsuff=N32 libmagic=N32;;
11875
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11876
libsuff=64 shlibsuff=64 libmagic=64-bit;;
11877
*) libsuff= shlibsuff= libmagic=never-match;;
11881
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11882
shlibpath_overrides_runpath=no
11883
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11884
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11885
hardcode_into_libs=yes
11888
# No shared lib support for Linux oldld, aout, or coff.
11889
linux*oldld* | linux*aout* | linux*coff*)
11893
# This must be Linux ELF.
11898
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11899
soname_spec='${libname}${release}${shared_ext}$major'
11900
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11902
if test "x$LINUX_64_MODE" = x64; then
11903
# Some platforms are per default 64-bit, so there's no /lib64
11904
if test -d /lib64 -a ! -h /lib64; then
11908
shlibpath_var=LD_LIBRARY_PATH
11909
shlibpath_overrides_runpath=no
11910
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
11911
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11912
# This implies no fast_install, which is unacceptable.
11913
# Some rework will be needed to allow for fast_install
11914
# before this can be enabled.
11915
hardcode_into_libs=yes
11917
# We used to test for /lib/ld.so.1 and disable shared libraries on
11918
# powerpc, because MkLinux only supported shared libraries with the
11919
# GNU dynamic linker. Since this was broken with cross compilers,
11920
# most powerpc-linux boxes support dynamic linking these days and
11921
# people can always --disable-shared, the test was removed, and we
11922
# assume the GNU/Linux dynamic linker is in use.
11923
dynamic_linker='GNU/Linux ld.so'
11930
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11931
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11932
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11933
dynamic_linker='NetBSD (a.out) ld.so'
11935
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11936
soname_spec='${libname}${release}${shared_ext}$major'
11937
dynamic_linker='NetBSD ld.elf_so'
11939
shlibpath_var=LD_LIBRARY_PATH
11940
shlibpath_overrides_runpath=yes
11941
hardcode_into_libs=yes
11946
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11947
shlibpath_var=LD_LIBRARY_PATH
11948
shlibpath_overrides_runpath=yes
11955
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11956
soname_spec='${libname}${release}${shared_ext}$major'
11957
shlibpath_var=LD_LIBRARY_PATH
11958
shlibpath_overrides_runpath=yes
11965
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11966
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11967
shlibpath_var=LD_LIBRARY_PATH
11968
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11970
openbsd2.[89] | openbsd2.[89].*)
11971
shlibpath_overrides_runpath=no
11974
shlibpath_overrides_runpath=yes
11978
shlibpath_overrides_runpath=yes
11983
libname_spec='$name'
11986
library_names_spec='$libname${shared_ext} $libname.a'
11987
dynamic_linker='OS/2 ld.exe'
11988
shlibpath_var=LIBPATH
11991
osf3* | osf4* | osf5*)
11995
soname_spec='${libname}${release}${shared_ext}$major'
11996
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11997
shlibpath_var=LD_LIBRARY_PATH
11998
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11999
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12004
soname_spec='${libname}${release}${shared_ext}$major'
12005
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12006
shlibpath_var=LD_LIBRARY_PATH
12013
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12014
soname_spec='${libname}${release}${shared_ext}$major'
12015
shlibpath_var=LD_LIBRARY_PATH
12016
shlibpath_overrides_runpath=yes
12017
hardcode_into_libs=yes
12018
# ldd complains unless libraries are executable
12019
postinstall_cmds='chmod +x $lib'
12024
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12025
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12026
shlibpath_var=LD_LIBRARY_PATH
12027
shlibpath_overrides_runpath=yes
12028
if test "$with_gnu_ld" = yes; then
12034
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12036
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12037
soname_spec='${libname}${release}${shared_ext}$major'
12038
shlibpath_var=LD_LIBRARY_PATH
12039
case $host_vendor in
12041
shlibpath_overrides_runpath=no
12043
export_dynamic_flag_spec='${wl}-Blargedynsym'
12044
runpath_var=LD_RUN_PATH
12052
shlibpath_overrides_runpath=no
12053
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12059
if test -d /usr/nec ;then
12061
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12062
soname_spec='$libname${shared_ext}.$major'
12063
shlibpath_var=LD_LIBRARY_PATH
12069
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12070
soname_spec='${libname}${release}${shared_ext}$major'
12071
shlibpath_var=LD_LIBRARY_PATH
12078
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12079
$as_echo "$dynamic_linker" >&6; }
12080
test "$dynamic_linker" = no && can_build_shared=no
12082
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12083
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12085
if test -n "$hardcode_libdir_flag_spec" || \
12086
test -n "$runpath_var " || \
12087
test "X$hardcode_automatic"="Xyes" ; then
12089
# We can hardcode non-existant directories.
12090
if test "$hardcode_direct" != no &&
12091
# If the only mechanism to avoid hardcoding is shlibpath_var, we
12092
# have to relink, otherwise we might link with an installed library
12093
# when we should be linking with a yet-to-be-installed one
12094
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
12095
test "$hardcode_minus_L" != no; then
12096
# Linking always hardcodes the temporary library directory.
12097
hardcode_action=relink
12099
# We can link without hardcoding, and we can hardcode nonexisting dirs.
12100
hardcode_action=immediate
12103
# We cannot hardcode anything, or else we can only hardcode existing
12105
hardcode_action=unsupported
12107
{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
12108
$as_echo "$hardcode_action" >&6; }
12110
if test "$hardcode_action" = relink; then
12111
# Fast installation is not supported
12112
enable_fast_install=no
12113
elif test "$shlibpath_overrides_runpath" = yes ||
12114
test "$enable_shared" = no; then
12115
# Fast installation is not necessary
12116
enable_fast_install=needless
12121
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12122
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12123
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12124
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12125
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12126
{ $as_echo "$as_me:$LINENO: result: yes" >&5
12127
$as_echo "yes" >&6; }
12129
# FIXME - insert some real tests, host_os isn't really good enough
12132
if test -n "$STRIP" ; then
12133
striplib="$STRIP -x"
12134
{ $as_echo "$as_me:$LINENO: result: yes" >&5
12135
$as_echo "yes" >&6; }
12137
{ $as_echo "$as_me:$LINENO: result: no" >&5
12138
$as_echo "no" >&6; }
12142
{ $as_echo "$as_me:$LINENO: result: no" >&5
12143
$as_echo "no" >&6; }
12148
if test "x$enable_dlopen" != xyes; then
12149
enable_dlopen=unknown
12150
enable_dlopen_self=unknown
12151
enable_dlopen_self_static=unknown
12158
lt_cv_dlopen="load_add_on"
12160
lt_cv_dlopen_self=yes
12164
lt_cv_dlopen="LoadLibrary"
12169
lt_cv_dlopen="dlopen"
12174
# if libdl is installed we need to link against it
12175
{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12176
$as_echo_n "checking for dlopen in -ldl... " >&6; }
12177
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12178
$as_echo_n "(cached) " >&6
12180
ac_check_lib_save_LIBS=$LIBS
12182
cat >conftest.$ac_ext <<_ACEOF
12185
cat confdefs.h >>conftest.$ac_ext
12186
cat >>conftest.$ac_ext <<_ACEOF
12187
/* end confdefs.h. */
12189
/* Override any GCC internal prototype to avoid an error.
12190
Use char because int might match the return type of a GCC
12191
builtin and then its argument prototype would still apply. */
12204
rm -f conftest.$ac_objext conftest$ac_exeext
12205
if { (ac_try="$ac_link"
12206
case "(($ac_try" in
12207
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12208
*) ac_try_echo=$ac_try;;
12210
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12211
$as_echo "$ac_try_echo") >&5
12212
(eval "$ac_link") 2>conftest.er1
12214
grep -v '^ *+' conftest.er1 >conftest.err
12216
cat conftest.err >&5
12217
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218
(exit $ac_status); } && {
12219
test -z "$ac_c_werror_flag" ||
12220
test ! -s conftest.err
12221
} && test -s conftest$ac_exeext && {
12222
test "$cross_compiling" = yes ||
12223
$as_test_x conftest$ac_exeext
12225
ac_cv_lib_dl_dlopen=yes
12227
$as_echo "$as_me: failed program was:" >&5
12228
sed 's/^/| /' conftest.$ac_ext >&5
12230
ac_cv_lib_dl_dlopen=no
12233
rm -rf conftest.dSYM
12234
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12235
conftest$ac_exeext conftest.$ac_ext
12236
LIBS=$ac_check_lib_save_LIBS
12238
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12239
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12240
if test $ac_cv_lib_dl_dlopen = yes; then
12241
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12244
lt_cv_dlopen="dyld"
12246
lt_cv_dlopen_self=yes
12253
{ $as_echo "$as_me:$LINENO: checking for shl_load" >&5
12254
$as_echo_n "checking for shl_load... " >&6; }
12255
if test "${ac_cv_func_shl_load+set}" = set; then
12256
$as_echo_n "(cached) " >&6
12258
cat >conftest.$ac_ext <<_ACEOF
12261
cat confdefs.h >>conftest.$ac_ext
12262
cat >>conftest.$ac_ext <<_ACEOF
12263
/* end confdefs.h. */
12264
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12265
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12266
#define shl_load innocuous_shl_load
12268
/* System header to define __stub macros and hopefully few prototypes,
12269
which can conflict with char shl_load (); below.
12270
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12271
<limits.h> exists even on freestanding compilers. */
12274
# include <limits.h>
12276
# include <assert.h>
12281
/* Override any GCC internal prototype to avoid an error.
12282
Use char because int might match the return type of a GCC
12283
builtin and then its argument prototype would still apply. */
12288
/* The GNU C library defines this for functions which it implements
12289
to always fail with ENOSYS. Some functions are actually named
12290
something starting with __ and the normal name is an alias. */
12291
#if defined __stub_shl_load || defined __stub___shl_load
12298
return shl_load ();
12303
rm -f conftest.$ac_objext conftest$ac_exeext
12304
if { (ac_try="$ac_link"
12305
case "(($ac_try" in
12306
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12307
*) ac_try_echo=$ac_try;;
12309
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12310
$as_echo "$ac_try_echo") >&5
12311
(eval "$ac_link") 2>conftest.er1
12313
grep -v '^ *+' conftest.er1 >conftest.err
12315
cat conftest.err >&5
12316
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12317
(exit $ac_status); } && {
12318
test -z "$ac_c_werror_flag" ||
12319
test ! -s conftest.err
12320
} && test -s conftest$ac_exeext && {
12321
test "$cross_compiling" = yes ||
12322
$as_test_x conftest$ac_exeext
12324
ac_cv_func_shl_load=yes
12326
$as_echo "$as_me: failed program was:" >&5
12327
sed 's/^/| /' conftest.$ac_ext >&5
12329
ac_cv_func_shl_load=no
12332
rm -rf conftest.dSYM
12333
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12334
conftest$ac_exeext conftest.$ac_ext
12336
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12337
$as_echo "$ac_cv_func_shl_load" >&6; }
12338
if test $ac_cv_func_shl_load = yes; then
12339
lt_cv_dlopen="shl_load"
12341
{ $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12342
$as_echo_n "checking for shl_load in -ldld... " >&6; }
12343
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12344
$as_echo_n "(cached) " >&6
12346
ac_check_lib_save_LIBS=$LIBS
12348
cat >conftest.$ac_ext <<_ACEOF
12351
cat confdefs.h >>conftest.$ac_ext
12352
cat >>conftest.$ac_ext <<_ACEOF
12353
/* end confdefs.h. */
12355
/* Override any GCC internal prototype to avoid an error.
12356
Use char because int might match the return type of a GCC
12357
builtin and then its argument prototype would still apply. */
12365
return shl_load ();
12370
rm -f conftest.$ac_objext conftest$ac_exeext
12371
if { (ac_try="$ac_link"
12372
case "(($ac_try" in
12373
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12374
*) ac_try_echo=$ac_try;;
12376
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12377
$as_echo "$ac_try_echo") >&5
12378
(eval "$ac_link") 2>conftest.er1
12380
grep -v '^ *+' conftest.er1 >conftest.err
12382
cat conftest.err >&5
12383
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12384
(exit $ac_status); } && {
12385
test -z "$ac_c_werror_flag" ||
12386
test ! -s conftest.err
12387
} && test -s conftest$ac_exeext && {
12388
test "$cross_compiling" = yes ||
12389
$as_test_x conftest$ac_exeext
12391
ac_cv_lib_dld_shl_load=yes
12393
$as_echo "$as_me: failed program was:" >&5
12394
sed 's/^/| /' conftest.$ac_ext >&5
12396
ac_cv_lib_dld_shl_load=no
12399
rm -rf conftest.dSYM
12400
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12401
conftest$ac_exeext conftest.$ac_ext
12402
LIBS=$ac_check_lib_save_LIBS
12404
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12405
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12406
if test $ac_cv_lib_dld_shl_load = yes; then
12407
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12409
{ $as_echo "$as_me:$LINENO: checking for dlopen" >&5
12410
$as_echo_n "checking for dlopen... " >&6; }
12411
if test "${ac_cv_func_dlopen+set}" = set; then
12412
$as_echo_n "(cached) " >&6
12414
cat >conftest.$ac_ext <<_ACEOF
12417
cat confdefs.h >>conftest.$ac_ext
12418
cat >>conftest.$ac_ext <<_ACEOF
12419
/* end confdefs.h. */
12420
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12421
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12422
#define dlopen innocuous_dlopen
12424
/* System header to define __stub macros and hopefully few prototypes,
12425
which can conflict with char dlopen (); below.
12426
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12427
<limits.h> exists even on freestanding compilers. */
12430
# include <limits.h>
12432
# include <assert.h>
12437
/* Override any GCC internal prototype to avoid an error.
12438
Use char because int might match the return type of a GCC
12439
builtin and then its argument prototype would still apply. */
12444
/* The GNU C library defines this for functions which it implements
12445
to always fail with ENOSYS. Some functions are actually named
12446
something starting with __ and the normal name is an alias. */
12447
#if defined __stub_dlopen || defined __stub___dlopen
12459
rm -f conftest.$ac_objext conftest$ac_exeext
12460
if { (ac_try="$ac_link"
12461
case "(($ac_try" in
12462
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12463
*) ac_try_echo=$ac_try;;
12465
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12466
$as_echo "$ac_try_echo") >&5
12467
(eval "$ac_link") 2>conftest.er1
12469
grep -v '^ *+' conftest.er1 >conftest.err
12471
cat conftest.err >&5
12472
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12473
(exit $ac_status); } && {
12474
test -z "$ac_c_werror_flag" ||
12475
test ! -s conftest.err
12476
} && test -s conftest$ac_exeext && {
12477
test "$cross_compiling" = yes ||
12478
$as_test_x conftest$ac_exeext
12480
ac_cv_func_dlopen=yes
12482
$as_echo "$as_me: failed program was:" >&5
12483
sed 's/^/| /' conftest.$ac_ext >&5
12485
ac_cv_func_dlopen=no
12488
rm -rf conftest.dSYM
12489
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12490
conftest$ac_exeext conftest.$ac_ext
12492
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12493
$as_echo "$ac_cv_func_dlopen" >&6; }
12494
if test $ac_cv_func_dlopen = yes; then
12495
lt_cv_dlopen="dlopen"
12497
{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12498
$as_echo_n "checking for dlopen in -ldl... " >&6; }
12499
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12500
$as_echo_n "(cached) " >&6
12502
ac_check_lib_save_LIBS=$LIBS
12504
cat >conftest.$ac_ext <<_ACEOF
12507
cat confdefs.h >>conftest.$ac_ext
12508
cat >>conftest.$ac_ext <<_ACEOF
12509
/* end confdefs.h. */
12511
/* Override any GCC internal prototype to avoid an error.
12512
Use char because int might match the return type of a GCC
12513
builtin and then its argument prototype would still apply. */
12526
rm -f conftest.$ac_objext conftest$ac_exeext
12527
if { (ac_try="$ac_link"
12528
case "(($ac_try" in
12529
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530
*) ac_try_echo=$ac_try;;
12532
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12533
$as_echo "$ac_try_echo") >&5
12534
(eval "$ac_link") 2>conftest.er1
12536
grep -v '^ *+' conftest.er1 >conftest.err
12538
cat conftest.err >&5
12539
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540
(exit $ac_status); } && {
12541
test -z "$ac_c_werror_flag" ||
12542
test ! -s conftest.err
12543
} && test -s conftest$ac_exeext && {
12544
test "$cross_compiling" = yes ||
12545
$as_test_x conftest$ac_exeext
12547
ac_cv_lib_dl_dlopen=yes
12549
$as_echo "$as_me: failed program was:" >&5
12550
sed 's/^/| /' conftest.$ac_ext >&5
12552
ac_cv_lib_dl_dlopen=no
12555
rm -rf conftest.dSYM
12556
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12557
conftest$ac_exeext conftest.$ac_ext
12558
LIBS=$ac_check_lib_save_LIBS
12560
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12561
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12562
if test $ac_cv_lib_dl_dlopen = yes; then
12563
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12565
{ $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12566
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12567
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12568
$as_echo_n "(cached) " >&6
12570
ac_check_lib_save_LIBS=$LIBS
12571
LIBS="-lsvld $LIBS"
12572
cat >conftest.$ac_ext <<_ACEOF
12575
cat confdefs.h >>conftest.$ac_ext
12576
cat >>conftest.$ac_ext <<_ACEOF
12577
/* end confdefs.h. */
12579
/* Override any GCC internal prototype to avoid an error.
12580
Use char because int might match the return type of a GCC
12581
builtin and then its argument prototype would still apply. */
12594
rm -f conftest.$ac_objext conftest$ac_exeext
12595
if { (ac_try="$ac_link"
12596
case "(($ac_try" in
12597
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12598
*) ac_try_echo=$ac_try;;
12600
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12601
$as_echo "$ac_try_echo") >&5
12602
(eval "$ac_link") 2>conftest.er1
12604
grep -v '^ *+' conftest.er1 >conftest.err
12606
cat conftest.err >&5
12607
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608
(exit $ac_status); } && {
12609
test -z "$ac_c_werror_flag" ||
12610
test ! -s conftest.err
12611
} && test -s conftest$ac_exeext && {
12612
test "$cross_compiling" = yes ||
12613
$as_test_x conftest$ac_exeext
12615
ac_cv_lib_svld_dlopen=yes
12617
$as_echo "$as_me: failed program was:" >&5
12618
sed 's/^/| /' conftest.$ac_ext >&5
12620
ac_cv_lib_svld_dlopen=no
12623
rm -rf conftest.dSYM
12624
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12625
conftest$ac_exeext conftest.$ac_ext
12626
LIBS=$ac_check_lib_save_LIBS
12628
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12629
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12630
if test $ac_cv_lib_svld_dlopen = yes; then
12631
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12633
{ $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12634
$as_echo_n "checking for dld_link in -ldld... " >&6; }
12635
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12636
$as_echo_n "(cached) " >&6
12638
ac_check_lib_save_LIBS=$LIBS
12640
cat >conftest.$ac_ext <<_ACEOF
12643
cat confdefs.h >>conftest.$ac_ext
12644
cat >>conftest.$ac_ext <<_ACEOF
12645
/* end confdefs.h. */
12647
/* Override any GCC internal prototype to avoid an error.
12648
Use char because int might match the return type of a GCC
12649
builtin and then its argument prototype would still apply. */
12657
return dld_link ();
12662
rm -f conftest.$ac_objext conftest$ac_exeext
12663
if { (ac_try="$ac_link"
12664
case "(($ac_try" in
12665
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12666
*) ac_try_echo=$ac_try;;
12668
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12669
$as_echo "$ac_try_echo") >&5
12670
(eval "$ac_link") 2>conftest.er1
12672
grep -v '^ *+' conftest.er1 >conftest.err
12674
cat conftest.err >&5
12675
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676
(exit $ac_status); } && {
12677
test -z "$ac_c_werror_flag" ||
12678
test ! -s conftest.err
12679
} && test -s conftest$ac_exeext && {
12680
test "$cross_compiling" = yes ||
12681
$as_test_x conftest$ac_exeext
12683
ac_cv_lib_dld_dld_link=yes
12685
$as_echo "$as_me: failed program was:" >&5
12686
sed 's/^/| /' conftest.$ac_ext >&5
12688
ac_cv_lib_dld_dld_link=no
12691
rm -rf conftest.dSYM
12692
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12693
conftest$ac_exeext conftest.$ac_ext
12694
LIBS=$ac_check_lib_save_LIBS
12696
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12697
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12698
if test $ac_cv_lib_dld_dld_link = yes; then
12699
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12720
if test "x$lt_cv_dlopen" != xno; then
12726
case $lt_cv_dlopen in
12728
save_CPPFLAGS="$CPPFLAGS"
12729
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12731
save_LDFLAGS="$LDFLAGS"
12732
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12735
LIBS="$lt_cv_dlopen_libs $LIBS"
12737
{ $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12738
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12739
if test "${lt_cv_dlopen_self+set}" = set; then
12740
$as_echo_n "(cached) " >&6
12742
if test "$cross_compiling" = yes; then :
12743
lt_cv_dlopen_self=cross
12745
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12746
lt_status=$lt_dlunknown
12747
cat > conftest.$ac_ext <<EOF
12748
#line 12748 "configure"
12749
#include "confdefs.h"
12758
# define LT_DLGLOBAL RTLD_GLOBAL
12761
# define LT_DLGLOBAL DL_GLOBAL
12763
# define LT_DLGLOBAL 0
12767
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12768
find out it does not work in some platform. */
12769
#ifndef LT_DLLAZY_OR_NOW
12771
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12774
# define LT_DLLAZY_OR_NOW DL_LAZY
12777
# define LT_DLLAZY_OR_NOW RTLD_NOW
12780
# define LT_DLLAZY_OR_NOW DL_NOW
12782
# define LT_DLLAZY_OR_NOW 0
12790
extern "C" void exit (int);
12793
void fnord() { int i=42;}
12796
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12797
int status = $lt_dlunknown;
12801
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12802
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12803
/* dlclose (self); */
12809
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12810
(eval $ac_link) 2>&5
12812
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12814
(./conftest; exit; ) 2>/dev/null
12816
case x$lt_status in
12817
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12818
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12819
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12822
# compilation failed
12823
lt_cv_dlopen_self=no
12830
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12831
$as_echo "$lt_cv_dlopen_self" >&6; }
12833
if test "x$lt_cv_dlopen_self" = xyes; then
12834
LDFLAGS="$LDFLAGS $link_static_flag"
12835
{ $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12836
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12837
if test "${lt_cv_dlopen_self_static+set}" = set; then
12838
$as_echo_n "(cached) " >&6
12840
if test "$cross_compiling" = yes; then :
12841
lt_cv_dlopen_self_static=cross
12843
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12844
lt_status=$lt_dlunknown
12845
cat > conftest.$ac_ext <<EOF
12846
#line 12846 "configure"
12847
#include "confdefs.h"
12856
# define LT_DLGLOBAL RTLD_GLOBAL
12859
# define LT_DLGLOBAL DL_GLOBAL
12861
# define LT_DLGLOBAL 0
12865
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12866
find out it does not work in some platform. */
12867
#ifndef LT_DLLAZY_OR_NOW
12869
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12872
# define LT_DLLAZY_OR_NOW DL_LAZY
12875
# define LT_DLLAZY_OR_NOW RTLD_NOW
12878
# define LT_DLLAZY_OR_NOW DL_NOW
12880
# define LT_DLLAZY_OR_NOW 0
12888
extern "C" void exit (int);
12891
void fnord() { int i=42;}
12894
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12895
int status = $lt_dlunknown;
12899
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12900
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12901
/* dlclose (self); */
12907
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12908
(eval $ac_link) 2>&5
12910
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12911
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12912
(./conftest; exit; ) 2>/dev/null
12914
case x$lt_status in
12915
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12916
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12917
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12920
# compilation failed
12921
lt_cv_dlopen_self_static=no
12928
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12929
$as_echo "$lt_cv_dlopen_self_static" >&6; }
12932
CPPFLAGS="$save_CPPFLAGS"
12933
LDFLAGS="$save_LDFLAGS"
12938
case $lt_cv_dlopen_self in
12939
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12940
*) enable_dlopen_self=unknown ;;
12943
case $lt_cv_dlopen_self_static in
12944
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12945
*) enable_dlopen_self_static=unknown ;;
12950
# Report which librarie types wil actually be built
12951
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12952
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12953
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12954
$as_echo "$can_build_shared" >&6; }
12956
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12957
$as_echo_n "checking whether to build shared libraries... " >&6; }
12958
test "$can_build_shared" = "no" && enable_shared=no
12960
# On AIX, shared libraries and static libraries use the same namespace, and
12961
# are all built from PIC.
12964
test "$enable_shared" = yes && enable_static=no
12965
if test -n "$RANLIB"; then
12966
archive_cmds="$archive_cmds~\$RANLIB \$lib"
12967
postinstall_cmds='$RANLIB $lib'
12972
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12973
test "$enable_shared" = yes && enable_static=no
12976
darwin* | rhapsody*)
12977
if test "$GCC" = yes; then
12978
archive_cmds_need_lc=no
12980
rhapsody* | darwin1.[012])
12981
allow_undefined_flag='-Wl,-undefined -Wl,suppress'
12984
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12985
allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
12987
case ${MACOSX_DEPLOYMENT_TARGET} in
12989
allow_undefined_flag='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
12992
allow_undefined_flag='-Wl,-undefined -Wl,dynamic_lookup'
12998
output_verbose_link_cmd='echo'
12999
archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
13000
module_cmds='$CC $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
13001
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13002
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}'
13003
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}'
13005
hardcode_automatic=yes
13006
hardcode_shlibpath_var=unsupported
13007
whole_archive_flag_spec='-all_load $convenience'
13008
link_all_deplibs=yes
13014
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
13015
$as_echo "$enable_shared" >&6; }
13017
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13018
$as_echo_n "checking whether to build static libraries... " >&6; }
13019
# Make sure either enable_shared or enable_static is yes.
13020
test "$enable_shared" = yes || enable_static=yes
13021
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
13022
$as_echo "$enable_static" >&6; }
13024
# The else clause should only fire when bootstrapping the
13025
# libtool distribution, otherwise you forgot to ship ltmain.sh
13026
# with your package, and you will get complaints that there are
13027
# no rules to generate ltmain.sh.
13028
if test -f "$ltmain"; then
13029
# See if we are running on zsh, and set the options which allow our commands through
13030
# without removal of \ escapes.
13031
if test -n "${ZSH_VERSION+set}" ; then
13032
setopt NO_GLOB_SUBST
13034
# Now quote all the things that may contain metacharacters while being
13035
# careful not to overquote the AC_SUBSTed values. We take copies of the
13036
# variables and quote the copies for generation of the libtool script.
13037
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
13038
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13039
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13040
deplibs_check_method reload_flag reload_cmds need_locks \
13041
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13042
lt_cv_sys_global_symbol_to_c_name_address \
13043
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13044
old_postinstall_cmds old_postuninstall_cmds \
13048
lt_prog_compiler_wl \
13049
lt_prog_compiler_pic \
13050
lt_prog_compiler_static \
13051
lt_prog_compiler_no_builtin_flag \
13052
export_dynamic_flag_spec \
13053
thread_safe_flag_spec \
13054
whole_archive_flag_spec \
13055
enable_shared_with_static_runtimes \
13057
old_archive_from_new_cmds \
13062
compiler_lib_search_path \
13064
archive_expsym_cmds \
13066
postuninstall_cmds \
13067
old_archive_from_expsyms_cmds \
13068
allow_undefined_flag \
13069
no_undefined_flag \
13070
export_symbols_cmds \
13071
hardcode_libdir_flag_spec \
13072
hardcode_libdir_flag_spec_ld \
13073
hardcode_libdir_separator \
13074
hardcode_automatic \
13076
module_expsym_cmds \
13077
lt_cv_prog_compiler_c_o \
13079
include_expsyms; do
13082
old_archive_cmds | \
13083
old_archive_from_new_cmds | \
13085
archive_expsym_cmds | \
13087
module_expsym_cmds | \
13088
old_archive_from_expsyms_cmds | \
13089
export_symbols_cmds | \
13090
extract_expsyms_cmds | reload_cmds | finish_cmds | \
13091
postinstall_cmds | postuninstall_cmds | \
13092
old_postinstall_cmds | old_postuninstall_cmds | \
13093
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13094
# Double-quote double-evaled strings.
13095
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13098
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13104
*'\$0 --fallback-echo"')
13105
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13109
cfgfile="${ofile}T"
13110
trap "$rm \"$cfgfile\"; exit 1" 1 2 15
13112
{ $as_echo "$as_me:$LINENO: creating $ofile" >&5
13113
$as_echo "$as_me: creating $ofile" >&6;}
13115
cat <<__EOF__ >> "$cfgfile"
13118
# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13119
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
13120
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13122
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
13123
# Free Software Foundation, Inc.
13125
# This file is part of GNU Libtool:
13126
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
13128
# This program is free software; you can redistribute it and/or modify
13129
# it under the terms of the GNU General Public License as published by
13130
# the Free Software Foundation; either version 2 of the License, or
13131
# (at your option) any later version.
13133
# This program is distributed in the hope that it will be useful, but
13134
# WITHOUT ANY WARRANTY; without even the implied warranty of
13135
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13136
# General Public License for more details.
13138
# You should have received a copy of the GNU General Public License
13139
# along with this program; if not, write to the Free Software
13140
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13142
# As a special exception to the GNU General Public License, if you
13143
# distribute this file as part of a program that contains a
13144
# configuration script generated by Autoconf, you may include it under
13145
# the same distribution terms that you use for the rest of that program.
13147
# A sed program that does not truncate output.
13150
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13151
Xsed="$SED -e s/^X//"
13153
# The HP-UX ksh and POSIX shell print the target directory to stdout
13154
# if CDPATH is set.
13155
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
13157
# The names of the tagged configurations supported by this script.
13160
# ### BEGIN LIBTOOL CONFIG
13162
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13164
# Shell to use when invoking shell scripts.
13167
# Whether or not to build shared libraries.
13168
build_libtool_libs=$enable_shared
13170
# Whether or not to build static libraries.
13171
build_old_libs=$enable_static
13173
# Whether or not to add -lc for building shared libraries.
13174
build_libtool_need_lc=$archive_cmds_need_lc
13176
# Whether or not to disallow shared libs when runtime libs are static
13177
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13179
# Whether or not to optimize for fast installation.
13180
fast_install=$enable_fast_install
13183
host_alias=$host_alias
13186
# An echo program that does not interpret backslashes.
13191
AR_FLAGS=$lt_AR_FLAGS
13196
# A language-specific compiler.
13199
# Is the compiler the GNU C compiler?
13205
# The linker used to build libraries.
13208
# Whether we need hard or soft links.
13211
# A BSD-compatible nm program.
13214
# A symbol stripping program
13217
# Used to examine libraries when file_magic_cmd begins "file"
13218
MAGIC_CMD=$MAGIC_CMD
13220
# Used on cygwin: DLL creation program.
13223
# Used on cygwin: object dumper.
13226
# Used on cygwin: assembler.
13229
# The name of the directory that contains temporary libtool files.
13232
# How to create reloadable object files.
13233
reload_flag=$lt_reload_flag
13234
reload_cmds=$lt_reload_cmds
13236
# How to pass a linker flag through the compiler.
13237
wl=$lt_lt_prog_compiler_wl
13239
# Object file suffix (normally "o").
13240
objext="$ac_objext"
13242
# Old archive suffix (normally "a").
13245
# Shared library suffix (normally ".so").
13248
# Executable file suffix (normally "").
13251
# Additional compiler flags for building library objects.
13252
pic_flag=$lt_lt_prog_compiler_pic
13255
# What is the maximum length of a command?
13256
max_cmd_len=$lt_cv_sys_max_cmd_len
13258
# Does compiler simultaneously support -c and -o options?
13259
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13261
# Must we lock files when doing compilation ?
13262
need_locks=$lt_need_locks
13264
# Do we need the lib prefix for modules?
13265
need_lib_prefix=$need_lib_prefix
13267
# Do we need a version for libraries?
13268
need_version=$need_version
13270
# Whether dlopen is supported.
13271
dlopen_support=$enable_dlopen
13273
# Whether dlopen of programs is supported.
13274
dlopen_self=$enable_dlopen_self
13276
# Whether dlopen of statically linked programs is supported.
13277
dlopen_self_static=$enable_dlopen_self_static
13279
# Compiler flag to prevent dynamic linking.
13280
link_static_flag=$lt_lt_prog_compiler_static
13282
# Compiler flag to turn off builtin functions.
13283
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13285
# Compiler flag to allow reflexive dlopens.
13286
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13288
# Compiler flag to generate shared objects directly from archives.
13289
whole_archive_flag_spec=$lt_whole_archive_flag_spec
13291
# Compiler flag to generate thread-safe objects.
13292
thread_safe_flag_spec=$lt_thread_safe_flag_spec
13294
# Library versioning type.
13295
version_type=$version_type
13297
# Format of library name prefix.
13298
libname_spec=$lt_libname_spec
13300
# List of archive names. First name is the real one, the rest are links.
13301
# The last name is the one that the linker finds with -lNAME.
13302
library_names_spec=$lt_library_names_spec
13304
# The coded name of the library, if different from the real name.
13305
soname_spec=$lt_soname_spec
13307
# Commands used to build and install an old-style archive.
13309
old_archive_cmds=$lt_old_archive_cmds
13310
old_postinstall_cmds=$lt_old_postinstall_cmds
13311
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13313
# Create an old-style archive from a shared archive.
13314
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13316
# Create a temporary old-style archive to link instead of a shared archive.
13317
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13319
# Commands used to build and install a shared archive.
13320
archive_cmds=$lt_archive_cmds
13321
archive_expsym_cmds=$lt_archive_expsym_cmds
13322
postinstall_cmds=$lt_postinstall_cmds
13323
postuninstall_cmds=$lt_postuninstall_cmds
13325
# Commands used to build a loadable module (assumed same as above if empty)
13326
module_cmds=$lt_module_cmds
13327
module_expsym_cmds=$lt_module_expsym_cmds
13329
# Commands to strip libraries.
13330
old_striplib=$lt_old_striplib
13331
striplib=$lt_striplib
13333
# Dependencies to place before the objects being linked to create a
13335
predep_objects=$lt_predep_objects
13337
# Dependencies to place after the objects being linked to create a
13339
postdep_objects=$lt_postdep_objects
13341
# Dependencies to place before the objects being linked to create a
13343
predeps=$lt_predeps
13345
# Dependencies to place after the objects being linked to create a
13347
postdeps=$lt_postdeps
13349
# The library search path used internally by the compiler when linking
13350
# a shared library.
13351
compiler_lib_search_path=$lt_compiler_lib_search_path
13353
# Method to check whether dependent libraries are shared objects.
13354
deplibs_check_method=$lt_deplibs_check_method
13356
# Command to use when deplibs_check_method == file_magic.
13357
file_magic_cmd=$lt_file_magic_cmd
13359
# Flag that allows shared libraries with undefined symbols to be built.
13360
allow_undefined_flag=$lt_allow_undefined_flag
13362
# Flag that forces no undefined symbols.
13363
no_undefined_flag=$lt_no_undefined_flag
13365
# Commands used to finish a libtool library installation in a directory.
13366
finish_cmds=$lt_finish_cmds
13368
# Same as above, but a single script fragment to be evaled but not shown.
13369
finish_eval=$lt_finish_eval
13371
# Take the output of nm and produce a listing of raw symbols and C names.
13372
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13374
# Transform the output of nm in a proper C declaration
13375
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13377
# Transform the output of nm in a C name address pair
13378
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13380
# This is the shared library runtime path variable.
13381
runpath_var=$runpath_var
13383
# This is the shared library path variable.
13384
shlibpath_var=$shlibpath_var
13386
# Is shlibpath searched before the hard-coded library search path?
13387
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13389
# How to hardcode a shared library path into an executable.
13390
hardcode_action=$hardcode_action
13392
# Whether we should hardcode library paths into libraries.
13393
hardcode_into_libs=$hardcode_into_libs
13395
# Flag to hardcode \$libdir into a binary during linking.
13396
# This must work even if \$libdir does not exist.
13397
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13399
# If ld is used when linking, flag to hardcode \$libdir into
13400
# a binary during linking. This must work even if \$libdir does
13402
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13404
# Whether we need a single -rpath flag with a separated argument.
13405
hardcode_libdir_separator=$lt_hardcode_libdir_separator
13407
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13408
# resulting binary.
13409
hardcode_direct=$hardcode_direct
13411
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13412
# resulting binary.
13413
hardcode_minus_L=$hardcode_minus_L
13415
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13416
# the resulting binary.
13417
hardcode_shlibpath_var=$hardcode_shlibpath_var
13419
# Set to yes if building a shared library automatically hardcodes DIR into the library
13420
# and all subsequent libraries and executables linked against it.
13421
hardcode_automatic=$hardcode_automatic
13423
# Variables whose values should be saved in libtool wrapper scripts and
13424
# restored at relink time.
13425
variables_saved_for_relink="$variables_saved_for_relink"
13427
# Whether libtool must link a program against all its dependency libraries.
13428
link_all_deplibs=$link_all_deplibs
13430
# Compile-time system search path for libraries
13431
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13433
# Run-time system search path for libraries
13434
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13436
# Fix the shell variable \$srcfile for the compiler.
13437
fix_srcfile_path="$fix_srcfile_path"
13439
# Set to yes if exported symbols are required.
13440
always_export_symbols=$always_export_symbols
13442
# The commands to list exported symbols.
13443
export_symbols_cmds=$lt_export_symbols_cmds
13445
# The commands to extract the exported symbol list from a shared archive.
13446
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13448
# Symbols that should not be listed in the preloaded symbols.
13449
exclude_expsyms=$lt_exclude_expsyms
13451
# Symbols that must always be exported.
13452
include_expsyms=$lt_include_expsyms
13454
# ### END LIBTOOL CONFIG
13461
cat <<\EOF >> "$cfgfile"
13463
# AIX sometimes has problems with the GCC collect2 program. For some
13464
# reason, if we set the COLLECT_NAMES environment variable, the problems
13465
# vanish in a puff of smoke.
13466
if test "X${COLLECT_NAMES+set}" != Xset; then
13468
export COLLECT_NAMES
13474
# We use sed instead of cat because bash on DJGPP gets confused if
13475
# if finds mixed CR/LF and LF-only lines. Since sed operates in
13476
# text mode, it properly converts lines to CR/LF. This bash problem
13477
# is reportedly fixed, but why not run on old versions too?
13478
sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
13480
mv -f "$cfgfile" "$ofile" || \
13481
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13485
# If there is no Makefile yet, we rely on a make rule to execute
13486
# `config.status --recheck' to rerun these tests and create the
13487
# libtool script then.
13488
test -f Makefile && make "$ltmain"
13493
ac_cpp='$CPP $CPPFLAGS'
13494
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13495
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13496
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13501
# Check whether --with-tags was given.
13502
if test "${with_tags+set}" = set; then
13503
withval=$with_tags; tagnames="$withval"
13507
if test -f "$ltmain" && test -n "$tagnames"; then
13508
if test ! -f "${ofile}"; then
13509
{ $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
13510
$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
13513
if test -z "$LTCC"; then
13514
eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
13515
if test -z "$LTCC"; then
13516
{ $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
13517
$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
13519
{ $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
13520
$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
13524
# Extract list of available tagged configurations in $ofile.
13525
# Note that this assumes the entire list is on one line.
13526
available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
13528
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13529
for tagname in $tagnames; do
13531
# Check whether tagname contains only valid characters
13532
case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
13534
*) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
13535
$as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
13536
{ (exit 1); exit 1; }; }
13540
if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
13542
{ { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
13543
$as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
13544
{ (exit 1); exit 1; }; }
13547
# Update the list of available tags.
13548
if test -n "$tagname"; then
13549
echo appending configuration tag \"$tagname\" to $ofile
13553
if test -n "$CXX" && test "X$CXX" != "Xno"; then
13555
ac_cpp='$CXXCPP $CPPFLAGS'
13556
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13557
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13558
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13563
archive_cmds_need_lc_CXX=no
13564
allow_undefined_flag_CXX=
13565
always_export_symbols_CXX=no
13566
archive_expsym_cmds_CXX=
13567
export_dynamic_flag_spec_CXX=
13568
hardcode_direct_CXX=no
13569
hardcode_libdir_flag_spec_CXX=
13570
hardcode_libdir_flag_spec_ld_CXX=
13571
hardcode_libdir_separator_CXX=
13572
hardcode_minus_L_CXX=no
13573
hardcode_automatic_CXX=no
13575
module_expsym_cmds_CXX=
13576
link_all_deplibs_CXX=unknown
13577
old_archive_cmds_CXX=$old_archive_cmds
13578
no_undefined_flag_CXX=
13579
whole_archive_flag_spec_CXX=
13580
enable_shared_with_static_runtimes_CXX=no
13582
# Dependencies to place before and after the object being linked:
13583
predep_objects_CXX=
13584
postdep_objects_CXX=
13587
compiler_lib_search_path_CXX=
13589
# Source file extension for C++ test sources.
13592
# Object file extension for compiled C++ test sources.
13596
# Code to be used in simple compile tests
13597
lt_simple_compile_test_code="int some_variable = 0;\n"
13599
# Code to be used in simple link tests
13600
lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
13602
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13604
# If no C compiler was specified, use CC.
13607
# Allow CC to be a program name with arguments.
13611
# Allow CC to be a program name with arguments.
13616
lt_save_with_gnu_ld=$with_gnu_ld
13617
lt_save_path_LD=$lt_cv_path_LD
13618
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13619
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13621
unset lt_cv_prog_gnu_ld
13623
if test -n "${lt_cv_path_LDCXX+set}"; then
13624
lt_cv_path_LD=$lt_cv_path_LDCXX
13626
unset lt_cv_path_LD
13628
test -z "${LDCXX+set}" || LD=$LDCXX
13632
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13634
# We don't want -fno-exception wen compiling C++ code, so set the
13635
# no_builtin_flag separately
13636
if test "$GXX" = yes; then
13637
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13639
lt_prog_compiler_no_builtin_flag_CXX=
13642
if test "$GXX" = yes; then
13643
# Set up default GNU C++ configuration
13646
# Check whether --with-gnu-ld was given.
13647
if test "${with_gnu_ld+set}" = set; then
13648
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13654
if test "$GCC" = yes; then
13655
# Check if gcc -print-prog-name=ld gives a path.
13656
{ $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
13657
$as_echo_n "checking for ld used by $CC... " >&6; }
13660
# gcc leaves a trailing carriage return which upsets mingw
13661
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13663
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13666
# Accept absolute paths.
13668
re_direlt='/[^/][^/]*/\.\./'
13669
# Canonicalize the pathname of ld
13670
ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
13671
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
13672
ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
13674
test -z "$LD" && LD="$ac_prog"
13677
# If it fails, then pretend we aren't using GCC.
13681
# If it is relative, then search for the first ld in PATH.
13682
with_gnu_ld=unknown
13685
elif test "$with_gnu_ld" = yes; then
13686
{ $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
13687
$as_echo_n "checking for GNU ld... " >&6; }
13689
{ $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
13690
$as_echo_n "checking for non-GNU ld... " >&6; }
13692
if test "${lt_cv_path_LD+set}" = set; then
13693
$as_echo_n "(cached) " >&6
13695
if test -z "$LD"; then
13696
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13697
for ac_dir in $PATH; do
13699
test -z "$ac_dir" && ac_dir=.
13700
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13701
lt_cv_path_LD="$ac_dir/$ac_prog"
13702
# Check to see if the program is GNU ld. I'd rather use --version,
13703
# but apparently some GNU ld's only accept -v.
13704
# Break only if it was the GNU/non-GNU ld that we prefer.
13705
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13706
*GNU* | *'with BFD'*)
13707
test "$with_gnu_ld" != no && break
13710
test "$with_gnu_ld" != yes && break
13717
lt_cv_path_LD="$LD" # Let the user override the test with a path.
13721
LD="$lt_cv_path_LD"
13722
if test -n "$LD"; then
13723
{ $as_echo "$as_me:$LINENO: result: $LD" >&5
13724
$as_echo "$LD" >&6; }
13726
{ $as_echo "$as_me:$LINENO: result: no" >&5
13727
$as_echo "no" >&6; }
13729
test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
13730
$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
13731
{ (exit 1); exit 1; }; }
13732
{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
13733
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13734
if test "${lt_cv_prog_gnu_ld+set}" = set; then
13735
$as_echo_n "(cached) " >&6
13737
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
13738
case `$LD -v 2>&1 </dev/null` in
13739
*GNU* | *'with BFD'*)
13740
lt_cv_prog_gnu_ld=yes
13743
lt_cv_prog_gnu_ld=no
13747
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
13748
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13749
with_gnu_ld=$lt_cv_prog_gnu_ld
13753
# Check if GNU C++ uses GNU ld as the underlying linker, since the
13754
# archiving commands below assume that GNU ld is being used.
13755
if test "$with_gnu_ld" = yes; then
13756
archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
13757
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'
13759
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13760
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13762
# If archive_cmds runs LD, not CC, wlarc should be empty
13763
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13764
# investigate it a little bit more. (MM)
13767
# ancient GNU ld didn't support --whole-archive et. al.
13768
if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
13769
grep 'no-whole-archive' > /dev/null; then
13770
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13772
whole_archive_flag_spec_CXX=
13778
# A generic and very simple default shared library creation
13779
# command for GNU C++ for the case where it uses the native
13780
# linker, instead of GNU ld. If possible, this setting should
13781
# overridden to take advantage of the native linker features on
13782
# the platform it is being used on.
13783
archive_cmds_CXX='$CC -shared -nostdlib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects -o $lib'
13786
# Commands to make compiler produce verbose output that lists
13787
# what "hidden" libraries, object files and flags are used when
13788
# linking a shared library.
13789
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
13797
# PORTME: fill in a description of your system's C++ link characteristics
13798
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13799
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13803
# FIXME: insert proper C++ library support
13807
if test "$host_cpu" = ia64; then
13808
# On IA64, the linker does run time linking by default, so we don't
13809
# have to do anything special.
13810
aix_use_runtimelinking=no
13811
exp_sym_flag='-Bexport'
13814
# KDE requires run time linking. Make it the default.
13815
aix_use_runtimelinking=yes
13816
exp_sym_flag='-bexport'
13817
no_entry_flag='-bnoentry'
13820
# When large executables or shared objects are built, AIX ld can
13821
# have problems creating the table of contents. If linking a library
13822
# or program results in "error TOC overflow" add -mminimal-toc to
13823
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13824
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13826
archive_cmds_CXX=''
13827
hardcode_direct_CXX=yes
13828
hardcode_libdir_separator_CXX=':'
13829
link_all_deplibs_CXX=yes
13831
if test "$GXX" = yes; then
13832
case $host_os in aix4.012|aix4.012.*)
13833
# We only want to do this on AIX 4.2 and lower, the check
13834
# below for broken collect2 doesn't work under 4.3+
13835
collect2name=`${CC} -print-prog-name=collect2`
13836
if test -f "$collect2name" && \
13837
strings "$collect2name" | grep resolve_lib_name >/dev/null
13839
# We have reworked collect2
13840
hardcode_direct_CXX=yes
13842
# We have old collect2
13843
hardcode_direct_CXX=unsupported
13844
# It fails to find uninstalled libraries when the uninstalled
13845
# path is not listed in the libpath. Setting hardcode_minus_L
13846
# to unsupported forces relinking
13847
hardcode_minus_L_CXX=yes
13848
hardcode_libdir_flag_spec_CXX='-L$libdir'
13849
hardcode_libdir_separator_CXX=
13852
shared_flag='-shared'
13855
if test "$host_cpu" = ia64; then
13856
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13857
# chokes on -Wl,-G. The following line is correct:
13860
if test "$aix_use_runtimelinking" = yes; then
13861
shared_flag='-qmkshrobj ${wl}-G'
13863
shared_flag='-qmkshrobj'
13868
# Let the compiler handle the export list.
13869
always_export_symbols_CXX=no
13870
if test "$aix_use_runtimelinking" = yes; then
13871
# Warning - without using the other runtime loading flags (-brtl),
13872
# -berok will link without error, but may produce a broken library.
13873
allow_undefined_flag_CXX='-berok'
13874
# Determine the default libpath from the value encoded in an empty executable.
13875
cat >conftest.$ac_ext <<_ACEOF
13878
cat confdefs.h >>conftest.$ac_ext
13879
cat >>conftest.$ac_ext <<_ACEOF
13880
/* end confdefs.h. */
13890
rm -f conftest.$ac_objext conftest$ac_exeext
13891
if { (ac_try="$ac_link"
13892
case "(($ac_try" in
13893
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13894
*) ac_try_echo=$ac_try;;
13896
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13897
$as_echo "$ac_try_echo") >&5
13898
(eval "$ac_link") 2>conftest.er1
13900
grep -v '^ *+' conftest.er1 >conftest.err
13902
cat conftest.err >&5
13903
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904
(exit $ac_status); } && {
13905
test -z "$ac_cxx_werror_flag" ||
13906
test ! -s conftest.err
13907
} && test -s conftest$ac_exeext && {
13908
test "$cross_compiling" = yes ||
13909
$as_test_x conftest$ac_exeext
13912
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13914
# Check for a 64-bit object if we didn't find anything.
13915
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; }
13918
$as_echo "$as_me: failed program was:" >&5
13919
sed 's/^/| /' conftest.$ac_ext >&5
13924
rm -rf conftest.dSYM
13925
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13926
conftest$ac_exeext conftest.$ac_ext
13927
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13929
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13931
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"
13932
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"
13934
if test "$host_cpu" = ia64; then
13935
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13936
allow_undefined_flag_CXX="-z nodefs"
13937
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"
13939
# Determine the default libpath from the value encoded in an empty executable.
13940
cat >conftest.$ac_ext <<_ACEOF
13943
cat confdefs.h >>conftest.$ac_ext
13944
cat >>conftest.$ac_ext <<_ACEOF
13945
/* end confdefs.h. */
13955
rm -f conftest.$ac_objext conftest$ac_exeext
13956
if { (ac_try="$ac_link"
13957
case "(($ac_try" in
13958
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13959
*) ac_try_echo=$ac_try;;
13961
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13962
$as_echo "$ac_try_echo") >&5
13963
(eval "$ac_link") 2>conftest.er1
13965
grep -v '^ *+' conftest.er1 >conftest.err
13967
cat conftest.err >&5
13968
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969
(exit $ac_status); } && {
13970
test -z "$ac_cxx_werror_flag" ||
13971
test ! -s conftest.err
13972
} && test -s conftest$ac_exeext && {
13973
test "$cross_compiling" = yes ||
13974
$as_test_x conftest$ac_exeext
13977
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13979
# Check for a 64-bit object if we didn't find anything.
13980
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; }
13983
$as_echo "$as_me: failed program was:" >&5
13984
sed 's/^/| /' conftest.$ac_ext >&5
13989
rm -rf conftest.dSYM
13990
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13991
conftest$ac_exeext conftest.$ac_ext
13992
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13994
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13995
# Warning - without using the other run time loading flags,
13996
# -berok will link without error, but may produce a broken library.
13997
no_undefined_flag_CXX=' ${wl}-bernotok'
13998
allow_undefined_flag_CXX=' ${wl}-berok'
13999
# -bexpall does not export symbols beginning with underscore (_)
14000
always_export_symbols_CXX=yes
14001
# Exported symbols can be pulled into shared objects from archives
14002
whole_archive_flag_spec_CXX=' '
14003
archive_cmds_need_lc_CXX=yes
14004
# This is similar to how AIX traditionally builds it's shared libraries.
14005
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'
14010
case $cc_basename in
14012
# FIXME: insert proper C++ library support
14018
cygwin* | mingw* | pw32*)
14019
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14020
# as there is no search path for DLLs.
14021
hardcode_libdir_flag_spec_CXX='-L$libdir'
14022
allow_undefined_flag_CXX=no
14023
always_export_symbols_CXX=no
14024
enable_shared_with_static_runtimes_CXX=yes
14026
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14027
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'
14028
# If the export-symbols file already is a .def file (1st line
14029
# is EXPORTS), use it as is; otherwise, prepend...
14030
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14031
cp $export_symbols $output_objdir/$soname.def;
14033
echo EXPORTS > $output_objdir/$soname.def;
14034
cat $export_symbols >> $output_objdir/$soname.def;
14036
$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'
14042
darwin* | rhapsody*)
14043
if test "$GXX" = yes; then
14044
archive_cmds_need_lc_CXX=no
14046
rhapsody* | darwin1.[012])
14047
allow_undefined_flag_CXX='-Wl,-undefined -Wl,suppress'
14050
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14051
allow_undefined_flag_CXX='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
14053
case ${MACOSX_DEPLOYMENT_TARGET} in
14055
allow_undefined_flag_CXX='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
14058
allow_undefined_flag_CXX='-Wl,-undefined -Wl,dynamic_lookup'
14064
lt_int_apple_cc_single_mod=no
14065
output_verbose_link_cmd='echo'
14066
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14067
lt_int_apple_cc_single_mod=yes
14069
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14070
archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
14072
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'
14074
module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
14076
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14077
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14078
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}'
14080
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}'
14082
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}'
14083
hardcode_direct_CXX=no
14084
hardcode_automatic_CXX=yes
14085
hardcode_shlibpath_var_CXX=unsupported
14086
whole_archive_flag_spec_CXX='-all_load $convenience'
14087
link_all_deplibs_CXX=yes
14094
case $cc_basename in
14096
# FIXME: insert proper C++ library support
14100
# Green Hills C++ Compiler
14101
# FIXME: insert proper C++ library support
14105
# FIXME: insert proper C++ library support
14111
# C++ shared libraries reported to be fairly broken before switch to ELF
14115
archive_cmds_need_lc_CXX=no
14117
freebsd* | kfreebsd*-gnu)
14118
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14125
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14126
hardcode_libdir_separator_CXX=:
14127
export_dynamic_flag_spec_CXX='${wl}-E'
14128
hardcode_direct_CXX=yes
14129
hardcode_minus_L_CXX=yes # Not in the search PATH,
14130
# but as the default
14131
# location of the library.
14133
case $cc_basename in
14135
# FIXME: insert proper C++ library support
14139
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'
14140
# Commands to make compiler produce verbose output that lists
14141
# what "hidden" libraries, object files and flags are used when
14142
# linking a shared library.
14144
# There doesn't appear to be a way to prevent this compiler from
14145
# explicitly linking system object files so we need to strip them
14146
# from the output so that they don't get included in the library
14148
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'
14151
if test "$GXX" = yes; then
14152
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'
14154
# FIXME: insert proper C++ library support
14161
if test $with_gnu_ld = no; then
14162
case "$host_cpu" in
14164
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14165
hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
14166
hardcode_libdir_separator_CXX=:
14169
hardcode_libdir_flag_spec_CXX='-L$libdir'
14172
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14173
hardcode_libdir_separator_CXX=:
14174
export_dynamic_flag_spec_CXX='${wl}-E'
14178
case "$host_cpu" in
14180
hardcode_direct_CXX=no
14181
hardcode_shlibpath_var_CXX=no
14184
hardcode_direct_CXX=no
14185
hardcode_shlibpath_var_CXX=no
14186
hardcode_minus_L_CXX=yes # Not in the search PATH,
14187
# but as the default
14188
# location of the library.
14191
hardcode_direct_CXX=yes
14192
hardcode_minus_L_CXX=yes # Not in the search PATH,
14193
# but as the default
14194
# location of the library.
14198
case $cc_basename in
14200
# FIXME: insert proper C++ library support
14204
case "$host_cpu" in
14206
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
14209
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
14212
# Commands to make compiler produce verbose output that lists
14213
# what "hidden" libraries, object files and flags are used when
14214
# linking a shared library.
14216
# There doesn't appear to be a way to prevent this compiler from
14217
# explicitly linking system object files so we need to strip them
14218
# from the output so that they don't get included in the library
14220
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'
14223
if test "$GXX" = yes; then
14224
if test $with_gnu_ld = no; then
14225
case "$host_cpu" in
14227
archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
14230
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'
14235
# FIXME: insert proper C++ library support
14242
case $cc_basename in
14245
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'
14247
# Archives containing C++ object files must be created using
14248
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
14249
# necessary to make sure instantiated templates are included
14251
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14254
if test "$GXX" = yes; then
14255
if test "$with_gnu_ld" = no; then
14256
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'
14258
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'
14261
link_all_deplibs_CXX=yes
14264
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14265
hardcode_libdir_separator_CXX=:
14268
case $cc_basename in
14270
# Kuck and Associates, Inc. (KAI) C++ Compiler
14272
# KCC will only create a shared library if the output file
14273
# ends with ".so" (or ".sl" for HP-UX), so rename the library
14274
# to its proper name (with version) after linking.
14275
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'
14276
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'
14277
# Commands to make compiler produce verbose output that lists
14278
# what "hidden" libraries, object files and flags are used when
14279
# linking a shared library.
14281
# There doesn't appear to be a way to prevent this compiler from
14282
# explicitly linking system object files so we need to strip them
14283
# from the output so that they don't get included in the library
14285
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'
14287
hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
14288
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14290
# Archives containing C++ object files must be created using
14291
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
14292
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14297
archive_cmds_need_lc_CXX=no
14298
archive_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
14299
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'
14300
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14301
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14302
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14306
archive_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-soname $wl$soname -o $lib'
14307
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'
14309
runpath_var=LD_RUN_PATH
14310
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14311
hardcode_libdir_separator_CXX=:
14313
# Commands to make compiler produce verbose output that lists
14314
# what "hidden" libraries, object files and flags are used when
14315
# linking a shared library.
14317
# There doesn't appear to be a way to prevent this compiler from
14318
# explicitly linking system object files so we need to strip them
14319
# from the output so that they don't get included in the library
14321
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'
14326
# FIXME: insert proper C++ library support
14330
# FIXME: insert proper C++ library support
14334
case $cc_basename in
14336
# FIXME: insert proper C++ library support
14340
# FIXME: insert proper C++ library support
14346
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14347
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14349
hardcode_libdir_flag_spec_CXX='-R$libdir'
14350
hardcode_direct_CXX=yes
14351
hardcode_shlibpath_var_CXX=no
14353
# Workaround some broken pre-1.5 toolchains
14354
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14357
case $cc_basename in
14359
# Kuck and Associates, Inc. (KAI) C++ Compiler
14361
# KCC will only create a shared library if the output file
14362
# ends with ".so" (or ".sl" for HP-UX), so rename the library
14363
# to its proper name (with version) after linking.
14364
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'
14366
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14367
hardcode_libdir_separator_CXX=:
14369
# Archives containing C++ object files must be created using
14370
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
14371
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14375
# Rational C++ 2.4.1
14376
# FIXME: insert proper C++ library support
14380
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14381
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'
14383
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14384
hardcode_libdir_separator_CXX=:
14386
# Commands to make compiler produce verbose output that lists
14387
# what "hidden" libraries, object files and flags are used when
14388
# linking a shared library.
14390
# There doesn't appear to be a way to prevent this compiler from
14391
# explicitly linking system object files so we need to strip them
14392
# from the output so that they don't get included in the library
14394
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'
14397
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14398
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14399
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'
14401
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14402
hardcode_libdir_separator_CXX=:
14404
# Commands to make compiler produce verbose output that lists
14405
# what "hidden" libraries, object files and flags are used when
14406
# linking a shared library.
14407
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14410
# FIXME: insert proper C++ library support
14417
case $cc_basename in
14419
# Kuck and Associates, Inc. (KAI) C++ Compiler
14421
# KCC will only create a shared library if the output file
14422
# ends with ".so" (or ".sl" for HP-UX), so rename the library
14423
# to its proper name (with version) after linking.
14424
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'
14426
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14427
hardcode_libdir_separator_CXX=:
14429
# Archives containing C++ object files must be created using
14430
# the KAI C++ compiler.
14431
old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
14434
# Rational C++ 2.4.1
14435
# FIXME: insert proper C++ library support
14439
allow_undefined_flag_CXX=' -expect_unresolved \*'
14440
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'
14441
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14442
echo "-hidden">> $lib.exp~
14443
$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~
14446
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14447
hardcode_libdir_separator_CXX=:
14449
# Commands to make compiler produce verbose output that lists
14450
# what "hidden" libraries, object files and flags are used when
14451
# linking a shared library.
14453
# There doesn't appear to be a way to prevent this compiler from
14454
# explicitly linking system object files so we need to strip them
14455
# from the output so that they don't get included in the library
14457
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'
14460
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14461
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14462
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'
14464
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14465
hardcode_libdir_separator_CXX=:
14467
# Commands to make compiler produce verbose output that lists
14468
# what "hidden" libraries, object files and flags are used when
14469
# linking a shared library.
14470
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
14473
# FIXME: insert proper C++ library support
14480
# FIXME: insert proper C++ library support
14484
archive_cmds_need_lc_CXX=no
14485
case $cc_basename in
14487
# FIXME: insert proper C++ library support
14491
# FIXME: insert proper C++ library support
14497
case $cc_basename in
14500
# FIXME: insert proper C++ library support
14505
# FIXME: insert proper C++ library support
14509
# FIXME: insert proper C++ library support
14515
case $cc_basename in
14517
# Sun C++ 4.2, 5.x and Centerline C++
14518
no_undefined_flag_CXX=' -zdefs'
14519
archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects'
14520
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14521
$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'
14523
hardcode_libdir_flag_spec_CXX='-R$libdir'
14524
hardcode_shlibpath_var_CXX=no
14526
solaris2.0-5 | solaris2.0-5.*) ;;
14528
# The C++ compiler is used as linker so we must use $wl
14529
# flag to pass the commands to the underlying system
14531
# Supported since Solaris 2.6 (maybe 2.5.1?)
14532
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14535
link_all_deplibs_CXX=yes
14537
# Commands to make compiler produce verbose output that lists
14538
# what "hidden" libraries, object files and flags are used when
14539
# linking a shared library.
14541
# There doesn't appear to be a way to prevent this compiler from
14542
# explicitly linking system object files so we need to strip them
14543
# from the output so that they don't get included in the library
14545
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'
14547
# Archives containing C++ object files must be created using
14548
# "CC -xar", where "CC" is the Sun C++ compiler. This is
14549
# necessary to make sure instantiated templates are included
14551
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14554
# Green Hills C++ Compiler
14555
archive_cmds_CXX='$CC -shared $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
14557
# The C++ compiler must be used to create the archive.
14558
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14561
# GNU C++ compiler with Solaris linker
14562
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14563
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14564
if $CC --version | grep -v '^2\.7' > /dev/null; then
14565
archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
14566
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14567
$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
14569
# Commands to make compiler produce verbose output that lists
14570
# what "hidden" libraries, object files and flags are used when
14571
# linking a shared library.
14572
output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14574
# g++ 2.7 appears to require `-G' NOT `-shared' on this
14576
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects ${wl}-h $wl$soname -o $lib'
14577
archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14578
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $compiler_flags $predep_objects $libobjs $deplibs $postdep_objects~$rm $lib.exp'
14580
# Commands to make compiler produce verbose output that lists
14581
# what "hidden" libraries, object files and flags are used when
14582
# linking a shared library.
14583
output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
14586
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14591
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14592
archive_cmds_need_lc_CXX=no
14595
case $cc_basename in
14597
# NonStop-UX NCC 3.20
14598
# FIXME: insert proper C++ library support
14602
# FIXME: insert proper C++ library support
14608
# FIXME: insert proper C++ library support
14612
# FIXME: insert proper C++ library support
14616
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
14617
$as_echo "$ld_shlibs_CXX" >&6; }
14618
test "$ld_shlibs_CXX" = no && can_build_shared=no
14624
cat > conftest.$ac_ext <<EOF
14628
Foo (void) { a = 0; }
14634
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14635
(eval $ac_compile) 2>&5
14637
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638
(exit $ac_status); }; then
14639
# Parse the compiler output and extract the necessary
14640
# objects, libraries and library flags.
14642
# Sentinel used to keep track of whether or not we are before
14643
# the conftest object file.
14644
pre_test_object_deps_done=no
14646
# The `*' in the case matches for architectures that use `case' in
14647
# $output_verbose_cmd can trigger glob expansion during the loop
14648
# eval without this substitution.
14649
output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
14651
for p in `eval $output_verbose_link_cmd`; do
14655
# Some compilers place space between "-{L,R}" and the path.
14656
# Remove the space.
14657
if test $p = "-L" \
14658
|| test $p = "-R"; then
14665
if test "$pre_test_object_deps_done" = no; then
14668
# Internal compiler library paths should come after those
14669
# provided the user. The postdeps already come after the
14670
# user supplied libs so there is no need to process them.
14671
if test -z "$compiler_lib_search_path_CXX"; then
14672
compiler_lib_search_path_CXX="${prev}${p}"
14674
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14677
# The "-l" case would never come before the object being
14678
# linked, so don't bother handling this case.
14681
if test -z "$postdeps_CXX"; then
14682
postdeps_CXX="${prev}${p}"
14684
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14689
*.$objext|*.$libext)
14690
# This assumes that the test object file only shows up
14691
# once in the compiler output.
14692
if test "$p" = "conftest.$objext"; then
14693
pre_test_object_deps_done=yes
14697
if test "$pre_test_object_deps_done" = no; then
14698
if test -z "$predep_objects_CXX"; then
14699
predep_objects_CXX="$p"
14701
predep_objects_CXX="$predep_objects_CXX $p"
14704
if test -z "$postdep_objects_CXX"; then
14705
postdep_objects_CXX="$p"
14707
postdep_objects_CXX="$postdep_objects_CXX $p"
14712
*) ;; # Ignore the rest.
14720
echo "libtool.m4: error: problem compiling CXX test program"
14723
$rm -f confest.$objext
14725
case " $postdeps_CXX " in
14726
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14729
lt_prog_compiler_wl_CXX=
14730
lt_prog_compiler_pic_CXX=
14731
lt_prog_compiler_static_CXX=
14733
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14734
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14736
# C++ specific cases for pic, static, wl, etc.
14737
if test "$GXX" = yes; then
14738
lt_prog_compiler_wl_CXX='-Wl,'
14739
lt_prog_compiler_static_CXX='-static'
14743
# All AIX code is PIC.
14744
if test "$host_cpu" = ia64; then
14745
# AIX 5 now supports IA64 processor
14746
lt_prog_compiler_static_CXX='-Bstatic'
14750
# FIXME: we need at least 68020 code to build shared libraries, but
14751
# adding the `-m68020' flag to GCC prevents building anything better,
14753
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14755
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14756
# PIC is the default for these OSes.
14758
mingw* | os2* | pw32*)
14759
# This hack is so that the source file can tell whether it is being
14760
# built for inclusion in a dll (and should export symbols for example).
14761
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14763
darwin* | rhapsody*)
14764
# PIC is the default on this platform
14765
# Common symbols not allowed in MH_DYLIB files
14766
lt_prog_compiler_pic_CXX='-fno-common'
14769
# DJGPP does not support shared libraries at all
14770
lt_prog_compiler_pic_CXX=
14773
if test -d /usr/nec; then
14774
lt_prog_compiler_pic_CXX=-Kconform_pic
14778
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14779
# not for PA HP-UX.
14780
case "$host_cpu" in
14784
lt_prog_compiler_pic_CXX='-fPIC'
14789
lt_prog_compiler_pic_CXX='-fPIC'
14795
# All AIX code is PIC.
14796
if test "$host_cpu" = ia64; then
14797
# AIX 5 now supports IA64 processor
14798
lt_prog_compiler_static_CXX='-Bstatic'
14800
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14804
case $cc_basename in
14806
# Green Hills C++ Compiler
14807
# _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"
14812
case $cc_basename in
14814
lt_prog_compiler_pic_CXX='-KPIC'
14817
# Green Hills C++ Compiler
14818
lt_prog_compiler_pic_CXX='-pic'
14824
freebsd* | kfreebsd*-gnu)
14825
# FreeBSD uses GNU C++
14827
hpux9* | hpux10* | hpux11*)
14828
case $cc_basename in
14830
lt_prog_compiler_wl_CXX='-Wl,'
14831
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
14832
if test "$host_cpu" != ia64; then
14833
lt_prog_compiler_pic_CXX='+Z'
14837
lt_prog_compiler_wl_CXX='-Wl,'
14838
lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
14839
case "$host_cpu" in
14844
lt_prog_compiler_pic_CXX='+Z'
14852
irix5* | irix6* | nonstopux*)
14853
case $cc_basename in
14855
lt_prog_compiler_wl_CXX='-Wl,'
14856
lt_prog_compiler_static_CXX='-non_shared'
14857
# CC pic flag -KPIC is the default.
14864
case $cc_basename in
14867
lt_prog_compiler_wl_CXX='--backend -Wl,'
14868
lt_prog_compiler_pic_CXX='-fPIC'
14872
lt_prog_compiler_wl_CXX='-Wl,'
14873
lt_prog_compiler_pic_CXX='-KPIC'
14874
lt_prog_compiler_static_CXX='-static'
14878
# Make sure the PIC flag is empty. It appears that all Alpha
14879
# Linux and Compaq Tru64 Unix objects are PIC.
14880
lt_prog_compiler_pic_CXX=
14881
lt_prog_compiler_static_CXX='-non_shared'
14892
case $cc_basename in
14894
lt_prog_compiler_pic_CXX='-W c,exportall'
14902
osf3* | osf4* | osf5*)
14903
case $cc_basename in
14905
lt_prog_compiler_wl_CXX='--backend -Wl,'
14908
# Rational C++ 2.4.1
14909
lt_prog_compiler_pic_CXX='-pic'
14912
# Digital/Compaq C++
14913
lt_prog_compiler_wl_CXX='-Wl,'
14914
# Make sure the PIC flag is empty. It appears that all Alpha
14915
# Linux and Compaq Tru64 Unix objects are PIC.
14916
lt_prog_compiler_pic_CXX=
14917
lt_prog_compiler_static_CXX='-non_shared'
14926
case $cc_basename in
14928
lt_prog_compiler_pic_CXX='-fPIC'
14935
case $cc_basename in
14937
# Sun C++ 4.2, 5.x and Centerline C++
14938
lt_prog_compiler_pic_CXX='-KPIC'
14939
lt_prog_compiler_static_CXX='-Bstatic'
14940
lt_prog_compiler_wl_CXX='-Qoption ld '
14943
# Green Hills C++ Compiler
14944
lt_prog_compiler_pic_CXX='-PIC'
14951
case $cc_basename in
14954
lt_prog_compiler_pic_CXX='-pic'
14955
lt_prog_compiler_static_CXX='-Bstatic'
14959
lt_prog_compiler_pic_CXX='-pic'
14966
case $cc_basename in
14968
# NonStop-UX NCC 3.20
14969
lt_prog_compiler_pic_CXX='-KPIC'
14980
lt_prog_compiler_can_build_shared_CXX=no
14985
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
14986
$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14989
# Check to make sure the PIC flag actually works.
14991
if test -n "$lt_prog_compiler_pic_CXX"; then
14993
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14994
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14995
if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
14996
$as_echo_n "(cached) " >&6
14998
lt_prog_compiler_pic_works_CXX=no
14999
ac_outfile=conftest.$ac_objext
15000
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15001
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15002
# Insert the option either (1) after the last *FLAGS variable, or
15003
# (2) before a word containing "conftest.", or (3) at the end.
15004
# Note that $ac_compile itself does not contain backslashes and begins
15005
# with a dollar sign (not a hyphen), so the echo should work correctly.
15006
# The option is referenced via a variable to avoid confusing sed.
15007
lt_compile=`echo "$ac_compile" | $SED \
15008
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15009
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15010
-e 's:$: $lt_compiler_flag:'`
15011
(eval echo "\"\$as_me:15011: $lt_compile\"" >&5)
15012
(eval "$lt_compile" 2>conftest.err)
15014
cat conftest.err >&5
15015
echo "$as_me:15015: \$? = $ac_status" >&5
15016
if (exit $ac_status) && test -s "$ac_outfile"; then
15017
# The compiler can only warn and ignore the option if not recognized
15018
# So say no if there are warnings
15019
if test ! -s conftest.err; then
15020
lt_prog_compiler_pic_works_CXX=yes
15026
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
15027
$as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
15029
if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
15030
case $lt_prog_compiler_pic_CXX in
15032
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15035
lt_prog_compiler_pic_CXX=
15036
lt_prog_compiler_can_build_shared_CXX=no
15041
# For platforms which do not support PIC, -DPIC is meaningless:
15043
lt_prog_compiler_pic_CXX=
15046
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15050
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15051
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15052
if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
15053
$as_echo_n "(cached) " >&6
15055
lt_cv_prog_compiler_c_o_CXX=no
15056
$rm -r conftest 2>/dev/null
15060
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15062
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15063
# that will create temporary files in the current directory regardless of
15064
# the output directory. Thus, making CWD read-only will cause this test
15065
# to fail, enabling locking or at least warning the user not to do parallel
15069
lt_compiler_flag="-o out/conftest2.$ac_objext"
15070
# Insert the option either (1) after the last *FLAGS variable, or
15071
# (2) before a word containing "conftest.", or (3) at the end.
15072
# Note that $ac_compile itself does not contain backslashes and begins
15073
# with a dollar sign (not a hyphen), so the echo should work correctly.
15074
lt_compile=`echo "$ac_compile" | $SED \
15075
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15076
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15077
-e 's:$: $lt_compiler_flag:'`
15078
(eval echo "\"\$as_me:15078: $lt_compile\"" >&5)
15079
(eval "$lt_compile" 2>out/conftest.err)
15081
cat out/conftest.err >&5
15082
echo "$as_me:15082: \$? = $ac_status" >&5
15083
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15085
# The compiler can only warn and ignore the option if not recognized
15086
# So say no if there are warnings
15087
if test ! -s out/conftest.err; then
15088
lt_cv_prog_compiler_c_o_CXX=yes
15092
$rm conftest* out/*
15099
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15100
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15103
hard_links="nottested"
15104
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15105
# do not overwrite the value of need_locks provided by the user
15106
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15107
$as_echo_n "checking if we can lock with hard links... " >&6; }
15110
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15112
ln conftest.a conftest.b 2>&5 || hard_links=no
15113
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15114
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
15115
$as_echo "$hard_links" >&6; }
15116
if test "$hard_links" = no; then
15117
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15118
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15125
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15126
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15128
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15131
# If we're using GNU nm, then we don't want the "-C" option.
15132
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15133
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15134
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'
15136
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'
15140
export_symbols_cmds_CXX="$ltdll_cmds"
15143
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15146
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15150
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
15151
$as_echo "$ld_shlibs_CXX" >&6; }
15152
test "$ld_shlibs_CXX" = no && can_build_shared=no
15154
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15155
if test "$GCC" = yes; then
15156
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15160
# Do we need to explicitly link libc?
15162
case "x$archive_cmds_need_lc_CXX" in
15164
# Assume -lc should be added
15165
archive_cmds_need_lc_CXX=yes
15167
if test "$enable_shared" = yes && test "$GCC" = yes; then
15168
case $archive_cmds_CXX in
15170
# FIXME: we may have to deal with multi-command sequences.
15173
# Test whether the compiler implicitly links with -lc since on some
15174
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15175
# to ld, don't add -lc before -lgcc.
15176
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15177
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15179
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15181
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15182
(eval $ac_compile) 2>&5
15184
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15185
(exit $ac_status); } 2>conftest.err; then
15188
libobjs=conftest.$ac_objext
15190
wl=$lt_prog_compiler_wl_CXX
15196
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15197
allow_undefined_flag_CXX=
15198
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15199
(eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15201
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202
(exit $ac_status); }
15204
archive_cmds_need_lc_CXX=no
15206
archive_cmds_need_lc_CXX=yes
15208
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15210
cat conftest.err 1>&5
15213
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
15214
$as_echo "$archive_cmds_need_lc_CXX" >&6; }
15221
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15222
$as_echo_n "checking dynamic linker characteristics... " >&6; }
15223
library_names_spec=
15224
libname_spec='lib$name'
15228
postuninstall_cmds=
15232
shlibpath_overrides_runpath=unknown
15234
dynamic_linker="$host_os ld.so"
15235
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15236
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15237
need_lib_prefix=unknown
15238
hardcode_into_libs=no
15240
# when you set need_version to no, make sure it does not cause -set_version
15241
# flags to be left without arguments
15242
need_version=unknown
15247
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15248
shlibpath_var=LIBPATH
15250
# AIX 3 has no versioning support, so we append a major version to the name.
15251
soname_spec='${libname}${release}${shared_ext}$major'
15258
hardcode_into_libs=yes
15259
if test "$host_cpu" = ia64; then
15260
# AIX 5 supports IA64
15261
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15262
shlibpath_var=LD_LIBRARY_PATH
15264
# With GCC up to 2.95.x, collect2 would create an import file
15265
# for dependence libraries. The import file would start with
15266
# the line `#! .'. This would cause the generated library to
15267
# depend on `.', always an invalid library. This was fixed in
15268
# development snapshots of GCC prior to 3.0.
15270
aix4 | aix4.[01] | aix4.[01].*)
15271
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15273
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15276
can_build_shared=no
15280
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15281
# soname into executable. Probably we can add versioning support to
15282
# collect2, so additional links can be useful in future.
15283
if test "$aix_use_runtimelinking" = yes; then
15284
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15285
# instead of lib<name>.a to let people know that these are not
15286
# typical AIX shared libraries.
15287
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15289
# We preserve .a as extension for shared libraries through AIX4.2
15290
# and later when we are not doing run time linking.
15291
library_names_spec='${libname}${release}.a $libname.a'
15292
soname_spec='${libname}${release}${shared_ext}$major'
15294
shlibpath_var=LIBPATH
15299
library_names_spec='$libname.ixlibrary $libname.a'
15300
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15301
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'
15305
library_names_spec='${libname}${shared_ext}'
15306
dynamic_linker="$host_os ld.so"
15307
shlibpath_var=LIBRARY_PATH
15313
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15314
soname_spec='${libname}${release}${shared_ext}$major'
15315
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15316
shlibpath_var=LD_LIBRARY_PATH
15317
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15318
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15319
# the default ld.so.conf also contains /usr/contrib/lib and
15320
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15321
# libtool to hard-code these into programs
15324
cygwin* | mingw* | pw32*)
15325
version_type=windows
15330
case $GCC,$host_os in
15331
yes,cygwin* | yes,mingw* | yes,pw32*)
15332
library_names_spec='$libname.dll.a'
15333
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15334
postinstall_cmds='base_file=`basename \${file}`~
15335
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15336
dldir=$destdir/`dirname \$dlpath`~
15337
test -d \$dldir || mkdir -p \$dldir~
15338
$install_prog $dir/$dlname \$dldir/$dlname'
15339
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15340
dlpath=$dir/\$dldll~
15342
shlibpath_overrides_runpath=yes
15346
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15347
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15348
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15351
# MinGW DLLs use traditional 'lib' prefix
15352
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15353
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15354
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15355
# It is most probably a Windows format PATH printed by
15356
# mingw gcc, but we are running on Cygwin. Gcc prints its search
15357
# path with ; separators, and with drive letters. We can handle the
15358
# drive letters (cygwin fileutils understands them), so leave them,
15359
# especially as we might pass files found there to a mingw objdump,
15360
# which wouldn't understand a cygwinified path. Ahh.
15361
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15363
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15367
# pw32 DLLs use 'pw' prefix rather than 'lib'
15368
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
15374
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15377
dynamic_linker='Win32 ld.exe'
15378
# FIXME: first we should search . and the directory the executable is in
15382
darwin* | rhapsody*)
15383
dynamic_linker="$host_os dyld"
15384
version_type=darwin
15387
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15388
soname_spec='${libname}${release}${major}$shared_ext'
15389
shlibpath_overrides_runpath=yes
15390
shlibpath_var=DYLD_LIBRARY_PATH
15391
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
15392
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15393
if test "$GCC" = yes; then
15394
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"`
15396
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15398
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15405
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15406
soname_spec='${libname}${release}${shared_ext}$major'
15407
shlibpath_var=LD_LIBRARY_PATH
15418
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15419
soname_spec='${libname}${release}${shared_ext}$major'
15420
shlibpath_var=LD_LIBRARY_PATH
15421
shlibpath_overrides_runpath=no
15422
hardcode_into_libs=yes
15423
dynamic_linker='GNU ld.so'
15427
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
15428
version_type=freebsd-$objformat
15429
case $version_type in
15431
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15436
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15440
shlibpath_var=LD_LIBRARY_PATH
15443
shlibpath_overrides_runpath=yes
15445
freebsd3.01* | freebsdelf3.01*)
15446
shlibpath_overrides_runpath=yes
15447
hardcode_into_libs=yes
15450
shlibpath_overrides_runpath=no
15451
hardcode_into_libs=yes
15460
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15461
soname_spec='${libname}${release}${shared_ext}$major'
15462
shlibpath_var=LD_LIBRARY_PATH
15463
hardcode_into_libs=yes
15466
hpux9* | hpux10* | hpux11*)
15467
# Give a soname corresponding to the major version so that dld.sl refuses to
15468
# link against other versions.
15472
case "$host_cpu" in
15475
hardcode_into_libs=yes
15476
dynamic_linker="$host_os dld.so"
15477
shlibpath_var=LD_LIBRARY_PATH
15478
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15479
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15480
soname_spec='${libname}${release}${shared_ext}$major'
15481
if test "X$HPUX_IA64_MODE" = X32; then
15482
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15484
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15486
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15490
hardcode_into_libs=yes
15491
dynamic_linker="$host_os dld.sl"
15492
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15493
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15494
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15495
soname_spec='${libname}${release}${shared_ext}$major'
15496
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15497
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15501
dynamic_linker="$host_os dld.sl"
15502
shlibpath_var=SHLIB_PATH
15503
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15504
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15505
soname_spec='${libname}${release}${shared_ext}$major'
15508
# HP-UX runs *really* slowly unless shared libraries are mode 555.
15509
postinstall_cmds='chmod 555 $lib'
15512
irix5* | irix6* | nonstopux*)
15514
nonstopux*) version_type=nonstopux ;;
15516
if test "$lt_cv_prog_gnu_ld" = yes; then
15524
soname_spec='${libname}${release}${shared_ext}$major'
15525
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15527
irix5* | nonstopux*)
15528
libsuff= shlibsuff=
15531
case $LD in # libtool.m4 will add one of these switches to LD
15532
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15533
libsuff= shlibsuff= libmagic=32-bit;;
15534
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15535
libsuff=32 shlibsuff=N32 libmagic=N32;;
15536
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15537
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15538
*) libsuff= shlibsuff= libmagic=never-match;;
15542
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15543
shlibpath_overrides_runpath=no
15544
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15545
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15546
hardcode_into_libs=yes
15549
# No shared lib support for Linux oldld, aout, or coff.
15550
linux*oldld* | linux*aout* | linux*coff*)
15554
# This must be Linux ELF.
15559
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15560
soname_spec='${libname}${release}${shared_ext}$major'
15561
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15563
if test "x$LINUX_64_MODE" = x64; then
15564
# Some platforms are per default 64-bit, so there's no /lib64
15565
if test -d /lib64 -a ! -h /lib64; then
15569
shlibpath_var=LD_LIBRARY_PATH
15570
shlibpath_overrides_runpath=no
15571
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
15572
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
15573
# This implies no fast_install, which is unacceptable.
15574
# Some rework will be needed to allow for fast_install
15575
# before this can be enabled.
15576
hardcode_into_libs=yes
15578
# We used to test for /lib/ld.so.1 and disable shared libraries on
15579
# powerpc, because MkLinux only supported shared libraries with the
15580
# GNU dynamic linker. Since this was broken with cross compilers,
15581
# most powerpc-linux boxes support dynamic linking these days and
15582
# people can always --disable-shared, the test was removed, and we
15583
# assume the GNU/Linux dynamic linker is in use.
15584
dynamic_linker='GNU/Linux ld.so'
15591
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15592
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15593
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15594
dynamic_linker='NetBSD (a.out) ld.so'
15596
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
15597
soname_spec='${libname}${release}${shared_ext}$major'
15598
dynamic_linker='NetBSD ld.elf_so'
15600
shlibpath_var=LD_LIBRARY_PATH
15601
shlibpath_overrides_runpath=yes
15602
hardcode_into_libs=yes
15607
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15608
shlibpath_var=LD_LIBRARY_PATH
15609
shlibpath_overrides_runpath=yes
15616
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15617
soname_spec='${libname}${release}${shared_ext}$major'
15618
shlibpath_var=LD_LIBRARY_PATH
15619
shlibpath_overrides_runpath=yes
15626
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15627
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15628
shlibpath_var=LD_LIBRARY_PATH
15629
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15631
openbsd2.[89] | openbsd2.[89].*)
15632
shlibpath_overrides_runpath=no
15635
shlibpath_overrides_runpath=yes
15639
shlibpath_overrides_runpath=yes
15644
libname_spec='$name'
15647
library_names_spec='$libname${shared_ext} $libname.a'
15648
dynamic_linker='OS/2 ld.exe'
15649
shlibpath_var=LIBPATH
15652
osf3* | osf4* | osf5*)
15656
soname_spec='${libname}${release}${shared_ext}$major'
15657
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15658
shlibpath_var=LD_LIBRARY_PATH
15659
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15660
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15665
soname_spec='${libname}${release}${shared_ext}$major'
15666
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15667
shlibpath_var=LD_LIBRARY_PATH
15674
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15675
soname_spec='${libname}${release}${shared_ext}$major'
15676
shlibpath_var=LD_LIBRARY_PATH
15677
shlibpath_overrides_runpath=yes
15678
hardcode_into_libs=yes
15679
# ldd complains unless libraries are executable
15680
postinstall_cmds='chmod +x $lib'
15685
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15686
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15687
shlibpath_var=LD_LIBRARY_PATH
15688
shlibpath_overrides_runpath=yes
15689
if test "$with_gnu_ld" = yes; then
15695
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15697
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15698
soname_spec='${libname}${release}${shared_ext}$major'
15699
shlibpath_var=LD_LIBRARY_PATH
15700
case $host_vendor in
15702
shlibpath_overrides_runpath=no
15704
export_dynamic_flag_spec='${wl}-Blargedynsym'
15705
runpath_var=LD_RUN_PATH
15713
shlibpath_overrides_runpath=no
15714
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15720
if test -d /usr/nec ;then
15722
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15723
soname_spec='$libname${shared_ext}.$major'
15724
shlibpath_var=LD_LIBRARY_PATH
15730
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15731
soname_spec='${libname}${release}${shared_ext}$major'
15732
shlibpath_var=LD_LIBRARY_PATH
15739
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15740
$as_echo "$dynamic_linker" >&6; }
15741
test "$dynamic_linker" = no && can_build_shared=no
15743
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15744
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15745
hardcode_action_CXX=
15746
if test -n "$hardcode_libdir_flag_spec_CXX" || \
15747
test -n "$runpath_var CXX" || \
15748
test "X$hardcode_automatic_CXX"="Xyes" ; then
15750
# We can hardcode non-existant directories.
15751
if test "$hardcode_direct_CXX" != no &&
15752
# If the only mechanism to avoid hardcoding is shlibpath_var, we
15753
# have to relink, otherwise we might link with an installed library
15754
# when we should be linking with a yet-to-be-installed one
15755
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15756
test "$hardcode_minus_L_CXX" != no; then
15757
# Linking always hardcodes the temporary library directory.
15758
hardcode_action_CXX=relink
15760
# We can link without hardcoding, and we can hardcode nonexisting dirs.
15761
hardcode_action_CXX=immediate
15764
# We cannot hardcode anything, or else we can only hardcode existing
15766
hardcode_action_CXX=unsupported
15768
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
15769
$as_echo "$hardcode_action_CXX" >&6; }
15771
if test "$hardcode_action_CXX" = relink; then
15772
# Fast installation is not supported
15773
enable_fast_install=no
15774
elif test "$shlibpath_overrides_runpath" = yes ||
15775
test "$enable_shared" = no; then
15776
# Fast installation is not necessary
15777
enable_fast_install=needless
15782
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15783
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15784
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15785
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15786
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15787
{ $as_echo "$as_me:$LINENO: result: yes" >&5
15788
$as_echo "yes" >&6; }
15790
# FIXME - insert some real tests, host_os isn't really good enough
15793
if test -n "$STRIP" ; then
15794
striplib="$STRIP -x"
15795
{ $as_echo "$as_me:$LINENO: result: yes" >&5
15796
$as_echo "yes" >&6; }
15798
{ $as_echo "$as_me:$LINENO: result: no" >&5
15799
$as_echo "no" >&6; }
15803
{ $as_echo "$as_me:$LINENO: result: no" >&5
15804
$as_echo "no" >&6; }
15809
if test "x$enable_dlopen" != xyes; then
15810
enable_dlopen=unknown
15811
enable_dlopen_self=unknown
15812
enable_dlopen_self_static=unknown
15819
lt_cv_dlopen="load_add_on"
15821
lt_cv_dlopen_self=yes
15825
lt_cv_dlopen="LoadLibrary"
15830
lt_cv_dlopen="dlopen"
15835
# if libdl is installed we need to link against it
15836
{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15837
$as_echo_n "checking for dlopen in -ldl... " >&6; }
15838
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15839
$as_echo_n "(cached) " >&6
15841
ac_check_lib_save_LIBS=$LIBS
15843
cat >conftest.$ac_ext <<_ACEOF
15846
cat confdefs.h >>conftest.$ac_ext
15847
cat >>conftest.$ac_ext <<_ACEOF
15848
/* end confdefs.h. */
15850
/* Override any GCC internal prototype to avoid an error.
15851
Use char because int might match the return type of a GCC
15852
builtin and then its argument prototype would still apply. */
15865
rm -f conftest.$ac_objext conftest$ac_exeext
15866
if { (ac_try="$ac_link"
15867
case "(($ac_try" in
15868
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15869
*) ac_try_echo=$ac_try;;
15871
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15872
$as_echo "$ac_try_echo") >&5
15873
(eval "$ac_link") 2>conftest.er1
15875
grep -v '^ *+' conftest.er1 >conftest.err
15877
cat conftest.err >&5
15878
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879
(exit $ac_status); } && {
15880
test -z "$ac_cxx_werror_flag" ||
15881
test ! -s conftest.err
15882
} && test -s conftest$ac_exeext && {
15883
test "$cross_compiling" = yes ||
15884
$as_test_x conftest$ac_exeext
15886
ac_cv_lib_dl_dlopen=yes
15888
$as_echo "$as_me: failed program was:" >&5
15889
sed 's/^/| /' conftest.$ac_ext >&5
15891
ac_cv_lib_dl_dlopen=no
15894
rm -rf conftest.dSYM
15895
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15896
conftest$ac_exeext conftest.$ac_ext
15897
LIBS=$ac_check_lib_save_LIBS
15899
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15900
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15901
if test $ac_cv_lib_dl_dlopen = yes; then
15902
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15905
lt_cv_dlopen="dyld"
15907
lt_cv_dlopen_self=yes
15914
{ $as_echo "$as_me:$LINENO: checking for shl_load" >&5
15915
$as_echo_n "checking for shl_load... " >&6; }
15916
if test "${ac_cv_func_shl_load+set}" = set; then
15917
$as_echo_n "(cached) " >&6
15919
cat >conftest.$ac_ext <<_ACEOF
15922
cat confdefs.h >>conftest.$ac_ext
15923
cat >>conftest.$ac_ext <<_ACEOF
15924
/* end confdefs.h. */
15925
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15926
For example, HP-UX 11i <limits.h> declares gettimeofday. */
15927
#define shl_load innocuous_shl_load
15929
/* System header to define __stub macros and hopefully few prototypes,
15930
which can conflict with char shl_load (); below.
15931
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15932
<limits.h> exists even on freestanding compilers. */
15935
# include <limits.h>
15937
# include <assert.h>
15942
/* Override any GCC internal prototype to avoid an error.
15943
Use char because int might match the return type of a GCC
15944
builtin and then its argument prototype would still apply. */
15949
/* The GNU C library defines this for functions which it implements
15950
to always fail with ENOSYS. Some functions are actually named
15951
something starting with __ and the normal name is an alias. */
15952
#if defined __stub_shl_load || defined __stub___shl_load
15959
return shl_load ();
15964
rm -f conftest.$ac_objext conftest$ac_exeext
15965
if { (ac_try="$ac_link"
15966
case "(($ac_try" in
15967
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15968
*) ac_try_echo=$ac_try;;
15970
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15971
$as_echo "$ac_try_echo") >&5
15972
(eval "$ac_link") 2>conftest.er1
15974
grep -v '^ *+' conftest.er1 >conftest.err
15976
cat conftest.err >&5
15977
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15978
(exit $ac_status); } && {
15979
test -z "$ac_cxx_werror_flag" ||
15980
test ! -s conftest.err
15981
} && test -s conftest$ac_exeext && {
15982
test "$cross_compiling" = yes ||
15983
$as_test_x conftest$ac_exeext
15985
ac_cv_func_shl_load=yes
15987
$as_echo "$as_me: failed program was:" >&5
15988
sed 's/^/| /' conftest.$ac_ext >&5
15990
ac_cv_func_shl_load=no
15993
rm -rf conftest.dSYM
15994
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15995
conftest$ac_exeext conftest.$ac_ext
15997
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15998
$as_echo "$ac_cv_func_shl_load" >&6; }
15999
if test $ac_cv_func_shl_load = yes; then
16000
lt_cv_dlopen="shl_load"
16002
{ $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16003
$as_echo_n "checking for shl_load in -ldld... " >&6; }
16004
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16005
$as_echo_n "(cached) " >&6
16007
ac_check_lib_save_LIBS=$LIBS
16009
cat >conftest.$ac_ext <<_ACEOF
16012
cat confdefs.h >>conftest.$ac_ext
16013
cat >>conftest.$ac_ext <<_ACEOF
16014
/* end confdefs.h. */
16016
/* Override any GCC internal prototype to avoid an error.
16017
Use char because int might match the return type of a GCC
16018
builtin and then its argument prototype would still apply. */
16026
return shl_load ();
16031
rm -f conftest.$ac_objext conftest$ac_exeext
16032
if { (ac_try="$ac_link"
16033
case "(($ac_try" in
16034
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16035
*) ac_try_echo=$ac_try;;
16037
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16038
$as_echo "$ac_try_echo") >&5
16039
(eval "$ac_link") 2>conftest.er1
16041
grep -v '^ *+' conftest.er1 >conftest.err
16043
cat conftest.err >&5
16044
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16045
(exit $ac_status); } && {
16046
test -z "$ac_cxx_werror_flag" ||
16047
test ! -s conftest.err
16048
} && test -s conftest$ac_exeext && {
16049
test "$cross_compiling" = yes ||
16050
$as_test_x conftest$ac_exeext
16052
ac_cv_lib_dld_shl_load=yes
16054
$as_echo "$as_me: failed program was:" >&5
16055
sed 's/^/| /' conftest.$ac_ext >&5
16057
ac_cv_lib_dld_shl_load=no
16060
rm -rf conftest.dSYM
16061
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16062
conftest$ac_exeext conftest.$ac_ext
16063
LIBS=$ac_check_lib_save_LIBS
16065
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16066
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16067
if test $ac_cv_lib_dld_shl_load = yes; then
16068
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16070
{ $as_echo "$as_me:$LINENO: checking for dlopen" >&5
16071
$as_echo_n "checking for dlopen... " >&6; }
16072
if test "${ac_cv_func_dlopen+set}" = set; then
16073
$as_echo_n "(cached) " >&6
16075
cat >conftest.$ac_ext <<_ACEOF
16078
cat confdefs.h >>conftest.$ac_ext
16079
cat >>conftest.$ac_ext <<_ACEOF
16080
/* end confdefs.h. */
16081
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
16082
For example, HP-UX 11i <limits.h> declares gettimeofday. */
16083
#define dlopen innocuous_dlopen
16085
/* System header to define __stub macros and hopefully few prototypes,
16086
which can conflict with char dlopen (); below.
16087
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16088
<limits.h> exists even on freestanding compilers. */
16091
# include <limits.h>
16093
# include <assert.h>
16098
/* Override any GCC internal prototype to avoid an error.
16099
Use char because int might match the return type of a GCC
16100
builtin and then its argument prototype would still apply. */
16105
/* The GNU C library defines this for functions which it implements
16106
to always fail with ENOSYS. Some functions are actually named
16107
something starting with __ and the normal name is an alias. */
16108
#if defined __stub_dlopen || defined __stub___dlopen
16120
rm -f conftest.$ac_objext conftest$ac_exeext
16121
if { (ac_try="$ac_link"
16122
case "(($ac_try" in
16123
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16124
*) ac_try_echo=$ac_try;;
16126
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16127
$as_echo "$ac_try_echo") >&5
16128
(eval "$ac_link") 2>conftest.er1
16130
grep -v '^ *+' conftest.er1 >conftest.err
16132
cat conftest.err >&5
16133
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134
(exit $ac_status); } && {
16135
test -z "$ac_cxx_werror_flag" ||
16136
test ! -s conftest.err
16137
} && test -s conftest$ac_exeext && {
16138
test "$cross_compiling" = yes ||
16139
$as_test_x conftest$ac_exeext
16141
ac_cv_func_dlopen=yes
16143
$as_echo "$as_me: failed program was:" >&5
16144
sed 's/^/| /' conftest.$ac_ext >&5
16146
ac_cv_func_dlopen=no
16149
rm -rf conftest.dSYM
16150
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16151
conftest$ac_exeext conftest.$ac_ext
16153
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16154
$as_echo "$ac_cv_func_dlopen" >&6; }
16155
if test $ac_cv_func_dlopen = yes; then
16156
lt_cv_dlopen="dlopen"
16158
{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16159
$as_echo_n "checking for dlopen in -ldl... " >&6; }
16160
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16161
$as_echo_n "(cached) " >&6
16163
ac_check_lib_save_LIBS=$LIBS
16165
cat >conftest.$ac_ext <<_ACEOF
16168
cat confdefs.h >>conftest.$ac_ext
16169
cat >>conftest.$ac_ext <<_ACEOF
16170
/* end confdefs.h. */
16172
/* Override any GCC internal prototype to avoid an error.
16173
Use char because int might match the return type of a GCC
16174
builtin and then its argument prototype would still apply. */
16187
rm -f conftest.$ac_objext conftest$ac_exeext
16188
if { (ac_try="$ac_link"
16189
case "(($ac_try" in
16190
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16191
*) ac_try_echo=$ac_try;;
16193
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16194
$as_echo "$ac_try_echo") >&5
16195
(eval "$ac_link") 2>conftest.er1
16197
grep -v '^ *+' conftest.er1 >conftest.err
16199
cat conftest.err >&5
16200
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201
(exit $ac_status); } && {
16202
test -z "$ac_cxx_werror_flag" ||
16203
test ! -s conftest.err
16204
} && test -s conftest$ac_exeext && {
16205
test "$cross_compiling" = yes ||
16206
$as_test_x conftest$ac_exeext
16208
ac_cv_lib_dl_dlopen=yes
16210
$as_echo "$as_me: failed program was:" >&5
16211
sed 's/^/| /' conftest.$ac_ext >&5
16213
ac_cv_lib_dl_dlopen=no
16216
rm -rf conftest.dSYM
16217
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16218
conftest$ac_exeext conftest.$ac_ext
16219
LIBS=$ac_check_lib_save_LIBS
16221
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16222
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16223
if test $ac_cv_lib_dl_dlopen = yes; then
16224
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16226
{ $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16227
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
16228
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16229
$as_echo_n "(cached) " >&6
16231
ac_check_lib_save_LIBS=$LIBS
16232
LIBS="-lsvld $LIBS"
16233
cat >conftest.$ac_ext <<_ACEOF
16236
cat confdefs.h >>conftest.$ac_ext
16237
cat >>conftest.$ac_ext <<_ACEOF
16238
/* end confdefs.h. */
16240
/* Override any GCC internal prototype to avoid an error.
16241
Use char because int might match the return type of a GCC
16242
builtin and then its argument prototype would still apply. */
16255
rm -f conftest.$ac_objext conftest$ac_exeext
16256
if { (ac_try="$ac_link"
16257
case "(($ac_try" in
16258
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16259
*) ac_try_echo=$ac_try;;
16261
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16262
$as_echo "$ac_try_echo") >&5
16263
(eval "$ac_link") 2>conftest.er1
16265
grep -v '^ *+' conftest.er1 >conftest.err
16267
cat conftest.err >&5
16268
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269
(exit $ac_status); } && {
16270
test -z "$ac_cxx_werror_flag" ||
16271
test ! -s conftest.err
16272
} && test -s conftest$ac_exeext && {
16273
test "$cross_compiling" = yes ||
16274
$as_test_x conftest$ac_exeext
16276
ac_cv_lib_svld_dlopen=yes
16278
$as_echo "$as_me: failed program was:" >&5
16279
sed 's/^/| /' conftest.$ac_ext >&5
16281
ac_cv_lib_svld_dlopen=no
16284
rm -rf conftest.dSYM
16285
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16286
conftest$ac_exeext conftest.$ac_ext
16287
LIBS=$ac_check_lib_save_LIBS
16289
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
16290
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16291
if test $ac_cv_lib_svld_dlopen = yes; then
16292
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16294
{ $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
16295
$as_echo_n "checking for dld_link in -ldld... " >&6; }
16296
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
16297
$as_echo_n "(cached) " >&6
16299
ac_check_lib_save_LIBS=$LIBS
16301
cat >conftest.$ac_ext <<_ACEOF
16304
cat confdefs.h >>conftest.$ac_ext
16305
cat >>conftest.$ac_ext <<_ACEOF
16306
/* end confdefs.h. */
16308
/* Override any GCC internal prototype to avoid an error.
16309
Use char because int might match the return type of a GCC
16310
builtin and then its argument prototype would still apply. */
16318
return dld_link ();
16323
rm -f conftest.$ac_objext conftest$ac_exeext
16324
if { (ac_try="$ac_link"
16325
case "(($ac_try" in
16326
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16327
*) ac_try_echo=$ac_try;;
16329
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16330
$as_echo "$ac_try_echo") >&5
16331
(eval "$ac_link") 2>conftest.er1
16333
grep -v '^ *+' conftest.er1 >conftest.err
16335
cat conftest.err >&5
16336
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337
(exit $ac_status); } && {
16338
test -z "$ac_cxx_werror_flag" ||
16339
test ! -s conftest.err
16340
} && test -s conftest$ac_exeext && {
16341
test "$cross_compiling" = yes ||
16342
$as_test_x conftest$ac_exeext
16344
ac_cv_lib_dld_dld_link=yes
16346
$as_echo "$as_me: failed program was:" >&5
16347
sed 's/^/| /' conftest.$ac_ext >&5
16349
ac_cv_lib_dld_dld_link=no
16352
rm -rf conftest.dSYM
16353
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16354
conftest$ac_exeext conftest.$ac_ext
16355
LIBS=$ac_check_lib_save_LIBS
16357
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
16358
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16359
if test $ac_cv_lib_dld_dld_link = yes; then
16360
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
16381
if test "x$lt_cv_dlopen" != xno; then
16387
case $lt_cv_dlopen in
16389
save_CPPFLAGS="$CPPFLAGS"
16390
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16392
save_LDFLAGS="$LDFLAGS"
16393
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16396
LIBS="$lt_cv_dlopen_libs $LIBS"
16398
{ $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
16399
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
16400
if test "${lt_cv_dlopen_self+set}" = set; then
16401
$as_echo_n "(cached) " >&6
16403
if test "$cross_compiling" = yes; then :
16404
lt_cv_dlopen_self=cross
16406
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16407
lt_status=$lt_dlunknown
16408
cat > conftest.$ac_ext <<EOF
16409
#line 16409 "configure"
16410
#include "confdefs.h"
16419
# define LT_DLGLOBAL RTLD_GLOBAL
16422
# define LT_DLGLOBAL DL_GLOBAL
16424
# define LT_DLGLOBAL 0
16428
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16429
find out it does not work in some platform. */
16430
#ifndef LT_DLLAZY_OR_NOW
16432
# define LT_DLLAZY_OR_NOW RTLD_LAZY
16435
# define LT_DLLAZY_OR_NOW DL_LAZY
16438
# define LT_DLLAZY_OR_NOW RTLD_NOW
16441
# define LT_DLLAZY_OR_NOW DL_NOW
16443
# define LT_DLLAZY_OR_NOW 0
16451
extern "C" void exit (int);
16454
void fnord() { int i=42;}
16457
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16458
int status = $lt_dlunknown;
16462
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16463
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16464
/* dlclose (self); */
16470
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16471
(eval $ac_link) 2>&5
16473
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16474
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16475
(./conftest; exit; ) 2>/dev/null
16477
case x$lt_status in
16478
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16479
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16480
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
16483
# compilation failed
16484
lt_cv_dlopen_self=no
16491
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
16492
$as_echo "$lt_cv_dlopen_self" >&6; }
16494
if test "x$lt_cv_dlopen_self" = xyes; then
16495
LDFLAGS="$LDFLAGS $link_static_flag"
16496
{ $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
16497
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
16498
if test "${lt_cv_dlopen_self_static+set}" = set; then
16499
$as_echo_n "(cached) " >&6
16501
if test "$cross_compiling" = yes; then :
16502
lt_cv_dlopen_self_static=cross
16504
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16505
lt_status=$lt_dlunknown
16506
cat > conftest.$ac_ext <<EOF
16507
#line 16507 "configure"
16508
#include "confdefs.h"
16517
# define LT_DLGLOBAL RTLD_GLOBAL
16520
# define LT_DLGLOBAL DL_GLOBAL
16522
# define LT_DLGLOBAL 0
16526
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16527
find out it does not work in some platform. */
16528
#ifndef LT_DLLAZY_OR_NOW
16530
# define LT_DLLAZY_OR_NOW RTLD_LAZY
16533
# define LT_DLLAZY_OR_NOW DL_LAZY
16536
# define LT_DLLAZY_OR_NOW RTLD_NOW
16539
# define LT_DLLAZY_OR_NOW DL_NOW
16541
# define LT_DLLAZY_OR_NOW 0
16549
extern "C" void exit (int);
16552
void fnord() { int i=42;}
16555
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16556
int status = $lt_dlunknown;
16560
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16561
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16562
/* dlclose (self); */
16568
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16569
(eval $ac_link) 2>&5
16571
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16572
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
16573
(./conftest; exit; ) 2>/dev/null
16575
case x$lt_status in
16576
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16577
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16578
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
16581
# compilation failed
16582
lt_cv_dlopen_self_static=no
16589
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
16590
$as_echo "$lt_cv_dlopen_self_static" >&6; }
16593
CPPFLAGS="$save_CPPFLAGS"
16594
LDFLAGS="$save_LDFLAGS"
16599
case $lt_cv_dlopen_self in
16600
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16601
*) enable_dlopen_self=unknown ;;
16604
case $lt_cv_dlopen_self_static in
16605
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16606
*) enable_dlopen_self_static=unknown ;;
16611
# The else clause should only fire when bootstrapping the
16612
# libtool distribution, otherwise you forgot to ship ltmain.sh
16613
# with your package, and you will get complaints that there are
16614
# no rules to generate ltmain.sh.
16615
if test -f "$ltmain"; then
16616
# See if we are running on zsh, and set the options which allow our commands through
16617
# without removal of \ escapes.
16618
if test -n "${ZSH_VERSION+set}" ; then
16619
setopt NO_GLOB_SUBST
16621
# Now quote all the things that may contain metacharacters while being
16622
# careful not to overquote the AC_SUBSTed values. We take copies of the
16623
# variables and quote the copies for generation of the libtool script.
16624
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
16625
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16626
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16627
deplibs_check_method reload_flag reload_cmds need_locks \
16628
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16629
lt_cv_sys_global_symbol_to_c_name_address \
16630
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16631
old_postinstall_cmds old_postuninstall_cmds \
16635
lt_prog_compiler_wl_CXX \
16636
lt_prog_compiler_pic_CXX \
16637
lt_prog_compiler_static_CXX \
16638
lt_prog_compiler_no_builtin_flag_CXX \
16639
export_dynamic_flag_spec_CXX \
16640
thread_safe_flag_spec_CXX \
16641
whole_archive_flag_spec_CXX \
16642
enable_shared_with_static_runtimes_CXX \
16643
old_archive_cmds_CXX \
16644
old_archive_from_new_cmds_CXX \
16645
predep_objects_CXX \
16646
postdep_objects_CXX \
16649
compiler_lib_search_path_CXX \
16651
archive_expsym_cmds_CXX \
16652
postinstall_cmds_CXX \
16653
postuninstall_cmds_CXX \
16654
old_archive_from_expsyms_cmds_CXX \
16655
allow_undefined_flag_CXX \
16656
no_undefined_flag_CXX \
16657
export_symbols_cmds_CXX \
16658
hardcode_libdir_flag_spec_CXX \
16659
hardcode_libdir_flag_spec_ld_CXX \
16660
hardcode_libdir_separator_CXX \
16661
hardcode_automatic_CXX \
16663
module_expsym_cmds_CXX \
16664
lt_cv_prog_compiler_c_o_CXX \
16665
exclude_expsyms_CXX \
16666
include_expsyms_CXX; do
16669
old_archive_cmds_CXX | \
16670
old_archive_from_new_cmds_CXX | \
16671
archive_cmds_CXX | \
16672
archive_expsym_cmds_CXX | \
16673
module_cmds_CXX | \
16674
module_expsym_cmds_CXX | \
16675
old_archive_from_expsyms_cmds_CXX | \
16676
export_symbols_cmds_CXX | \
16677
extract_expsyms_cmds | reload_cmds | finish_cmds | \
16678
postinstall_cmds | postuninstall_cmds | \
16679
old_postinstall_cmds | old_postuninstall_cmds | \
16680
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16681
# Double-quote double-evaled strings.
16682
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16685
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16691
*'\$0 --fallback-echo"')
16692
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16698
cat <<__EOF__ >> "$cfgfile"
16699
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
16701
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16703
# Shell to use when invoking shell scripts.
16706
# Whether or not to build shared libraries.
16707
build_libtool_libs=$enable_shared
16709
# Whether or not to build static libraries.
16710
build_old_libs=$enable_static
16712
# Whether or not to add -lc for building shared libraries.
16713
build_libtool_need_lc=$archive_cmds_need_lc_CXX
16715
# Whether or not to disallow shared libs when runtime libs are static
16716
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16718
# Whether or not to optimize for fast installation.
16719
fast_install=$enable_fast_install
16722
host_alias=$host_alias
16725
# An echo program that does not interpret backslashes.
16730
AR_FLAGS=$lt_AR_FLAGS
16735
# A language-specific compiler.
16736
CC=$lt_compiler_CXX
16738
# Is the compiler the GNU C compiler?
16744
# The linker used to build libraries.
16747
# Whether we need hard or soft links.
16750
# A BSD-compatible nm program.
16753
# A symbol stripping program
16756
# Used to examine libraries when file_magic_cmd begins "file"
16757
MAGIC_CMD=$MAGIC_CMD
16759
# Used on cygwin: DLL creation program.
16762
# Used on cygwin: object dumper.
16765
# Used on cygwin: assembler.
16768
# The name of the directory that contains temporary libtool files.
16771
# How to create reloadable object files.
16772
reload_flag=$lt_reload_flag
16773
reload_cmds=$lt_reload_cmds
16775
# How to pass a linker flag through the compiler.
16776
wl=$lt_lt_prog_compiler_wl_CXX
16778
# Object file suffix (normally "o").
16779
objext="$ac_objext"
16781
# Old archive suffix (normally "a").
16784
# Shared library suffix (normally ".so").
16787
# Executable file suffix (normally "").
16790
# Additional compiler flags for building library objects.
16791
pic_flag=$lt_lt_prog_compiler_pic_CXX
16794
# What is the maximum length of a command?
16795
max_cmd_len=$lt_cv_sys_max_cmd_len
16797
# Does compiler simultaneously support -c and -o options?
16798
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16800
# Must we lock files when doing compilation ?
16801
need_locks=$lt_need_locks
16803
# Do we need the lib prefix for modules?
16804
need_lib_prefix=$need_lib_prefix
16806
# Do we need a version for libraries?
16807
need_version=$need_version
16809
# Whether dlopen is supported.
16810
dlopen_support=$enable_dlopen
16812
# Whether dlopen of programs is supported.
16813
dlopen_self=$enable_dlopen_self
16815
# Whether dlopen of statically linked programs is supported.
16816
dlopen_self_static=$enable_dlopen_self_static
16818
# Compiler flag to prevent dynamic linking.
16819
link_static_flag=$lt_lt_prog_compiler_static_CXX
16821
# Compiler flag to turn off builtin functions.
16822
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16824
# Compiler flag to allow reflexive dlopens.
16825
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16827
# Compiler flag to generate shared objects directly from archives.
16828
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16830
# Compiler flag to generate thread-safe objects.
16831
thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
16833
# Library versioning type.
16834
version_type=$version_type
16836
# Format of library name prefix.
16837
libname_spec=$lt_libname_spec
16839
# List of archive names. First name is the real one, the rest are links.
16840
# The last name is the one that the linker finds with -lNAME.
16841
library_names_spec=$lt_library_names_spec
16843
# The coded name of the library, if different from the real name.
16844
soname_spec=$lt_soname_spec
16846
# Commands used to build and install an old-style archive.
16848
old_archive_cmds=$lt_old_archive_cmds_CXX
16849
old_postinstall_cmds=$lt_old_postinstall_cmds
16850
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16852
# Create an old-style archive from a shared archive.
16853
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16855
# Create a temporary old-style archive to link instead of a shared archive.
16856
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16858
# Commands used to build and install a shared archive.
16859
archive_cmds=$lt_archive_cmds_CXX
16860
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16861
postinstall_cmds=$lt_postinstall_cmds
16862
postuninstall_cmds=$lt_postuninstall_cmds
16864
# Commands used to build a loadable module (assumed same as above if empty)
16865
module_cmds=$lt_module_cmds_CXX
16866
module_expsym_cmds=$lt_module_expsym_cmds_CXX
16868
# Commands to strip libraries.
16869
old_striplib=$lt_old_striplib
16870
striplib=$lt_striplib
16872
# Dependencies to place before the objects being linked to create a
16874
predep_objects=$lt_predep_objects_CXX
16876
# Dependencies to place after the objects being linked to create a
16878
postdep_objects=$lt_postdep_objects_CXX
16880
# Dependencies to place before the objects being linked to create a
16882
predeps=$lt_predeps_CXX
16884
# Dependencies to place after the objects being linked to create a
16886
postdeps=$lt_postdeps_CXX
16888
# The library search path used internally by the compiler when linking
16889
# a shared library.
16890
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16892
# Method to check whether dependent libraries are shared objects.
16893
deplibs_check_method=$lt_deplibs_check_method
16895
# Command to use when deplibs_check_method == file_magic.
16896
file_magic_cmd=$lt_file_magic_cmd
16898
# Flag that allows shared libraries with undefined symbols to be built.
16899
allow_undefined_flag=$lt_allow_undefined_flag_CXX
16901
# Flag that forces no undefined symbols.
16902
no_undefined_flag=$lt_no_undefined_flag_CXX
16904
# Commands used to finish a libtool library installation in a directory.
16905
finish_cmds=$lt_finish_cmds
16907
# Same as above, but a single script fragment to be evaled but not shown.
16908
finish_eval=$lt_finish_eval
16910
# Take the output of nm and produce a listing of raw symbols and C names.
16911
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16913
# Transform the output of nm in a proper C declaration
16914
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16916
# Transform the output of nm in a C name address pair
16917
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16919
# This is the shared library runtime path variable.
16920
runpath_var=$runpath_var
16922
# This is the shared library path variable.
16923
shlibpath_var=$shlibpath_var
16925
# Is shlibpath searched before the hard-coded library search path?
16926
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16928
# How to hardcode a shared library path into an executable.
16929
hardcode_action=$hardcode_action_CXX
16931
# Whether we should hardcode library paths into libraries.
16932
hardcode_into_libs=$hardcode_into_libs
16934
# Flag to hardcode \$libdir into a binary during linking.
16935
# This must work even if \$libdir does not exist.
16936
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16938
# If ld is used when linking, flag to hardcode \$libdir into
16939
# a binary during linking. This must work even if \$libdir does
16941
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16943
# Whether we need a single -rpath flag with a separated argument.
16944
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16946
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16947
# resulting binary.
16948
hardcode_direct=$hardcode_direct_CXX
16950
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16951
# resulting binary.
16952
hardcode_minus_L=$hardcode_minus_L_CXX
16954
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16955
# the resulting binary.
16956
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16958
# Set to yes if building a shared library automatically hardcodes DIR into the library
16959
# and all subsequent libraries and executables linked against it.
16960
hardcode_automatic=$hardcode_automatic_CXX
16962
# Variables whose values should be saved in libtool wrapper scripts and
16963
# restored at relink time.
16964
variables_saved_for_relink="$variables_saved_for_relink"
16966
# Whether libtool must link a program against all its dependency libraries.
16967
link_all_deplibs=$link_all_deplibs_CXX
16969
# Compile-time system search path for libraries
16970
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16972
# Run-time system search path for libraries
16973
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16975
# Fix the shell variable \$srcfile for the compiler.
16976
fix_srcfile_path="$fix_srcfile_path_CXX"
16978
# Set to yes if exported symbols are required.
16979
always_export_symbols=$always_export_symbols_CXX
16981
# The commands to list exported symbols.
16982
export_symbols_cmds=$lt_export_symbols_cmds_CXX
16984
# The commands to extract the exported symbol list from a shared archive.
16985
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16987
# Symbols that should not be listed in the preloaded symbols.
16988
exclude_expsyms=$lt_exclude_expsyms_CXX
16990
# Symbols that must always be exported.
16991
include_expsyms=$lt_include_expsyms_CXX
16993
# ### END LIBTOOL TAG CONFIG: $tagname
16999
# If there is no Makefile yet, we rely on a make rule to execute
17000
# `config.status --recheck' to rerun these tests and create the
17001
# libtool script then.
17002
test -f Makefile && make "$ltmain"
17007
ac_cpp='$CPP $CPPFLAGS'
17008
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17009
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17010
ac_compiler_gnu=$ac_cv_c_compiler_gnu
17016
with_gnu_ldcxx=$with_gnu_ld
17017
with_gnu_ld=$lt_save_with_gnu_ld
17018
lt_cv_path_LDCXX=$lt_cv_path_LD
17019
lt_cv_path_LD=$lt_save_path_LD
17020
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17021
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17029
if test -n "$F77" && test "X$F77" != "Xno"; then
17032
ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
17033
ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17034
ac_compiler_gnu=$ac_cv_f77_compiler_gnu
17037
archive_cmds_need_lc_F77=no
17038
allow_undefined_flag_F77=
17039
always_export_symbols_F77=no
17040
archive_expsym_cmds_F77=
17041
export_dynamic_flag_spec_F77=
17042
hardcode_direct_F77=no
17043
hardcode_libdir_flag_spec_F77=
17044
hardcode_libdir_flag_spec_ld_F77=
17045
hardcode_libdir_separator_F77=
17046
hardcode_minus_L_F77=no
17047
hardcode_automatic_F77=no
17049
module_expsym_cmds_F77=
17050
link_all_deplibs_F77=unknown
17051
old_archive_cmds_F77=$old_archive_cmds
17052
no_undefined_flag_F77=
17053
whole_archive_flag_spec_F77=
17054
enable_shared_with_static_runtimes_F77=no
17056
# Source file extension for f77 test sources.
17059
# Object file extension for compiled f77 test sources.
17063
# Code to be used in simple compile tests
17064
lt_simple_compile_test_code=" subroutine t\n return\n end\n"
17066
# Code to be used in simple link tests
17067
lt_simple_link_test_code=" program t\n end\n"
17069
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
17071
# If no C compiler was specified, use CC.
17074
# Allow CC to be a program name with arguments.
17078
# Allow CC to be a program name with arguments.
17083
cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
17085
{ $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
17086
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17087
{ $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
17088
$as_echo "$can_build_shared" >&6; }
17090
{ $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
17091
$as_echo_n "checking whether to build shared libraries... " >&6; }
17092
test "$can_build_shared" = "no" && enable_shared=no
17094
# On AIX, shared libraries and static libraries use the same namespace, and
17095
# are all built from PIC.
17098
test "$enable_shared" = yes && enable_static=no
17099
if test -n "$RANLIB"; then
17100
archive_cmds="$archive_cmds~\$RANLIB \$lib"
17101
postinstall_cmds='$RANLIB $lib'
17105
test "$enable_shared" = yes && enable_static=no
17108
{ $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
17109
$as_echo "$enable_shared" >&6; }
17111
{ $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
17112
$as_echo_n "checking whether to build static libraries... " >&6; }
17113
# Make sure either enable_shared or enable_static is yes.
17114
test "$enable_shared" = yes || enable_static=yes
17115
{ $as_echo "$as_me:$LINENO: result: $enable_static" >&5
17116
$as_echo "$enable_static" >&6; }
17118
test "$ld_shlibs_F77" = no && can_build_shared=no
17123
lt_prog_compiler_wl_F77=
17124
lt_prog_compiler_pic_F77=
17125
lt_prog_compiler_static_F77=
17127
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17128
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17130
if test "$GCC" = yes; then
17131
lt_prog_compiler_wl_F77='-Wl,'
17132
lt_prog_compiler_static_F77='-static'
17136
# All AIX code is PIC.
17137
if test "$host_cpu" = ia64; then
17138
# AIX 5 now supports IA64 processor
17139
lt_prog_compiler_static_F77='-Bstatic'
17144
# FIXME: we need at least 68020 code to build shared libraries, but
17145
# adding the `-m68020' flag to GCC prevents building anything better,
17147
lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
17150
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17151
# PIC is the default for these OSes.
17154
mingw* | pw32* | os2*)
17155
# This hack is so that the source file can tell whether it is being
17156
# built for inclusion in a dll (and should export symbols for example).
17157
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
17160
darwin* | rhapsody*)
17161
# PIC is the default on this platform
17162
# Common symbols not allowed in MH_DYLIB files
17163
lt_prog_compiler_pic_F77='-fno-common'
17167
# Just because we use GCC doesn't mean we suddenly get shared libraries
17168
# on systems that don't support them.
17169
lt_prog_compiler_can_build_shared_F77=no
17174
if test -d /usr/nec; then
17175
lt_prog_compiler_pic_F77=-Kconform_pic
17180
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17181
# not for PA HP-UX.
17182
case "$host_cpu" in
17187
lt_prog_compiler_pic_F77='-fPIC'
17193
lt_prog_compiler_pic_F77='-fPIC'
17197
# PORTME Check for flag to pass linker flags through the system compiler.
17200
lt_prog_compiler_wl_F77='-Wl,'
17201
if test "$host_cpu" = ia64; then
17202
# AIX 5 now supports IA64 processor
17203
lt_prog_compiler_static_F77='-Bstatic'
17205
lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
17209
mingw* | pw32* | os2*)
17210
# This hack is so that the source file can tell whether it is being
17211
# built for inclusion in a dll (and should export symbols for example).
17212
lt_prog_compiler_pic_F77='-DDLL_EXPORT'
17215
hpux9* | hpux10* | hpux11*)
17216
lt_prog_compiler_wl_F77='-Wl,'
17217
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17218
# not for PA HP-UX.
17219
case "$host_cpu" in
17224
lt_prog_compiler_pic_F77='+Z'
17227
# Is there a better lt_prog_compiler_static that works with the bundled CC?
17228
lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
17231
irix5* | irix6* | nonstopux*)
17232
lt_prog_compiler_wl_F77='-Wl,'
17233
# PIC (with -KPIC) is the default.
17234
lt_prog_compiler_static_F77='-non_shared'
17238
lt_prog_compiler_pic_F77='-KPIC'
17239
lt_prog_compiler_static_F77='-Bstatic'
17245
lt_prog_compiler_wl_F77='-Wl,'
17246
lt_prog_compiler_pic_F77='-KPIC'
17247
lt_prog_compiler_static_F77='-static'
17250
lt_prog_compiler_wl_F77='-Wl,'
17251
# All Alpha code is PIC.
17252
lt_prog_compiler_static_F77='-non_shared'
17257
osf3* | osf4* | osf5*)
17258
lt_prog_compiler_wl_F77='-Wl,'
17259
# All OSF/1 code is PIC.
17260
lt_prog_compiler_static_F77='-non_shared'
17264
lt_prog_compiler_pic_F77='-Kpic'
17265
lt_prog_compiler_static_F77='-dn'
17269
lt_prog_compiler_wl_F77='-Wl,'
17270
lt_prog_compiler_pic_F77='-KPIC'
17271
lt_prog_compiler_static_F77='-Bstatic'
17275
lt_prog_compiler_wl_F77='-Qoption ld '
17276
lt_prog_compiler_pic_F77='-PIC'
17277
lt_prog_compiler_static_F77='-Bstatic'
17280
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17281
lt_prog_compiler_wl_F77='-Wl,'
17282
lt_prog_compiler_pic_F77='-KPIC'
17283
lt_prog_compiler_static_F77='-Bstatic'
17287
if test -d /usr/nec ;then
17288
lt_prog_compiler_pic_F77='-Kconform_pic'
17289
lt_prog_compiler_static_F77='-Bstatic'
17294
lt_prog_compiler_pic_F77='-pic'
17295
lt_prog_compiler_static_F77='-Bstatic'
17299
lt_prog_compiler_can_build_shared_F77=no
17304
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
17305
$as_echo "$lt_prog_compiler_pic_F77" >&6; }
17308
# Check to make sure the PIC flag actually works.
17310
if test -n "$lt_prog_compiler_pic_F77"; then
17312
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
17313
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
17314
if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
17315
$as_echo_n "(cached) " >&6
17317
lt_prog_compiler_pic_works_F77=no
17318
ac_outfile=conftest.$ac_objext
17319
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17320
lt_compiler_flag="$lt_prog_compiler_pic_F77"
17321
# Insert the option either (1) after the last *FLAGS variable, or
17322
# (2) before a word containing "conftest.", or (3) at the end.
17323
# Note that $ac_compile itself does not contain backslashes and begins
17324
# with a dollar sign (not a hyphen), so the echo should work correctly.
17325
# The option is referenced via a variable to avoid confusing sed.
17326
lt_compile=`echo "$ac_compile" | $SED \
17327
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17328
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17329
-e 's:$: $lt_compiler_flag:'`
17330
(eval echo "\"\$as_me:17330: $lt_compile\"" >&5)
17331
(eval "$lt_compile" 2>conftest.err)
17333
cat conftest.err >&5
17334
echo "$as_me:17334: \$? = $ac_status" >&5
17335
if (exit $ac_status) && test -s "$ac_outfile"; then
17336
# The compiler can only warn and ignore the option if not recognized
17337
# So say no if there are warnings
17338
if test ! -s conftest.err; then
17339
lt_prog_compiler_pic_works_F77=yes
17345
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
17346
$as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
17348
if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
17349
case $lt_prog_compiler_pic_F77 in
17351
*) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
17354
lt_prog_compiler_pic_F77=
17355
lt_prog_compiler_can_build_shared_F77=no
17360
# For platforms which do not support PIC, -DPIC is meaningless:
17362
lt_prog_compiler_pic_F77=
17365
lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
17369
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17370
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17371
if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
17372
$as_echo_n "(cached) " >&6
17374
lt_cv_prog_compiler_c_o_F77=no
17375
$rm -r conftest 2>/dev/null
17379
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17381
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
17382
# that will create temporary files in the current directory regardless of
17383
# the output directory. Thus, making CWD read-only will cause this test
17384
# to fail, enabling locking or at least warning the user not to do parallel
17388
lt_compiler_flag="-o out/conftest2.$ac_objext"
17389
# Insert the option either (1) after the last *FLAGS variable, or
17390
# (2) before a word containing "conftest.", or (3) at the end.
17391
# Note that $ac_compile itself does not contain backslashes and begins
17392
# with a dollar sign (not a hyphen), so the echo should work correctly.
17393
lt_compile=`echo "$ac_compile" | $SED \
17394
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17395
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17396
-e 's:$: $lt_compiler_flag:'`
17397
(eval echo "\"\$as_me:17397: $lt_compile\"" >&5)
17398
(eval "$lt_compile" 2>out/conftest.err)
17400
cat out/conftest.err >&5
17401
echo "$as_me:17401: \$? = $ac_status" >&5
17402
if (exit $ac_status) && test -s out/conftest2.$ac_objext
17404
# The compiler can only warn and ignore the option if not recognized
17405
# So say no if there are warnings
17406
if test ! -s out/conftest.err; then
17407
lt_cv_prog_compiler_c_o_F77=yes
17411
$rm conftest* out/*
17418
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
17419
$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
17422
hard_links="nottested"
17423
if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
17424
# do not overwrite the value of need_locks provided by the user
17425
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17426
$as_echo_n "checking if we can lock with hard links... " >&6; }
17429
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17431
ln conftest.a conftest.b 2>&5 || hard_links=no
17432
ln conftest.a conftest.b 2>/dev/null && hard_links=no
17433
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17434
$as_echo "$hard_links" >&6; }
17435
if test "$hard_links" = no; then
17436
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17437
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17444
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17445
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17448
allow_undefined_flag_F77=
17449
enable_shared_with_static_runtimes_F77=no
17451
archive_expsym_cmds_F77=
17452
old_archive_From_new_cmds_F77=
17453
old_archive_from_expsyms_cmds_F77=
17454
export_dynamic_flag_spec_F77=
17455
whole_archive_flag_spec_F77=
17456
thread_safe_flag_spec_F77=
17457
hardcode_libdir_flag_spec_F77=
17458
hardcode_libdir_flag_spec_ld_F77=
17459
hardcode_libdir_separator_F77=
17460
hardcode_direct_F77=no
17461
hardcode_minus_L_F77=no
17462
hardcode_shlibpath_var_F77=unsupported
17463
link_all_deplibs_F77=unknown
17464
hardcode_automatic_F77=no
17466
module_expsym_cmds_F77=
17467
always_export_symbols_F77=no
17468
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17469
# include_expsyms should be a list of space-separated symbols to be *always*
17470
# included in the symbol list
17471
include_expsyms_F77=
17472
# exclude_expsyms can be an extended regexp of symbols to exclude
17473
# it will be wrapped by ` (' and `)$', so one must not match beginning or
17474
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17475
# as well as any symbol that contains `d'.
17476
exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
17477
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17478
# platforms (ab)use it in PIC code, but their linkers get confused if
17479
# the symbol is explicitly referenced. Since portable code cannot
17480
# rely on this symbol name, it's probably fine to never include it in
17481
# preloaded symbol tables.
17482
extract_expsyms_cmds=
17485
cygwin* | mingw* | pw32*)
17486
# FIXME: the MSVC++ port hasn't been tested in a loooong time
17487
# When not using gcc, we currently assume that we are using
17488
# Microsoft Visual C++.
17489
if test "$GCC" != yes; then
17499
if test "$with_gnu_ld" = yes; then
17500
# If archive_cmds runs LD, not CC, wlarc should be empty
17503
# See if GNU ld supports shared libraries.
17505
aix3* | aix4* | aix5*)
17506
# On AIX/PPC, the GNU linker is very broken
17507
if test "$host_cpu" != ia64; then
17511
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
17512
*** to be unable to reliably create shared libraries on AIX.
17513
*** Therefore, libtool is disabling shared libraries support. If you
17514
*** really care for shared libraries, you may want to modify your PATH
17515
*** so that a non-GNU linker is found, and then restart.
17522
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)'
17523
hardcode_libdir_flag_spec_F77='-L$libdir'
17524
hardcode_minus_L_F77=yes
17526
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17527
# that the semantics of dynamic libraries on AmigaOS, at least up
17528
# to version 4, is to share data among multiple programs linked
17529
# with the same dynamic library. Since this doesn't match the
17530
# behavior of shared libraries on other platforms, we can't use
17536
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17537
allow_undefined_flag_F77=unsupported
17538
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17539
# support --undefined. This deserves some investigation. FIXME
17540
archive_cmds_F77='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
17546
cygwin* | mingw* | pw32*)
17547
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
17548
# as there is no search path for DLLs.
17549
hardcode_libdir_flag_spec_F77='-L$libdir'
17550
allow_undefined_flag_F77=no
17551
always_export_symbols_F77=no
17552
enable_shared_with_static_runtimes_F77=yes
17553
export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17555
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17556
archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17557
# If the export-symbols file already is a .def file (1st line
17558
# is EXPORTS), use it as is; otherwise, prepend...
17559
archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17560
cp $export_symbols $output_objdir/$soname.def;
17562
echo EXPORTS > $output_objdir/$soname.def;
17563
cat $export_symbols >> $output_objdir/$soname.def;
17565
$CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17572
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17573
archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17576
archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
17577
archive_expsym_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17582
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17586
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
17587
*** create shared libraries on Solaris systems. Therefore, libtool
17588
*** is disabling shared libraries support. We urge you to upgrade GNU
17589
*** binutils to release 2.9.1 or newer. Another option is to modify
17590
*** your PATH or compiler configuration so that the native linker is
17591
*** used, and then restart.
17594
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17595
archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
17596
archive_expsym_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17603
archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17605
hardcode_direct_F77=yes
17606
hardcode_shlibpath_var_F77=no
17610
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17611
archive_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
17612
archive_expsym_cmds_F77='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17619
if test "$ld_shlibs_F77" = yes; then
17620
runpath_var=LD_RUN_PATH
17621
hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
17622
export_dynamic_flag_spec_F77='${wl}--export-dynamic'
17623
# ancient GNU ld didn't support --whole-archive et. al.
17624
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17625
whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17627
whole_archive_flag_spec_F77=
17631
# PORTME fill in a description of your system's linker (not GNU ld)
17634
allow_undefined_flag_F77=unsupported
17635
always_export_symbols_F77=yes
17636
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'
17637
# Note: this linker hardcodes the directories in LIBPATH if there
17638
# are no directories specified by -L.
17639
hardcode_minus_L_F77=yes
17640
if test "$GCC" = yes && test -z "$link_static_flag"; then
17641
# Neither direct hardcoding nor static linking is supported with a
17643
hardcode_direct_F77=unsupported
17648
if test "$host_cpu" = ia64; then
17649
# On IA64, the linker does run time linking by default, so we don't
17650
# have to do anything special.
17651
aix_use_runtimelinking=no
17652
exp_sym_flag='-Bexport'
17655
# If we're using GNU nm, then we don't want the "-C" option.
17656
# -C means demangle to AIX nm, but means don't demangle with GNU nm
17657
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17658
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'
17660
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'
17663
# KDE requires run time linking. Make it the default.
17664
aix_use_runtimelinking=yes
17665
exp_sym_flag='-bexport'
17666
no_entry_flag='-bnoentry'
17669
# When large executables or shared objects are built, AIX ld can
17670
# have problems creating the table of contents. If linking a library
17671
# or program results in "error TOC overflow" add -mminimal-toc to
17672
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17673
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17675
archive_cmds_F77=''
17676
hardcode_direct_F77=yes
17677
hardcode_libdir_separator_F77=':'
17678
link_all_deplibs_F77=yes
17680
if test "$GCC" = yes; then
17681
case $host_os in aix4.012|aix4.012.*)
17682
# We only want to do this on AIX 4.2 and lower, the check
17683
# below for broken collect2 doesn't work under 4.3+
17684
collect2name=`${CC} -print-prog-name=collect2`
17685
if test -f "$collect2name" && \
17686
strings "$collect2name" | grep resolve_lib_name >/dev/null
17688
# We have reworked collect2
17689
hardcode_direct_F77=yes
17691
# We have old collect2
17692
hardcode_direct_F77=unsupported
17693
# It fails to find uninstalled libraries when the uninstalled
17694
# path is not listed in the libpath. Setting hardcode_minus_L
17695
# to unsupported forces relinking
17696
hardcode_minus_L_F77=yes
17697
hardcode_libdir_flag_spec_F77='-L$libdir'
17698
hardcode_libdir_separator_F77=
17701
shared_flag='-shared'
17704
if test "$host_cpu" = ia64; then
17705
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17706
# chokes on -Wl,-G. The following line is correct:
17709
if test "$aix_use_runtimelinking" = yes; then
17710
shared_flag='-qmkshrobj ${wl}-G'
17712
shared_flag='-qmkshrobj'
17717
# Let the compiler handle the export list.
17718
always_export_symbols_F77=no
17719
if test "$aix_use_runtimelinking" = yes; then
17720
# Warning - without using the other runtime loading flags (-brtl),
17721
# -berok will link without error, but may produce a broken library.
17722
allow_undefined_flag_F77='-berok'
17723
# Determine the default libpath from the value encoded in an empty executable.
17724
cat >conftest.$ac_ext <<_ACEOF
17729
rm -f conftest.$ac_objext conftest$ac_exeext
17730
if { (ac_try="$ac_link"
17731
case "(($ac_try" in
17732
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17733
*) ac_try_echo=$ac_try;;
17735
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17736
$as_echo "$ac_try_echo") >&5
17737
(eval "$ac_link") 2>conftest.er1
17739
grep -v '^ *+' conftest.er1 >conftest.err
17741
cat conftest.err >&5
17742
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743
(exit $ac_status); } && {
17744
test -z "$ac_f77_werror_flag" ||
17745
test ! -s conftest.err
17746
} && test -s conftest$ac_exeext && {
17747
test "$cross_compiling" = yes ||
17748
$as_test_x conftest$ac_exeext
17751
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17753
# Check for a 64-bit object if we didn't find anything.
17754
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; }
17757
$as_echo "$as_me: failed program was:" >&5
17758
sed 's/^/| /' conftest.$ac_ext >&5
17763
rm -rf conftest.dSYM
17764
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17765
conftest$ac_exeext conftest.$ac_ext
17766
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17768
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17769
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"
17770
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"
17772
if test "$host_cpu" = ia64; then
17773
hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
17774
allow_undefined_flag_F77="-z nodefs"
17775
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"
17777
# Determine the default libpath from the value encoded in an empty executable.
17778
cat >conftest.$ac_ext <<_ACEOF
17783
rm -f conftest.$ac_objext conftest$ac_exeext
17784
if { (ac_try="$ac_link"
17785
case "(($ac_try" in
17786
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17787
*) ac_try_echo=$ac_try;;
17789
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17790
$as_echo "$ac_try_echo") >&5
17791
(eval "$ac_link") 2>conftest.er1
17793
grep -v '^ *+' conftest.er1 >conftest.err
17795
cat conftest.err >&5
17796
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797
(exit $ac_status); } && {
17798
test -z "$ac_f77_werror_flag" ||
17799
test ! -s conftest.err
17800
} && test -s conftest$ac_exeext && {
17801
test "$cross_compiling" = yes ||
17802
$as_test_x conftest$ac_exeext
17805
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17807
# Check for a 64-bit object if we didn't find anything.
17808
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; }
17811
$as_echo "$as_me: failed program was:" >&5
17812
sed 's/^/| /' conftest.$ac_ext >&5
17817
rm -rf conftest.dSYM
17818
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17819
conftest$ac_exeext conftest.$ac_ext
17820
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17822
hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17823
# Warning - without using the other run time loading flags,
17824
# -berok will link without error, but may produce a broken library.
17825
no_undefined_flag_F77=' ${wl}-bernotok'
17826
allow_undefined_flag_F77=' ${wl}-berok'
17827
# -bexpall does not export symbols beginning with underscore (_)
17828
always_export_symbols_F77=yes
17829
# Exported symbols can be pulled into shared objects from archives
17830
whole_archive_flag_spec_F77=' '
17831
archive_cmds_need_lc_F77=yes
17832
# This is similar to how AIX traditionally builds it's shared libraries.
17833
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'
17839
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)'
17840
hardcode_libdir_flag_spec_F77='-L$libdir'
17841
hardcode_minus_L_F77=yes
17842
# see comment about different semantics on the GNU ld section
17847
export_dynamic_flag_spec_F77=-rdynamic
17850
cygwin* | mingw* | pw32*)
17851
# When not using gcc, we currently assume that we are using
17852
# Microsoft Visual C++.
17853
# hardcode_libdir_flag_spec is actually meaningless, as there is
17854
# no search path for DLLs.
17855
hardcode_libdir_flag_spec_F77=' '
17856
allow_undefined_flag_F77=no
17857
# Tell ltmain to make .lib files, not .a files.
17859
# Tell ltmain to make .dll files, not .so files.
17861
# FIXME: Setting linknames here is a bad hack.
17862
archive_cmds_F77='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17863
# The linker will automatically build a .lib file if we build a DLL.
17864
old_archive_From_new_cmds_F77='true'
17865
# FIXME: Should let the user specify the lib program.
17866
old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
17867
fix_srcfile_path='`cygpath -w "$srcfile"`'
17868
enable_shared_with_static_runtimes_F77=yes
17871
darwin* | rhapsody*)
17872
if test "$GXX" = yes ; then
17873
archive_cmds_need_lc_F77=no
17875
rhapsody* | darwin1.[012])
17876
allow_undefined_flag_F77='-Wl,-undefined -Wl,suppress'
17879
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17880
allow_undefined_flag_F77='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
17882
case ${MACOSX_DEPLOYMENT_TARGET} in
17884
allow_undefined_flag_F77='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
17887
allow_undefined_flag_F77='-Wl,-undefined -Wl,dynamic_lookup'
17893
lt_int_apple_cc_single_mod=no
17894
output_verbose_link_cmd='echo'
17895
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
17896
lt_int_apple_cc_single_mod=yes
17898
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17899
archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
17901
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'
17903
module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
17904
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
17905
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
17906
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}'
17908
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}'
17910
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}'
17911
hardcode_direct_F77=no
17912
hardcode_automatic_F77=yes
17913
hardcode_shlibpath_var_F77=unsupported
17914
whole_archive_flag_spec_F77='-all_load $convenience'
17915
link_all_deplibs_F77=yes
17922
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17923
hardcode_libdir_flag_spec_F77='-L$libdir'
17924
hardcode_shlibpath_var_F77=no
17931
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17932
# support. Future versions do this automatically, but an explicit c++rt0.o
17933
# does not break anything, and helps significantly (at the cost of a little
17936
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17937
hardcode_libdir_flag_spec_F77='-R$libdir'
17938
hardcode_direct_F77=yes
17939
hardcode_shlibpath_var_F77=no
17942
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
17944
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17945
hardcode_direct_F77=yes
17946
hardcode_minus_L_F77=yes
17947
hardcode_shlibpath_var_F77=no
17950
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17951
freebsd* | kfreebsd*-gnu)
17952
archive_cmds_F77='$CC -shared -o $lib $compiler_flags $libobjs $deplibs'
17953
hardcode_libdir_flag_spec_F77='-R$libdir'
17954
hardcode_direct_F77=yes
17955
hardcode_shlibpath_var_F77=no
17959
if test "$GCC" = yes; then
17960
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'
17962
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'
17964
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17965
hardcode_libdir_separator_F77=:
17966
hardcode_direct_F77=yes
17968
# hardcode_minus_L: Not really in the search PATH,
17969
# but as the default location of the library.
17970
hardcode_minus_L_F77=yes
17971
export_dynamic_flag_spec_F77='${wl}-E'
17975
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17976
case "$host_cpu" in
17978
archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
17981
archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs'
17985
case "$host_cpu" in
17987
archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
17990
archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17994
if test "$with_gnu_ld" = no; then
17995
case "$host_cpu" in
17997
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17998
hardcode_libdir_flag_spec_ld_F77='+b $libdir'
17999
hardcode_libdir_separator_F77=:
18000
hardcode_direct_F77=no
18001
hardcode_shlibpath_var_F77=no
18004
hardcode_libdir_flag_spec_F77='-L$libdir'
18005
hardcode_direct_F77=no
18006
hardcode_shlibpath_var_F77=no
18008
# hardcode_minus_L: Not really in the search PATH,
18009
# but as the default location of the library.
18010
hardcode_minus_L_F77=yes
18013
hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18014
hardcode_libdir_separator_F77=:
18015
hardcode_direct_F77=yes
18016
export_dynamic_flag_spec_F77='${wl}-E'
18018
# hardcode_minus_L: Not really in the search PATH,
18019
# but as the default location of the library.
18020
hardcode_minus_L_F77=yes
18026
irix5* | irix6* | nonstopux*)
18027
if test "$GCC" = yes; then
18028
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'
18030
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'
18031
hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
18033
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18034
hardcode_libdir_separator_F77=:
18035
link_all_deplibs_F77=yes
18039
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18040
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18042
archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18044
hardcode_libdir_flag_spec_F77='-R$libdir'
18045
hardcode_direct_F77=yes
18046
hardcode_shlibpath_var_F77=no
18050
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18051
hardcode_direct_F77=yes
18052
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18053
hardcode_libdir_separator_F77=:
18054
hardcode_shlibpath_var_F77=no
18058
hardcode_direct_F77=yes
18059
hardcode_shlibpath_var_F77=no
18060
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18061
archive_cmds_F77='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
18062
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
18063
export_dynamic_flag_spec_F77='${wl}-E'
18066
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18067
archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18068
hardcode_libdir_flag_spec_F77='-R$libdir'
18071
archive_cmds_F77='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
18072
hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
18079
hardcode_libdir_flag_spec_F77='-L$libdir'
18080
hardcode_minus_L_F77=yes
18081
allow_undefined_flag_F77=unsupported
18082
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'
18083
old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18087
if test "$GCC" = yes; then
18088
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
18089
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'
18091
allow_undefined_flag_F77=' -expect_unresolved \*'
18092
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'
18094
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18095
hardcode_libdir_separator_F77=:
18098
osf4* | osf5*) # as osf3* with the addition of -msym flag
18099
if test "$GCC" = yes; then
18100
allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
18101
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'
18102
hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18104
allow_undefined_flag_F77=' -expect_unresolved \*'
18105
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'
18106
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~
18107
$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'
18109
# Both c and cxx compiler support -rpath directly
18110
hardcode_libdir_flag_spec_F77='-rpath $libdir'
18112
hardcode_libdir_separator_F77=:
18116
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18117
hardcode_shlibpath_var_F77=no
18118
export_dynamic_flag_spec_F77='${wl}-Bexport'
18119
runpath_var=LD_RUN_PATH
18120
hardcode_runpath_var=yes
18124
no_undefined_flag_F77=' -z text'
18125
if test "$GCC" = yes; then
18126
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
18127
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18128
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp'
18130
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18131
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18132
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18134
hardcode_libdir_flag_spec_F77='-R$libdir'
18135
hardcode_shlibpath_var_F77=no
18137
solaris2.[0-5] | solaris2.[0-5].*) ;;
18138
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
18139
whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
18141
link_all_deplibs_F77=yes
18145
if test "x$host_vendor" = xsequent; then
18146
# Use $CC to link under sequent, because it throws in some extra .o
18147
# files that make .init and .fini sections work.
18148
archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs'
18150
archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18152
hardcode_libdir_flag_spec_F77='-L$libdir'
18153
hardcode_direct_F77=yes
18154
hardcode_minus_L_F77=yes
18155
hardcode_shlibpath_var_F77=no
18159
case $host_vendor in
18161
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18162
hardcode_direct_F77=yes # is this really true???
18165
## LD is ld it makes a PLAMLIB
18166
## CC just makes a GrossModule.
18167
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18168
reload_cmds_F77='$CC -r -o $output$reload_objs'
18169
hardcode_direct_F77=no
18172
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18173
hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
18176
runpath_var='LD_RUN_PATH'
18177
hardcode_shlibpath_var_F77=no
18181
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18182
hardcode_shlibpath_var_F77=no
18183
export_dynamic_flag_spec_F77='-Bexport'
18187
if test -d /usr/nec; then
18188
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18189
hardcode_shlibpath_var_F77=no
18190
runpath_var=LD_RUN_PATH
18191
hardcode_runpath_var=yes
18197
archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18198
hardcode_direct_F77=yes
18199
hardcode_minus_L_F77=no
18200
hardcode_shlibpath_var_F77=no
18201
hardcode_runpath_var=yes
18202
runpath_var=LD_RUN_PATH
18205
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
18206
no_undefined_flag_F77='${wl}-z ${wl}text'
18207
if test "$GCC" = yes; then
18208
archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
18210
archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
18212
runpath_var='LD_RUN_PATH'
18213
hardcode_shlibpath_var_F77=no
18217
no_undefined_flag_F77=' -z text'
18218
# $CC -shared without GNU ld will not create a library from C++
18219
# object files and a static libstdc++, better avoid it by now
18220
archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18221
archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18222
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18223
hardcode_libdir_flag_spec_F77=
18224
hardcode_shlibpath_var_F77=no
18225
runpath_var='LD_RUN_PATH'
18229
archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18230
hardcode_libdir_flag_spec_F77='-L$libdir'
18231
hardcode_shlibpath_var_F77=no
18240
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
18241
$as_echo "$ld_shlibs_F77" >&6; }
18242
test "$ld_shlibs_F77" = no && can_build_shared=no
18244
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18245
if test "$GCC" = yes; then
18246
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18250
# Do we need to explicitly link libc?
18252
case "x$archive_cmds_need_lc_F77" in
18254
# Assume -lc should be added
18255
archive_cmds_need_lc_F77=yes
18257
if test "$enable_shared" = yes && test "$GCC" = yes; then
18258
case $archive_cmds_F77 in
18260
# FIXME: we may have to deal with multi-command sequences.
18263
# Test whether the compiler implicitly links with -lc since on some
18264
# systems, -lgcc has to come before -lc. If gcc already passes -lc
18265
# to ld, don't add -lc before -lgcc.
18266
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18267
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18269
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18271
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18272
(eval $ac_compile) 2>&5
18274
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18275
(exit $ac_status); } 2>conftest.err; then
18278
libobjs=conftest.$ac_objext
18280
wl=$lt_prog_compiler_wl_F77
18286
lt_save_allow_undefined_flag=$allow_undefined_flag_F77
18287
allow_undefined_flag_F77=
18288
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18289
(eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18291
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18292
(exit $ac_status); }
18294
archive_cmds_need_lc_F77=no
18296
archive_cmds_need_lc_F77=yes
18298
allow_undefined_flag_F77=$lt_save_allow_undefined_flag
18300
cat conftest.err 1>&5
18303
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
18304
$as_echo "$archive_cmds_need_lc_F77" >&6; }
18311
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18312
$as_echo_n "checking dynamic linker characteristics... " >&6; }
18313
library_names_spec=
18314
libname_spec='lib$name'
18318
postuninstall_cmds=
18322
shlibpath_overrides_runpath=unknown
18324
dynamic_linker="$host_os ld.so"
18325
sys_lib_dlsearch_path_spec="/lib /usr/lib"
18326
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18327
need_lib_prefix=unknown
18328
hardcode_into_libs=no
18330
# when you set need_version to no, make sure it does not cause -set_version
18331
# flags to be left without arguments
18332
need_version=unknown
18337
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18338
shlibpath_var=LIBPATH
18340
# AIX 3 has no versioning support, so we append a major version to the name.
18341
soname_spec='${libname}${release}${shared_ext}$major'
18348
hardcode_into_libs=yes
18349
if test "$host_cpu" = ia64; then
18350
# AIX 5 supports IA64
18351
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18352
shlibpath_var=LD_LIBRARY_PATH
18354
# With GCC up to 2.95.x, collect2 would create an import file
18355
# for dependence libraries. The import file would start with
18356
# the line `#! .'. This would cause the generated library to
18357
# depend on `.', always an invalid library. This was fixed in
18358
# development snapshots of GCC prior to 3.0.
18360
aix4 | aix4.[01] | aix4.[01].*)
18361
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18363
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18366
can_build_shared=no
18370
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18371
# soname into executable. Probably we can add versioning support to
18372
# collect2, so additional links can be useful in future.
18373
if test "$aix_use_runtimelinking" = yes; then
18374
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
18375
# instead of lib<name>.a to let people know that these are not
18376
# typical AIX shared libraries.
18377
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18379
# We preserve .a as extension for shared libraries through AIX4.2
18380
# and later when we are not doing run time linking.
18381
library_names_spec='${libname}${release}.a $libname.a'
18382
soname_spec='${libname}${release}${shared_ext}$major'
18384
shlibpath_var=LIBPATH
18389
library_names_spec='$libname.ixlibrary $libname.a'
18390
# Create ${libname}_ixlibrary.a entries in /sys/libs.
18391
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'
18395
library_names_spec='${libname}${shared_ext}'
18396
dynamic_linker="$host_os ld.so"
18397
shlibpath_var=LIBRARY_PATH
18403
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18404
soname_spec='${libname}${release}${shared_ext}$major'
18405
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18406
shlibpath_var=LD_LIBRARY_PATH
18407
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18408
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18409
# the default ld.so.conf also contains /usr/contrib/lib and
18410
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18411
# libtool to hard-code these into programs
18414
cygwin* | mingw* | pw32*)
18415
version_type=windows
18420
case $GCC,$host_os in
18421
yes,cygwin* | yes,mingw* | yes,pw32*)
18422
library_names_spec='$libname.dll.a'
18423
# DLL is installed to $(libdir)/../bin by postinstall_cmds
18424
postinstall_cmds='base_file=`basename \${file}`~
18425
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18426
dldir=$destdir/`dirname \$dlpath`~
18427
test -d \$dldir || mkdir -p \$dldir~
18428
$install_prog $dir/$dlname \$dldir/$dlname'
18429
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18430
dlpath=$dir/\$dldll~
18432
shlibpath_overrides_runpath=yes
18436
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
18437
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18438
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18441
# MinGW DLLs use traditional 'lib' prefix
18442
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18443
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18444
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18445
# It is most probably a Windows format PATH printed by
18446
# mingw gcc, but we are running on Cygwin. Gcc prints its search
18447
# path with ; separators, and with drive letters. We can handle the
18448
# drive letters (cygwin fileutils understands them), so leave them,
18449
# especially as we might pass files found there to a mingw objdump,
18450
# which wouldn't understand a cygwinified path. Ahh.
18451
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18453
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18457
# pw32 DLLs use 'pw' prefix rather than 'lib'
18458
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18464
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18467
dynamic_linker='Win32 ld.exe'
18468
# FIXME: first we should search . and the directory the executable is in
18472
darwin* | rhapsody*)
18473
dynamic_linker="$host_os dyld"
18474
version_type=darwin
18477
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18478
soname_spec='${libname}${release}${major}$shared_ext'
18479
shlibpath_overrides_runpath=yes
18480
shlibpath_var=DYLD_LIBRARY_PATH
18481
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
18482
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18483
if test "$GCC" = yes; then
18484
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"`
18486
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18488
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18495
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18496
soname_spec='${libname}${release}${shared_ext}$major'
18497
shlibpath_var=LD_LIBRARY_PATH
18508
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18509
soname_spec='${libname}${release}${shared_ext}$major'
18510
shlibpath_var=LD_LIBRARY_PATH
18511
shlibpath_overrides_runpath=no
18512
hardcode_into_libs=yes
18513
dynamic_linker='GNU ld.so'
18517
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18518
version_type=freebsd-$objformat
18519
case $version_type in
18521
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18526
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18530
shlibpath_var=LD_LIBRARY_PATH
18533
shlibpath_overrides_runpath=yes
18535
freebsd3.01* | freebsdelf3.01*)
18536
shlibpath_overrides_runpath=yes
18537
hardcode_into_libs=yes
18540
shlibpath_overrides_runpath=no
18541
hardcode_into_libs=yes
18550
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18551
soname_spec='${libname}${release}${shared_ext}$major'
18552
shlibpath_var=LD_LIBRARY_PATH
18553
hardcode_into_libs=yes
18556
hpux9* | hpux10* | hpux11*)
18557
# Give a soname corresponding to the major version so that dld.sl refuses to
18558
# link against other versions.
18562
case "$host_cpu" in
18565
hardcode_into_libs=yes
18566
dynamic_linker="$host_os dld.so"
18567
shlibpath_var=LD_LIBRARY_PATH
18568
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18569
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18570
soname_spec='${libname}${release}${shared_ext}$major'
18571
if test "X$HPUX_IA64_MODE" = X32; then
18572
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18574
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18576
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18580
hardcode_into_libs=yes
18581
dynamic_linker="$host_os dld.sl"
18582
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18583
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18584
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18585
soname_spec='${libname}${release}${shared_ext}$major'
18586
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18587
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18591
dynamic_linker="$host_os dld.sl"
18592
shlibpath_var=SHLIB_PATH
18593
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18594
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18595
soname_spec='${libname}${release}${shared_ext}$major'
18598
# HP-UX runs *really* slowly unless shared libraries are mode 555.
18599
postinstall_cmds='chmod 555 $lib'
18602
irix5* | irix6* | nonstopux*)
18604
nonstopux*) version_type=nonstopux ;;
18606
if test "$lt_cv_prog_gnu_ld" = yes; then
18614
soname_spec='${libname}${release}${shared_ext}$major'
18615
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18617
irix5* | nonstopux*)
18618
libsuff= shlibsuff=
18621
case $LD in # libtool.m4 will add one of these switches to LD
18622
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18623
libsuff= shlibsuff= libmagic=32-bit;;
18624
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18625
libsuff=32 shlibsuff=N32 libmagic=N32;;
18626
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18627
libsuff=64 shlibsuff=64 libmagic=64-bit;;
18628
*) libsuff= shlibsuff= libmagic=never-match;;
18632
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18633
shlibpath_overrides_runpath=no
18634
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18635
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18636
hardcode_into_libs=yes
18639
# No shared lib support for Linux oldld, aout, or coff.
18640
linux*oldld* | linux*aout* | linux*coff*)
18644
# This must be Linux ELF.
18649
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18650
soname_spec='${libname}${release}${shared_ext}$major'
18651
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18653
if test "x$LINUX_64_MODE" = x64; then
18654
# Some platforms are per default 64-bit, so there's no /lib64
18655
if test -d /lib64 -a ! -h /lib64; then
18659
shlibpath_var=LD_LIBRARY_PATH
18660
shlibpath_overrides_runpath=no
18661
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
18662
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
18663
# This implies no fast_install, which is unacceptable.
18664
# Some rework will be needed to allow for fast_install
18665
# before this can be enabled.
18666
hardcode_into_libs=yes
18668
# We used to test for /lib/ld.so.1 and disable shared libraries on
18669
# powerpc, because MkLinux only supported shared libraries with the
18670
# GNU dynamic linker. Since this was broken with cross compilers,
18671
# most powerpc-linux boxes support dynamic linking these days and
18672
# people can always --disable-shared, the test was removed, and we
18673
# assume the GNU/Linux dynamic linker is in use.
18674
dynamic_linker='GNU/Linux ld.so'
18681
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18682
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18683
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18684
dynamic_linker='NetBSD (a.out) ld.so'
18686
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
18687
soname_spec='${libname}${release}${shared_ext}$major'
18688
dynamic_linker='NetBSD ld.elf_so'
18690
shlibpath_var=LD_LIBRARY_PATH
18691
shlibpath_overrides_runpath=yes
18692
hardcode_into_libs=yes
18697
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18698
shlibpath_var=LD_LIBRARY_PATH
18699
shlibpath_overrides_runpath=yes
18706
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18707
soname_spec='${libname}${release}${shared_ext}$major'
18708
shlibpath_var=LD_LIBRARY_PATH
18709
shlibpath_overrides_runpath=yes
18716
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18717
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18718
shlibpath_var=LD_LIBRARY_PATH
18719
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18721
openbsd2.[89] | openbsd2.[89].*)
18722
shlibpath_overrides_runpath=no
18725
shlibpath_overrides_runpath=yes
18729
shlibpath_overrides_runpath=yes
18734
libname_spec='$name'
18737
library_names_spec='$libname${shared_ext} $libname.a'
18738
dynamic_linker='OS/2 ld.exe'
18739
shlibpath_var=LIBPATH
18742
osf3* | osf4* | osf5*)
18746
soname_spec='${libname}${release}${shared_ext}$major'
18747
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18748
shlibpath_var=LD_LIBRARY_PATH
18749
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18750
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18755
soname_spec='${libname}${release}${shared_ext}$major'
18756
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18757
shlibpath_var=LD_LIBRARY_PATH
18764
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18765
soname_spec='${libname}${release}${shared_ext}$major'
18766
shlibpath_var=LD_LIBRARY_PATH
18767
shlibpath_overrides_runpath=yes
18768
hardcode_into_libs=yes
18769
# ldd complains unless libraries are executable
18770
postinstall_cmds='chmod +x $lib'
18775
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18776
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18777
shlibpath_var=LD_LIBRARY_PATH
18778
shlibpath_overrides_runpath=yes
18779
if test "$with_gnu_ld" = yes; then
18785
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18787
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18788
soname_spec='${libname}${release}${shared_ext}$major'
18789
shlibpath_var=LD_LIBRARY_PATH
18790
case $host_vendor in
18792
shlibpath_overrides_runpath=no
18794
export_dynamic_flag_spec='${wl}-Blargedynsym'
18795
runpath_var=LD_RUN_PATH
18803
shlibpath_overrides_runpath=no
18804
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18810
if test -d /usr/nec ;then
18812
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18813
soname_spec='$libname${shared_ext}.$major'
18814
shlibpath_var=LD_LIBRARY_PATH
18820
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18821
soname_spec='${libname}${release}${shared_ext}$major'
18822
shlibpath_var=LD_LIBRARY_PATH
18829
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18830
$as_echo "$dynamic_linker" >&6; }
18831
test "$dynamic_linker" = no && can_build_shared=no
18833
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18834
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18835
hardcode_action_F77=
18836
if test -n "$hardcode_libdir_flag_spec_F77" || \
18837
test -n "$runpath_var F77" || \
18838
test "X$hardcode_automatic_F77"="Xyes" ; then
18840
# We can hardcode non-existant directories.
18841
if test "$hardcode_direct_F77" != no &&
18842
# If the only mechanism to avoid hardcoding is shlibpath_var, we
18843
# have to relink, otherwise we might link with an installed library
18844
# when we should be linking with a yet-to-be-installed one
18845
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
18846
test "$hardcode_minus_L_F77" != no; then
18847
# Linking always hardcodes the temporary library directory.
18848
hardcode_action_F77=relink
18850
# We can link without hardcoding, and we can hardcode nonexisting dirs.
18851
hardcode_action_F77=immediate
18854
# We cannot hardcode anything, or else we can only hardcode existing
18856
hardcode_action_F77=unsupported
18858
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
18859
$as_echo "$hardcode_action_F77" >&6; }
18861
if test "$hardcode_action_F77" = relink; then
18862
# Fast installation is not supported
18863
enable_fast_install=no
18864
elif test "$shlibpath_overrides_runpath" = yes ||
18865
test "$enable_shared" = no; then
18866
# Fast installation is not necessary
18867
enable_fast_install=needless
18872
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
18873
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
18874
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
18875
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18876
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18877
{ $as_echo "$as_me:$LINENO: result: yes" >&5
18878
$as_echo "yes" >&6; }
18880
# FIXME - insert some real tests, host_os isn't really good enough
18883
if test -n "$STRIP" ; then
18884
striplib="$STRIP -x"
18885
{ $as_echo "$as_me:$LINENO: result: yes" >&5
18886
$as_echo "yes" >&6; }
18888
{ $as_echo "$as_me:$LINENO: result: no" >&5
18889
$as_echo "no" >&6; }
18893
{ $as_echo "$as_me:$LINENO: result: no" >&5
18894
$as_echo "no" >&6; }
18901
# The else clause should only fire when bootstrapping the
18902
# libtool distribution, otherwise you forgot to ship ltmain.sh
18903
# with your package, and you will get complaints that there are
18904
# no rules to generate ltmain.sh.
18905
if test -f "$ltmain"; then
18906
# See if we are running on zsh, and set the options which allow our commands through
18907
# without removal of \ escapes.
18908
if test -n "${ZSH_VERSION+set}" ; then
18909
setopt NO_GLOB_SUBST
18911
# Now quote all the things that may contain metacharacters while being
18912
# careful not to overquote the AC_SUBSTed values. We take copies of the
18913
# variables and quote the copies for generation of the libtool script.
18914
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18915
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18916
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18917
deplibs_check_method reload_flag reload_cmds need_locks \
18918
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18919
lt_cv_sys_global_symbol_to_c_name_address \
18920
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18921
old_postinstall_cmds old_postuninstall_cmds \
18925
lt_prog_compiler_wl_F77 \
18926
lt_prog_compiler_pic_F77 \
18927
lt_prog_compiler_static_F77 \
18928
lt_prog_compiler_no_builtin_flag_F77 \
18929
export_dynamic_flag_spec_F77 \
18930
thread_safe_flag_spec_F77 \
18931
whole_archive_flag_spec_F77 \
18932
enable_shared_with_static_runtimes_F77 \
18933
old_archive_cmds_F77 \
18934
old_archive_from_new_cmds_F77 \
18935
predep_objects_F77 \
18936
postdep_objects_F77 \
18939
compiler_lib_search_path_F77 \
18941
archive_expsym_cmds_F77 \
18942
postinstall_cmds_F77 \
18943
postuninstall_cmds_F77 \
18944
old_archive_from_expsyms_cmds_F77 \
18945
allow_undefined_flag_F77 \
18946
no_undefined_flag_F77 \
18947
export_symbols_cmds_F77 \
18948
hardcode_libdir_flag_spec_F77 \
18949
hardcode_libdir_flag_spec_ld_F77 \
18950
hardcode_libdir_separator_F77 \
18951
hardcode_automatic_F77 \
18953
module_expsym_cmds_F77 \
18954
lt_cv_prog_compiler_c_o_F77 \
18955
exclude_expsyms_F77 \
18956
include_expsyms_F77; do
18959
old_archive_cmds_F77 | \
18960
old_archive_from_new_cmds_F77 | \
18961
archive_cmds_F77 | \
18962
archive_expsym_cmds_F77 | \
18963
module_cmds_F77 | \
18964
module_expsym_cmds_F77 | \
18965
old_archive_from_expsyms_cmds_F77 | \
18966
export_symbols_cmds_F77 | \
18967
extract_expsyms_cmds | reload_cmds | finish_cmds | \
18968
postinstall_cmds | postuninstall_cmds | \
18969
old_postinstall_cmds | old_postuninstall_cmds | \
18970
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18971
# Double-quote double-evaled strings.
18972
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18975
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18981
*'\$0 --fallback-echo"')
18982
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18988
cat <<__EOF__ >> "$cfgfile"
18989
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18991
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18993
# Shell to use when invoking shell scripts.
18996
# Whether or not to build shared libraries.
18997
build_libtool_libs=$enable_shared
18999
# Whether or not to build static libraries.
19000
build_old_libs=$enable_static
19002
# Whether or not to add -lc for building shared libraries.
19003
build_libtool_need_lc=$archive_cmds_need_lc_F77
19005
# Whether or not to disallow shared libs when runtime libs are static
19006
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
19008
# Whether or not to optimize for fast installation.
19009
fast_install=$enable_fast_install
19012
host_alias=$host_alias
19015
# An echo program that does not interpret backslashes.
19020
AR_FLAGS=$lt_AR_FLAGS
19025
# A language-specific compiler.
19026
CC=$lt_compiler_F77
19028
# Is the compiler the GNU C compiler?
19034
# The linker used to build libraries.
19037
# Whether we need hard or soft links.
19040
# A BSD-compatible nm program.
19043
# A symbol stripping program
19046
# Used to examine libraries when file_magic_cmd begins "file"
19047
MAGIC_CMD=$MAGIC_CMD
19049
# Used on cygwin: DLL creation program.
19052
# Used on cygwin: object dumper.
19055
# Used on cygwin: assembler.
19058
# The name of the directory that contains temporary libtool files.
19061
# How to create reloadable object files.
19062
reload_flag=$lt_reload_flag
19063
reload_cmds=$lt_reload_cmds
19065
# How to pass a linker flag through the compiler.
19066
wl=$lt_lt_prog_compiler_wl_F77
19068
# Object file suffix (normally "o").
19069
objext="$ac_objext"
19071
# Old archive suffix (normally "a").
19074
# Shared library suffix (normally ".so").
19077
# Executable file suffix (normally "").
19080
# Additional compiler flags for building library objects.
19081
pic_flag=$lt_lt_prog_compiler_pic_F77
19084
# What is the maximum length of a command?
19085
max_cmd_len=$lt_cv_sys_max_cmd_len
19087
# Does compiler simultaneously support -c and -o options?
19088
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
19090
# Must we lock files when doing compilation ?
19091
need_locks=$lt_need_locks
19093
# Do we need the lib prefix for modules?
19094
need_lib_prefix=$need_lib_prefix
19096
# Do we need a version for libraries?
19097
need_version=$need_version
19099
# Whether dlopen is supported.
19100
dlopen_support=$enable_dlopen
19102
# Whether dlopen of programs is supported.
19103
dlopen_self=$enable_dlopen_self
19105
# Whether dlopen of statically linked programs is supported.
19106
dlopen_self_static=$enable_dlopen_self_static
19108
# Compiler flag to prevent dynamic linking.
19109
link_static_flag=$lt_lt_prog_compiler_static_F77
19111
# Compiler flag to turn off builtin functions.
19112
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
19114
# Compiler flag to allow reflexive dlopens.
19115
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
19117
# Compiler flag to generate shared objects directly from archives.
19118
whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
19120
# Compiler flag to generate thread-safe objects.
19121
thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
19123
# Library versioning type.
19124
version_type=$version_type
19126
# Format of library name prefix.
19127
libname_spec=$lt_libname_spec
19129
# List of archive names. First name is the real one, the rest are links.
19130
# The last name is the one that the linker finds with -lNAME.
19131
library_names_spec=$lt_library_names_spec
19133
# The coded name of the library, if different from the real name.
19134
soname_spec=$lt_soname_spec
19136
# Commands used to build and install an old-style archive.
19138
old_archive_cmds=$lt_old_archive_cmds_F77
19139
old_postinstall_cmds=$lt_old_postinstall_cmds
19140
old_postuninstall_cmds=$lt_old_postuninstall_cmds
19142
# Create an old-style archive from a shared archive.
19143
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
19145
# Create a temporary old-style archive to link instead of a shared archive.
19146
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
19148
# Commands used to build and install a shared archive.
19149
archive_cmds=$lt_archive_cmds_F77
19150
archive_expsym_cmds=$lt_archive_expsym_cmds_F77
19151
postinstall_cmds=$lt_postinstall_cmds
19152
postuninstall_cmds=$lt_postuninstall_cmds
19154
# Commands used to build a loadable module (assumed same as above if empty)
19155
module_cmds=$lt_module_cmds_F77
19156
module_expsym_cmds=$lt_module_expsym_cmds_F77
19158
# Commands to strip libraries.
19159
old_striplib=$lt_old_striplib
19160
striplib=$lt_striplib
19162
# Dependencies to place before the objects being linked to create a
19164
predep_objects=$lt_predep_objects_F77
19166
# Dependencies to place after the objects being linked to create a
19168
postdep_objects=$lt_postdep_objects_F77
19170
# Dependencies to place before the objects being linked to create a
19172
predeps=$lt_predeps_F77
19174
# Dependencies to place after the objects being linked to create a
19176
postdeps=$lt_postdeps_F77
19178
# The library search path used internally by the compiler when linking
19179
# a shared library.
19180
compiler_lib_search_path=$lt_compiler_lib_search_path_F77
19182
# Method to check whether dependent libraries are shared objects.
19183
deplibs_check_method=$lt_deplibs_check_method
19185
# Command to use when deplibs_check_method == file_magic.
19186
file_magic_cmd=$lt_file_magic_cmd
19188
# Flag that allows shared libraries with undefined symbols to be built.
19189
allow_undefined_flag=$lt_allow_undefined_flag_F77
19191
# Flag that forces no undefined symbols.
19192
no_undefined_flag=$lt_no_undefined_flag_F77
19194
# Commands used to finish a libtool library installation in a directory.
19195
finish_cmds=$lt_finish_cmds
19197
# Same as above, but a single script fragment to be evaled but not shown.
19198
finish_eval=$lt_finish_eval
19200
# Take the output of nm and produce a listing of raw symbols and C names.
19201
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19203
# Transform the output of nm in a proper C declaration
19204
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19206
# Transform the output of nm in a C name address pair
19207
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19209
# This is the shared library runtime path variable.
19210
runpath_var=$runpath_var
19212
# This is the shared library path variable.
19213
shlibpath_var=$shlibpath_var
19215
# Is shlibpath searched before the hard-coded library search path?
19216
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19218
# How to hardcode a shared library path into an executable.
19219
hardcode_action=$hardcode_action_F77
19221
# Whether we should hardcode library paths into libraries.
19222
hardcode_into_libs=$hardcode_into_libs
19224
# Flag to hardcode \$libdir into a binary during linking.
19225
# This must work even if \$libdir does not exist.
19226
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
19228
# If ld is used when linking, flag to hardcode \$libdir into
19229
# a binary during linking. This must work even if \$libdir does
19231
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
19233
# Whether we need a single -rpath flag with a separated argument.
19234
hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
19236
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19237
# resulting binary.
19238
hardcode_direct=$hardcode_direct_F77
19240
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19241
# resulting binary.
19242
hardcode_minus_L=$hardcode_minus_L_F77
19244
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19245
# the resulting binary.
19246
hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
19248
# Set to yes if building a shared library automatically hardcodes DIR into the library
19249
# and all subsequent libraries and executables linked against it.
19250
hardcode_automatic=$hardcode_automatic_F77
19252
# Variables whose values should be saved in libtool wrapper scripts and
19253
# restored at relink time.
19254
variables_saved_for_relink="$variables_saved_for_relink"
19256
# Whether libtool must link a program against all its dependency libraries.
19257
link_all_deplibs=$link_all_deplibs_F77
19259
# Compile-time system search path for libraries
19260
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19262
# Run-time system search path for libraries
19263
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19265
# Fix the shell variable \$srcfile for the compiler.
19266
fix_srcfile_path="$fix_srcfile_path_F77"
19268
# Set to yes if exported symbols are required.
19269
always_export_symbols=$always_export_symbols_F77
19271
# The commands to list exported symbols.
19272
export_symbols_cmds=$lt_export_symbols_cmds_F77
19274
# The commands to extract the exported symbol list from a shared archive.
19275
extract_expsyms_cmds=$lt_extract_expsyms_cmds
19277
# Symbols that should not be listed in the preloaded symbols.
19278
exclude_expsyms=$lt_exclude_expsyms_F77
19280
# Symbols that must always be exported.
19281
include_expsyms=$lt_include_expsyms_F77
19283
# ### END LIBTOOL TAG CONFIG: $tagname
19289
# If there is no Makefile yet, we rely on a make rule to execute
19290
# `config.status --recheck' to rerun these tests and create the
19291
# libtool script then.
19292
test -f Makefile && make "$ltmain"
19297
ac_cpp='$CPP $CPPFLAGS'
19298
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19299
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19300
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19310
if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
19313
# Source file extension for Java test sources.
19316
# Object file extension for compiled Java test sources.
19320
# Code to be used in simple compile tests
19321
lt_simple_compile_test_code="class foo {}\n"
19323
# Code to be used in simple link tests
19324
lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
19326
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
19328
# If no C compiler was specified, use CC.
19331
# Allow CC to be a program name with arguments.
19335
# Allow CC to be a program name with arguments.
19341
# GCJ did not exist at the time GCC didn't implicitly link libc in.
19342
archive_cmds_need_lc_GCJ=no
19345
lt_prog_compiler_no_builtin_flag_GCJ=
19347
if test "$GCC" = yes; then
19348
lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
19351
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
19352
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
19353
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
19354
$as_echo_n "(cached) " >&6
19356
lt_cv_prog_compiler_rtti_exceptions=no
19357
ac_outfile=conftest.$ac_objext
19358
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19359
lt_compiler_flag="-fno-rtti -fno-exceptions"
19360
# Insert the option either (1) after the last *FLAGS variable, or
19361
# (2) before a word containing "conftest.", or (3) at the end.
19362
# Note that $ac_compile itself does not contain backslashes and begins
19363
# with a dollar sign (not a hyphen), so the echo should work correctly.
19364
# The option is referenced via a variable to avoid confusing sed.
19365
lt_compile=`echo "$ac_compile" | $SED \
19366
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19367
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19368
-e 's:$: $lt_compiler_flag:'`
19369
(eval echo "\"\$as_me:19369: $lt_compile\"" >&5)
19370
(eval "$lt_compile" 2>conftest.err)
19372
cat conftest.err >&5
19373
echo "$as_me:19373: \$? = $ac_status" >&5
19374
if (exit $ac_status) && test -s "$ac_outfile"; then
19375
# The compiler can only warn and ignore the option if not recognized
19376
# So say no if there are warnings
19377
if test ! -s conftest.err; then
19378
lt_cv_prog_compiler_rtti_exceptions=yes
19384
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
19385
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
19387
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
19388
lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
19395
lt_prog_compiler_wl_GCJ=
19396
lt_prog_compiler_pic_GCJ=
19397
lt_prog_compiler_static_GCJ=
19399
{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
19400
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19402
if test "$GCC" = yes; then
19403
lt_prog_compiler_wl_GCJ='-Wl,'
19404
lt_prog_compiler_static_GCJ='-static'
19408
# All AIX code is PIC.
19409
if test "$host_cpu" = ia64; then
19410
# AIX 5 now supports IA64 processor
19411
lt_prog_compiler_static_GCJ='-Bstatic'
19416
# FIXME: we need at least 68020 code to build shared libraries, but
19417
# adding the `-m68020' flag to GCC prevents building anything better,
19419
lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
19422
beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19423
# PIC is the default for these OSes.
19426
mingw* | pw32* | os2*)
19427
# This hack is so that the source file can tell whether it is being
19428
# built for inclusion in a dll (and should export symbols for example).
19429
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
19432
darwin* | rhapsody*)
19433
# PIC is the default on this platform
19434
# Common symbols not allowed in MH_DYLIB files
19435
lt_prog_compiler_pic_GCJ='-fno-common'
19439
# Just because we use GCC doesn't mean we suddenly get shared libraries
19440
# on systems that don't support them.
19441
lt_prog_compiler_can_build_shared_GCJ=no
19446
if test -d /usr/nec; then
19447
lt_prog_compiler_pic_GCJ=-Kconform_pic
19452
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19453
# not for PA HP-UX.
19454
case "$host_cpu" in
19459
lt_prog_compiler_pic_GCJ='-fPIC'
19465
lt_prog_compiler_pic_GCJ='-fPIC'
19469
# PORTME Check for flag to pass linker flags through the system compiler.
19472
lt_prog_compiler_wl_GCJ='-Wl,'
19473
if test "$host_cpu" = ia64; then
19474
# AIX 5 now supports IA64 processor
19475
lt_prog_compiler_static_GCJ='-Bstatic'
19477
lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
19481
mingw* | pw32* | os2*)
19482
# This hack is so that the source file can tell whether it is being
19483
# built for inclusion in a dll (and should export symbols for example).
19484
lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
19487
hpux9* | hpux10* | hpux11*)
19488
lt_prog_compiler_wl_GCJ='-Wl,'
19489
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19490
# not for PA HP-UX.
19491
case "$host_cpu" in
19496
lt_prog_compiler_pic_GCJ='+Z'
19499
# Is there a better lt_prog_compiler_static that works with the bundled CC?
19500
lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
19503
irix5* | irix6* | nonstopux*)
19504
lt_prog_compiler_wl_GCJ='-Wl,'
19505
# PIC (with -KPIC) is the default.
19506
lt_prog_compiler_static_GCJ='-non_shared'
19510
lt_prog_compiler_pic_GCJ='-KPIC'
19511
lt_prog_compiler_static_GCJ='-Bstatic'
19517
lt_prog_compiler_wl_GCJ='-Wl,'
19518
lt_prog_compiler_pic_GCJ='-KPIC'
19519
lt_prog_compiler_static_GCJ='-static'
19522
lt_prog_compiler_wl_GCJ='-Wl,'
19523
# All Alpha code is PIC.
19524
lt_prog_compiler_static_GCJ='-non_shared'
19529
osf3* | osf4* | osf5*)
19530
lt_prog_compiler_wl_GCJ='-Wl,'
19531
# All OSF/1 code is PIC.
19532
lt_prog_compiler_static_GCJ='-non_shared'
19536
lt_prog_compiler_pic_GCJ='-Kpic'
19537
lt_prog_compiler_static_GCJ='-dn'
19541
lt_prog_compiler_wl_GCJ='-Wl,'
19542
lt_prog_compiler_pic_GCJ='-KPIC'
19543
lt_prog_compiler_static_GCJ='-Bstatic'
19547
lt_prog_compiler_wl_GCJ='-Qoption ld '
19548
lt_prog_compiler_pic_GCJ='-PIC'
19549
lt_prog_compiler_static_GCJ='-Bstatic'
19552
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19553
lt_prog_compiler_wl_GCJ='-Wl,'
19554
lt_prog_compiler_pic_GCJ='-KPIC'
19555
lt_prog_compiler_static_GCJ='-Bstatic'
19559
if test -d /usr/nec ;then
19560
lt_prog_compiler_pic_GCJ='-Kconform_pic'
19561
lt_prog_compiler_static_GCJ='-Bstatic'
19566
lt_prog_compiler_pic_GCJ='-pic'
19567
lt_prog_compiler_static_GCJ='-Bstatic'
19571
lt_prog_compiler_can_build_shared_GCJ=no
19576
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
19577
$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
19580
# Check to make sure the PIC flag actually works.
19582
if test -n "$lt_prog_compiler_pic_GCJ"; then
19584
{ $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
19585
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
19586
if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
19587
$as_echo_n "(cached) " >&6
19589
lt_prog_compiler_pic_works_GCJ=no
19590
ac_outfile=conftest.$ac_objext
19591
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19592
lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
19593
# Insert the option either (1) after the last *FLAGS variable, or
19594
# (2) before a word containing "conftest.", or (3) at the end.
19595
# Note that $ac_compile itself does not contain backslashes and begins
19596
# with a dollar sign (not a hyphen), so the echo should work correctly.
19597
# The option is referenced via a variable to avoid confusing sed.
19598
lt_compile=`echo "$ac_compile" | $SED \
19599
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19600
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19601
-e 's:$: $lt_compiler_flag:'`
19602
(eval echo "\"\$as_me:19602: $lt_compile\"" >&5)
19603
(eval "$lt_compile" 2>conftest.err)
19605
cat conftest.err >&5
19606
echo "$as_me:19606: \$? = $ac_status" >&5
19607
if (exit $ac_status) && test -s "$ac_outfile"; then
19608
# The compiler can only warn and ignore the option if not recognized
19609
# So say no if there are warnings
19610
if test ! -s conftest.err; then
19611
lt_prog_compiler_pic_works_GCJ=yes
19617
{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
19618
$as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
19620
if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
19621
case $lt_prog_compiler_pic_GCJ in
19623
*) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
19626
lt_prog_compiler_pic_GCJ=
19627
lt_prog_compiler_can_build_shared_GCJ=no
19632
# For platforms which do not support PIC, -DPIC is meaningless:
19634
lt_prog_compiler_pic_GCJ=
19637
lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
19641
{ $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19642
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
19643
if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
19644
$as_echo_n "(cached) " >&6
19646
lt_cv_prog_compiler_c_o_GCJ=no
19647
$rm -r conftest 2>/dev/null
19651
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19653
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
19654
# that will create temporary files in the current directory regardless of
19655
# the output directory. Thus, making CWD read-only will cause this test
19656
# to fail, enabling locking or at least warning the user not to do parallel
19660
lt_compiler_flag="-o out/conftest2.$ac_objext"
19661
# Insert the option either (1) after the last *FLAGS variable, or
19662
# (2) before a word containing "conftest.", or (3) at the end.
19663
# Note that $ac_compile itself does not contain backslashes and begins
19664
# with a dollar sign (not a hyphen), so the echo should work correctly.
19665
lt_compile=`echo "$ac_compile" | $SED \
19666
-e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
19667
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19668
-e 's:$: $lt_compiler_flag:'`
19669
(eval echo "\"\$as_me:19669: $lt_compile\"" >&5)
19670
(eval "$lt_compile" 2>out/conftest.err)
19672
cat out/conftest.err >&5
19673
echo "$as_me:19673: \$? = $ac_status" >&5
19674
if (exit $ac_status) && test -s out/conftest2.$ac_objext
19676
# The compiler can only warn and ignore the option if not recognized
19677
# So say no if there are warnings
19678
if test ! -s out/conftest.err; then
19679
lt_cv_prog_compiler_c_o_GCJ=yes
19683
$rm conftest* out/*
19690
{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
19691
$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
19694
hard_links="nottested"
19695
if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
19696
# do not overwrite the value of need_locks provided by the user
19697
{ $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19698
$as_echo_n "checking if we can lock with hard links... " >&6; }
19701
ln conftest.a conftest.b 2>/dev/null && hard_links=no
19703
ln conftest.a conftest.b 2>&5 || hard_links=no
19704
ln conftest.a conftest.b 2>/dev/null && hard_links=no
19705
{ $as_echo "$as_me:$LINENO: result: $hard_links" >&5
19706
$as_echo "$hard_links" >&6; }
19707
if test "$hard_links" = no; then
19708
{ $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19709
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19716
{ $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19717
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19720
allow_undefined_flag_GCJ=
19721
enable_shared_with_static_runtimes_GCJ=no
19723
archive_expsym_cmds_GCJ=
19724
old_archive_From_new_cmds_GCJ=
19725
old_archive_from_expsyms_cmds_GCJ=
19726
export_dynamic_flag_spec_GCJ=
19727
whole_archive_flag_spec_GCJ=
19728
thread_safe_flag_spec_GCJ=
19729
hardcode_libdir_flag_spec_GCJ=
19730
hardcode_libdir_flag_spec_ld_GCJ=
19731
hardcode_libdir_separator_GCJ=
19732
hardcode_direct_GCJ=no
19733
hardcode_minus_L_GCJ=no
19734
hardcode_shlibpath_var_GCJ=unsupported
19735
link_all_deplibs_GCJ=unknown
19736
hardcode_automatic_GCJ=no
19738
module_expsym_cmds_GCJ=
19739
always_export_symbols_GCJ=no
19740
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19741
# include_expsyms should be a list of space-separated symbols to be *always*
19742
# included in the symbol list
19743
include_expsyms_GCJ=
19744
# exclude_expsyms can be an extended regexp of symbols to exclude
19745
# it will be wrapped by ` (' and `)$', so one must not match beginning or
19746
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19747
# as well as any symbol that contains `d'.
19748
exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
19749
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19750
# platforms (ab)use it in PIC code, but their linkers get confused if
19751
# the symbol is explicitly referenced. Since portable code cannot
19752
# rely on this symbol name, it's probably fine to never include it in
19753
# preloaded symbol tables.
19754
extract_expsyms_cmds=
19757
cygwin* | mingw* | pw32*)
19758
# FIXME: the MSVC++ port hasn't been tested in a loooong time
19759
# When not using gcc, we currently assume that we are using
19760
# Microsoft Visual C++.
19761
if test "$GCC" != yes; then
19771
if test "$with_gnu_ld" = yes; then
19772
# If archive_cmds runs LD, not CC, wlarc should be empty
19775
# See if GNU ld supports shared libraries.
19777
aix3* | aix4* | aix5*)
19778
# On AIX/PPC, the GNU linker is very broken
19779
if test "$host_cpu" != ia64; then
19783
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
19784
*** to be unable to reliably create shared libraries on AIX.
19785
*** Therefore, libtool is disabling shared libraries support. If you
19786
*** really care for shared libraries, you may want to modify your PATH
19787
*** so that a non-GNU linker is found, and then restart.
19794
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)'
19795
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19796
hardcode_minus_L_GCJ=yes
19798
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19799
# that the semantics of dynamic libraries on AmigaOS, at least up
19800
# to version 4, is to share data among multiple programs linked
19801
# with the same dynamic library. Since this doesn't match the
19802
# behavior of shared libraries on other platforms, we can't use
19808
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19809
allow_undefined_flag_GCJ=unsupported
19810
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19811
# support --undefined. This deserves some investigation. FIXME
19812
archive_cmds_GCJ='$CC -nostart $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
19818
cygwin* | mingw* | pw32*)
19819
# _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
19820
# as there is no search path for DLLs.
19821
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19822
allow_undefined_flag_GCJ=no
19823
always_export_symbols_GCJ=no
19824
enable_shared_with_static_runtimes_GCJ=yes
19825
export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19827
if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19828
archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19829
# If the export-symbols file already is a .def file (1st line
19830
# is EXPORTS), use it as is; otherwise, prepend...
19831
archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19832
cp $export_symbols $output_objdir/$soname.def;
19834
echo EXPORTS > $output_objdir/$soname.def;
19835
cat $export_symbols >> $output_objdir/$soname.def;
19837
$CC -shared $output_objdir/$soname.def $compiler_flags $libobjs $deplibs -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19844
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19845
archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19848
archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
19849
archive_expsym_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19854
if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19858
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
19859
*** create shared libraries on Solaris systems. Therefore, libtool
19860
*** is disabling shared libraries support. We urge you to upgrade GNU
19861
*** binutils to release 2.9.1 or newer. Another option is to modify
19862
*** your PATH or compiler configuration so that the native linker is
19863
*** used, and then restart.
19866
elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19867
archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
19868
archive_expsym_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19875
archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19877
hardcode_direct_GCJ=yes
19878
hardcode_shlibpath_var_GCJ=no
19882
if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19883
archive_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname -o $lib'
19884
archive_expsym_cmds_GCJ='$CC -shared $compiler_flags $libobjs $deplibs ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19891
if test "$ld_shlibs_GCJ" = yes; then
19892
runpath_var=LD_RUN_PATH
19893
hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
19894
export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
19895
# ancient GNU ld didn't support --whole-archive et. al.
19896
if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19897
whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19899
whole_archive_flag_spec_GCJ=
19903
# PORTME fill in a description of your system's linker (not GNU ld)
19906
allow_undefined_flag_GCJ=unsupported
19907
always_export_symbols_GCJ=yes
19908
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'
19909
# Note: this linker hardcodes the directories in LIBPATH if there
19910
# are no directories specified by -L.
19911
hardcode_minus_L_GCJ=yes
19912
if test "$GCC" = yes && test -z "$link_static_flag"; then
19913
# Neither direct hardcoding nor static linking is supported with a
19915
hardcode_direct_GCJ=unsupported
19920
if test "$host_cpu" = ia64; then
19921
# On IA64, the linker does run time linking by default, so we don't
19922
# have to do anything special.
19923
aix_use_runtimelinking=no
19924
exp_sym_flag='-Bexport'
19927
# If we're using GNU nm, then we don't want the "-C" option.
19928
# -C means demangle to AIX nm, but means don't demangle with GNU nm
19929
if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19930
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'
19932
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'
19935
# KDE requires run time linking. Make it the default.
19936
aix_use_runtimelinking=yes
19937
exp_sym_flag='-bexport'
19938
no_entry_flag='-bnoentry'
19941
# When large executables or shared objects are built, AIX ld can
19942
# have problems creating the table of contents. If linking a library
19943
# or program results in "error TOC overflow" add -mminimal-toc to
19944
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19945
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19947
archive_cmds_GCJ=''
19948
hardcode_direct_GCJ=yes
19949
hardcode_libdir_separator_GCJ=':'
19950
link_all_deplibs_GCJ=yes
19952
if test "$GCC" = yes; then
19953
case $host_os in aix4.012|aix4.012.*)
19954
# We only want to do this on AIX 4.2 and lower, the check
19955
# below for broken collect2 doesn't work under 4.3+
19956
collect2name=`${CC} -print-prog-name=collect2`
19957
if test -f "$collect2name" && \
19958
strings "$collect2name" | grep resolve_lib_name >/dev/null
19960
# We have reworked collect2
19961
hardcode_direct_GCJ=yes
19963
# We have old collect2
19964
hardcode_direct_GCJ=unsupported
19965
# It fails to find uninstalled libraries when the uninstalled
19966
# path is not listed in the libpath. Setting hardcode_minus_L
19967
# to unsupported forces relinking
19968
hardcode_minus_L_GCJ=yes
19969
hardcode_libdir_flag_spec_GCJ='-L$libdir'
19970
hardcode_libdir_separator_GCJ=
19973
shared_flag='-shared'
19976
if test "$host_cpu" = ia64; then
19977
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19978
# chokes on -Wl,-G. The following line is correct:
19981
if test "$aix_use_runtimelinking" = yes; then
19982
shared_flag='-qmkshrobj ${wl}-G'
19984
shared_flag='-qmkshrobj'
19989
# Let the compiler handle the export list.
19990
always_export_symbols_GCJ=no
19991
if test "$aix_use_runtimelinking" = yes; then
19992
# Warning - without using the other runtime loading flags (-brtl),
19993
# -berok will link without error, but may produce a broken library.
19994
allow_undefined_flag_GCJ='-berok'
19995
# Determine the default libpath from the value encoded in an empty executable.
19996
cat >conftest.$ac_ext <<_ACEOF
19999
cat confdefs.h >>conftest.$ac_ext
20000
cat >>conftest.$ac_ext <<_ACEOF
20001
/* end confdefs.h. */
20011
rm -f conftest.$ac_objext conftest$ac_exeext
20012
if { (ac_try="$ac_link"
20013
case "(($ac_try" in
20014
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20015
*) ac_try_echo=$ac_try;;
20017
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20018
$as_echo "$ac_try_echo") >&5
20019
(eval "$ac_link") 2>conftest.er1
20021
grep -v '^ *+' conftest.er1 >conftest.err
20023
cat conftest.err >&5
20024
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20025
(exit $ac_status); } && {
20026
test -z "$ac_c_werror_flag" ||
20027
test ! -s conftest.err
20028
} && test -s conftest$ac_exeext && {
20029
test "$cross_compiling" = yes ||
20030
$as_test_x conftest$ac_exeext
20033
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20035
# Check for a 64-bit object if we didn't find anything.
20036
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; }
20039
$as_echo "$as_me: failed program was:" >&5
20040
sed 's/^/| /' conftest.$ac_ext >&5
20045
rm -rf conftest.dSYM
20046
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20047
conftest$ac_exeext conftest.$ac_ext
20048
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20050
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
20051
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"
20052
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"
20054
if test "$host_cpu" = ia64; then
20055
hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
20056
allow_undefined_flag_GCJ="-z nodefs"
20057
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"
20059
# Determine the default libpath from the value encoded in an empty executable.
20060
cat >conftest.$ac_ext <<_ACEOF
20063
cat confdefs.h >>conftest.$ac_ext
20064
cat >>conftest.$ac_ext <<_ACEOF
20065
/* end confdefs.h. */
20075
rm -f conftest.$ac_objext conftest$ac_exeext
20076
if { (ac_try="$ac_link"
20077
case "(($ac_try" in
20078
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20079
*) ac_try_echo=$ac_try;;
20081
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20082
$as_echo "$ac_try_echo") >&5
20083
(eval "$ac_link") 2>conftest.er1
20085
grep -v '^ *+' conftest.er1 >conftest.err
20087
cat conftest.err >&5
20088
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089
(exit $ac_status); } && {
20090
test -z "$ac_c_werror_flag" ||
20091
test ! -s conftest.err
20092
} && test -s conftest$ac_exeext && {
20093
test "$cross_compiling" = yes ||
20094
$as_test_x conftest$ac_exeext
20097
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
20099
# Check for a 64-bit object if we didn't find anything.
20100
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; }
20103
$as_echo "$as_me: failed program was:" >&5
20104
sed 's/^/| /' conftest.$ac_ext >&5
20109
rm -rf conftest.dSYM
20110
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20111
conftest$ac_exeext conftest.$ac_ext
20112
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
20114
hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
20115
# Warning - without using the other run time loading flags,
20116
# -berok will link without error, but may produce a broken library.
20117
no_undefined_flag_GCJ=' ${wl}-bernotok'
20118
allow_undefined_flag_GCJ=' ${wl}-berok'
20119
# -bexpall does not export symbols beginning with underscore (_)
20120
always_export_symbols_GCJ=yes
20121
# Exported symbols can be pulled into shared objects from archives
20122
whole_archive_flag_spec_GCJ=' '
20123
archive_cmds_need_lc_GCJ=yes
20124
# This is similar to how AIX traditionally builds it's shared libraries.
20125
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'
20131
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)'
20132
hardcode_libdir_flag_spec_GCJ='-L$libdir'
20133
hardcode_minus_L_GCJ=yes
20134
# see comment about different semantics on the GNU ld section
20139
export_dynamic_flag_spec_GCJ=-rdynamic
20142
cygwin* | mingw* | pw32*)
20143
# When not using gcc, we currently assume that we are using
20144
# Microsoft Visual C++.
20145
# hardcode_libdir_flag_spec is actually meaningless, as there is
20146
# no search path for DLLs.
20147
hardcode_libdir_flag_spec_GCJ=' '
20148
allow_undefined_flag_GCJ=no
20149
# Tell ltmain to make .lib files, not .a files.
20151
# Tell ltmain to make .dll files, not .so files.
20153
# FIXME: Setting linknames here is a bad hack.
20154
archive_cmds_GCJ='$CC -o $lib $compiler_flags $libobjs `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
20155
# The linker will automatically build a .lib file if we build a DLL.
20156
old_archive_From_new_cmds_GCJ='true'
20157
# FIXME: Should let the user specify the lib program.
20158
old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
20159
fix_srcfile_path='`cygpath -w "$srcfile"`'
20160
enable_shared_with_static_runtimes_GCJ=yes
20163
darwin* | rhapsody*)
20164
if test "$GXX" = yes ; then
20165
archive_cmds_need_lc_GCJ=no
20167
rhapsody* | darwin1.[012])
20168
allow_undefined_flag_GCJ='-Wl,-undefined -Wl,suppress'
20171
if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
20172
allow_undefined_flag_GCJ='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
20174
case ${MACOSX_DEPLOYMENT_TARGET} in
20176
allow_undefined_flag_GCJ='-Wl,-flat_namespace -Wl,-undefined -Wl,suppress'
20179
allow_undefined_flag_GCJ='-Wl,-undefined -Wl,dynamic_lookup'
20185
lt_int_apple_cc_single_mod=no
20186
output_verbose_link_cmd='echo'
20187
if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
20188
lt_int_apple_cc_single_mod=yes
20190
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
20191
archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $compiler_flags $libobjs $deplibs -install_name $rpath/$soname $verstring'
20193
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'
20195
module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $compiler_flags $libobjs $deplibs'
20196
# Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
20197
if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
20198
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}'
20200
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}'
20202
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}'
20203
hardcode_direct_GCJ=no
20204
hardcode_automatic_GCJ=yes
20205
hardcode_shlibpath_var_GCJ=unsupported
20206
whole_archive_flag_spec_GCJ='-all_load $convenience'
20207
link_all_deplibs_GCJ=yes
20214
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20215
hardcode_libdir_flag_spec_GCJ='-L$libdir'
20216
hardcode_shlibpath_var_GCJ=no
20223
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
20224
# support. Future versions do this automatically, but an explicit c++rt0.o
20225
# does not break anything, and helps significantly (at the cost of a little
20228
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
20229
hardcode_libdir_flag_spec_GCJ='-R$libdir'
20230
hardcode_direct_GCJ=yes
20231
hardcode_shlibpath_var_GCJ=no
20234
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
20236
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20237
hardcode_direct_GCJ=yes
20238
hardcode_minus_L_GCJ=yes
20239
hardcode_shlibpath_var_GCJ=no
20242
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
20243
freebsd* | kfreebsd*-gnu)
20244
archive_cmds_GCJ='$CC -shared -o $lib $compiler_flags $libobjs $deplibs'
20245
hardcode_libdir_flag_spec_GCJ='-R$libdir'
20246
hardcode_direct_GCJ=yes
20247
hardcode_shlibpath_var_GCJ=no
20251
if test "$GCC" = yes; then
20252
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'
20254
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'
20256
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20257
hardcode_libdir_separator_GCJ=:
20258
hardcode_direct_GCJ=yes
20260
# hardcode_minus_L: Not really in the search PATH,
20261
# but as the default location of the library.
20262
hardcode_minus_L_GCJ=yes
20263
export_dynamic_flag_spec_GCJ='${wl}-E'
20267
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
20268
case "$host_cpu" in
20270
archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
20273
archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $compiler_flags $libobjs $deplibs'
20277
case "$host_cpu" in
20279
archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
20282
archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
20286
if test "$with_gnu_ld" = no; then
20287
case "$host_cpu" in
20289
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20290
hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
20291
hardcode_libdir_separator_GCJ=:
20292
hardcode_direct_GCJ=no
20293
hardcode_shlibpath_var_GCJ=no
20296
hardcode_libdir_flag_spec_GCJ='-L$libdir'
20297
hardcode_direct_GCJ=no
20298
hardcode_shlibpath_var_GCJ=no
20300
# hardcode_minus_L: Not really in the search PATH,
20301
# but as the default location of the library.
20302
hardcode_minus_L_GCJ=yes
20305
hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
20306
hardcode_libdir_separator_GCJ=:
20307
hardcode_direct_GCJ=yes
20308
export_dynamic_flag_spec_GCJ='${wl}-E'
20310
# hardcode_minus_L: Not really in the search PATH,
20311
# but as the default location of the library.
20312
hardcode_minus_L_GCJ=yes
20318
irix5* | irix6* | nonstopux*)
20319
if test "$GCC" = yes; then
20320
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'
20322
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'
20323
hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
20325
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20326
hardcode_libdir_separator_GCJ=:
20327
link_all_deplibs_GCJ=yes
20331
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20332
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
20334
archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
20336
hardcode_libdir_flag_spec_GCJ='-R$libdir'
20337
hardcode_direct_GCJ=yes
20338
hardcode_shlibpath_var_GCJ=no
20342
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20343
hardcode_direct_GCJ=yes
20344
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20345
hardcode_libdir_separator_GCJ=:
20346
hardcode_shlibpath_var_GCJ=no
20350
hardcode_direct_GCJ=yes
20351
hardcode_shlibpath_var_GCJ=no
20352
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20353
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
20354
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20355
export_dynamic_flag_spec_GCJ='${wl}-E'
20358
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
20359
archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20360
hardcode_libdir_flag_spec_GCJ='-R$libdir'
20363
archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $compiler_flags $libobjs $deplibs'
20364
hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
20371
hardcode_libdir_flag_spec_GCJ='-L$libdir'
20372
hardcode_minus_L_GCJ=yes
20373
allow_undefined_flag_GCJ=unsupported
20374
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'
20375
old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20379
if test "$GCC" = yes; then
20380
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
20381
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'
20383
allow_undefined_flag_GCJ=' -expect_unresolved \*'
20384
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'
20386
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20387
hardcode_libdir_separator_GCJ=:
20390
osf4* | osf5*) # as osf3* with the addition of -msym flag
20391
if test "$GCC" = yes; then
20392
allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
20393
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'
20394
hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
20396
allow_undefined_flag_GCJ=' -expect_unresolved \*'
20397
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'
20398
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~
20399
$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'
20401
# Both c and cxx compiler support -rpath directly
20402
hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
20404
hardcode_libdir_separator_GCJ=:
20408
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20409
hardcode_shlibpath_var_GCJ=no
20410
export_dynamic_flag_spec_GCJ='${wl}-Bexport'
20411
runpath_var=LD_RUN_PATH
20412
hardcode_runpath_var=yes
20416
no_undefined_flag_GCJ=' -z text'
20417
if test "$GCC" = yes; then
20418
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
20419
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20420
$CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs~$rm $lib.exp'
20422
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20423
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20424
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20426
hardcode_libdir_flag_spec_GCJ='-R$libdir'
20427
hardcode_shlibpath_var_GCJ=no
20429
solaris2.[0-5] | solaris2.[0-5].*) ;;
20430
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
20431
whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
20433
link_all_deplibs_GCJ=yes
20437
if test "x$host_vendor" = xsequent; then
20438
# Use $CC to link under sequent, because it throws in some extra .o
20439
# files that make .init and .fini sections work.
20440
archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $compiler_flags $libobjs $deplibs'
20442
archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20444
hardcode_libdir_flag_spec_GCJ='-L$libdir'
20445
hardcode_direct_GCJ=yes
20446
hardcode_minus_L_GCJ=yes
20447
hardcode_shlibpath_var_GCJ=no
20451
case $host_vendor in
20453
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20454
hardcode_direct_GCJ=yes # is this really true???
20457
## LD is ld it makes a PLAMLIB
20458
## CC just makes a GrossModule.
20459
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20460
reload_cmds_GCJ='$CC -r -o $output$reload_objs'
20461
hardcode_direct_GCJ=no
20464
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20465
hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
20468
runpath_var='LD_RUN_PATH'
20469
hardcode_shlibpath_var_GCJ=no
20473
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20474
hardcode_shlibpath_var_GCJ=no
20475
export_dynamic_flag_spec_GCJ='-Bexport'
20479
if test -d /usr/nec; then
20480
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20481
hardcode_shlibpath_var_GCJ=no
20482
runpath_var=LD_RUN_PATH
20483
hardcode_runpath_var=yes
20489
archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20490
hardcode_direct_GCJ=yes
20491
hardcode_minus_L_GCJ=no
20492
hardcode_shlibpath_var_GCJ=no
20493
hardcode_runpath_var=yes
20494
runpath_var=LD_RUN_PATH
20497
sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
20498
no_undefined_flag_GCJ='${wl}-z ${wl}text'
20499
if test "$GCC" = yes; then
20500
archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
20502
archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $compiler_flags $libobjs $deplibs'
20504
runpath_var='LD_RUN_PATH'
20505
hardcode_shlibpath_var_GCJ=no
20509
no_undefined_flag_GCJ=' -z text'
20510
# $CC -shared without GNU ld will not create a library from C++
20511
# object files and a static libstdc++, better avoid it by now
20512
archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20513
archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20514
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20515
hardcode_libdir_flag_spec_GCJ=
20516
hardcode_shlibpath_var_GCJ=no
20517
runpath_var='LD_RUN_PATH'
20521
archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20522
hardcode_libdir_flag_spec_GCJ='-L$libdir'
20523
hardcode_shlibpath_var_GCJ=no
20532
{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
20533
$as_echo "$ld_shlibs_GCJ" >&6; }
20534
test "$ld_shlibs_GCJ" = no && can_build_shared=no
20536
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20537
if test "$GCC" = yes; then
20538
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20542
# Do we need to explicitly link libc?
20544
case "x$archive_cmds_need_lc_GCJ" in
20546
# Assume -lc should be added
20547
archive_cmds_need_lc_GCJ=yes
20549
if test "$enable_shared" = yes && test "$GCC" = yes; then
20550
case $archive_cmds_GCJ in
20552
# FIXME: we may have to deal with multi-command sequences.
20555
# Test whether the compiler implicitly links with -lc since on some
20556
# systems, -lgcc has to come before -lc. If gcc already passes -lc
20557
# to ld, don't add -lc before -lgcc.
20558
{ $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20559
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20561
printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20563
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20564
(eval $ac_compile) 2>&5
20566
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567
(exit $ac_status); } 2>conftest.err; then
20570
libobjs=conftest.$ac_objext
20572
wl=$lt_prog_compiler_wl_GCJ
20578
lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
20579
allow_undefined_flag_GCJ=
20580
if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20581
(eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
20583
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584
(exit $ac_status); }
20586
archive_cmds_need_lc_GCJ=no
20588
archive_cmds_need_lc_GCJ=yes
20590
allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
20592
cat conftest.err 1>&5
20595
{ $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
20596
$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
20603
{ $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20604
$as_echo_n "checking dynamic linker characteristics... " >&6; }
20605
library_names_spec=
20606
libname_spec='lib$name'
20610
postuninstall_cmds=
20614
shlibpath_overrides_runpath=unknown
20616
dynamic_linker="$host_os ld.so"
20617
sys_lib_dlsearch_path_spec="/lib /usr/lib"
20618
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
20619
need_lib_prefix=unknown
20620
hardcode_into_libs=no
20622
# when you set need_version to no, make sure it does not cause -set_version
20623
# flags to be left without arguments
20624
need_version=unknown
20629
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20630
shlibpath_var=LIBPATH
20632
# AIX 3 has no versioning support, so we append a major version to the name.
20633
soname_spec='${libname}${release}${shared_ext}$major'
20640
hardcode_into_libs=yes
20641
if test "$host_cpu" = ia64; then
20642
# AIX 5 supports IA64
20643
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20644
shlibpath_var=LD_LIBRARY_PATH
20646
# With GCC up to 2.95.x, collect2 would create an import file
20647
# for dependence libraries. The import file would start with
20648
# the line `#! .'. This would cause the generated library to
20649
# depend on `.', always an invalid library. This was fixed in
20650
# development snapshots of GCC prior to 3.0.
20652
aix4 | aix4.[01] | aix4.[01].*)
20653
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20655
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
20658
can_build_shared=no
20662
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20663
# soname into executable. Probably we can add versioning support to
20664
# collect2, so additional links can be useful in future.
20665
if test "$aix_use_runtimelinking" = yes; then
20666
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
20667
# instead of lib<name>.a to let people know that these are not
20668
# typical AIX shared libraries.
20669
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20671
# We preserve .a as extension for shared libraries through AIX4.2
20672
# and later when we are not doing run time linking.
20673
library_names_spec='${libname}${release}.a $libname.a'
20674
soname_spec='${libname}${release}${shared_ext}$major'
20676
shlibpath_var=LIBPATH
20681
library_names_spec='$libname.ixlibrary $libname.a'
20682
# Create ${libname}_ixlibrary.a entries in /sys/libs.
20683
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'
20687
library_names_spec='${libname}${shared_ext}'
20688
dynamic_linker="$host_os ld.so"
20689
shlibpath_var=LIBRARY_PATH
20695
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20696
soname_spec='${libname}${release}${shared_ext}$major'
20697
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20698
shlibpath_var=LD_LIBRARY_PATH
20699
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20700
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20701
# the default ld.so.conf also contains /usr/contrib/lib and
20702
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20703
# libtool to hard-code these into programs
20706
cygwin* | mingw* | pw32*)
20707
version_type=windows
20712
case $GCC,$host_os in
20713
yes,cygwin* | yes,mingw* | yes,pw32*)
20714
library_names_spec='$libname.dll.a'
20715
# DLL is installed to $(libdir)/../bin by postinstall_cmds
20716
postinstall_cmds='base_file=`basename \${file}`~
20717
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20718
dldir=$destdir/`dirname \$dlpath`~
20719
test -d \$dldir || mkdir -p \$dldir~
20720
$install_prog $dir/$dlname \$dldir/$dlname'
20721
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20722
dlpath=$dir/\$dldll~
20724
shlibpath_overrides_runpath=yes
20728
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
20729
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20730
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20733
# MinGW DLLs use traditional 'lib' prefix
20734
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20735
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20736
if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
20737
# It is most probably a Windows format PATH printed by
20738
# mingw gcc, but we are running on Cygwin. Gcc prints its search
20739
# path with ; separators, and with drive letters. We can handle the
20740
# drive letters (cygwin fileutils understands them), so leave them,
20741
# especially as we might pass files found there to a mingw objdump,
20742
# which wouldn't understand a cygwinified path. Ahh.
20743
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20745
sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20749
# pw32 DLLs use 'pw' prefix rather than 'lib'
20750
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20756
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20759
dynamic_linker='Win32 ld.exe'
20760
# FIXME: first we should search . and the directory the executable is in
20764
darwin* | rhapsody*)
20765
dynamic_linker="$host_os dyld"
20766
version_type=darwin
20769
library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20770
soname_spec='${libname}${release}${major}$shared_ext'
20771
shlibpath_overrides_runpath=yes
20772
shlibpath_var=DYLD_LIBRARY_PATH
20773
shrext='$(test .$module = .yes && echo .so || echo .dylib)'
20774
# Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20775
if test "$GCC" = yes; then
20776
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"`
20778
sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20780
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20787
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20788
soname_spec='${libname}${release}${shared_ext}$major'
20789
shlibpath_var=LD_LIBRARY_PATH
20800
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20801
soname_spec='${libname}${release}${shared_ext}$major'
20802
shlibpath_var=LD_LIBRARY_PATH
20803
shlibpath_overrides_runpath=no
20804
hardcode_into_libs=yes
20805
dynamic_linker='GNU ld.so'
20809
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20810
version_type=freebsd-$objformat
20811
case $version_type in
20813
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20818
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20822
shlibpath_var=LD_LIBRARY_PATH
20825
shlibpath_overrides_runpath=yes
20827
freebsd3.01* | freebsdelf3.01*)
20828
shlibpath_overrides_runpath=yes
20829
hardcode_into_libs=yes
20832
shlibpath_overrides_runpath=no
20833
hardcode_into_libs=yes
20842
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20843
soname_spec='${libname}${release}${shared_ext}$major'
20844
shlibpath_var=LD_LIBRARY_PATH
20845
hardcode_into_libs=yes
20848
hpux9* | hpux10* | hpux11*)
20849
# Give a soname corresponding to the major version so that dld.sl refuses to
20850
# link against other versions.
20854
case "$host_cpu" in
20857
hardcode_into_libs=yes
20858
dynamic_linker="$host_os dld.so"
20859
shlibpath_var=LD_LIBRARY_PATH
20860
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20861
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20862
soname_spec='${libname}${release}${shared_ext}$major'
20863
if test "X$HPUX_IA64_MODE" = X32; then
20864
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20866
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20868
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20872
hardcode_into_libs=yes
20873
dynamic_linker="$host_os dld.sl"
20874
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20875
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20876
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20877
soname_spec='${libname}${release}${shared_ext}$major'
20878
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20879
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20883
dynamic_linker="$host_os dld.sl"
20884
shlibpath_var=SHLIB_PATH
20885
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20886
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20887
soname_spec='${libname}${release}${shared_ext}$major'
20890
# HP-UX runs *really* slowly unless shared libraries are mode 555.
20891
postinstall_cmds='chmod 555 $lib'
20894
irix5* | irix6* | nonstopux*)
20896
nonstopux*) version_type=nonstopux ;;
20898
if test "$lt_cv_prog_gnu_ld" = yes; then
20906
soname_spec='${libname}${release}${shared_ext}$major'
20907
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20909
irix5* | nonstopux*)
20910
libsuff= shlibsuff=
20913
case $LD in # libtool.m4 will add one of these switches to LD
20914
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20915
libsuff= shlibsuff= libmagic=32-bit;;
20916
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20917
libsuff=32 shlibsuff=N32 libmagic=N32;;
20918
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20919
libsuff=64 shlibsuff=64 libmagic=64-bit;;
20920
*) libsuff= shlibsuff= libmagic=never-match;;
20924
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20925
shlibpath_overrides_runpath=no
20926
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20927
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20928
hardcode_into_libs=yes
20931
# No shared lib support for Linux oldld, aout, or coff.
20932
linux*oldld* | linux*aout* | linux*coff*)
20936
# This must be Linux ELF.
20941
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20942
soname_spec='${libname}${release}${shared_ext}$major'
20943
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20945
if test "x$LINUX_64_MODE" = x64; then
20946
# Some platforms are per default 64-bit, so there's no /lib64
20947
if test -d /lib64 -a ! -h /lib64; then
20951
shlibpath_var=LD_LIBRARY_PATH
20952
shlibpath_overrides_runpath=no
20953
sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
20954
sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
20955
# This implies no fast_install, which is unacceptable.
20956
# Some rework will be needed to allow for fast_install
20957
# before this can be enabled.
20958
hardcode_into_libs=yes
20960
# We used to test for /lib/ld.so.1 and disable shared libraries on
20961
# powerpc, because MkLinux only supported shared libraries with the
20962
# GNU dynamic linker. Since this was broken with cross compilers,
20963
# most powerpc-linux boxes support dynamic linking these days and
20964
# people can always --disable-shared, the test was removed, and we
20965
# assume the GNU/Linux dynamic linker is in use.
20966
dynamic_linker='GNU/Linux ld.so'
20973
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20974
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20975
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20976
dynamic_linker='NetBSD (a.out) ld.so'
20978
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
20979
soname_spec='${libname}${release}${shared_ext}$major'
20980
dynamic_linker='NetBSD ld.elf_so'
20982
shlibpath_var=LD_LIBRARY_PATH
20983
shlibpath_overrides_runpath=yes
20984
hardcode_into_libs=yes
20989
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20990
shlibpath_var=LD_LIBRARY_PATH
20991
shlibpath_overrides_runpath=yes
20998
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20999
soname_spec='${libname}${release}${shared_ext}$major'
21000
shlibpath_var=LD_LIBRARY_PATH
21001
shlibpath_overrides_runpath=yes
21008
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21009
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
21010
shlibpath_var=LD_LIBRARY_PATH
21011
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21013
openbsd2.[89] | openbsd2.[89].*)
21014
shlibpath_overrides_runpath=no
21017
shlibpath_overrides_runpath=yes
21021
shlibpath_overrides_runpath=yes
21026
libname_spec='$name'
21029
library_names_spec='$libname${shared_ext} $libname.a'
21030
dynamic_linker='OS/2 ld.exe'
21031
shlibpath_var=LIBPATH
21034
osf3* | osf4* | osf5*)
21038
soname_spec='${libname}${release}${shared_ext}$major'
21039
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21040
shlibpath_var=LD_LIBRARY_PATH
21041
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21042
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21047
soname_spec='${libname}${release}${shared_ext}$major'
21048
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21049
shlibpath_var=LD_LIBRARY_PATH
21056
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21057
soname_spec='${libname}${release}${shared_ext}$major'
21058
shlibpath_var=LD_LIBRARY_PATH
21059
shlibpath_overrides_runpath=yes
21060
hardcode_into_libs=yes
21061
# ldd complains unless libraries are executable
21062
postinstall_cmds='chmod +x $lib'
21067
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21068
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21069
shlibpath_var=LD_LIBRARY_PATH
21070
shlibpath_overrides_runpath=yes
21071
if test "$with_gnu_ld" = yes; then
21077
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21079
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21080
soname_spec='${libname}${release}${shared_ext}$major'
21081
shlibpath_var=LD_LIBRARY_PATH
21082
case $host_vendor in
21084
shlibpath_overrides_runpath=no
21086
export_dynamic_flag_spec='${wl}-Blargedynsym'
21087
runpath_var=LD_RUN_PATH
21095
shlibpath_overrides_runpath=no
21096
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21102
if test -d /usr/nec ;then
21104
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21105
soname_spec='$libname${shared_ext}.$major'
21106
shlibpath_var=LD_LIBRARY_PATH
21112
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21113
soname_spec='${libname}${release}${shared_ext}$major'
21114
shlibpath_var=LD_LIBRARY_PATH
21121
{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
21122
$as_echo "$dynamic_linker" >&6; }
21123
test "$dynamic_linker" = no && can_build_shared=no
21125
{ $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
21126
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21127
hardcode_action_GCJ=
21128
if test -n "$hardcode_libdir_flag_spec_GCJ" || \
21129
test -n "$runpath_var GCJ" || \
21130
test "X$hardcode_automatic_GCJ"="Xyes" ; then
21132
# We can hardcode non-existant directories.
21133
if test "$hardcode_direct_GCJ" != no &&
21134
# If the only mechanism to avoid hardcoding is shlibpath_var, we
21135
# have to relink, otherwise we might link with an installed library
21136
# when we should be linking with a yet-to-be-installed one
21137
## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
21138
test "$hardcode_minus_L_GCJ" != no; then
21139
# Linking always hardcodes the temporary library directory.
21140
hardcode_action_GCJ=relink
21142
# We can link without hardcoding, and we can hardcode nonexisting dirs.
21143
hardcode_action_GCJ=immediate
21146
# We cannot hardcode anything, or else we can only hardcode existing
21148
hardcode_action_GCJ=unsupported
21150
{ $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
21151
$as_echo "$hardcode_action_GCJ" >&6; }
21153
if test "$hardcode_action_GCJ" = relink; then
21154
# Fast installation is not supported
21155
enable_fast_install=no
21156
elif test "$shlibpath_overrides_runpath" = yes ||
21157
test "$enable_shared" = no; then
21158
# Fast installation is not necessary
21159
enable_fast_install=needless
21164
{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
21165
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
21166
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
21167
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
21168
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
21169
{ $as_echo "$as_me:$LINENO: result: yes" >&5
21170
$as_echo "yes" >&6; }
21172
# FIXME - insert some real tests, host_os isn't really good enough
21175
if test -n "$STRIP" ; then
21176
striplib="$STRIP -x"
21177
{ $as_echo "$as_me:$LINENO: result: yes" >&5
21178
$as_echo "yes" >&6; }
21180
{ $as_echo "$as_me:$LINENO: result: no" >&5
21181
$as_echo "no" >&6; }
21185
{ $as_echo "$as_me:$LINENO: result: no" >&5
21186
$as_echo "no" >&6; }
21191
if test "x$enable_dlopen" != xyes; then
21192
enable_dlopen=unknown
21193
enable_dlopen_self=unknown
21194
enable_dlopen_self_static=unknown
21201
lt_cv_dlopen="load_add_on"
21203
lt_cv_dlopen_self=yes
21207
lt_cv_dlopen="LoadLibrary"
21212
lt_cv_dlopen="dlopen"
21217
# if libdl is installed we need to link against it
21218
{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21219
$as_echo_n "checking for dlopen in -ldl... " >&6; }
21220
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21221
$as_echo_n "(cached) " >&6
21223
ac_check_lib_save_LIBS=$LIBS
21225
cat >conftest.$ac_ext <<_ACEOF
21228
cat confdefs.h >>conftest.$ac_ext
21229
cat >>conftest.$ac_ext <<_ACEOF
21230
/* end confdefs.h. */
21232
/* Override any GCC internal prototype to avoid an error.
21233
Use char because int might match the return type of a GCC
21234
builtin and then its argument prototype would still apply. */
21247
rm -f conftest.$ac_objext conftest$ac_exeext
21248
if { (ac_try="$ac_link"
21249
case "(($ac_try" in
21250
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21251
*) ac_try_echo=$ac_try;;
21253
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21254
$as_echo "$ac_try_echo") >&5
21255
(eval "$ac_link") 2>conftest.er1
21257
grep -v '^ *+' conftest.er1 >conftest.err
21259
cat conftest.err >&5
21260
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261
(exit $ac_status); } && {
21262
test -z "$ac_c_werror_flag" ||
21263
test ! -s conftest.err
21264
} && test -s conftest$ac_exeext && {
21265
test "$cross_compiling" = yes ||
21266
$as_test_x conftest$ac_exeext
21268
ac_cv_lib_dl_dlopen=yes
21270
$as_echo "$as_me: failed program was:" >&5
21271
sed 's/^/| /' conftest.$ac_ext >&5
21273
ac_cv_lib_dl_dlopen=no
21276
rm -rf conftest.dSYM
21277
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21278
conftest$ac_exeext conftest.$ac_ext
21279
LIBS=$ac_check_lib_save_LIBS
21281
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21282
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
21283
if test $ac_cv_lib_dl_dlopen = yes; then
21284
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21287
lt_cv_dlopen="dyld"
21289
lt_cv_dlopen_self=yes
21296
{ $as_echo "$as_me:$LINENO: checking for shl_load" >&5
21297
$as_echo_n "checking for shl_load... " >&6; }
21298
if test "${ac_cv_func_shl_load+set}" = set; then
21299
$as_echo_n "(cached) " >&6
21301
cat >conftest.$ac_ext <<_ACEOF
21304
cat confdefs.h >>conftest.$ac_ext
21305
cat >>conftest.$ac_ext <<_ACEOF
21306
/* end confdefs.h. */
21307
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
21308
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21309
#define shl_load innocuous_shl_load
21311
/* System header to define __stub macros and hopefully few prototypes,
21312
which can conflict with char shl_load (); below.
21313
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21314
<limits.h> exists even on freestanding compilers. */
21317
# include <limits.h>
21319
# include <assert.h>
21324
/* Override any GCC internal prototype to avoid an error.
21325
Use char because int might match the return type of a GCC
21326
builtin and then its argument prototype would still apply. */
21331
/* The GNU C library defines this for functions which it implements
21332
to always fail with ENOSYS. Some functions are actually named
21333
something starting with __ and the normal name is an alias. */
21334
#if defined __stub_shl_load || defined __stub___shl_load
21341
return shl_load ();
21346
rm -f conftest.$ac_objext conftest$ac_exeext
21347
if { (ac_try="$ac_link"
21348
case "(($ac_try" in
21349
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21350
*) ac_try_echo=$ac_try;;
21352
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21353
$as_echo "$ac_try_echo") >&5
21354
(eval "$ac_link") 2>conftest.er1
21356
grep -v '^ *+' conftest.er1 >conftest.err
21358
cat conftest.err >&5
21359
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360
(exit $ac_status); } && {
21361
test -z "$ac_c_werror_flag" ||
21362
test ! -s conftest.err
21363
} && test -s conftest$ac_exeext && {
21364
test "$cross_compiling" = yes ||
21365
$as_test_x conftest$ac_exeext
21367
ac_cv_func_shl_load=yes
21369
$as_echo "$as_me: failed program was:" >&5
21370
sed 's/^/| /' conftest.$ac_ext >&5
21372
ac_cv_func_shl_load=no
21375
rm -rf conftest.dSYM
21376
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21377
conftest$ac_exeext conftest.$ac_ext
21379
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
21380
$as_echo "$ac_cv_func_shl_load" >&6; }
21381
if test $ac_cv_func_shl_load = yes; then
21382
lt_cv_dlopen="shl_load"
21384
{ $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
21385
$as_echo_n "checking for shl_load in -ldld... " >&6; }
21386
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
21387
$as_echo_n "(cached) " >&6
21389
ac_check_lib_save_LIBS=$LIBS
21391
cat >conftest.$ac_ext <<_ACEOF
21394
cat confdefs.h >>conftest.$ac_ext
21395
cat >>conftest.$ac_ext <<_ACEOF
21396
/* end confdefs.h. */
21398
/* Override any GCC internal prototype to avoid an error.
21399
Use char because int might match the return type of a GCC
21400
builtin and then its argument prototype would still apply. */
21408
return shl_load ();
21413
rm -f conftest.$ac_objext conftest$ac_exeext
21414
if { (ac_try="$ac_link"
21415
case "(($ac_try" in
21416
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21417
*) ac_try_echo=$ac_try;;
21419
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21420
$as_echo "$ac_try_echo") >&5
21421
(eval "$ac_link") 2>conftest.er1
21423
grep -v '^ *+' conftest.er1 >conftest.err
21425
cat conftest.err >&5
21426
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21427
(exit $ac_status); } && {
21428
test -z "$ac_c_werror_flag" ||
21429
test ! -s conftest.err
21430
} && test -s conftest$ac_exeext && {
21431
test "$cross_compiling" = yes ||
21432
$as_test_x conftest$ac_exeext
21434
ac_cv_lib_dld_shl_load=yes
21436
$as_echo "$as_me: failed program was:" >&5
21437
sed 's/^/| /' conftest.$ac_ext >&5
21439
ac_cv_lib_dld_shl_load=no
21442
rm -rf conftest.dSYM
21443
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21444
conftest$ac_exeext conftest.$ac_ext
21445
LIBS=$ac_check_lib_save_LIBS
21447
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
21448
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
21449
if test $ac_cv_lib_dld_shl_load = yes; then
21450
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
21452
{ $as_echo "$as_me:$LINENO: checking for dlopen" >&5
21453
$as_echo_n "checking for dlopen... " >&6; }
21454
if test "${ac_cv_func_dlopen+set}" = set; then
21455
$as_echo_n "(cached) " >&6
21457
cat >conftest.$ac_ext <<_ACEOF
21460
cat confdefs.h >>conftest.$ac_ext
21461
cat >>conftest.$ac_ext <<_ACEOF
21462
/* end confdefs.h. */
21463
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
21464
For example, HP-UX 11i <limits.h> declares gettimeofday. */
21465
#define dlopen innocuous_dlopen
21467
/* System header to define __stub macros and hopefully few prototypes,
21468
which can conflict with char dlopen (); below.
21469
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21470
<limits.h> exists even on freestanding compilers. */
21473
# include <limits.h>
21475
# include <assert.h>
21480
/* Override any GCC internal prototype to avoid an error.
21481
Use char because int might match the return type of a GCC
21482
builtin and then its argument prototype would still apply. */
21487
/* The GNU C library defines this for functions which it implements
21488
to always fail with ENOSYS. Some functions are actually named
21489
something starting with __ and the normal name is an alias. */
21490
#if defined __stub_dlopen || defined __stub___dlopen
21502
rm -f conftest.$ac_objext conftest$ac_exeext
21503
if { (ac_try="$ac_link"
21504
case "(($ac_try" in
21505
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21506
*) ac_try_echo=$ac_try;;
21508
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21509
$as_echo "$ac_try_echo") >&5
21510
(eval "$ac_link") 2>conftest.er1
21512
grep -v '^ *+' conftest.er1 >conftest.err
21514
cat conftest.err >&5
21515
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516
(exit $ac_status); } && {
21517
test -z "$ac_c_werror_flag" ||
21518
test ! -s conftest.err
21519
} && test -s conftest$ac_exeext && {
21520
test "$cross_compiling" = yes ||
21521
$as_test_x conftest$ac_exeext
21523
ac_cv_func_dlopen=yes
21525
$as_echo "$as_me: failed program was:" >&5
21526
sed 's/^/| /' conftest.$ac_ext >&5
21528
ac_cv_func_dlopen=no
21531
rm -rf conftest.dSYM
21532
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21533
conftest$ac_exeext conftest.$ac_ext
21535
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
21536
$as_echo "$ac_cv_func_dlopen" >&6; }
21537
if test $ac_cv_func_dlopen = yes; then
21538
lt_cv_dlopen="dlopen"
21540
{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21541
$as_echo_n "checking for dlopen in -ldl... " >&6; }
21542
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21543
$as_echo_n "(cached) " >&6
21545
ac_check_lib_save_LIBS=$LIBS
21547
cat >conftest.$ac_ext <<_ACEOF
21550
cat confdefs.h >>conftest.$ac_ext
21551
cat >>conftest.$ac_ext <<_ACEOF
21552
/* end confdefs.h. */
21554
/* Override any GCC internal prototype to avoid an error.
21555
Use char because int might match the return type of a GCC
21556
builtin and then its argument prototype would still apply. */
21569
rm -f conftest.$ac_objext conftest$ac_exeext
21570
if { (ac_try="$ac_link"
21571
case "(($ac_try" in
21572
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21573
*) ac_try_echo=$ac_try;;
21575
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21576
$as_echo "$ac_try_echo") >&5
21577
(eval "$ac_link") 2>conftest.er1
21579
grep -v '^ *+' conftest.er1 >conftest.err
21581
cat conftest.err >&5
21582
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21583
(exit $ac_status); } && {
21584
test -z "$ac_c_werror_flag" ||
21585
test ! -s conftest.err
21586
} && test -s conftest$ac_exeext && {
21587
test "$cross_compiling" = yes ||
21588
$as_test_x conftest$ac_exeext
21590
ac_cv_lib_dl_dlopen=yes
21592
$as_echo "$as_me: failed program was:" >&5
21593
sed 's/^/| /' conftest.$ac_ext >&5
21595
ac_cv_lib_dl_dlopen=no
21598
rm -rf conftest.dSYM
21599
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21600
conftest$ac_exeext conftest.$ac_ext
21601
LIBS=$ac_check_lib_save_LIBS
21603
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21604
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
21605
if test $ac_cv_lib_dl_dlopen = yes; then
21606
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
21608
{ $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
21609
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
21610
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
21611
$as_echo_n "(cached) " >&6
21613
ac_check_lib_save_LIBS=$LIBS
21614
LIBS="-lsvld $LIBS"
21615
cat >conftest.$ac_ext <<_ACEOF
21618
cat confdefs.h >>conftest.$ac_ext
21619
cat >>conftest.$ac_ext <<_ACEOF
21620
/* end confdefs.h. */
21622
/* Override any GCC internal prototype to avoid an error.
21623
Use char because int might match the return type of a GCC
21624
builtin and then its argument prototype would still apply. */
21637
rm -f conftest.$ac_objext conftest$ac_exeext
21638
if { (ac_try="$ac_link"
21639
case "(($ac_try" in
21640
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21641
*) ac_try_echo=$ac_try;;
21643
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21644
$as_echo "$ac_try_echo") >&5
21645
(eval "$ac_link") 2>conftest.er1
21647
grep -v '^ *+' conftest.er1 >conftest.err
21649
cat conftest.err >&5
21650
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651
(exit $ac_status); } && {
21652
test -z "$ac_c_werror_flag" ||
21653
test ! -s conftest.err
21654
} && test -s conftest$ac_exeext && {
21655
test "$cross_compiling" = yes ||
21656
$as_test_x conftest$ac_exeext
21658
ac_cv_lib_svld_dlopen=yes
21660
$as_echo "$as_me: failed program was:" >&5
21661
sed 's/^/| /' conftest.$ac_ext >&5
21663
ac_cv_lib_svld_dlopen=no
21666
rm -rf conftest.dSYM
21667
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21668
conftest$ac_exeext conftest.$ac_ext
21669
LIBS=$ac_check_lib_save_LIBS
21671
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
21672
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
21673
if test $ac_cv_lib_svld_dlopen = yes; then
21674
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
21676
{ $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
21677
$as_echo_n "checking for dld_link in -ldld... " >&6; }
21678
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
21679
$as_echo_n "(cached) " >&6
21681
ac_check_lib_save_LIBS=$LIBS
21683
cat >conftest.$ac_ext <<_ACEOF
21686
cat confdefs.h >>conftest.$ac_ext
21687
cat >>conftest.$ac_ext <<_ACEOF
21688
/* end confdefs.h. */
21690
/* Override any GCC internal prototype to avoid an error.
21691
Use char because int might match the return type of a GCC
21692
builtin and then its argument prototype would still apply. */
21700
return dld_link ();
21705
rm -f conftest.$ac_objext conftest$ac_exeext
21706
if { (ac_try="$ac_link"
21707
case "(($ac_try" in
21708
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21709
*) ac_try_echo=$ac_try;;
21711
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21712
$as_echo "$ac_try_echo") >&5
21713
(eval "$ac_link") 2>conftest.er1
21715
grep -v '^ *+' conftest.er1 >conftest.err
21717
cat conftest.err >&5
21718
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21719
(exit $ac_status); } && {
21720
test -z "$ac_c_werror_flag" ||
21721
test ! -s conftest.err
21722
} && test -s conftest$ac_exeext && {
21723
test "$cross_compiling" = yes ||
21724
$as_test_x conftest$ac_exeext
21726
ac_cv_lib_dld_dld_link=yes
21728
$as_echo "$as_me: failed program was:" >&5
21729
sed 's/^/| /' conftest.$ac_ext >&5
21731
ac_cv_lib_dld_dld_link=no
21734
rm -rf conftest.dSYM
21735
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21736
conftest$ac_exeext conftest.$ac_ext
21737
LIBS=$ac_check_lib_save_LIBS
21739
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
21740
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
21741
if test $ac_cv_lib_dld_dld_link = yes; then
21742
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
21763
if test "x$lt_cv_dlopen" != xno; then
21769
case $lt_cv_dlopen in
21771
save_CPPFLAGS="$CPPFLAGS"
21772
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
21774
save_LDFLAGS="$LDFLAGS"
21775
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
21778
LIBS="$lt_cv_dlopen_libs $LIBS"
21780
{ $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
21781
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
21782
if test "${lt_cv_dlopen_self+set}" = set; then
21783
$as_echo_n "(cached) " >&6
21785
if test "$cross_compiling" = yes; then :
21786
lt_cv_dlopen_self=cross
21788
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21789
lt_status=$lt_dlunknown
21790
cat > conftest.$ac_ext <<EOF
21791
#line 21791 "configure"
21792
#include "confdefs.h"
21801
# define LT_DLGLOBAL RTLD_GLOBAL
21804
# define LT_DLGLOBAL DL_GLOBAL
21806
# define LT_DLGLOBAL 0
21810
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21811
find out it does not work in some platform. */
21812
#ifndef LT_DLLAZY_OR_NOW
21814
# define LT_DLLAZY_OR_NOW RTLD_LAZY
21817
# define LT_DLLAZY_OR_NOW DL_LAZY
21820
# define LT_DLLAZY_OR_NOW RTLD_NOW
21823
# define LT_DLLAZY_OR_NOW DL_NOW
21825
# define LT_DLLAZY_OR_NOW 0
21833
extern "C" void exit (int);
21836
void fnord() { int i=42;}
21839
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21840
int status = $lt_dlunknown;
21844
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21845
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21846
/* dlclose (self); */
21852
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21853
(eval $ac_link) 2>&5
21855
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21856
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21857
(./conftest; exit; ) 2>/dev/null
21859
case x$lt_status in
21860
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
21861
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
21862
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
21865
# compilation failed
21866
lt_cv_dlopen_self=no
21873
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
21874
$as_echo "$lt_cv_dlopen_self" >&6; }
21876
if test "x$lt_cv_dlopen_self" = xyes; then
21877
LDFLAGS="$LDFLAGS $link_static_flag"
21878
{ $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
21879
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
21880
if test "${lt_cv_dlopen_self_static+set}" = set; then
21881
$as_echo_n "(cached) " >&6
21883
if test "$cross_compiling" = yes; then :
21884
lt_cv_dlopen_self_static=cross
21886
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21887
lt_status=$lt_dlunknown
21888
cat > conftest.$ac_ext <<EOF
21889
#line 21889 "configure"
21890
#include "confdefs.h"
21899
# define LT_DLGLOBAL RTLD_GLOBAL
21902
# define LT_DLGLOBAL DL_GLOBAL
21904
# define LT_DLGLOBAL 0
21908
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21909
find out it does not work in some platform. */
21910
#ifndef LT_DLLAZY_OR_NOW
21912
# define LT_DLLAZY_OR_NOW RTLD_LAZY
21915
# define LT_DLLAZY_OR_NOW DL_LAZY
21918
# define LT_DLLAZY_OR_NOW RTLD_NOW
21921
# define LT_DLLAZY_OR_NOW DL_NOW
21923
# define LT_DLLAZY_OR_NOW 0
21931
extern "C" void exit (int);
21934
void fnord() { int i=42;}
21937
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21938
int status = $lt_dlunknown;
21942
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
21943
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21944
/* dlclose (self); */
21950
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21951
(eval $ac_link) 2>&5
21953
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
21955
(./conftest; exit; ) 2>/dev/null
21957
case x$lt_status in
21958
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
21959
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
21960
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
21963
# compilation failed
21964
lt_cv_dlopen_self_static=no
21971
{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
21972
$as_echo "$lt_cv_dlopen_self_static" >&6; }
21975
CPPFLAGS="$save_CPPFLAGS"
21976
LDFLAGS="$save_LDFLAGS"
21981
case $lt_cv_dlopen_self in
21982
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
21983
*) enable_dlopen_self=unknown ;;
21986
case $lt_cv_dlopen_self_static in
21987
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
21988
*) enable_dlopen_self_static=unknown ;;
21993
# The else clause should only fire when bootstrapping the
21994
# libtool distribution, otherwise you forgot to ship ltmain.sh
21995
# with your package, and you will get complaints that there are
21996
# no rules to generate ltmain.sh.
21997
if test -f "$ltmain"; then
21998
# See if we are running on zsh, and set the options which allow our commands through
21999
# without removal of \ escapes.
22000
if test -n "${ZSH_VERSION+set}" ; then
22001
setopt NO_GLOB_SUBST
22003
# Now quote all the things that may contain metacharacters while being
22004
# careful not to overquote the AC_SUBSTed values. We take copies of the
22005
# variables and quote the copies for generation of the libtool script.
22006
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
22007
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22008
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22009
deplibs_check_method reload_flag reload_cmds need_locks \
22010
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22011
lt_cv_sys_global_symbol_to_c_name_address \
22012
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22013
old_postinstall_cmds old_postuninstall_cmds \
22017
lt_prog_compiler_wl_GCJ \
22018
lt_prog_compiler_pic_GCJ \
22019
lt_prog_compiler_static_GCJ \
22020
lt_prog_compiler_no_builtin_flag_GCJ \
22021
export_dynamic_flag_spec_GCJ \
22022
thread_safe_flag_spec_GCJ \
22023
whole_archive_flag_spec_GCJ \
22024
enable_shared_with_static_runtimes_GCJ \
22025
old_archive_cmds_GCJ \
22026
old_archive_from_new_cmds_GCJ \
22027
predep_objects_GCJ \
22028
postdep_objects_GCJ \
22031
compiler_lib_search_path_GCJ \
22033
archive_expsym_cmds_GCJ \
22034
postinstall_cmds_GCJ \
22035
postuninstall_cmds_GCJ \
22036
old_archive_from_expsyms_cmds_GCJ \
22037
allow_undefined_flag_GCJ \
22038
no_undefined_flag_GCJ \
22039
export_symbols_cmds_GCJ \
22040
hardcode_libdir_flag_spec_GCJ \
22041
hardcode_libdir_flag_spec_ld_GCJ \
22042
hardcode_libdir_separator_GCJ \
22043
hardcode_automatic_GCJ \
22045
module_expsym_cmds_GCJ \
22046
lt_cv_prog_compiler_c_o_GCJ \
22047
exclude_expsyms_GCJ \
22048
include_expsyms_GCJ; do
22051
old_archive_cmds_GCJ | \
22052
old_archive_from_new_cmds_GCJ | \
22053
archive_cmds_GCJ | \
22054
archive_expsym_cmds_GCJ | \
22055
module_cmds_GCJ | \
22056
module_expsym_cmds_GCJ | \
22057
old_archive_from_expsyms_cmds_GCJ | \
22058
export_symbols_cmds_GCJ | \
22059
extract_expsyms_cmds | reload_cmds | finish_cmds | \
22060
postinstall_cmds | postuninstall_cmds | \
22061
old_postinstall_cmds | old_postuninstall_cmds | \
22062
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22063
# Double-quote double-evaled strings.
22064
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22067
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22073
*'\$0 --fallback-echo"')
22074
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22080
cat <<__EOF__ >> "$cfgfile"
22081
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
22083
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22085
# Shell to use when invoking shell scripts.
22088
# Whether or not to build shared libraries.
22089
build_libtool_libs=$enable_shared
22091
# Whether or not to build static libraries.
22092
build_old_libs=$enable_static
22094
# Whether or not to add -lc for building shared libraries.
22095
build_libtool_need_lc=$archive_cmds_need_lc_GCJ
22097
# Whether or not to disallow shared libs when runtime libs are static
22098
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
22100
# Whether or not to optimize for fast installation.
22101
fast_install=$enable_fast_install
22104
host_alias=$host_alias
22107
# An echo program that does not interpret backslashes.
22112
AR_FLAGS=$lt_AR_FLAGS
22117
# A language-specific compiler.
22118
CC=$lt_compiler_GCJ
22120
# Is the compiler the GNU C compiler?
22126
# The linker used to build libraries.
22129
# Whether we need hard or soft links.
22132
# A BSD-compatible nm program.
22135
# A symbol stripping program
22138
# Used to examine libraries when file_magic_cmd begins "file"
22139
MAGIC_CMD=$MAGIC_CMD
22141
# Used on cygwin: DLL creation program.
22144
# Used on cygwin: object dumper.
22147
# Used on cygwin: assembler.
22150
# The name of the directory that contains temporary libtool files.
22153
# How to create reloadable object files.
22154
reload_flag=$lt_reload_flag
22155
reload_cmds=$lt_reload_cmds
22157
# How to pass a linker flag through the compiler.
22158
wl=$lt_lt_prog_compiler_wl_GCJ
22160
# Object file suffix (normally "o").
22161
objext="$ac_objext"
22163
# Old archive suffix (normally "a").
22166
# Shared library suffix (normally ".so").
22169
# Executable file suffix (normally "").
22172
# Additional compiler flags for building library objects.
22173
pic_flag=$lt_lt_prog_compiler_pic_GCJ
22176
# What is the maximum length of a command?
22177
max_cmd_len=$lt_cv_sys_max_cmd_len
22179
# Does compiler simultaneously support -c and -o options?
22180
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
22182
# Must we lock files when doing compilation ?
22183
need_locks=$lt_need_locks
22185
# Do we need the lib prefix for modules?
22186
need_lib_prefix=$need_lib_prefix
22188
# Do we need a version for libraries?
22189
need_version=$need_version
22191
# Whether dlopen is supported.
22192
dlopen_support=$enable_dlopen
22194
# Whether dlopen of programs is supported.
22195
dlopen_self=$enable_dlopen_self
22197
# Whether dlopen of statically linked programs is supported.
22198
dlopen_self_static=$enable_dlopen_self_static
22200
# Compiler flag to prevent dynamic linking.
22201
link_static_flag=$lt_lt_prog_compiler_static_GCJ
22203
# Compiler flag to turn off builtin functions.
22204
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
22206
# Compiler flag to allow reflexive dlopens.
22207
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
22209
# Compiler flag to generate shared objects directly from archives.
22210
whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
22212
# Compiler flag to generate thread-safe objects.
22213
thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
22215
# Library versioning type.
22216
version_type=$version_type
22218
# Format of library name prefix.
22219
libname_spec=$lt_libname_spec
22221
# List of archive names. First name is the real one, the rest are links.
22222
# The last name is the one that the linker finds with -lNAME.
22223
library_names_spec=$lt_library_names_spec
22225
# The coded name of the library, if different from the real name.
22226
soname_spec=$lt_soname_spec
22228
# Commands used to build and install an old-style archive.
22230
old_archive_cmds=$lt_old_archive_cmds_GCJ
22231
old_postinstall_cmds=$lt_old_postinstall_cmds
22232
old_postuninstall_cmds=$lt_old_postuninstall_cmds
22234
# Create an old-style archive from a shared archive.
22235
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
22237
# Create a temporary old-style archive to link instead of a shared archive.
22238
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
22240
# Commands used to build and install a shared archive.
22241
archive_cmds=$lt_archive_cmds_GCJ
22242
archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
22243
postinstall_cmds=$lt_postinstall_cmds
22244
postuninstall_cmds=$lt_postuninstall_cmds
22246
# Commands used to build a loadable module (assumed same as above if empty)
22247
module_cmds=$lt_module_cmds_GCJ
22248
module_expsym_cmds=$lt_module_expsym_cmds_GCJ
22250
# Commands to strip libraries.
22251
old_striplib=$lt_old_striplib
22252
striplib=$lt_striplib
22254
# Dependencies to place before the objects being linked to create a
22256
predep_objects=$lt_predep_objects_GCJ
22258
# Dependencies to place after the objects being linked to create a
22260
postdep_objects=$lt_postdep_objects_GCJ
22262
# Dependencies to place before the objects being linked to create a
22264
predeps=$lt_predeps_GCJ
22266
# Dependencies to place after the objects being linked to create a
22268
postdeps=$lt_postdeps_GCJ
22270
# The library search path used internally by the compiler when linking
22271
# a shared library.
22272
compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
22274
# Method to check whether dependent libraries are shared objects.
22275
deplibs_check_method=$lt_deplibs_check_method
22277
# Command to use when deplibs_check_method == file_magic.
22278
file_magic_cmd=$lt_file_magic_cmd
22280
# Flag that allows shared libraries with undefined symbols to be built.
22281
allow_undefined_flag=$lt_allow_undefined_flag_GCJ
22283
# Flag that forces no undefined symbols.
22284
no_undefined_flag=$lt_no_undefined_flag_GCJ
22286
# Commands used to finish a libtool library installation in a directory.
22287
finish_cmds=$lt_finish_cmds
22289
# Same as above, but a single script fragment to be evaled but not shown.
22290
finish_eval=$lt_finish_eval
22292
# Take the output of nm and produce a listing of raw symbols and C names.
22293
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22295
# Transform the output of nm in a proper C declaration
22296
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22298
# Transform the output of nm in a C name address pair
22299
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22301
# This is the shared library runtime path variable.
22302
runpath_var=$runpath_var
22304
# This is the shared library path variable.
22305
shlibpath_var=$shlibpath_var
22307
# Is shlibpath searched before the hard-coded library search path?
22308
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22310
# How to hardcode a shared library path into an executable.
22311
hardcode_action=$hardcode_action_GCJ
22313
# Whether we should hardcode library paths into libraries.
22314
hardcode_into_libs=$hardcode_into_libs
22316
# Flag to hardcode \$libdir into a binary during linking.
22317
# This must work even if \$libdir does not exist.
22318
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
22320
# If ld is used when linking, flag to hardcode \$libdir into
22321
# a binary during linking. This must work even if \$libdir does
22323
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
22325
# Whether we need a single -rpath flag with a separated argument.
22326
hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
22328
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22329
# resulting binary.
22330
hardcode_direct=$hardcode_direct_GCJ
22332
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22333
# resulting binary.
22334
hardcode_minus_L=$hardcode_minus_L_GCJ
22336
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22337
# the resulting binary.
22338
hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
22340
# Set to yes if building a shared library automatically hardcodes DIR into the library
22341
# and all subsequent libraries and executables linked against it.
22342
hardcode_automatic=$hardcode_automatic_GCJ
22344
# Variables whose values should be saved in libtool wrapper scripts and
22345
# restored at relink time.
22346
variables_saved_for_relink="$variables_saved_for_relink"
22348
# Whether libtool must link a program against all its dependency libraries.
22349
link_all_deplibs=$link_all_deplibs_GCJ
22351
# Compile-time system search path for libraries
22352
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22354
# Run-time system search path for libraries
22355
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22357
# Fix the shell variable \$srcfile for the compiler.
22358
fix_srcfile_path="$fix_srcfile_path_GCJ"
22360
# Set to yes if exported symbols are required.
22361
always_export_symbols=$always_export_symbols_GCJ
22363
# The commands to list exported symbols.
22364
export_symbols_cmds=$lt_export_symbols_cmds_GCJ
22366
# The commands to extract the exported symbol list from a shared archive.
22367
extract_expsyms_cmds=$lt_extract_expsyms_cmds
22369
# Symbols that should not be listed in the preloaded symbols.
22370
exclude_expsyms=$lt_exclude_expsyms_GCJ
22372
# Symbols that must always be exported.
22373
include_expsyms=$lt_include_expsyms_GCJ
22375
# ### END LIBTOOL TAG CONFIG: $tagname
22381
# If there is no Makefile yet, we rely on a make rule to execute
22382
# `config.status --recheck' to rerun these tests and create the
22383
# libtool script then.
22384
test -f Makefile && make "$ltmain"
22389
ac_cpp='$CPP $CPPFLAGS'
22390
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22391
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22392
ac_compiler_gnu=$ac_cv_c_compiler_gnu
22404
# Source file extension for RC test sources.
22407
# Object file extension for compiled RC test sources.
22411
# Code to be used in simple compile tests
22412
lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
22414
# Code to be used in simple link tests
22415
lt_simple_link_test_code="$lt_simple_compile_test_code"
22417
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
22419
# If no C compiler was specified, use CC.
22422
# Allow CC to be a program name with arguments.
22426
# Allow CC to be a program name with arguments.
22431
lt_cv_prog_compiler_c_o_RC=yes
22433
# The else clause should only fire when bootstrapping the
22434
# libtool distribution, otherwise you forgot to ship ltmain.sh
22435
# with your package, and you will get complaints that there are
22436
# no rules to generate ltmain.sh.
22437
if test -f "$ltmain"; then
22438
# See if we are running on zsh, and set the options which allow our commands through
22439
# without removal of \ escapes.
22440
if test -n "${ZSH_VERSION+set}" ; then
22441
setopt NO_GLOB_SUBST
22443
# Now quote all the things that may contain metacharacters while being
22444
# careful not to overquote the AC_SUBSTed values. We take copies of the
22445
# variables and quote the copies for generation of the libtool script.
22446
for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
22447
libname_spec library_names_spec soname_spec extract_expsyms_cmds \
22448
old_striplib striplib file_magic_cmd finish_cmds finish_eval \
22449
deplibs_check_method reload_flag reload_cmds need_locks \
22450
lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
22451
lt_cv_sys_global_symbol_to_c_name_address \
22452
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
22453
old_postinstall_cmds old_postuninstall_cmds \
22457
lt_prog_compiler_wl_RC \
22458
lt_prog_compiler_pic_RC \
22459
lt_prog_compiler_static_RC \
22460
lt_prog_compiler_no_builtin_flag_RC \
22461
export_dynamic_flag_spec_RC \
22462
thread_safe_flag_spec_RC \
22463
whole_archive_flag_spec_RC \
22464
enable_shared_with_static_runtimes_RC \
22465
old_archive_cmds_RC \
22466
old_archive_from_new_cmds_RC \
22467
predep_objects_RC \
22468
postdep_objects_RC \
22471
compiler_lib_search_path_RC \
22473
archive_expsym_cmds_RC \
22474
postinstall_cmds_RC \
22475
postuninstall_cmds_RC \
22476
old_archive_from_expsyms_cmds_RC \
22477
allow_undefined_flag_RC \
22478
no_undefined_flag_RC \
22479
export_symbols_cmds_RC \
22480
hardcode_libdir_flag_spec_RC \
22481
hardcode_libdir_flag_spec_ld_RC \
22482
hardcode_libdir_separator_RC \
22483
hardcode_automatic_RC \
22485
module_expsym_cmds_RC \
22486
lt_cv_prog_compiler_c_o_RC \
22487
exclude_expsyms_RC \
22488
include_expsyms_RC; do
22491
old_archive_cmds_RC | \
22492
old_archive_from_new_cmds_RC | \
22493
archive_cmds_RC | \
22494
archive_expsym_cmds_RC | \
22496
module_expsym_cmds_RC | \
22497
old_archive_from_expsyms_cmds_RC | \
22498
export_symbols_cmds_RC | \
22499
extract_expsyms_cmds | reload_cmds | finish_cmds | \
22500
postinstall_cmds | postuninstall_cmds | \
22501
old_postinstall_cmds | old_postuninstall_cmds | \
22502
sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
22503
# Double-quote double-evaled strings.
22504
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
22507
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
22513
*'\$0 --fallback-echo"')
22514
lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
22520
cat <<__EOF__ >> "$cfgfile"
22521
# ### BEGIN LIBTOOL TAG CONFIG: $tagname
22523
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22525
# Shell to use when invoking shell scripts.
22528
# Whether or not to build shared libraries.
22529
build_libtool_libs=$enable_shared
22531
# Whether or not to build static libraries.
22532
build_old_libs=$enable_static
22534
# Whether or not to add -lc for building shared libraries.
22535
build_libtool_need_lc=$archive_cmds_need_lc_RC
22537
# Whether or not to disallow shared libs when runtime libs are static
22538
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
22540
# Whether or not to optimize for fast installation.
22541
fast_install=$enable_fast_install
22544
host_alias=$host_alias
22547
# An echo program that does not interpret backslashes.
22552
AR_FLAGS=$lt_AR_FLAGS
22557
# A language-specific compiler.
22560
# Is the compiler the GNU C compiler?
22566
# The linker used to build libraries.
22569
# Whether we need hard or soft links.
22572
# A BSD-compatible nm program.
22575
# A symbol stripping program
22578
# Used to examine libraries when file_magic_cmd begins "file"
22579
MAGIC_CMD=$MAGIC_CMD
22581
# Used on cygwin: DLL creation program.
22584
# Used on cygwin: object dumper.
22587
# Used on cygwin: assembler.
22590
# The name of the directory that contains temporary libtool files.
22593
# How to create reloadable object files.
22594
reload_flag=$lt_reload_flag
22595
reload_cmds=$lt_reload_cmds
22597
# How to pass a linker flag through the compiler.
22598
wl=$lt_lt_prog_compiler_wl_RC
22600
# Object file suffix (normally "o").
22601
objext="$ac_objext"
22603
# Old archive suffix (normally "a").
22606
# Shared library suffix (normally ".so").
22609
# Executable file suffix (normally "").
22612
# Additional compiler flags for building library objects.
22613
pic_flag=$lt_lt_prog_compiler_pic_RC
22616
# What is the maximum length of a command?
22617
max_cmd_len=$lt_cv_sys_max_cmd_len
22619
# Does compiler simultaneously support -c and -o options?
22620
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
22622
# Must we lock files when doing compilation ?
22623
need_locks=$lt_need_locks
22625
# Do we need the lib prefix for modules?
22626
need_lib_prefix=$need_lib_prefix
22628
# Do we need a version for libraries?
22629
need_version=$need_version
22631
# Whether dlopen is supported.
22632
dlopen_support=$enable_dlopen
22634
# Whether dlopen of programs is supported.
22635
dlopen_self=$enable_dlopen_self
22637
# Whether dlopen of statically linked programs is supported.
22638
dlopen_self_static=$enable_dlopen_self_static
22640
# Compiler flag to prevent dynamic linking.
22641
link_static_flag=$lt_lt_prog_compiler_static_RC
22643
# Compiler flag to turn off builtin functions.
22644
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
22646
# Compiler flag to allow reflexive dlopens.
22647
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
22649
# Compiler flag to generate shared objects directly from archives.
22650
whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
22652
# Compiler flag to generate thread-safe objects.
22653
thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
22655
# Library versioning type.
22656
version_type=$version_type
22658
# Format of library name prefix.
22659
libname_spec=$lt_libname_spec
22661
# List of archive names. First name is the real one, the rest are links.
22662
# The last name is the one that the linker finds with -lNAME.
22663
library_names_spec=$lt_library_names_spec
22665
# The coded name of the library, if different from the real name.
22666
soname_spec=$lt_soname_spec
22668
# Commands used to build and install an old-style archive.
22670
old_archive_cmds=$lt_old_archive_cmds_RC
22671
old_postinstall_cmds=$lt_old_postinstall_cmds
22672
old_postuninstall_cmds=$lt_old_postuninstall_cmds
22674
# Create an old-style archive from a shared archive.
22675
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
22677
# Create a temporary old-style archive to link instead of a shared archive.
22678
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
22680
# Commands used to build and install a shared archive.
22681
archive_cmds=$lt_archive_cmds_RC
22682
archive_expsym_cmds=$lt_archive_expsym_cmds_RC
22683
postinstall_cmds=$lt_postinstall_cmds
22684
postuninstall_cmds=$lt_postuninstall_cmds
22686
# Commands used to build a loadable module (assumed same as above if empty)
22687
module_cmds=$lt_module_cmds_RC
22688
module_expsym_cmds=$lt_module_expsym_cmds_RC
22690
# Commands to strip libraries.
22691
old_striplib=$lt_old_striplib
22692
striplib=$lt_striplib
22694
# Dependencies to place before the objects being linked to create a
22696
predep_objects=$lt_predep_objects_RC
22698
# Dependencies to place after the objects being linked to create a
22700
postdep_objects=$lt_postdep_objects_RC
22702
# Dependencies to place before the objects being linked to create a
22704
predeps=$lt_predeps_RC
22706
# Dependencies to place after the objects being linked to create a
22708
postdeps=$lt_postdeps_RC
22710
# The library search path used internally by the compiler when linking
22711
# a shared library.
22712
compiler_lib_search_path=$lt_compiler_lib_search_path_RC
22714
# Method to check whether dependent libraries are shared objects.
22715
deplibs_check_method=$lt_deplibs_check_method
22717
# Command to use when deplibs_check_method == file_magic.
22718
file_magic_cmd=$lt_file_magic_cmd
22720
# Flag that allows shared libraries with undefined symbols to be built.
22721
allow_undefined_flag=$lt_allow_undefined_flag_RC
22723
# Flag that forces no undefined symbols.
22724
no_undefined_flag=$lt_no_undefined_flag_RC
22726
# Commands used to finish a libtool library installation in a directory.
22727
finish_cmds=$lt_finish_cmds
22729
# Same as above, but a single script fragment to be evaled but not shown.
22730
finish_eval=$lt_finish_eval
22732
# Take the output of nm and produce a listing of raw symbols and C names.
22733
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22735
# Transform the output of nm in a proper C declaration
22736
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22738
# Transform the output of nm in a C name address pair
22739
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22741
# This is the shared library runtime path variable.
22742
runpath_var=$runpath_var
22744
# This is the shared library path variable.
22745
shlibpath_var=$shlibpath_var
22747
# Is shlibpath searched before the hard-coded library search path?
22748
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22750
# How to hardcode a shared library path into an executable.
22751
hardcode_action=$hardcode_action_RC
22753
# Whether we should hardcode library paths into libraries.
22754
hardcode_into_libs=$hardcode_into_libs
22756
# Flag to hardcode \$libdir into a binary during linking.
22757
# This must work even if \$libdir does not exist.
22758
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
22760
# If ld is used when linking, flag to hardcode \$libdir into
22761
# a binary during linking. This must work even if \$libdir does
22763
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
22765
# Whether we need a single -rpath flag with a separated argument.
22766
hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
22768
# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
22769
# resulting binary.
22770
hardcode_direct=$hardcode_direct_RC
22772
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
22773
# resulting binary.
22774
hardcode_minus_L=$hardcode_minus_L_RC
22776
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
22777
# the resulting binary.
22778
hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
22780
# Set to yes if building a shared library automatically hardcodes DIR into the library
22781
# and all subsequent libraries and executables linked against it.
22782
hardcode_automatic=$hardcode_automatic_RC
22784
# Variables whose values should be saved in libtool wrapper scripts and
22785
# restored at relink time.
22786
variables_saved_for_relink="$variables_saved_for_relink"
22788
# Whether libtool must link a program against all its dependency libraries.
22789
link_all_deplibs=$link_all_deplibs_RC
22791
# Compile-time system search path for libraries
22792
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22794
# Run-time system search path for libraries
22795
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22797
# Fix the shell variable \$srcfile for the compiler.
22798
fix_srcfile_path="$fix_srcfile_path_RC"
22800
# Set to yes if exported symbols are required.
22801
always_export_symbols=$always_export_symbols_RC
22803
# The commands to list exported symbols.
22804
export_symbols_cmds=$lt_export_symbols_cmds_RC
22806
# The commands to extract the exported symbol list from a shared archive.
22807
extract_expsyms_cmds=$lt_extract_expsyms_cmds
22809
# Symbols that should not be listed in the preloaded symbols.
22810
exclude_expsyms=$lt_exclude_expsyms_RC
22812
# Symbols that must always be exported.
22813
include_expsyms=$lt_include_expsyms_RC
22815
# ### END LIBTOOL TAG CONFIG: $tagname
22821
# If there is no Makefile yet, we rely on a make rule to execute
22822
# `config.status --recheck' to rerun these tests and create the
22823
# libtool script then.
22824
test -f Makefile && make "$ltmain"
22829
ac_cpp='$CPP $CPPFLAGS'
22830
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22831
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22832
ac_compiler_gnu=$ac_cv_c_compiler_gnu
22839
{ { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
22840
$as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
22841
{ (exit 1); exit 1; }; }
22845
# Append the new tag name to the list of available tags.
22846
if test -n "$tagname" ; then
22847
available_tags="$available_tags $tagname"
22853
# Now substitute the updated list of available tags.
22854
if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
22855
mv "${ofile}T" "$ofile"
22859
{ { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
22860
$as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
22861
{ (exit 1); exit 1; }; }
22867
# This can be used to rebuild libtool when needed
22868
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
22870
# Always use our own libtool.
22871
LIBTOOL='$(SHELL) $(top_builddir)/libtool --silent'
22873
# Prevent multiple expansion
22908
LIBTOOL_SHELL="/bin/sh ./libtool"
22909
# LIBTOOL="$LIBTOOL --silent"
22910
KDE_PLUGIN="-avoid-version -module -no-undefined \$(KDE_NO_UNDEFINED) \$(KDE_RPATH) \$(KDE_MT_LDFLAGS)"
22913
# This hack ensures that libtool creates shared libs for kunittest plugins. By default check_LTLIBRARIES makes static libs.
22914
KDE_CHECK_PLUGIN="\$(KDE_PLUGIN) -rpath \$(libdir)"
22917
# we patch configure quite some so we better keep that consistent for incremental runs
22918
AUTOCONF='$(SHELL) $(top_srcdir)/admin/cvs.sh configure || touch configure'
22924
# Extract the first word of "msgfmt", so it can be a program name with args.
22925
set dummy msgfmt; ac_word=$2
22926
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22927
$as_echo_n "checking for $ac_word... " >&6; }
22928
if test "${ac_cv_path_MSGFMT+set}" = set; then
22929
$as_echo_n "(cached) " >&6
22933
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
22936
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
22937
for ac_dir in $PATH; do
22938
test -z "$ac_dir" && ac_dir=.
22939
if test -f $ac_dir/$ac_word; then
22940
if test -n "`$ac_dir/$ac_word --version 2>&1 | grep 'GNU gettext'`"; then
22941
ac_cv_path_MSGFMT="$ac_dir/$ac_word"
22947
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
22951
MSGFMT="$ac_cv_path_MSGFMT"
22952
if test -n "$MSGFMT"; then
22953
{ $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
22954
$as_echo "$MSGFMT" >&6; }
22956
{ $as_echo "$as_me:$LINENO: result: no" >&5
22957
$as_echo "no" >&6; }
22960
# Extract the first word of "gmsgfmt", so it can be a program name with args.
22961
set dummy gmsgfmt; ac_word=$2
22962
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
22963
$as_echo_n "checking for $ac_word... " >&6; }
22964
if test "${ac_cv_path_GMSGFMT+set}" = set; then
22965
$as_echo_n "(cached) " >&6
22969
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
22972
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22973
for as_dir in $PATH
22976
test -z "$as_dir" && as_dir=.
22977
for ac_exec_ext in '' $ac_executable_extensions; do
22978
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22979
ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
22980
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22987
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
22991
GMSGFMT=$ac_cv_path_GMSGFMT
22992
if test -n "$GMSGFMT"; then
22993
{ $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
22994
$as_echo "$GMSGFMT" >&6; }
22996
{ $as_echo "$as_me:$LINENO: result: no" >&5
22997
$as_echo "no" >&6; }
23002
if test -z "`$GMSGFMT --version 2>&1 | grep 'GNU gettext'`"; then
23003
{ $as_echo "$as_me:$LINENO: result: found msgfmt program is not GNU msgfmt; ignore it" >&5
23004
$as_echo "found msgfmt program is not GNU msgfmt; ignore it" >&6; }
23011
# Extract the first word of "xgettext", so it can be a program name with args.
23012
set dummy xgettext; ac_word=$2
23013
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
23014
$as_echo_n "checking for $ac_word... " >&6; }
23015
if test "${ac_cv_path_XGETTEXT+set}" = set; then
23016
$as_echo_n "(cached) " >&6
23018
case "$XGETTEXT" in
23020
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
23023
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
23024
for ac_dir in $PATH; do
23025
test -z "$ac_dir" && ac_dir=.
23026
if test -f $ac_dir/$ac_word; then
23027
if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
23028
ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
23034
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
23038
XGETTEXT="$ac_cv_path_XGETTEXT"
23039
if test -n "$XGETTEXT"; then
23040
{ $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
23041
$as_echo "$XGETTEXT" >&6; }
23043
{ $as_echo "$as_me:$LINENO: result: no" >&5
23044
$as_echo "no" >&6; }
23048
if test "$XGETTEXT" != ":"; then
23049
if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
23052
{ $as_echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5
23053
$as_echo "found xgettext programs is not GNU xgettext; ignore it" >&6; }
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
ac_save_CXXFLAGS="$CXXFLAGS"
23073
CXXFLAGS="`echo $CXXFLAGS | sed s/-fno-exceptions//`"
23075
{ $as_echo "$as_me:$LINENO: checking if C++ programs can be compiled" >&5
23076
$as_echo_n "checking if C++ programs can be compiled... " >&6; }
23077
if test "${kde_cv_stl_works+set}" = set; then
23078
$as_echo_n "(cached) " >&6
23081
cat >conftest.$ac_ext <<_ACEOF
23084
cat confdefs.h >>conftest.$ac_ext
23085
cat >>conftest.$ac_ext <<_ACEOF
23086
/* end confdefs.h. */
23089
using namespace std;
23095
string astring="Hallo Welt.";
23096
astring.erase(0, 6); // now astring is "Welt"
23103
rm -f conftest.$ac_objext
23104
if { (ac_try="$ac_compile"
23105
case "(($ac_try" in
23106
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23107
*) ac_try_echo=$ac_try;;
23109
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23110
$as_echo "$ac_try_echo") >&5
23111
(eval "$ac_compile") 2>conftest.er1
23113
grep -v '^ *+' conftest.er1 >conftest.err
23115
cat conftest.err >&5
23116
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117
(exit $ac_status); } && {
23118
test -z "$ac_cxx_werror_flag" ||
23119
test ! -s conftest.err
23120
} && test -s conftest.$ac_objext; then
23121
kde_cv_stl_works=yes
23123
$as_echo "$as_me: failed program was:" >&5
23124
sed 's/^/| /' conftest.$ac_ext >&5
23126
kde_cv_stl_works=no
23129
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23134
{ $as_echo "$as_me:$LINENO: result: $kde_cv_stl_works" >&5
23135
$as_echo "$kde_cv_stl_works" >&6; }
23137
if test "$kde_cv_stl_works" = "yes"; then
23140
cat >>confdefs.h <<_ACEOF
23141
#define HAVE_SGI_STL 1
23145
{ { $as_echo "$as_me:$LINENO: error: Your Installation isn't able to compile simple C++ programs.
23146
Check config.log for details - if you're using a Linux distribution you might miss
23147
a package named similar to libstdc++-dev." >&5
23148
$as_echo "$as_me: error: Your Installation isn't able to compile simple C++ programs.
23149
Check config.log for details - if you're using a Linux distribution you might miss
23150
a package named similar to libstdc++-dev." >&2;}
23151
{ (exit 1); exit 1; }; }
23154
CXXFLAGS="$ac_save_CXXFLAGS"
23156
ac_cpp='$CPP $CPPFLAGS'
23157
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23158
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23159
ac_compiler_gnu=$ac_cv_c_compiler_gnu
23164
{ $as_echo "$as_me:$LINENO: checking for strlcat" >&5
23165
$as_echo_n "checking for strlcat... " >&6; }
23166
if test "${kde_cv_func_strlcat+set}" = set; then
23167
$as_echo_n "(cached) " >&6
23172
ac_cpp='$CXXCPP $CPPFLAGS'
23173
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23174
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23175
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23177
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23180
save_CXXFLAGS="$CXXFLAGS"
23181
kde_safe_LIBS="$LIBS"
23182
LIBS="$LIBS $X_EXTRA_LIBS"
23183
if test "$GXX" = "yes"; then
23184
CXXFLAGS="$CXXFLAGS -pedantic-errors"
23186
cat >conftest.$ac_ext <<_ACEOF
23189
cat confdefs.h >>conftest.$ac_ext
23190
cat >>conftest.$ac_ext <<_ACEOF
23191
/* end confdefs.h. */
23194
#include <string.h>
23203
strlcat(buf, "KDE function test", sizeof(buf));
23210
rm -f conftest.$ac_objext
23211
if { (ac_try="$ac_compile"
23212
case "(($ac_try" in
23213
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23214
*) ac_try_echo=$ac_try;;
23216
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23217
$as_echo "$ac_try_echo") >&5
23218
(eval "$ac_compile") 2>conftest.er1
23220
grep -v '^ *+' conftest.er1 >conftest.err
23222
cat conftest.err >&5
23223
$as_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_strlcat=yes
23230
$as_echo "$as_me: failed program was:" >&5
23231
sed 's/^/| /' conftest.$ac_ext >&5
23233
kde_cv_func_strlcat=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
{ $as_echo "$as_me:$LINENO: result: $kde_cv_func_strlcat" >&5
23250
$as_echo "$kde_cv_func_strlcat" >&6; }
23252
{ $as_echo "$as_me:$LINENO: checking if strlcat needs custom prototype" >&5
23253
$as_echo_n "checking if strlcat needs custom prototype... " >&6; }
23254
if test "${kde_cv_proto_strlcat+set}" = set; then
23255
$as_echo_n "(cached) " >&6
23258
if test "x$kde_cv_func_strlcat" = xyes; then
23259
kde_cv_proto_strlcat=no
23262
setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat)
23263
kde_cv_proto_strlcat="yes - in libkdefakes"
23266
kde_cv_proto_strlcat=unknown
23271
if test "x$kde_cv_proto_strlcat" = 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 strlcat(char*, const char*, unsigned long);
23304
strlcat(buf, "KDE function test", sizeof(buf));
23311
rm -f conftest.$ac_objext conftest$ac_exeext
23312
if { (ac_try="$ac_link"
23313
case "(($ac_try" in
23314
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23315
*) ac_try_echo=$ac_try;;
23317
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23318
$as_echo "$ac_try_echo") >&5
23319
(eval "$ac_link") 2>conftest.er1
23321
grep -v '^ *+' conftest.er1 >conftest.err
23323
cat conftest.err >&5
23324
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23325
(exit $ac_status); } && {
23326
test -z "$ac_cxx_werror_flag" ||
23327
test ! -s conftest.err
23328
} && test -s conftest$ac_exeext && {
23329
test "$cross_compiling" = yes ||
23330
$as_test_x conftest$ac_exeext
23332
kde_cv_func_strlcat=yes
23333
kde_cv_proto_strlcat=yes
23335
$as_echo "$as_me: failed program was:" >&5
23336
sed 's/^/| /' conftest.$ac_ext >&5
23338
kde_cv_proto_strlcat="strlcat unavailable"
23342
rm -rf conftest.dSYM
23343
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23344
conftest$ac_exeext conftest.$ac_ext
23345
LIBS=$kde_safe_libs
23347
ac_cpp='$CPP $CPPFLAGS'
23348
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23349
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23350
ac_compiler_gnu=$ac_cv_c_compiler_gnu
23356
{ $as_echo "$as_me:$LINENO: result: $kde_cv_proto_strlcat" >&5
23357
$as_echo "$kde_cv_proto_strlcat" >&6; }
23359
if test "x$kde_cv_func_strlcat" = xyes; then
23361
cat >>confdefs.h <<\_ACEOF
23362
#define HAVE_STRLCAT 1
23367
if test "x$kde_cv_proto_strlcat" = xno; then
23369
cat >>confdefs.h <<\_ACEOF
23370
#define HAVE_STRLCAT_PROTO 1
23381
{ $as_echo "$as_me:$LINENO: checking for strlcpy" >&5
23382
$as_echo_n "checking for strlcpy... " >&6; }
23383
if test "${kde_cv_func_strlcpy+set}" = set; then
23384
$as_echo_n "(cached) " >&6
23389
ac_cpp='$CXXCPP $CPPFLAGS'
23390
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23391
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23392
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23394
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23397
save_CXXFLAGS="$CXXFLAGS"
23398
kde_safe_LIBS="$LIBS"
23399
LIBS="$LIBS $X_EXTRA_LIBS"
23400
if test "$GXX" = "yes"; then
23401
CXXFLAGS="$CXXFLAGS -pedantic-errors"
23403
cat >conftest.$ac_ext <<_ACEOF
23406
cat confdefs.h >>conftest.$ac_ext
23407
cat >>conftest.$ac_ext <<_ACEOF
23408
/* end confdefs.h. */
23411
#include <string.h>
23419
strlcpy(buf, "KDE function test", sizeof(buf));
23426
rm -f conftest.$ac_objext
23427
if { (ac_try="$ac_compile"
23428
case "(($ac_try" in
23429
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23430
*) ac_try_echo=$ac_try;;
23432
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23433
$as_echo "$ac_try_echo") >&5
23434
(eval "$ac_compile") 2>conftest.er1
23436
grep -v '^ *+' conftest.er1 >conftest.err
23438
cat conftest.err >&5
23439
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23440
(exit $ac_status); } && {
23441
test -z "$ac_cxx_werror_flag" ||
23442
test ! -s conftest.err
23443
} && test -s conftest.$ac_objext; then
23444
kde_cv_func_strlcpy=yes
23446
$as_echo "$as_me: failed program was:" >&5
23447
sed 's/^/| /' conftest.$ac_ext >&5
23449
kde_cv_func_strlcpy=no
23452
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23453
CXXFLAGS="$save_CXXFLAGS"
23454
LIBS="$kde_safe_LIBS"
23456
ac_cpp='$CPP $CPPFLAGS'
23457
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23458
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23459
ac_compiler_gnu=$ac_cv_c_compiler_gnu
23465
{ $as_echo "$as_me:$LINENO: result: $kde_cv_func_strlcpy" >&5
23466
$as_echo "$kde_cv_func_strlcpy" >&6; }
23468
{ $as_echo "$as_me:$LINENO: checking if strlcpy needs custom prototype" >&5
23469
$as_echo_n "checking if strlcpy needs custom prototype... " >&6; }
23470
if test "${kde_cv_proto_strlcpy+set}" = set; then
23471
$as_echo_n "(cached) " >&6
23474
if test "x$kde_cv_func_strlcpy" = xyes; then
23475
kde_cv_proto_strlcpy=no
23478
setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat)
23479
kde_cv_proto_strlcpy="yes - in libkdefakes"
23482
kde_cv_proto_strlcpy=unknown
23487
if test "x$kde_cv_proto_strlcpy" = xunknown; then
23491
ac_cpp='$CXXCPP $CPPFLAGS'
23492
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23493
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23494
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23496
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
23499
kde_safe_libs=$LIBS
23500
LIBS="$LIBS $X_EXTRA_LIBS"
23501
cat >conftest.$ac_ext <<_ACEOF
23504
cat confdefs.h >>conftest.$ac_ext
23505
cat >>conftest.$ac_ext <<_ACEOF
23506
/* end confdefs.h. */
23509
#include <string.h>
23512
extern "C" unsigned long strlcpy(char*, const char*, unsigned long);
23519
strlcpy(buf, "KDE function test", sizeof(buf));
23526
rm -f conftest.$ac_objext conftest$ac_exeext
23527
if { (ac_try="$ac_link"
23528
case "(($ac_try" in
23529
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23530
*) ac_try_echo=$ac_try;;
23532
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23533
$as_echo "$ac_try_echo") >&5
23534
(eval "$ac_link") 2>conftest.er1
23536
grep -v '^ *+' conftest.er1 >conftest.err
23538
cat conftest.err >&5
23539
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23540
(exit $ac_status); } && {
23541
test -z "$ac_cxx_werror_flag" ||
23542
test ! -s conftest.err
23543
} && test -s conftest$ac_exeext && {
23544
test "$cross_compiling" = yes ||
23545
$as_test_x conftest$ac_exeext
23547
kde_cv_func_strlcpy=yes
23548
kde_cv_proto_strlcpy=yes
23550
$as_echo "$as_me: failed program was:" >&5
23551
sed 's/^/| /' conftest.$ac_ext >&5
23553
kde_cv_proto_strlcpy="strlcpy unavailable"
23557
rm -rf conftest.dSYM
23558
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23559
conftest$ac_exeext conftest.$ac_ext
23560
LIBS=$kde_safe_libs
23562
ac_cpp='$CPP $CPPFLAGS'
23563
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23564
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23565
ac_compiler_gnu=$ac_cv_c_compiler_gnu
23571
{ $as_echo "$as_me:$LINENO: result: $kde_cv_proto_strlcpy" >&5
23572
$as_echo "$kde_cv_proto_strlcpy" >&6; }
23574
if test "x$kde_cv_func_strlcpy" = xyes; then
23576
cat >>confdefs.h <<\_ACEOF
23577
#define HAVE_STRLCPY 1
23582
if test "x$kde_cv_proto_strlcpy" = xno; then
23584
cat >>confdefs.h <<\_ACEOF
23585
#define HAVE_STRLCPY_PROTO 1
23595
{ $as_echo "$as_me:$LINENO: checking for main in -lutil" >&5
23596
$as_echo_n "checking for main in -lutil... " >&6; }
23597
if test "${ac_cv_lib_util_main+set}" = set; then
23598
$as_echo_n "(cached) " >&6
23600
ac_check_lib_save_LIBS=$LIBS
23601
LIBS="-lutil $LIBS"
23602
cat >conftest.$ac_ext <<_ACEOF
23605
cat confdefs.h >>conftest.$ac_ext
23606
cat >>conftest.$ac_ext <<_ACEOF
23607
/* end confdefs.h. */
23618
rm -f conftest.$ac_objext conftest$ac_exeext
23619
if { (ac_try="$ac_link"
23620
case "(($ac_try" in
23621
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23622
*) ac_try_echo=$ac_try;;
23624
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23625
$as_echo "$ac_try_echo") >&5
23626
(eval "$ac_link") 2>conftest.er1
23628
grep -v '^ *+' conftest.er1 >conftest.err
23630
cat conftest.err >&5
23631
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23632
(exit $ac_status); } && {
23633
test -z "$ac_c_werror_flag" ||
23634
test ! -s conftest.err
23635
} && test -s conftest$ac_exeext && {
23636
test "$cross_compiling" = yes ||
23637
$as_test_x conftest$ac_exeext
23639
ac_cv_lib_util_main=yes
23641
$as_echo "$as_me: failed program was:" >&5
23642
sed 's/^/| /' conftest.$ac_ext >&5
23644
ac_cv_lib_util_main=no
23647
rm -rf conftest.dSYM
23648
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23649
conftest$ac_exeext conftest.$ac_ext
23650
LIBS=$ac_check_lib_save_LIBS
23652
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_main" >&5
23653
$as_echo "$ac_cv_lib_util_main" >&6; }
23654
if test $ac_cv_lib_util_main = yes; then
23658
{ $as_echo "$as_me:$LINENO: checking for main in -lcompat" >&5
23659
$as_echo_n "checking for main in -lcompat... " >&6; }
23660
if test "${ac_cv_lib_compat_main+set}" = set; then
23661
$as_echo_n "(cached) " >&6
23663
ac_check_lib_save_LIBS=$LIBS
23664
LIBS="-lcompat $LIBS"
23665
cat >conftest.$ac_ext <<_ACEOF
23668
cat confdefs.h >>conftest.$ac_ext
23669
cat >>conftest.$ac_ext <<_ACEOF
23670
/* end confdefs.h. */
23681
rm -f conftest.$ac_objext conftest$ac_exeext
23682
if { (ac_try="$ac_link"
23683
case "(($ac_try" in
23684
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23685
*) ac_try_echo=$ac_try;;
23687
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23688
$as_echo "$ac_try_echo") >&5
23689
(eval "$ac_link") 2>conftest.er1
23691
grep -v '^ *+' conftest.er1 >conftest.err
23693
cat conftest.err >&5
23694
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23695
(exit $ac_status); } && {
23696
test -z "$ac_c_werror_flag" ||
23697
test ! -s conftest.err
23698
} && test -s conftest$ac_exeext && {
23699
test "$cross_compiling" = yes ||
23700
$as_test_x conftest$ac_exeext
23702
ac_cv_lib_compat_main=yes
23704
$as_echo "$as_me: failed program was:" >&5
23705
sed 's/^/| /' conftest.$ac_ext >&5
23707
ac_cv_lib_compat_main=no
23710
rm -rf conftest.dSYM
23711
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23712
conftest$ac_exeext conftest.$ac_ext
23713
LIBS=$ac_check_lib_save_LIBS
23715
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_compat_main" >&5
23716
$as_echo "$ac_cv_lib_compat_main" >&6; }
23717
if test $ac_cv_lib_compat_main = yes; then
23718
LIBCOMPAT="-lcompat"
23722
{ $as_echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
23723
$as_echo_n "checking for crypt in -lcrypt... " >&6; }
23724
if test "${ac_cv_lib_crypt_crypt+set}" = set; then
23725
$as_echo_n "(cached) " >&6
23727
ac_check_lib_save_LIBS=$LIBS
23728
LIBS="-lcrypt $LIBS"
23729
cat >conftest.$ac_ext <<_ACEOF
23732
cat confdefs.h >>conftest.$ac_ext
23733
cat >>conftest.$ac_ext <<_ACEOF
23734
/* end confdefs.h. */
23736
/* Override any GCC internal prototype to avoid an error.
23737
Use char because int might match the return type of a GCC
23738
builtin and then its argument prototype would still apply. */
23751
rm -f conftest.$ac_objext conftest$ac_exeext
23752
if { (ac_try="$ac_link"
23753
case "(($ac_try" in
23754
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23755
*) ac_try_echo=$ac_try;;
23757
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23758
$as_echo "$ac_try_echo") >&5
23759
(eval "$ac_link") 2>conftest.er1
23761
grep -v '^ *+' conftest.er1 >conftest.err
23763
cat conftest.err >&5
23764
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23765
(exit $ac_status); } && {
23766
test -z "$ac_c_werror_flag" ||
23767
test ! -s conftest.err
23768
} && test -s conftest$ac_exeext && {
23769
test "$cross_compiling" = yes ||
23770
$as_test_x conftest$ac_exeext
23772
ac_cv_lib_crypt_crypt=yes
23774
$as_echo "$as_me: failed program was:" >&5
23775
sed 's/^/| /' conftest.$ac_ext >&5
23777
ac_cv_lib_crypt_crypt=no
23780
rm -rf conftest.dSYM
23781
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23782
conftest$ac_exeext conftest.$ac_ext
23783
LIBS=$ac_check_lib_save_LIBS
23785
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
23786
$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23787
if test $ac_cv_lib_crypt_crypt = yes; then
23788
LIBCRYPT="-lcrypt"; kde_have_crypt=yes
23790
{ $as_echo "$as_me:$LINENO: checking for crypt in -lc" >&5
23791
$as_echo_n "checking for crypt in -lc... " >&6; }
23792
if test "${ac_cv_lib_c_crypt+set}" = set; then
23793
$as_echo_n "(cached) " >&6
23795
ac_check_lib_save_LIBS=$LIBS
23797
cat >conftest.$ac_ext <<_ACEOF
23800
cat confdefs.h >>conftest.$ac_ext
23801
cat >>conftest.$ac_ext <<_ACEOF
23802
/* end confdefs.h. */
23804
/* Override any GCC internal prototype to avoid an error.
23805
Use char because int might match the return type of a GCC
23806
builtin and then its argument prototype would still apply. */
23819
rm -f conftest.$ac_objext conftest$ac_exeext
23820
if { (ac_try="$ac_link"
23821
case "(($ac_try" in
23822
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23823
*) ac_try_echo=$ac_try;;
23825
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23826
$as_echo "$ac_try_echo") >&5
23827
(eval "$ac_link") 2>conftest.er1
23829
grep -v '^ *+' conftest.er1 >conftest.err
23831
cat conftest.err >&5
23832
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23833
(exit $ac_status); } && {
23834
test -z "$ac_c_werror_flag" ||
23835
test ! -s conftest.err
23836
} && test -s conftest$ac_exeext && {
23837
test "$cross_compiling" = yes ||
23838
$as_test_x conftest$ac_exeext
23840
ac_cv_lib_c_crypt=yes
23842
$as_echo "$as_me: failed program was:" >&5
23843
sed 's/^/| /' conftest.$ac_ext >&5
23845
ac_cv_lib_c_crypt=no
23848
rm -rf conftest.dSYM
23849
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23850
conftest$ac_exeext conftest.$ac_ext
23851
LIBS=$ac_check_lib_save_LIBS
23853
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_c_crypt" >&5
23854
$as_echo "$ac_cv_lib_c_crypt" >&6; }
23855
if test $ac_cv_lib_c_crypt = yes; then
23859
{ $as_echo "$as_me:$LINENO: WARNING: you have no crypt in either libcrypt or libc.
23860
You should install libcrypt from another source or configure with PAM
23862
$as_echo "$as_me: WARNING: you have no crypt in either libcrypt or libc.
23863
You should install libcrypt from another source or configure with PAM
23872
if test $kde_have_crypt = yes; then
23874
cat >>confdefs.h <<_ACEOF
23875
#define HAVE_CRYPT 1
23880
{ $as_echo "$as_me:$LINENO: checking for socklen_t" >&5
23881
$as_echo_n "checking for socklen_t... " >&6; }
23882
if test "${kde_cv_socklen_t+set}" = set; then
23883
$as_echo_n "(cached) " >&6
23887
ac_cpp='$CXXCPP $CPPFLAGS'
23888
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23889
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23890
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23892
kde_cv_socklen_t=no
23893
cat >conftest.$ac_ext <<_ACEOF
23896
cat confdefs.h >>conftest.$ac_ext
23897
cat >>conftest.$ac_ext <<_ACEOF
23898
/* end confdefs.h. */
23900
#include <sys/types.h>
23901
#include <sys/socket.h>
23908
getpeername(0,0,&len);
23914
rm -f conftest.$ac_objext
23915
if { (ac_try="$ac_compile"
23916
case "(($ac_try" in
23917
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23918
*) ac_try_echo=$ac_try;;
23920
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23921
$as_echo "$ac_try_echo") >&5
23922
(eval "$ac_compile") 2>conftest.er1
23924
grep -v '^ *+' conftest.er1 >conftest.err
23926
cat conftest.err >&5
23927
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928
(exit $ac_status); } && {
23929
test -z "$ac_cxx_werror_flag" ||
23930
test ! -s conftest.err
23931
} && test -s conftest.$ac_objext; then
23933
kde_cv_socklen_t=yes
23934
kde_cv_socklen_t_equiv=socklen_t
23937
$as_echo "$as_me: failed program was:" >&5
23938
sed 's/^/| /' conftest.$ac_ext >&5
23943
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23945
ac_cpp='$CPP $CPPFLAGS'
23946
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23947
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23948
ac_compiler_gnu=$ac_cv_c_compiler_gnu
23953
{ $as_echo "$as_me:$LINENO: result: $kde_cv_socklen_t" >&5
23954
$as_echo "$kde_cv_socklen_t" >&6; }
23955
if test $kde_cv_socklen_t = no; then
23956
{ $as_echo "$as_me:$LINENO: checking for socklen_t equivalent for socket functions" >&5
23957
$as_echo_n "checking for socklen_t equivalent for socket functions... " >&6; }
23958
if test "${kde_cv_socklen_t_equiv+set}" = set; then
23959
$as_echo_n "(cached) " >&6
23962
kde_cv_socklen_t_equiv=int
23964
ac_cpp='$CXXCPP $CPPFLAGS'
23965
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23966
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23967
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23969
for t in int size_t unsigned long "unsigned long"; do
23970
cat >conftest.$ac_ext <<_ACEOF
23973
cat confdefs.h >>conftest.$ac_ext
23974
cat >>conftest.$ac_ext <<_ACEOF
23975
/* end confdefs.h. */
23977
#include <sys/types.h>
23978
#include <sys/socket.h>
23985
getpeername(0,0,&len);
23991
rm -f conftest.$ac_objext
23992
if { (ac_try="$ac_compile"
23993
case "(($ac_try" in
23994
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23995
*) ac_try_echo=$ac_try;;
23997
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23998
$as_echo "$ac_try_echo") >&5
23999
(eval "$ac_compile") 2>conftest.er1
24001
grep -v '^ *+' conftest.er1 >conftest.err
24003
cat conftest.err >&5
24004
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24005
(exit $ac_status); } && {
24006
test -z "$ac_cxx_werror_flag" ||
24007
test ! -s conftest.err
24008
} && test -s conftest.$ac_objext; then
24010
kde_cv_socklen_t_equiv="$t"
24014
$as_echo "$as_me: failed program was:" >&5
24015
sed 's/^/| /' conftest.$ac_ext >&5
24020
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24023
ac_cpp='$CPP $CPPFLAGS'
24024
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24025
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24026
ac_compiler_gnu=$ac_cv_c_compiler_gnu
24031
{ $as_echo "$as_me:$LINENO: result: $kde_cv_socklen_t_equiv" >&5
24032
$as_echo "$kde_cv_socklen_t_equiv" >&6; }
24035
cat >>confdefs.h <<_ACEOF
24036
#define kde_socklen_t $kde_cv_socklen_t_equiv
24040
cat >>confdefs.h <<_ACEOF
24041
#define ksize_t $kde_cv_socklen_t_equiv
24045
{ $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
24046
$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
24047
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
24048
$as_echo_n "(cached) " >&6
24050
ac_check_lib_save_LIBS=$LIBS
24051
LIBS="-ldnet $LIBS"
24052
cat >conftest.$ac_ext <<_ACEOF
24055
cat confdefs.h >>conftest.$ac_ext
24056
cat >>conftest.$ac_ext <<_ACEOF
24057
/* end confdefs.h. */
24059
/* Override any GCC internal prototype to avoid an error.
24060
Use char because int might match the return type of a GCC
24061
builtin and then its argument prototype would still apply. */
24069
return dnet_ntoa ();
24074
rm -f conftest.$ac_objext conftest$ac_exeext
24075
if { (ac_try="$ac_link"
24076
case "(($ac_try" in
24077
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24078
*) ac_try_echo=$ac_try;;
24080
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24081
$as_echo "$ac_try_echo") >&5
24082
(eval "$ac_link") 2>conftest.er1
24084
grep -v '^ *+' conftest.er1 >conftest.err
24086
cat conftest.err >&5
24087
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24088
(exit $ac_status); } && {
24089
test -z "$ac_c_werror_flag" ||
24090
test ! -s conftest.err
24091
} && test -s conftest$ac_exeext && {
24092
test "$cross_compiling" = yes ||
24093
$as_test_x conftest$ac_exeext
24095
ac_cv_lib_dnet_dnet_ntoa=yes
24097
$as_echo "$as_me: failed program was:" >&5
24098
sed 's/^/| /' conftest.$ac_ext >&5
24100
ac_cv_lib_dnet_dnet_ntoa=no
24103
rm -rf conftest.dSYM
24104
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24105
conftest$ac_exeext conftest.$ac_ext
24106
LIBS=$ac_check_lib_save_LIBS
24108
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24109
$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
24110
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
24111
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24114
if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24115
{ $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
24116
$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
24117
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
24118
$as_echo_n "(cached) " >&6
24120
ac_check_lib_save_LIBS=$LIBS
24121
LIBS="-ldnet_stub $LIBS"
24122
cat >conftest.$ac_ext <<_ACEOF
24125
cat confdefs.h >>conftest.$ac_ext
24126
cat >>conftest.$ac_ext <<_ACEOF
24127
/* end confdefs.h. */
24129
/* Override any GCC internal prototype to avoid an error.
24130
Use char because int might match the return type of a GCC
24131
builtin and then its argument prototype would still apply. */
24139
return dnet_ntoa ();
24144
rm -f conftest.$ac_objext conftest$ac_exeext
24145
if { (ac_try="$ac_link"
24146
case "(($ac_try" in
24147
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24148
*) ac_try_echo=$ac_try;;
24150
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24151
$as_echo "$ac_try_echo") >&5
24152
(eval "$ac_link") 2>conftest.er1
24154
grep -v '^ *+' conftest.er1 >conftest.err
24156
cat conftest.err >&5
24157
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24158
(exit $ac_status); } && {
24159
test -z "$ac_c_werror_flag" ||
24160
test ! -s conftest.err
24161
} && test -s conftest$ac_exeext && {
24162
test "$cross_compiling" = yes ||
24163
$as_test_x conftest$ac_exeext
24165
ac_cv_lib_dnet_stub_dnet_ntoa=yes
24167
$as_echo "$as_me: failed program was:" >&5
24168
sed 's/^/| /' conftest.$ac_ext >&5
24170
ac_cv_lib_dnet_stub_dnet_ntoa=no
24173
rm -rf conftest.dSYM
24174
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24175
conftest$ac_exeext conftest.$ac_ext
24176
LIBS=$ac_check_lib_save_LIBS
24178
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24179
$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
24180
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
24181
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24185
{ $as_echo "$as_me:$LINENO: checking for inet_ntoa" >&5
24186
$as_echo_n "checking for inet_ntoa... " >&6; }
24187
if test "${ac_cv_func_inet_ntoa+set}" = set; then
24188
$as_echo_n "(cached) " >&6
24190
cat >conftest.$ac_ext <<_ACEOF
24193
cat confdefs.h >>conftest.$ac_ext
24194
cat >>conftest.$ac_ext <<_ACEOF
24195
/* end confdefs.h. */
24196
/* Define inet_ntoa to an innocuous variant, in case <limits.h> declares inet_ntoa.
24197
For example, HP-UX 11i <limits.h> declares gettimeofday. */
24198
#define inet_ntoa innocuous_inet_ntoa
24200
/* System header to define __stub macros and hopefully few prototypes,
24201
which can conflict with char inet_ntoa (); below.
24202
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24203
<limits.h> exists even on freestanding compilers. */
24206
# include <limits.h>
24208
# include <assert.h>
24213
/* Override any GCC internal prototype to avoid an error.
24214
Use char because int might match the return type of a GCC
24215
builtin and then its argument prototype would still apply. */
24220
/* The GNU C library defines this for functions which it implements
24221
to always fail with ENOSYS. Some functions are actually named
24222
something starting with __ and the normal name is an alias. */
24223
#if defined __stub_inet_ntoa || defined __stub___inet_ntoa
24230
return inet_ntoa ();
24235
rm -f conftest.$ac_objext conftest$ac_exeext
24236
if { (ac_try="$ac_link"
24237
case "(($ac_try" in
24238
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24239
*) ac_try_echo=$ac_try;;
24241
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24242
$as_echo "$ac_try_echo") >&5
24243
(eval "$ac_link") 2>conftest.er1
24245
grep -v '^ *+' conftest.er1 >conftest.err
24247
cat conftest.err >&5
24248
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24249
(exit $ac_status); } && {
24250
test -z "$ac_c_werror_flag" ||
24251
test ! -s conftest.err
24252
} && test -s conftest$ac_exeext && {
24253
test "$cross_compiling" = yes ||
24254
$as_test_x conftest$ac_exeext
24256
ac_cv_func_inet_ntoa=yes
24258
$as_echo "$as_me: failed program was:" >&5
24259
sed 's/^/| /' conftest.$ac_ext >&5
24261
ac_cv_func_inet_ntoa=no
24264
rm -rf conftest.dSYM
24265
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24266
conftest$ac_exeext conftest.$ac_ext
24268
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_inet_ntoa" >&5
24269
$as_echo "$ac_cv_func_inet_ntoa" >&6; }
24271
if test $ac_cv_func_inet_ntoa = no; then
24272
{ $as_echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
24273
$as_echo_n "checking for inet_ntoa in -lnsl... " >&6; }
24274
if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
24275
$as_echo_n "(cached) " >&6
24277
ac_check_lib_save_LIBS=$LIBS
24279
cat >conftest.$ac_ext <<_ACEOF
24282
cat confdefs.h >>conftest.$ac_ext
24283
cat >>conftest.$ac_ext <<_ACEOF
24284
/* end confdefs.h. */
24286
/* Override any GCC internal prototype to avoid an error.
24287
Use char because int might match the return type of a GCC
24288
builtin and then its argument prototype would still apply. */
24296
return inet_ntoa ();
24301
rm -f conftest.$ac_objext conftest$ac_exeext
24302
if { (ac_try="$ac_link"
24303
case "(($ac_try" in
24304
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24305
*) ac_try_echo=$ac_try;;
24307
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24308
$as_echo "$ac_try_echo") >&5
24309
(eval "$ac_link") 2>conftest.er1
24311
grep -v '^ *+' conftest.er1 >conftest.err
24313
cat conftest.err >&5
24314
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24315
(exit $ac_status); } && {
24316
test -z "$ac_c_werror_flag" ||
24317
test ! -s conftest.err
24318
} && test -s conftest$ac_exeext && {
24319
test "$cross_compiling" = yes ||
24320
$as_test_x conftest$ac_exeext
24322
ac_cv_lib_nsl_inet_ntoa=yes
24324
$as_echo "$as_me: failed program was:" >&5
24325
sed 's/^/| /' conftest.$ac_ext >&5
24327
ac_cv_lib_nsl_inet_ntoa=no
24330
rm -rf conftest.dSYM
24331
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24332
conftest$ac_exeext conftest.$ac_ext
24333
LIBS=$ac_check_lib_save_LIBS
24335
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
24336
$as_echo "$ac_cv_lib_nsl_inet_ntoa" >&6; }
24337
if test $ac_cv_lib_nsl_inet_ntoa = yes; then
24338
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24342
{ $as_echo "$as_me:$LINENO: checking for connect" >&5
24343
$as_echo_n "checking for connect... " >&6; }
24344
if test "${ac_cv_func_connect+set}" = set; then
24345
$as_echo_n "(cached) " >&6
24347
cat >conftest.$ac_ext <<_ACEOF
24350
cat confdefs.h >>conftest.$ac_ext
24351
cat >>conftest.$ac_ext <<_ACEOF
24352
/* end confdefs.h. */
24353
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
24354
For example, HP-UX 11i <limits.h> declares gettimeofday. */
24355
#define connect innocuous_connect
24357
/* System header to define __stub macros and hopefully few prototypes,
24358
which can conflict with char connect (); below.
24359
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24360
<limits.h> exists even on freestanding compilers. */
24363
# include <limits.h>
24365
# include <assert.h>
24370
/* Override any GCC internal prototype to avoid an error.
24371
Use char because int might match the return type of a GCC
24372
builtin and then its argument prototype would still apply. */
24377
/* The GNU C library defines this for functions which it implements
24378
to always fail with ENOSYS. Some functions are actually named
24379
something starting with __ and the normal name is an alias. */
24380
#if defined __stub_connect || defined __stub___connect
24392
rm -f conftest.$ac_objext conftest$ac_exeext
24393
if { (ac_try="$ac_link"
24394
case "(($ac_try" in
24395
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24396
*) ac_try_echo=$ac_try;;
24398
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24399
$as_echo "$ac_try_echo") >&5
24400
(eval "$ac_link") 2>conftest.er1
24402
grep -v '^ *+' conftest.er1 >conftest.err
24404
cat conftest.err >&5
24405
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24406
(exit $ac_status); } && {
24407
test -z "$ac_c_werror_flag" ||
24408
test ! -s conftest.err
24409
} && test -s conftest$ac_exeext && {
24410
test "$cross_compiling" = yes ||
24411
$as_test_x conftest$ac_exeext
24413
ac_cv_func_connect=yes
24415
$as_echo "$as_me: failed program was:" >&5
24416
sed 's/^/| /' conftest.$ac_ext >&5
24418
ac_cv_func_connect=no
24421
rm -rf conftest.dSYM
24422
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24423
conftest$ac_exeext conftest.$ac_ext
24425
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
24426
$as_echo "$ac_cv_func_connect" >&6; }
24428
if test $ac_cv_func_connect = no; then
24429
{ $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24430
$as_echo_n "checking for connect in -lsocket... " >&6; }
24431
if test "${ac_cv_lib_socket_connect+set}" = set; then
24432
$as_echo_n "(cached) " >&6
24434
ac_check_lib_save_LIBS=$LIBS
24435
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24436
cat >conftest.$ac_ext <<_ACEOF
24439
cat confdefs.h >>conftest.$ac_ext
24440
cat >>conftest.$ac_ext <<_ACEOF
24441
/* end confdefs.h. */
24443
/* Override any GCC internal prototype to avoid an error.
24444
Use char because int might match the return type of a GCC
24445
builtin and then its argument prototype would still apply. */
24458
rm -f conftest.$ac_objext conftest$ac_exeext
24459
if { (ac_try="$ac_link"
24460
case "(($ac_try" in
24461
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24462
*) ac_try_echo=$ac_try;;
24464
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24465
$as_echo "$ac_try_echo") >&5
24466
(eval "$ac_link") 2>conftest.er1
24468
grep -v '^ *+' conftest.er1 >conftest.err
24470
cat conftest.err >&5
24471
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24472
(exit $ac_status); } && {
24473
test -z "$ac_c_werror_flag" ||
24474
test ! -s conftest.err
24475
} && test -s conftest$ac_exeext && {
24476
test "$cross_compiling" = yes ||
24477
$as_test_x conftest$ac_exeext
24479
ac_cv_lib_socket_connect=yes
24481
$as_echo "$as_me: failed program was:" >&5
24482
sed 's/^/| /' conftest.$ac_ext >&5
24484
ac_cv_lib_socket_connect=no
24487
rm -rf conftest.dSYM
24488
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24489
conftest$ac_exeext conftest.$ac_ext
24490
LIBS=$ac_check_lib_save_LIBS
24492
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24493
$as_echo "$ac_cv_lib_socket_connect" >&6; }
24494
if test $ac_cv_lib_socket_connect = yes; then
24495
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24500
{ $as_echo "$as_me:$LINENO: checking for remove" >&5
24501
$as_echo_n "checking for remove... " >&6; }
24502
if test "${ac_cv_func_remove+set}" = set; then
24503
$as_echo_n "(cached) " >&6
24505
cat >conftest.$ac_ext <<_ACEOF
24508
cat confdefs.h >>conftest.$ac_ext
24509
cat >>conftest.$ac_ext <<_ACEOF
24510
/* end confdefs.h. */
24511
/* Define remove to an innocuous variant, in case <limits.h> declares remove.
24512
For example, HP-UX 11i <limits.h> declares gettimeofday. */
24513
#define remove innocuous_remove
24515
/* System header to define __stub macros and hopefully few prototypes,
24516
which can conflict with char remove (); below.
24517
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24518
<limits.h> exists even on freestanding compilers. */
24521
# include <limits.h>
24523
# include <assert.h>
24528
/* Override any GCC internal prototype to avoid an error.
24529
Use char because int might match the return type of a GCC
24530
builtin and then its argument prototype would still apply. */
24535
/* The GNU C library defines this for functions which it implements
24536
to always fail with ENOSYS. Some functions are actually named
24537
something starting with __ and the normal name is an alias. */
24538
#if defined __stub_remove || defined __stub___remove
24550
rm -f conftest.$ac_objext conftest$ac_exeext
24551
if { (ac_try="$ac_link"
24552
case "(($ac_try" in
24553
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24554
*) ac_try_echo=$ac_try;;
24556
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24557
$as_echo "$ac_try_echo") >&5
24558
(eval "$ac_link") 2>conftest.er1
24560
grep -v '^ *+' conftest.er1 >conftest.err
24562
cat conftest.err >&5
24563
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24564
(exit $ac_status); } && {
24565
test -z "$ac_c_werror_flag" ||
24566
test ! -s conftest.err
24567
} && test -s conftest$ac_exeext && {
24568
test "$cross_compiling" = yes ||
24569
$as_test_x conftest$ac_exeext
24571
ac_cv_func_remove=yes
24573
$as_echo "$as_me: failed program was:" >&5
24574
sed 's/^/| /' conftest.$ac_ext >&5
24576
ac_cv_func_remove=no
24579
rm -rf conftest.dSYM
24580
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24581
conftest$ac_exeext conftest.$ac_ext
24583
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
24584
$as_echo "$ac_cv_func_remove" >&6; }
24586
if test $ac_cv_func_remove = no; then
24587
{ $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
24588
$as_echo_n "checking for remove in -lposix... " >&6; }
24589
if test "${ac_cv_lib_posix_remove+set}" = set; then
24590
$as_echo_n "(cached) " >&6
24592
ac_check_lib_save_LIBS=$LIBS
24593
LIBS="-lposix $LIBS"
24594
cat >conftest.$ac_ext <<_ACEOF
24597
cat confdefs.h >>conftest.$ac_ext
24598
cat >>conftest.$ac_ext <<_ACEOF
24599
/* end confdefs.h. */
24601
/* Override any GCC internal prototype to avoid an error.
24602
Use char because int might match the return type of a GCC
24603
builtin and then its argument prototype would still apply. */
24616
rm -f conftest.$ac_objext conftest$ac_exeext
24617
if { (ac_try="$ac_link"
24618
case "(($ac_try" in
24619
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24620
*) ac_try_echo=$ac_try;;
24622
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24623
$as_echo "$ac_try_echo") >&5
24624
(eval "$ac_link") 2>conftest.er1
24626
grep -v '^ *+' conftest.er1 >conftest.err
24628
cat conftest.err >&5
24629
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24630
(exit $ac_status); } && {
24631
test -z "$ac_c_werror_flag" ||
24632
test ! -s conftest.err
24633
} && test -s conftest$ac_exeext && {
24634
test "$cross_compiling" = yes ||
24635
$as_test_x conftest$ac_exeext
24637
ac_cv_lib_posix_remove=yes
24639
$as_echo "$as_me: failed program was:" >&5
24640
sed 's/^/| /' conftest.$ac_ext >&5
24642
ac_cv_lib_posix_remove=no
24645
rm -rf conftest.dSYM
24646
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24647
conftest$ac_exeext conftest.$ac_ext
24648
LIBS=$ac_check_lib_save_LIBS
24650
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
24651
$as_echo "$ac_cv_lib_posix_remove" >&6; }
24652
if test $ac_cv_lib_posix_remove = yes; then
24653
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24658
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24659
{ $as_echo "$as_me:$LINENO: checking for shmat" >&5
24660
$as_echo_n "checking for shmat... " >&6; }
24661
if test "${ac_cv_func_shmat+set}" = set; then
24662
$as_echo_n "(cached) " >&6
24664
cat >conftest.$ac_ext <<_ACEOF
24667
cat confdefs.h >>conftest.$ac_ext
24668
cat >>conftest.$ac_ext <<_ACEOF
24669
/* end confdefs.h. */
24670
/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
24671
For example, HP-UX 11i <limits.h> declares gettimeofday. */
24672
#define shmat innocuous_shmat
24674
/* System header to define __stub macros and hopefully few prototypes,
24675
which can conflict with char shmat (); below.
24676
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24677
<limits.h> exists even on freestanding compilers. */
24680
# include <limits.h>
24682
# include <assert.h>
24687
/* Override any GCC internal prototype to avoid an error.
24688
Use char because int might match the return type of a GCC
24689
builtin and then its argument prototype would still apply. */
24694
/* The GNU C library defines this for functions which it implements
24695
to always fail with ENOSYS. Some functions are actually named
24696
something starting with __ and the normal name is an alias. */
24697
#if defined __stub_shmat || defined __stub___shmat
24709
rm -f conftest.$ac_objext conftest$ac_exeext
24710
if { (ac_try="$ac_link"
24711
case "(($ac_try" in
24712
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24713
*) ac_try_echo=$ac_try;;
24715
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24716
$as_echo "$ac_try_echo") >&5
24717
(eval "$ac_link") 2>conftest.er1
24719
grep -v '^ *+' conftest.er1 >conftest.err
24721
cat conftest.err >&5
24722
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24723
(exit $ac_status); } && {
24724
test -z "$ac_c_werror_flag" ||
24725
test ! -s conftest.err
24726
} && test -s conftest$ac_exeext && {
24727
test "$cross_compiling" = yes ||
24728
$as_test_x conftest$ac_exeext
24730
ac_cv_func_shmat=yes
24732
$as_echo "$as_me: failed program was:" >&5
24733
sed 's/^/| /' conftest.$ac_ext >&5
24735
ac_cv_func_shmat=no
24738
rm -rf conftest.dSYM
24739
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24740
conftest$ac_exeext conftest.$ac_ext
24742
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
24743
$as_echo "$ac_cv_func_shmat" >&6; }
24744
if test $ac_cv_func_shmat = yes; then
24747
{ $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
24748
$as_echo_n "checking for shmat in -lipc... " >&6; }
24749
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
24750
$as_echo_n "(cached) " >&6
24752
ac_check_lib_save_LIBS=$LIBS
24754
cat >conftest.$ac_ext <<_ACEOF
24757
cat confdefs.h >>conftest.$ac_ext
24758
cat >>conftest.$ac_ext <<_ACEOF
24759
/* end confdefs.h. */
24761
/* Override any GCC internal prototype to avoid an error.
24762
Use char because int might match the return type of a GCC
24763
builtin and then its argument prototype would still apply. */
24776
rm -f conftest.$ac_objext conftest$ac_exeext
24777
if { (ac_try="$ac_link"
24778
case "(($ac_try" in
24779
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24780
*) ac_try_echo=$ac_try;;
24782
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24783
$as_echo "$ac_try_echo") >&5
24784
(eval "$ac_link") 2>conftest.er1
24786
grep -v '^ *+' conftest.er1 >conftest.err
24788
cat conftest.err >&5
24789
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24790
(exit $ac_status); } && {
24791
test -z "$ac_c_werror_flag" ||
24792
test ! -s conftest.err
24793
} && test -s conftest$ac_exeext && {
24794
test "$cross_compiling" = yes ||
24795
$as_test_x conftest$ac_exeext
24797
ac_cv_lib_ipc_shmat=yes
24799
$as_echo "$as_me: failed program was:" >&5
24800
sed 's/^/| /' conftest.$ac_ext >&5
24802
ac_cv_lib_ipc_shmat=no
24805
rm -rf conftest.dSYM
24806
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24807
conftest$ac_exeext conftest.$ac_ext
24808
LIBS=$ac_check_lib_save_LIBS
24810
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
24811
$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
24812
if test $ac_cv_lib_ipc_shmat = yes; then
24813
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24819
# more headers that need to be explicitly included on darwin
24822
for ac_header in sys/types.h stdint.h
24824
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24825
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24826
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24827
$as_echo_n "checking for $ac_header... " >&6; }
24828
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24829
$as_echo_n "(cached) " >&6
24831
ac_res=`eval 'as_val=${'$as_ac_Header'}
24832
$as_echo "$as_val"'`
24833
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24834
$as_echo "$ac_res" >&6; }
24836
# Is the header compilable?
24837
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24838
$as_echo_n "checking $ac_header usability... " >&6; }
24839
cat >conftest.$ac_ext <<_ACEOF
24842
cat confdefs.h >>conftest.$ac_ext
24843
cat >>conftest.$ac_ext <<_ACEOF
24844
/* end confdefs.h. */
24845
$ac_includes_default
24846
#include <$ac_header>
24848
rm -f conftest.$ac_objext
24849
if { (ac_try="$ac_compile"
24850
case "(($ac_try" in
24851
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24852
*) ac_try_echo=$ac_try;;
24854
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24855
$as_echo "$ac_try_echo") >&5
24856
(eval "$ac_compile") 2>conftest.er1
24858
grep -v '^ *+' conftest.er1 >conftest.err
24860
cat conftest.err >&5
24861
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24862
(exit $ac_status); } && {
24863
test -z "$ac_c_werror_flag" ||
24864
test ! -s conftest.err
24865
} && test -s conftest.$ac_objext; then
24866
ac_header_compiler=yes
24868
$as_echo "$as_me: failed program was:" >&5
24869
sed 's/^/| /' conftest.$ac_ext >&5
24871
ac_header_compiler=no
24874
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24875
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24876
$as_echo "$ac_header_compiler" >&6; }
24878
# Is the header present?
24879
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24880
$as_echo_n "checking $ac_header presence... " >&6; }
24881
cat >conftest.$ac_ext <<_ACEOF
24884
cat confdefs.h >>conftest.$ac_ext
24885
cat >>conftest.$ac_ext <<_ACEOF
24886
/* end confdefs.h. */
24887
#include <$ac_header>
24889
if { (ac_try="$ac_cpp conftest.$ac_ext"
24890
case "(($ac_try" in
24891
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24892
*) ac_try_echo=$ac_try;;
24894
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24895
$as_echo "$ac_try_echo") >&5
24896
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24898
grep -v '^ *+' conftest.er1 >conftest.err
24900
cat conftest.err >&5
24901
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24902
(exit $ac_status); } >/dev/null && {
24903
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24904
test ! -s conftest.err
24906
ac_header_preproc=yes
24908
$as_echo "$as_me: failed program was:" >&5
24909
sed 's/^/| /' conftest.$ac_ext >&5
24911
ac_header_preproc=no
24914
rm -f conftest.err conftest.$ac_ext
24915
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24916
$as_echo "$ac_header_preproc" >&6; }
24918
# So? What about this header?
24919
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24921
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24922
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24923
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24924
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24925
ac_header_preproc=yes
24928
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24929
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24930
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24931
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24932
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24933
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24934
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24935
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24936
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24937
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24938
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24939
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24943
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24944
$as_echo_n "checking for $ac_header... " >&6; }
24945
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24946
$as_echo_n "(cached) " >&6
24948
eval "$as_ac_Header=\$ac_header_preproc"
24950
ac_res=`eval 'as_val=${'$as_ac_Header'}
24951
$as_echo "$as_val"'`
24952
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24953
$as_echo "$ac_res" >&6; }
24956
if test `eval 'as_val=${'$as_ac_Header'}
24957
$as_echo "$as_val"'` = yes; then
24958
cat >>confdefs.h <<_ACEOF
24959
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24967
# sys/bitypes.h is needed for uint32_t and friends on Tru64
24969
for ac_header in sys/bitypes.h
24971
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24972
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24973
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24974
$as_echo_n "checking for $ac_header... " >&6; }
24975
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24976
$as_echo_n "(cached) " >&6
24978
ac_res=`eval 'as_val=${'$as_ac_Header'}
24979
$as_echo "$as_val"'`
24980
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24981
$as_echo "$ac_res" >&6; }
24983
# Is the header compilable?
24984
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24985
$as_echo_n "checking $ac_header usability... " >&6; }
24986
cat >conftest.$ac_ext <<_ACEOF
24989
cat confdefs.h >>conftest.$ac_ext
24990
cat >>conftest.$ac_ext <<_ACEOF
24991
/* end confdefs.h. */
24992
$ac_includes_default
24993
#include <$ac_header>
24995
rm -f conftest.$ac_objext
24996
if { (ac_try="$ac_compile"
24997
case "(($ac_try" in
24998
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24999
*) ac_try_echo=$ac_try;;
25001
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25002
$as_echo "$ac_try_echo") >&5
25003
(eval "$ac_compile") 2>conftest.er1
25005
grep -v '^ *+' conftest.er1 >conftest.err
25007
cat conftest.err >&5
25008
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25009
(exit $ac_status); } && {
25010
test -z "$ac_c_werror_flag" ||
25011
test ! -s conftest.err
25012
} && test -s conftest.$ac_objext; then
25013
ac_header_compiler=yes
25015
$as_echo "$as_me: failed program was:" >&5
25016
sed 's/^/| /' conftest.$ac_ext >&5
25018
ac_header_compiler=no
25021
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25022
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25023
$as_echo "$ac_header_compiler" >&6; }
25025
# Is the header present?
25026
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25027
$as_echo_n "checking $ac_header presence... " >&6; }
25028
cat >conftest.$ac_ext <<_ACEOF
25031
cat confdefs.h >>conftest.$ac_ext
25032
cat >>conftest.$ac_ext <<_ACEOF
25033
/* end confdefs.h. */
25034
#include <$ac_header>
25036
if { (ac_try="$ac_cpp conftest.$ac_ext"
25037
case "(($ac_try" in
25038
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25039
*) ac_try_echo=$ac_try;;
25041
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25042
$as_echo "$ac_try_echo") >&5
25043
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25045
grep -v '^ *+' conftest.er1 >conftest.err
25047
cat conftest.err >&5
25048
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25049
(exit $ac_status); } >/dev/null && {
25050
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25051
test ! -s conftest.err
25053
ac_header_preproc=yes
25055
$as_echo "$as_me: failed program was:" >&5
25056
sed 's/^/| /' conftest.$ac_ext >&5
25058
ac_header_preproc=no
25061
rm -f conftest.err conftest.$ac_ext
25062
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25063
$as_echo "$ac_header_preproc" >&6; }
25065
# So? What about this header?
25066
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25068
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25069
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25070
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25071
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25072
ac_header_preproc=yes
25075
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25076
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25077
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25078
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25079
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25080
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25081
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25082
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25083
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25084
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25085
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25086
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25090
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25091
$as_echo_n "checking for $ac_header... " >&6; }
25092
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25093
$as_echo_n "(cached) " >&6
25095
eval "$as_ac_Header=\$ac_header_preproc"
25097
ac_res=`eval 'as_val=${'$as_ac_Header'}
25098
$as_echo "$as_val"'`
25099
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25100
$as_echo "$ac_res" >&6; }
25103
if test `eval 'as_val=${'$as_ac_Header'}
25104
$as_echo "$as_val"'` = yes; then
25105
cat >>confdefs.h <<_ACEOF
25106
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25114
# darwin requires a poll emulation library
25115
{ $as_echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
25116
$as_echo_n "checking for poll in -lpoll... " >&6; }
25117
if test "${ac_cv_lib_poll_poll+set}" = set; then
25118
$as_echo_n "(cached) " >&6
25120
ac_check_lib_save_LIBS=$LIBS
25121
LIBS="-lpoll $LIBS"
25122
cat >conftest.$ac_ext <<_ACEOF
25125
cat confdefs.h >>conftest.$ac_ext
25126
cat >>conftest.$ac_ext <<_ACEOF
25127
/* end confdefs.h. */
25129
/* Override any GCC internal prototype to avoid an error.
25130
Use char because int might match the return type of a GCC
25131
builtin and then its argument prototype would still apply. */
25144
rm -f conftest.$ac_objext conftest$ac_exeext
25145
if { (ac_try="$ac_link"
25146
case "(($ac_try" in
25147
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25148
*) ac_try_echo=$ac_try;;
25150
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25151
$as_echo "$ac_try_echo") >&5
25152
(eval "$ac_link") 2>conftest.er1
25154
grep -v '^ *+' conftest.er1 >conftest.err
25156
cat conftest.err >&5
25157
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25158
(exit $ac_status); } && {
25159
test -z "$ac_c_werror_flag" ||
25160
test ! -s conftest.err
25161
} && test -s conftest$ac_exeext && {
25162
test "$cross_compiling" = yes ||
25163
$as_test_x conftest$ac_exeext
25165
ac_cv_lib_poll_poll=yes
25167
$as_echo "$as_me: failed program was:" >&5
25168
sed 's/^/| /' conftest.$ac_ext >&5
25170
ac_cv_lib_poll_poll=no
25173
rm -rf conftest.dSYM
25174
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25175
conftest$ac_exeext conftest.$ac_ext
25176
LIBS=$ac_check_lib_save_LIBS
25178
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
25179
$as_echo "$ac_cv_lib_poll_poll" >&6; }
25180
if test $ac_cv_lib_poll_poll = yes; then
25185
# for some image handling on Mac OS X
25187
for ac_header in Carbon/Carbon.h
25189
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25190
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25191
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25192
$as_echo_n "checking for $ac_header... " >&6; }
25193
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25194
$as_echo_n "(cached) " >&6
25196
ac_res=`eval 'as_val=${'$as_ac_Header'}
25197
$as_echo "$as_val"'`
25198
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25199
$as_echo "$ac_res" >&6; }
25201
# Is the header compilable?
25202
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25203
$as_echo_n "checking $ac_header usability... " >&6; }
25204
cat >conftest.$ac_ext <<_ACEOF
25207
cat confdefs.h >>conftest.$ac_ext
25208
cat >>conftest.$ac_ext <<_ACEOF
25209
/* end confdefs.h. */
25210
$ac_includes_default
25211
#include <$ac_header>
25213
rm -f conftest.$ac_objext
25214
if { (ac_try="$ac_compile"
25215
case "(($ac_try" in
25216
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25217
*) ac_try_echo=$ac_try;;
25219
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25220
$as_echo "$ac_try_echo") >&5
25221
(eval "$ac_compile") 2>conftest.er1
25223
grep -v '^ *+' conftest.er1 >conftest.err
25225
cat conftest.err >&5
25226
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25227
(exit $ac_status); } && {
25228
test -z "$ac_c_werror_flag" ||
25229
test ! -s conftest.err
25230
} && test -s conftest.$ac_objext; then
25231
ac_header_compiler=yes
25233
$as_echo "$as_me: failed program was:" >&5
25234
sed 's/^/| /' conftest.$ac_ext >&5
25236
ac_header_compiler=no
25239
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25240
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25241
$as_echo "$ac_header_compiler" >&6; }
25243
# Is the header present?
25244
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25245
$as_echo_n "checking $ac_header presence... " >&6; }
25246
cat >conftest.$ac_ext <<_ACEOF
25249
cat confdefs.h >>conftest.$ac_ext
25250
cat >>conftest.$ac_ext <<_ACEOF
25251
/* end confdefs.h. */
25252
#include <$ac_header>
25254
if { (ac_try="$ac_cpp conftest.$ac_ext"
25255
case "(($ac_try" in
25256
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25257
*) ac_try_echo=$ac_try;;
25259
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25260
$as_echo "$ac_try_echo") >&5
25261
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25263
grep -v '^ *+' conftest.er1 >conftest.err
25265
cat conftest.err >&5
25266
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25267
(exit $ac_status); } >/dev/null && {
25268
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25269
test ! -s conftest.err
25271
ac_header_preproc=yes
25273
$as_echo "$as_me: failed program was:" >&5
25274
sed 's/^/| /' conftest.$ac_ext >&5
25276
ac_header_preproc=no
25279
rm -f conftest.err conftest.$ac_ext
25280
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25281
$as_echo "$ac_header_preproc" >&6; }
25283
# So? What about this header?
25284
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25286
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25287
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25288
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25289
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25290
ac_header_preproc=yes
25293
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25294
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25295
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25296
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25297
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25298
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25299
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25300
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25301
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25302
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25303
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25304
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25308
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25309
$as_echo_n "checking for $ac_header... " >&6; }
25310
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25311
$as_echo_n "(cached) " >&6
25313
eval "$as_ac_Header=\$ac_header_preproc"
25315
ac_res=`eval 'as_val=${'$as_ac_Header'}
25316
$as_echo "$as_val"'`
25317
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25318
$as_echo "$ac_res" >&6; }
25321
if test `eval 'as_val=${'$as_ac_Header'}
25322
$as_echo "$as_val"'` = yes; then
25323
cat >>confdefs.h <<_ACEOF
25324
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25332
# CoreAudio framework
25333
if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
25334
{ $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
25335
$as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
25336
if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
25337
$as_echo_n "(cached) " >&6
25339
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
25340
$as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
25342
# Is the header compilable?
25343
{ $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h usability" >&5
25344
$as_echo_n "checking CoreAudio/CoreAudio.h usability... " >&6; }
25345
cat >conftest.$ac_ext <<_ACEOF
25348
cat confdefs.h >>conftest.$ac_ext
25349
cat >>conftest.$ac_ext <<_ACEOF
25350
/* end confdefs.h. */
25351
$ac_includes_default
25352
#include <CoreAudio/CoreAudio.h>
25354
rm -f conftest.$ac_objext
25355
if { (ac_try="$ac_compile"
25356
case "(($ac_try" in
25357
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25358
*) ac_try_echo=$ac_try;;
25360
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25361
$as_echo "$ac_try_echo") >&5
25362
(eval "$ac_compile") 2>conftest.er1
25364
grep -v '^ *+' conftest.er1 >conftest.err
25366
cat conftest.err >&5
25367
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25368
(exit $ac_status); } && {
25369
test -z "$ac_c_werror_flag" ||
25370
test ! -s conftest.err
25371
} && test -s conftest.$ac_objext; then
25372
ac_header_compiler=yes
25374
$as_echo "$as_me: failed program was:" >&5
25375
sed 's/^/| /' conftest.$ac_ext >&5
25377
ac_header_compiler=no
25380
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25381
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25382
$as_echo "$ac_header_compiler" >&6; }
25384
# Is the header present?
25385
{ $as_echo "$as_me:$LINENO: checking CoreAudio/CoreAudio.h presence" >&5
25386
$as_echo_n "checking CoreAudio/CoreAudio.h presence... " >&6; }
25387
cat >conftest.$ac_ext <<_ACEOF
25390
cat confdefs.h >>conftest.$ac_ext
25391
cat >>conftest.$ac_ext <<_ACEOF
25392
/* end confdefs.h. */
25393
#include <CoreAudio/CoreAudio.h>
25395
if { (ac_try="$ac_cpp conftest.$ac_ext"
25396
case "(($ac_try" in
25397
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25398
*) ac_try_echo=$ac_try;;
25400
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25401
$as_echo "$ac_try_echo") >&5
25402
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25404
grep -v '^ *+' conftest.er1 >conftest.err
25406
cat conftest.err >&5
25407
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25408
(exit $ac_status); } >/dev/null && {
25409
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25410
test ! -s conftest.err
25412
ac_header_preproc=yes
25414
$as_echo "$as_me: failed program was:" >&5
25415
sed 's/^/| /' conftest.$ac_ext >&5
25417
ac_header_preproc=no
25420
rm -f conftest.err conftest.$ac_ext
25421
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25422
$as_echo "$ac_header_preproc" >&6; }
25424
# So? What about this header?
25425
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25427
{ $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&5
25428
$as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25429
{ $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&5
25430
$as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the compiler's result" >&2;}
25431
ac_header_preproc=yes
25434
{ $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&5
25435
$as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: present but cannot be compiled" >&2;}
25436
{ $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&5
25437
$as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: check for missing prerequisite headers?" >&2;}
25438
{ $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&5
25439
$as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: see the Autoconf documentation" >&2;}
25440
{ $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&5
25441
$as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: section \"Present But Cannot Be Compiled\"" >&2;}
25442
{ $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&5
25443
$as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: proceeding with the preprocessor's result" >&2;}
25444
{ $as_echo "$as_me:$LINENO: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&5
25445
$as_echo "$as_me: WARNING: CoreAudio/CoreAudio.h: in the future, the compiler will take precedence" >&2;}
25449
{ $as_echo "$as_me:$LINENO: checking for CoreAudio/CoreAudio.h" >&5
25450
$as_echo_n "checking for CoreAudio/CoreAudio.h... " >&6; }
25451
if test "${ac_cv_header_CoreAudio_CoreAudio_h+set}" = set; then
25452
$as_echo_n "(cached) " >&6
25454
ac_cv_header_CoreAudio_CoreAudio_h=$ac_header_preproc
25456
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_CoreAudio_CoreAudio_h" >&5
25457
$as_echo "$ac_cv_header_CoreAudio_CoreAudio_h" >&6; }
25460
if test $ac_cv_header_CoreAudio_CoreAudio_h = yes; then
25463
cat >>confdefs.h <<\_ACEOF
25464
#define HAVE_COREAUDIO 1
25467
FRAMEWORK_COREAUDIO="-Wl,-framework,CoreAudio"
25474
{ $as_echo "$as_me:$LINENO: checking if res_init needs -lresolv" >&5
25475
$as_echo_n "checking if res_init needs -lresolv... " >&6; }
25476
kde_libs_safe="$LIBS"
25477
LIBS="$LIBS $X_EXTRA_LIBS -lresolv"
25478
cat >conftest.$ac_ext <<_ACEOF
25481
cat confdefs.h >>conftest.$ac_ext
25482
cat >>conftest.$ac_ext <<_ACEOF
25483
/* end confdefs.h. */
25485
#include <sys/types.h>
25486
#include <netinet/in.h>
25487
#include <arpa/nameser.h>
25488
#include <resolv.h>
25500
rm -f conftest.$ac_objext conftest$ac_exeext
25501
if { (ac_try="$ac_link"
25502
case "(($ac_try" in
25503
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25504
*) ac_try_echo=$ac_try;;
25506
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25507
$as_echo "$ac_try_echo") >&5
25508
(eval "$ac_link") 2>conftest.er1
25510
grep -v '^ *+' conftest.er1 >conftest.err
25512
cat conftest.err >&5
25513
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25514
(exit $ac_status); } && {
25515
test -z "$ac_c_werror_flag" ||
25516
test ! -s conftest.err
25517
} && test -s conftest$ac_exeext && {
25518
test "$cross_compiling" = yes ||
25519
$as_test_x conftest$ac_exeext
25522
LIBRESOLV="-lresolv"
25523
{ $as_echo "$as_me:$LINENO: result: yes" >&5
25524
$as_echo "yes" >&6; }
25526
cat >>confdefs.h <<\_ACEOF
25527
#define HAVE_RES_INIT 1
25532
$as_echo "$as_me: failed program was:" >&5
25533
sed 's/^/| /' conftest.$ac_ext >&5
25535
{ $as_echo "$as_me:$LINENO: result: no" >&5
25536
$as_echo "no" >&6; }
25540
rm -rf conftest.dSYM
25541
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25542
conftest$ac_exeext conftest.$ac_ext
25543
LIBS=$kde_libs_safe
25547
{ $as_echo "$as_me:$LINENO: checking for res_init" >&5
25548
$as_echo_n "checking for res_init... " >&6; }
25549
if test "${kde_cv_func_res_init+set}" = set; then
25550
$as_echo_n "(cached) " >&6
25555
ac_cpp='$CXXCPP $CPPFLAGS'
25556
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25557
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25558
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25560
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
25563
save_CXXFLAGS="$CXXFLAGS"
25564
kde_safe_LIBS="$LIBS"
25565
LIBS="$LIBS $X_EXTRA_LIBS"
25566
if test "$GXX" = "yes"; then
25567
CXXFLAGS="$CXXFLAGS -pedantic-errors"
25569
cat >conftest.$ac_ext <<_ACEOF
25572
cat confdefs.h >>conftest.$ac_ext
25573
cat >>conftest.$ac_ext <<_ACEOF
25574
/* end confdefs.h. */
25577
#include <sys/types.h>
25578
#include <netinet/in.h>
25579
#include <arpa/nameser.h>
25580
#include <resolv.h>
25593
rm -f conftest.$ac_objext
25594
if { (ac_try="$ac_compile"
25595
case "(($ac_try" in
25596
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25597
*) ac_try_echo=$ac_try;;
25599
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25600
$as_echo "$ac_try_echo") >&5
25601
(eval "$ac_compile") 2>conftest.er1
25603
grep -v '^ *+' conftest.er1 >conftest.err
25605
cat conftest.err >&5
25606
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25607
(exit $ac_status); } && {
25608
test -z "$ac_cxx_werror_flag" ||
25609
test ! -s conftest.err
25610
} && test -s conftest.$ac_objext; then
25611
kde_cv_func_res_init=yes
25613
$as_echo "$as_me: failed program was:" >&5
25614
sed 's/^/| /' conftest.$ac_ext >&5
25616
kde_cv_func_res_init=no
25619
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25620
CXXFLAGS="$save_CXXFLAGS"
25621
LIBS="$kde_safe_LIBS"
25623
ac_cpp='$CPP $CPPFLAGS'
25624
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25625
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25626
ac_compiler_gnu=$ac_cv_c_compiler_gnu
25632
{ $as_echo "$as_me:$LINENO: result: $kde_cv_func_res_init" >&5
25633
$as_echo "$kde_cv_func_res_init" >&6; }
25635
{ $as_echo "$as_me:$LINENO: checking if res_init needs custom prototype" >&5
25636
$as_echo_n "checking if res_init needs custom prototype... " >&6; }
25637
if test "${kde_cv_proto_res_init+set}" = set; then
25638
$as_echo_n "(cached) " >&6
25641
if test "x$kde_cv_func_res_init" = xyes; then
25642
kde_cv_proto_res_init=no
25645
setenv|unsetenv|usleep|random|srandom|seteuid|mkstemps|mkstemp|revoke|vsnprintf|strlcpy|strlcat)
25646
kde_cv_proto_res_init="yes - in libkdefakes"
25649
kde_cv_proto_res_init=unknown
25654
if test "x$kde_cv_proto_res_init" = xunknown; then
25658
ac_cpp='$CXXCPP $CPPFLAGS'
25659
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25660
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25661
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25663
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
25666
kde_safe_libs=$LIBS
25667
LIBS="$LIBS $X_EXTRA_LIBS"
25668
cat >conftest.$ac_ext <<_ACEOF
25671
cat confdefs.h >>conftest.$ac_ext
25672
cat >>conftest.$ac_ext <<_ACEOF
25673
/* end confdefs.h. */
25676
#include <sys/types.h>
25677
#include <netinet/in.h>
25678
#include <arpa/nameser.h>
25679
#include <resolv.h>
25682
extern "C" int res_init(void);
25694
rm -f conftest.$ac_objext conftest$ac_exeext
25695
if { (ac_try="$ac_link"
25696
case "(($ac_try" in
25697
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25698
*) ac_try_echo=$ac_try;;
25700
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25701
$as_echo "$ac_try_echo") >&5
25702
(eval "$ac_link") 2>conftest.er1
25704
grep -v '^ *+' conftest.er1 >conftest.err
25706
cat conftest.err >&5
25707
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25708
(exit $ac_status); } && {
25709
test -z "$ac_cxx_werror_flag" ||
25710
test ! -s conftest.err
25711
} && test -s conftest$ac_exeext && {
25712
test "$cross_compiling" = yes ||
25713
$as_test_x conftest$ac_exeext
25715
kde_cv_func_res_init=yes
25716
kde_cv_proto_res_init=yes
25718
$as_echo "$as_me: failed program was:" >&5
25719
sed 's/^/| /' conftest.$ac_ext >&5
25721
kde_cv_proto_res_init="res_init unavailable"
25725
rm -rf conftest.dSYM
25726
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25727
conftest$ac_exeext conftest.$ac_ext
25728
LIBS=$kde_safe_libs
25730
ac_cpp='$CPP $CPPFLAGS'
25731
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25732
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25733
ac_compiler_gnu=$ac_cv_c_compiler_gnu
25739
{ $as_echo "$as_me:$LINENO: result: $kde_cv_proto_res_init" >&5
25740
$as_echo "$kde_cv_proto_res_init" >&6; }
25742
if test "x$kde_cv_func_res_init" = xyes; then
25744
cat >>confdefs.h <<\_ACEOF
25745
#define HAVE_RES_INIT 1
25750
if test "x$kde_cv_proto_res_init" = xno; then
25752
cat >>confdefs.h <<\_ACEOF
25753
#define HAVE_RES_INIT_PROTO 1
25764
LIBSOCKET="$X_EXTRA_LIBS"
25767
{ $as_echo "$as_me:$LINENO: checking for killpg in -lucb" >&5
25768
$as_echo_n "checking for killpg in -lucb... " >&6; }
25769
if test "${ac_cv_lib_ucb_killpg+set}" = set; then
25770
$as_echo_n "(cached) " >&6
25772
ac_check_lib_save_LIBS=$LIBS
25774
cat >conftest.$ac_ext <<_ACEOF
25777
cat confdefs.h >>conftest.$ac_ext
25778
cat >>conftest.$ac_ext <<_ACEOF
25779
/* end confdefs.h. */
25781
/* Override any GCC internal prototype to avoid an error.
25782
Use char because int might match the return type of a GCC
25783
builtin and then its argument prototype would still apply. */
25796
rm -f conftest.$ac_objext conftest$ac_exeext
25797
if { (ac_try="$ac_link"
25798
case "(($ac_try" in
25799
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25800
*) ac_try_echo=$ac_try;;
25802
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25803
$as_echo "$ac_try_echo") >&5
25804
(eval "$ac_link") 2>conftest.er1
25806
grep -v '^ *+' conftest.er1 >conftest.err
25808
cat conftest.err >&5
25809
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25810
(exit $ac_status); } && {
25811
test -z "$ac_c_werror_flag" ||
25812
test ! -s conftest.err
25813
} && test -s conftest$ac_exeext && {
25814
test "$cross_compiling" = yes ||
25815
$as_test_x conftest$ac_exeext
25817
ac_cv_lib_ucb_killpg=yes
25819
$as_echo "$as_me: failed program was:" >&5
25820
sed 's/^/| /' conftest.$ac_ext >&5
25822
ac_cv_lib_ucb_killpg=no
25825
rm -rf conftest.dSYM
25826
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25827
conftest$ac_exeext conftest.$ac_ext
25828
LIBS=$ac_check_lib_save_LIBS
25830
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ucb_killpg" >&5
25831
$as_echo "$ac_cv_lib_ucb_killpg" >&6; }
25832
if test $ac_cv_lib_ucb_killpg = yes; then
25837
case $host in *-*-lynxos* )
25838
{ $as_echo "$as_me:$LINENO: checking LynxOS header file wrappers" >&5
25839
$as_echo_n "checking LynxOS header file wrappers... " >&6; }
25840
CFLAGS="$CFLAGS -D__NO_INCLUDE_WARN__"
25841
{ $as_echo "$as_me:$LINENO: result: disabled" >&5
25842
$as_echo "disabled" >&6; }
25843
{ $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
25844
$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25845
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
25846
$as_echo_n "(cached) " >&6
25848
ac_check_lib_save_LIBS=$LIBS
25850
cat >conftest.$ac_ext <<_ACEOF
25853
cat confdefs.h >>conftest.$ac_ext
25854
cat >>conftest.$ac_ext <<_ACEOF
25855
/* end confdefs.h. */
25857
/* Override any GCC internal prototype to avoid an error.
25858
Use char because int might match the return type of a GCC
25859
builtin and then its argument prototype would still apply. */
25863
char gethostbyname ();
25867
return gethostbyname ();
25872
rm -f conftest.$ac_objext conftest$ac_exeext
25873
if { (ac_try="$ac_link"
25874
case "(($ac_try" in
25875
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25876
*) ac_try_echo=$ac_try;;
25878
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25879
$as_echo "$ac_try_echo") >&5
25880
(eval "$ac_link") 2>conftest.er1
25882
grep -v '^ *+' conftest.er1 >conftest.err
25884
cat conftest.err >&5
25885
$as_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_exeext && {
25890
test "$cross_compiling" = yes ||
25891
$as_test_x conftest$ac_exeext
25893
ac_cv_lib_bsd_gethostbyname=yes
25895
$as_echo "$as_me: failed program was:" >&5
25896
sed 's/^/| /' conftest.$ac_ext >&5
25898
ac_cv_lib_bsd_gethostbyname=no
25901
rm -rf conftest.dSYM
25902
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25903
conftest$ac_exeext conftest.$ac_ext
25904
LIBS=$ac_check_lib_save_LIBS
25906
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
25907
$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25908
if test $ac_cv_lib_bsd_gethostbyname = yes; then
25914
# The cast to long int works around a bug in the HP C Compiler
25915
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25916
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25917
# This bug is HP SR number 8606223364.
25918
{ $as_echo "$as_me:$LINENO: checking size of int" >&5
25919
$as_echo_n "checking size of int... " >&6; }
25920
if test "${ac_cv_sizeof_int+set}" = set; then
25921
$as_echo_n "(cached) " >&6
25923
if test "$cross_compiling" = yes; then
25924
# Depending upon the size, compute the lo and hi bounds.
25925
cat >conftest.$ac_ext <<_ACEOF
25928
cat confdefs.h >>conftest.$ac_ext
25929
cat >>conftest.$ac_ext <<_ACEOF
25930
/* end confdefs.h. */
25931
$ac_includes_default
25935
static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
25942
rm -f conftest.$ac_objext
25943
if { (ac_try="$ac_compile"
25944
case "(($ac_try" in
25945
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25946
*) ac_try_echo=$ac_try;;
25948
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25949
$as_echo "$ac_try_echo") >&5
25950
(eval "$ac_compile") 2>conftest.er1
25952
grep -v '^ *+' conftest.er1 >conftest.err
25954
cat conftest.err >&5
25955
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25956
(exit $ac_status); } && {
25957
test -z "$ac_c_werror_flag" ||
25958
test ! -s conftest.err
25959
} && test -s conftest.$ac_objext; then
25962
cat >conftest.$ac_ext <<_ACEOF
25965
cat confdefs.h >>conftest.$ac_ext
25966
cat >>conftest.$ac_ext <<_ACEOF
25967
/* end confdefs.h. */
25968
$ac_includes_default
25972
static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
25979
rm -f conftest.$ac_objext
25980
if { (ac_try="$ac_compile"
25981
case "(($ac_try" in
25982
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25983
*) ac_try_echo=$ac_try;;
25985
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25986
$as_echo "$ac_try_echo") >&5
25987
(eval "$ac_compile") 2>conftest.er1
25989
grep -v '^ *+' conftest.er1 >conftest.err
25991
cat conftest.err >&5
25992
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25993
(exit $ac_status); } && {
25994
test -z "$ac_c_werror_flag" ||
25995
test ! -s conftest.err
25996
} && test -s conftest.$ac_objext; then
25997
ac_hi=$ac_mid; break
25999
$as_echo "$as_me: failed program was:" >&5
26000
sed 's/^/| /' conftest.$ac_ext >&5
26002
ac_lo=`expr $ac_mid + 1`
26003
if test $ac_lo -le $ac_mid; then
26007
ac_mid=`expr 2 '*' $ac_mid + 1`
26010
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26013
$as_echo "$as_me: failed program was:" >&5
26014
sed 's/^/| /' conftest.$ac_ext >&5
26016
cat >conftest.$ac_ext <<_ACEOF
26019
cat confdefs.h >>conftest.$ac_ext
26020
cat >>conftest.$ac_ext <<_ACEOF
26021
/* end confdefs.h. */
26022
$ac_includes_default
26026
static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
26033
rm -f conftest.$ac_objext
26034
if { (ac_try="$ac_compile"
26035
case "(($ac_try" in
26036
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26037
*) ac_try_echo=$ac_try;;
26039
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26040
$as_echo "$ac_try_echo") >&5
26041
(eval "$ac_compile") 2>conftest.er1
26043
grep -v '^ *+' conftest.er1 >conftest.err
26045
cat conftest.err >&5
26046
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26047
(exit $ac_status); } && {
26048
test -z "$ac_c_werror_flag" ||
26049
test ! -s conftest.err
26050
} && test -s conftest.$ac_objext; then
26053
cat >conftest.$ac_ext <<_ACEOF
26056
cat confdefs.h >>conftest.$ac_ext
26057
cat >>conftest.$ac_ext <<_ACEOF
26058
/* end confdefs.h. */
26059
$ac_includes_default
26063
static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
26070
rm -f conftest.$ac_objext
26071
if { (ac_try="$ac_compile"
26072
case "(($ac_try" in
26073
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26074
*) ac_try_echo=$ac_try;;
26076
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26077
$as_echo "$ac_try_echo") >&5
26078
(eval "$ac_compile") 2>conftest.er1
26080
grep -v '^ *+' conftest.er1 >conftest.err
26082
cat conftest.err >&5
26083
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26084
(exit $ac_status); } && {
26085
test -z "$ac_c_werror_flag" ||
26086
test ! -s conftest.err
26087
} && test -s conftest.$ac_objext; then
26088
ac_lo=$ac_mid; break
26090
$as_echo "$as_me: failed program was:" >&5
26091
sed 's/^/| /' conftest.$ac_ext >&5
26093
ac_hi=`expr '(' $ac_mid ')' - 1`
26094
if test $ac_mid -le $ac_hi; then
26098
ac_mid=`expr 2 '*' $ac_mid`
26101
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26104
$as_echo "$as_me: failed program was:" >&5
26105
sed 's/^/| /' conftest.$ac_ext >&5
26110
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26113
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26114
# Binary search between lo and hi bounds.
26115
while test "x$ac_lo" != "x$ac_hi"; do
26116
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26117
cat >conftest.$ac_ext <<_ACEOF
26120
cat confdefs.h >>conftest.$ac_ext
26121
cat >>conftest.$ac_ext <<_ACEOF
26122
/* end confdefs.h. */
26123
$ac_includes_default
26127
static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
26134
rm -f conftest.$ac_objext
26135
if { (ac_try="$ac_compile"
26136
case "(($ac_try" in
26137
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26138
*) ac_try_echo=$ac_try;;
26140
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26141
$as_echo "$ac_try_echo") >&5
26142
(eval "$ac_compile") 2>conftest.er1
26144
grep -v '^ *+' conftest.er1 >conftest.err
26146
cat conftest.err >&5
26147
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26148
(exit $ac_status); } && {
26149
test -z "$ac_c_werror_flag" ||
26150
test ! -s conftest.err
26151
} && test -s conftest.$ac_objext; then
26154
$as_echo "$as_me: failed program was:" >&5
26155
sed 's/^/| /' conftest.$ac_ext >&5
26157
ac_lo=`expr '(' $ac_mid ')' + 1`
26160
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26163
?*) ac_cv_sizeof_int=$ac_lo;;
26164
'') if test "$ac_cv_type_int" = yes; then
26165
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
26166
See \`config.log' for more details." >&5
26167
$as_echo "$as_me: error: cannot compute sizeof (int)
26168
See \`config.log' for more details." >&2;}
26169
{ (exit 77); exit 77; }; }
26175
cat >conftest.$ac_ext <<_ACEOF
26178
cat confdefs.h >>conftest.$ac_ext
26179
cat >>conftest.$ac_ext <<_ACEOF
26180
/* end confdefs.h. */
26181
$ac_includes_default
26182
static long int longval () { return (long int) (sizeof (int)); }
26183
static unsigned long int ulongval () { return (long int) (sizeof (int)); }
26185
#include <stdlib.h>
26190
FILE *f = fopen ("conftest.val", "w");
26193
if (((long int) (sizeof (int))) < 0)
26195
long int i = longval ();
26196
if (i != ((long int) (sizeof (int))))
26198
fprintf (f, "%ld", i);
26202
unsigned long int i = ulongval ();
26203
if (i != ((long int) (sizeof (int))))
26205
fprintf (f, "%lu", i);
26207
/* Do not output a trailing newline, as this causes \r\n confusion
26208
on some platforms. */
26209
return ferror (f) || fclose (f) != 0;
26215
rm -f conftest$ac_exeext
26216
if { (ac_try="$ac_link"
26217
case "(($ac_try" in
26218
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26219
*) ac_try_echo=$ac_try;;
26221
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26222
$as_echo "$ac_try_echo") >&5
26223
(eval "$ac_link") 2>&5
26225
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26226
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26227
{ (case "(($ac_try" in
26228
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26229
*) ac_try_echo=$ac_try;;
26231
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26232
$as_echo "$ac_try_echo") >&5
26233
(eval "$ac_try") 2>&5
26235
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26236
(exit $ac_status); }; }; then
26237
ac_cv_sizeof_int=`cat conftest.val`
26239
$as_echo "$as_me: program exited with status $ac_status" >&5
26240
$as_echo "$as_me: failed program was:" >&5
26241
sed 's/^/| /' conftest.$ac_ext >&5
26243
( exit $ac_status )
26244
if test "$ac_cv_type_int" = yes; then
26245
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
26246
See \`config.log' for more details." >&5
26247
$as_echo "$as_me: error: cannot compute sizeof (int)
26248
See \`config.log' for more details." >&2;}
26249
{ (exit 77); exit 77; }; }
26254
rm -rf conftest.dSYM
26255
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26259
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
26260
$as_echo "$ac_cv_sizeof_int" >&6; }
26264
cat >>confdefs.h <<_ACEOF
26265
#define SIZEOF_INT $ac_cv_sizeof_int
26268
# The cast to long int works around a bug in the HP C Compiler
26269
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26270
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26271
# This bug is HP SR number 8606223364.
26272
{ $as_echo "$as_me:$LINENO: checking size of short" >&5
26273
$as_echo_n "checking size of short... " >&6; }
26274
if test "${ac_cv_sizeof_short+set}" = set; then
26275
$as_echo_n "(cached) " >&6
26277
if test "$cross_compiling" = yes; then
26278
# Depending upon the size, compute the lo and hi bounds.
26279
cat >conftest.$ac_ext <<_ACEOF
26282
cat confdefs.h >>conftest.$ac_ext
26283
cat >>conftest.$ac_ext <<_ACEOF
26284
/* end confdefs.h. */
26285
$ac_includes_default
26289
static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
26296
rm -f conftest.$ac_objext
26297
if { (ac_try="$ac_compile"
26298
case "(($ac_try" in
26299
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26300
*) ac_try_echo=$ac_try;;
26302
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26303
$as_echo "$ac_try_echo") >&5
26304
(eval "$ac_compile") 2>conftest.er1
26306
grep -v '^ *+' conftest.er1 >conftest.err
26308
cat conftest.err >&5
26309
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26310
(exit $ac_status); } && {
26311
test -z "$ac_c_werror_flag" ||
26312
test ! -s conftest.err
26313
} && test -s conftest.$ac_objext; then
26316
cat >conftest.$ac_ext <<_ACEOF
26319
cat confdefs.h >>conftest.$ac_ext
26320
cat >>conftest.$ac_ext <<_ACEOF
26321
/* end confdefs.h. */
26322
$ac_includes_default
26326
static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
26333
rm -f conftest.$ac_objext
26334
if { (ac_try="$ac_compile"
26335
case "(($ac_try" in
26336
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26337
*) ac_try_echo=$ac_try;;
26339
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26340
$as_echo "$ac_try_echo") >&5
26341
(eval "$ac_compile") 2>conftest.er1
26343
grep -v '^ *+' conftest.er1 >conftest.err
26345
cat conftest.err >&5
26346
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26347
(exit $ac_status); } && {
26348
test -z "$ac_c_werror_flag" ||
26349
test ! -s conftest.err
26350
} && test -s conftest.$ac_objext; then
26351
ac_hi=$ac_mid; break
26353
$as_echo "$as_me: failed program was:" >&5
26354
sed 's/^/| /' conftest.$ac_ext >&5
26356
ac_lo=`expr $ac_mid + 1`
26357
if test $ac_lo -le $ac_mid; then
26361
ac_mid=`expr 2 '*' $ac_mid + 1`
26364
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26367
$as_echo "$as_me: failed program was:" >&5
26368
sed 's/^/| /' conftest.$ac_ext >&5
26370
cat >conftest.$ac_ext <<_ACEOF
26373
cat confdefs.h >>conftest.$ac_ext
26374
cat >>conftest.$ac_ext <<_ACEOF
26375
/* end confdefs.h. */
26376
$ac_includes_default
26380
static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
26387
rm -f conftest.$ac_objext
26388
if { (ac_try="$ac_compile"
26389
case "(($ac_try" in
26390
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26391
*) ac_try_echo=$ac_try;;
26393
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26394
$as_echo "$ac_try_echo") >&5
26395
(eval "$ac_compile") 2>conftest.er1
26397
grep -v '^ *+' conftest.er1 >conftest.err
26399
cat conftest.err >&5
26400
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26401
(exit $ac_status); } && {
26402
test -z "$ac_c_werror_flag" ||
26403
test ! -s conftest.err
26404
} && test -s conftest.$ac_objext; then
26407
cat >conftest.$ac_ext <<_ACEOF
26410
cat confdefs.h >>conftest.$ac_ext
26411
cat >>conftest.$ac_ext <<_ACEOF
26412
/* end confdefs.h. */
26413
$ac_includes_default
26417
static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
26424
rm -f conftest.$ac_objext
26425
if { (ac_try="$ac_compile"
26426
case "(($ac_try" in
26427
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26428
*) ac_try_echo=$ac_try;;
26430
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26431
$as_echo "$ac_try_echo") >&5
26432
(eval "$ac_compile") 2>conftest.er1
26434
grep -v '^ *+' conftest.er1 >conftest.err
26436
cat conftest.err >&5
26437
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26438
(exit $ac_status); } && {
26439
test -z "$ac_c_werror_flag" ||
26440
test ! -s conftest.err
26441
} && test -s conftest.$ac_objext; then
26442
ac_lo=$ac_mid; break
26444
$as_echo "$as_me: failed program was:" >&5
26445
sed 's/^/| /' conftest.$ac_ext >&5
26447
ac_hi=`expr '(' $ac_mid ')' - 1`
26448
if test $ac_mid -le $ac_hi; then
26452
ac_mid=`expr 2 '*' $ac_mid`
26455
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26458
$as_echo "$as_me: failed program was:" >&5
26459
sed 's/^/| /' conftest.$ac_ext >&5
26464
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26467
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26468
# Binary search between lo and hi bounds.
26469
while test "x$ac_lo" != "x$ac_hi"; do
26470
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
26481
static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
26488
rm -f conftest.$ac_objext
26489
if { (ac_try="$ac_compile"
26490
case "(($ac_try" in
26491
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26492
*) ac_try_echo=$ac_try;;
26494
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26495
$as_echo "$ac_try_echo") >&5
26496
(eval "$ac_compile") 2>conftest.er1
26498
grep -v '^ *+' conftest.er1 >conftest.err
26500
cat conftest.err >&5
26501
$as_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
$as_echo "$as_me: failed program was:" >&5
26509
sed 's/^/| /' conftest.$ac_ext >&5
26511
ac_lo=`expr '(' $ac_mid ')' + 1`
26514
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26517
?*) ac_cv_sizeof_short=$ac_lo;;
26518
'') if test "$ac_cv_type_short" = yes; then
26519
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
26520
See \`config.log' for more details." >&5
26521
$as_echo "$as_me: error: cannot compute sizeof (short)
26522
See \`config.log' for more details." >&2;}
26523
{ (exit 77); exit 77; }; }
26525
ac_cv_sizeof_short=0
26529
cat >conftest.$ac_ext <<_ACEOF
26532
cat confdefs.h >>conftest.$ac_ext
26533
cat >>conftest.$ac_ext <<_ACEOF
26534
/* end confdefs.h. */
26535
$ac_includes_default
26536
static long int longval () { return (long int) (sizeof (short)); }
26537
static unsigned long int ulongval () { return (long int) (sizeof (short)); }
26539
#include <stdlib.h>
26544
FILE *f = fopen ("conftest.val", "w");
26547
if (((long int) (sizeof (short))) < 0)
26549
long int i = longval ();
26550
if (i != ((long int) (sizeof (short))))
26552
fprintf (f, "%ld", i);
26556
unsigned long int i = ulongval ();
26557
if (i != ((long int) (sizeof (short))))
26559
fprintf (f, "%lu", i);
26561
/* Do not output a trailing newline, as this causes \r\n confusion
26562
on some platforms. */
26563
return ferror (f) || fclose (f) != 0;
26569
rm -f conftest$ac_exeext
26570
if { (ac_try="$ac_link"
26571
case "(($ac_try" in
26572
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26573
*) ac_try_echo=$ac_try;;
26575
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26576
$as_echo "$ac_try_echo") >&5
26577
(eval "$ac_link") 2>&5
26579
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26580
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26581
{ (case "(($ac_try" in
26582
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26583
*) ac_try_echo=$ac_try;;
26585
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26586
$as_echo "$ac_try_echo") >&5
26587
(eval "$ac_try") 2>&5
26589
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26590
(exit $ac_status); }; }; then
26591
ac_cv_sizeof_short=`cat conftest.val`
26593
$as_echo "$as_me: program exited with status $ac_status" >&5
26594
$as_echo "$as_me: failed program was:" >&5
26595
sed 's/^/| /' conftest.$ac_ext >&5
26597
( exit $ac_status )
26598
if test "$ac_cv_type_short" = yes; then
26599
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
26600
See \`config.log' for more details." >&5
26601
$as_echo "$as_me: error: cannot compute sizeof (short)
26602
See \`config.log' for more details." >&2;}
26603
{ (exit 77); exit 77; }; }
26605
ac_cv_sizeof_short=0
26608
rm -rf conftest.dSYM
26609
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26613
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
26614
$as_echo "$ac_cv_sizeof_short" >&6; }
26618
cat >>confdefs.h <<_ACEOF
26619
#define SIZEOF_SHORT $ac_cv_sizeof_short
26622
# The cast to long int works around a bug in the HP C Compiler
26623
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26624
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26625
# This bug is HP SR number 8606223364.
26626
{ $as_echo "$as_me:$LINENO: checking size of long" >&5
26627
$as_echo_n "checking size of long... " >&6; }
26628
if test "${ac_cv_sizeof_long+set}" = set; then
26629
$as_echo_n "(cached) " >&6
26631
if test "$cross_compiling" = yes; then
26632
# Depending upon the size, compute the lo and hi bounds.
26633
cat >conftest.$ac_ext <<_ACEOF
26636
cat confdefs.h >>conftest.$ac_ext
26637
cat >>conftest.$ac_ext <<_ACEOF
26638
/* end confdefs.h. */
26639
$ac_includes_default
26643
static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
26650
rm -f conftest.$ac_objext
26651
if { (ac_try="$ac_compile"
26652
case "(($ac_try" in
26653
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26654
*) ac_try_echo=$ac_try;;
26656
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26657
$as_echo "$ac_try_echo") >&5
26658
(eval "$ac_compile") 2>conftest.er1
26660
grep -v '^ *+' conftest.er1 >conftest.err
26662
cat conftest.err >&5
26663
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26664
(exit $ac_status); } && {
26665
test -z "$ac_c_werror_flag" ||
26666
test ! -s conftest.err
26667
} && test -s conftest.$ac_objext; then
26670
cat >conftest.$ac_ext <<_ACEOF
26673
cat confdefs.h >>conftest.$ac_ext
26674
cat >>conftest.$ac_ext <<_ACEOF
26675
/* end confdefs.h. */
26676
$ac_includes_default
26680
static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
26687
rm -f conftest.$ac_objext
26688
if { (ac_try="$ac_compile"
26689
case "(($ac_try" in
26690
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26691
*) ac_try_echo=$ac_try;;
26693
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26694
$as_echo "$ac_try_echo") >&5
26695
(eval "$ac_compile") 2>conftest.er1
26697
grep -v '^ *+' conftest.er1 >conftest.err
26699
cat conftest.err >&5
26700
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26701
(exit $ac_status); } && {
26702
test -z "$ac_c_werror_flag" ||
26703
test ! -s conftest.err
26704
} && test -s conftest.$ac_objext; then
26705
ac_hi=$ac_mid; break
26707
$as_echo "$as_me: failed program was:" >&5
26708
sed 's/^/| /' conftest.$ac_ext >&5
26710
ac_lo=`expr $ac_mid + 1`
26711
if test $ac_lo -le $ac_mid; then
26715
ac_mid=`expr 2 '*' $ac_mid + 1`
26718
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26721
$as_echo "$as_me: failed program was:" >&5
26722
sed 's/^/| /' conftest.$ac_ext >&5
26724
cat >conftest.$ac_ext <<_ACEOF
26727
cat confdefs.h >>conftest.$ac_ext
26728
cat >>conftest.$ac_ext <<_ACEOF
26729
/* end confdefs.h. */
26730
$ac_includes_default
26734
static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
26741
rm -f conftest.$ac_objext
26742
if { (ac_try="$ac_compile"
26743
case "(($ac_try" in
26744
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26745
*) ac_try_echo=$ac_try;;
26747
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26748
$as_echo "$ac_try_echo") >&5
26749
(eval "$ac_compile") 2>conftest.er1
26751
grep -v '^ *+' conftest.er1 >conftest.err
26753
cat conftest.err >&5
26754
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26755
(exit $ac_status); } && {
26756
test -z "$ac_c_werror_flag" ||
26757
test ! -s conftest.err
26758
} && test -s conftest.$ac_objext; then
26761
cat >conftest.$ac_ext <<_ACEOF
26764
cat confdefs.h >>conftest.$ac_ext
26765
cat >>conftest.$ac_ext <<_ACEOF
26766
/* end confdefs.h. */
26767
$ac_includes_default
26771
static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
26778
rm -f conftest.$ac_objext
26779
if { (ac_try="$ac_compile"
26780
case "(($ac_try" in
26781
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26782
*) ac_try_echo=$ac_try;;
26784
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26785
$as_echo "$ac_try_echo") >&5
26786
(eval "$ac_compile") 2>conftest.er1
26788
grep -v '^ *+' conftest.er1 >conftest.err
26790
cat conftest.err >&5
26791
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26792
(exit $ac_status); } && {
26793
test -z "$ac_c_werror_flag" ||
26794
test ! -s conftest.err
26795
} && test -s conftest.$ac_objext; then
26796
ac_lo=$ac_mid; break
26798
$as_echo "$as_me: failed program was:" >&5
26799
sed 's/^/| /' conftest.$ac_ext >&5
26801
ac_hi=`expr '(' $ac_mid ')' - 1`
26802
if test $ac_mid -le $ac_hi; then
26806
ac_mid=`expr 2 '*' $ac_mid`
26809
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26812
$as_echo "$as_me: failed program was:" >&5
26813
sed 's/^/| /' conftest.$ac_ext >&5
26818
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26821
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26822
# Binary search between lo and hi bounds.
26823
while test "x$ac_lo" != "x$ac_hi"; do
26824
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26825
cat >conftest.$ac_ext <<_ACEOF
26828
cat confdefs.h >>conftest.$ac_ext
26829
cat >>conftest.$ac_ext <<_ACEOF
26830
/* end confdefs.h. */
26831
$ac_includes_default
26835
static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
26842
rm -f conftest.$ac_objext
26843
if { (ac_try="$ac_compile"
26844
case "(($ac_try" in
26845
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26846
*) ac_try_echo=$ac_try;;
26848
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26849
$as_echo "$ac_try_echo") >&5
26850
(eval "$ac_compile") 2>conftest.er1
26852
grep -v '^ *+' conftest.er1 >conftest.err
26854
cat conftest.err >&5
26855
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856
(exit $ac_status); } && {
26857
test -z "$ac_c_werror_flag" ||
26858
test ! -s conftest.err
26859
} && test -s conftest.$ac_objext; then
26862
$as_echo "$as_me: failed program was:" >&5
26863
sed 's/^/| /' conftest.$ac_ext >&5
26865
ac_lo=`expr '(' $ac_mid ')' + 1`
26868
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26871
?*) ac_cv_sizeof_long=$ac_lo;;
26872
'') if test "$ac_cv_type_long" = yes; then
26873
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
26874
See \`config.log' for more details." >&5
26875
$as_echo "$as_me: error: cannot compute sizeof (long)
26876
See \`config.log' for more details." >&2;}
26877
{ (exit 77); exit 77; }; }
26879
ac_cv_sizeof_long=0
26883
cat >conftest.$ac_ext <<_ACEOF
26886
cat confdefs.h >>conftest.$ac_ext
26887
cat >>conftest.$ac_ext <<_ACEOF
26888
/* end confdefs.h. */
26889
$ac_includes_default
26890
static long int longval () { return (long int) (sizeof (long)); }
26891
static unsigned long int ulongval () { return (long int) (sizeof (long)); }
26893
#include <stdlib.h>
26898
FILE *f = fopen ("conftest.val", "w");
26901
if (((long int) (sizeof (long))) < 0)
26903
long int i = longval ();
26904
if (i != ((long int) (sizeof (long))))
26906
fprintf (f, "%ld", i);
26910
unsigned long int i = ulongval ();
26911
if (i != ((long int) (sizeof (long))))
26913
fprintf (f, "%lu", i);
26915
/* Do not output a trailing newline, as this causes \r\n confusion
26916
on some platforms. */
26917
return ferror (f) || fclose (f) != 0;
26923
rm -f conftest$ac_exeext
26924
if { (ac_try="$ac_link"
26925
case "(($ac_try" in
26926
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26927
*) ac_try_echo=$ac_try;;
26929
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26930
$as_echo "$ac_try_echo") >&5
26931
(eval "$ac_link") 2>&5
26933
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26934
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26935
{ (case "(($ac_try" in
26936
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26937
*) ac_try_echo=$ac_try;;
26939
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26940
$as_echo "$ac_try_echo") >&5
26941
(eval "$ac_try") 2>&5
26943
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26944
(exit $ac_status); }; }; then
26945
ac_cv_sizeof_long=`cat conftest.val`
26947
$as_echo "$as_me: program exited with status $ac_status" >&5
26948
$as_echo "$as_me: failed program was:" >&5
26949
sed 's/^/| /' conftest.$ac_ext >&5
26951
( exit $ac_status )
26952
if test "$ac_cv_type_long" = yes; then
26953
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
26954
See \`config.log' for more details." >&5
26955
$as_echo "$as_me: error: cannot compute sizeof (long)
26956
See \`config.log' for more details." >&2;}
26957
{ (exit 77); exit 77; }; }
26959
ac_cv_sizeof_long=0
26962
rm -rf conftest.dSYM
26963
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26967
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
26968
$as_echo "$ac_cv_sizeof_long" >&6; }
26972
cat >>confdefs.h <<_ACEOF
26973
#define SIZEOF_LONG $ac_cv_sizeof_long
26976
# The cast to long int works around a bug in the HP C Compiler
26977
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26978
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26979
# This bug is HP SR number 8606223364.
26980
{ $as_echo "$as_me:$LINENO: checking size of char *" >&5
26981
$as_echo_n "checking size of char *... " >&6; }
26982
if test "${ac_cv_sizeof_char_p+set}" = set; then
26983
$as_echo_n "(cached) " >&6
26985
if test "$cross_compiling" = yes; then
26986
# Depending upon the size, compute the lo and hi bounds.
26987
cat >conftest.$ac_ext <<_ACEOF
26990
cat confdefs.h >>conftest.$ac_ext
26991
cat >>conftest.$ac_ext <<_ACEOF
26992
/* end confdefs.h. */
26993
$ac_includes_default
26997
static int test_array [1 - 2 * !(((long int) (sizeof (char *))) >= 0)];
27004
rm -f conftest.$ac_objext
27005
if { (ac_try="$ac_compile"
27006
case "(($ac_try" in
27007
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27008
*) ac_try_echo=$ac_try;;
27010
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27011
$as_echo "$ac_try_echo") >&5
27012
(eval "$ac_compile") 2>conftest.er1
27014
grep -v '^ *+' conftest.er1 >conftest.err
27016
cat conftest.err >&5
27017
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27018
(exit $ac_status); } && {
27019
test -z "$ac_c_werror_flag" ||
27020
test ! -s conftest.err
27021
} && test -s conftest.$ac_objext; then
27024
cat >conftest.$ac_ext <<_ACEOF
27027
cat confdefs.h >>conftest.$ac_ext
27028
cat >>conftest.$ac_ext <<_ACEOF
27029
/* end confdefs.h. */
27030
$ac_includes_default
27034
static int test_array [1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)];
27041
rm -f conftest.$ac_objext
27042
if { (ac_try="$ac_compile"
27043
case "(($ac_try" in
27044
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27045
*) ac_try_echo=$ac_try;;
27047
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27048
$as_echo "$ac_try_echo") >&5
27049
(eval "$ac_compile") 2>conftest.er1
27051
grep -v '^ *+' conftest.er1 >conftest.err
27053
cat conftest.err >&5
27054
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27055
(exit $ac_status); } && {
27056
test -z "$ac_c_werror_flag" ||
27057
test ! -s conftest.err
27058
} && test -s conftest.$ac_objext; then
27059
ac_hi=$ac_mid; break
27061
$as_echo "$as_me: failed program was:" >&5
27062
sed 's/^/| /' conftest.$ac_ext >&5
27064
ac_lo=`expr $ac_mid + 1`
27065
if test $ac_lo -le $ac_mid; then
27069
ac_mid=`expr 2 '*' $ac_mid + 1`
27072
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27075
$as_echo "$as_me: failed program was:" >&5
27076
sed 's/^/| /' conftest.$ac_ext >&5
27078
cat >conftest.$ac_ext <<_ACEOF
27081
cat confdefs.h >>conftest.$ac_ext
27082
cat >>conftest.$ac_ext <<_ACEOF
27083
/* end confdefs.h. */
27084
$ac_includes_default
27088
static int test_array [1 - 2 * !(((long int) (sizeof (char *))) < 0)];
27095
rm -f conftest.$ac_objext
27096
if { (ac_try="$ac_compile"
27097
case "(($ac_try" in
27098
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27099
*) ac_try_echo=$ac_try;;
27101
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27102
$as_echo "$ac_try_echo") >&5
27103
(eval "$ac_compile") 2>conftest.er1
27105
grep -v '^ *+' conftest.er1 >conftest.err
27107
cat conftest.err >&5
27108
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27109
(exit $ac_status); } && {
27110
test -z "$ac_c_werror_flag" ||
27111
test ! -s conftest.err
27112
} && test -s conftest.$ac_objext; then
27115
cat >conftest.$ac_ext <<_ACEOF
27118
cat confdefs.h >>conftest.$ac_ext
27119
cat >>conftest.$ac_ext <<_ACEOF
27120
/* end confdefs.h. */
27121
$ac_includes_default
27125
static int test_array [1 - 2 * !(((long int) (sizeof (char *))) >= $ac_mid)];
27132
rm -f conftest.$ac_objext
27133
if { (ac_try="$ac_compile"
27134
case "(($ac_try" in
27135
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27136
*) ac_try_echo=$ac_try;;
27138
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27139
$as_echo "$ac_try_echo") >&5
27140
(eval "$ac_compile") 2>conftest.er1
27142
grep -v '^ *+' conftest.er1 >conftest.err
27144
cat conftest.err >&5
27145
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27146
(exit $ac_status); } && {
27147
test -z "$ac_c_werror_flag" ||
27148
test ! -s conftest.err
27149
} && test -s conftest.$ac_objext; then
27150
ac_lo=$ac_mid; break
27152
$as_echo "$as_me: failed program was:" >&5
27153
sed 's/^/| /' conftest.$ac_ext >&5
27155
ac_hi=`expr '(' $ac_mid ')' - 1`
27156
if test $ac_mid -le $ac_hi; then
27160
ac_mid=`expr 2 '*' $ac_mid`
27163
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27166
$as_echo "$as_me: failed program was:" >&5
27167
sed 's/^/| /' conftest.$ac_ext >&5
27172
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27175
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27176
# Binary search between lo and hi bounds.
27177
while test "x$ac_lo" != "x$ac_hi"; do
27178
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27179
cat >conftest.$ac_ext <<_ACEOF
27182
cat confdefs.h >>conftest.$ac_ext
27183
cat >>conftest.$ac_ext <<_ACEOF
27184
/* end confdefs.h. */
27185
$ac_includes_default
27189
static int test_array [1 - 2 * !(((long int) (sizeof (char *))) <= $ac_mid)];
27196
rm -f conftest.$ac_objext
27197
if { (ac_try="$ac_compile"
27198
case "(($ac_try" in
27199
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27200
*) ac_try_echo=$ac_try;;
27202
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27203
$as_echo "$ac_try_echo") >&5
27204
(eval "$ac_compile") 2>conftest.er1
27206
grep -v '^ *+' conftest.er1 >conftest.err
27208
cat conftest.err >&5
27209
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27210
(exit $ac_status); } && {
27211
test -z "$ac_c_werror_flag" ||
27212
test ! -s conftest.err
27213
} && test -s conftest.$ac_objext; then
27216
$as_echo "$as_me: failed program was:" >&5
27217
sed 's/^/| /' conftest.$ac_ext >&5
27219
ac_lo=`expr '(' $ac_mid ')' + 1`
27222
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27225
?*) ac_cv_sizeof_char_p=$ac_lo;;
27226
'') if test "$ac_cv_type_char_p" = yes; then
27227
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
27228
See \`config.log' for more details." >&5
27229
$as_echo "$as_me: error: cannot compute sizeof (char *)
27230
See \`config.log' for more details." >&2;}
27231
{ (exit 77); exit 77; }; }
27233
ac_cv_sizeof_char_p=0
27237
cat >conftest.$ac_ext <<_ACEOF
27240
cat confdefs.h >>conftest.$ac_ext
27241
cat >>conftest.$ac_ext <<_ACEOF
27242
/* end confdefs.h. */
27243
$ac_includes_default
27244
static long int longval () { return (long int) (sizeof (char *)); }
27245
static unsigned long int ulongval () { return (long int) (sizeof (char *)); }
27247
#include <stdlib.h>
27252
FILE *f = fopen ("conftest.val", "w");
27255
if (((long int) (sizeof (char *))) < 0)
27257
long int i = longval ();
27258
if (i != ((long int) (sizeof (char *))))
27260
fprintf (f, "%ld", i);
27264
unsigned long int i = ulongval ();
27265
if (i != ((long int) (sizeof (char *))))
27267
fprintf (f, "%lu", i);
27269
/* Do not output a trailing newline, as this causes \r\n confusion
27270
on some platforms. */
27271
return ferror (f) || fclose (f) != 0;
27277
rm -f conftest$ac_exeext
27278
if { (ac_try="$ac_link"
27279
case "(($ac_try" in
27280
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27281
*) ac_try_echo=$ac_try;;
27283
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27284
$as_echo "$ac_try_echo") >&5
27285
(eval "$ac_link") 2>&5
27287
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27288
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27289
{ (case "(($ac_try" in
27290
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27291
*) ac_try_echo=$ac_try;;
27293
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27294
$as_echo "$ac_try_echo") >&5
27295
(eval "$ac_try") 2>&5
27297
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27298
(exit $ac_status); }; }; then
27299
ac_cv_sizeof_char_p=`cat conftest.val`
27301
$as_echo "$as_me: program exited with status $ac_status" >&5
27302
$as_echo "$as_me: failed program was:" >&5
27303
sed 's/^/| /' conftest.$ac_ext >&5
27305
( exit $ac_status )
27306
if test "$ac_cv_type_char_p" = yes; then
27307
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (char *)
27308
See \`config.log' for more details." >&5
27309
$as_echo "$as_me: error: cannot compute sizeof (char *)
27310
See \`config.log' for more details." >&2;}
27311
{ (exit 77); exit 77; }; }
27313
ac_cv_sizeof_char_p=0
27316
rm -rf conftest.dSYM
27317
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27321
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_char_p" >&5
27322
$as_echo "$ac_cv_sizeof_char_p" >&6; }
27326
cat >>confdefs.h <<_ACEOF
27327
#define SIZEOF_CHAR_P $ac_cv_sizeof_char_p
27332
{ $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
27333
$as_echo_n "checking for dlopen in -ldl... " >&6; }
27334
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
27335
$as_echo_n "(cached) " >&6
27337
ac_check_lib_save_LIBS=$LIBS
27339
cat >conftest.$ac_ext <<_ACEOF
27342
cat confdefs.h >>conftest.$ac_ext
27343
cat >>conftest.$ac_ext <<_ACEOF
27344
/* end confdefs.h. */
27346
/* Override any GCC internal prototype to avoid an error.
27347
Use char because int might match the return type of a GCC
27348
builtin and then its argument prototype would still apply. */
27361
rm -f conftest.$ac_objext conftest$ac_exeext
27362
if { (ac_try="$ac_link"
27363
case "(($ac_try" in
27364
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27365
*) ac_try_echo=$ac_try;;
27367
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27368
$as_echo "$ac_try_echo") >&5
27369
(eval "$ac_link") 2>conftest.er1
27371
grep -v '^ *+' conftest.er1 >conftest.err
27373
cat conftest.err >&5
27374
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27375
(exit $ac_status); } && {
27376
test -z "$ac_c_werror_flag" ||
27377
test ! -s conftest.err
27378
} && test -s conftest$ac_exeext && {
27379
test "$cross_compiling" = yes ||
27380
$as_test_x conftest$ac_exeext
27382
ac_cv_lib_dl_dlopen=yes
27384
$as_echo "$as_me: failed program was:" >&5
27385
sed 's/^/| /' conftest.$ac_ext >&5
27387
ac_cv_lib_dl_dlopen=no
27390
rm -rf conftest.dSYM
27391
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27392
conftest$ac_exeext conftest.$ac_ext
27393
LIBS=$ac_check_lib_save_LIBS
27395
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
27396
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
27397
if test $ac_cv_lib_dl_dlopen = yes; then
27400
ac_cv_have_dlfcn=yes
27405
{ $as_echo "$as_me:$LINENO: checking for shl_unload in -ldld" >&5
27406
$as_echo_n "checking for shl_unload in -ldld... " >&6; }
27407
if test "${ac_cv_lib_dld_shl_unload+set}" = set; then
27408
$as_echo_n "(cached) " >&6
27410
ac_check_lib_save_LIBS=$LIBS
27412
cat >conftest.$ac_ext <<_ACEOF
27415
cat confdefs.h >>conftest.$ac_ext
27416
cat >>conftest.$ac_ext <<_ACEOF
27417
/* end confdefs.h. */
27419
/* Override any GCC internal prototype to avoid an error.
27420
Use char because int might match the return type of a GCC
27421
builtin and then its argument prototype would still apply. */
27425
char shl_unload ();
27429
return shl_unload ();
27434
rm -f conftest.$ac_objext conftest$ac_exeext
27435
if { (ac_try="$ac_link"
27436
case "(($ac_try" in
27437
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27438
*) ac_try_echo=$ac_try;;
27440
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27441
$as_echo "$ac_try_echo") >&5
27442
(eval "$ac_link") 2>conftest.er1
27444
grep -v '^ *+' conftest.er1 >conftest.err
27446
cat conftest.err >&5
27447
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27448
(exit $ac_status); } && {
27449
test -z "$ac_c_werror_flag" ||
27450
test ! -s conftest.err
27451
} && test -s conftest$ac_exeext && {
27452
test "$cross_compiling" = yes ||
27453
$as_test_x conftest$ac_exeext
27455
ac_cv_lib_dld_shl_unload=yes
27457
$as_echo "$as_me: failed program was:" >&5
27458
sed 's/^/| /' conftest.$ac_ext >&5
27460
ac_cv_lib_dld_shl_unload=no
27463
rm -rf conftest.dSYM
27464
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27465
conftest$ac_exeext conftest.$ac_ext
27466
LIBS=$ac_check_lib_save_LIBS
27468
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_unload" >&5
27469
$as_echo "$ac_cv_lib_dld_shl_unload" >&6; }
27470
if test $ac_cv_lib_dld_shl_unload = yes; then
27473
ac_cv_have_shload=yes
27483
# The cast to long int works around a bug in the HP C Compiler
27484
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27485
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27486
# This bug is HP SR number 8606223364.
27487
{ $as_echo "$as_me:$LINENO: checking size of size_t" >&5
27488
$as_echo_n "checking size of size_t... " >&6; }
27489
if test "${ac_cv_sizeof_size_t+set}" = set; then
27490
$as_echo_n "(cached) " >&6
27492
if test "$cross_compiling" = yes; then
27493
# Depending upon the size, compute the lo and hi bounds.
27494
cat >conftest.$ac_ext <<_ACEOF
27497
cat confdefs.h >>conftest.$ac_ext
27498
cat >>conftest.$ac_ext <<_ACEOF
27499
/* end confdefs.h. */
27500
$ac_includes_default
27504
static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
27511
rm -f conftest.$ac_objext
27512
if { (ac_try="$ac_compile"
27513
case "(($ac_try" in
27514
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27515
*) ac_try_echo=$ac_try;;
27517
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27518
$as_echo "$ac_try_echo") >&5
27519
(eval "$ac_compile") 2>conftest.er1
27521
grep -v '^ *+' conftest.er1 >conftest.err
27523
cat conftest.err >&5
27524
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27525
(exit $ac_status); } && {
27526
test -z "$ac_c_werror_flag" ||
27527
test ! -s conftest.err
27528
} && test -s conftest.$ac_objext; then
27531
cat >conftest.$ac_ext <<_ACEOF
27534
cat confdefs.h >>conftest.$ac_ext
27535
cat >>conftest.$ac_ext <<_ACEOF
27536
/* end confdefs.h. */
27537
$ac_includes_default
27541
static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
27548
rm -f conftest.$ac_objext
27549
if { (ac_try="$ac_compile"
27550
case "(($ac_try" in
27551
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27552
*) ac_try_echo=$ac_try;;
27554
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27555
$as_echo "$ac_try_echo") >&5
27556
(eval "$ac_compile") 2>conftest.er1
27558
grep -v '^ *+' conftest.er1 >conftest.err
27560
cat conftest.err >&5
27561
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27562
(exit $ac_status); } && {
27563
test -z "$ac_c_werror_flag" ||
27564
test ! -s conftest.err
27565
} && test -s conftest.$ac_objext; then
27566
ac_hi=$ac_mid; break
27568
$as_echo "$as_me: failed program was:" >&5
27569
sed 's/^/| /' conftest.$ac_ext >&5
27571
ac_lo=`expr $ac_mid + 1`
27572
if test $ac_lo -le $ac_mid; then
27576
ac_mid=`expr 2 '*' $ac_mid + 1`
27579
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27582
$as_echo "$as_me: failed program was:" >&5
27583
sed 's/^/| /' conftest.$ac_ext >&5
27585
cat >conftest.$ac_ext <<_ACEOF
27588
cat confdefs.h >>conftest.$ac_ext
27589
cat >>conftest.$ac_ext <<_ACEOF
27590
/* end confdefs.h. */
27591
$ac_includes_default
27595
static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
27602
rm -f conftest.$ac_objext
27603
if { (ac_try="$ac_compile"
27604
case "(($ac_try" in
27605
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27606
*) ac_try_echo=$ac_try;;
27608
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27609
$as_echo "$ac_try_echo") >&5
27610
(eval "$ac_compile") 2>conftest.er1
27612
grep -v '^ *+' conftest.er1 >conftest.err
27614
cat conftest.err >&5
27615
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27616
(exit $ac_status); } && {
27617
test -z "$ac_c_werror_flag" ||
27618
test ! -s conftest.err
27619
} && test -s conftest.$ac_objext; then
27622
cat >conftest.$ac_ext <<_ACEOF
27625
cat confdefs.h >>conftest.$ac_ext
27626
cat >>conftest.$ac_ext <<_ACEOF
27627
/* end confdefs.h. */
27628
$ac_includes_default
27632
static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
27639
rm -f conftest.$ac_objext
27640
if { (ac_try="$ac_compile"
27641
case "(($ac_try" in
27642
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27643
*) ac_try_echo=$ac_try;;
27645
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27646
$as_echo "$ac_try_echo") >&5
27647
(eval "$ac_compile") 2>conftest.er1
27649
grep -v '^ *+' conftest.er1 >conftest.err
27651
cat conftest.err >&5
27652
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27653
(exit $ac_status); } && {
27654
test -z "$ac_c_werror_flag" ||
27655
test ! -s conftest.err
27656
} && test -s conftest.$ac_objext; then
27657
ac_lo=$ac_mid; break
27659
$as_echo "$as_me: failed program was:" >&5
27660
sed 's/^/| /' conftest.$ac_ext >&5
27662
ac_hi=`expr '(' $ac_mid ')' - 1`
27663
if test $ac_mid -le $ac_hi; then
27667
ac_mid=`expr 2 '*' $ac_mid`
27670
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27673
$as_echo "$as_me: failed program was:" >&5
27674
sed 's/^/| /' conftest.$ac_ext >&5
27679
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27682
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27683
# Binary search between lo and hi bounds.
27684
while test "x$ac_lo" != "x$ac_hi"; do
27685
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27686
cat >conftest.$ac_ext <<_ACEOF
27689
cat confdefs.h >>conftest.$ac_ext
27690
cat >>conftest.$ac_ext <<_ACEOF
27691
/* end confdefs.h. */
27692
$ac_includes_default
27696
static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
27703
rm -f conftest.$ac_objext
27704
if { (ac_try="$ac_compile"
27705
case "(($ac_try" in
27706
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27707
*) ac_try_echo=$ac_try;;
27709
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27710
$as_echo "$ac_try_echo") >&5
27711
(eval "$ac_compile") 2>conftest.er1
27713
grep -v '^ *+' conftest.er1 >conftest.err
27715
cat conftest.err >&5
27716
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27717
(exit $ac_status); } && {
27718
test -z "$ac_c_werror_flag" ||
27719
test ! -s conftest.err
27720
} && test -s conftest.$ac_objext; then
27723
$as_echo "$as_me: failed program was:" >&5
27724
sed 's/^/| /' conftest.$ac_ext >&5
27726
ac_lo=`expr '(' $ac_mid ')' + 1`
27729
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27732
?*) ac_cv_sizeof_size_t=$ac_lo;;
27733
'') if test "$ac_cv_type_size_t" = yes; then
27734
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
27735
See \`config.log' for more details." >&5
27736
$as_echo "$as_me: error: cannot compute sizeof (size_t)
27737
See \`config.log' for more details." >&2;}
27738
{ (exit 77); exit 77; }; }
27740
ac_cv_sizeof_size_t=0
27744
cat >conftest.$ac_ext <<_ACEOF
27747
cat confdefs.h >>conftest.$ac_ext
27748
cat >>conftest.$ac_ext <<_ACEOF
27749
/* end confdefs.h. */
27750
$ac_includes_default
27751
static long int longval () { return (long int) (sizeof (size_t)); }
27752
static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
27754
#include <stdlib.h>
27759
FILE *f = fopen ("conftest.val", "w");
27762
if (((long int) (sizeof (size_t))) < 0)
27764
long int i = longval ();
27765
if (i != ((long int) (sizeof (size_t))))
27767
fprintf (f, "%ld", i);
27771
unsigned long int i = ulongval ();
27772
if (i != ((long int) (sizeof (size_t))))
27774
fprintf (f, "%lu", i);
27776
/* Do not output a trailing newline, as this causes \r\n confusion
27777
on some platforms. */
27778
return ferror (f) || fclose (f) != 0;
27784
rm -f conftest$ac_exeext
27785
if { (ac_try="$ac_link"
27786
case "(($ac_try" in
27787
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27788
*) ac_try_echo=$ac_try;;
27790
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27791
$as_echo "$ac_try_echo") >&5
27792
(eval "$ac_link") 2>&5
27794
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27795
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27796
{ (case "(($ac_try" in
27797
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27798
*) ac_try_echo=$ac_try;;
27800
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27801
$as_echo "$ac_try_echo") >&5
27802
(eval "$ac_try") 2>&5
27804
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27805
(exit $ac_status); }; }; then
27806
ac_cv_sizeof_size_t=`cat conftest.val`
27808
$as_echo "$as_me: program exited with status $ac_status" >&5
27809
$as_echo "$as_me: failed program was:" >&5
27810
sed 's/^/| /' conftest.$ac_ext >&5
27812
( exit $ac_status )
27813
if test "$ac_cv_type_size_t" = yes; then
27814
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
27815
See \`config.log' for more details." >&5
27816
$as_echo "$as_me: error: cannot compute sizeof (size_t)
27817
See \`config.log' for more details." >&2;}
27818
{ (exit 77); exit 77; }; }
27820
ac_cv_sizeof_size_t=0
27823
rm -rf conftest.dSYM
27824
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27828
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
27829
$as_echo "$ac_cv_sizeof_size_t" >&6; }
27833
cat >>confdefs.h <<_ACEOF
27834
#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
27838
# The cast to long int works around a bug in the HP C Compiler
27839
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27840
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27841
# This bug is HP SR number 8606223364.
27842
{ $as_echo "$as_me:$LINENO: checking size of unsigned long" >&5
27843
$as_echo_n "checking size of unsigned long... " >&6; }
27844
if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
27845
$as_echo_n "(cached) " >&6
27847
if test "$cross_compiling" = yes; then
27848
# Depending upon the size, compute the lo and hi bounds.
27849
cat >conftest.$ac_ext <<_ACEOF
27852
cat confdefs.h >>conftest.$ac_ext
27853
cat >>conftest.$ac_ext <<_ACEOF
27854
/* end confdefs.h. */
27855
$ac_includes_default
27859
static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= 0)];
27866
rm -f conftest.$ac_objext
27867
if { (ac_try="$ac_compile"
27868
case "(($ac_try" in
27869
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27870
*) ac_try_echo=$ac_try;;
27872
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27873
$as_echo "$ac_try_echo") >&5
27874
(eval "$ac_compile") 2>conftest.er1
27876
grep -v '^ *+' conftest.er1 >conftest.err
27878
cat conftest.err >&5
27879
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27880
(exit $ac_status); } && {
27881
test -z "$ac_c_werror_flag" ||
27882
test ! -s conftest.err
27883
} && test -s conftest.$ac_objext; then
27886
cat >conftest.$ac_ext <<_ACEOF
27889
cat confdefs.h >>conftest.$ac_ext
27890
cat >>conftest.$ac_ext <<_ACEOF
27891
/* end confdefs.h. */
27892
$ac_includes_default
27896
static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
27903
rm -f conftest.$ac_objext
27904
if { (ac_try="$ac_compile"
27905
case "(($ac_try" in
27906
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27907
*) ac_try_echo=$ac_try;;
27909
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27910
$as_echo "$ac_try_echo") >&5
27911
(eval "$ac_compile") 2>conftest.er1
27913
grep -v '^ *+' conftest.er1 >conftest.err
27915
cat conftest.err >&5
27916
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27917
(exit $ac_status); } && {
27918
test -z "$ac_c_werror_flag" ||
27919
test ! -s conftest.err
27920
} && test -s conftest.$ac_objext; then
27921
ac_hi=$ac_mid; break
27923
$as_echo "$as_me: failed program was:" >&5
27924
sed 's/^/| /' conftest.$ac_ext >&5
27926
ac_lo=`expr $ac_mid + 1`
27927
if test $ac_lo -le $ac_mid; then
27931
ac_mid=`expr 2 '*' $ac_mid + 1`
27934
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27937
$as_echo "$as_me: failed program was:" >&5
27938
sed 's/^/| /' conftest.$ac_ext >&5
27940
cat >conftest.$ac_ext <<_ACEOF
27943
cat confdefs.h >>conftest.$ac_ext
27944
cat >>conftest.$ac_ext <<_ACEOF
27945
/* end confdefs.h. */
27946
$ac_includes_default
27950
static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) < 0)];
27957
rm -f conftest.$ac_objext
27958
if { (ac_try="$ac_compile"
27959
case "(($ac_try" in
27960
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27961
*) ac_try_echo=$ac_try;;
27963
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27964
$as_echo "$ac_try_echo") >&5
27965
(eval "$ac_compile") 2>conftest.er1
27967
grep -v '^ *+' conftest.er1 >conftest.err
27969
cat conftest.err >&5
27970
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27971
(exit $ac_status); } && {
27972
test -z "$ac_c_werror_flag" ||
27973
test ! -s conftest.err
27974
} && test -s conftest.$ac_objext; then
27977
cat >conftest.$ac_ext <<_ACEOF
27980
cat confdefs.h >>conftest.$ac_ext
27981
cat >>conftest.$ac_ext <<_ACEOF
27982
/* end confdefs.h. */
27983
$ac_includes_default
27987
static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= $ac_mid)];
27994
rm -f conftest.$ac_objext
27995
if { (ac_try="$ac_compile"
27996
case "(($ac_try" in
27997
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27998
*) ac_try_echo=$ac_try;;
28000
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28001
$as_echo "$ac_try_echo") >&5
28002
(eval "$ac_compile") 2>conftest.er1
28004
grep -v '^ *+' conftest.er1 >conftest.err
28006
cat conftest.err >&5
28007
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28008
(exit $ac_status); } && {
28009
test -z "$ac_c_werror_flag" ||
28010
test ! -s conftest.err
28011
} && test -s conftest.$ac_objext; then
28012
ac_lo=$ac_mid; break
28014
$as_echo "$as_me: failed program was:" >&5
28015
sed 's/^/| /' conftest.$ac_ext >&5
28017
ac_hi=`expr '(' $ac_mid ')' - 1`
28018
if test $ac_mid -le $ac_hi; then
28022
ac_mid=`expr 2 '*' $ac_mid`
28025
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28028
$as_echo "$as_me: failed program was:" >&5
28029
sed 's/^/| /' conftest.$ac_ext >&5
28034
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28037
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28038
# Binary search between lo and hi bounds.
28039
while test "x$ac_lo" != "x$ac_hi"; do
28040
ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
28041
cat >conftest.$ac_ext <<_ACEOF
28044
cat confdefs.h >>conftest.$ac_ext
28045
cat >>conftest.$ac_ext <<_ACEOF
28046
/* end confdefs.h. */
28047
$ac_includes_default
28051
static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
28058
rm -f conftest.$ac_objext
28059
if { (ac_try="$ac_compile"
28060
case "(($ac_try" in
28061
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28062
*) ac_try_echo=$ac_try;;
28064
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28065
$as_echo "$ac_try_echo") >&5
28066
(eval "$ac_compile") 2>conftest.er1
28068
grep -v '^ *+' conftest.er1 >conftest.err
28070
cat conftest.err >&5
28071
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28072
(exit $ac_status); } && {
28073
test -z "$ac_c_werror_flag" ||
28074
test ! -s conftest.err
28075
} && test -s conftest.$ac_objext; then
28078
$as_echo "$as_me: failed program was:" >&5
28079
sed 's/^/| /' conftest.$ac_ext >&5
28081
ac_lo=`expr '(' $ac_mid ')' + 1`
28084
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28087
?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
28088
'') if test "$ac_cv_type_unsigned_long" = yes; then
28089
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
28090
See \`config.log' for more details." >&5
28091
$as_echo "$as_me: error: cannot compute sizeof (unsigned long)
28092
See \`config.log' for more details." >&2;}
28093
{ (exit 77); exit 77; }; }
28095
ac_cv_sizeof_unsigned_long=0
28099
cat >conftest.$ac_ext <<_ACEOF
28102
cat confdefs.h >>conftest.$ac_ext
28103
cat >>conftest.$ac_ext <<_ACEOF
28104
/* end confdefs.h. */
28105
$ac_includes_default
28106
static long int longval () { return (long int) (sizeof (unsigned long)); }
28107
static unsigned long int ulongval () { return (long int) (sizeof (unsigned long)); }
28109
#include <stdlib.h>
28114
FILE *f = fopen ("conftest.val", "w");
28117
if (((long int) (sizeof (unsigned long))) < 0)
28119
long int i = longval ();
28120
if (i != ((long int) (sizeof (unsigned long))))
28122
fprintf (f, "%ld", i);
28126
unsigned long int i = ulongval ();
28127
if (i != ((long int) (sizeof (unsigned long))))
28129
fprintf (f, "%lu", i);
28131
/* Do not output a trailing newline, as this causes \r\n confusion
28132
on some platforms. */
28133
return ferror (f) || fclose (f) != 0;
28139
rm -f conftest$ac_exeext
28140
if { (ac_try="$ac_link"
28141
case "(($ac_try" in
28142
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28143
*) ac_try_echo=$ac_try;;
28145
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28146
$as_echo "$ac_try_echo") >&5
28147
(eval "$ac_link") 2>&5
28149
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28150
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28151
{ (case "(($ac_try" in
28152
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28153
*) ac_try_echo=$ac_try;;
28155
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28156
$as_echo "$ac_try_echo") >&5
28157
(eval "$ac_try") 2>&5
28159
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28160
(exit $ac_status); }; }; then
28161
ac_cv_sizeof_unsigned_long=`cat conftest.val`
28163
$as_echo "$as_me: program exited with status $ac_status" >&5
28164
$as_echo "$as_me: failed program was:" >&5
28165
sed 's/^/| /' conftest.$ac_ext >&5
28167
( exit $ac_status )
28168
if test "$ac_cv_type_unsigned_long" = yes; then
28169
{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
28170
See \`config.log' for more details." >&5
28171
$as_echo "$as_me: error: cannot compute sizeof (unsigned long)
28172
See \`config.log' for more details." >&2;}
28173
{ (exit 77); exit 77; }; }
28175
ac_cv_sizeof_unsigned_long=0
28178
rm -rf conftest.dSYM
28179
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28183
{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
28184
$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
28188
cat >>confdefs.h <<_ACEOF
28189
#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
28194
{ $as_echo "$as_me:$LINENO: checking sizeof size_t == sizeof unsigned long" >&5
28195
$as_echo_n "checking sizeof size_t == sizeof unsigned long... " >&6; }
28196
cat >conftest.$ac_ext <<_ACEOF
28199
cat confdefs.h >>conftest.$ac_ext
28200
cat >>conftest.$ac_ext <<_ACEOF
28201
/* end confdefs.h. */
28207
#if SIZEOF_SIZE_T != SIZEOF_UNSIGNED_LONG
28215
rm -f conftest.$ac_objext
28216
if { (ac_try="$ac_compile"
28217
case "(($ac_try" in
28218
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28219
*) ac_try_echo=$ac_try;;
28221
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28222
$as_echo "$ac_try_echo") >&5
28223
(eval "$ac_compile") 2>conftest.er1
28225
grep -v '^ *+' conftest.er1 >conftest.err
28227
cat conftest.err >&5
28228
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28229
(exit $ac_status); } && {
28230
test -z "$ac_c_werror_flag" ||
28231
test ! -s conftest.err
28232
} && test -s conftest.$ac_objext; then
28233
{ $as_echo "$as_me:$LINENO: result: yes" >&5
28234
$as_echo "yes" >&6; }
28236
$as_echo "$as_me: failed program was:" >&5
28237
sed 's/^/| /' conftest.$ac_ext >&5
28240
{ $as_echo "$as_me:$LINENO: result: no" >&5
28241
$as_echo "no" >&6; }
28242
{ { $as_echo "$as_me:$LINENO: error:
28243
Apparently on your system our assumption sizeof size_t == sizeof unsigned long
28244
does not apply. Please mail kde-devel@kde.org with a description of your system!
28246
$as_echo "$as_me: error:
28247
Apparently on your system our assumption sizeof size_t == sizeof unsigned long
28248
does not apply. Please mail kde-devel@kde.org with a description of your system!
28250
{ (exit 1); exit 1; }; }
28254
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28257
{ $as_echo "$as_me:$LINENO: checking for PIE support" >&5
28258
$as_echo_n "checking for PIE support... " >&6; }
28259
if test "${kde_cv_val_pie_support+set}" = set; then
28260
$as_echo_n "(cached) " >&6
28265
ac_cpp='$CXXCPP $CPPFLAGS'
28266
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28267
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28268
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28270
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
28273
safe_CXXFLAGS=$CXXFLAGS
28274
safe_LDFLAGS=$LDFLAGS
28275
CXXFLAGS="$CXXFLAGS -fPIE"
28276
LDFLAGS="$LDFLAGS -pie"
28278
cat >conftest.$ac_ext <<_ACEOF
28281
cat confdefs.h >>conftest.$ac_ext
28282
cat >>conftest.$ac_ext <<_ACEOF
28283
/* end confdefs.h. */
28293
rm -f conftest.$ac_objext conftest$ac_exeext
28294
if { (ac_try="$ac_link"
28295
case "(($ac_try" in
28296
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28297
*) ac_try_echo=$ac_try;;
28299
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28300
$as_echo "$ac_try_echo") >&5
28301
(eval "$ac_link") 2>conftest.er1
28303
grep -v '^ *+' conftest.er1 >conftest.err
28305
cat conftest.err >&5
28306
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28307
(exit $ac_status); } && {
28308
test -z "$ac_cxx_werror_flag" ||
28309
test ! -s conftest.err
28310
} && test -s conftest$ac_exeext && {
28311
test "$cross_compiling" = yes ||
28312
$as_test_x conftest$ac_exeext
28314
kde_cv_val_pie_support=yes
28316
$as_echo "$as_me: failed program was:" >&5
28317
sed 's/^/| /' conftest.$ac_ext >&5
28319
kde_cv_val_pie_support=no
28322
rm -rf conftest.dSYM
28323
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28324
conftest$ac_exeext conftest.$ac_ext
28326
CXXFLAGS=$safe_CXXFLAGS
28327
LDFLAGS=$safe_LDFLAGS
28329
ac_cpp='$CPP $CPPFLAGS'
28330
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28331
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28332
ac_compiler_gnu=$ac_cv_c_compiler_gnu
28336
{ $as_echo "$as_me:$LINENO: result: $kde_cv_val_pie_support" >&5
28337
$as_echo "$kde_cv_val_pie_support" >&6; }
28339
{ $as_echo "$as_me:$LINENO: checking if enabling -pie/fPIE support" >&5
28340
$as_echo_n "checking if enabling -pie/fPIE support... " >&6; }
28342
# Check whether --enable-pie was given.
28343
if test "${enable_pie+set}" = set; then
28344
enableval=$enable_pie; kde_has_pie_support=$enableval
28346
kde_has_pie_support=detect
28350
if test "$kde_has_pie_support" = "detect"; then
28351
kde_has_pie_support=$kde_cv_val_pie_support
28354
{ $as_echo "$as_me:$LINENO: result: $kde_has_pie_support" >&5
28355
$as_echo "$kde_has_pie_support" >&6; }
28363
if test "$kde_has_pie_support" = "yes"; then
28364
KDE_USE_FPIE="-fPIE"
28369
# darwin needs this to initialize the environment
28371
for ac_header in crt_externs.h
28373
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28374
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28375
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28376
$as_echo_n "checking for $ac_header... " >&6; }
28377
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28378
$as_echo_n "(cached) " >&6
28380
ac_res=`eval 'as_val=${'$as_ac_Header'}
28381
$as_echo "$as_val"'`
28382
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28383
$as_echo "$ac_res" >&6; }
28385
# Is the header compilable?
28386
{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
28387
$as_echo_n "checking $ac_header usability... " >&6; }
28388
cat >conftest.$ac_ext <<_ACEOF
28391
cat confdefs.h >>conftest.$ac_ext
28392
cat >>conftest.$ac_ext <<_ACEOF
28393
/* end confdefs.h. */
28394
$ac_includes_default
28395
#include <$ac_header>
28397
rm -f conftest.$ac_objext
28398
if { (ac_try="$ac_compile"
28399
case "(($ac_try" in
28400
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28401
*) ac_try_echo=$ac_try;;
28403
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28404
$as_echo "$ac_try_echo") >&5
28405
(eval "$ac_compile") 2>conftest.er1
28407
grep -v '^ *+' conftest.er1 >conftest.err
28409
cat conftest.err >&5
28410
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28411
(exit $ac_status); } && {
28412
test -z "$ac_c_werror_flag" ||
28413
test ! -s conftest.err
28414
} && test -s conftest.$ac_objext; then
28415
ac_header_compiler=yes
28417
$as_echo "$as_me: failed program was:" >&5
28418
sed 's/^/| /' conftest.$ac_ext >&5
28420
ac_header_compiler=no
28423
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28424
{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28425
$as_echo "$ac_header_compiler" >&6; }
28427
# Is the header present?
28428
{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
28429
$as_echo_n "checking $ac_header presence... " >&6; }
28430
cat >conftest.$ac_ext <<_ACEOF
28433
cat confdefs.h >>conftest.$ac_ext
28434
cat >>conftest.$ac_ext <<_ACEOF
28435
/* end confdefs.h. */
28436
#include <$ac_header>
28438
if { (ac_try="$ac_cpp conftest.$ac_ext"
28439
case "(($ac_try" in
28440
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28441
*) ac_try_echo=$ac_try;;
28443
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28444
$as_echo "$ac_try_echo") >&5
28445
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28447
grep -v '^ *+' conftest.er1 >conftest.err
28449
cat conftest.err >&5
28450
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28451
(exit $ac_status); } >/dev/null && {
28452
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28453
test ! -s conftest.err
28455
ac_header_preproc=yes
28457
$as_echo "$as_me: failed program was:" >&5
28458
sed 's/^/| /' conftest.$ac_ext >&5
28460
ac_header_preproc=no
28463
rm -f conftest.err conftest.$ac_ext
28464
{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28465
$as_echo "$ac_header_preproc" >&6; }
28467
# So? What about this header?
28468
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28470
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28471
$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28472
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28473
$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28474
ac_header_preproc=yes
28477
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28478
$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28479
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28480
$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28481
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28482
$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28483
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28484
$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28485
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28486
$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28487
{ $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28488
$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28492
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28493
$as_echo_n "checking for $ac_header... " >&6; }
28494
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28495
$as_echo_n "(cached) " >&6
28497
eval "$as_ac_Header=\$ac_header_preproc"
28499
ac_res=`eval 'as_val=${'$as_ac_Header'}
28500
$as_echo "$as_val"'`
28501
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28502
$as_echo "$ac_res" >&6; }
28505
if test `eval 'as_val=${'$as_ac_Header'}
28506
$as_echo "$as_val"'` = yes; then
28507
cat >>confdefs.h <<_ACEOF
28508
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28515
{ $as_echo "$as_me:$LINENO: checking for _NSGetEnviron" >&5
28516
$as_echo_n "checking for _NSGetEnviron... " >&6; }
28517
if test "${ac_cv_func__NSGetEnviron+set}" = set; then
28518
$as_echo_n "(cached) " >&6
28520
cat >conftest.$ac_ext <<_ACEOF
28523
cat confdefs.h >>conftest.$ac_ext
28524
cat >>conftest.$ac_ext <<_ACEOF
28525
/* end confdefs.h. */
28526
/* Define _NSGetEnviron to an innocuous variant, in case <limits.h> declares _NSGetEnviron.
28527
For example, HP-UX 11i <limits.h> declares gettimeofday. */
28528
#define _NSGetEnviron innocuous__NSGetEnviron
28530
/* System header to define __stub macros and hopefully few prototypes,
28531
which can conflict with char _NSGetEnviron (); below.
28532
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28533
<limits.h> exists even on freestanding compilers. */
28536
# include <limits.h>
28538
# include <assert.h>
28541
#undef _NSGetEnviron
28543
/* Override any GCC internal prototype to avoid an error.
28544
Use char because int might match the return type of a GCC
28545
builtin and then its argument prototype would still apply. */
28549
char _NSGetEnviron ();
28550
/* The GNU C library defines this for functions which it implements
28551
to always fail with ENOSYS. Some functions are actually named
28552
something starting with __ and the normal name is an alias. */
28553
#if defined __stub__NSGetEnviron || defined __stub____NSGetEnviron
28560
return _NSGetEnviron ();
28565
rm -f conftest.$ac_objext conftest$ac_exeext
28566
if { (ac_try="$ac_link"
28567
case "(($ac_try" in
28568
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28569
*) ac_try_echo=$ac_try;;
28571
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28572
$as_echo "$ac_try_echo") >&5
28573
(eval "$ac_link") 2>conftest.er1
28575
grep -v '^ *+' conftest.er1 >conftest.err
28577
cat conftest.err >&5
28578
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28579
(exit $ac_status); } && {
28580
test -z "$ac_c_werror_flag" ||
28581
test ! -s conftest.err
28582
} && test -s conftest$ac_exeext && {
28583
test "$cross_compiling" = yes ||
28584
$as_test_x conftest$ac_exeext
28586
ac_cv_func__NSGetEnviron=yes
28588
$as_echo "$as_me: failed program was:" >&5
28589
sed 's/^/| /' conftest.$ac_ext >&5
28591
ac_cv_func__NSGetEnviron=no
28594
rm -rf conftest.dSYM
28595
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28596
conftest$ac_exeext conftest.$ac_ext
28598
{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__NSGetEnviron" >&5
28599
$as_echo "$ac_cv_func__NSGetEnviron" >&6; }
28600
if test $ac_cv_func__NSGetEnviron = yes; then
28602
cat >>confdefs.h <<\_ACEOF
28603
#define HAVE_NSGETENVIRON 1
28617
for ac_func in vsnprintf snprintf
28619
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28620
{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28621
$as_echo_n "checking for $ac_func... " >&6; }
28622
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28623
$as_echo_n "(cached) " >&6
28625
cat >conftest.$ac_ext <<_ACEOF
28628
cat confdefs.h >>conftest.$ac_ext
28629
cat >>conftest.$ac_ext <<_ACEOF
28630
/* end confdefs.h. */
28631
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28632
For example, HP-UX 11i <limits.h> declares gettimeofday. */
28633
#define $ac_func innocuous_$ac_func
28635
/* System header to define __stub macros and hopefully few prototypes,
28636
which can conflict with char $ac_func (); below.
28637
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28638
<limits.h> exists even on freestanding compilers. */
28641
# include <limits.h>
28643
# include <assert.h>
28648
/* Override any GCC internal prototype to avoid an error.
28649
Use char because int might match the return type of a GCC
28650
builtin and then its argument prototype would still apply. */
28655
/* The GNU C library defines this for functions which it implements
28656
to always fail with ENOSYS. Some functions are actually named
28657
something starting with __ and the normal name is an alias. */
28658
#if defined __stub_$ac_func || defined __stub___$ac_func
28665
return $ac_func ();
28670
rm -f conftest.$ac_objext conftest$ac_exeext
28671
if { (ac_try="$ac_link"
28672
case "(($ac_try" in
28673
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28674
*) ac_try_echo=$ac_try;;
28676
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28677
$as_echo "$ac_try_echo") >&5
28678
(eval "$ac_link") 2>conftest.er1
28680
grep -v '^ *+' conftest.er1 >conftest.err
28682
cat conftest.err >&5
28683
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28684
(exit $ac_status); } && {
28685
test -z "$ac_c_werror_flag" ||
28686
test ! -s conftest.err
28687
} && test -s conftest$ac_exeext && {
28688
test "$cross_compiling" = yes ||
28689
$as_test_x conftest$ac_exeext
28691
eval "$as_ac_var=yes"
28693
$as_echo "$as_me: failed program was:" >&5
28694
sed 's/^/| /' conftest.$ac_ext >&5
28696
eval "$as_ac_var=no"
28699
rm -rf conftest.dSYM
28700
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28701
conftest$ac_exeext conftest.$ac_ext
28703
ac_res=`eval 'as_val=${'$as_ac_var'}
28704
$as_echo "$as_val"'`
28705
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28706
$as_echo "$ac_res" >&6; }
28707
if test `eval 'as_val=${'$as_ac_var'}
28708
$as_echo "$as_val"'` = yes; then
28709
cat >>confdefs.h <<_ACEOF
28710
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28724
# Check whether --enable-embedded was given.
28725
if test "${enable_embedded+set}" = set; then
28726
enableval=$enable_embedded; kde_use_qt_emb=$enableval
28733
# Check whether --enable-qtopia was given.
28734
if test "${enable_qtopia+set}" = set; then
28735
enableval=$enable_qtopia; kde_use_qt_emb_palm=$enableval
28737
kde_use_qt_emb_palm=no
28742
# Check whether --enable-mac was given.
28743
if test "${enable_mac+set}" = set; then
28744
enableval=$enable_mac; kde_use_qt_mac=$enableval
28751
# used to disable x11-specific stuff on special platforms
28754
if test "$kde_use_qt_emb" = "no" && test "$kde_use_qt_mac" = "no"; then
28756
include_x11_FALSE='#'
28758
include_x11_TRUE='#'
28763
if test "$kde_use_qt_emb" = "no" && test "$kde_use_qt_mac" = "no"; then
28765
{ $as_echo "$as_me:$LINENO: checking for X" >&5
28766
$as_echo_n "checking for X... " >&6; }
28768
if test "${kde_cv_have_x+set}" = set; then
28769
$as_echo_n "(cached) " >&6
28771
# One or both of the vars are not set, and there is no cached value.
28772
if test "{$x_includes+set}" = set || test "$x_includes" = NONE; then
28775
kde_x_includes=$x_includes
28777
if test "{$x_libraries+set}" = set || test "$x_libraries" = NONE; then
28780
kde_x_libraries=$x_libraries
28783
# below we use the standard autoconf calls
28784
ac_x_libraries=$kde_x_libraries
28785
ac_x_includes=$kde_x_includes
28790
if test "$ac_x_includes" = NO; then
28791
# Guess where to find include files, by looking for this one X11 .h file.
28792
test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
28794
# First, try using that file with no special directory specified.
28795
cat >conftest.$ac_ext <<_ACEOF
28798
cat confdefs.h >>conftest.$ac_ext
28799
cat >>conftest.$ac_ext <<_ACEOF
28800
/* end confdefs.h. */
28801
#include <$x_direct_test_include>
28803
if { (ac_try="$ac_cpp conftest.$ac_ext"
28804
case "(($ac_try" in
28805
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28806
*) ac_try_echo=$ac_try;;
28808
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28809
$as_echo "$ac_try_echo") >&5
28810
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28812
grep -v '^ *+' conftest.er1 >conftest.err
28814
cat conftest.err >&5
28815
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28816
(exit $ac_status); } >/dev/null && {
28817
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28818
test ! -s conftest.err
28820
# We can compile using X headers with no special include directory.
28823
$as_echo "$as_me: failed program was:" >&5
28824
sed 's/^/| /' conftest.$ac_ext >&5
28826
# Look for the header file in a standard set of common directories.
28827
# Check X11 before X11Rn because it is often a symlink to the current release.
28830
/usr/X11R6/include \
28831
/usr/X11R5/include \
28832
/usr/X11R4/include \
28835
/usr/include/X11R6 \
28836
/usr/include/X11R5 \
28837
/usr/include/X11R4 \
28839
/usr/local/X11/include \
28840
/usr/local/X11R6/include \
28841
/usr/local/X11R5/include \
28842
/usr/local/X11R4/include \
28844
/usr/local/include/X11 \
28845
/usr/local/include/X11R6 \
28846
/usr/local/include/X11R5 \
28847
/usr/local/include/X11R4 \
28849
/usr/X386/include \
28850
/usr/x386/include \
28851
/usr/XFree86/include/X11 \
28854
/usr/local/include \
28855
/usr/unsupported/include \
28856
/usr/athena/include \
28857
/usr/local/x11r5/include \
28858
/usr/lpp/Xamples/include \
28860
/usr/openwin/include \
28861
/usr/openwin/share/include \
28864
if test -r "$ac_dir/$x_direct_test_include"; then
28865
ac_x_includes=$ac_dir
28871
rm -f conftest.err conftest.$ac_ext
28872
fi # $ac_x_includes = NO
28874
if test "$ac_x_libraries" = NO; then
28875
# Check for the libraries.
28877
test -z "$x_direct_test_library" && x_direct_test_library=Xt
28878
test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
28880
# See if we find them without any special options.
28881
# Don't add to $LIBS permanently.
28882
ac_save_LIBS="$LIBS"
28883
LIBS="-l$x_direct_test_library $LIBS"
28884
cat >conftest.$ac_ext <<_ACEOF
28887
cat confdefs.h >>conftest.$ac_ext
28888
cat >>conftest.$ac_ext <<_ACEOF
28889
/* end confdefs.h. */
28890
#include <X11/Intrinsic.h>
28894
${x_direct_test_function}(1)
28899
rm -f conftest.$ac_objext conftest$ac_exeext
28900
if { (ac_try="$ac_link"
28901
case "(($ac_try" in
28902
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28903
*) ac_try_echo=$ac_try;;
28905
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28906
$as_echo "$ac_try_echo") >&5
28907
(eval "$ac_link") 2>conftest.er1
28909
grep -v '^ *+' conftest.er1 >conftest.err
28911
cat conftest.err >&5
28912
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28913
(exit $ac_status); } && {
28914
test -z "$ac_c_werror_flag" ||
28915
test ! -s conftest.err
28916
} && test -s conftest$ac_exeext && {
28917
test "$cross_compiling" = yes ||
28918
$as_test_x conftest$ac_exeext
28920
LIBS="$ac_save_LIBS"
28921
# We can link X programs with no special library path.
28924
$as_echo "$as_me: failed program was:" >&5
28925
sed 's/^/| /' conftest.$ac_ext >&5
28927
LIBS="$ac_save_LIBS"
28928
# First see if replacing the include by lib works.
28929
# Check X11 before X11Rn because it is often a symlink to the current release.
28930
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib${kdelibsuff}/` \
28931
/usr/X11/lib${kdelibsuff} \
28932
/usr/X11R6/lib${kdelibsuff} \
28933
/usr/X11R5/lib${kdelibsuff} \
28934
/usr/X11R4/lib${kdelibsuff} \
28936
/usr/lib${kdelibsuff}/X11 \
28937
/usr/lib${kdelibsuff}/X11R6 \
28938
/usr/lib${kdelibsuff}/X11R5 \
28939
/usr/lib${kdelibsuff}/X11R4 \
28941
/usr/local/X11/lib${kdelibsuff} \
28942
/usr/local/X11R6/lib${kdelibsuff} \
28943
/usr/local/X11R5/lib${kdelibsuff} \
28944
/usr/local/X11R4/lib${kdelibsuff} \
28946
/usr/local/lib${kdelibsuff}/X11 \
28947
/usr/local/lib${kdelibsuff}/X11R6 \
28948
/usr/local/lib${kdelibsuff}/X11R5 \
28949
/usr/local/lib${kdelibsuff}/X11R4 \
28951
/usr/X386/lib${kdelibsuff} \
28952
/usr/x386/lib${kdelibsuff} \
28953
/usr/XFree86/lib${kdelibsuff}/X11 \
28955
/usr/lib${kdelibsuff} \
28956
/usr/local/lib${kdelibsuff} \
28957
/usr/unsupported/lib${kdelibsuff} \
28958
/usr/athena/lib${kdelibsuff} \
28959
/usr/local/x11r5/lib${kdelibsuff} \
28960
/usr/lpp/Xamples/lib${kdelibsuff} \
28961
/lib/usr/lib${kdelibsuff}/X11 \
28963
/usr/openwin/lib${kdelibsuff} \
28964
/usr/openwin/share/lib${kdelibsuff} \
28967
for ac_extension in a so sl; do
28968
if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
28969
ac_x_libraries=$ac_dir
28976
rm -rf conftest.dSYM
28977
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28978
conftest$ac_exeext conftest.$ac_ext
28979
fi # $ac_x_libraries = NO
28987
rm -f -r conftest.dir
28988
if mkdir conftest.dir; then
28990
cat >Imakefile <<'_ACEOF'
28992
@echo incroot='${INCROOT}'
28994
@echo usrlibdir='${USRLIBDIR}'
28996
@echo libdir='${LIBDIR}'
28998
if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
28999
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
29000
for ac_var in incroot usrlibdir libdir; do
29001
eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
29003
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
29004
for ac_extension in a so sl dylib la dll; do
29005
if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
29006
test -f "$ac_im_libdir/libX11.$ac_extension"; then
29007
ac_im_usrlibdir=$ac_im_libdir; break
29010
# Screen out bogus values from the imake configuration. They are
29011
# bogus both because they are the default anyway, and because
29012
# using them would break gcc on systems where it needs fixed includes.
29013
case $ac_im_incroot in
29014
/usr/include) ac_x_includes= ;;
29015
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
29017
case $ac_im_usrlibdir in
29018
/usr/lib | /lib) ;;
29019
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
29023
rm -f -r conftest.dir
29026
if test -z "$ac_x_includes"; then
29029
if test -z "$ac_x_libraries"; then
29030
ac_x_libraries="/usr/lib${kdelibsuff}"
29033
#from now on we use our own again
29035
# when the user already gave --x-includes, we ignore
29036
# what the standard autoconf macros told us.
29037
if test "$kde_x_includes" = NO; then
29038
kde_x_includes=$ac_x_includes
29041
# for --x-libraries too
29042
if test "$kde_x_libraries" = NO; then
29043
kde_x_libraries=$ac_x_libraries
29046
if test "$kde_x_includes" = NO; then
29047
{ { $as_echo "$as_me:$LINENO: error: Can't find X includes. Please check your installation and add the correct paths!" >&5
29048
$as_echo "$as_me: error: Can't find X includes. Please check your installation and add the correct paths!" >&2;}
29049
{ (exit 1); exit 1; }; }
29052
if test "$kde_x_libraries" = NO; then
29053
{ { $as_echo "$as_me:$LINENO: error: Can't find X libraries. Please check your installation and add the correct paths!" >&5
29054
$as_echo "$as_me: error: Can't find X libraries. Please check your installation and add the correct paths!" >&2;}
29055
{ (exit 1); exit 1; }; }
29058
# Record where we found X for the cache.
29059
kde_cv_have_x="have_x=yes \
29060
kde_x_includes=$kde_x_includes kde_x_libraries=$kde_x_libraries"
29064
eval "$kde_cv_have_x"
29066
if test "$have_x" != yes; then
29067
{ $as_echo "$as_me:$LINENO: result: $have_x" >&5
29068
$as_echo "$have_x" >&6; }
29071
{ $as_echo "$as_me:$LINENO: result: libraries $kde_x_libraries, headers $kde_x_includes" >&5
29072
$as_echo "libraries $kde_x_libraries, headers $kde_x_includes" >&6; }
29075
if test -z "$kde_x_includes" || test "x$kde_x_includes" = xNONE; then
29077
x_includes="."; else
29078
x_includes=$kde_x_includes
29079
X_INCLUDES="-I$x_includes"
29082
if test -z "$kde_x_libraries" || test "x$kde_x_libraries" = xNONE || test "$kde_x_libraries" = "/usr/lib"; then
29084
x_libraries="/usr/lib"; else
29085
x_libraries=$kde_x_libraries
29086
X_LDFLAGS="-L$x_libraries"
29088
all_includes="$X_INCLUDES"
29089
all_libraries="$X_LDFLAGS $LDFLAGS_AS_NEEDED $LDFLAGS_NEW_DTAGS"
29091
# Check for libraries that X11R6 Xt/Xaw programs need.
29092
ac_save_LDFLAGS="$LDFLAGS"
29093
LDFLAGS="$LDFLAGS $X_LDFLAGS"
29094
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
29095
# check for ICE first), but we must link in the order -lSM -lICE or
29096
# we get undefined symbols. So assume we have SM if we have ICE.
29097
# These have to be linked with before -lX11, unlike the other
29098
# libraries we check for below, so use a different variable.
29099
# --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
29100
{ $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
29101
$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
29102
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
29103
$as_echo_n "(cached) " >&6
29105
ac_check_lib_save_LIBS=$LIBS
29106
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
29107
cat >conftest.$ac_ext <<_ACEOF
29110
cat confdefs.h >>conftest.$ac_ext
29111
cat >>conftest.$ac_ext <<_ACEOF
29112
/* end confdefs.h. */
29114
/* Override any GCC internal prototype to avoid an error.
29115
Use char because int might match the return type of a GCC
29116
builtin and then its argument prototype would still apply. */
29120
char IceConnectionNumber ();
29124
return IceConnectionNumber ();
29129
rm -f conftest.$ac_objext conftest$ac_exeext
29130
if { (ac_try="$ac_link"
29131
case "(($ac_try" in
29132
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29133
*) ac_try_echo=$ac_try;;
29135
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29136
$as_echo "$ac_try_echo") >&5
29137
(eval "$ac_link") 2>conftest.er1
29139
grep -v '^ *+' conftest.er1 >conftest.err
29141
cat conftest.err >&5
29142
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29143
(exit $ac_status); } && {
29144
test -z "$ac_c_werror_flag" ||
29145
test ! -s conftest.err
29146
} && test -s conftest$ac_exeext && {
29147
test "$cross_compiling" = yes ||
29148
$as_test_x conftest$ac_exeext
29150
ac_cv_lib_ICE_IceConnectionNumber=yes
29152
$as_echo "$as_me: failed program was:" >&5
29153
sed 's/^/| /' conftest.$ac_ext >&5
29155
ac_cv_lib_ICE_IceConnectionNumber=no
29158
rm -rf conftest.dSYM
29159
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29160
conftest$ac_exeext conftest.$ac_ext
29161
LIBS=$ac_check_lib_save_LIBS
29163
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
29164
$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
29165
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
29169
LDFLAGS="$ac_save_LDFLAGS"
29171
LIB_X11='-lX11 $(LIBSOCKET)'
29173
{ $as_echo "$as_me:$LINENO: checking for libXext" >&5
29174
$as_echo_n "checking for libXext... " >&6; }
29175
if test "${kde_cv_have_libXext+set}" = set; then
29176
$as_echo_n "(cached) " >&6
29179
kde_ldflags_safe="$LDFLAGS"
29180
kde_libs_safe="$LIBS"
29182
LDFLAGS="$LDFLAGS $X_LDFLAGS $USER_LDFLAGS"
29183
LIBS="-lXext -lX11 $LIBSOCKET"
29185
cat >conftest.$ac_ext <<_ACEOF
29188
cat confdefs.h >>conftest.$ac_ext
29189
cat >>conftest.$ac_ext <<_ACEOF
29190
/* end confdefs.h. */
29193
#ifdef STDC_HEADERS
29194
# include <stdlib.h>
29201
printf("hello Xext\n");
29207
rm -f conftest.$ac_objext conftest$ac_exeext
29208
if { (ac_try="$ac_link"
29209
case "(($ac_try" in
29210
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29211
*) ac_try_echo=$ac_try;;
29213
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29214
$as_echo "$ac_try_echo") >&5
29215
(eval "$ac_link") 2>conftest.er1
29217
grep -v '^ *+' conftest.er1 >conftest.err
29219
cat conftest.err >&5
29220
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29221
(exit $ac_status); } && {
29222
test -z "$ac_c_werror_flag" ||
29223
test ! -s conftest.err
29224
} && test -s conftest$ac_exeext && {
29225
test "$cross_compiling" = yes ||
29226
$as_test_x conftest$ac_exeext
29228
kde_cv_have_libXext=yes
29230
$as_echo "$as_me: failed program was:" >&5
29231
sed 's/^/| /' conftest.$ac_ext >&5
29233
kde_cv_have_libXext=no
29237
rm -rf conftest.dSYM
29238
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29239
conftest$ac_exeext conftest.$ac_ext
29241
LDFLAGS=$kde_ldflags_safe
29242
LIBS=$kde_libs_safe
29247
{ $as_echo "$as_me:$LINENO: result: $kde_cv_have_libXext" >&5
29248
$as_echo "$kde_cv_have_libXext" >&6; }
29250
if test "$kde_cv_have_libXext" = "no"; then
29251
{ { $as_echo "$as_me:$LINENO: error: We need a working libXext to proceed. Since configure
29252
can't find it itself, we stop here assuming that make wouldn't find
29254
$as_echo "$as_me: error: We need a working libXext to proceed. Since configure
29255
can't find it itself, we stop here assuming that make wouldn't find
29256
them either." >&2;}
29257
{ (exit 1); exit 1; }; }
29263
elif test "$kde_use_qt_emb" = "yes"; then
29265
CXXFLAGS="$CXXFLAGS -fno-rtti"
29266
QTE_NORTTI="-fno-rtti -DQWS"
29276
elif test "$kde_use_qt_mac" = "yes"; then
29277
CXXFLAGS="$CXXFLAGS -DQT_MAC -no-cpp-precomp"
29278
CFLAGS="$CFLAGS -DQT_MAC -no-cpp-precomp"
29302
if test -z ""; then
29303
# Current default Qt version: 3.3
29307
kde_qtsubver=`echo "" | sed -e 's#[0-9][0-9]*\.\([0-9][0-9]*\).*#\1#'`
29308
# following is the check if subversion isnt found in passed argument
29309
if test "$kde_qtsubver" = ""; then
29312
kde_qtver=`echo "" | sed -e 's#^\([0-9][0-9]*\)\..*#\1#'`
29313
if test "$kde_qtver" = "1"; then
29318
if test -z ""; then
29319
if test "$kde_qtver" = "2"; then
29320
if test $kde_qtsubver -gt 0; then
29321
kde_qt_minversion=">= Qt 2.2.2"
29323
kde_qt_minversion=">= Qt 2.0.2"
29326
if test "$kde_qtver" = "3"; then
29327
if test $kde_qtsubver -gt 0; then
29328
if test $kde_qtsubver -gt 1; then
29329
if test $kde_qtsubver -gt 2; then
29330
kde_qt_minversion=">= Qt 3.3 and < 4.0"
29332
kde_qt_minversion=">= Qt 3.2 and < 4.0"
29335
kde_qt_minversion=">= Qt 3.1 (20021021) and < 4.0"
29338
kde_qt_minversion=">= Qt 3.0 and < 4.0"
29341
if test "$kde_qtver" = "1"; then
29342
kde_qt_minversion=">= 1.42 and < 2.0"
29345
kde_qt_minversion=""
29348
if test -z ""; then
29349
if test $kde_qtver = 3; then
29350
if test $kde_qtsubver -gt 0; then
29351
kde_qt_verstring="QT_VERSION >= 0x03@VER@00 && QT_VERSION < 0x040000"
29352
qtsubver=`echo "00$kde_qtsubver" | sed -e 's,.*\(..\)$,\1,'`
29353
kde_qt_verstring=`echo $kde_qt_verstring | sed -e "s,@VER@,$qtsubver,"`
29355
kde_qt_verstring="QT_VERSION >= 300 && QT_VERSION < 0x040000"
29358
if test $kde_qtver = 2; then
29359
if test $kde_qtsubver -gt 0; then
29360
kde_qt_verstring="QT_VERSION >= 222"
29362
kde_qt_verstring="QT_VERSION >= 200"
29365
if test $kde_qtver = 1; then
29366
kde_qt_verstring="QT_VERSION >= 142 && QT_VERSION < 200"
29369
kde_qt_verstring=""
29372
if test $kde_qtver = 4; then
29373
kde_qt_dirs="$QTDIR /usr/lib/qt4 /usr/lib/qt /usr/share/qt4"
29375
if test $kde_qtver = 3; then
29376
kde_qt_dirs="$QTDIR /usr/lib/qt3 /usr/lib/qt /usr/share/qt3"
29378
if test $kde_qtver = 2; then
29379
kde_qt_dirs="$QTDIR /usr/lib/qt2 /usr/lib/qt"
29381
if test $kde_qtver = 1; then
29382
kde_qt_dirs="$QTDIR /usr/lib/qt"
29388
if test -n "$PTHREAD_LIBS"; then
29389
if test "x$PTHREAD_LIBS" = "x-pthread" ; then
29390
LIBPTHREAD="PTHREAD"
29392
PTHREAD_LIBS_save="$PTHREAD_LIBS"
29393
PTHREAD_LIBS=`echo "$PTHREAD_LIBS_save" | sed -e 's,^-l,,g'`
29394
{ $as_echo "$as_me:$LINENO: checking for pthread_create in $PTHREAD_LIBS" >&5
29395
$as_echo_n "checking for pthread_create in $PTHREAD_LIBS... " >&6; }
29397
kde_save_LDFLAGS="$LDFLAGS"
29398
kde_save_LIBS="$LIBS"
29399
LDFLAGS="$LDFLAGS $all_libraries"
29401
aix*) LDFLAGS="-brtl $LDFLAGS"
29402
test "$GCC" = yes && LDFLAGS="-Wl,$LDFLAGS"
29405
as_ac_Lib=`$as_echo "ac_cv_lib_$PTHREAD_LIBS''_pthread_create" | $as_tr_sh`
29406
{ $as_echo "$as_me:$LINENO: checking for pthread_create in -l$PTHREAD_LIBS" >&5
29407
$as_echo_n "checking for pthread_create in -l$PTHREAD_LIBS... " >&6; }
29408
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
29409
$as_echo_n "(cached) " >&6
29411
ac_check_lib_save_LIBS=$LIBS
29412
LIBS="-l$PTHREAD_LIBS $LIBS"
29413
cat >conftest.$ac_ext <<_ACEOF
29416
cat confdefs.h >>conftest.$ac_ext
29417
cat >>conftest.$ac_ext <<_ACEOF
29418
/* end confdefs.h. */
29420
/* Override any GCC internal prototype to avoid an error.
29421
Use char because int might match the return type of a GCC
29422
builtin and then its argument prototype would still apply. */
29426
char pthread_create ();
29430
return pthread_create ();
29435
rm -f conftest.$ac_objext conftest$ac_exeext
29436
if { (ac_try="$ac_link"
29437
case "(($ac_try" in
29438
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29439
*) ac_try_echo=$ac_try;;
29441
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29442
$as_echo "$ac_try_echo") >&5
29443
(eval "$ac_link") 2>conftest.er1
29445
grep -v '^ *+' conftest.er1 >conftest.err
29447
cat conftest.err >&5
29448
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29449
(exit $ac_status); } && {
29450
test -z "$ac_c_werror_flag" ||
29451
test ! -s conftest.err
29452
} && test -s conftest$ac_exeext && {
29453
test "$cross_compiling" = yes ||
29454
$as_test_x conftest$ac_exeext
29456
eval "$as_ac_Lib=yes"
29458
$as_echo "$as_me: failed program was:" >&5
29459
sed 's/^/| /' conftest.$ac_ext >&5
29461
eval "$as_ac_Lib=no"
29464
rm -rf conftest.dSYM
29465
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29466
conftest$ac_exeext conftest.$ac_ext
29467
LIBS=$ac_check_lib_save_LIBS
29469
ac_res=`eval 'as_val=${'$as_ac_Lib'}
29470
$as_echo "$as_val"'`
29471
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29472
$as_echo "$ac_res" >&6; }
29473
if test `eval 'as_val=${'$as_ac_Lib'}
29474
$as_echo "$as_val"'` = yes; then
29475
LIBPTHREAD="$PTHREAD_LIBS_save"
29478
LDFLAGS="$kde_save_LDFLAGS"
29479
LIBS="$kde_save_LIBS"
29481
PTHREAD_LIBS="$PTHREAD_LIBS_save"
29485
if test -z "$LIBPTHREAD"; then
29486
{ $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29487
$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
29488
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
29489
$as_echo_n "(cached) " >&6
29491
ac_check_lib_save_LIBS=$LIBS
29492
LIBS="-lpthread $LIBS"
29493
cat >conftest.$ac_ext <<_ACEOF
29496
cat confdefs.h >>conftest.$ac_ext
29497
cat >>conftest.$ac_ext <<_ACEOF
29498
/* end confdefs.h. */
29500
/* Override any GCC internal prototype to avoid an error.
29501
Use char because int might match the return type of a GCC
29502
builtin and then its argument prototype would still apply. */
29506
char pthread_create ();
29510
return pthread_create ();
29515
rm -f conftest.$ac_objext conftest$ac_exeext
29516
if { (ac_try="$ac_link"
29517
case "(($ac_try" in
29518
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29519
*) ac_try_echo=$ac_try;;
29521
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29522
$as_echo "$ac_try_echo") >&5
29523
(eval "$ac_link") 2>conftest.er1
29525
grep -v '^ *+' conftest.er1 >conftest.err
29527
cat conftest.err >&5
29528
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29529
(exit $ac_status); } && {
29530
test -z "$ac_c_werror_flag" ||
29531
test ! -s conftest.err
29532
} && test -s conftest$ac_exeext && {
29533
test "$cross_compiling" = yes ||
29534
$as_test_x conftest$ac_exeext
29536
ac_cv_lib_pthread_pthread_create=yes
29538
$as_echo "$as_me: failed program was:" >&5
29539
sed 's/^/| /' conftest.$ac_ext >&5
29541
ac_cv_lib_pthread_pthread_create=no
29544
rm -rf conftest.dSYM
29545
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29546
conftest$ac_exeext conftest.$ac_ext
29547
LIBS=$ac_check_lib_save_LIBS
29549
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
29550
$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
29551
if test $ac_cv_lib_pthread_pthread_create = yes; then
29552
LIBPTHREAD="-lpthread"
29557
if test -z "$LIBPTHREAD" ; then
29558
{ $as_echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
29559
$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
29560
kde_safe_libs=$LIBS
29561
LIBS="$LIBS -lpthread"
29562
cat >conftest.$ac_ext <<_ACEOF
29565
cat confdefs.h >>conftest.$ac_ext
29566
cat >>conftest.$ac_ext <<_ACEOF
29567
/* end confdefs.h. */
29568
#include <pthread.h>
29572
(void)pthread_create(0,0,0,0);
29577
rm -f conftest.$ac_objext conftest$ac_exeext
29578
if { (ac_try="$ac_link"
29579
case "(($ac_try" in
29580
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29581
*) ac_try_echo=$ac_try;;
29583
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29584
$as_echo "$ac_try_echo") >&5
29585
(eval "$ac_link") 2>conftest.er1
29587
grep -v '^ *+' conftest.er1 >conftest.err
29589
cat conftest.err >&5
29590
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29591
(exit $ac_status); } && {
29592
test -z "$ac_c_werror_flag" ||
29593
test ! -s conftest.err
29594
} && test -s conftest$ac_exeext && {
29595
test "$cross_compiling" = yes ||
29596
$as_test_x conftest$ac_exeext
29599
{ $as_echo "$as_me:$LINENO: result: yes" >&5
29600
$as_echo "yes" >&6; }
29601
LIBPTHREAD="-lpthread"
29603
$as_echo "$as_me: failed program was:" >&5
29604
sed 's/^/| /' conftest.$ac_ext >&5
29607
{ $as_echo "$as_me:$LINENO: result: no" >&5
29608
$as_echo "no" >&6; }
29611
rm -rf conftest.dSYM
29612
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29613
conftest$ac_exeext conftest.$ac_ext
29614
LIBS=$kde_safe_libs
29617
if test "x$LIBPTHREAD" = "xPTHREAD" ; then
29625
if test -z "$LIBPTHREAD"; then
29627
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports -pthread" >&5
29628
$as_echo_n "checking whether $CXX supports -pthread... " >&6; }
29629
kde_cache=`echo pthread | sed 'y% .=/+-,%____p__%'`
29630
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
29631
$as_echo_n "(cached) " >&6
29636
ac_cpp='$CXXCPP $CPPFLAGS'
29637
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29638
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29639
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29641
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
29644
save_CXXFLAGS="$CXXFLAGS"
29645
CXXFLAGS="$CXXFLAGS -pthread"
29646
cat >conftest.$ac_ext <<_ACEOF
29649
cat confdefs.h >>conftest.$ac_ext
29650
cat >>conftest.$ac_ext <<_ACEOF
29651
/* end confdefs.h. */
29661
rm -f conftest.$ac_objext conftest$ac_exeext
29662
if { (ac_try="$ac_link"
29663
case "(($ac_try" in
29664
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29665
*) ac_try_echo=$ac_try;;
29667
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29668
$as_echo "$ac_try_echo") >&5
29669
(eval "$ac_link") 2>conftest.er1
29671
grep -v '^ *+' conftest.er1 >conftest.err
29673
cat conftest.err >&5
29674
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29675
(exit $ac_status); } && {
29676
test -z "$ac_cxx_werror_flag" ||
29677
test ! -s conftest.err
29678
} && test -s conftest$ac_exeext && {
29679
test "$cross_compiling" = yes ||
29680
$as_test_x conftest$ac_exeext
29682
eval "kde_cv_prog_cxx_$kde_cache=yes"
29684
$as_echo "$as_me: failed program was:" >&5
29685
sed 's/^/| /' conftest.$ac_ext >&5
29690
rm -rf conftest.dSYM
29691
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29692
conftest$ac_exeext conftest.$ac_ext
29693
CXXFLAGS="$save_CXXFLAGS"
29695
ac_cpp='$CPP $CPPFLAGS'
29696
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29697
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29698
ac_compiler_gnu=$ac_cv_c_compiler_gnu
29703
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
29704
{ $as_echo "$as_me:$LINENO: result: yes" >&5
29705
$as_echo "yes" >&6; }
29707
USE_THREADS="-D_THREAD_SAFE -pthread"
29709
{ $as_echo "$as_me:$LINENO: result: no" >&5
29710
$as_echo "no" >&6; }
29722
{ $as_echo "$as_me:$LINENO: checking whether $CXX supports -mt" >&5
29723
$as_echo_n "checking whether $CXX supports -mt... " >&6; }
29724
kde_cache=`echo mt | sed 'y% .=/+-,%____p__%'`
29725
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
29726
$as_echo_n "(cached) " >&6
29731
ac_cpp='$CXXCPP $CPPFLAGS'
29732
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29733
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29734
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29736
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
29739
save_CXXFLAGS="$CXXFLAGS"
29740
CXXFLAGS="$CXXFLAGS -mt"
29741
cat >conftest.$ac_ext <<_ACEOF
29744
cat confdefs.h >>conftest.$ac_ext
29745
cat >>conftest.$ac_ext <<_ACEOF
29746
/* end confdefs.h. */
29756
rm -f conftest.$ac_objext conftest$ac_exeext
29757
if { (ac_try="$ac_link"
29758
case "(($ac_try" in
29759
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29760
*) ac_try_echo=$ac_try;;
29762
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29763
$as_echo "$ac_try_echo") >&5
29764
(eval "$ac_link") 2>conftest.er1
29766
grep -v '^ *+' conftest.er1 >conftest.err
29768
cat conftest.err >&5
29769
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29770
(exit $ac_status); } && {
29771
test -z "$ac_cxx_werror_flag" ||
29772
test ! -s conftest.err
29773
} && test -s conftest$ac_exeext && {
29774
test "$cross_compiling" = yes ||
29775
$as_test_x conftest$ac_exeext
29777
eval "kde_cv_prog_cxx_$kde_cache=yes"
29779
$as_echo "$as_me: failed program was:" >&5
29780
sed 's/^/| /' conftest.$ac_ext >&5
29785
rm -rf conftest.dSYM
29786
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29787
conftest$ac_exeext conftest.$ac_ext
29788
CXXFLAGS="$save_CXXFLAGS"
29790
ac_cpp='$CPP $CPPFLAGS'
29791
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29792
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29793
ac_compiler_gnu=$ac_cv_c_compiler_gnu
29798
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
29799
{ $as_echo "$as_me:$LINENO: result: yes" >&5
29800
$as_echo "yes" >&6; }
29804
{ $as_echo "$as_me:$LINENO: result: no" >&5
29805
$as_echo "no" >&6; }
29810
CPPFLAGS="$CPPFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4"
29813
CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE $PTHREAD_CFLAGS"
29816
CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE"
29817
LIBPTHREAD="$LIBPTHREAD -lc_r"
29819
linux*) CPPFLAGS="$CPPFLAGS -D_REENTRANT"
29820
if test "$CXX" = "KCC"; then
29821
CXXFLAGS="$CXXFLAGS --thread_safe"
29822
NOOPT_CXXFLAGS="$NOOPT_CXXFLAGS --thread_safe"
29832
{ $as_echo "$as_me:$LINENO: checking for extra includes" >&5
29833
$as_echo_n "checking for extra includes... " >&6; }
29835
# Check whether --with-extra-includes was given.
29836
if test "${with_extra_includes+set}" = set; then
29837
withval=$with_extra_includes; kde_use_extra_includes="$withval"
29839
kde_use_extra_includes=NONE
29843
kde_extra_includes=
29844
if test -n "$kde_use_extra_includes" && \
29845
test "$kde_use_extra_includes" != "NONE"; then
29849
for dir in $kde_use_extra_includes; do
29850
kde_extra_includes="$kde_extra_includes $dir"
29851
USER_INCLUDES="$USER_INCLUDES -I$dir"
29854
kde_use_extra_includes="added"
29856
kde_use_extra_includes="no"
29860
{ $as_echo "$as_me:$LINENO: result: $kde_use_extra_includes" >&5
29861
$as_echo "$kde_use_extra_includes" >&6; }
29864
{ $as_echo "$as_me:$LINENO: checking for extra libs" >&5
29865
$as_echo_n "checking for extra libs... " >&6; }
29867
# Check whether --with-extra-libs was given.
29868
if test "${with_extra_libs+set}" = set; then
29869
withval=$with_extra_libs; kde_use_extra_libs=$withval
29871
kde_use_extra_libs=NONE
29875
if test -n "$kde_use_extra_libs" && \
29876
test "$kde_use_extra_libs" != "NONE"; then
29880
for dir in $kde_use_extra_libs; do
29881
kde_extra_libs="$kde_extra_libs $dir"
29882
KDE_EXTRA_RPATH="$KDE_EXTRA_RPATH -R $dir"
29883
USER_LDFLAGS="$USER_LDFLAGS -L$dir"
29886
kde_use_extra_libs="added"
29888
kde_use_extra_libs="no"
29893
{ $as_echo "$as_me:$LINENO: result: $kde_use_extra_libs" >&5
29894
$as_echo "$kde_use_extra_libs" >&6; }
29899
{ $as_echo "$as_me:$LINENO: checking for libz" >&5
29900
$as_echo_n "checking for libz... " >&6; }
29901
if test "${ac_cv_lib_z+set}" = set; then
29902
$as_echo_n "(cached) " >&6
29905
kde_save_LIBS="$LIBS"
29906
LIBS="$all_libraries $USER_LDFLAGS -lz $LIBSOCKET"
29907
kde_save_CFLAGS="$CFLAGS"
29908
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
29909
cat >conftest.$ac_ext <<_ACEOF
29912
cat confdefs.h >>conftest.$ac_ext
29913
cat >>conftest.$ac_ext <<_ACEOF
29914
/* end confdefs.h. */
29923
gzFile f = (gzFile) 0;
29924
/* this would segfault.. but we only link, don't run */
29925
(void) gzgets(f, buf, sizeof(buf));
29927
return (zlibVersion() == ZLIB_VERSION);
29933
rm -f conftest.$ac_objext conftest$ac_exeext
29934
if { (ac_try="$ac_link"
29935
case "(($ac_try" in
29936
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29937
*) ac_try_echo=$ac_try;;
29939
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29940
$as_echo "$ac_try_echo") >&5
29941
(eval "$ac_link") 2>conftest.er1
29943
grep -v '^ *+' conftest.er1 >conftest.err
29945
cat conftest.err >&5
29946
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29947
(exit $ac_status); } && {
29948
test -z "$ac_c_werror_flag" ||
29949
test ! -s conftest.err
29950
} && test -s conftest$ac_exeext && {
29951
test "$cross_compiling" = yes ||
29952
$as_test_x conftest$ac_exeext
29954
eval "ac_cv_lib_z='-lz'"
29956
$as_echo "$as_me: failed program was:" >&5
29957
sed 's/^/| /' conftest.$ac_ext >&5
29959
eval "ac_cv_lib_z=no"
29962
rm -rf conftest.dSYM
29963
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29964
conftest$ac_exeext conftest.$ac_ext
29965
LIBS="$kde_save_LIBS"
29966
CFLAGS="$kde_save_CFLAGS"
29969
if test ! "$ac_cv_lib_z" = no; then
29971
cat >>confdefs.h <<_ACEOF
29972
#define HAVE_LIBZ 1
29975
LIBZ="$ac_cv_lib_z"
29976
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z" >&5
29977
$as_echo "$ac_cv_lib_z" >&6; }
29979
{ { $as_echo "$as_me:$LINENO: error: not found.
29980
Possibly configure picks up an outdated version
29981
installed by XFree86. Remove it from your system.
29983
Check your installation and look into config.log" >&5
29984
$as_echo "$as_me: error: not found.
29985
Possibly configure picks up an outdated version
29986
installed by XFree86. Remove it from your system.
29988
Check your installation and look into config.log" >&2;}
29989
{ (exit 1); exit 1; }; }
29997
{ $as_echo "$as_me:$LINENO: checking for libpng" >&5
29998
$as_echo_n "checking for libpng... " >&6; }
29999
if test "${ac_cv_lib_png+set}" = set; then
30000
$as_echo_n "(cached) " >&6
30003
kde_save_LIBS="$LIBS"
30004
if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
30005
LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm -lX11 $LIBSOCKET"
30007
LIBS="$LIBS $all_libraries $USER_LDFLAGS -lpng $LIBZ -lm"
30009
kde_save_CFLAGS="$CFLAGS"
30010
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
30012
cat >conftest.$ac_ext <<_ACEOF
30015
cat confdefs.h >>conftest.$ac_ext
30016
cat >>conftest.$ac_ext <<_ACEOF
30017
/* end confdefs.h. */
30025
png_structp png_ptr = png_create_read_struct( /* image ptr */
30026
PNG_LIBPNG_VER_STRING, 0, 0, 0 );
30027
return( png_ptr != 0 );
30033
rm -f conftest.$ac_objext conftest$ac_exeext
30034
if { (ac_try="$ac_link"
30035
case "(($ac_try" in
30036
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30037
*) ac_try_echo=$ac_try;;
30039
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30040
$as_echo "$ac_try_echo") >&5
30041
(eval "$ac_link") 2>conftest.er1
30043
grep -v '^ *+' conftest.er1 >conftest.err
30045
cat conftest.err >&5
30046
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30047
(exit $ac_status); } && {
30048
test -z "$ac_c_werror_flag" ||
30049
test ! -s conftest.err
30050
} && test -s conftest$ac_exeext && {
30051
test "$cross_compiling" = yes ||
30052
$as_test_x conftest$ac_exeext
30054
eval "ac_cv_lib_png='-lpng $LIBZ -lm'"
30056
$as_echo "$as_me: failed program was:" >&5
30057
sed 's/^/| /' conftest.$ac_ext >&5
30059
eval "ac_cv_lib_png=no"
30063
rm -rf conftest.dSYM
30064
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30065
conftest$ac_exeext conftest.$ac_ext
30066
LIBS="$kde_save_LIBS"
30067
CFLAGS="$kde_save_CFLAGS"
30070
if eval "test ! \"`echo $ac_cv_lib_png`\" = no"; then
30072
cat >>confdefs.h <<_ACEOF
30073
#define HAVE_LIBPNG 1
30076
LIBPNG="$ac_cv_lib_png"
30078
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png" >&5
30079
$as_echo "$ac_cv_lib_png" >&6; }
30081
{ $as_echo "$as_me:$LINENO: result: no" >&5
30082
$as_echo "no" >&6; }
30089
{ $as_echo "$as_me:$LINENO: checking for libjpeg6b" >&5
30090
$as_echo_n "checking for libjpeg6b... " >&6; }
30091
if test "${ac_cv_lib_jpeg_6b+set}" = set; then
30092
$as_echo_n "(cached) " >&6
30095
ac_save_LIBS="$LIBS"
30096
LIBS="$all_libraries $USER_LDFLAGS -ljpeg6b -lm"
30097
ac_save_CFLAGS="$CFLAGS"
30098
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
30099
cat >conftest.$ac_ext <<_ACEOF
30102
cat confdefs.h >>conftest.$ac_ext
30103
cat >>conftest.$ac_ext <<_ACEOF
30104
/* end confdefs.h. */
30109
void jpeg_CreateDecompress();
30117
jpeg_CreateDecompress();
30122
rm -f conftest.$ac_objext conftest$ac_exeext
30123
if { (ac_try="$ac_link"
30124
case "(($ac_try" in
30125
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30126
*) ac_try_echo=$ac_try;;
30128
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30129
$as_echo "$ac_try_echo") >&5
30130
(eval "$ac_link") 2>conftest.er1
30132
grep -v '^ *+' conftest.er1 >conftest.err
30134
cat conftest.err >&5
30135
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30136
(exit $ac_status); } && {
30137
test -z "$ac_c_werror_flag" ||
30138
test ! -s conftest.err
30139
} && test -s conftest$ac_exeext && {
30140
test "$cross_compiling" = yes ||
30141
$as_test_x conftest$ac_exeext
30143
eval "ac_cv_lib_jpeg_6b=-ljpeg6b"
30145
$as_echo "$as_me: failed program was:" >&5
30146
sed 's/^/| /' conftest.$ac_ext >&5
30148
eval "ac_cv_lib_jpeg_6b=no"
30151
rm -rf conftest.dSYM
30152
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30153
conftest$ac_exeext conftest.$ac_ext
30154
LIBS="$ac_save_LIBS"
30155
CFLAGS="$ac_save_CFLAGS"
30160
if eval "test ! \"`echo $ac_cv_lib_jpeg_6b`\" = no"; then
30161
LIBJPEG="$ac_cv_lib_jpeg_6b"
30162
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_6b" >&5
30163
$as_echo "$ac_cv_lib_jpeg_6b" >&6; }
30165
{ $as_echo "$as_me:$LINENO: result: no" >&5
30166
$as_echo "no" >&6; }
30168
{ $as_echo "$as_me:$LINENO: checking for libjpeg" >&5
30169
$as_echo_n "checking for libjpeg... " >&6; }
30170
if test "${ac_cv_lib_jpeg_normal+set}" = set; then
30171
$as_echo_n "(cached) " >&6
30174
ac_save_LIBS="$LIBS"
30175
LIBS="$all_libraries $USER_LDFLAGS -ljpeg -lm"
30176
ac_save_CFLAGS="$CFLAGS"
30177
CFLAGS="$CFLAGS $all_includes $USER_INCLUDES"
30178
cat >conftest.$ac_ext <<_ACEOF
30181
cat confdefs.h >>conftest.$ac_ext
30182
cat >>conftest.$ac_ext <<_ACEOF
30183
/* end confdefs.h. */
30188
void jpeg_CreateDecompress();
30196
jpeg_CreateDecompress();
30201
rm -f conftest.$ac_objext conftest$ac_exeext
30202
if { (ac_try="$ac_link"
30203
case "(($ac_try" in
30204
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30205
*) ac_try_echo=$ac_try;;
30207
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30208
$as_echo "$ac_try_echo") >&5
30209
(eval "$ac_link") 2>conftest.er1
30211
grep -v '^ *+' conftest.er1 >conftest.err
30213
cat conftest.err >&5
30214
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30215
(exit $ac_status); } && {
30216
test -z "$ac_c_werror_flag" ||
30217
test ! -s conftest.err
30218
} && test -s conftest$ac_exeext && {
30219
test "$cross_compiling" = yes ||
30220
$as_test_x conftest$ac_exeext
30222
eval "ac_cv_lib_jpeg_normal=-ljpeg"
30224
$as_echo "$as_me: failed program was:" >&5
30225
sed 's/^/| /' conftest.$ac_ext >&5
30227
eval "ac_cv_lib_jpeg_normal=no"
30230
rm -rf conftest.dSYM
30231
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30232
conftest$ac_exeext conftest.$ac_ext
30233
LIBS="$ac_save_LIBS"
30234
CFLAGS="$ac_save_CFLAGS"
30239
if eval "test ! \"`echo $ac_cv_lib_jpeg_normal`\" = no"; then
30240
LIBJPEG="$ac_cv_lib_jpeg_normal"
30241
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_normal" >&5
30242
$as_echo "$ac_cv_lib_jpeg_normal" >&6; }
30244
{ $as_echo "$as_me:$LINENO: result: no" >&5
30245
$as_echo "no" >&6; }
30258
jpeg_incdirs="$includedir /usr/include /usr/local/include $kde_extra_includes"
30261
for i in $jpeg_incdirs;
30263
for j in jpeglib.h;
30265
echo "configure: 30265: $i/$j" >&5
30266
if test -r "$i/$j"; then
30267
echo "taking that" >&5
30274
test "x$jpeg_incdir" = xNO && jpeg_incdir=
30276
if test -n "$jpeg_incdir" && test -n "$LIBJPEG" ; then
30278
cat >>confdefs.h <<_ACEOF
30279
#define HAVE_LIBJPEG 1
30283
if test -n "$jpeg_incdir" || test -n "$LIBJPEG" ; then
30284
{ $as_echo "$as_me:$LINENO: WARNING:
30285
There is an installation error in jpeg support. You seem to have only one
30286
of either the headers _or_ the libraries installed. You may need to either
30287
provide correct --with-extra-... options, or the development package of
30288
libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
30289
Disabling JPEG support.
30291
$as_echo "$as_me: WARNING:
30292
There is an installation error in jpeg support. You seem to have only one
30293
of either the headers _or_ the libraries installed. You may need to either
30294
provide correct --with-extra-... options, or the development package of
30295
libjpeg6b. You can get a source package of libjpeg from http://www.ijg.org/
30296
Disabling JPEG support.
30299
{ $as_echo "$as_me:$LINENO: WARNING: libjpeg not found. disable JPEG support." >&5
30300
$as_echo "$as_me: WARNING: libjpeg not found. disable JPEG support." >&2;}
30312
{ $as_echo "$as_me:$LINENO: checking for perl" >&5
30313
$as_echo_n "checking for perl... " >&6; }
30314
if test -n "$PERL"; then
30315
kde_cv_path="$PERL";
30317
kde_cache=`echo perl | sed 'y%./+-%__p_%'`
30319
if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
30320
$as_echo_n "(cached) " >&6
30327
for dir in $PATH; do
30330
if test -z ""; then dirs="$bindir $exec_prefix/bin $prefix/bin $dirs"
30331
else dirs="$dirs $bindir $exec_prefix/bin $prefix/bin"
30335
for dir in $dirs; do
30336
if test -x "$dir/perl"; then
30339
evalstr="$dir/perl 2>&1 "
30340
if eval $evalstr; then
30341
kde_cv_path="$dir/perl"
30345
kde_cv_path="$dir/perl"
30351
eval "kde_cv_path_$kde_cache=$kde_cv_path"
30357
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
30361
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
30362
{ $as_echo "$as_me:$LINENO: result: not found" >&5
30363
$as_echo "not found" >&6; }
30365
{ { $as_echo "$as_me:$LINENO: error: No Perl found in your $PATH.
30366
We need perl to generate some code." >&5
30367
$as_echo "$as_me: error: No Perl found in your $PATH.
30368
We need perl to generate some code." >&2;}
30369
{ (exit 1); exit 1; }; }
30372
{ $as_echo "$as_me:$LINENO: result: $kde_cv_path" >&5
30373
$as_echo "$kde_cv_path" >&6; }
30387
# Check whether --enable-mt was given.
30388
if test "${enable_mt+set}" = set; then
30389
enableval=$enable_mt; kde_use_qt_mt=$enableval
30392
if test $kde_qtver = 3; then
30407
if test "x$kde_use_qt_mt" = "xyes"; then
30411
if test -z "$LIBPTHREAD"; then
30412
if test -z "$USE_THREADS"; then
30413
kde_check_threading_default=no
30415
kde_check_threading_default=yes
30418
kde_check_threading_default=yes
30420
# Check whether --enable-threading was given.
30421
if test "${enable_threading+set}" = set; then
30422
enableval=$enable_threading; kde_use_threading=$enableval
30424
kde_use_threading=$kde_check_threading_default
30427
if test "x$kde_use_threading" = "xyes"; then
30429
cat >>confdefs.h <<\_ACEOF
30430
#define HAVE_LIBPTHREAD 1
30435
if test "x$kde_use_threading" = "xyes"; then
30436
CPPFLAGS="$USE_THREADS -DQT_THREAD_SUPPORT $CPPFLAGS"
30437
KDE_MT_LDFLAGS="$USE_THREADS"
30438
KDE_MT_LIBS="$LIBPTHREAD"
30446
kde_qt_was_given=yes
30448
if test -z "$LIBQT_GLOB"; then
30449
if test "x$kde_use_qt_emb" = "xyes"; then
30450
LIBQT_GLOB="libqte.*"
30452
LIBQT_GLOB="libqt.*"
30456
if test "x$kde_use_qt_emb" = "xyes"; then
30462
kde_int_qt="-l$qtlib"
30464
if test -z "$LIBQPE"; then
30465
if test "x$kde_use_qt_emb" = "xyes"; then
30466
if test "x$kde_use_qt_emb_palm" = "xyes"; then
30477
if test "x$kde_use_qt_mt" = "xyes"; then
30478
LIBQT="-l$qtlib-mt"
30479
kde_int_qt="-l$qtlib-mt"
30480
LIBQT_GLOB="lib$qtlib-mt.*"
30481
USING_QT_MT="using -mt"
30486
if test $kde_qtver != 1; then
30490
LIBQT="$LIBQT $LIBPNG $LIBJPEG"
30493
if test $kde_qtver = 3; then
30495
LIBQT="$LIBQT $LIBDL"
30498
{ $as_echo "$as_me:$LINENO: checking for Qt" >&5
30499
$as_echo_n "checking for Qt... " >&6; }
30501
if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
30502
LIBQT="$LIBQT $X_PRE_LIBS -lXext -lX11 $LIBSM $LIBSOCKET"
30504
ac_qt_includes=NO ac_qt_libraries=NO ac_qt_bindir=NO
30508
# Check whether --with-qt-dir was given.
30509
if test "${with_qt_dir+set}" = set; then
30510
withval=$with_qt_dir; ac_qt_includes="$withval"/include
30511
ac_qt_libraries="$withval"/lib${kdelibsuff}
30512
ac_qt_bindir="$withval"/bin
30518
# Check whether --with-qt-includes was given.
30519
if test "${with_qt_includes+set}" = set; then
30520
withval=$with_qt_includes;
30521
ac_qt_includes="$withval"
30526
kde_qt_libs_given=no
30529
# Check whether --with-qt-libraries was given.
30530
if test "${with_qt_libraries+set}" = set; then
30531
withval=$with_qt_libraries; ac_qt_libraries="$withval"
30532
kde_qt_libs_given=yes
30537
if test "${ac_cv_have_qt+set}" = set; then
30538
$as_echo_n "(cached) " >&6
30540
#try to guess Qt locations
30543
for dir in $kde_qt_dirs; do
30544
qt_incdirs="$qt_incdirs $dir/include $dir"
30546
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"
30547
if test ! "$ac_qt_includes" = "NO"; then
30548
qt_incdirs="$ac_qt_includes $qt_incdirs"
30551
if test "$kde_qtver" != "1"; then
30552
kde_qt_header=qstyle.h
30554
kde_qt_header=qglobal.h
30559
for i in $qt_incdirs;
30561
for j in $kde_qt_header;
30563
echo "configure: 30563: $i/$j" >&5
30564
if test -r "$i/$j"; then
30565
echo "taking that" >&5
30572
ac_qt_includes="$qt_incdir"
30575
for dir in $kde_qt_dirs; do
30576
qt_libdirs="$qt_libdirs $dir/lib${kdelibsuff} $dir"
30578
qt_libdirs="$QTLIB $qt_libdirs /usr/X11R6/lib /usr/lib /usr/local/qt/lib $x_libraries"
30579
if test ! "$ac_qt_libraries" = "NO"; then
30580
qt_libdir=$ac_qt_libraries
30582
qt_libdirs="$ac_qt_libraries $qt_libdirs"
30583
# if the Qt was given, the chance is too big that libqt.* doesn't exist
30585
for dir in $qt_libdirs; do
30586
try="ls -1 $dir/${LIBQT_GLOB}"
30587
if test -n "`$try 2> /dev/null`"; then qt_libdir=$dir; break; else echo "tried $dir" >&5 ; fi
30590
for a in $qt_libdir/lib`echo ${kde_int_qt} | sed 's,^-l,,'`_incremental.*; do
30591
if test -e "$a"; then
30592
LIBQT="$LIBQT ${kde_int_qt}_incremental"
30597
ac_qt_libraries="$qt_libdir"
30601
ac_cpp='$CXXCPP $CPPFLAGS'
30602
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30603
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30604
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30606
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
30610
ac_cxxflags_safe="$CXXFLAGS"
30611
ac_ldflags_safe="$LDFLAGS"
30612
ac_libs_safe="$LIBS"
30614
CXXFLAGS="$CXXFLAGS -I$qt_incdir $all_includes"
30615
LDFLAGS="$LDFLAGS -L$qt_libdir $all_libraries $USER_LDFLAGS $KDE_MT_LDFLAGS"
30616
LIBS="$LIBS $LIBQT $KDE_MT_LIBS"
30620
cat > conftest.$ac_ext <<EOF
30621
#include "confdefs.h"
30622
#include <qglobal.h>
30623
#include <qapplication.h>
30625
if test "$kde_qtver" = "2"; then
30626
cat >> conftest.$ac_ext <<EOF
30627
#include <qevent.h>
30628
#include <qstring.h>
30629
#include <qstyle.h>
30632
if test $kde_qtsubver -gt 0; then
30633
cat >> conftest.$ac_ext <<EOF
30634
#if QT_VERSION < 210
30641
if test "$kde_qtver" = "3"; then
30642
cat >> conftest.$ac_ext <<EOF
30643
#include <qcursor.h>
30644
#include <qstylefactory.h>
30645
#include <private/qucomextra_p.h>
30649
echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
30650
cat >> conftest.$ac_ext <<EOF
30656
if test "$kde_qtver" = "2"; then
30657
cat >> conftest.$ac_ext <<EOF
30658
QStringList *t = new QStringList();
30661
if test $kde_qtsubver -gt 0; then
30662
cat >> conftest.$ac_ext <<EOF
30664
s.setLatin1("Elvis is alive", 14);
30668
if test "$kde_qtver" = "3"; then
30669
cat >> conftest.$ac_ext <<EOF
30670
(void)QStyleFactory::create(QString::null);
30671
QCursor c(Qt::WhatsThisCursor);
30674
cat >> conftest.$ac_ext <<EOF
30680
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30681
(eval $ac_link) 2>&5
30683
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30684
(exit $ac_status); } && test -s conftest; then
30687
echo "configure: failed program was:" >&5
30688
cat conftest.$ac_ext >&5
30689
ac_qt_libraries="NO"
30692
CXXFLAGS="$ac_cxxflags_safe"
30693
LDFLAGS="$ac_ldflags_safe"
30694
LIBS="$ac_libs_safe"
30697
ac_cpp='$CPP $CPPFLAGS'
30698
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30699
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30700
ac_compiler_gnu=$ac_cv_c_compiler_gnu
30702
if test "$ac_qt_includes" = NO || test "$ac_qt_libraries" = NO; then
30703
ac_cv_have_qt="have_qt=no"
30706
if test "$ac_qt_includes" = NO; then
30707
if test "$ac_qt_libraries" = NO; then
30708
ac_qt_notfound="(headers and libraries)";
30710
ac_qt_notfound="(headers)";
30713
if test "x$kde_use_qt_mt" = "xyes"; then
30715
Make sure that you have compiled Qt with thread support!"
30716
ac_qt_notfound="(library $qtlib-mt)";
30718
ac_qt_notfound="(library $qtlib)";
30722
{ { $as_echo "$as_me:$LINENO: error: Qt ($kde_qt_minversion) $ac_qt_notfound not found. Please check your installation!
30723
For more details about this problem, look at the end of config.log.$missing_qt_mt" >&5
30724
$as_echo "$as_me: error: Qt ($kde_qt_minversion) $ac_qt_notfound not found. Please check your installation!
30725
For more details about this problem, look at the end of config.log.$missing_qt_mt" >&2;}
30726
{ (exit 1); exit 1; }; }
30734
eval "$ac_cv_have_qt"
30736
if test "$have_qt" != yes; then
30737
{ $as_echo "$as_me:$LINENO: result: $have_qt" >&5
30738
$as_echo "$have_qt" >&6; };
30740
ac_cv_have_qt="have_qt=yes \
30741
ac_qt_includes=$ac_qt_includes ac_qt_libraries=$ac_qt_libraries"
30742
{ $as_echo "$as_me:$LINENO: result: libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" >&5
30743
$as_echo "libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" >&6; }
30745
qt_libraries="$ac_qt_libraries"
30746
qt_includes="$ac_qt_includes"
30749
if test ! "$kde_qt_libs_given" = "yes" && test ! "$kde_qtver" = 3; then
30752
{ $as_echo "$as_me:$LINENO: checking if Qt compiles without flags" >&5
30753
$as_echo_n "checking if Qt compiles without flags... " >&6; }
30754
if test "${kde_cv_qt_direct+set}" = set; then
30755
$as_echo_n "(cached) " >&6
30760
ac_cpp='$CXXCPP $CPPFLAGS'
30761
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30762
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30763
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30765
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
30768
ac_LD_LIBRARY_PATH_safe=$LD_LIBRARY_PATH
30769
ac_LIBRARY_PATH="$LIBRARY_PATH"
30770
ac_cxxflags_safe="$CXXFLAGS"
30771
ac_ldflags_safe="$LDFLAGS"
30772
ac_libs_safe="$LIBS"
30774
CXXFLAGS="$CXXFLAGS -I$qt_includes"
30775
LDFLAGS="$LDFLAGS $X_LDFLAGS"
30776
if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
30777
LIBS="$LIBQT -lXext -lX11 $LIBSOCKET"
30779
LIBS="$LIBQT $LIBSOCKET"
30782
export LD_LIBRARY_PATH
30784
export LIBRARY_PATH
30788
cat > conftest.$ac_ext <<EOF
30789
#include "confdefs.h"
30790
#include <qglobal.h>
30791
#include <qapplication.h>
30793
if test "$kde_qtver" = "2"; then
30794
cat >> conftest.$ac_ext <<EOF
30795
#include <qevent.h>
30796
#include <qstring.h>
30797
#include <qstyle.h>
30800
if test $kde_qtsubver -gt 0; then
30801
cat >> conftest.$ac_ext <<EOF
30802
#if QT_VERSION < 210
30809
if test "$kde_qtver" = "3"; then
30810
cat >> conftest.$ac_ext <<EOF
30811
#include <qcursor.h>
30812
#include <qstylefactory.h>
30813
#include <private/qucomextra_p.h>
30817
echo "#if ! ($kde_qt_verstring)" >> conftest.$ac_ext
30818
cat >> conftest.$ac_ext <<EOF
30824
if test "$kde_qtver" = "2"; then
30825
cat >> conftest.$ac_ext <<EOF
30826
QStringList *t = new QStringList();
30829
if test $kde_qtsubver -gt 0; then
30830
cat >> conftest.$ac_ext <<EOF
30832
s.setLatin1("Elvis is alive", 14);
30836
if test "$kde_qtver" = "3"; then
30837
cat >> conftest.$ac_ext <<EOF
30838
(void)QStyleFactory::create(QString::null);
30839
QCursor c(Qt::WhatsThisCursor);
30842
cat >> conftest.$ac_ext <<EOF
30848
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30849
(eval $ac_link) 2>&5
30851
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30852
(exit $ac_status); } && test -s conftest; then
30853
kde_cv_qt_direct="yes"
30855
kde_cv_qt_direct="no"
30856
echo "configure: failed program was:" >&5
30857
cat conftest.$ac_ext >&5
30861
CXXFLAGS="$ac_cxxflags_safe"
30862
LDFLAGS="$ac_ldflags_safe"
30863
LIBS="$ac_libs_safe"
30865
LD_LIBRARY_PATH="$ac_LD_LIBRARY_PATH_safe"
30866
export LD_LIBRARY_PATH
30867
LIBRARY_PATH="$ac_LIBRARY_PATH"
30868
export LIBRARY_PATH
30870
ac_cpp='$CPP $CPPFLAGS'
30871
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30872
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30873
ac_compiler_gnu=$ac_cv_c_compiler_gnu
30879
if test "$kde_cv_qt_direct" = "yes"; then
30880
{ $as_echo "$as_me:$LINENO: result: yes" >&5
30881
$as_echo "yes" >&6; }
30884
{ $as_echo "$as_me:$LINENO: result: no" >&5
30885
$as_echo "no" >&6; }
30894
if test "$qt_includes" = "$x_includes" || test -z "$qt_includes"; then
30897
QT_INCLUDES="-I$qt_includes"
30898
all_includes="$QT_INCLUDES $all_includes"
30901
if test "$qt_libraries" = "$x_libraries" || test -z "$qt_libraries"; then
30904
QT_LDFLAGS="-L$qt_libraries"
30905
all_libraries="$QT_LDFLAGS $all_libraries"
30907
test -z "$KDE_MT_LDFLAGS" || all_libraries="$all_libraries $KDE_MT_LDFLAGS"
30914
for dir in $kde_qt_dirs; do
30915
qt_bindirs="$qt_bindirs $dir/bin $dir/src/moc"
30917
qt_bindirs="$qt_bindirs /usr/bin /usr/X11R6/bin /usr/local/qt/bin"
30918
if test ! "$ac_qt_bindir" = "NO"; then
30919
qt_bindirs="$ac_qt_bindir $qt_bindirs"
30923
{ $as_echo "$as_me:$LINENO: checking for moc" >&5
30924
$as_echo_n "checking for moc... " >&6; }
30925
if test -n "$MOC"; then
30926
kde_cv_path="$MOC";
30928
kde_cache=`echo moc | sed 'y%./+-%__p_%'`
30930
if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
30931
$as_echo_n "(cached) " >&6
30938
for dir in $PATH; do
30941
if test -z ""; then dirs="$qt_bindirs $dirs"
30942
else dirs="$dirs $qt_bindirs"
30946
for dir in $dirs; do
30947
if test -x "$dir/moc"; then
30950
evalstr="$dir/moc 2>&1 "
30951
if eval $evalstr; then
30952
kde_cv_path="$dir/moc"
30956
kde_cv_path="$dir/moc"
30962
eval "kde_cv_path_$kde_cache=$kde_cv_path"
30968
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
30972
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
30973
{ $as_echo "$as_me:$LINENO: result: not found" >&5
30974
$as_echo "not found" >&6; }
30976
{ { $as_echo "$as_me:$LINENO: error: No Qt meta object compiler (moc) found!
30977
Please check whether you installed Qt correctly.
30978
You need to have a running moc binary.
30979
configure tried to run $ac_cv_path_moc and the test didn't
30980
succeed. If configure shouldn't have tried this one, set
30981
the environment variable MOC to the right one before running
30984
$as_echo "$as_me: error: No Qt meta object compiler (moc) found!
30985
Please check whether you installed Qt correctly.
30986
You need to have a running moc binary.
30987
configure tried to run $ac_cv_path_moc and the test didn't
30988
succeed. If configure shouldn't have tried this one, set
30989
the environment variable MOC to the right one before running
30992
{ (exit 1); exit 1; }; }
30995
{ $as_echo "$as_me:$LINENO: result: $kde_cv_path" >&5
30996
$as_echo "$kde_cv_path" >&6; }
31001
if test -z "$UIC_NOT_NEEDED"; then
31003
{ $as_echo "$as_me:$LINENO: checking for uic" >&5
31004
$as_echo_n "checking for uic... " >&6; }
31005
if test -n "$UIC_PATH"; then
31006
kde_cv_path="$UIC_PATH";
31008
kde_cache=`echo uic | sed 'y%./+-%__p_%'`
31010
if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
31011
$as_echo_n "(cached) " >&6
31018
for dir in $PATH; do
31021
if test -z ""; then dirs="$qt_bindirs $dirs"
31022
else dirs="$dirs $qt_bindirs"
31026
for dir in $dirs; do
31027
if test -x "$dir/uic"; then
31030
evalstr="$dir/uic 2>&1 "
31031
if eval $evalstr; then
31032
kde_cv_path="$dir/uic"
31036
kde_cv_path="$dir/uic"
31042
eval "kde_cv_path_$kde_cache=$kde_cv_path"
31048
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
31052
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
31053
{ $as_echo "$as_me:$LINENO: result: not found" >&5
31054
$as_echo "not found" >&6; }
31057
{ $as_echo "$as_me:$LINENO: result: $kde_cv_path" >&5
31058
$as_echo "$kde_cv_path" >&6; }
31059
UIC_PATH=$kde_cv_path
31063
if test -z "$UIC_PATH" ; then
31065
{ $as_echo "$as_me:$LINENO: WARNING: No Qt ui compiler (uic) found!
31066
Please check whether you installed Qt correctly.
31067
You need to have a running uic binary.
31068
configure tried to run $ac_cv_path_uic and the test didn't
31069
succeed. If configure shouldn't have tried this one, set
31070
the environment variable UIC to the right one before running
31073
$as_echo "$as_me: WARNING: No Qt ui compiler (uic) found!
31074
Please check whether you installed Qt correctly.
31075
You need to have a running uic binary.
31076
configure tried to run $ac_cv_path_uic and the test didn't
31077
succeed. If configure shouldn't have tried this one, set
31078
the environment variable UIC to the right one before running
31086
if test $kde_qtver = 3; then
31088
{ $as_echo "$as_me:$LINENO: checking whether uic supports -L " >&5
31089
$as_echo_n "checking whether uic supports -L ... " >&6; }
31090
kde_cache=`echo L | sed 'y% .=/+-%____p_%'`
31091
if { as_var=kde_cv_prog_uic_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
31092
$as_echo_n "(cached) " >&6
31095
cat >conftest.ui <<EOT
31096
<!DOCTYPE UI><UI version="3" stdsetdef="1"></UI>
31098
ac_uic_testrun="$UIC_PATH -L /nonexistent conftest.ui >/dev/null"
31099
if { (eval echo "$as_me:$LINENO: \"$ac_uic_testrun\"") >&5
31100
(eval $ac_uic_testrun) 2>&5
31102
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31103
(exit $ac_status); }; then
31104
eval "kde_cv_prog_uic_$kde_cache=yes"
31106
eval "kde_cv_prog_uic_$kde_cache=no"
31113
if eval "test \"`echo '$kde_cv_prog_uic_'$kde_cache`\" = yes"; then
31114
{ $as_echo "$as_me:$LINENO: result: yes" >&5
31115
$as_echo "yes" >&6; }
31117
ac_uic_supports_libpath=yes
31119
{ $as_echo "$as_me:$LINENO: result: no" >&5
31120
$as_echo "no" >&6; }
31122
ac_uic_supports_libpath=no
31126
{ $as_echo "$as_me:$LINENO: checking whether uic supports -nounload " >&5
31127
$as_echo_n "checking whether uic supports -nounload ... " >&6; }
31128
kde_cache=`echo nounload | sed 'y% .=/+-%____p_%'`
31129
if { as_var=kde_cv_prog_uic_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
31130
$as_echo_n "(cached) " >&6
31133
cat >conftest.ui <<EOT
31134
<!DOCTYPE UI><UI version="3" stdsetdef="1"></UI>
31136
ac_uic_testrun="$UIC_PATH -nounload conftest.ui >/dev/null"
31137
if { (eval echo "$as_me:$LINENO: \"$ac_uic_testrun\"") >&5
31138
(eval $ac_uic_testrun) 2>&5
31140
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31141
(exit $ac_status); }; then
31142
eval "kde_cv_prog_uic_$kde_cache=yes"
31144
eval "kde_cv_prog_uic_$kde_cache=no"
31151
if eval "test \"`echo '$kde_cv_prog_uic_'$kde_cache`\" = yes"; then
31152
{ $as_echo "$as_me:$LINENO: result: yes" >&5
31153
$as_echo "yes" >&6; }
31155
ac_uic_supports_nounload=yes
31157
{ $as_echo "$as_me:$LINENO: result: no" >&5
31158
$as_echo "no" >&6; }
31160
ac_uic_supports_nounload=no
31164
if test x$ac_uic_supports_libpath = xyes; then
31165
UIC="$UIC -L \$(kde_widgetdir)"
31167
if test x$ac_uic_supports_nounload = xyes; then
31168
UIC="$UIC -nounload"
31173
UIC="echo uic not available: "
31180
if test $kde_qtver = 3; then
31188
if test -n "$LIBJPEG"; then
31189
{ $as_echo "$as_me:$LINENO: checking if Qt needs $LIBJPEG" >&5
31190
$as_echo_n "checking if Qt needs $LIBJPEG... " >&6; }
31191
if test "${kde_cv_qt_jpeg+set}" = set; then
31192
$as_echo_n "(cached) " >&6
31197
ac_cpp='$CXXCPP $CPPFLAGS'
31198
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31199
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31200
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31202
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
31205
ac_save_LIBS="$LIBS"
31206
LIBS="$all_libraries $USER_LDFLAGS $LIBQT"
31207
LIBS=`echo $LIBS | sed "s/$LIBJPEG//"`
31208
ac_save_CXXFLAGS="$CXXFLAGS"
31209
CXXFLAGS="$CXXFLAGS $all_includes $USER_INCLUDES"
31210
cat >conftest.$ac_ext <<_ACEOF
31213
cat confdefs.h >>conftest.$ac_ext
31214
cat >>conftest.$ac_ext <<_ACEOF
31215
/* end confdefs.h. */
31216
#include <qapplication.h>
31223
QApplication app(argc, argv);
31228
rm -f conftest.$ac_objext conftest$ac_exeext
31229
if { (ac_try="$ac_link"
31230
case "(($ac_try" in
31231
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31232
*) ac_try_echo=$ac_try;;
31234
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31235
$as_echo "$ac_try_echo") >&5
31236
(eval "$ac_link") 2>conftest.er1
31238
grep -v '^ *+' conftest.er1 >conftest.err
31240
cat conftest.err >&5
31241
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31242
(exit $ac_status); } && {
31243
test -z "$ac_cxx_werror_flag" ||
31244
test ! -s conftest.err
31245
} && test -s conftest$ac_exeext && {
31246
test "$cross_compiling" = yes ||
31247
$as_test_x conftest$ac_exeext
31249
eval "kde_cv_qt_jpeg=no"
31251
$as_echo "$as_me: failed program was:" >&5
31252
sed 's/^/| /' conftest.$ac_ext >&5
31254
eval "kde_cv_qt_jpeg=yes"
31257
rm -rf conftest.dSYM
31258
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31259
conftest$ac_exeext conftest.$ac_ext
31260
LIBS="$ac_save_LIBS"
31261
CXXFLAGS="$ac_save_CXXFLAGS"
31263
ac_cpp='$CPP $CPPFLAGS'
31264
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31265
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31266
ac_compiler_gnu=$ac_cv_c_compiler_gnu
31273
if eval "test ! \"`echo $kde_cv_qt_jpeg`\" = no"; then
31274
{ $as_echo "$as_me:$LINENO: result: yes" >&5
31275
$as_echo "yes" >&6; }
31276
LIBJPEG_QT='$(LIBJPEG)'
31278
{ $as_echo "$as_me:$LINENO: result: no" >&5
31279
$as_echo "no" >&6; }
31285
if test "x$kde_use_qt_emb" != "xyes" && test "x$kde_use_qt_mac" != "xyes"; then
31286
LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBZ) $(LIBPNG) -lXext $(LIB_X11) $(LIBSM)'
31288
LIB_QT="$kde_int_qt $LIBJPEG_QT "'$(LIBZ) $(LIBPNG)'
31290
test -z "$KDE_MT_LIBS" || LIB_QT="$LIB_QT $KDE_MT_LIBS"
31291
for a in $qt_libdir/lib`echo ${kde_int_qt} | sed 's,^-l,,'`_incremental.*; do
31292
if test -e "$a"; then
31293
LIB_QT="$LIB_QT ${kde_int_qt}_incremental"
31310
{ $as_echo "$as_me:$LINENO: checking for rpath" >&5
31311
$as_echo_n "checking for rpath... " >&6; }
31312
# Check whether --enable-rpath was given.
31313
if test "${enable_rpath+set}" = set; then
31314
enableval=$enable_rpath; USE_RPATH=$enableval
31320
if test -z "$KDE_RPATH" && test "$USE_RPATH" = "yes"; then
31322
KDE_RPATH="-R \$(libdir)"
31324
if test "$kde_libraries" != "$libdir"; then
31325
KDE_RPATH="$KDE_RPATH -R \$(kde_libraries)"
31328
if test -n "$qt_libraries"; then
31329
KDE_RPATH="$KDE_RPATH -R \$(qt_libraries)"
31331
if test -n "$X_LDFLAGS"; then
31332
X_RPATH="-R \$(x_libraries)"
31333
KDE_RPATH="$KDE_RPATH $X_RPATH"
31335
if test -n "$KDE_EXTRA_RPATH"; then
31336
KDE_RPATH="$KDE_RPATH \$(KDE_EXTRA_RPATH)"
31342
{ $as_echo "$as_me:$LINENO: result: $USE_RPATH" >&5
31343
$as_echo "$USE_RPATH" >&6; }
31345
{ $as_echo "$as_me:$LINENO: checking for KDE" >&5
31346
$as_echo_n "checking for KDE... " >&6; }
31348
if test "${prefix}" != NONE; then
31349
kde_includes=${includedir}
31352
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
31354
while ac_kde_includes=`eval echo "$tmp"`; test "x$ac_kde_includes" != "x$tmp"; do tmp=$ac_kde_includes; done
31358
kde_libraries=${libdir}
31361
test "x$exec_prefix" = xNONE && exec_prefix=$prefix
31363
while ac_kde_libraries=`eval echo "$tmp"`; test "x$ac_kde_libraries" != "x$tmp"; do tmp=$ac_kde_libraries; done
31374
if test "${ac_cv_have_kde+set}" = set; then
31375
$as_echo_n "(cached) " >&6
31377
#try to guess kde locations
31379
if test "$kde_qtver" = 1; then
31380
kde_check_header="ksock.h"
31381
kde_check_lib="libkdecore.la"
31383
kde_check_header="ksharedptr.h"
31384
kde_check_lib="libkio.la"
31387
if test -z ""; then
31389
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"
31390
test -n "$KDEDIR" && kde_incdirs="$KDEDIR/include $KDEDIR/include/kde $KDEDIR $kde_incdirs"
31391
kde_incdirs="$ac_kde_includes $kde_incdirs"
31394
for i in $kde_incdirs;
31396
for j in $kde_check_header;
31398
echo "configure: 31398: $i/$j" >&5
31399
if test -r "$i/$j"; then
31400
echo "taking that" >&5
31407
ac_kde_includes="$kde_incdir"
31409
if test -n "$ac_kde_includes" && test ! -r "$ac_kde_includes/$kde_check_header"; then
31410
{ { $as_echo "$as_me:$LINENO: error:
31411
in the prefix, you've chosen, are no KDE headers installed. This will fail.
31412
So, check this please and use another prefix!" >&5
31413
$as_echo "$as_me: error:
31414
in the prefix, you've chosen, are no KDE headers installed. This will fail.
31415
So, check this please and use another prefix!" >&2;}
31416
{ (exit 1); exit 1; }; }
31419
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}"
31420
test -n "$KDEDIR" && kde_libdirs="$KDEDIR/lib${kdelibsuff} $KDEDIR $kde_libdirs"
31421
kde_libdirs="$ac_kde_libraries $libdir $kde_libdirs"
31424
for i in $kde_libdirs;
31426
for j in $kde_check_lib;
31428
echo "configure: 31428: $i/$j" >&5
31429
if test -r "$i/$j"; then
31430
echo "taking that" >&5
31437
ac_kde_libraries="$kde_libdir"
31442
for i in $kde_libdirs;
31444
for j in "kde3/plugins/designer/kdewidgets.la";
31446
echo "configure: 31446: $i/$j" >&5
31447
if test -r "$i/$j"; then
31448
echo "taking that" >&5
31456
if test -n "$ac_kde_libraries" && test ! -r "$ac_kde_libraries/$kde_check_lib"; then
31457
{ { $as_echo "$as_me:$LINENO: error:
31458
in the prefix, you've chosen, are no KDE libraries installed. This will fail.
31459
So, check this please and use another prefix!" >&5
31460
$as_echo "$as_me: error:
31461
in the prefix, you've chosen, are no KDE libraries installed. This will fail.
31462
So, check this please and use another prefix!" >&2;}
31463
{ (exit 1); exit 1; }; }
31466
if test -n "$kde_widgetdir" && test ! -r "$kde_widgetdir/kde3/plugins/designer/kdewidgets.la"; then
31467
{ { $as_echo "$as_me:$LINENO: error:
31468
I can't find the designer plugins. These are required and should have been installed
31470
$as_echo "$as_me: error:
31471
I can't find the designer plugins. These are required and should have been installed
31473
{ (exit 1); exit 1; }; }
31476
if test -n "$kde_widgetdir"; then
31477
kde_widgetdir="$kde_widgetdir/kde3/plugins/designer"
31481
if test "$ac_kde_includes" = NO || test "$ac_kde_libraries" = NO || test "$kde_widgetdir" = NO; then
31482
ac_cv_have_kde="have_kde=no"
31484
ac_cv_have_kde="have_kde=yes \
31485
ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries"
31489
ac_cv_have_kde="have_kde=no"
31495
eval "$ac_cv_have_kde"
31497
if test "$have_kde" != "yes"; then
31498
if test "${prefix}" = NONE; then
31499
ac_kde_prefix="$ac_default_prefix"
31501
ac_kde_prefix="$prefix"
31503
if test "$exec_prefix" = NONE; then
31504
ac_kde_exec_prefix="$ac_kde_prefix"
31505
{ $as_echo "$as_me:$LINENO: result: will be installed in $ac_kde_prefix" >&5
31506
$as_echo "will be installed in $ac_kde_prefix" >&6; }
31508
ac_kde_exec_prefix="$exec_prefix"
31509
{ $as_echo "$as_me:$LINENO: result: will be installed in $ac_kde_prefix and $ac_kde_exec_prefix" >&5
31510
$as_echo "will be installed in $ac_kde_prefix and $ac_kde_exec_prefix" >&6; }
31513
kde_libraries="${libdir}"
31514
kde_includes="${includedir}"
31517
ac_cv_have_kde="have_kde=yes \
31518
ac_kde_includes=$ac_kde_includes ac_kde_libraries=$ac_kde_libraries"
31519
{ $as_echo "$as_me:$LINENO: result: libraries $ac_kde_libraries, headers $ac_kde_includes" >&5
31520
$as_echo "libraries $ac_kde_libraries, headers $ac_kde_includes" >&6; }
31522
kde_libraries="$ac_kde_libraries"
31523
kde_includes="$ac_kde_includes"
31528
if test "$kde_includes" = "$x_includes" || test "$kde_includes" = "$qt_includes" || test "$kde_includes" = "/usr/include"; then
31531
KDE_INCLUDES="-I$kde_includes"
31532
all_includes="$KDE_INCLUDES $all_includes"
31535
KDE_DEFAULT_CXXFLAGS="-DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION"
31537
KDE_LDFLAGS="-L$kde_libraries"
31538
if test ! "$kde_libraries" = "$x_libraries" && test ! "$kde_libraries" = "$qt_libraries" ; then
31539
all_libraries="$KDE_LDFLAGS $all_libraries"
31547
all_libraries="$all_libraries $USER_LDFLAGS"
31548
all_includes="$all_includes $USER_INCLUDES"
31552
if test -z ""; then
31556
if test x$ac_uic_supports_libpath = xyes; then
31558
{ $as_echo "$as_me:$LINENO: checking if UIC has KDE plugins available" >&5
31559
$as_echo_n "checking if UIC has KDE plugins available... " >&6; }
31560
if test "${kde_cv_uic_plugins+set}" = set; then
31561
$as_echo_n "(cached) " >&6
31564
cat > actest.ui << EOF
31565
<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
31566
<class>NewConnectionDialog</class>
31567
<widget class="QDialog">
31568
<widget class="KLineEdit">
31569
<property name="name">
31570
<cstring>testInput</cstring>
31579
kde_cv_uic_plugins=no
31580
kde_line="$UIC_PATH -L $kde_widgetdir"
31581
if test x$ac_uic_supports_nounload = xyes; then
31582
kde_line="$kde_line -nounload"
31584
kde_line="$kde_line -impl actest.h actest.ui > actest.cpp"
31585
if { (eval echo "$as_me:$LINENO: \"$kde_line\"") >&5
31586
(eval $kde_line) 2>&5
31588
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31589
(exit $ac_status); }; then
31590
# if you're trying to debug this check and think it's incorrect,
31591
# better check your installation. The check _is_ correct - your
31592
# installation is not.
31593
if test -f actest.cpp && grep klineedit actest.cpp > /dev/null; then
31594
kde_cv_uic_plugins=yes
31597
rm -f actest.ui actest.cpp
31602
{ $as_echo "$as_me:$LINENO: result: $kde_cv_uic_plugins" >&5
31603
$as_echo "$kde_cv_uic_plugins" >&6; }
31604
if test "$kde_cv_uic_plugins" != yes; then
31605
{ { $as_echo "$as_me:$LINENO: error:
31606
you need to install kdelibs first.
31608
If you did install kdelibs, then the Qt version that is picked up by
31609
this configure is not the same version you used to compile kdelibs.
31610
The Qt Plugin installed by kdelibs is *ONLY* loadable if it is the
31611
_same Qt version_, compiled with the _same compiler_ and the same Qt
31612
configuration settings.
31614
$as_echo "$as_me: error:
31615
you need to install kdelibs first.
31617
If you did install kdelibs, then the Qt version that is picked up by
31618
this configure is not the same version you used to compile kdelibs.
31619
The Qt Plugin installed by kdelibs is *ONLY* loadable if it is the
31620
_same Qt version_, compiled with the _same compiler_ and the same Qt
31621
configuration settings.
31623
{ (exit 1); exit 1; }; }
31629
ac_kde_libraries="$kde_libdir"
31635
# Check whether --enable-path-check was given.
31636
if test "${enable_path_check+set}" = set; then
31637
enableval=$enable_path_check;
31638
if test "$enableval" = "no";
31639
then ac_use_path_checking="default"
31640
else ac_use_path_checking=""
31645
if test "$kde_qtver" = 1;
31646
then ac_use_path_checking=""
31647
else ac_use_path_checking="default"
31657
{ $as_echo "$as_me:$LINENO: checking for KDE paths" >&5
31658
$as_echo_n "checking for KDE paths... " >&6; }
31660
kde_cached_paths=yes
31661
if test "${kde_cv_all_paths+set}" = set; then
31662
$as_echo_n "(cached) " >&6
31666
if test "$ac_use_path_checking" = "default"; then
31668
if test -z "$kde_htmldir"; then
31669
kde_htmldir='\${datadir}/doc/HTML'
31671
if test -z "$kde_appsdir"; then
31672
kde_appsdir='\${datadir}/applnk'
31674
if test -z "$kde_icondir"; then
31675
kde_icondir='\${datadir}/icons'
31677
if test -z "$kde_sounddir"; then
31678
kde_sounddir='\${datadir}/sounds'
31680
if test -z "$kde_datadir"; then
31681
kde_datadir='\${datadir}/apps'
31683
if test -z "$kde_locale"; then
31684
kde_locale='\${datadir}/locale'
31686
if test -z "$kde_cgidir"; then
31687
kde_cgidir='\${exec_prefix}/cgi-bin'
31689
if test -z "$kde_confdir"; then
31690
kde_confdir='\${datadir}/config'
31692
if test -z "$kde_kcfgdir"; then
31693
kde_kcfgdir='\${datadir}/config.kcfg'
31695
if test -z "$kde_mimedir"; then
31696
kde_mimedir='\${datadir}/mimelnk'
31698
if test -z "$kde_toolbardir"; then
31699
kde_toolbardir='\${datadir}/toolbar'
31701
if test -z "$kde_wallpaperdir"; then
31702
kde_wallpaperdir='\${datadir}/wallpapers'
31704
if test -z "$kde_templatesdir"; then
31705
kde_templatesdir='\${datadir}/templates'
31707
if test -z "$kde_bindir"; then
31708
kde_bindir='\${exec_prefix}/bin'
31710
if test -z "$kde_servicesdir"; then
31711
kde_servicesdir='\${datadir}/services'
31713
if test -z "$kde_servicetypesdir"; then
31714
kde_servicetypesdir='\${datadir}/servicetypes'
31716
if test -z "$kde_moduledir"; then
31717
if test "$kde_qtver" = "2"; then
31718
kde_moduledir='\${libdir}/kde2'
31720
kde_moduledir='\${libdir}/kde3'
31723
if test -z "$kde_styledir"; then
31724
kde_styledir='\${libdir}/kde3/plugins/styles'
31726
if test -z "$kde_widgetdir"; then
31727
kde_widgetdir='\${libdir}/kde3/plugins/designer'
31729
if test -z "$xdg_appsdir"; then
31730
xdg_appsdir='\${datadir}/applications/kde'
31732
if test -z "$xdg_menudir"; then
31733
xdg_menudir='\${sysconfdir}/xdg/menus'
31735
if test -z "$xdg_directorydir"; then
31736
xdg_directorydir='\${datadir}/desktop-directories'
31740
kde_cv_all_paths="kde_have_all_paths=\"yes\" \
31741
kde_htmldir=\"$kde_htmldir\" \
31742
kde_appsdir=\"$kde_appsdir\" \
31743
kde_icondir=\"$kde_icondir\" \
31744
kde_sounddir=\"$kde_sounddir\" \
31745
kde_datadir=\"$kde_datadir\" \
31746
kde_locale=\"$kde_locale\" \
31747
kde_cgidir=\"$kde_cgidir\" \
31748
kde_confdir=\"$kde_confdir\" \
31749
kde_kcfgdir=\"$kde_kcfgdir\" \
31750
kde_mimedir=\"$kde_mimedir\" \
31751
kde_toolbardir=\"$kde_toolbardir\" \
31752
kde_wallpaperdir=\"$kde_wallpaperdir\" \
31753
kde_templatesdir=\"$kde_templatesdir\" \
31754
kde_bindir=\"$kde_bindir\" \
31755
kde_servicesdir=\"$kde_servicesdir\" \
31756
kde_servicetypesdir=\"$kde_servicetypesdir\" \
31757
kde_moduledir=\"$kde_moduledir\" \
31758
kde_styledir=\"$kde_styledir\" \
31759
kde_widgetdir=\"$kde_widgetdir\" \
31760
xdg_appsdir=\"$xdg_appsdir\" \
31761
xdg_menudir=\"$xdg_menudir\" \
31762
xdg_directorydir=\"$xdg_directorydir\" \
31763
kde_result=defaults"
31768
if test $kde_qtver = 1; then
31769
{ $as_echo "$as_me:$LINENO: result: compiling" >&5
31770
$as_echo "compiling" >&6; }
31773
{ $as_echo "$as_me:$LINENO: checking for KDE headers installed" >&5
31774
$as_echo_n "checking for KDE headers installed... " >&6; }
31777
ac_cpp='$CXXCPP $CPPFLAGS'
31778
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31779
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31780
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31782
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
31785
cat > conftest.$ac_ext <<EOF
31786
#ifdef STDC_HEADERS
31787
# include <stdlib.h>
31790
#include "confdefs.h"
31794
printf("kde_htmldir=\\"%s\\"\n", KApplication::kde_htmldir().data());
31795
printf("kde_appsdir=\\"%s\\"\n", KApplication::kde_appsdir().data());
31796
printf("kde_icondir=\\"%s\\"\n", KApplication::kde_icondir().data());
31797
printf("kde_sounddir=\\"%s\\"\n", KApplication::kde_sounddir().data());
31798
printf("kde_datadir=\\"%s\\"\n", KApplication::kde_datadir().data());
31799
printf("kde_locale=\\"%s\\"\n", KApplication::kde_localedir().data());
31800
printf("kde_cgidir=\\"%s\\"\n", KApplication::kde_cgidir().data());
31801
printf("kde_confdir=\\"%s\\"\n", KApplication::kde_configdir().data());
31802
printf("kde_mimedir=\\"%s\\"\n", KApplication::kde_mimedir().data());
31803
printf("kde_toolbardir=\\"%s\\"\n", KApplication::kde_toolbardir().data());
31804
printf("kde_wallpaperdir=\\"%s\\"\n",
31805
KApplication::kde_wallpaperdir().data());
31806
printf("kde_bindir=\\"%s\\"\n", KApplication::kde_bindir().data());
31807
printf("kde_partsdir=\\"%s\\"\n", KApplication::kde_partsdir().data());
31808
printf("kde_servicesdir=\\"/tmp/dummy\\"\n");
31809
printf("kde_servicetypesdir=\\"/tmp/dummy\\"\n");
31810
printf("kde_moduledir=\\"/tmp/dummy\\"\n");
31811
printf("kde_styledir=\\"/tmp/dummy\\"\n");
31812
printf("kde_widgetdir=\\"/tmp/dummy\\"\n");
31813
printf("xdg_appsdir=\\"/tmp/dummy\\"\n");
31814
printf("xdg_menudir=\\"/tmp/dummy\\"\n");
31815
printf("xdg_directorydir=\\"/tmp/dummy\\"\n");
31816
printf("kde_kcfgdir=\\"/tmp/dummy\\"\n");
31821
ac_save_CPPFLAGS=$CPPFLAGS
31822
CPPFLAGS="$all_includes $CPPFLAGS"
31823
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31824
(eval $ac_compile) 2>&5
31826
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31827
(exit $ac_status); }; then
31828
{ $as_echo "$as_me:$LINENO: result: yes" >&5
31829
$as_echo "yes" >&6; }
31831
{ { $as_echo "$as_me:$LINENO: error: your system is not able to compile a small KDE application!
31832
Check, if you installed the KDE header files correctly.
31833
For more details about this problem, look at the end of config.log." >&5
31834
$as_echo "$as_me: error: your system is not able to compile a small KDE application!
31835
Check, if you installed the KDE header files correctly.
31836
For more details about this problem, look at the end of config.log." >&2;}
31837
{ (exit 1); exit 1; }; }
31839
CPPFLAGS=$ac_save_CPPFLAGS
31842
ac_cpp='$CPP $CPPFLAGS'
31843
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31844
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31845
ac_compiler_gnu=$ac_cv_c_compiler_gnu
31851
if test -n "$USE_RPATH"; then
31853
if test -n "$kde_libraries"; then
31854
KDE_TEST_RPATH="-R $kde_libraries"
31857
if test -n "$qt_libraries"; then
31858
KDE_TEST_RPATH="$KDE_TEST_RPATH -R $qt_libraries"
31861
if test -n "$x_libraries"; then
31862
KDE_TEST_RPATH="$KDE_TEST_RPATH -R $x_libraries"
31865
KDE_TEST_RPATH="$KDE_TEST_RPATH $KDE_EXTRA_RPATH"
31868
{ $as_echo "$as_me:$LINENO: checking for KDE libraries installed" >&5
31869
$as_echo_n "checking for KDE libraries installed... " >&6; }
31870
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'
31872
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31873
(eval $ac_link) 2>&5
31875
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31876
(exit $ac_status); } && test -s conftest; then
31877
{ $as_echo "$as_me:$LINENO: result: yes" >&5
31878
$as_echo "yes" >&6; }
31880
{ { $as_echo "$as_me:$LINENO: error: your system fails at linking a small KDE application!
31881
Check, if your compiler is installed correctly and if you have used the
31882
same compiler to compile Qt and kdelibs as you did use now.
31883
For more details about this problem, look at the end of config.log." >&5
31884
$as_echo "$as_me: error: your system fails at linking a small KDE application!
31885
Check, if your compiler is installed correctly and if you have used the
31886
same compiler to compile Qt and kdelibs as you did use now.
31887
For more details about this problem, look at the end of config.log." >&2;}
31888
{ (exit 1); exit 1; }; }
31891
if eval `KDEDIR= ./conftest 2>&5`; then
31894
kde_result=problems
31897
KDEDIR= ./conftest 2> /dev/null >&5 # make an echo for config.log
31898
kde_have_all_paths=yes
31901
kde_cv_all_paths="kde_have_all_paths=\"yes\" \
31902
kde_htmldir=\"$kde_htmldir\" \
31903
kde_appsdir=\"$kde_appsdir\" \
31904
kde_icondir=\"$kde_icondir\" \
31905
kde_sounddir=\"$kde_sounddir\" \
31906
kde_datadir=\"$kde_datadir\" \
31907
kde_locale=\"$kde_locale\" \
31908
kde_cgidir=\"$kde_cgidir\" \
31909
kde_confdir=\"$kde_confdir\" \
31910
kde_kcfgdir=\"$kde_kcfgdir\" \
31911
kde_mimedir=\"$kde_mimedir\" \
31912
kde_toolbardir=\"$kde_toolbardir\" \
31913
kde_wallpaperdir=\"$kde_wallpaperdir\" \
31914
kde_templatesdir=\"$kde_templatesdir\" \
31915
kde_bindir=\"$kde_bindir\" \
31916
kde_servicesdir=\"$kde_servicesdir\" \
31917
kde_servicetypesdir=\"$kde_servicetypesdir\" \
31918
kde_moduledir=\"$kde_moduledir\" \
31919
kde_styledir=\"$kde_styledir\" \
31920
kde_widgetdir=\"$kde_widgetdir\" \
31921
xdg_appsdir=\"$xdg_appsdir\" \
31922
xdg_menudir=\"$xdg_menudir\" \
31923
xdg_directorydir=\"$xdg_directorydir\" \
31924
kde_result=$kde_result"
31929
{ { $as_echo "$as_me:$LINENO: error: path checking not yet supported for KDE 2" >&5
31930
$as_echo "$as_me: error: path checking not yet supported for KDE 2" >&2;}
31931
{ (exit 1); exit 1; }; }
31936
kde_cached_paths=no
31940
eval "$kde_cv_all_paths"
31941
if test -z "$kde_htmldir" || test -z "$kde_appsdir" ||
31942
test -z "$kde_icondir" || test -z "$kde_sounddir" ||
31943
test -z "$kde_datadir" || test -z "$kde_locale" ||
31944
test -z "$kde_cgidir" || test -z "$kde_confdir" ||
31945
test -z "$kde_kcfgdir" ||
31946
test -z "$kde_mimedir" || test -z "$kde_toolbardir" ||
31947
test -z "$kde_wallpaperdir" || test -z "$kde_templatesdir" ||
31948
test -z "$kde_bindir" || test -z "$kde_servicesdir" ||
31949
test -z "$kde_servicetypesdir" || test -z "$kde_moduledir" ||
31950
test -z "$kde_styledir" || test -z "kde_widgetdir" ||
31951
test -z "$xdg_appsdir" || test -z "$xdg_menudir" || test -z "$xdg_directorydir" ||
31952
test "x$kde_have_all_paths" != "xyes"; then
31953
kde_have_all_paths=no
31956
if test "$kde_have_all_paths" = "no" && test "$kde_cached_paths" = "yes"; then
31957
# wrong values were cached, may be, we can set better ones
31959
kde_htmldir= kde_appsdir= kde_icondir= kde_sounddir=
31960
kde_datadir= kde_locale= kde_cgidir= kde_confdir= kde_kcfgdir=
31961
kde_mimedir= kde_toolbardir= kde_wallpaperdir= kde_templatesdir=
31962
kde_bindir= kde_servicesdir= kde_servicetypesdir= kde_moduledir=
31963
kde_have_all_paths=
31966
xdg_appsdir = xdg_menudir= xdg_directorydir=
31968
if test "$ac_use_path_checking" = "default"; then
31970
if test -z "$kde_htmldir"; then
31971
kde_htmldir='\${datadir}/doc/HTML'
31973
if test -z "$kde_appsdir"; then
31974
kde_appsdir='\${datadir}/applnk'
31976
if test -z "$kde_icondir"; then
31977
kde_icondir='\${datadir}/icons'
31979
if test -z "$kde_sounddir"; then
31980
kde_sounddir='\${datadir}/sounds'
31982
if test -z "$kde_datadir"; then
31983
kde_datadir='\${datadir}/apps'
31985
if test -z "$kde_locale"; then
31986
kde_locale='\${datadir}/locale'
31988
if test -z "$kde_cgidir"; then
31989
kde_cgidir='\${exec_prefix}/cgi-bin'
31991
if test -z "$kde_confdir"; then
31992
kde_confdir='\${datadir}/config'
31994
if test -z "$kde_kcfgdir"; then
31995
kde_kcfgdir='\${datadir}/config.kcfg'
31997
if test -z "$kde_mimedir"; then
31998
kde_mimedir='\${datadir}/mimelnk'
32000
if test -z "$kde_toolbardir"; then
32001
kde_toolbardir='\${datadir}/toolbar'
32003
if test -z "$kde_wallpaperdir"; then
32004
kde_wallpaperdir='\${datadir}/wallpapers'
32006
if test -z "$kde_templatesdir"; then
32007
kde_templatesdir='\${datadir}/templates'
32009
if test -z "$kde_bindir"; then
32010
kde_bindir='\${exec_prefix}/bin'
32012
if test -z "$kde_servicesdir"; then
32013
kde_servicesdir='\${datadir}/services'
32015
if test -z "$kde_servicetypesdir"; then
32016
kde_servicetypesdir='\${datadir}/servicetypes'
32018
if test -z "$kde_moduledir"; then
32019
if test "$kde_qtver" = "2"; then
32020
kde_moduledir='\${libdir}/kde2'
32022
kde_moduledir='\${libdir}/kde3'
32025
if test -z "$kde_styledir"; then
32026
kde_styledir='\${libdir}/kde3/plugins/styles'
32028
if test -z "$kde_widgetdir"; then
32029
kde_widgetdir='\${libdir}/kde3/plugins/designer'
32031
if test -z "$xdg_appsdir"; then
32032
xdg_appsdir='\${datadir}/applications/kde'
32034
if test -z "$xdg_menudir"; then
32035
xdg_menudir='\${sysconfdir}/xdg/menus'
32037
if test -z "$xdg_directorydir"; then
32038
xdg_directorydir='\${datadir}/desktop-directories'
32042
kde_cv_all_paths="kde_have_all_paths=\"yes\" \
32043
kde_htmldir=\"$kde_htmldir\" \
32044
kde_appsdir=\"$kde_appsdir\" \
32045
kde_icondir=\"$kde_icondir\" \
32046
kde_sounddir=\"$kde_sounddir\" \
32047
kde_datadir=\"$kde_datadir\" \
32048
kde_locale=\"$kde_locale\" \
32049
kde_cgidir=\"$kde_cgidir\" \
32050
kde_confdir=\"$kde_confdir\" \
32051
kde_kcfgdir=\"$kde_kcfgdir\" \
32052
kde_mimedir=\"$kde_mimedir\" \
32053
kde_toolbardir=\"$kde_toolbardir\" \
32054
kde_wallpaperdir=\"$kde_wallpaperdir\" \
32055
kde_templatesdir=\"$kde_templatesdir\" \
32056
kde_bindir=\"$kde_bindir\" \
32057
kde_servicesdir=\"$kde_servicesdir\" \
32058
kde_servicetypesdir=\"$kde_servicetypesdir\" \
32059
kde_moduledir=\"$kde_moduledir\" \
32060
kde_styledir=\"$kde_styledir\" \
32061
kde_widgetdir=\"$kde_widgetdir\" \
32062
xdg_appsdir=\"$xdg_appsdir\" \
32063
xdg_menudir=\"$xdg_menudir\" \
32064
xdg_directorydir=\"$xdg_directorydir\" \
32065
kde_result=defaults"
32070
if test $kde_qtver = 1; then
32071
{ $as_echo "$as_me:$LINENO: result: compiling" >&5
32072
$as_echo "compiling" >&6; }
32075
{ $as_echo "$as_me:$LINENO: checking for KDE headers installed" >&5
32076
$as_echo_n "checking for KDE headers installed... " >&6; }
32079
ac_cpp='$CXXCPP $CPPFLAGS'
32080
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32081
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32082
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
32084
ac_link='rm -rf SunWS_cache; ${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
32087
cat > conftest.$ac_ext <<EOF
32088
#ifdef STDC_HEADERS
32089
# include <stdlib.h>
32092
#include "confdefs.h"
32096
printf("kde_htmldir=\\"%s\\"\n", KApplication::kde_htmldir().data());
32097
printf("kde_appsdir=\\"%s\\"\n", KApplication::kde_appsdir().data());
32098
printf("kde_icondir=\\"%s\\"\n", KApplication::kde_icondir().data());
32099
printf("kde_sounddir=\\"%s\\"\n", KApplication::kde_sounddir().data());
32100
printf("kde_datadir=\\"%s\\"\n", KApplication::kde_datadir().data());
32101
printf("kde_locale=\\"%s\\"\n", KApplication::kde_localedir().data());
32102
printf("kde_cgidir=\\"%s\\"\n", KApplication::kde_cgidir().data());
32103
printf("kde_confdir=\\"%s\\"\n", KApplication::kde_configdir().data());
32104
printf("kde_mimedir=\\"%s\\"\n", KApplication::kde_mimedir().data());
32105
printf("kde_toolbardir=\\"%s\\"\n", KApplication::kde_toolbardir().data());
32106
printf("kde_wallpaperdir=\\"%s\\"\n",
32107
KApplication::kde_wallpaperdir().data());
32108
printf("kde_bindir=\\"%s\\"\n", KApplication::kde_bindir().data());
32109
printf("kde_partsdir=\\"%s\\"\n", KApplication::kde_partsdir().data());
32110
printf("kde_servicesdir=\\"/tmp/dummy\\"\n");
32111
printf("kde_servicetypesdir=\\"/tmp/dummy\\"\n");
32112
printf("kde_moduledir=\\"/tmp/dummy\\"\n");
32113
printf("kde_styledir=\\"/tmp/dummy\\"\n");
32114
printf("kde_widgetdir=\\"/tmp/dummy\\"\n");
32115
printf("xdg_appsdir=\\"/tmp/dummy\\"\n");
32116
printf("xdg_menudir=\\"/tmp/dummy\\"\n");
32117
printf("xdg_directorydir=\\"/tmp/dummy\\"\n");
32118
printf("kde_kcfgdir=\\"/tmp/dummy\\"\n");
32123
ac_save_CPPFLAGS=$CPPFLAGS
32124
CPPFLAGS="$all_includes $CPPFLAGS"
32125
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32126
(eval $ac_compile) 2>&5
32128
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32129
(exit $ac_status); }; then
32130
{ $as_echo "$as_me:$LINENO: result: yes" >&5
32131
$as_echo "yes" >&6; }
32133
{ { $as_echo "$as_me:$LINENO: error: your system is not able to compile a small KDE application!
32134
Check, if you installed the KDE header files correctly.
32135
For more details about this problem, look at the end of config.log." >&5
32136
$as_echo "$as_me: error: your system is not able to compile a small KDE application!
32137
Check, if you installed the KDE header files correctly.
32138
For more details about this problem, look at the end of config.log." >&2;}
32139
{ (exit 1); exit 1; }; }
32141
CPPFLAGS=$ac_save_CPPFLAGS
32144
ac_cpp='$CPP $CPPFLAGS'
32145
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32146
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32147
ac_compiler_gnu=$ac_cv_c_compiler_gnu
32153
if test -n "$USE_RPATH"; then
32155
if test -n "$kde_libraries"; then
32156
KDE_TEST_RPATH="-R $kde_libraries"
32159
if test -n "$qt_libraries"; then
32160
KDE_TEST_RPATH="$KDE_TEST_RPATH -R $qt_libraries"
32163
if test -n "$x_libraries"; then
32164
KDE_TEST_RPATH="$KDE_TEST_RPATH -R $x_libraries"
32167
KDE_TEST_RPATH="$KDE_TEST_RPATH $KDE_EXTRA_RPATH"
32170
{ $as_echo "$as_me:$LINENO: checking for KDE libraries installed" >&5
32171
$as_echo_n "checking for KDE libraries installed... " >&6; }
32172
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'
32174
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32175
(eval $ac_link) 2>&5
32177
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32178
(exit $ac_status); } && test -s conftest; then
32179
{ $as_echo "$as_me:$LINENO: result: yes" >&5
32180
$as_echo "yes" >&6; }
32182
{ { $as_echo "$as_me:$LINENO: error: your system fails at linking a small KDE application!
32183
Check, if your compiler is installed correctly and if you have used the
32184
same compiler to compile Qt and kdelibs as you did use now.
32185
For more details about this problem, look at the end of config.log." >&5
32186
$as_echo "$as_me: error: your system fails at linking a small KDE application!
32187
Check, if your compiler is installed correctly and if you have used the
32188
same compiler to compile Qt and kdelibs as you did use now.
32189
For more details about this problem, look at the end of config.log." >&2;}
32190
{ (exit 1); exit 1; }; }
32193
if eval `KDEDIR= ./conftest 2>&5`; then
32196
kde_result=problems
32199
KDEDIR= ./conftest 2> /dev/null >&5 # make an echo for config.log
32200
kde_have_all_paths=yes
32203
kde_cv_all_paths="kde_have_all_paths=\"yes\" \
32204
kde_htmldir=\"$kde_htmldir\" \
32205
kde_appsdir=\"$kde_appsdir\" \
32206
kde_icondir=\"$kde_icondir\" \
32207
kde_sounddir=\"$kde_sounddir\" \
32208
kde_datadir=\"$kde_datadir\" \
32209
kde_locale=\"$kde_locale\" \
32210
kde_cgidir=\"$kde_cgidir\" \
32211
kde_confdir=\"$kde_confdir\" \
32212
kde_kcfgdir=\"$kde_kcfgdir\" \
32213
kde_mimedir=\"$kde_mimedir\" \
32214
kde_toolbardir=\"$kde_toolbardir\" \
32215
kde_wallpaperdir=\"$kde_wallpaperdir\" \
32216
kde_templatesdir=\"$kde_templatesdir\" \
32217
kde_bindir=\"$kde_bindir\" \
32218
kde_servicesdir=\"$kde_servicesdir\" \
32219
kde_servicetypesdir=\"$kde_servicetypesdir\" \
32220
kde_moduledir=\"$kde_moduledir\" \
32221
kde_styledir=\"$kde_styledir\" \
32222
kde_widgetdir=\"$kde_widgetdir\" \
32223
xdg_appsdir=\"$xdg_appsdir\" \
32224
xdg_menudir=\"$xdg_menudir\" \
32225
xdg_directorydir=\"$xdg_directorydir\" \
32226
kde_result=$kde_result"
32231
{ { $as_echo "$as_me:$LINENO: error: path checking not yet supported for KDE 2" >&5
32232
$as_echo "$as_me: error: path checking not yet supported for KDE 2" >&2;}
32233
{ (exit 1); exit 1; }; }
32238
eval "$kde_cv_all_paths"
32239
if test -z "$kde_htmldir" || test -z "$kde_appsdir" ||
32240
test -z "$kde_icondir" || test -z "$kde_sounddir" ||
32241
test -z "$kde_datadir" || test -z "$kde_locale" ||
32242
test -z "$kde_cgidir" || test -z "$kde_confdir" ||
32243
test -z "$kde_kcfgdir" ||
32244
test -z "$kde_mimedir" || test -z "$kde_toolbardir" ||
32245
test -z "$kde_wallpaperdir" || test -z "$kde_templatesdir" ||
32246
test -z "$kde_bindir" || test -z "$kde_servicesdir" ||
32247
test -z "$kde_servicetypesdir" || test -z "$kde_moduledir" ||
32248
test -z "$kde_styledir" || test -z "kde_widgetdir" ||
32249
test -z "$xdg_appsdir" || test -z "$xdg_menudir" || test -z "$xdg_directorydir" ||
32250
test "x$kde_have_all_paths" != "xyes"; then
32251
kde_have_all_paths=no
32254
kde_result="$kde_result (cache overridden)"
32256
if test "$kde_have_all_paths" = "no"; then
32257
{ { $as_echo "$as_me:$LINENO: error: configure could not run a little KDE program to test the environment.
32258
Since it had compiled and linked before, it must be a strange problem on your system.
32259
Look at config.log for details. If you are not able to fix this, look at
32260
http://www.kde.org/faq/installation.html or any www.kde.org mirror.
32261
(If you're using an egcs version on Linux, you may update binutils!)
32263
$as_echo "$as_me: error: configure could not run a little KDE program to test the environment.
32264
Since it had compiled and linked before, it must be a strange problem on your system.
32265
Look at config.log for details. If you are not able to fix this, look at
32266
http://www.kde.org/faq/installation.html or any www.kde.org mirror.
32267
(If you're using an egcs version on Linux, you may update binutils!)
32269
{ (exit 1); exit 1; }; }
32272
{ $as_echo "$as_me:$LINENO: result: $kde_result" >&5
32273
$as_echo "$kde_result" >&6; }
32280
# Check whether --with-arts was given.
32281
if test "${with_arts+set}" = set; then
32282
withval=$with_arts; build_arts=$withval
32290
if test "$build_arts" '!=' "no"; then
32292
include_ARTS_FALSE='#'
32294
include_ARTS_TRUE='#'
32295
include_ARTS_FALSE=
32298
if test "$build_arts" = "no"; then
32300
cat >>confdefs.h <<\_ACEOF
32301
#define WITHOUT_ARTS 1
32307
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"
32308
test -n "$KDEDIR" && kde_default_bindirs="$KDEDIR/bin $kde_default_bindirs"
32309
if test -n "$KDEDIRS"; then
32312
for dir in $KDEDIRS; do
32313
kde_default_bindirs="$dir/bin $kde_default_bindirs "
32318
kde_default_bindirs="$exec_prefix/bin $prefix/bin $kde_libs_prefix/bin $kde_default_bindirs"
32320
{ $as_echo "$as_me:$LINENO: checking for dcopidl" >&5
32321
$as_echo_n "checking for dcopidl... " >&6; }
32322
if test -n "$DCOPIDL"; then
32323
kde_cv_path="$DCOPIDL";
32325
kde_cache=`echo dcopidl | sed 'y%./+-%__p_%'`
32327
if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
32328
$as_echo_n "(cached) " >&6
32335
for dir in $PATH; do
32338
if test -z ""; then dirs="$kde_default_bindirs $dirs"
32339
else dirs="$dirs $kde_default_bindirs"
32343
for dir in $dirs; do
32344
if test -x "$dir/dcopidl"; then
32347
evalstr="$dir/dcopidl 2>&1 "
32348
if eval $evalstr; then
32349
kde_cv_path="$dir/dcopidl"
32353
kde_cv_path="$dir/dcopidl"
32359
eval "kde_cv_path_$kde_cache=$kde_cv_path"
32365
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32369
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32370
{ $as_echo "$as_me:$LINENO: result: not found" >&5
32371
$as_echo "not found" >&6; }
32373
{ { $as_echo "$as_me:$LINENO: error: The important program dcopidl was not found!
32374
Please check whether you installed KDE correctly.
32376
$as_echo "$as_me: error: The important program dcopidl was not found!
32377
Please check whether you installed KDE correctly.
32379
{ (exit 1); exit 1; }; }
32382
{ $as_echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32383
$as_echo "$kde_cv_path" >&6; }
32384
DCOPIDL=$kde_cv_path
32389
{ $as_echo "$as_me:$LINENO: checking for dcopidl2cpp" >&5
32390
$as_echo_n "checking for dcopidl2cpp... " >&6; }
32391
if test -n "$DCOPIDL2CPP"; then
32392
kde_cv_path="$DCOPIDL2CPP";
32394
kde_cache=`echo dcopidl2cpp | sed 'y%./+-%__p_%'`
32396
if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
32397
$as_echo_n "(cached) " >&6
32404
for dir in $PATH; do
32407
if test -z ""; then dirs="$kde_default_bindirs $dirs"
32408
else dirs="$dirs $kde_default_bindirs"
32412
for dir in $dirs; do
32413
if test -x "$dir/dcopidl2cpp"; then
32416
evalstr="$dir/dcopidl2cpp 2>&1 "
32417
if eval $evalstr; then
32418
kde_cv_path="$dir/dcopidl2cpp"
32422
kde_cv_path="$dir/dcopidl2cpp"
32428
eval "kde_cv_path_$kde_cache=$kde_cv_path"
32434
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32438
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32439
{ $as_echo "$as_me:$LINENO: result: not found" >&5
32440
$as_echo "not found" >&6; }
32442
{ { $as_echo "$as_me:$LINENO: error: The important program dcopidl2cpp was not found!
32443
Please check whether you installed KDE correctly.
32445
$as_echo "$as_me: error: The important program dcopidl2cpp was not found!
32446
Please check whether you installed KDE correctly.
32448
{ (exit 1); exit 1; }; }
32451
{ $as_echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32452
$as_echo "$kde_cv_path" >&6; }
32453
DCOPIDL2CPP=$kde_cv_path
32457
if test "$build_arts" '!=' "no"; then
32459
{ $as_echo "$as_me:$LINENO: checking for mcopidl" >&5
32460
$as_echo_n "checking for mcopidl... " >&6; }
32461
if test -n "$MCOPIDL"; then
32462
kde_cv_path="$MCOPIDL";
32464
kde_cache=`echo mcopidl | sed 'y%./+-%__p_%'`
32466
if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
32467
$as_echo_n "(cached) " >&6
32474
for dir in $PATH; do
32477
if test -z ""; then dirs="$kde_default_bindirs $dirs"
32478
else dirs="$dirs $kde_default_bindirs"
32482
for dir in $dirs; do
32483
if test -x "$dir/mcopidl"; then
32486
evalstr="$dir/mcopidl 2>&1 "
32487
if eval $evalstr; then
32488
kde_cv_path="$dir/mcopidl"
32492
kde_cv_path="$dir/mcopidl"
32498
eval "kde_cv_path_$kde_cache=$kde_cv_path"
32504
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32508
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32509
{ $as_echo "$as_me:$LINENO: result: not found" >&5
32510
$as_echo "not found" >&6; }
32512
{ { $as_echo "$as_me:$LINENO: error: The important program mcopidl was not found!
32513
Please check whether you installed aRts correctly or use
32514
--without-arts to compile without aRts support (this will remove functionality).
32516
$as_echo "$as_me: error: The important program mcopidl was not found!
32517
Please check whether you installed aRts correctly or use
32518
--without-arts to compile without aRts support (this will remove functionality).
32520
{ (exit 1); exit 1; }; }
32523
{ $as_echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32524
$as_echo "$kde_cv_path" >&6; }
32525
MCOPIDL=$kde_cv_path
32530
{ $as_echo "$as_me:$LINENO: checking for artsc-config" >&5
32531
$as_echo_n "checking for artsc-config... " >&6; }
32532
if test -n "$ARTSCCONFIG"; then
32533
kde_cv_path="$ARTSCCONFIG";
32535
kde_cache=`echo artsc-config | sed 'y%./+-%__p_%'`
32537
if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
32538
$as_echo_n "(cached) " >&6
32545
for dir in $PATH; do
32548
if test -z ""; then dirs="$kde_default_bindirs $dirs"
32549
else dirs="$dirs $kde_default_bindirs"
32553
for dir in $dirs; do
32554
if test -x "$dir/artsc-config"; then
32557
evalstr="$dir/artsc-config 2>&1 "
32558
if eval $evalstr; then
32559
kde_cv_path="$dir/artsc-config"
32563
kde_cv_path="$dir/artsc-config"
32569
eval "kde_cv_path_$kde_cache=$kde_cv_path"
32575
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32579
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32580
{ $as_echo "$as_me:$LINENO: result: not found" >&5
32581
$as_echo "not found" >&6; }
32583
{ { $as_echo "$as_me:$LINENO: error: The important program artsc-config was not found!
32584
Please check whether you installed aRts correctly or use
32585
--without-arts to compile without aRts support (this will remove functionality).
32587
$as_echo "$as_me: error: The important program artsc-config was not found!
32588
Please check whether you installed aRts correctly or use
32589
--without-arts to compile without aRts support (this will remove functionality).
32591
{ (exit 1); exit 1; }; }
32594
{ $as_echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32595
$as_echo "$kde_cv_path" >&6; }
32596
ARTSCCONFIG=$kde_cv_path
32602
{ $as_echo "$as_me:$LINENO: checking for meinproc" >&5
32603
$as_echo_n "checking for meinproc... " >&6; }
32604
if test -n "$MEINPROC"; then
32605
kde_cv_path="$MEINPROC";
32607
kde_cache=`echo meinproc | sed 'y%./+-%__p_%'`
32609
if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
32610
$as_echo_n "(cached) " >&6
32617
for dir in $PATH; do
32620
if test -z ""; then dirs="$kde_default_bindirs $dirs"
32621
else dirs="$dirs $kde_default_bindirs"
32625
for dir in $dirs; do
32626
if test -x "$dir/meinproc"; then
32629
evalstr="$dir/meinproc 2>&1 "
32630
if eval $evalstr; then
32631
kde_cv_path="$dir/meinproc"
32635
kde_cv_path="$dir/meinproc"
32641
eval "kde_cv_path_$kde_cache=$kde_cv_path"
32647
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32651
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32652
{ $as_echo "$as_me:$LINENO: result: not found" >&5
32653
$as_echo "not found" >&6; }
32656
{ $as_echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32657
$as_echo "$kde_cv_path" >&6; }
32658
MEINPROC=$kde_cv_path
32665
if test -n "$kde_qtver" && test "$kde_qtver" -lt 3; then
32669
if test "$kde_qtver" = "3"; then
32670
if test "$kde_qtsubver" -le 1; then
32673
if test "$kde_qtsubver" -le 2; then
32676
if test "$KDECONFIG" != "compiled"; then
32677
if test `$KDECONFIG --version | grep KDE | sed 's/KDE: \(...\).*/\1/'` = 3.2; then
32684
if test -n "$kde32ornewer"; then
32686
{ $as_echo "$as_me:$LINENO: checking for kconfig_compiler" >&5
32687
$as_echo_n "checking for kconfig_compiler... " >&6; }
32688
if test -n "$KCONFIG_COMPILER"; then
32689
kde_cv_path="$KCONFIG_COMPILER";
32691
kde_cache=`echo kconfig_compiler | sed 'y%./+-%__p_%'`
32693
if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
32694
$as_echo_n "(cached) " >&6
32701
for dir in $PATH; do
32704
if test -z ""; then dirs="$kde_default_bindirs $dirs"
32705
else dirs="$dirs $kde_default_bindirs"
32709
for dir in $dirs; do
32710
if test -x "$dir/kconfig_compiler"; then
32713
evalstr="$dir/kconfig_compiler 2>&1 "
32714
if eval $evalstr; then
32715
kde_cv_path="$dir/kconfig_compiler"
32719
kde_cv_path="$dir/kconfig_compiler"
32725
eval "kde_cv_path_$kde_cache=$kde_cv_path"
32731
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32735
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32736
{ $as_echo "$as_me:$LINENO: result: not found" >&5
32737
$as_echo "not found" >&6; }
32739
{ { $as_echo "$as_me:$LINENO: error: The important program kconfig_compiler was not found!
32740
Please check whether you installed KDE correctly.
32742
$as_echo "$as_me: error: The important program kconfig_compiler was not found!
32743
Please check whether you installed KDE correctly.
32745
{ (exit 1); exit 1; }; }
32748
{ $as_echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32749
$as_echo "$kde_cv_path" >&6; }
32750
KCONFIG_COMPILER=$kde_cv_path
32755
{ $as_echo "$as_me:$LINENO: checking for dcopidlng" >&5
32756
$as_echo_n "checking for dcopidlng... " >&6; }
32757
if test -n "$DCOPIDLNG"; then
32758
kde_cv_path="$DCOPIDLNG";
32760
kde_cache=`echo dcopidlng | sed 'y%./+-%__p_%'`
32762
if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
32763
$as_echo_n "(cached) " >&6
32770
for dir in $PATH; do
32773
if test -z ""; then dirs="$kde_default_bindirs $dirs"
32774
else dirs="$dirs $kde_default_bindirs"
32778
for dir in $dirs; do
32779
if test -x "$dir/dcopidlng"; then
32782
evalstr="$dir/dcopidlng 2>&1 "
32783
if eval $evalstr; then
32784
kde_cv_path="$dir/dcopidlng"
32788
kde_cv_path="$dir/dcopidlng"
32794
eval "kde_cv_path_$kde_cache=$kde_cv_path"
32800
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32804
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32805
{ $as_echo "$as_me:$LINENO: result: not found" >&5
32806
$as_echo "not found" >&6; }
32808
{ { $as_echo "$as_me:$LINENO: error: The important program dcopidlng was not found!
32809
Please check whether you installed KDE correctly.
32811
$as_echo "$as_me: error: The important program dcopidlng was not found!
32812
Please check whether you installed KDE correctly.
32814
{ (exit 1); exit 1; }; }
32817
{ $as_echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32818
$as_echo "$kde_cv_path" >&6; }
32819
DCOPIDLNG=$kde_cv_path
32824
if test -n "$kde33ornewer"; then
32826
{ $as_echo "$as_me:$LINENO: checking for makekdewidgets" >&5
32827
$as_echo_n "checking for makekdewidgets... " >&6; }
32828
if test -n "$MAKEKDEWIDGETS"; then
32829
kde_cv_path="$MAKEKDEWIDGETS";
32831
kde_cache=`echo makekdewidgets | sed 'y%./+-%__p_%'`
32833
if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
32834
$as_echo_n "(cached) " >&6
32841
for dir in $PATH; do
32844
if test -z ""; then dirs="$kde_default_bindirs $dirs"
32845
else dirs="$dirs $kde_default_bindirs"
32849
for dir in $dirs; do
32850
if test -x "$dir/makekdewidgets"; then
32853
evalstr="$dir/makekdewidgets 2>&1 "
32854
if eval $evalstr; then
32855
kde_cv_path="$dir/makekdewidgets"
32859
kde_cv_path="$dir/makekdewidgets"
32865
eval "kde_cv_path_$kde_cache=$kde_cv_path"
32871
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32875
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32876
{ $as_echo "$as_me:$LINENO: result: not found" >&5
32877
$as_echo "not found" >&6; }
32879
{ { $as_echo "$as_me:$LINENO: error: The important program makekdewidgets was not found!
32880
Please check whether you installed KDE correctly.
32882
$as_echo "$as_me: error: The important program makekdewidgets was not found!
32883
Please check whether you installed KDE correctly.
32885
{ (exit 1); exit 1; }; }
32888
{ $as_echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32889
$as_echo "$kde_cv_path" >&6; }
32890
MAKEKDEWIDGETS=$kde_cv_path
32897
{ $as_echo "$as_me:$LINENO: checking for xmllint" >&5
32898
$as_echo_n "checking for xmllint... " >&6; }
32899
if test -n "$XMLLINT"; then
32900
kde_cv_path="$XMLLINT";
32902
kde_cache=`echo xmllint | sed 'y%./+-%__p_%'`
32904
if { as_var=kde_cv_path_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
32905
$as_echo_n "(cached) " >&6
32912
for dir in $PATH; do
32915
if test -z ""; then dirs="${prefix}/bin ${exec_prefix}/bin $dirs"
32916
else dirs="$dirs ${prefix}/bin ${exec_prefix}/bin"
32920
for dir in $dirs; do
32921
if test -x "$dir/xmllint"; then
32924
evalstr="$dir/xmllint 2>&1 "
32925
if eval $evalstr; then
32926
kde_cv_path="$dir/xmllint"
32930
kde_cv_path="$dir/xmllint"
32936
eval "kde_cv_path_$kde_cache=$kde_cv_path"
32942
eval "kde_cv_path=\"`echo '$kde_cv_path_'$kde_cache`\""
32946
if test -z "$kde_cv_path" || test "$kde_cv_path" = NONE; then
32947
{ $as_echo "$as_me:$LINENO: result: not found" >&5
32948
$as_echo "not found" >&6; }
32951
{ $as_echo "$as_me:$LINENO: result: $kde_cv_path" >&5
32952
$as_echo "$kde_cv_path" >&6; }
32953
XMLLINT=$kde_cv_path
32958
if test -n "$MEINPROC" -a "$MEINPROC" != "compiled"; then
32959
kde_sharedirs="/usr/share/kde /usr/local/share /usr/share /opt/kde3/share /opt/kde/share $prefix/share"
32960
test -n "$KDEDIR" && kde_sharedirs="$KDEDIR/share $kde_sharedirs"
32962
KDE_XSL_STYLESHEET=NO
32963
for i in $kde_sharedirs;
32965
for j in apps/ksgmltools2/customization/kde-chunk.xsl;
32967
echo "configure: 32967: $i/$j" >&5
32968
if test -r "$i/$j"; then
32969
echo "taking that" >&5
32970
KDE_XSL_STYLESHEET=$i
32976
if test "$KDE_XSL_STYLESHEET" = "NO"; then
32977
KDE_XSL_STYLESHEET=""
32979
KDE_XSL_STYLESHEET="$KDE_XSL_STYLESHEET/apps/ksgmltools2/customization/kde-chunk.xsl"
32983
DCOP_DEPENDENCIES='$(DCOPIDL)'
32984
if test -n "$kde32ornewer"; then
32985
KCFG_DEPENDENCIES='$(KCONFIG_COMPILER)'
32986
DCOP_DEPENDENCIES='$(DCOPIDL) $(DCOPIDLNG)'
33022
kdeinitdir='$(kde_moduledir)'
33026
if test "$kde_qtver" = 1; then
33027
kde_minidir="$kde_icondir/mini"
33029
# for KDE 1 - this breaks KDE2 apps using minidir, but
33030
# that's the plan ;-/
33031
kde_minidir="/dev/null"
33039
if test $kde_qtver = 3; then
33041
*cygwin*) lib_kded="-lkdeinit_kded" ;;
33046
LIB_KDECORE="-lkdecore"
33048
LIB_KDEUI="-lkdeui"
33060
LIB_KHTML="-lkhtml"
33062
LIB_KSPELL="-lkspell"
33064
LIB_KPARTS="-lkparts"
33066
LIB_KDEPRINT="-lkdeprint"
33068
LIB_KUTILS="-lkutils"
33070
LIB_KDEPIM="-lkdepim"
33072
LIB_KIMPROXY="-lkimproxy"
33074
LIB_KNEWSTUFF="-lknewstuff"
33076
LIB_KDNSSD="-lkdnssd"
33078
LIB_KUNITTEST="-lkunittest"
33080
# these are for backward compatibility
33081
LIB_KSYCOCA="-lkio"
33085
elif test $kde_qtver = 2; then
33086
LIB_KDECORE="-lkdecore"
33088
LIB_KDEUI="-lkdeui"
33092
LIB_KSYCOCA="-lksycoca"
33096
LIB_KFILE="-lkfile"
33100
LIB_KHTML="-lkhtml"
33102
LIB_KSPELL="-lkspell"
33104
LIB_KPARTS="-lkparts"
33106
LIB_KDEPRINT="-lkdeprint"
33109
LIB_KDECORE="-lkdecore -lXext $(LIB_QT)"
33111
LIB_KDEUI="-lkdeui $(LIB_KDECORE)"
33113
LIB_KFM="-lkfm $(LIB_KDECORE)"
33115
LIB_KFILE="-lkfile $(LIB_KFM) $(LIB_KDEUI)"
33117
LIB_KAB="-lkab $(LIB_KIMGIO) $(LIB_KDECORE)"
33127
DO_NOT_COMPILE="$DO_NOT_COMPILE CVS debian bsd-port admin"
33130
if test ! -s $srcdir/subdirs; then
33131
files=`cd $srcdir && ls -1`
33132
dirs=`for i in $files; do if test -d $i; then echo $i; fi; done`
33134
echo $i >> $srcdir/subdirs
33139
if test -s $srcdir/inst-apps; then
33140
ac_topsubdirs="`cat $srcdir/inst-apps`"
33141
elif test -s $srcdir/subdirs; then
33142
ac_topsubdirs="`cat $srcdir/subdirs`"
33145
for i in $ac_topsubdirs; do
33146
{ $as_echo "$as_me:$LINENO: checking if $i should be compiled" >&5
33147
$as_echo_n "checking if $i should be compiled... " >&6; }
33148
if test -d $srcdir/$i; then
33150
for j in $DO_NOT_COMPILE; do
33151
if test $i = $j; then
33158
{ $as_echo "$as_me:$LINENO: result: $install_it" >&5
33159
$as_echo "$install_it" >&6; }
33160
vari=`echo $i | sed -e 's,[-+.@],_,g'`
33161
if test $install_it = "yes"; then
33162
TOPSUBDIRS="$TOPSUBDIRS $i"
33163
eval "$vari""_SUBDIR_included=yes"
33165
eval "$vari""_SUBDIR_included=no"
33171
ac_config_files="$ac_config_files Makefile"
33173
ac_config_files="$ac_config_files client/Makefile"
33175
ac_config_files="$ac_config_files client/config/Makefile"
33177
ac_config_files="$ac_config_files pics/Makefile"
33179
cat >confcache <<\_ACEOF
33180
# This file is a shell script that caches the results of configure
33181
# tests run on this system so they can be shared between configure
33182
# scripts and configure runs, see configure's option --config-cache.
33183
# It is not useful on other systems. If it contains results you don't
33184
# want to keep, you may remove or edit it.
33186
# config.status only pays attention to the cache file if you give it
33187
# the --recheck option to rerun configure.
33189
# `ac_cv_env_foo' variables (set or unset) will be overridden when
33190
# loading this file, other *unset* `ac_cv_foo' will be assigned the
33191
# following values.
33195
# The following way of writing the cache mishandles newlines in values,
33196
# but we know of no workaround that is simple, portable, and efficient.
33197
# So, we kill variables containing newlines.
33198
# Ultrix sh set writes to stderr and can't be redirected directly,
33199
# and sets the high bit in the cache file unless we assign to the vars.
33201
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33202
eval ac_val=\$$ac_var
33206
*_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
33207
$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
33210
_ | IFS | as_nl) ;; #(
33211
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
33212
*) $as_unset $ac_var ;;
33218
case $as_nl`(ac_space=' '; set) 2>&1` in #(
33219
*${as_nl}ac_space=\ *)
33220
# `set' does not quote correctly, so add quotes (double-quote
33221
# substitution turns \\\\ into \\, and sed turns \\ into \).
33224
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33227
# `set' quotes correctly as required by POSIX, so do not add quotes.
33228
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33237
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33239
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33241
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33242
if test -w "$cache_file"; then
33243
test "x$cache_file" != "x/dev/null" &&
33244
{ $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
33245
$as_echo "$as_me: updating cache $cache_file" >&6;}
33246
cat confcache >$cache_file
33248
{ $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
33249
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33254
test "x$prefix" = xNONE && prefix=$ac_default_prefix
33255
# Let make expand exec_prefix.
33256
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33258
DEFS=-DHAVE_CONFIG_H
33262
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33263
# 1. Remove the extension, and $U if already installed.
33264
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33265
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
33266
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33267
# will be set to the directory where LIBOBJS objects are built.
33268
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33269
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
33271
LIBOBJS=$ac_libobjs
33273
LTLIBOBJS=$ac_ltlibobjs
33276
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
33277
{ { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
33278
Usually this means the macro was only invoked conditionally." >&5
33279
$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
33280
Usually this means the macro was only invoked conditionally." >&2;}
33281
{ (exit 1); exit 1; }; }
33283
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
33284
{ { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
33285
Usually this means the macro was only invoked conditionally." >&5
33286
$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
33287
Usually this means the macro was only invoked conditionally." >&2;}
33288
{ (exit 1); exit 1; }; }
33290
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
33291
{ { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
33292
Usually this means the macro was only invoked conditionally." >&5
33293
$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
33294
Usually this means the macro was only invoked conditionally." >&2;}
33295
{ (exit 1); exit 1; }; }
33297
if test -z "${unsermake_enable_pch_TRUE}" && test -z "${unsermake_enable_pch_FALSE}"; then
33298
{ { $as_echo "$as_me:$LINENO: error: conditional \"unsermake_enable_pch\" was never defined.
33299
Usually this means the macro was only invoked conditionally." >&5
33300
$as_echo "$as_me: error: conditional \"unsermake_enable_pch\" was never defined.
33301
Usually this means the macro was only invoked conditionally." >&2;}
33302
{ (exit 1); exit 1; }; }
33304
if test -z "${include_x11_TRUE}" && test -z "${include_x11_FALSE}"; then
33305
{ { $as_echo "$as_me:$LINENO: error: conditional \"include_x11\" was never defined.
33306
Usually this means the macro was only invoked conditionally." >&5
33307
$as_echo "$as_me: error: conditional \"include_x11\" was never defined.
33308
Usually this means the macro was only invoked conditionally." >&2;}
33309
{ (exit 1); exit 1; }; }
33311
if test -z "${include_ARTS_TRUE}" && test -z "${include_ARTS_FALSE}"; then
33312
{ { $as_echo "$as_me:$LINENO: error: conditional \"include_ARTS\" was never defined.
33313
Usually this means the macro was only invoked conditionally." >&5
33314
$as_echo "$as_me: error: conditional \"include_ARTS\" was never defined.
33315
Usually this means the macro was only invoked conditionally." >&2;}
33316
{ (exit 1); exit 1; }; }
33319
: ${CONFIG_STATUS=./config.status}
33321
ac_clean_files_save=$ac_clean_files
33322
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33323
{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33324
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
33325
cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33327
# Generated by $as_me.
33328
# Run this file to recreate the current configuration.
33329
# Compiler output produced by configure, useful for debugging
33330
# configure, is in config.log if it exists.
33333
ac_cs_recheck=false
33335
SHELL=\${CONFIG_SHELL-$SHELL}
33338
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33339
## --------------------- ##
33340
## M4sh Initialization. ##
33341
## --------------------- ##
33343
# Be more Bourne compatible
33344
DUALCASE=1; export DUALCASE # for MKS sh
33345
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33348
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33349
# is contrary to our usage. Disable this feature.
33350
alias -g '${1+"$@"}'='"$@"'
33351
setopt NO_GLOB_SUBST
33353
case `(set -o) 2>/dev/null` in
33354
*posix*) set -o posix ;;
33363
# Avoid depending upon Character Ranges.
33364
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33365
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33366
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33367
as_cr_digits='0123456789'
33368
as_cr_alnum=$as_cr_Letters$as_cr_digits
33373
# Printing a long string crashes Solaris 7 /usr/bin/printf.
33374
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33375
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33376
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
33377
if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
33378
as_echo='printf %s\n'
33379
as_echo_n='printf %s'
33381
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33382
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33383
as_echo_n='/usr/ucb/echo -n'
33385
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33386
as_echo_n_body='eval
33390
expr "X$arg" : "X\\(.*\\)$as_nl";
33391
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33393
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33395
export as_echo_n_body
33396
as_echo_n='sh -c $as_echo_n_body as_echo'
33398
export as_echo_body
33399
as_echo='sh -c $as_echo_body as_echo'
33402
# The user is always right.
33403
if test "${PATH_SEPARATOR+set}" != set; then
33405
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33406
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33411
# Support unset when possible.
33412
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33420
# We need space, tab and new line, in precisely that order. Quoting is
33421
# there to prevent editors from complaining about space-tab.
33422
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
33423
# splitting by setting IFS to empty value.)
33426
# Find who we are. Look in the path if we contain no directory separator.
33428
*[\\/]* ) as_myself=$0 ;;
33429
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33430
for as_dir in $PATH
33433
test -z "$as_dir" && as_dir=.
33434
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33440
# We did not find ourselves, most probably we were run as `sh COMMAND'
33441
# in which case we are not to be found in the path.
33442
if test "x$as_myself" = x; then
33445
if test ! -f "$as_myself"; then
33446
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33447
{ (exit 1); exit 1; }
33450
# Work around bugs in pre-3.0 UWIN ksh.
33451
for as_var in ENV MAIL MAILPATH
33452
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
33464
# Required to use basename.
33465
if expr a : '\(a\)' >/dev/null 2>&1 &&
33466
test "X`expr 00001 : '.*\(...\)'`" = X001; then
33472
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33473
as_basename=basename
33479
# Name of the executable.
33480
as_me=`$as_basename -- "$0" ||
33481
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33482
X"$0" : 'X\(//\)$' \| \
33483
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33485
sed '/^.*\/\([^/][^/]*\)\/*$/{
33504
as_lineno_1=$LINENO
33505
as_lineno_2=$LINENO
33506
test "x$as_lineno_1" != "x$as_lineno_2" &&
33507
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
33509
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33510
# uniformly replaced by the line number. The first 'sed' inserts a
33511
# line-number line after each line using $LINENO; the second 'sed'
33512
# does the real work. The second script uses 'N' to pair each
33513
# line-number line with the line containing $LINENO, and appends
33514
# trailing '-' during substitution so that $LINENO is not a special
33515
# case at line end.
33516
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33517
# scripts with optimization help from Paolo Bonzini. Blame Lee
33518
# E. McMahon (1931-1989) for sed's syntax. :-)
33530
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
33533
' >$as_me.lineno &&
33534
chmod +x "$as_me.lineno" ||
33535
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
33536
{ (exit 1); exit 1; }; }
33538
# Don't try to exec as it changes $[0], causing all sort of problems
33539
# (the dirname of $[0] is not the place where we might find the
33540
# original and so on. Autoconf is especially sensitive to this).
33541
. "./$as_me.lineno"
33542
# Exit status is that of the last command.
33547
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33553
ECHO_C= ECHO_N= ECHO_T=
33554
case `echo -n x` in
33556
case `echo 'x\c'` in
33557
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
33563
if expr a : '\(a\)' >/dev/null 2>&1 &&
33564
test "X`expr 00001 : '.*\(...\)'`" = X001; then
33570
rm -f conf$$ conf$$.exe conf$$.file
33571
if test -d conf$$.dir; then
33572
rm -f conf$$.dir/conf$$.file
33575
mkdir conf$$.dir 2>/dev/null
33577
if (echo >conf$$.file) 2>/dev/null; then
33578
if ln -s conf$$.file conf$$ 2>/dev/null; then
33580
# ... but there are two gotchas:
33581
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33582
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33583
# In both cases, we have to default to `cp -p'.
33584
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33586
elif ln conf$$.file conf$$ 2>/dev/null; then
33594
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33595
rmdir conf$$.dir 2>/dev/null
33597
if mkdir -p . 2>/dev/null; then
33600
test -d ./-p && rmdir ./-p
33604
if test -x / >/dev/null 2>&1; then
33605
as_test_x='test -x'
33607
if ls -dL / >/dev/null 2>&1; then
33614
if test -d "$1"; then
33620
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
33621
???[sx]*):;;*)false;;esac;fi
33625
as_executable_p=$as_test_x
33627
# Sed expression to map a string onto a valid CPP name.
33628
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33630
# Sed expression to map a string onto a valid variable name.
33631
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33636
# Save the log message, to keep $[0] and so on meaningful, and to
33637
# report actual input values of CONFIG_FILES etc. instead of their
33638
# values after options handling.
33640
This file was extended by $as_me, which was
33641
generated by GNU Autoconf 2.62. Invocation command line was
33643
CONFIG_FILES = $CONFIG_FILES
33644
CONFIG_HEADERS = $CONFIG_HEADERS
33645
CONFIG_LINKS = $CONFIG_LINKS
33646
CONFIG_COMMANDS = $CONFIG_COMMANDS
33649
on `(hostname || uname -n) 2>/dev/null | sed 1q`
33654
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33655
# Files that config.status was made for.
33656
config_files="$ac_config_files"
33657
config_headers="$ac_config_headers"
33658
config_commands="$ac_config_commands"
33662
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33664
\`$as_me' instantiates files from templates according to the
33665
current configuration.
33667
Usage: $0 [OPTIONS] [FILE]...
33669
-h, --help print this help, then exit
33670
-V, --version print version number and configuration settings, then exit
33671
-q, --quiet do not print progress messages
33672
-d, --debug don't remove temporary files
33673
--recheck update $as_me by reconfiguring in the same conditions
33674
--file=FILE[:TEMPLATE]
33675
instantiate the configuration file FILE
33676
--header=FILE[:TEMPLATE]
33677
instantiate the configuration header FILE
33679
Configuration files:
33682
Configuration headers:
33685
Configuration commands:
33688
Report bugs to <bug-autoconf@gnu.org>."
33691
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33694
configured by $0, generated by GNU Autoconf 2.62,
33695
with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
33697
Copyright (C) 2008 Free Software Foundation, Inc.
33698
This config.status script is free software; the Free Software Foundation
33699
gives unlimited permission to copy, distribute and modify it."
33705
test -n "\$AWK" || AWK=awk
33708
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33709
# The default lists apply if the user does not specify any file.
33715
ac_option=`expr "X$1" : 'X\([^=]*\)='`
33716
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33727
# Handling of the options.
33728
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33730
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33731
$as_echo "$ac_cs_version"; exit ;;
33732
--debug | --debu | --deb | --de | --d | -d )
33734
--file | --fil | --fi | --f )
33737
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33739
CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
33740
ac_need_defaults=false;;
33741
--header | --heade | --head | --hea )
33744
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33746
CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
33747
ac_need_defaults=false;;
33749
# Conflict between --help and --header
33750
{ $as_echo "$as_me: error: ambiguous option: $1
33751
Try \`$0 --help' for more information." >&2
33752
{ (exit 1); exit 1; }; };;
33753
--help | --hel | -h )
33754
$as_echo "$ac_cs_usage"; exit ;;
33755
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
33756
| -silent | --silent | --silen | --sile | --sil | --si | --s)
33759
# This is an error.
33760
-*) { $as_echo "$as_me: error: unrecognized option: $1
33761
Try \`$0 --help' for more information." >&2
33762
{ (exit 1); exit 1; }; } ;;
33764
*) ac_config_targets="$ac_config_targets $1"
33765
ac_need_defaults=false ;;
33771
ac_configure_extra_args=
33773
if $ac_cs_silent; then
33775
ac_configure_extra_args="$ac_configure_extra_args --silent"
33779
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33780
if \$ac_cs_recheck; then
33781
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33783
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33784
CONFIG_SHELL='$SHELL'
33785
export CONFIG_SHELL
33790
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33794
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33795
## Running $as_me. ##
33801
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33805
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33809
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33811
# Handling of arguments.
33812
for ac_config_target in $ac_config_targets
33814
case $ac_config_target in
33815
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
33816
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33817
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33818
"client/Makefile") CONFIG_FILES="$CONFIG_FILES client/Makefile" ;;
33819
"client/config/Makefile") CONFIG_FILES="$CONFIG_FILES client/config/Makefile" ;;
33820
"pics/Makefile") CONFIG_FILES="$CONFIG_FILES pics/Makefile" ;;
33822
*) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
33823
$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
33824
{ (exit 1); exit 1; }; };;
33829
# If the user did not use the arguments to specify the items to instantiate,
33830
# then the envvar interface is used. Set only those that are not.
33831
# We use the long form for the default assignment because of an extremely
33832
# bizarre bug on SunOS 4.1.3.
33833
if $ac_need_defaults; then
33834
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33835
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33836
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33839
# Have a temporary directory for convenience. Make it in the build tree
33840
# simply because there is no reason against having it here, and in addition,
33841
# creating and moving files from /tmp can sometimes cause problems.
33842
# Hook for its removal unless debugging.
33843
# Note that there is a small window in which the directory will not be cleaned:
33844
# after its creation but before its name has been assigned to `$tmp'.
33848
trap 'exit_status=$?
33849
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33851
trap '{ (exit 1); exit 1; }' 1 2 13 15
33853
# Create a (secure) tmp directory for tmp files.
33856
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33857
test -n "$tmp" && test -d "$tmp"
33860
tmp=./conf$$-$RANDOM
33861
(umask 077 && mkdir "$tmp")
33864
$as_echo "$as_me: cannot create a temporary directory in ." >&2
33865
{ (exit 1); exit 1; }
33868
# Set up the scripts for CONFIG_FILES section.
33869
# No need to generate them if there are no CONFIG_FILES.
33870
# This happens for instance with `./config.status config.h'.
33871
if test -n "$CONFIG_FILES"; then
33875
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33876
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33879
ac_cs_awk_cr=$ac_cr
33882
echo 'BEGIN {' >"$tmp/subs1.awk" &&
33887
echo "cat >conf$$subs.awk <<_ACEOF" &&
33888
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33890
} >conf$$subs.sh ||
33891
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33892
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33893
{ (exit 1); exit 1; }; }
33894
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
33896
for ac_last_try in false false false false false :; do
33897
. ./conf$$subs.sh ||
33898
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33899
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33900
{ (exit 1); exit 1; }; }
33902
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
33904
elif $ac_last_try; then
33905
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
33906
$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
33907
{ (exit 1); exit 1; }; }
33909
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33912
rm -f conf$$subs.sh
33914
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33915
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
33919
s/^/S["/; s/!.*/"]=/
33929
s/\(.\{148\}\).*/\1/
33931
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
33936
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33943
s/\(.\{148\}\).*/\1/
33945
s/["\\]/\\&/g; s/^/"/; s/$/"/
33949
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
33954
' <conf$$subs.awk | sed '
33959
' >>$CONFIG_STATUS || ac_write_fail=1
33960
rm -f conf$$subs.awk
33961
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33963
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
33964
for (key in S) S_is_set[key] = 1
33970
nfields = split(line, field, "@")
33972
len = length(field[1])
33973
for (i = 2; i < nfields; i++) {
33975
keylen = length(key)
33976
if (S_is_set[key]) {
33978
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
33979
len += length(value) + length(field[++i])
33990
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33991
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
33992
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
33995
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
33996
|| { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
33997
$as_echo "$as_me: error: could not setup config files machinery" >&2;}
33998
{ (exit 1); exit 1; }; }
34001
# VPATH may cause trouble with some makes, so we remove $(srcdir),
34002
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34003
# trailing colons and then remove the whole line if VPATH becomes empty
34004
# (actually we leave an empty line to preserve line numbers).
34005
if test "x$srcdir" = x.; then
34006
ac_vpsub='/^[ ]*VPATH[ ]*=/{
34007
s/:*\$(srcdir):*/:/
34008
s/:*\${srcdir}:*/:/
34010
s/^\([^=]*=[ ]*\):*/\1/
34016
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34017
fi # test -n "$CONFIG_FILES"
34019
# Set up the scripts for CONFIG_HEADERS section.
34020
# No need to generate them if there are no CONFIG_HEADERS.
34021
# This happens for instance with `./config.status Makefile'.
34022
if test -n "$CONFIG_HEADERS"; then
34023
cat >"$tmp/defines.awk" <<\_ACAWK ||
34027
# Transform confdefs.h into an awk script `defines.awk', embedded as
34028
# here-document in config.status, that substitutes the proper values into
34029
# config.h.in to produce config.h.
34031
# Create a delimiter string that does not exist in confdefs.h, to ease
34032
# handling of long lines.
34034
for ac_last_try in false false :; do
34035
ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34036
if test -z "$ac_t"; then
34038
elif $ac_last_try; then
34039
{ { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
34040
$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
34041
{ (exit 1); exit 1; }; }
34043
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34047
# For the awk script, D is an array of macro values keyed by name,
34048
# likewise P contains macro parameters if any. Preserve backslash
34049
# newline sequences.
34051
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34053
s/.\{148\}/&'"$ac_delim"'/g
34056
s/^[ ]*#[ ]*define[ ][ ]*/ /
34063
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34065
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
34069
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34070
D["\1"]=" \3\\\\\\n"\\/p
34072
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34077
s/.\{148\}/&'"$ac_delim"'/g
34082
s/["\\]/\\&/g; s/^/"/; s/$/"/p
34085
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34087
' <confdefs.h | sed '
34088
s/'"$ac_delim"'/"\\\
34089
"/g' >>$CONFIG_STATUS || ac_write_fail=1
34091
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34092
for (key in D) D_is_set[key] = 1
34095
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34097
split(line, arg, " ")
34098
if (arg[1] == "#") {
34102
defundef = substr(arg[1], 2)
34105
split(mac1, mac2, "(") #)
34107
if (D_is_set[macro]) {
34108
# Preserve the white space surrounding the "#".
34109
prefix = substr(line, 1, index(line, defundef) - 1)
34110
print prefix "define", macro P[macro] D[macro]
34113
# Replace #undef with comments. This is necessary, for example,
34114
# in the case of _POSIX_SOURCE, which is predefined and required
34115
# on some systems where configure will not decide to define it.
34116
if (defundef == "undef") {
34117
print "/*", line, "*/"
34125
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34126
{ { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
34127
$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
34128
{ (exit 1); exit 1; }; }
34129
fi # test -n "$CONFIG_HEADERS"
34132
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
34137
:[FHLC]) ac_mode=$ac_tag; continue;;
34139
case $ac_mode$ac_tag in
34141
:L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
34142
$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
34143
{ (exit 1); exit 1; }; };;
34144
:[FH]-) ac_tag=-:-;;
34145
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34162
-) ac_f="$tmp/stdin";;
34163
*) # Look for the file first in the build tree, then in the source tree
34164
# (if the path is not absolute). The absolute path cannot be DOS-style,
34165
# because $ac_f cannot contain `:'.
34169
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34171
{ { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
34172
$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
34173
{ (exit 1); exit 1; }; };;
34175
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34176
ac_file_inputs="$ac_file_inputs '$ac_f'"
34179
# Let's still pretend it is `configure' which instantiates (i.e., don't
34180
# use $as_me), people would be surprised to read:
34181
# /* config.h. Generated by config.status. */
34182
configure_input='Generated from '`
34183
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34185
if test x"$ac_file" != x-; then
34186
configure_input="$ac_file. $configure_input"
34187
{ $as_echo "$as_me:$LINENO: creating $ac_file" >&5
34188
$as_echo "$as_me: creating $ac_file" >&6;}
34190
# Neutralize special characters interpreted by sed in replacement strings.
34191
case $configure_input in #(
34192
*\&* | *\|* | *\\* )
34193
ac_sed_conf_input=`$as_echo "$configure_input" |
34194
sed 's/[\\\\&|]/\\\\&/g'`;; #(
34195
*) ac_sed_conf_input=$configure_input;;
34199
*:-:* | *:-) cat >"$tmp/stdin" \
34200
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
34201
$as_echo "$as_me: error: could not create $ac_file" >&2;}
34202
{ (exit 1); exit 1; }; } ;;
34207
ac_dir=`$as_dirname -- "$ac_file" ||
34208
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34209
X"$ac_file" : 'X\(//\)[^/]' \| \
34210
X"$ac_file" : 'X\(//\)$' \| \
34211
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34212
$as_echo X"$ac_file" |
34213
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34217
/^X\(\/\/\)[^/].*/{
34232
-*) as_dir=./$as_dir;;
34234
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34238
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34239
*) as_qdir=$as_dir;;
34241
as_dirs="'$as_qdir' $as_dirs"
34242
as_dir=`$as_dirname -- "$as_dir" ||
34243
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34244
X"$as_dir" : 'X\(//\)[^/]' \| \
34245
X"$as_dir" : 'X\(//\)$' \| \
34246
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34247
$as_echo X"$as_dir" |
34248
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34252
/^X\(\/\/\)[^/].*/{
34265
test -d "$as_dir" && break
34267
test -z "$as_dirs" || eval "mkdir $as_dirs"
34268
} || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34269
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
34270
{ (exit 1); exit 1; }; }; }
34274
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34276
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34277
# A ".." for each directory in $ac_dir_suffix.
34278
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34279
case $ac_top_builddir_sub in
34280
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34281
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34284
ac_abs_top_builddir=$ac_pwd
34285
ac_abs_builddir=$ac_pwd$ac_dir_suffix
34286
# for backward compatibility:
34287
ac_top_builddir=$ac_top_build_prefix
34290
.) # We are building in place.
34292
ac_top_srcdir=$ac_top_builddir_sub
34293
ac_abs_top_srcdir=$ac_pwd ;;
34294
[\\/]* | ?:[\\/]* ) # Absolute name.
34295
ac_srcdir=$srcdir$ac_dir_suffix;
34296
ac_top_srcdir=$srcdir
34297
ac_abs_top_srcdir=$srcdir ;;
34298
*) # Relative name.
34299
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34300
ac_top_srcdir=$ac_top_build_prefix$srcdir
34301
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34303
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34313
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34314
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34318
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34319
# If the template does not know about datarootdir, expand it.
34320
# FIXME: This hack should be removed a few years after 2.60.
34321
ac_datarootdir_hack=; ac_datarootdir_seen=
34334
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34335
*datarootdir*) ac_datarootdir_seen=yes;;
34336
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34337
{ $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34338
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34340
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34341
ac_datarootdir_hack='
34342
s&@datadir@&$datadir&g
34343
s&@docdir@&$docdir&g
34344
s&@infodir@&$infodir&g
34345
s&@localedir@&$localedir&g
34346
s&@mandir@&$mandir&g
34347
s&\\\${datarootdir}&$datarootdir&g' ;;
34351
# Neutralize VPATH when `$srcdir' = `.'.
34352
# Shell code in configure.ac might set extrasub.
34353
# FIXME: do we really want to maintain this feature?
34354
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34355
ac_sed_extra="$ac_vpsub
34358
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34360
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34361
s|@configure_input@|$ac_sed_conf_input|;t t
34362
s&@top_builddir@&$ac_top_builddir_sub&;t t
34363
s&@top_build_prefix@&$ac_top_build_prefix&;t t
34364
s&@srcdir@&$ac_srcdir&;t t
34365
s&@abs_srcdir@&$ac_abs_srcdir&;t t
34366
s&@top_srcdir@&$ac_top_srcdir&;t t
34367
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34368
s&@builddir@&$ac_builddir&;t t
34369
s&@abs_builddir@&$ac_abs_builddir&;t t
34370
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34371
s&@INSTALL@&$ac_INSTALL&;t t
34372
$ac_datarootdir_hack
34374
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
34375
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
34376
$as_echo "$as_me: error: could not create $ac_file" >&2;}
34377
{ (exit 1); exit 1; }; }
34379
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34380
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34381
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34382
{ $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34383
which seems to be undefined. Please make sure it is defined." >&5
34384
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34385
which seems to be undefined. Please make sure it is defined." >&2;}
34389
-) cat "$tmp/out" && rm -f "$tmp/out";;
34390
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34392
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
34393
$as_echo "$as_me: error: could not create $ac_file" >&2;}
34394
{ (exit 1); exit 1; }; }
34400
if test x"$ac_file" != x-; then
34402
$as_echo "/* $configure_input */" \
34403
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34404
} >"$tmp/config.h" \
34405
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
34406
$as_echo "$as_me: error: could not create $ac_file" >&2;}
34407
{ (exit 1); exit 1; }; }
34408
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
34409
{ $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34410
$as_echo "$as_me: $ac_file is unchanged" >&6;}
34413
mv "$tmp/config.h" "$ac_file" \
34414
|| { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
34415
$as_echo "$as_me: error: could not create $ac_file" >&2;}
34416
{ (exit 1); exit 1; }; }
34419
$as_echo "/* $configure_input */" \
34420
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
34421
|| { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
34422
$as_echo "$as_me: error: could not create -" >&2;}
34423
{ (exit 1); exit 1; }; }
34425
# Compute "$ac_file"'s index in $config_headers.
34427
for _am_header in $config_headers :; do
34428
case $_am_header in
34429
"$ac_file" | "$ac_file":* )
34432
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
34435
echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
34436
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34437
X"$ac_file" : 'X\(//\)[^/]' \| \
34438
X"$ac_file" : 'X\(//\)$' \| \
34439
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34440
$as_echo X"$ac_file" |
34441
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34445
/^X\(\/\/\)[^/].*/{
34457
s/.*/./; q'`/stamp-h$_am_stamp_count
34460
:C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
34461
$as_echo "$as_me: executing $ac_file commands" >&6;}
34466
case $ac_file$ac_mode in
34467
"depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
34468
# Strip MF so we end up with the name of the file.
34469
mf=`echo "$mf" | sed -e 's/:.*$//'`
34470
# Check whether this is an Automake generated Makefile or not.
34471
# We used to match only the files named `Makefile.in', but
34472
# some people rename them; so instead we look at the file content.
34473
# Grep'ing the first line is not enough: some people post-process
34474
# each Makefile.in and add a new line on top of each file to say so.
34475
# So let's grep whole file.
34476
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
34477
dirpart=`$as_dirname -- "$mf" ||
34478
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34479
X"$mf" : 'X\(//\)[^/]' \| \
34480
X"$mf" : 'X\(//\)$' \| \
34481
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34483
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34487
/^X\(\/\/\)[^/].*/{
34503
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
34504
# Extract the definition of DEP_FILES from the Makefile without
34506
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
34507
test -z "$DEPDIR" && continue
34508
# When using ansi2knr, U may be empty or an underscore; expand it
34509
U=`sed -n -e '/^U = / s///p' < "$mf"`
34510
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
34511
# We invoke sed twice because it is the simplest approach to
34512
# changing $(DEPDIR) to its actual value in the expansion.
34513
for file in `sed -n -e '
34514
/^DEP_FILES = .*\\\\$/ {
34523
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
34524
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34525
# Make sure the directory exists.
34526
test -f "$dirpart/$file" && continue
34527
fdir=`$as_dirname -- "$file" ||
34528
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34529
X"$file" : 'X\(//\)[^/]' \| \
34530
X"$file" : 'X\(//\)$' \| \
34531
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34532
$as_echo X"$file" |
34533
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34537
/^X\(\/\/\)[^/].*/{
34550
{ as_dir=$dirpart/$fdir
34552
-*) as_dir=./$as_dir;;
34554
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
34558
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34559
*) as_qdir=$as_dir;;
34561
as_dirs="'$as_qdir' $as_dirs"
34562
as_dir=`$as_dirname -- "$as_dir" ||
34563
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34564
X"$as_dir" : 'X\(//\)[^/]' \| \
34565
X"$as_dir" : 'X\(//\)$' \| \
34566
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34567
$as_echo X"$as_dir" |
34568
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34572
/^X\(\/\/\)[^/].*/{
34585
test -d "$as_dir" && break
34587
test -z "$as_dirs" || eval "mkdir $as_dirs"
34588
} || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
34589
$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
34590
{ (exit 1); exit 1; }; }; }
34591
# echo "creating $dirpart/$file"
34592
echo '# dummy' > "$dirpart/$file"
34601
{ (exit 0); exit 0; }
34603
if test "x$with_fast_perl" = "xyes"; then
34604
perl -i.bak $ac_aux_dir/conf.change.pl $CONFIG_STATUS \
34605
|| mv $CONFIG_STATUS.bak $CONFIG_STATUS
34606
rm -f $CONFIG_STATUS.bak
34608
chmod +x $CONFIG_STATUS
34609
ac_clean_files=$ac_clean_files_save
34611
test $ac_write_fail = 0 ||
34612
{ { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
34613
$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
34614
{ (exit 1); exit 1; }; }
34617
# configure is writing to config.log, and then calls config.status.
34618
# config.status does its own redirection, appending to config.log.
34619
# Unfortunately, on DOS this fails, as config.log is still kept open
34620
# by configure, so config.status won't be able to write to it; its
34621
# output is simply discarded. So we exec the FD to /dev/null,
34622
# effectively closing config.log, so it can be properly (re)opened and
34623
# appended to by config.status. When coming back to configure, we
34624
# need to make the FD available again.
34625
if test "$no_create" != yes; then
34627
ac_config_status_args=
34628
test "$silent" = yes &&
34629
ac_config_status_args="$ac_config_status_args --quiet"
34631
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34633
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
34634
# would make configure fail if this is the last instruction.
34635
$ac_cs_success || { (exit 1); exit 1; }
34637
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
34638
{ $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
34639
$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
34642
# Check if KDE_SET_PREFIX was called, and --prefix was passed to configure
34643
if test -n "$kde_libs_prefix" -a -n "$given_prefix"; then
34644
# And if so, warn when they don't match
34645
if test "$kde_libs_prefix" != "$given_prefix"; then
34646
# And if kde doesn't know about the prefix yet
34647
echo ":"`kde-config --path exe`":" | grep ":$given_prefix/bin/:" 2>&1 >/dev/null
34648
if test $? -ne 0; then
34650
echo "Warning: you chose to install this package in $given_prefix,"
34651
echo "but KDE was found in $kde_libs_prefix."
34652
echo "For this to work, you will need to tell KDE about the new prefix, by ensuring"
34653
echo "that KDEDIRS contains it, e.g. export KDEDIRS=$given_prefix:$kde_libs_prefix"
34654
echo "Then restart KDE."
34660
if test x$GXX = "xyes" -a x$kde_have_gcc_visibility = "xyes" -a x$kde_cv_val_qt_gcc_visibility_patched = "xno"; then
34662
echo "Your GCC supports symbol visibility, but the patch for Qt supporting visibility"
34663
echo "was not included. Therefore, GCC symbol visibility support remains disabled."
34665
echo "For better performance, consider including the Qt visibility supporting patch"
34668
echo "http://bugs.kde.org/show_bug.cgi?id=109386"
34670
echo "and recompile all of Qt and KDE. Note, this is entirely optional and"
34671
echo "everything will continue to work just fine without it."
34675
if test "$all_tests" = "bad"; then
34676
if test ! "$cache_file" = "/dev/null"; then
34678
echo "Please remove the file $cache_file after changing your setup"
34679
echo "so that configure will find the changes next time."
34684
echo "Good - your configure finished. Start make now"