2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.68 for open-vm-tools 2012.12.26.
5
# Report bugs to <open-vm-tools-devel@lists.sourceforge.net>.
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13
# This configure script is free software; the Free Software Foundation
14
# gives unlimited permission to copy, distribute and modify it.
15
## -------------------- ##
16
## M4sh Initialization. ##
17
## -------------------- ##
19
# Be more Bourne compatible
20
DUALCASE=1; export DUALCASE # for MKS sh
21
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25
# is contrary to our usage. Disable this feature.
26
alias -g '${1+"$@"}'='"$@"'
29
case `(set -o) 2>/dev/null` in #(
41
# Printing a long string crashes Solaris 7 /usr/bin/printf.
42
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45
# Prefer a ksh shell builtin over an external printf program on Solaris,
46
# but without wasting forks for bash or zsh.
47
if test -z "$BASH_VERSION$ZSH_VERSION" \
48
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50
as_echo_n='print -rn --'
51
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57
as_echo_n='/usr/ucb/echo -n'
59
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64
expr "X$arg" : "X\\(.*\\)$as_nl";
65
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70
as_echo_n='sh -c $as_echo_n_body as_echo'
73
as_echo='sh -c $as_echo_body as_echo'
76
# The user is always right.
77
if test "${PATH_SEPARATOR+set}" != set; then
79
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87
# We need space, tab and new line, in precisely that order. Quoting is
88
# there to prevent editors from complaining about space-tab.
89
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90
# splitting by setting IFS to empty value.)
93
# Find who we are. Look in the path if we contain no directory separator.
96
*[\\/]* ) as_myself=$0 ;;
97
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101
test -z "$as_dir" && as_dir=.
102
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108
# We did not find ourselves, most probably we were run as `sh COMMAND'
109
# in which case we are not to be found in the path.
110
if test "x$as_myself" = x; then
113
if test ! -f "$as_myself"; then
114
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118
# Unset variables that we do not need and which cause bugs (e.g. in
119
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120
# suppresses any "Segmentation fault" message there. '((' could
121
# trigger a bug in pdksh 5.2.14.
122
for as_var in BASH_ENV ENV MAIL MAILPATH
123
do eval test x\${$as_var+set} = xset \
124
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139
if test "x$CONFIG_SHELL" = x; then
140
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144
# is contrary to our usage. Disable this feature.
145
alias -g '\${1+\"\$@\"}'='\"\$@\"'
148
case \`(set -o) 2>/dev/null\` in #(
156
as_required="as_fn_return () { (exit \$1); }
157
as_fn_success () { as_fn_return 0; }
158
as_fn_failure () { as_fn_return 1; }
159
as_fn_ret_success () { return 0; }
160
as_fn_ret_failure () { return 1; }
163
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170
exitcode=1; echo positional parameters were not saved.
172
test x\$exitcode = x0 || exit 1"
173
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
test \$(( 1 + 1 )) = 2 || exit 1
179
test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183
PATH=/empty FPATH=/empty; export PATH FPATH
184
test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185
|| test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186
if (eval "$as_required") 2>/dev/null; then :
191
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199
test -z "$as_dir" && as_dir=.
203
for as_base in sh bash ksh sh5; do
204
# Try only shells that exist, to save several forks.
205
as_shell=$as_dir/$as_base
206
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208
CONFIG_SHELL=$as_shell as_have_required=yes
209
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219
CONFIG_SHELL=$SHELL as_have_required=yes
224
if test "x$CONFIG_SHELL" != x; then :
225
# We cannot yet assume a decent shell, so we have to provide a
226
# neutralization value for shells without unset; and this also
227
# works around shells that cannot unset nonexistent variables.
228
# Preserve -v and -x to the replacement shell.
231
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234
*v*x* | *x*v* ) as_opts=-vx ;;
239
exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242
if test x$as_have_required = xno; then :
243
$as_echo "$0: This script requires a shell more modern than all"
244
$as_echo "$0: the shells that I found on your system."
245
if test x${ZSH_VERSION+set} = xset ; then
246
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
249
$as_echo "$0: Please tell bug-autoconf@gnu.org and
250
$0: open-vm-tools-devel@lists.sourceforge.net about your
251
$0: system, including any error possibly output before this
252
$0: message. Then install a modern shell, or manually run
253
$0: the script under such a shell if you do have one."
259
SHELL=${CONFIG_SHELL-/bin/sh}
261
# Unset more variables known to interfere with behavior of common tools.
262
CLICOLOR_FORCE= GREP_OPTIONS=
263
unset CLICOLOR_FORCE GREP_OPTIONS
265
## --------------------- ##
266
## M4sh Shell Functions. ##
267
## --------------------- ##
270
# Portably unset VAR.
273
{ eval $1=; unset $1;}
277
# as_fn_set_status STATUS
278
# -----------------------
279
# Set $? to STATUS, without forking.
287
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
297
# Create "$as_dir" as a directory, including parents if necessary.
302
-*) as_dir=./$as_dir;;
304
test -d "$as_dir" || eval $as_mkdir_p || {
308
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
311
as_dirs="'$as_qdir' $as_dirs"
312
as_dir=`$as_dirname -- "$as_dir" ||
313
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314
X"$as_dir" : 'X\(//\)[^/]' \| \
315
X"$as_dir" : 'X\(//\)$' \| \
316
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317
$as_echo X"$as_dir" |
318
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335
test -d "$as_dir" && break
337
test -z "$as_dirs" || eval "mkdir $as_dirs"
338
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
342
# as_fn_append VAR VALUE
343
# ----------------------
344
# Append the text in VALUE to the end of the definition contained in VAR. Take
345
# advantage of any shell optimizations that allow amortized linear growth over
346
# repeated appends, instead of the typical quadratic growth present in naive
348
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349
eval 'as_fn_append ()
362
# Perform arithmetic evaluation on the ARGs, and store the result in the
363
# global $as_val. Take advantage of shells that can avoid forks. The arguments
364
# must be portable across $(()) and expr.
365
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
373
as_val=`expr "$@" || test $? -eq 1`
378
# as_fn_error STATUS ERROR [LINENO LOG_FD]
379
# ----------------------------------------
380
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382
# script with STATUS, using 1 if that was 0.
385
as_status=$1; test $as_status -eq 0 && as_status=1
387
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390
$as_echo "$as_me: error: $2" >&2
391
as_fn_exit $as_status
394
if expr a : '\(a\)' >/dev/null 2>&1 &&
395
test "X`expr 00001 : '.*\(...\)'`" = X001; then
401
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
407
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
413
as_me=`$as_basename -- "$0" ||
414
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415
X"$0" : 'X\(//\)$' \| \
416
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418
sed '/^.*\/\([^/][^/]*\)\/*$/{
432
# Avoid depending upon Character Ranges.
433
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436
as_cr_digits='0123456789'
437
as_cr_alnum=$as_cr_Letters$as_cr_digits
440
as_lineno_1=$LINENO as_lineno_1a=$LINENO
441
as_lineno_2=$LINENO as_lineno_2a=$LINENO
442
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
456
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
460
chmod +x "$as_me.lineno" ||
461
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
# Don't try to exec as it changes $[0], causing all sort of problems
464
# (the dirname of $[0] is not the place where we might find the
465
# original and so on. Autoconf is especially sensitive to this).
467
# Exit status is that of the last command.
471
ECHO_C= ECHO_N= ECHO_T=
472
case `echo -n x` in #(((((
474
case `echo 'xy\c'` in
475
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
477
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
484
rm -f conf$$ conf$$.exe conf$$.file
485
if test -d conf$$.dir; then
486
rm -f conf$$.dir/conf$$.file
489
mkdir conf$$.dir 2>/dev/null
491
if (echo >conf$$.file) 2>/dev/null; then
492
if ln -s conf$$.file conf$$ 2>/dev/null; then
494
# ... but there are two gotchas:
495
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497
# In both cases, we have to default to `cp -p'.
498
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500
elif ln conf$$.file conf$$ 2>/dev/null; then
508
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509
rmdir conf$$.dir 2>/dev/null
511
if mkdir -p . 2>/dev/null; then
512
as_mkdir_p='mkdir -p "$as_dir"'
514
test -d ./-p && rmdir ./-p
518
if test -x / >/dev/null 2>&1; then
521
if ls -dL / >/dev/null 2>&1; then
528
if test -d "$1"; then
534
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535
???[sx]*):;;*)false;;esac;fi
539
as_executable_p=$as_test_x
541
# Sed expression to map a string onto a valid CPP name.
542
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
# Sed expression to map a string onto a valid variable name.
545
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
SHELL=${CONFIG_SHELL-/bin/sh}
550
test -n "$DJDIR" || exec 7<&0 </dev/null
554
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
555
# so uname gets run too.
556
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
561
ac_default_prefix=/usr/local
563
ac_config_libobj_dir=.
570
# Identity of this package.
571
PACKAGE_NAME='open-vm-tools'
572
PACKAGE_TARNAME='open-vm-tools'
573
PACKAGE_VERSION='2012.12.26'
574
PACKAGE_STRING='open-vm-tools 2012.12.26'
575
PACKAGE_BUGREPORT='open-vm-tools-devel@lists.sourceforge.net'
578
ac_unique_file="checkvm/checkvm.c"
579
# Factoring default headers for most tests.
580
ac_includes_default="\
582
#ifdef HAVE_SYS_TYPES_H
583
# include <sys/types.h>
585
#ifdef HAVE_SYS_STAT_H
586
# include <sys/stat.h>
592
# ifdef HAVE_STDLIB_H
597
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
602
#ifdef HAVE_STRINGS_H
603
# include <strings.h>
605
#ifdef HAVE_INTTYPES_H
606
# include <inttypes.h>
615
ac_subst_vars='am__EXEEXT_FALSE
622
LIB_IMPERSONATE_CPPFLAGS
627
VMUSR_PLUGIN_INSTALLDIR
628
VMSVC_PLUGIN_INSTALLDIR
629
COMMON_PLUGIN_INSTALLDIR
630
TEST_PLUGIN_INSTALLDIR
649
USE_PRINTF_WRAPPERS_FALSE
650
USE_PRINTF_WRAPPERS_TRUE
665
WITH_ROOT_PRIVILEGES_FALSE
666
WITH_ROOT_PRIVILEGES_TRUE
669
HAVE_XCOMPOSITE_FALSE
673
WITH_KERNEL_MODULES_FALSE
674
WITH_KERNEL_MODULES_TRUE
679
THIRTY_TWO_BIT_USERSPACE_FALSE
680
THIRTY_TWO_BIT_USERSPACE_TRUE
681
FREEBSD_CUSTOM_SYSDIR_FALSE
682
FREEBSD_CUSTOM_SYSDIR_TRUE
689
BUILD_HGFSMOUNTER_FALSE
690
BUILD_HGFSMOUNTER_TRUE
784
INSTALL_STRIP_PROGRAM
834
program_transform_name
847
enable_option_checking
857
enable_dependency_tracking
872
ac_precious_vars='build_alias
888
# Initialize some variables set by options.
890
ac_init_version=false
891
ac_unrecognized_opts=
893
# The variables have the same names as the options, with
894
# dashes changed to underlines.
902
program_transform_name=s,x,x,
910
# Installation directory options.
911
# These are left unexpanded so users can "make install exec_prefix=/foo"
912
# and all the variables that are supposed to be based on exec_prefix
913
# by default will actually change.
914
# Use braces instead of parens because sh, perl, etc. also accept them.
915
# (The list follows the same order as the GNU Coding Standards.)
916
bindir='${exec_prefix}/bin'
917
sbindir='${exec_prefix}/sbin'
918
libexecdir='${exec_prefix}/libexec'
919
datarootdir='${prefix}/share'
920
datadir='${datarootdir}'
921
sysconfdir='${prefix}/etc'
922
sharedstatedir='${prefix}/com'
923
localstatedir='${prefix}/var'
924
includedir='${prefix}/include'
925
oldincludedir='/usr/include'
926
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
927
infodir='${datarootdir}/info'
932
libdir='${exec_prefix}/lib'
933
localedir='${datarootdir}/locale'
934
mandir='${datarootdir}/man'
940
# If the previous option needs an argument, assign it.
941
if test -n "$ac_prev"; then
942
eval $ac_prev=\$ac_option
948
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
953
# Accept the important Cygnus configure options, so we can diagnose typos.
955
case $ac_dashdash$ac_option in
959
-bindir | --bindir | --bindi | --bind | --bin | --bi)
961
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
964
-build | --build | --buil | --bui | --bu)
965
ac_prev=build_alias ;;
966
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
967
build_alias=$ac_optarg ;;
969
-cache-file | --cache-file | --cache-fil | --cache-fi \
970
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
971
ac_prev=cache_file ;;
972
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
973
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
974
cache_file=$ac_optarg ;;
977
cache_file=config.cache ;;
979
-datadir | --datadir | --datadi | --datad)
981
-datadir=* | --datadir=* | --datadi=* | --datad=*)
982
datadir=$ac_optarg ;;
984
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
985
| --dataroo | --dataro | --datar)
986
ac_prev=datarootdir ;;
987
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
988
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
989
datarootdir=$ac_optarg ;;
991
-disable-* | --disable-*)
992
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
993
# Reject names that are not valid shell variable names.
994
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
995
as_fn_error $? "invalid feature name: $ac_useropt"
996
ac_useropt_orig=$ac_useropt
997
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998
case $ac_user_opts in
1000
"enable_$ac_useropt"
1002
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1003
ac_unrecognized_sep=', ';;
1005
eval enable_$ac_useropt=no ;;
1007
-docdir | --docdir | --docdi | --doc | --do)
1009
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1010
docdir=$ac_optarg ;;
1012
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1014
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1015
dvidir=$ac_optarg ;;
1017
-enable-* | --enable-*)
1018
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1019
# Reject names that are not valid shell variable names.
1020
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1021
as_fn_error $? "invalid feature name: $ac_useropt"
1022
ac_useropt_orig=$ac_useropt
1023
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024
case $ac_user_opts in
1026
"enable_$ac_useropt"
1028
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1029
ac_unrecognized_sep=', ';;
1031
eval enable_$ac_useropt=\$ac_optarg ;;
1033
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1034
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1035
| --exec | --exe | --ex)
1036
ac_prev=exec_prefix ;;
1037
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1038
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1039
| --exec=* | --exe=* | --ex=*)
1040
exec_prefix=$ac_optarg ;;
1042
-gas | --gas | --ga | --g)
1043
# Obsolete; use --with-gas.
1046
-help | --help | --hel | --he | -h)
1047
ac_init_help=long ;;
1048
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1049
ac_init_help=recursive ;;
1050
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1051
ac_init_help=short ;;
1053
-host | --host | --hos | --ho)
1054
ac_prev=host_alias ;;
1055
-host=* | --host=* | --hos=* | --ho=*)
1056
host_alias=$ac_optarg ;;
1058
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1060
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1062
htmldir=$ac_optarg ;;
1064
-includedir | --includedir | --includedi | --included | --include \
1065
| --includ | --inclu | --incl | --inc)
1066
ac_prev=includedir ;;
1067
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1068
| --includ=* | --inclu=* | --incl=* | --inc=*)
1069
includedir=$ac_optarg ;;
1071
-infodir | --infodir | --infodi | --infod | --info | --inf)
1073
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1074
infodir=$ac_optarg ;;
1076
-libdir | --libdir | --libdi | --libd)
1078
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1079
libdir=$ac_optarg ;;
1081
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1082
| --libexe | --libex | --libe)
1083
ac_prev=libexecdir ;;
1084
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1085
| --libexe=* | --libex=* | --libe=*)
1086
libexecdir=$ac_optarg ;;
1088
-localedir | --localedir | --localedi | --localed | --locale)
1089
ac_prev=localedir ;;
1090
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1091
localedir=$ac_optarg ;;
1093
-localstatedir | --localstatedir | --localstatedi | --localstated \
1094
| --localstate | --localstat | --localsta | --localst | --locals)
1095
ac_prev=localstatedir ;;
1096
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1097
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1098
localstatedir=$ac_optarg ;;
1100
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1102
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1103
mandir=$ac_optarg ;;
1105
-nfp | --nfp | --nf)
1106
# Obsolete; use --without-fp.
1109
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1110
| --no-cr | --no-c | -n)
1113
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1114
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1117
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1118
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1119
| --oldin | --oldi | --old | --ol | --o)
1120
ac_prev=oldincludedir ;;
1121
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1122
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1123
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1124
oldincludedir=$ac_optarg ;;
1126
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1128
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1129
prefix=$ac_optarg ;;
1131
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1132
| --program-pre | --program-pr | --program-p)
1133
ac_prev=program_prefix ;;
1134
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1135
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1136
program_prefix=$ac_optarg ;;
1138
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1139
| --program-suf | --program-su | --program-s)
1140
ac_prev=program_suffix ;;
1141
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1142
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1143
program_suffix=$ac_optarg ;;
1145
-program-transform-name | --program-transform-name \
1146
| --program-transform-nam | --program-transform-na \
1147
| --program-transform-n | --program-transform- \
1148
| --program-transform | --program-transfor \
1149
| --program-transfo | --program-transf \
1150
| --program-trans | --program-tran \
1151
| --progr-tra | --program-tr | --program-t)
1152
ac_prev=program_transform_name ;;
1153
-program-transform-name=* | --program-transform-name=* \
1154
| --program-transform-nam=* | --program-transform-na=* \
1155
| --program-transform-n=* | --program-transform-=* \
1156
| --program-transform=* | --program-transfor=* \
1157
| --program-transfo=* | --program-transf=* \
1158
| --program-trans=* | --program-tran=* \
1159
| --progr-tra=* | --program-tr=* | --program-t=*)
1160
program_transform_name=$ac_optarg ;;
1162
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1164
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1165
pdfdir=$ac_optarg ;;
1167
-psdir | --psdir | --psdi | --psd | --ps)
1169
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1172
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1173
| -silent | --silent | --silen | --sile | --sil)
1176
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1178
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1180
sbindir=$ac_optarg ;;
1182
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1183
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1184
| --sharedst | --shareds | --shared | --share | --shar \
1186
ac_prev=sharedstatedir ;;
1187
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1188
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1189
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1191
sharedstatedir=$ac_optarg ;;
1193
-site | --site | --sit)
1195
-site=* | --site=* | --sit=*)
1198
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1200
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1201
srcdir=$ac_optarg ;;
1203
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1204
| --syscon | --sysco | --sysc | --sys | --sy)
1205
ac_prev=sysconfdir ;;
1206
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1207
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1208
sysconfdir=$ac_optarg ;;
1210
-target | --target | --targe | --targ | --tar | --ta | --t)
1211
ac_prev=target_alias ;;
1212
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1213
target_alias=$ac_optarg ;;
1215
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1218
-version | --version | --versio | --versi | --vers | -V)
1219
ac_init_version=: ;;
1222
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1223
# Reject names that are not valid shell variable names.
1224
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1225
as_fn_error $? "invalid package name: $ac_useropt"
1226
ac_useropt_orig=$ac_useropt
1227
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1228
case $ac_user_opts in
1232
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1233
ac_unrecognized_sep=', ';;
1235
eval with_$ac_useropt=\$ac_optarg ;;
1237
-without-* | --without-*)
1238
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1239
# Reject names that are not valid shell variable names.
1240
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1241
as_fn_error $? "invalid package name: $ac_useropt"
1242
ac_useropt_orig=$ac_useropt
1243
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1244
case $ac_user_opts in
1248
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1249
ac_unrecognized_sep=', ';;
1251
eval with_$ac_useropt=no ;;
1254
# Obsolete; use --with-x.
1257
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1258
| --x-incl | --x-inc | --x-in | --x-i)
1259
ac_prev=x_includes ;;
1260
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1261
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1262
x_includes=$ac_optarg ;;
1264
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1265
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1266
ac_prev=x_libraries ;;
1267
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1268
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1269
x_libraries=$ac_optarg ;;
1271
-*) as_fn_error $? "unrecognized option: \`$ac_option'
1272
Try \`$0 --help' for more information"
1276
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1277
# Reject names that are not valid shell variable names.
1278
case $ac_envvar in #(
1279
'' | [0-9]* | *[!_$as_cr_alnum]* )
1280
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1282
eval $ac_envvar=\$ac_optarg
1283
export $ac_envvar ;;
1286
# FIXME: should be removed in autoconf 3.0.
1287
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1288
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1289
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1290
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1296
if test -n "$ac_prev"; then
1297
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1298
as_fn_error $? "missing argument to $ac_option"
1301
if test -n "$ac_unrecognized_opts"; then
1302
case $enable_option_checking in
1304
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1305
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1309
# Check all directory arguments for consistency.
1310
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1311
datadir sysconfdir sharedstatedir localstatedir includedir \
1312
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1313
libdir localedir mandir
1315
eval ac_val=\$$ac_var
1316
# Remove trailing slashes.
1319
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1320
eval $ac_var=\$ac_val;;
1322
# Be sure to have absolute directory names.
1324
[\\/$]* | ?:[\\/]* ) continue;;
1325
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1327
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1330
# There might be people who depend on the old broken behavior: `$host'
1331
# used to hold the argument of --host etc.
1332
# FIXME: To remove some day.
1335
target=$target_alias
1337
# FIXME: To remove some day.
1338
if test "x$host_alias" != x; then
1339
if test "x$build_alias" = x; then
1340
cross_compiling=maybe
1341
$as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1342
If a cross compiler is detected then cross compile mode will be used" >&2
1343
elif test "x$build_alias" != "x$host_alias"; then
1349
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1351
test "$silent" = yes && exec 6>/dev/null
1354
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1355
ac_ls_di=`ls -di .` &&
1356
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1357
as_fn_error $? "working directory cannot be determined"
1358
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1359
as_fn_error $? "pwd does not report name of working directory"
1362
# Find the source files, if location was not specified.
1363
if test -z "$srcdir"; then
1364
ac_srcdir_defaulted=yes
1365
# Try the directory containing this script, then the parent directory.
1366
ac_confdir=`$as_dirname -- "$as_myself" ||
1367
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1368
X"$as_myself" : 'X\(//\)[^/]' \| \
1369
X"$as_myself" : 'X\(//\)$' \| \
1370
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1371
$as_echo X"$as_myself" |
1372
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1390
if test ! -r "$srcdir/$ac_unique_file"; then
1394
ac_srcdir_defaulted=no
1396
if test ! -r "$srcdir/$ac_unique_file"; then
1397
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1398
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1400
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1402
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1404
# When building in place, set srcdir=.
1405
if test "$ac_abs_confdir" = "$ac_pwd"; then
1408
# Remove unnecessary trailing slashes from srcdir.
1409
# Double slashes in file names in object file debugging info
1410
# mess up M-x gdb in Emacs.
1412
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1414
for ac_var in $ac_precious_vars; do
1415
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1416
eval ac_env_${ac_var}_value=\$${ac_var}
1417
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1418
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1422
# Report the --help message.
1424
if test "$ac_init_help" = "long"; then
1425
# Omit some internal or obsolete options to make the list less imposing.
1426
# This message is too long to be a string in the A/UX 3.1 sh.
1428
\`configure' configures open-vm-tools 2012.12.26 to adapt to many kinds of systems.
1430
Usage: $0 [OPTION]... [VAR=VALUE]...
1432
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1433
VAR=VALUE. See below for descriptions of some of the useful variables.
1435
Defaults for the options are specified in brackets.
1438
-h, --help display this help and exit
1439
--help=short display options specific to this package
1440
--help=recursive display the short help of all the included packages
1441
-V, --version display version information and exit
1442
-q, --quiet, --silent do not print \`checking ...' messages
1443
--cache-file=FILE cache test results in FILE [disabled]
1444
-C, --config-cache alias for \`--cache-file=config.cache'
1445
-n, --no-create do not create output files
1446
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1448
Installation directories:
1449
--prefix=PREFIX install architecture-independent files in PREFIX
1450
[$ac_default_prefix]
1451
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1454
By default, \`make install' will install all the files in
1455
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1456
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1457
for instance \`--prefix=\$HOME'.
1459
For better control, use the options below.
1461
Fine tuning of the installation directories:
1462
--bindir=DIR user executables [EPREFIX/bin]
1463
--sbindir=DIR system admin executables [EPREFIX/sbin]
1464
--libexecdir=DIR program executables [EPREFIX/libexec]
1465
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1466
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1467
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1468
--libdir=DIR object code libraries [EPREFIX/lib]
1469
--includedir=DIR C header files [PREFIX/include]
1470
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1471
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1472
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1473
--infodir=DIR info documentation [DATAROOTDIR/info]
1474
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1475
--mandir=DIR man documentation [DATAROOTDIR/man]
1476
--docdir=DIR documentation root [DATAROOTDIR/doc/open-vm-tools]
1477
--htmldir=DIR html documentation [DOCDIR]
1478
--dvidir=DIR dvi documentation [DOCDIR]
1479
--pdfdir=DIR pdf documentation [DOCDIR]
1480
--psdir=DIR ps documentation [DOCDIR]
1486
--program-prefix=PREFIX prepend PREFIX to installed program names
1487
--program-suffix=SUFFIX append SUFFIX to installed program names
1488
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1491
--x-includes=DIR X include files are in DIR
1492
--x-libraries=DIR X library files are in DIR
1495
--build=BUILD configure for building on BUILD [guessed]
1496
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1500
if test -n "$ac_init_help"; then
1501
case $ac_init_help in
1502
short | recursive ) echo "Configuration of open-vm-tools 2012.12.26:";;
1507
--disable-option-checking ignore unrecognized --enable/--with options
1508
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1509
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1510
--disable-multimon disables multimon, enabled by default
1511
--disable-docs disables generation of API documentation; by
1512
default, docs are built if doxygen is available.
1513
--disable-tests disable compilation of test code.
1514
--disable-dependency-tracking speeds up one-time build
1515
--enable-dependency-tracking do not reject slow dependency extractors
1516
--enable-shared[=PKGS] build shared libraries [default=yes]
1517
--enable-static[=PKGS] build static libraries [default=yes]
1518
--enable-fast-install[=PKGS]
1519
optimize for fast installation [default=yes]
1520
--disable-libtool-lock avoid locking (might break parallel builds)
1523
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1524
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1525
--without-root-privileges
1526
does not perform any operations that require root
1528
--without-kernel-modules
1529
does not compile or install the kernel modules
1530
--with-kernel-release specifies the kernel release you want to build
1532
--with-linuxdir specifies the Linux directory you want to use
1533
--without-gtk2 compiles without Gtk 2.0
1534
--without-gtkmm compiles without Gtkmm, sigc++, and related libs
1535
--with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1537
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1538
--with-sysroot=DIR Search for dependent libraries within DIR
1539
(or the compiler's sysroot if not specified).
1540
--with-x use the X Window System
1541
--without-pam compiles without PAM support.
1542
--with-pam-prefix specifies where pam files go. Default is
1544
--without-procps compiles without libproc (disables support for
1546
--without-dnet compiles without libdnet (disables support for
1548
--without-icu disables support for ICU
1550
Some influential environment variables:
1551
CC C compiler command
1552
CFLAGS C compiler flags
1553
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1554
nonstandard directory <lib dir>
1555
LIBS libraries to pass to the linker, e.g. -l<library>
1556
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1557
you have headers in a nonstandard directory <include dir>
1559
CXX C++ compiler command
1560
CXXFLAGS C++ compiler flags
1561
CXXCPP C++ preprocessor
1562
XMKMF Path to xmkmf, Makefile generator for X Window System
1564
Use these variables to override the choices made by `configure' or to help
1565
it to find libraries and programs with nonstandard names/locations.
1567
Report bugs to <open-vm-tools-devel@lists.sourceforge.net>.
1572
if test "$ac_init_help" = "recursive"; then
1573
# If there are subdirs, report their specific --help.
1574
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1575
test -d "$ac_dir" ||
1576
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1581
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1584
# A ".." for each directory in $ac_dir_suffix.
1585
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1586
case $ac_top_builddir_sub in
1587
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1591
ac_abs_top_builddir=$ac_pwd
1592
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1593
# for backward compatibility:
1594
ac_top_builddir=$ac_top_build_prefix
1597
.) # We are building in place.
1599
ac_top_srcdir=$ac_top_builddir_sub
1600
ac_abs_top_srcdir=$ac_pwd ;;
1601
[\\/]* | ?:[\\/]* ) # Absolute name.
1602
ac_srcdir=$srcdir$ac_dir_suffix;
1603
ac_top_srcdir=$srcdir
1604
ac_abs_top_srcdir=$srcdir ;;
1606
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1607
ac_top_srcdir=$ac_top_build_prefix$srcdir
1608
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1610
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1612
cd "$ac_dir" || { ac_status=$?; continue; }
1613
# Check for guested configure.
1614
if test -f "$ac_srcdir/configure.gnu"; then
1616
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1617
elif test -f "$ac_srcdir/configure"; then
1619
$SHELL "$ac_srcdir/configure" --help=recursive
1621
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1623
cd "$ac_pwd" || { ac_status=$?; break; }
1627
test -n "$ac_init_help" && exit $ac_status
1628
if $ac_init_version; then
1630
open-vm-tools configure 2012.12.26
1631
generated by GNU Autoconf 2.68
1633
Copyright (C) 2010 Free Software Foundation, Inc.
1634
This configure script is free software; the Free Software Foundation
1635
gives unlimited permission to copy, distribute and modify it.
1640
## ------------------------ ##
1641
## Autoconf initialization. ##
1642
## ------------------------ ##
1644
# ac_fn_c_try_compile LINENO
1645
# --------------------------
1646
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1647
ac_fn_c_try_compile ()
1649
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650
rm -f conftest.$ac_objext
1651
if { { ac_try="$ac_compile"
1653
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654
*) ac_try_echo=$ac_try;;
1656
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657
$as_echo "$ac_try_echo"; } >&5
1658
(eval "$ac_compile") 2>conftest.err
1660
if test -s conftest.err; then
1661
grep -v '^ *+' conftest.err >conftest.er1
1662
cat conftest.er1 >&5
1663
mv -f conftest.er1 conftest.err
1665
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666
test $ac_status = 0; } && {
1667
test -z "$ac_c_werror_flag" ||
1668
test ! -s conftest.err
1669
} && test -s conftest.$ac_objext; then :
1672
$as_echo "$as_me: failed program was:" >&5
1673
sed 's/^/| /' conftest.$ac_ext >&5
1677
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1678
as_fn_set_status $ac_retval
1680
} # ac_fn_c_try_compile
1682
# ac_fn_c_try_cpp LINENO
1683
# ----------------------
1684
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1687
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688
if { { ac_try="$ac_cpp conftest.$ac_ext"
1690
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691
*) ac_try_echo=$ac_try;;
1693
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694
$as_echo "$ac_try_echo"; } >&5
1695
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1697
if test -s conftest.err; then
1698
grep -v '^ *+' conftest.err >conftest.er1
1699
cat conftest.er1 >&5
1700
mv -f conftest.er1 conftest.err
1702
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703
test $ac_status = 0; } > conftest.i && {
1704
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1705
test ! -s conftest.err
1709
$as_echo "$as_me: failed program was:" >&5
1710
sed 's/^/| /' conftest.$ac_ext >&5
1714
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1715
as_fn_set_status $ac_retval
1719
# ac_fn_cxx_try_compile LINENO
1720
# ----------------------------
1721
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1722
ac_fn_cxx_try_compile ()
1724
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725
rm -f conftest.$ac_objext
1726
if { { ac_try="$ac_compile"
1728
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729
*) ac_try_echo=$ac_try;;
1731
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732
$as_echo "$ac_try_echo"; } >&5
1733
(eval "$ac_compile") 2>conftest.err
1735
if test -s conftest.err; then
1736
grep -v '^ *+' conftest.err >conftest.er1
1737
cat conftest.er1 >&5
1738
mv -f conftest.er1 conftest.err
1740
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741
test $ac_status = 0; } && {
1742
test -z "$ac_cxx_werror_flag" ||
1743
test ! -s conftest.err
1744
} && test -s conftest.$ac_objext; then :
1747
$as_echo "$as_me: failed program was:" >&5
1748
sed 's/^/| /' conftest.$ac_ext >&5
1752
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753
as_fn_set_status $ac_retval
1755
} # ac_fn_cxx_try_compile
1757
# ac_fn_c_try_link LINENO
1758
# -----------------------
1759
# Try to link conftest.$ac_ext, and return whether this succeeded.
1762
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763
rm -f conftest.$ac_objext conftest$ac_exeext
1764
if { { ac_try="$ac_link"
1766
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767
*) ac_try_echo=$ac_try;;
1769
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770
$as_echo "$ac_try_echo"; } >&5
1771
(eval "$ac_link") 2>conftest.err
1773
if test -s conftest.err; then
1774
grep -v '^ *+' conftest.err >conftest.er1
1775
cat conftest.er1 >&5
1776
mv -f conftest.er1 conftest.err
1778
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779
test $ac_status = 0; } && {
1780
test -z "$ac_c_werror_flag" ||
1781
test ! -s conftest.err
1782
} && test -s conftest$ac_exeext && {
1783
test "$cross_compiling" = yes ||
1784
$as_test_x conftest$ac_exeext
1788
$as_echo "$as_me: failed program was:" >&5
1789
sed 's/^/| /' conftest.$ac_ext >&5
1793
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1794
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1795
# interfere with the next link command; also delete a directory that is
1796
# left behind by Apple's compiler. We do this before executing the actions.
1797
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1798
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799
as_fn_set_status $ac_retval
1801
} # ac_fn_c_try_link
1803
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1804
# -------------------------------------------------------
1805
# Tests whether HEADER exists and can be compiled using the include files in
1806
# INCLUDES, setting the cache variable VAR accordingly.
1807
ac_fn_c_check_header_compile ()
1809
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811
$as_echo_n "checking for $2... " >&6; }
1812
if eval \${$3+:} false; then :
1813
$as_echo_n "(cached) " >&6
1815
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816
/* end confdefs.h. */
1820
if ac_fn_c_try_compile "$LINENO"; then :
1825
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1828
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829
$as_echo "$ac_res" >&6; }
1830
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832
} # ac_fn_c_check_header_compile
1834
# ac_fn_c_try_run LINENO
1835
# ----------------------
1836
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1837
# that executables *can* be run.
1840
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841
if { { ac_try="$ac_link"
1843
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844
*) ac_try_echo=$ac_try;;
1846
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847
$as_echo "$ac_try_echo"; } >&5
1848
(eval "$ac_link") 2>&5
1850
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1852
{ { case "(($ac_try" in
1853
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854
*) ac_try_echo=$ac_try;;
1856
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857
$as_echo "$ac_try_echo"; } >&5
1858
(eval "$ac_try") 2>&5
1860
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861
test $ac_status = 0; }; }; then :
1864
$as_echo "$as_me: program exited with status $ac_status" >&5
1865
$as_echo "$as_me: failed program was:" >&5
1866
sed 's/^/| /' conftest.$ac_ext >&5
1868
ac_retval=$ac_status
1870
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1871
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872
as_fn_set_status $ac_retval
1876
# ac_fn_c_check_func LINENO FUNC VAR
1877
# ----------------------------------
1878
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1879
ac_fn_c_check_func ()
1881
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883
$as_echo_n "checking for $2... " >&6; }
1884
if eval \${$3+:} false; then :
1885
$as_echo_n "(cached) " >&6
1887
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1888
/* end confdefs.h. */
1889
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1890
For example, HP-UX 11i <limits.h> declares gettimeofday. */
1891
#define $2 innocuous_$2
1893
/* System header to define __stub macros and hopefully few prototypes,
1894
which can conflict with char $2 (); below.
1895
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1896
<limits.h> exists even on freestanding compilers. */
1899
# include <limits.h>
1901
# include <assert.h>
1906
/* Override any GCC internal prototype to avoid an error.
1907
Use char because int might match the return type of a GCC
1908
builtin and then its argument prototype would still apply. */
1913
/* The GNU C library defines this for functions which it implements
1914
to always fail with ENOSYS. Some functions are actually named
1915
something starting with __ and the normal name is an alias. */
1916
#if defined __stub_$2 || defined __stub___$2
1928
if ac_fn_c_try_link "$LINENO"; then :
1933
rm -f core conftest.err conftest.$ac_objext \
1934
conftest$ac_exeext conftest.$ac_ext
1937
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1938
$as_echo "$ac_res" >&6; }
1939
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941
} # ac_fn_c_check_func
1943
# ac_fn_cxx_try_cpp LINENO
1944
# ------------------------
1945
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1946
ac_fn_cxx_try_cpp ()
1948
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949
if { { ac_try="$ac_cpp conftest.$ac_ext"
1951
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1952
*) ac_try_echo=$ac_try;;
1954
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1955
$as_echo "$ac_try_echo"; } >&5
1956
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1958
if test -s conftest.err; then
1959
grep -v '^ *+' conftest.err >conftest.er1
1960
cat conftest.er1 >&5
1961
mv -f conftest.er1 conftest.err
1963
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1964
test $ac_status = 0; } > conftest.i && {
1965
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1966
test ! -s conftest.err
1970
$as_echo "$as_me: failed program was:" >&5
1971
sed 's/^/| /' conftest.$ac_ext >&5
1975
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1976
as_fn_set_status $ac_retval
1978
} # ac_fn_cxx_try_cpp
1980
# ac_fn_cxx_try_link LINENO
1981
# -------------------------
1982
# Try to link conftest.$ac_ext, and return whether this succeeded.
1983
ac_fn_cxx_try_link ()
1985
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1986
rm -f conftest.$ac_objext conftest$ac_exeext
1987
if { { ac_try="$ac_link"
1989
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1990
*) ac_try_echo=$ac_try;;
1992
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1993
$as_echo "$ac_try_echo"; } >&5
1994
(eval "$ac_link") 2>conftest.err
1996
if test -s conftest.err; then
1997
grep -v '^ *+' conftest.err >conftest.er1
1998
cat conftest.er1 >&5
1999
mv -f conftest.er1 conftest.err
2001
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2002
test $ac_status = 0; } && {
2003
test -z "$ac_cxx_werror_flag" ||
2004
test ! -s conftest.err
2005
} && test -s conftest$ac_exeext && {
2006
test "$cross_compiling" = yes ||
2007
$as_test_x conftest$ac_exeext
2011
$as_echo "$as_me: failed program was:" >&5
2012
sed 's/^/| /' conftest.$ac_ext >&5
2016
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2017
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2018
# interfere with the next link command; also delete a directory that is
2019
# left behind by Apple's compiler. We do this before executing the actions.
2020
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2021
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022
as_fn_set_status $ac_retval
2024
} # ac_fn_cxx_try_link
2026
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2027
# -------------------------------------------------------
2028
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2029
# the include files in INCLUDES and setting the cache variable VAR
2031
ac_fn_c_check_header_mongrel ()
2033
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2034
if eval \${$3+:} false; then :
2035
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2036
$as_echo_n "checking for $2... " >&6; }
2037
if eval \${$3+:} false; then :
2038
$as_echo_n "(cached) " >&6
2041
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042
$as_echo "$ac_res" >&6; }
2044
# Is the header compilable?
2045
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2046
$as_echo_n "checking $2 usability... " >&6; }
2047
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048
/* end confdefs.h. */
2052
if ac_fn_c_try_compile "$LINENO"; then :
2053
ac_header_compiler=yes
2055
ac_header_compiler=no
2057
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2059
$as_echo "$ac_header_compiler" >&6; }
2061
# Is the header present?
2062
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2063
$as_echo_n "checking $2 presence... " >&6; }
2064
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065
/* end confdefs.h. */
2068
if ac_fn_c_try_cpp "$LINENO"; then :
2069
ac_header_preproc=yes
2071
ac_header_preproc=no
2073
rm -f conftest.err conftest.i conftest.$ac_ext
2074
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2075
$as_echo "$ac_header_preproc" >&6; }
2077
# So? What about this header?
2078
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2080
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2081
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2082
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2083
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2086
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2087
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2088
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2089
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2090
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2091
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2092
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2093
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2094
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2095
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2096
( $as_echo "## -------------------------------------------------------- ##
2097
## Report this to open-vm-tools-devel@lists.sourceforge.net ##
2098
## -------------------------------------------------------- ##"
2099
) | sed "s/^/$as_me: WARNING: /" >&2
2102
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2103
$as_echo_n "checking for $2... " >&6; }
2104
if eval \${$3+:} false; then :
2105
$as_echo_n "(cached) " >&6
2107
eval "$3=\$ac_header_compiler"
2110
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2111
$as_echo "$ac_res" >&6; }
2113
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2115
} # ac_fn_c_check_header_mongrel
2117
# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2118
# ---------------------------------------------------------
2119
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2120
# the include files in INCLUDES and setting the cache variable VAR
2122
ac_fn_cxx_check_header_mongrel ()
2124
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125
if eval \${$3+:} false; then :
2126
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2127
$as_echo_n "checking for $2... " >&6; }
2128
if eval \${$3+:} false; then :
2129
$as_echo_n "(cached) " >&6
2132
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2133
$as_echo "$ac_res" >&6; }
2135
# Is the header compilable?
2136
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2137
$as_echo_n "checking $2 usability... " >&6; }
2138
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139
/* end confdefs.h. */
2143
if ac_fn_cxx_try_compile "$LINENO"; then :
2144
ac_header_compiler=yes
2146
ac_header_compiler=no
2148
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2149
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2150
$as_echo "$ac_header_compiler" >&6; }
2152
# Is the header present?
2153
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2154
$as_echo_n "checking $2 presence... " >&6; }
2155
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156
/* end confdefs.h. */
2159
if ac_fn_cxx_try_cpp "$LINENO"; then :
2160
ac_header_preproc=yes
2162
ac_header_preproc=no
2164
rm -f conftest.err conftest.i conftest.$ac_ext
2165
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2166
$as_echo "$ac_header_preproc" >&6; }
2168
# So? What about this header?
2169
case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2171
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2172
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2173
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2174
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2177
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2178
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2179
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2180
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2181
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2182
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2183
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2184
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2185
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2186
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2187
( $as_echo "## -------------------------------------------------------- ##
2188
## Report this to open-vm-tools-devel@lists.sourceforge.net ##
2189
## -------------------------------------------------------- ##"
2190
) | sed "s/^/$as_me: WARNING: /" >&2
2193
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2194
$as_echo_n "checking for $2... " >&6; }
2195
if eval \${$3+:} false; then :
2196
$as_echo_n "(cached) " >&6
2198
eval "$3=\$ac_header_compiler"
2201
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2202
$as_echo "$ac_res" >&6; }
2204
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2206
} # ac_fn_cxx_check_header_mongrel
2208
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2209
# -------------------------------------------
2210
# Tests whether TYPE exists after having included INCLUDES, setting cache
2211
# variable VAR accordingly.
2212
ac_fn_c_check_type ()
2214
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2215
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2216
$as_echo_n "checking for $2... " >&6; }
2217
if eval \${$3+:} false; then :
2218
$as_echo_n "(cached) " >&6
2221
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222
/* end confdefs.h. */
2233
if ac_fn_c_try_compile "$LINENO"; then :
2234
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235
/* end confdefs.h. */
2246
if ac_fn_c_try_compile "$LINENO"; then :
2251
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2253
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2257
$as_echo "$ac_res" >&6; }
2258
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2260
} # ac_fn_c_check_type
2262
# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2263
# ----------------------------------------------------
2264
# Tries to find if the field MEMBER exists in type AGGR, after including
2265
# INCLUDES, setting cache variable VAR accordingly.
2266
ac_fn_c_check_member ()
2268
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2269
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2270
$as_echo_n "checking for $2.$3... " >&6; }
2271
if eval \${$4+:} false; then :
2272
$as_echo_n "(cached) " >&6
2274
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275
/* end confdefs.h. */
2287
if ac_fn_c_try_compile "$LINENO"; then :
2290
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2291
/* end confdefs.h. */
2297
if (sizeof ac_aggr.$3)
2303
if ac_fn_c_try_compile "$LINENO"; then :
2308
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2310
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2313
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2314
$as_echo "$ac_res" >&6; }
2315
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2317
} # ac_fn_c_check_member
2318
cat >config.log <<_ACEOF
2319
This file contains any messages produced by compilers while
2320
running configure, to aid debugging if configure makes a mistake.
2322
It was created by open-vm-tools $as_me 2012.12.26, which was
2323
generated by GNU Autoconf 2.68. Invocation command line was
2335
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2336
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2337
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2338
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2339
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2341
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2342
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2344
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2345
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2346
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2347
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2348
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2349
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2350
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2354
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358
test -z "$as_dir" && as_dir=.
2359
$as_echo "PATH: $as_dir"
2375
# Keep a trace of the command line.
2376
# Strip out --no-create and --no-recursion so they do not pile up.
2377
# Strip out --silent because we don't want to record it for future runs.
2378
# Also quote any args containing shell meta-characters.
2379
# Make two passes to allow for proper duplicate-argument suppression.
2383
ac_must_keep_next=false
2389
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2390
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
2391
| -silent | --silent | --silen | --sile | --sil)
2394
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2397
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2399
as_fn_append ac_configure_args1 " '$ac_arg'"
2400
if test $ac_must_keep_next = true; then
2401
ac_must_keep_next=false # Got value, back to normal.
2404
*=* | --config-cache | -C | -disable-* | --disable-* \
2405
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2406
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2407
| -with-* | --with-* | -without-* | --without-* | --x)
2408
case "$ac_configure_args0 " in
2409
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2412
-* ) ac_must_keep_next=true ;;
2415
as_fn_append ac_configure_args " '$ac_arg'"
2420
{ ac_configure_args0=; unset ac_configure_args0;}
2421
{ ac_configure_args1=; unset ac_configure_args1;}
2423
# When interrupted or exit'd, cleanup temporary files, and complete
2424
# config.log. We remove comments because anyway the quotes in there
2425
# would cause problems or look ugly.
2426
# WARNING: Use '\'' to represent an apostrophe within the trap.
2427
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2428
trap 'exit_status=$?
2429
# Save into config.log some information that might help in debugging.
2433
$as_echo "## ---------------- ##
2434
## Cache variables. ##
2435
## ---------------- ##"
2437
# The following way of writing the cache mishandles newlines in values,
2439
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2440
eval ac_val=\$$ac_var
2444
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2445
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2448
_ | IFS | as_nl) ;; #(
2449
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2450
*) { eval $ac_var=; unset $ac_var;} ;;
2455
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2456
*${as_nl}ac_space=\ *)
2458
"s/'\''/'\''\\\\'\'''\''/g;
2459
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2462
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2469
$as_echo "## ----------------- ##
2470
## Output variables. ##
2471
## ----------------- ##"
2473
for ac_var in $ac_subst_vars
2475
eval ac_val=\$$ac_var
2477
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2479
$as_echo "$ac_var='\''$ac_val'\''"
2483
if test -n "$ac_subst_files"; then
2484
$as_echo "## ------------------- ##
2485
## File substitutions. ##
2486
## ------------------- ##"
2488
for ac_var in $ac_subst_files
2490
eval ac_val=\$$ac_var
2492
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2494
$as_echo "$ac_var='\''$ac_val'\''"
2499
if test -s confdefs.h; then
2500
$as_echo "## ----------- ##
2507
test "$ac_signal" != 0 &&
2508
$as_echo "$as_me: caught signal $ac_signal"
2509
$as_echo "$as_me: exit $exit_status"
2511
rm -f core *.core core.conftest.* &&
2512
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2515
for ac_signal in 1 2 13 15; do
2516
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2520
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2521
rm -f -r conftest* confdefs.h
2523
$as_echo "/* confdefs.h */" > confdefs.h
2525
# Predefined preprocessor variables.
2527
cat >>confdefs.h <<_ACEOF
2528
#define PACKAGE_NAME "$PACKAGE_NAME"
2531
cat >>confdefs.h <<_ACEOF
2532
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2535
cat >>confdefs.h <<_ACEOF
2536
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2539
cat >>confdefs.h <<_ACEOF
2540
#define PACKAGE_STRING "$PACKAGE_STRING"
2543
cat >>confdefs.h <<_ACEOF
2544
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2547
cat >>confdefs.h <<_ACEOF
2548
#define PACKAGE_URL "$PACKAGE_URL"
2552
# Let the site file select an alternate cache file if it wants to.
2553
# Prefer an explicitly selected file to automatically selected ones.
2556
if test -n "$CONFIG_SITE"; then
2557
# We do not want a PATH search for config.site.
2558
case $CONFIG_SITE in #((
2559
-*) ac_site_file1=./$CONFIG_SITE;;
2560
*/*) ac_site_file1=$CONFIG_SITE;;
2561
*) ac_site_file1=./$CONFIG_SITE;;
2563
elif test "x$prefix" != xNONE; then
2564
ac_site_file1=$prefix/share/config.site
2565
ac_site_file2=$prefix/etc/config.site
2567
ac_site_file1=$ac_default_prefix/share/config.site
2568
ac_site_file2=$ac_default_prefix/etc/config.site
2570
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2572
test "x$ac_site_file" = xNONE && continue
2573
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2574
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2575
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2576
sed 's/^/| /' "$ac_site_file" >&5
2578
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2579
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2580
as_fn_error $? "failed to load site script $ac_site_file
2581
See \`config.log' for more details" "$LINENO" 5; }
2585
if test -r "$cache_file"; then
2586
# Some versions of bash will fail to source /dev/null (special files
2587
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
2588
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2589
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2590
$as_echo "$as_me: loading cache $cache_file" >&6;}
2592
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2593
*) . "./$cache_file";;
2597
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2598
$as_echo "$as_me: creating cache $cache_file" >&6;}
2602
# Check that the precious variables saved in the cache have kept the same
2604
ac_cache_corrupted=false
2605
for ac_var in $ac_precious_vars; do
2606
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2607
eval ac_new_set=\$ac_env_${ac_var}_set
2608
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2609
eval ac_new_val=\$ac_env_${ac_var}_value
2610
case $ac_old_set,$ac_new_set in
2612
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2613
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2614
ac_cache_corrupted=: ;;
2616
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2617
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2618
ac_cache_corrupted=: ;;
2621
if test "x$ac_old_val" != "x$ac_new_val"; then
2622
# differences in whitespace do not lead to failure.
2623
ac_old_val_w=`echo x $ac_old_val`
2624
ac_new_val_w=`echo x $ac_new_val`
2625
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2626
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2627
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2628
ac_cache_corrupted=:
2630
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2631
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2632
eval $ac_var=\$ac_old_val
2634
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2635
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2636
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2637
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2640
# Pass precious variables to config.status.
2641
if test "$ac_new_set" = set; then
2643
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2644
*) ac_arg=$ac_var=$ac_new_val ;;
2646
case " $ac_configure_args " in
2647
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2648
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2652
if $ac_cache_corrupted; then
2653
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2654
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2655
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2656
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2657
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2659
## -------------------- ##
2660
## Main body of script. ##
2661
## -------------------- ##
2664
ac_cpp='$CPP $CPPFLAGS'
2665
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2666
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2667
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2671
# In order to make this configure script auto-detect situations where
2672
# people have a 32-bit userland running with a 64-bit kernel, we try to ask
2673
# the compiler (assumedly gcc) for its default Target:.
2674
# We have to set up $TEST_CC manually, since AC_PROG_CC hasn't yet been run (and can't be until AC_CANONICAL_HOST & AC_CANONICAL_BUILD are run)
2675
# The purpose of all this is to set up $host_alias/$build_alias in a more
2676
# intelligent way than config.guess currently does.
2677
TEST_CC="$CC_FOR_BUILD"
2678
test -z "$TEST_CC" && TEST_CC="$HOST_CC"
2679
test -z "$TEST_CC" && TEST_CC="$CC"
2680
if test -n "$TEST_CC" -a -z "$host_alias"; then
2681
host_alias="`$TEST_CC -dumpmachine`"
2682
if test -z "$build_alias" -a -n "$host_alias"; then
2683
build_alias="$host_alias"
2688
# checkvm/checkvm.c has no special significance - we just need to pass in a file that
2689
# helps autoconf verify that it really has found the source tree.
2692
# Keep the top-level directory tidy by putting auxiliary build tools and local
2693
# macros in separate subdirectories.
2695
for ac_dir in config "$srcdir"/config; do
2696
if test -f "$ac_dir/install-sh"; then
2698
ac_install_sh="$ac_aux_dir/install-sh -c"
2700
elif test -f "$ac_dir/install.sh"; then
2702
ac_install_sh="$ac_aux_dir/install.sh -c"
2704
elif test -f "$ac_dir/shtool"; then
2706
ac_install_sh="$ac_aux_dir/shtool install -c"
2710
if test -z "$ac_aux_dir"; then
2711
as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2714
# These three variables are undocumented and unsupported,
2715
# and are intended to be withdrawn in a future Autoconf release.
2716
# They can cause serious problems if a builder's source tree is in a directory
2717
# whose full name contains unusual characters.
2718
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2719
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2720
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2725
# Make sure we can run config.sub.
2726
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2727
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2729
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2730
$as_echo_n "checking build system type... " >&6; }
2731
if ${ac_cv_build+:} false; then :
2732
$as_echo_n "(cached) " >&6
2734
ac_build_alias=$build_alias
2735
test "x$ac_build_alias" = x &&
2736
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2737
test "x$ac_build_alias" = x &&
2738
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2739
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2740
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2743
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2744
$as_echo "$ac_cv_build" >&6; }
2745
case $ac_cv_build in
2747
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2750
ac_save_IFS=$IFS; IFS='-'
2756
# Remember, the first character of IFS is used to create $*,
2757
# except with old shells:
2760
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2763
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2764
$as_echo_n "checking host system type... " >&6; }
2765
if ${ac_cv_host+:} false; then :
2766
$as_echo_n "(cached) " >&6
2768
if test "x$host_alias" = x; then
2769
ac_cv_host=$ac_cv_build
2771
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2772
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2776
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2777
$as_echo "$ac_cv_host" >&6; }
2780
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2783
ac_save_IFS=$IFS; IFS='-'
2789
# Remember, the first character of IFS is used to create $*,
2790
# except with old shells:
2793
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2798
# Quote the regular expressions
2801
userSpaceBitness="32"
2804
userSpaceBitness="64"
2807
as_fn_error $? "Unknown architecture." "$LINENO" 5
2811
# Operational arguments.
2813
# Check whether --with-root-privileges was given.
2814
if test "${with_root_privileges+set}" = set; then :
2815
withval=$with_root_privileges;
2817
with_root_privileges=yes
2822
# The kernel args have to go here otherwise the KERNEL_RELEASE won't be visible
2825
# Check whether --with-kernel-modules was given.
2826
if test "${with_kernel_modules+set}" = set; then :
2827
withval=$with_kernel_modules;
2829
with_kernel_modules=yes
2834
# Check whether --with-kernel-release was given.
2835
if test "${with_kernel_release+set}" = set; then :
2836
withval=$with_kernel_release; KERNEL_RELEASE="$withval"
2838
KERNEL_RELEASE=`uname -r`
2843
# Check whether --with-linuxdir was given.
2844
if test "${with_linuxdir+set}" = set; then :
2845
withval=$with_linuxdir; LINUXDIR="$withval"
2847
LINUXDIR=/lib/modules/$KERNEL_RELEASE
2851
# Turn the uname output into something we can run comparisons on.
2853
major_version="`echo $KERNEL_RELEASE | cut -f1 -d. | cut -f1 -d-`"
2854
minor_version="`echo $KERNEL_RELEASE | cut -f2 -d. | cut -f1 -d-`"
2855
micro_version="`echo $KERNEL_RELEASE | cut -f3 -d. | cut -f1 -d-`"
2856
printf '%02d%02d%03d' $major_version $minor_version $micro_version
2873
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This is an untested and unsupported Operating System. Proceed at your own peril." >&5
2874
$as_echo "$as_me: WARNING: This is an untested and unsupported Operating System. Proceed at your own peril." >&2;}
2877
osVersion="`getOsVersion`"
2879
if test "$with_kernel_modules" = "yes"; then
2882
if test "$osVersion" -lt 206009; then
2883
as_fn_error $? "Kernels prior to 2.6.9 are not supported in this release of open-vm-tools. Configure using --without-kernel-modules to suppress building kernel drivers." "$LINENO" 5
2885
if test ! -d "$LINUXDIR/kernel/"; then
2886
as_fn_error $? "$LINUXDIR/kernel does not exist" "$LINENO" 5
2888
LINUXINCLUDE="$LINUXDIR/build/include"
2889
if test ! -d "$LINUXINCLUDE"; then
2890
as_fn_error $? "Can't find include dir under $LINUXDIR" "$LINENO" 5
2895
freebsd_sysdir=/usr/src/sys
2896
if test -n "$SYSDIR"; then
2897
freebsd_sysdir="$SYSDIR"
2899
if test ! -f "$freebsd_sysdir/conf/kmod.mk"; then
2900
as_fn_error $? "FreeBSD kernel tree not found. Please install the kernel sources (or provide the location using SYSDIR) or configure using --without-kernel-modules." "$LINENO" 5
2906
# Arguments for disabling individual open-vm-tools features or libraries.
2907
# Check whether --enable-multimon was given.
2908
if test "${enable_multimon+set}" = set; then :
2909
enableval=$enable_multimon; enable_multimon="$enableval"
2911
enable_multimon="yes"
2916
# Check whether --with-gtk2 was given.
2917
if test "${with_gtk2+set}" = set; then :
2918
withval=$with_gtk2; with_gtk2="$withval"
2925
# Check whether --with-gtkmm was given.
2926
if test "${with_gtkmm+set}" = set; then :
2927
withval=$with_gtkmm; with_gtkmm="$withval"
2933
# Check whether --enable-docs was given.
2934
if test "${enable_docs+set}" = set; then :
2935
enableval=$enable_docs; enable_docs="$enableval"
2941
# Check whether --enable-tests was given.
2942
if test "${enable_tests+set}" = set; then :
2943
enableval=$enable_tests; enable_tests="$enableval"
2949
am__api_version='1.11'
2951
# Find a good install program. We prefer a C program (faster),
2952
# so one script is as good as another. But avoid the broken or
2953
# incompatible versions:
2954
# SysV /etc/install, /usr/sbin/install
2955
# SunOS /usr/etc/install
2956
# IRIX /sbin/install
2958
# AmigaOS /C/install, which installs bootblocks on floppy discs
2959
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2960
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2961
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2962
# OS/2's system install, which has a completely different semantic
2963
# ./install, which can be erroneously created by make from ./install.sh.
2964
# Reject install programs that cannot install multiple files.
2965
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2966
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2967
if test -z "$INSTALL"; then
2968
if ${ac_cv_path_install+:} false; then :
2969
$as_echo_n "(cached) " >&6
2971
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975
test -z "$as_dir" && as_dir=.
2976
# Account for people who put trailing slashes in PATH elements.
2977
case $as_dir/ in #((
2978
./ | .// | /[cC]/* | \
2979
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2980
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2983
# OSF1 and SCO ODT 3.0 have their own names for install.
2984
# Don't use installbsd from OSF since it installs stuff as root
2986
for ac_prog in ginstall scoinst install; do
2987
for ac_exec_ext in '' $ac_executable_extensions; do
2988
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2989
if test $ac_prog = install &&
2990
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2991
# AIX install. It has an incompatible calling convention.
2993
elif test $ac_prog = install &&
2994
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2995
# program-specific install script used by HP pwplus--don't use.
2998
rm -rf conftest.one conftest.two conftest.dir
2999
echo one > conftest.one
3000
echo two > conftest.two
3002
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3003
test -s conftest.one && test -s conftest.two &&
3004
test -s conftest.dir/conftest.one &&
3005
test -s conftest.dir/conftest.two
3007
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3020
rm -rf conftest.one conftest.two conftest.dir
3023
if test "${ac_cv_path_install+set}" = set; then
3024
INSTALL=$ac_cv_path_install
3026
# As a last resort, use the slow shell script. Don't cache a
3027
# value for INSTALL within a source directory, because that will
3028
# break other packages using the cache if that directory is
3029
# removed, or if the value is a relative name.
3030
INSTALL=$ac_install_sh
3033
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3034
$as_echo "$INSTALL" >&6; }
3036
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3037
# It thinks the first close brace ends the variable substitution.
3038
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3040
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3042
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3044
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3045
$as_echo_n "checking whether build environment is sane... " >&6; }
3048
echo timestamp > conftest.file
3049
# Reject unsafe characters in $srcdir or the absolute working directory
3050
# name. Accept space and tab only in the latter.
3054
*[\\\"\#\$\&\'\`$am_lf]*)
3055
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3058
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3059
as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3062
# Do `set' in a subshell so we don't clobber the current shell's
3063
# arguments. Must try -L first in case configure is actually a
3064
# symlink; some systems play weird games with the mod time of symlinks
3065
# (eg FreeBSD returns the mod time of the symlink's containing
3068
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3069
if test "$*" = "X"; then
3071
set X `ls -t "$srcdir/configure" conftest.file`
3074
if test "$*" != "X $srcdir/configure conftest.file" \
3075
&& test "$*" != "X conftest.file $srcdir/configure"; then
3077
# If neither matched, then we have a broken ls. This can happen
3078
# if, for instance, CONFIG_SHELL is bash and it inherits a
3079
# broken ls alias from the environment. This has actually
3080
# happened. Such a system could not be considered "sane".
3081
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3082
alias in your environment" "$LINENO" 5
3085
test "$2" = conftest.file
3091
as_fn_error $? "newly created file is older than distributed files!
3092
Check your system clock" "$LINENO" 5
3094
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3095
$as_echo "yes" >&6; }
3096
test "$program_prefix" != NONE &&
3097
program_transform_name="s&^&$program_prefix&;$program_transform_name"
3098
# Use a double $ so make ignores it.
3099
test "$program_suffix" != NONE &&
3100
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3101
# Double any \ or $.
3102
# By default was `s,x,x', remove it if useless.
3103
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3104
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3106
# expand $ac_aux_dir to an absolute path
3107
am_aux_dir=`cd $ac_aux_dir && pwd`
3109
if test x"${MISSING+set}" != xset; then
3112
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3114
MISSING="\${SHELL} $am_aux_dir/missing" ;;
3117
# Use eval to expand $SHELL
3118
if eval "$MISSING --run true"; then
3119
am_missing_run="$MISSING --run "
3122
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3123
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3126
if test x"${install_sh}" != xset; then
3129
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3131
install_sh="\${SHELL} $am_aux_dir/install-sh"
3135
# Installed binaries are usually stripped using `strip' when the user
3136
# run `make install-strip'. However `strip' might not be the right
3137
# tool to use in cross-compilation environments, therefore Automake
3138
# will honor the `STRIP' environment variable to overrule this program.
3139
if test "$cross_compiling" != no; then
3140
if test -n "$ac_tool_prefix"; then
3141
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3142
set dummy ${ac_tool_prefix}strip; ac_word=$2
3143
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3144
$as_echo_n "checking for $ac_word... " >&6; }
3145
if ${ac_cv_prog_STRIP+:} false; then :
3146
$as_echo_n "(cached) " >&6
3148
if test -n "$STRIP"; then
3149
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3151
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155
test -z "$as_dir" && as_dir=.
3156
for ac_exec_ext in '' $ac_executable_extensions; do
3157
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3158
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3159
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3168
STRIP=$ac_cv_prog_STRIP
3169
if test -n "$STRIP"; then
3170
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3171
$as_echo "$STRIP" >&6; }
3173
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174
$as_echo "no" >&6; }
3179
if test -z "$ac_cv_prog_STRIP"; then
3181
# Extract the first word of "strip", so it can be a program name with args.
3182
set dummy strip; ac_word=$2
3183
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184
$as_echo_n "checking for $ac_word... " >&6; }
3185
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3186
$as_echo_n "(cached) " >&6
3188
if test -n "$ac_ct_STRIP"; then
3189
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3191
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195
test -z "$as_dir" && as_dir=.
3196
for ac_exec_ext in '' $ac_executable_extensions; do
3197
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3198
ac_cv_prog_ac_ct_STRIP="strip"
3199
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3208
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3209
if test -n "$ac_ct_STRIP"; then
3210
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3211
$as_echo "$ac_ct_STRIP" >&6; }
3213
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214
$as_echo "no" >&6; }
3217
if test "x$ac_ct_STRIP" = x; then
3220
case $cross_compiling:$ac_tool_warned in
3222
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3223
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3224
ac_tool_warned=yes ;;
3229
STRIP="$ac_cv_prog_STRIP"
3233
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3235
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3236
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3237
if test -z "$MKDIR_P"; then
3238
if ${ac_cv_path_mkdir+:} false; then :
3239
$as_echo_n "(cached) " >&6
3241
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3245
test -z "$as_dir" && as_dir=.
3246
for ac_prog in mkdir gmkdir; do
3247
for ac_exec_ext in '' $ac_executable_extensions; do
3248
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3249
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3250
'mkdir (GNU coreutils) '* | \
3251
'mkdir (coreutils) '* | \
3252
'mkdir (fileutils) '4.1*)
3253
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3263
test -d ./--version && rmdir ./--version
3264
if test "${ac_cv_path_mkdir+set}" = set; then
3265
MKDIR_P="$ac_cv_path_mkdir -p"
3267
# As a last resort, use the slow shell script. Don't cache a
3268
# value for MKDIR_P within a source directory, because that will
3269
# break other packages using the cache if that directory is
3270
# removed, or if the value is a relative name.
3271
MKDIR_P="$ac_install_sh -d"
3274
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3275
$as_echo "$MKDIR_P" >&6; }
3279
[\\/$]* | ?:[\\/]*) ;;
3280
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3283
for ac_prog in gawk mawk nawk awk
3285
# Extract the first word of "$ac_prog", so it can be a program name with args.
3286
set dummy $ac_prog; ac_word=$2
3287
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288
$as_echo_n "checking for $ac_word... " >&6; }
3289
if ${ac_cv_prog_AWK+:} false; then :
3290
$as_echo_n "(cached) " >&6
3292
if test -n "$AWK"; then
3293
ac_cv_prog_AWK="$AWK" # Let the user override the test.
3295
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3299
test -z "$as_dir" && as_dir=.
3300
for ac_exec_ext in '' $ac_executable_extensions; do
3301
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3302
ac_cv_prog_AWK="$ac_prog"
3303
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3313
if test -n "$AWK"; then
3314
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3315
$as_echo "$AWK" >&6; }
3317
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318
$as_echo "no" >&6; }
3322
test -n "$AWK" && break
3325
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3326
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3328
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3329
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3330
$as_echo_n "(cached) " >&6
3332
cat >conftest.make <<\_ACEOF
3335
@echo '@@@%%%=$(MAKE)=@@@%%%'
3337
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3338
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3340
eval ac_cv_prog_make_${ac_make}_set=yes;;
3342
eval ac_cv_prog_make_${ac_make}_set=no;;
3346
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3347
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3348
$as_echo "yes" >&6; }
3351
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3352
$as_echo "no" >&6; }
3353
SET_MAKE="MAKE=${MAKE-make}"
3356
rm -rf .tst 2>/dev/null
3357
mkdir .tst 2>/dev/null
3358
if test -d .tst; then
3363
rmdir .tst 2>/dev/null
3365
if test "`cd $srcdir && pwd`" != "`pwd`"; then
3366
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3367
# is not polluted with repeated "-I."
3368
am__isrc=' -I$(srcdir)'
3369
# test to see if srcdir already configured
3370
if test -f $srcdir/config.status; then
3371
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3375
# test whether we have cygpath
3376
if test -z "$CYGPATH_W"; then
3377
if (cygpath --version) >/dev/null 2>/dev/null; then
3378
CYGPATH_W='cygpath -w'
3385
# Define the identity of the package.
3386
PACKAGE='open-vm-tools'
3387
VERSION='2012.12.26'
3390
cat >>confdefs.h <<_ACEOF
3391
#define PACKAGE "$PACKAGE"
3395
cat >>confdefs.h <<_ACEOF
3396
#define VERSION "$VERSION"
3399
# Some tools Automake needs.
3401
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3404
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3407
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3410
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3413
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3415
# We need awk for the "check" target. The system "awk" is bad on
3417
# Always define AMTAR for backward compatibility. Yes, it's still used
3418
# in the wild :-( We should find a proper way to deprecate it ...
3421
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3431
# These need to be declared after initialization.
3433
# Some of our macro call-sites require changes to
3434
# CPPFLAGS/CFLAGS/LDFLAGS. In such places, we save the original value
3435
# of CPPFLAGS/CFLAGS/LDFLAGS before the macro call and restore it when
3436
# the call is done. We must perform this save at each macro site,
3437
# because CPPFLAGS/CFLAGS/LDFLAGS may change over the course of
3440
# CPPFLAGS is intended for preprocessor options (-D and -I mainly)
3441
# CFLAGS is intended for compiler options (-O, -f, -W, and so forth)
3443
CPPFLAGS="$CPPFLAGS -DUSING_AUTOCONF=1 -DOPEN_VM_TOOLS"
3448
# C preprocessor and compiler.
3449
DEPDIR="${am__leading_dot}deps"
3451
ac_config_commands="$ac_config_commands depfiles"
3454
am_make=${MAKE-make}
3455
cat > confinc << 'END'
3457
@echo this is the am__doit target
3460
# If we don't find an include directive, just comment out the code.
3461
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3462
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3466
# First try GNU make style include.
3467
echo "include confinc" > confmf
3468
# Ignore all kinds of additional output from `make'.
3469
case `$am_make -s -f confmf 2> /dev/null` in #(
3470
*the\ am__doit\ target*)
3476
# Now try BSD make style include.
3477
if test "$am__include" = "#"; then
3478
echo '.include "confinc"' > confmf
3479
case `$am_make -s -f confmf 2> /dev/null` in #(
3480
*the\ am__doit\ target*)
3481
am__include=.include
3489
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3490
$as_echo "$_am_result" >&6; }
3491
rm -f confinc confmf
3493
# Check whether --enable-dependency-tracking was given.
3494
if test "${enable_dependency_tracking+set}" = set; then :
3495
enableval=$enable_dependency_tracking;
3498
if test "x$enable_dependency_tracking" != xno; then
3499
am_depcomp="$ac_aux_dir/depcomp"
3503
if test "x$enable_dependency_tracking" != xno; then
3513
ac_cpp='$CPP $CPPFLAGS'
3514
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3515
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3516
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3517
if test -n "$ac_tool_prefix"; then
3518
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3519
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3520
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3521
$as_echo_n "checking for $ac_word... " >&6; }
3522
if ${ac_cv_prog_CC+:} false; then :
3523
$as_echo_n "(cached) " >&6
3525
if test -n "$CC"; then
3526
ac_cv_prog_CC="$CC" # Let the user override the test.
3528
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532
test -z "$as_dir" && as_dir=.
3533
for ac_exec_ext in '' $ac_executable_extensions; do
3534
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3535
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3536
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3546
if test -n "$CC"; then
3547
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3548
$as_echo "$CC" >&6; }
3550
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3551
$as_echo "no" >&6; }
3556
if test -z "$ac_cv_prog_CC"; then
3558
# Extract the first word of "gcc", so it can be a program name with args.
3559
set dummy gcc; ac_word=$2
3560
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3561
$as_echo_n "checking for $ac_word... " >&6; }
3562
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3563
$as_echo_n "(cached) " >&6
3565
if test -n "$ac_ct_CC"; then
3566
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3568
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572
test -z "$as_dir" && as_dir=.
3573
for ac_exec_ext in '' $ac_executable_extensions; do
3574
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3575
ac_cv_prog_ac_ct_CC="gcc"
3576
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3585
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3586
if test -n "$ac_ct_CC"; then
3587
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3588
$as_echo "$ac_ct_CC" >&6; }
3590
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3591
$as_echo "no" >&6; }
3594
if test "x$ac_ct_CC" = x; then
3597
case $cross_compiling:$ac_tool_warned in
3599
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3600
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3601
ac_tool_warned=yes ;;
3609
if test -z "$CC"; then
3610
if test -n "$ac_tool_prefix"; then
3611
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3612
set dummy ${ac_tool_prefix}cc; ac_word=$2
3613
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3614
$as_echo_n "checking for $ac_word... " >&6; }
3615
if ${ac_cv_prog_CC+:} false; then :
3616
$as_echo_n "(cached) " >&6
3618
if test -n "$CC"; then
3619
ac_cv_prog_CC="$CC" # Let the user override the test.
3621
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625
test -z "$as_dir" && as_dir=.
3626
for ac_exec_ext in '' $ac_executable_extensions; do
3627
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3628
ac_cv_prog_CC="${ac_tool_prefix}cc"
3629
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3639
if test -n "$CC"; then
3640
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3641
$as_echo "$CC" >&6; }
3643
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3644
$as_echo "no" >&6; }
3650
if test -z "$CC"; then
3651
# Extract the first word of "cc", so it can be a program name with args.
3652
set dummy cc; ac_word=$2
3653
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3654
$as_echo_n "checking for $ac_word... " >&6; }
3655
if ${ac_cv_prog_CC+:} false; then :
3656
$as_echo_n "(cached) " >&6
3658
if test -n "$CC"; then
3659
ac_cv_prog_CC="$CC" # Let the user override the test.
3662
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3666
test -z "$as_dir" && as_dir=.
3667
for ac_exec_ext in '' $ac_executable_extensions; do
3668
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3669
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3670
ac_prog_rejected=yes
3674
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3681
if test $ac_prog_rejected = yes; then
3682
# We found a bogon in the path, so make sure we never use it.
3683
set dummy $ac_cv_prog_CC
3685
if test $# != 0; then
3686
# We chose a different compiler from the bogus one.
3687
# However, it has the same basename, so the bogon will be chosen
3688
# first if we set CC to just the basename; use the full file name.
3690
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3696
if test -n "$CC"; then
3697
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3698
$as_echo "$CC" >&6; }
3700
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701
$as_echo "no" >&6; }
3706
if test -z "$CC"; then
3707
if test -n "$ac_tool_prefix"; then
3708
for ac_prog in cl.exe
3710
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3711
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3712
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3713
$as_echo_n "checking for $ac_word... " >&6; }
3714
if ${ac_cv_prog_CC+:} false; then :
3715
$as_echo_n "(cached) " >&6
3717
if test -n "$CC"; then
3718
ac_cv_prog_CC="$CC" # Let the user override the test.
3720
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724
test -z "$as_dir" && as_dir=.
3725
for ac_exec_ext in '' $ac_executable_extensions; do
3726
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3727
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3728
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3738
if test -n "$CC"; then
3739
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3740
$as_echo "$CC" >&6; }
3742
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3743
$as_echo "no" >&6; }
3747
test -n "$CC" && break
3750
if test -z "$CC"; then
3752
for ac_prog in cl.exe
3754
# Extract the first word of "$ac_prog", so it can be a program name with args.
3755
set dummy $ac_prog; ac_word=$2
3756
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757
$as_echo_n "checking for $ac_word... " >&6; }
3758
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3759
$as_echo_n "(cached) " >&6
3761
if test -n "$ac_ct_CC"; then
3762
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3764
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768
test -z "$as_dir" && as_dir=.
3769
for ac_exec_ext in '' $ac_executable_extensions; do
3770
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3771
ac_cv_prog_ac_ct_CC="$ac_prog"
3772
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3781
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3782
if test -n "$ac_ct_CC"; then
3783
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3784
$as_echo "$ac_ct_CC" >&6; }
3786
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787
$as_echo "no" >&6; }
3791
test -n "$ac_ct_CC" && break
3794
if test "x$ac_ct_CC" = x; then
3797
case $cross_compiling:$ac_tool_warned in
3799
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3800
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3801
ac_tool_warned=yes ;;
3810
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3811
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3812
as_fn_error $? "no acceptable C compiler found in \$PATH
3813
See \`config.log' for more details" "$LINENO" 5; }
3815
# Provide some information about the compiler.
3816
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3819
for ac_option in --version -v -V -qversion; do
3820
{ { ac_try="$ac_compiler $ac_option >&5"
3822
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823
*) ac_try_echo=$ac_try;;
3825
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3826
$as_echo "$ac_try_echo"; } >&5
3827
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3829
if test -s conftest.err; then
3831
... rest of stderr output deleted ...
3832
10q' conftest.err >conftest.er1
3833
cat conftest.er1 >&5
3835
rm -f conftest.er1 conftest.err
3836
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3837
test $ac_status = 0; }
3840
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841
/* end confdefs.h. */
3851
ac_clean_files_save=$ac_clean_files
3852
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3853
# Try to create an executable without -o first, disregard a.out.
3854
# It will help us diagnose broken compilers, and finding out an intuition
3856
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3857
$as_echo_n "checking whether the C compiler works... " >&6; }
3858
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3860
# The possible output files:
3861
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3864
for ac_file in $ac_files
3867
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3868
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3873
if { { ac_try="$ac_link_default"
3875
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876
*) ac_try_echo=$ac_try;;
3878
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3879
$as_echo "$ac_try_echo"; } >&5
3880
(eval "$ac_link_default") 2>&5
3882
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3883
test $ac_status = 0; }; then :
3884
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3885
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3886
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3887
# so that the user can short-circuit this test for compilers unknown to
3889
for ac_file in $ac_files ''
3891
test -f "$ac_file" || continue
3893
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3896
# We found the default executable, but exeext='' is most
3900
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3902
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3904
# We set ac_cv_exeext here because the later test for it is not
3905
# safe: cross compilers may not add the suffix if given an `-o'
3906
# argument, so we may need to know it at that point already.
3907
# Even if this section looks crufty: it has the advantage of
3914
test "$ac_cv_exeext" = no && ac_cv_exeext=
3919
if test -z "$ac_file"; then :
3920
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3921
$as_echo "no" >&6; }
3922
$as_echo "$as_me: failed program was:" >&5
3923
sed 's/^/| /' conftest.$ac_ext >&5
3925
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3926
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3927
as_fn_error 77 "C compiler cannot create executables
3928
See \`config.log' for more details" "$LINENO" 5; }
3930
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3931
$as_echo "yes" >&6; }
3933
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3934
$as_echo_n "checking for C compiler default output file name... " >&6; }
3935
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3936
$as_echo "$ac_file" >&6; }
3937
ac_exeext=$ac_cv_exeext
3939
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3940
ac_clean_files=$ac_clean_files_save
3941
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3942
$as_echo_n "checking for suffix of executables... " >&6; }
3943
if { { ac_try="$ac_link"
3945
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946
*) ac_try_echo=$ac_try;;
3948
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3949
$as_echo "$ac_try_echo"; } >&5
3950
(eval "$ac_link") 2>&5
3952
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3953
test $ac_status = 0; }; then :
3954
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3955
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3956
# work properly (i.e., refer to `conftest.exe'), while it won't with
3958
for ac_file in conftest.exe conftest conftest.*; do
3959
test -f "$ac_file" || continue
3961
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3962
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3968
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3969
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3970
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3971
See \`config.log' for more details" "$LINENO" 5; }
3973
rm -f conftest conftest$ac_cv_exeext
3974
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3975
$as_echo "$ac_cv_exeext" >&6; }
3977
rm -f conftest.$ac_ext
3978
EXEEXT=$ac_cv_exeext
3980
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981
/* end confdefs.h. */
3986
FILE *f = fopen ("conftest.out", "w");
3987
return ferror (f) || fclose (f) != 0;
3993
ac_clean_files="$ac_clean_files conftest.out"
3994
# Check that the compiler produces executables we can run. If not, either
3995
# the compiler is broken, or we cross compile.
3996
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3997
$as_echo_n "checking whether we are cross compiling... " >&6; }
3998
if test "$cross_compiling" != yes; then
3999
{ { ac_try="$ac_link"
4001
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002
*) ac_try_echo=$ac_try;;
4004
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4005
$as_echo "$ac_try_echo"; } >&5
4006
(eval "$ac_link") 2>&5
4008
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4009
test $ac_status = 0; }
4010
if { ac_try='./conftest$ac_cv_exeext'
4011
{ { case "(($ac_try" in
4012
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4013
*) ac_try_echo=$ac_try;;
4015
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4016
$as_echo "$ac_try_echo"; } >&5
4017
(eval "$ac_try") 2>&5
4019
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4020
test $ac_status = 0; }; }; then
4023
if test "$cross_compiling" = maybe; then
4026
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4027
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4028
as_fn_error $? "cannot run C compiled programs.
4029
If you meant to cross compile, use \`--host'.
4030
See \`config.log' for more details" "$LINENO" 5; }
4034
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4035
$as_echo "$cross_compiling" >&6; }
4037
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4038
ac_clean_files=$ac_clean_files_save
4039
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4040
$as_echo_n "checking for suffix of object files... " >&6; }
4041
if ${ac_cv_objext+:} false; then :
4042
$as_echo_n "(cached) " >&6
4044
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045
/* end confdefs.h. */
4055
rm -f conftest.o conftest.obj
4056
if { { ac_try="$ac_compile"
4058
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059
*) ac_try_echo=$ac_try;;
4061
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4062
$as_echo "$ac_try_echo"; } >&5
4063
(eval "$ac_compile") 2>&5
4065
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4066
test $ac_status = 0; }; then :
4067
for ac_file in conftest.o conftest.obj conftest.*; do
4068
test -f "$ac_file" || continue;
4070
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4071
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4076
$as_echo "$as_me: failed program was:" >&5
4077
sed 's/^/| /' conftest.$ac_ext >&5
4079
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4080
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4081
as_fn_error $? "cannot compute suffix of object files: cannot compile
4082
See \`config.log' for more details" "$LINENO" 5; }
4084
rm -f conftest.$ac_cv_objext conftest.$ac_ext
4086
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4087
$as_echo "$ac_cv_objext" >&6; }
4088
OBJEXT=$ac_cv_objext
4090
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4091
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4092
if ${ac_cv_c_compiler_gnu+:} false; then :
4093
$as_echo_n "(cached) " >&6
4095
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096
/* end confdefs.h. */
4109
if ac_fn_c_try_compile "$LINENO"; then :
4114
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4115
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4118
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4119
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4120
if test $ac_compiler_gnu = yes; then
4125
ac_test_CFLAGS=${CFLAGS+set}
4126
ac_save_CFLAGS=$CFLAGS
4127
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4128
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4129
if ${ac_cv_prog_cc_g+:} false; then :
4130
$as_echo_n "(cached) " >&6
4132
ac_save_c_werror_flag=$ac_c_werror_flag
4133
ac_c_werror_flag=yes
4136
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4137
/* end confdefs.h. */
4147
if ac_fn_c_try_compile "$LINENO"; then :
4151
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152
/* end confdefs.h. */
4162
if ac_fn_c_try_compile "$LINENO"; then :
4165
ac_c_werror_flag=$ac_save_c_werror_flag
4167
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168
/* end confdefs.h. */
4178
if ac_fn_c_try_compile "$LINENO"; then :
4181
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4183
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4185
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4186
ac_c_werror_flag=$ac_save_c_werror_flag
4188
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4189
$as_echo "$ac_cv_prog_cc_g" >&6; }
4190
if test "$ac_test_CFLAGS" = set; then
4191
CFLAGS=$ac_save_CFLAGS
4192
elif test $ac_cv_prog_cc_g = yes; then
4193
if test "$GCC" = yes; then
4199
if test "$GCC" = yes; then
4205
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4206
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4207
if ${ac_cv_prog_cc_c89+:} false; then :
4208
$as_echo_n "(cached) " >&6
4210
ac_cv_prog_cc_c89=no
4212
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4213
/* end confdefs.h. */
4216
#include <sys/types.h>
4217
#include <sys/stat.h>
4218
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4219
struct buf { int x; };
4220
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4221
static char *e (p, i)
4227
static char *f (char * (*g) (char **, int), char **p, ...)
4232
s = g (p, va_arg (v,int));
4237
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4238
function prototypes and stuff, but not '\xHH' hex character constants.
4239
These don't provoke an error unfortunately, instead are silently treated
4240
as 'x'. The following induces an error, until -std is added to get
4241
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4242
array size at least. It's necessary to write '\x00'==0 to get something
4243
that's true only with -std. */
4244
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4246
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4247
inside strings and character constants. */
4249
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4251
int test (int i, double x);
4252
struct s1 {int (*f) (int a);};
4253
struct s2 {int (*f) (double a);};
4254
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4260
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4265
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4266
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4268
CC="$ac_save_CC $ac_arg"
4269
if ac_fn_c_try_compile "$LINENO"; then :
4270
ac_cv_prog_cc_c89=$ac_arg
4272
rm -f core conftest.err conftest.$ac_objext
4273
test "x$ac_cv_prog_cc_c89" != "xno" && break
4275
rm -f conftest.$ac_ext
4280
case "x$ac_cv_prog_cc_c89" in
4282
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4283
$as_echo "none needed" >&6; } ;;
4285
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4286
$as_echo "unsupported" >&6; } ;;
4288
CC="$CC $ac_cv_prog_cc_c89"
4289
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4290
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4292
if test "x$ac_cv_prog_cc_c89" != xno; then :
4297
ac_cpp='$CPP $CPPFLAGS'
4298
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4299
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4300
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4302
depcc="$CC" am_compiler_list=
4304
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4305
$as_echo_n "checking dependency style of $depcc... " >&6; }
4306
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4307
$as_echo_n "(cached) " >&6
4309
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4310
# We make a subdir and do the tests there. Otherwise we can end up
4311
# making bogus files that we don't know about and never remove. For
4312
# instance it was reported that on HP-UX the gcc test will end up
4313
# making a dummy file named `D' -- because `-MD' means `put the output
4317
# Copy depcomp to subdir because otherwise we won't find it if we're
4318
# using a relative directory.
4319
cp "$am_depcomp" conftest.dir
4321
# We will build objects and dependencies in a subdirectory because
4322
# it helps to detect inapplicable dependency modes. For instance
4323
# both Tru64's cc and ICC support -MD to output dependencies as a
4324
# side effect of compilation, but ICC will put the dependencies in
4325
# the current directory while Tru64 will put them in the object
4329
am_cv_CC_dependencies_compiler_type=none
4330
if test "$am_compiler_list" = ""; then
4331
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4334
case " $depcc " in #(
4335
*\ -arch\ *\ -arch\ *) am__universal=true ;;
4338
for depmode in $am_compiler_list; do
4339
# Setup a source with many dependencies, because some compilers
4340
# like to wrap large dependency lists on column 80 (with \), and
4341
# we should not choose a depcomp mode which is confused by this.
4343
# We need to recreate these files for each test, as the compiler may
4344
# overwrite some of them when testing with obscure command lines.
4345
# This happens at least with the AIX C compiler.
4347
for i in 1 2 3 4 5 6; do
4348
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4349
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4350
# Solaris 8's {/usr,}/bin/sh.
4351
touch sub/conftst$i.h
4353
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4355
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4356
# mode. It turns out that the SunPro C++ compiler does not properly
4357
# handle `-M -o', and we need to detect this. Also, some Intel
4358
# versions had trouble with output in subdirs
4359
am__obj=sub/conftest.${OBJEXT-o}
4360
am__minus_obj="-o $am__obj"
4363
# This depmode causes a compiler race in universal mode.
4364
test "$am__universal" = false || continue
4367
# after this tag, mechanisms are not by side-effect, so they'll
4368
# only be used when explicitly requested
4369
if test "x$enable_dependency_tracking" = xyes; then
4375
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4376
# This compiler won't grok `-c -o', but also, the minuso test has
4377
# not run yet. These depmodes are late enough in the game, and
4378
# so weak that their functioning should not be impacted.
4379
am__obj=conftest.${OBJEXT-o}
4384
if depmode=$depmode \
4385
source=sub/conftest.c object=$am__obj \
4386
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4387
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4388
>/dev/null 2>conftest.err &&
4389
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4390
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4391
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4392
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4393
# icc doesn't choke on unknown options, it will just issue warnings
4394
# or remarks (even with -Werror). So we grep stderr for any message
4395
# that says an option was ignored or not supported.
4396
# When given -MP, icc 7.0 and 7.1 complain thusly:
4397
# icc: Command line warning: ignoring option '-M'; no argument required
4398
# The diagnosis changed in icc 8.0:
4399
# icc: Command line remark: option '-MP' not supported
4400
if (grep 'ignoring option' conftest.err ||
4401
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4402
am_cv_CC_dependencies_compiler_type=$depmode
4411
am_cv_CC_dependencies_compiler_type=none
4415
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4416
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4417
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4420
test "x$enable_dependency_tracking" != xno \
4421
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4423
am__fastdepCC_FALSE='#'
4425
am__fastdepCC_TRUE='#'
4426
am__fastdepCC_FALSE=
4431
ac_cpp='$CPP $CPPFLAGS'
4432
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4433
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4434
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4435
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4436
$as_echo_n "checking how to run the C preprocessor... " >&6; }
4437
# On Suns, sometimes $CPP names a directory.
4438
if test -n "$CPP" && test -d "$CPP"; then
4441
if test -z "$CPP"; then
4442
if ${ac_cv_prog_CPP+:} false; then :
4443
$as_echo_n "(cached) " >&6
4445
# Double quotes because CPP needs to be expanded
4446
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4449
for ac_c_preproc_warn_flag in '' yes
4451
# Use a header file that comes with gcc, so configuring glibc
4452
# with a fresh cross-compiler works.
4453
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4454
# <limits.h> exists even on freestanding compilers.
4455
# On the NeXT, cc -E runs the code through the compiler's parser,
4456
# not just through cpp. "Syntax error" is here to catch this case.
4457
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4458
/* end confdefs.h. */
4460
# include <limits.h>
4462
# include <assert.h>
4466
if ac_fn_c_try_cpp "$LINENO"; then :
4469
# Broken: fails on valid input.
4472
rm -f conftest.err conftest.i conftest.$ac_ext
4474
# OK, works on sane cases. Now check whether nonexistent headers
4475
# can be detected and how.
4476
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477
/* end confdefs.h. */
4478
#include <ac_nonexistent.h>
4480
if ac_fn_c_try_cpp "$LINENO"; then :
4481
# Broken: success on invalid input.
4484
# Passes both tests.
4488
rm -f conftest.err conftest.i conftest.$ac_ext
4491
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4492
rm -f conftest.i conftest.err conftest.$ac_ext
4493
if $ac_preproc_ok; then :
4505
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4506
$as_echo "$CPP" >&6; }
4508
for ac_c_preproc_warn_flag in '' yes
4510
# Use a header file that comes with gcc, so configuring glibc
4511
# with a fresh cross-compiler works.
4512
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4513
# <limits.h> exists even on freestanding compilers.
4514
# On the NeXT, cc -E runs the code through the compiler's parser,
4515
# not just through cpp. "Syntax error" is here to catch this case.
4516
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517
/* end confdefs.h. */
4519
# include <limits.h>
4521
# include <assert.h>
4525
if ac_fn_c_try_cpp "$LINENO"; then :
4528
# Broken: fails on valid input.
4531
rm -f conftest.err conftest.i conftest.$ac_ext
4533
# OK, works on sane cases. Now check whether nonexistent headers
4534
# can be detected and how.
4535
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4536
/* end confdefs.h. */
4537
#include <ac_nonexistent.h>
4539
if ac_fn_c_try_cpp "$LINENO"; then :
4540
# Broken: success on invalid input.
4543
# Passes both tests.
4547
rm -f conftest.err conftest.i conftest.$ac_ext
4550
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4551
rm -f conftest.i conftest.err conftest.$ac_ext
4552
if $ac_preproc_ok; then :
4555
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4556
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4557
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4558
See \`config.log' for more details" "$LINENO" 5; }
4562
ac_cpp='$CPP $CPPFLAGS'
4563
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4564
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4565
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4568
ac_cpp='$CPP $CPPFLAGS'
4569
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4570
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4571
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4572
if test -n "$ac_tool_prefix"; then
4573
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4574
set dummy ${ac_tool_prefix}gcc; ac_word=$2
4575
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4576
$as_echo_n "checking for $ac_word... " >&6; }
4577
if ${ac_cv_prog_CC+:} false; then :
4578
$as_echo_n "(cached) " >&6
4580
if test -n "$CC"; then
4581
ac_cv_prog_CC="$CC" # Let the user override the test.
4583
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587
test -z "$as_dir" && as_dir=.
4588
for ac_exec_ext in '' $ac_executable_extensions; do
4589
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4590
ac_cv_prog_CC="${ac_tool_prefix}gcc"
4591
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4601
if test -n "$CC"; then
4602
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4603
$as_echo "$CC" >&6; }
4605
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4606
$as_echo "no" >&6; }
4611
if test -z "$ac_cv_prog_CC"; then
4613
# Extract the first word of "gcc", so it can be a program name with args.
4614
set dummy gcc; ac_word=$2
4615
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4616
$as_echo_n "checking for $ac_word... " >&6; }
4617
if ${ac_cv_prog_ac_ct_CC+:} false; then :
4618
$as_echo_n "(cached) " >&6
4620
if test -n "$ac_ct_CC"; then
4621
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4623
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627
test -z "$as_dir" && as_dir=.
4628
for ac_exec_ext in '' $ac_executable_extensions; do
4629
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4630
ac_cv_prog_ac_ct_CC="gcc"
4631
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4640
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4641
if test -n "$ac_ct_CC"; then
4642
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4643
$as_echo "$ac_ct_CC" >&6; }
4645
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4646
$as_echo "no" >&6; }
4649
if test "x$ac_ct_CC" = x; then
4652
case $cross_compiling:$ac_tool_warned in
4654
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4655
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4656
ac_tool_warned=yes ;;
4664
if test -z "$CC"; then
4665
if test -n "$ac_tool_prefix"; then
4666
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4667
set dummy ${ac_tool_prefix}cc; ac_word=$2
4668
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4669
$as_echo_n "checking for $ac_word... " >&6; }
4670
if ${ac_cv_prog_CC+:} false; then :
4671
$as_echo_n "(cached) " >&6
4673
if test -n "$CC"; then
4674
ac_cv_prog_CC="$CC" # Let the user override the test.
4676
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4680
test -z "$as_dir" && as_dir=.
4681
for ac_exec_ext in '' $ac_executable_extensions; do
4682
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4683
ac_cv_prog_CC="${ac_tool_prefix}cc"
4684
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4694
if test -n "$CC"; then
4695
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4696
$as_echo "$CC" >&6; }
4698
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4699
$as_echo "no" >&6; }
4705
if test -z "$CC"; then
4706
# Extract the first word of "cc", so it can be a program name with args.
4707
set dummy cc; ac_word=$2
4708
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4709
$as_echo_n "checking for $ac_word... " >&6; }
4710
if ${ac_cv_prog_CC+:} false; then :
4711
$as_echo_n "(cached) " >&6
4713
if test -n "$CC"; then
4714
ac_cv_prog_CC="$CC" # Let the user override the test.
4717
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4721
test -z "$as_dir" && as_dir=.
4722
for ac_exec_ext in '' $ac_executable_extensions; do
4723
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4724
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4725
ac_prog_rejected=yes
4729
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4736
if test $ac_prog_rejected = yes; then
4737
# We found a bogon in the path, so make sure we never use it.
4738
set dummy $ac_cv_prog_CC
4740
if test $# != 0; then
4741
# We chose a different compiler from the bogus one.
4742
# However, it has the same basename, so the bogon will be chosen
4743
# first if we set CC to just the basename; use the full file name.
4745
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4751
if test -n "$CC"; then
4752
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4753
$as_echo "$CC" >&6; }
4755
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4756
$as_echo "no" >&6; }
4761
if test -z "$CC"; then
4762
if test -n "$ac_tool_prefix"; then
4763
for ac_prog in cl.exe
4765
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4766
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4767
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4768
$as_echo_n "checking for $ac_word... " >&6; }
4769
if ${ac_cv_prog_CC+:} false; then :
4770
$as_echo_n "(cached) " >&6
4772
if test -n "$CC"; then
4773
ac_cv_prog_CC="$CC" # Let the user override the test.
4775
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779
test -z "$as_dir" && as_dir=.
4780
for ac_exec_ext in '' $ac_executable_extensions; do
4781
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4782
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4783
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4793
if test -n "$CC"; then
4794
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4795
$as_echo "$CC" >&6; }
4797
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4798
$as_echo "no" >&6; }
4802
test -n "$CC" && break
4805
if test -z "$CC"; then
4807
for ac_prog in cl.exe
4809
# Extract the first word of "$ac_prog", so it can be a program name with args.
4810
set dummy $ac_prog; ac_word=$2
4811
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4812
$as_echo_n "checking for $ac_word... " >&6; }
4813
if ${ac_cv_prog_ac_ct_CC+:} false; then :
4814
$as_echo_n "(cached) " >&6
4816
if test -n "$ac_ct_CC"; then
4817
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4819
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4823
test -z "$as_dir" && as_dir=.
4824
for ac_exec_ext in '' $ac_executable_extensions; do
4825
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4826
ac_cv_prog_ac_ct_CC="$ac_prog"
4827
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4836
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4837
if test -n "$ac_ct_CC"; then
4838
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4839
$as_echo "$ac_ct_CC" >&6; }
4841
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842
$as_echo "no" >&6; }
4846
test -n "$ac_ct_CC" && break
4849
if test "x$ac_ct_CC" = x; then
4852
case $cross_compiling:$ac_tool_warned in
4854
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4855
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4856
ac_tool_warned=yes ;;
4865
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4866
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4867
as_fn_error $? "no acceptable C compiler found in \$PATH
4868
See \`config.log' for more details" "$LINENO" 5; }
4870
# Provide some information about the compiler.
4871
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4874
for ac_option in --version -v -V -qversion; do
4875
{ { ac_try="$ac_compiler $ac_option >&5"
4877
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4878
*) ac_try_echo=$ac_try;;
4880
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4881
$as_echo "$ac_try_echo"; } >&5
4882
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
4884
if test -s conftest.err; then
4886
... rest of stderr output deleted ...
4887
10q' conftest.err >conftest.er1
4888
cat conftest.er1 >&5
4890
rm -f conftest.er1 conftest.err
4891
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4892
test $ac_status = 0; }
4895
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4896
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4897
if ${ac_cv_c_compiler_gnu+:} false; then :
4898
$as_echo_n "(cached) " >&6
4900
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4901
/* end confdefs.h. */
4914
if ac_fn_c_try_compile "$LINENO"; then :
4919
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4920
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4923
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4924
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4925
if test $ac_compiler_gnu = yes; then
4930
ac_test_CFLAGS=${CFLAGS+set}
4931
ac_save_CFLAGS=$CFLAGS
4932
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4933
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4934
if ${ac_cv_prog_cc_g+:} false; then :
4935
$as_echo_n "(cached) " >&6
4937
ac_save_c_werror_flag=$ac_c_werror_flag
4938
ac_c_werror_flag=yes
4941
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942
/* end confdefs.h. */
4952
if ac_fn_c_try_compile "$LINENO"; then :
4956
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4957
/* end confdefs.h. */
4967
if ac_fn_c_try_compile "$LINENO"; then :
4970
ac_c_werror_flag=$ac_save_c_werror_flag
4972
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4973
/* end confdefs.h. */
4983
if ac_fn_c_try_compile "$LINENO"; then :
4986
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4988
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4990
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4991
ac_c_werror_flag=$ac_save_c_werror_flag
4993
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4994
$as_echo "$ac_cv_prog_cc_g" >&6; }
4995
if test "$ac_test_CFLAGS" = set; then
4996
CFLAGS=$ac_save_CFLAGS
4997
elif test $ac_cv_prog_cc_g = yes; then
4998
if test "$GCC" = yes; then
5004
if test "$GCC" = yes; then
5010
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5011
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5012
if ${ac_cv_prog_cc_c89+:} false; then :
5013
$as_echo_n "(cached) " >&6
5015
ac_cv_prog_cc_c89=no
5017
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5018
/* end confdefs.h. */
5021
#include <sys/types.h>
5022
#include <sys/stat.h>
5023
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5024
struct buf { int x; };
5025
FILE * (*rcsopen) (struct buf *, struct stat *, int);
5026
static char *e (p, i)
5032
static char *f (char * (*g) (char **, int), char **p, ...)
5037
s = g (p, va_arg (v,int));
5042
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5043
function prototypes and stuff, but not '\xHH' hex character constants.
5044
These don't provoke an error unfortunately, instead are silently treated
5045
as 'x'. The following induces an error, until -std is added to get
5046
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5047
array size at least. It's necessary to write '\x00'==0 to get something
5048
that's true only with -std. */
5049
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5051
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5052
inside strings and character constants. */
5054
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5056
int test (int i, double x);
5057
struct s1 {int (*f) (int a);};
5058
struct s2 {int (*f) (double a);};
5059
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5065
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5070
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5071
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5073
CC="$ac_save_CC $ac_arg"
5074
if ac_fn_c_try_compile "$LINENO"; then :
5075
ac_cv_prog_cc_c89=$ac_arg
5077
rm -f core conftest.err conftest.$ac_objext
5078
test "x$ac_cv_prog_cc_c89" != "xno" && break
5080
rm -f conftest.$ac_ext
5085
case "x$ac_cv_prog_cc_c89" in
5087
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5088
$as_echo "none needed" >&6; } ;;
5090
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5091
$as_echo "unsupported" >&6; } ;;
5093
CC="$CC $ac_cv_prog_cc_c89"
5094
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5095
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5097
if test "x$ac_cv_prog_cc_c89" != xno; then :
5102
ac_cpp='$CPP $CPPFLAGS'
5103
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5104
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5107
depcc="$CC" am_compiler_list=
5109
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5110
$as_echo_n "checking dependency style of $depcc... " >&6; }
5111
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5112
$as_echo_n "(cached) " >&6
5114
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5115
# We make a subdir and do the tests there. Otherwise we can end up
5116
# making bogus files that we don't know about and never remove. For
5117
# instance it was reported that on HP-UX the gcc test will end up
5118
# making a dummy file named `D' -- because `-MD' means `put the output
5122
# Copy depcomp to subdir because otherwise we won't find it if we're
5123
# using a relative directory.
5124
cp "$am_depcomp" conftest.dir
5126
# We will build objects and dependencies in a subdirectory because
5127
# it helps to detect inapplicable dependency modes. For instance
5128
# both Tru64's cc and ICC support -MD to output dependencies as a
5129
# side effect of compilation, but ICC will put the dependencies in
5130
# the current directory while Tru64 will put them in the object
5134
am_cv_CC_dependencies_compiler_type=none
5135
if test "$am_compiler_list" = ""; then
5136
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5139
case " $depcc " in #(
5140
*\ -arch\ *\ -arch\ *) am__universal=true ;;
5143
for depmode in $am_compiler_list; do
5144
# Setup a source with many dependencies, because some compilers
5145
# like to wrap large dependency lists on column 80 (with \), and
5146
# we should not choose a depcomp mode which is confused by this.
5148
# We need to recreate these files for each test, as the compiler may
5149
# overwrite some of them when testing with obscure command lines.
5150
# This happens at least with the AIX C compiler.
5152
for i in 1 2 3 4 5 6; do
5153
echo '#include "conftst'$i'.h"' >> sub/conftest.c
5154
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5155
# Solaris 8's {/usr,}/bin/sh.
5156
touch sub/conftst$i.h
5158
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5160
# We check with `-c' and `-o' for the sake of the "dashmstdout"
5161
# mode. It turns out that the SunPro C++ compiler does not properly
5162
# handle `-M -o', and we need to detect this. Also, some Intel
5163
# versions had trouble with output in subdirs
5164
am__obj=sub/conftest.${OBJEXT-o}
5165
am__minus_obj="-o $am__obj"
5168
# This depmode causes a compiler race in universal mode.
5169
test "$am__universal" = false || continue
5172
# after this tag, mechanisms are not by side-effect, so they'll
5173
# only be used when explicitly requested
5174
if test "x$enable_dependency_tracking" = xyes; then
5180
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5181
# This compiler won't grok `-c -o', but also, the minuso test has
5182
# not run yet. These depmodes are late enough in the game, and
5183
# so weak that their functioning should not be impacted.
5184
am__obj=conftest.${OBJEXT-o}
5189
if depmode=$depmode \
5190
source=sub/conftest.c object=$am__obj \
5191
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5192
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5193
>/dev/null 2>conftest.err &&
5194
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5195
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5196
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5197
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5198
# icc doesn't choke on unknown options, it will just issue warnings
5199
# or remarks (even with -Werror). So we grep stderr for any message
5200
# that says an option was ignored or not supported.
5201
# When given -MP, icc 7.0 and 7.1 complain thusly:
5202
# icc: Command line warning: ignoring option '-M'; no argument required
5203
# The diagnosis changed in icc 8.0:
5204
# icc: Command line remark: option '-MP' not supported
5205
if (grep 'ignoring option' conftest.err ||
5206
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5207
am_cv_CC_dependencies_compiler_type=$depmode
5216
am_cv_CC_dependencies_compiler_type=none
5220
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5221
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5222
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5225
test "x$enable_dependency_tracking" != xno \
5226
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5228
am__fastdepCC_FALSE='#'
5230
am__fastdepCC_TRUE='#'
5231
am__fastdepCC_FALSE=
5236
# C++ compiler. Note that unlike AC_PROG_CC, this call does not trigger an
5237
# error if no C++ compiler was found; it'll just set the variable CXX to 'g++'.
5239
ac_cpp='$CXXCPP $CPPFLAGS'
5240
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5241
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5242
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5243
if test -z "$CXX"; then
5244
if test -n "$CCC"; then
5247
if test -n "$ac_tool_prefix"; then
5248
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5250
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5251
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5252
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5253
$as_echo_n "checking for $ac_word... " >&6; }
5254
if ${ac_cv_prog_CXX+:} false; then :
5255
$as_echo_n "(cached) " >&6
5257
if test -n "$CXX"; then
5258
ac_cv_prog_CXX="$CXX" # Let the user override the test.
5260
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264
test -z "$as_dir" && as_dir=.
5265
for ac_exec_ext in '' $ac_executable_extensions; do
5266
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5267
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5268
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5278
if test -n "$CXX"; then
5279
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5280
$as_echo "$CXX" >&6; }
5282
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5283
$as_echo "no" >&6; }
5287
test -n "$CXX" && break
5290
if test -z "$CXX"; then
5292
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5294
# Extract the first word of "$ac_prog", so it can be a program name with args.
5295
set dummy $ac_prog; ac_word=$2
5296
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5297
$as_echo_n "checking for $ac_word... " >&6; }
5298
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5299
$as_echo_n "(cached) " >&6
5301
if test -n "$ac_ct_CXX"; then
5302
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5304
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308
test -z "$as_dir" && as_dir=.
5309
for ac_exec_ext in '' $ac_executable_extensions; do
5310
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5311
ac_cv_prog_ac_ct_CXX="$ac_prog"
5312
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5321
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5322
if test -n "$ac_ct_CXX"; then
5323
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5324
$as_echo "$ac_ct_CXX" >&6; }
5326
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327
$as_echo "no" >&6; }
5331
test -n "$ac_ct_CXX" && break
5334
if test "x$ac_ct_CXX" = x; then
5337
case $cross_compiling:$ac_tool_warned in
5339
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5340
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5341
ac_tool_warned=yes ;;
5349
# Provide some information about the compiler.
5350
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5353
for ac_option in --version -v -V -qversion; do
5354
{ { ac_try="$ac_compiler $ac_option >&5"
5356
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5357
*) ac_try_echo=$ac_try;;
5359
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5360
$as_echo "$ac_try_echo"; } >&5
5361
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
5363
if test -s conftest.err; then
5365
... rest of stderr output deleted ...
5366
10q' conftest.err >conftest.er1
5367
cat conftest.er1 >&5
5369
rm -f conftest.er1 conftest.err
5370
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5371
test $ac_status = 0; }
5374
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5375
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5376
if ${ac_cv_cxx_compiler_gnu+:} false; then :
5377
$as_echo_n "(cached) " >&6
5379
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380
/* end confdefs.h. */
5393
if ac_fn_cxx_try_compile "$LINENO"; then :
5398
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5399
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5402
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5403
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5404
if test $ac_compiler_gnu = yes; then
5409
ac_test_CXXFLAGS=${CXXFLAGS+set}
5410
ac_save_CXXFLAGS=$CXXFLAGS
5411
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5412
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
5413
if ${ac_cv_prog_cxx_g+:} false; then :
5414
$as_echo_n "(cached) " >&6
5416
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5417
ac_cxx_werror_flag=yes
5420
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5421
/* end confdefs.h. */
5431
if ac_fn_cxx_try_compile "$LINENO"; then :
5432
ac_cv_prog_cxx_g=yes
5435
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436
/* end confdefs.h. */
5446
if ac_fn_cxx_try_compile "$LINENO"; then :
5449
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5451
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452
/* end confdefs.h. */
5462
if ac_fn_cxx_try_compile "$LINENO"; then :
5463
ac_cv_prog_cxx_g=yes
5465
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5467
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5469
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5470
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5472
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5473
$as_echo "$ac_cv_prog_cxx_g" >&6; }
5474
if test "$ac_test_CXXFLAGS" = set; then
5475
CXXFLAGS=$ac_save_CXXFLAGS
5476
elif test $ac_cv_prog_cxx_g = yes; then
5477
if test "$GXX" = yes; then
5483
if test "$GXX" = yes; then
5490
ac_cpp='$CPP $CPPFLAGS'
5491
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5492
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5493
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5495
depcc="$CXX" am_compiler_list=
5497
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5498
$as_echo_n "checking dependency style of $depcc... " >&6; }
5499
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5500
$as_echo_n "(cached) " >&6
5502
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5503
# We make a subdir and do the tests there. Otherwise we can end up
5504
# making bogus files that we don't know about and never remove. For
5505
# instance it was reported that on HP-UX the gcc test will end up
5506
# making a dummy file named `D' -- because `-MD' means `put the output
5510
# Copy depcomp to subdir because otherwise we won't find it if we're
5511
# using a relative directory.
5512
cp "$am_depcomp" conftest.dir
5514
# We will build objects and dependencies in a subdirectory because
5515
# it helps to detect inapplicable dependency modes. For instance
5516
# both Tru64's cc and ICC support -MD to output dependencies as a
5517
# side effect of compilation, but ICC will put the dependencies in
5518
# the current directory while Tru64 will put them in the object
5522
am_cv_CXX_dependencies_compiler_type=none
5523
if test "$am_compiler_list" = ""; then
5524
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5527
case " $depcc " in #(
5528
*\ -arch\ *\ -arch\ *) am__universal=true ;;
5531
for depmode in $am_compiler_list; do
5532
# Setup a source with many dependencies, because some compilers
5533
# like to wrap large dependency lists on column 80 (with \), and
5534
# we should not choose a depcomp mode which is confused by this.
5536
# We need to recreate these files for each test, as the compiler may
5537
# overwrite some of them when testing with obscure command lines.
5538
# This happens at least with the AIX C compiler.
5540
for i in 1 2 3 4 5 6; do
5541
echo '#include "conftst'$i'.h"' >> sub/conftest.c
5542
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5543
# Solaris 8's {/usr,}/bin/sh.
5544
touch sub/conftst$i.h
5546
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5548
# We check with `-c' and `-o' for the sake of the "dashmstdout"
5549
# mode. It turns out that the SunPro C++ compiler does not properly
5550
# handle `-M -o', and we need to detect this. Also, some Intel
5551
# versions had trouble with output in subdirs
5552
am__obj=sub/conftest.${OBJEXT-o}
5553
am__minus_obj="-o $am__obj"
5556
# This depmode causes a compiler race in universal mode.
5557
test "$am__universal" = false || continue
5560
# after this tag, mechanisms are not by side-effect, so they'll
5561
# only be used when explicitly requested
5562
if test "x$enable_dependency_tracking" = xyes; then
5568
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5569
# This compiler won't grok `-c -o', but also, the minuso test has
5570
# not run yet. These depmodes are late enough in the game, and
5571
# so weak that their functioning should not be impacted.
5572
am__obj=conftest.${OBJEXT-o}
5577
if depmode=$depmode \
5578
source=sub/conftest.c object=$am__obj \
5579
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5580
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5581
>/dev/null 2>conftest.err &&
5582
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5583
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5584
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5585
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5586
# icc doesn't choke on unknown options, it will just issue warnings
5587
# or remarks (even with -Werror). So we grep stderr for any message
5588
# that says an option was ignored or not supported.
5589
# When given -MP, icc 7.0 and 7.1 complain thusly:
5590
# icc: Command line warning: ignoring option '-M'; no argument required
5591
# The diagnosis changed in icc 8.0:
5592
# icc: Command line remark: option '-MP' not supported
5593
if (grep 'ignoring option' conftest.err ||
5594
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5595
am_cv_CXX_dependencies_compiler_type=$depmode
5604
am_cv_CXX_dependencies_compiler_type=none
5608
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5609
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5610
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5613
test "x$enable_dependency_tracking" != xno \
5614
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5615
am__fastdepCXX_TRUE=
5616
am__fastdepCXX_FALSE='#'
5618
am__fastdepCXX_TRUE='#'
5619
am__fastdepCXX_FALSE=
5624
# This allows features like per-target compiler flags. I.e., you can compile
5625
# one copy of the same sources twice with different flags. (See lib/guestApp
5627
if test "x$CC" != xcc; then
5628
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5629
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5631
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5632
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5634
set dummy $CC; ac_cc=`$as_echo "$2" |
5635
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5636
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
5637
$as_echo_n "(cached) " >&6
5639
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5640
/* end confdefs.h. */
5650
# Make sure it works both with $CC and with simple cc.
5651
# We do the test twice because some compilers refuse to overwrite an
5652
# existing .o file with -o, though they will create one.
5653
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5655
if { { case "(($ac_try" in
5656
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5657
*) ac_try_echo=$ac_try;;
5659
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5660
$as_echo "$ac_try_echo"; } >&5
5661
(eval "$ac_try") 2>&5
5663
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5664
test $ac_status = 0; } &&
5665
test -f conftest2.$ac_objext && { { case "(($ac_try" in
5666
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5667
*) ac_try_echo=$ac_try;;
5669
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5670
$as_echo "$ac_try_echo"; } >&5
5671
(eval "$ac_try") 2>&5
5673
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5674
test $ac_status = 0; };
5676
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5677
if test "x$CC" != xcc; then
5678
# Test first that cc exists at all.
5679
if { ac_try='cc -c conftest.$ac_ext >&5'
5680
{ { case "(($ac_try" in
5681
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5682
*) ac_try_echo=$ac_try;;
5684
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5685
$as_echo "$ac_try_echo"; } >&5
5686
(eval "$ac_try") 2>&5
5688
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5689
test $ac_status = 0; }; }; then
5690
ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5692
if { { case "(($ac_try" in
5693
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5694
*) ac_try_echo=$ac_try;;
5696
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5697
$as_echo "$ac_try_echo"; } >&5
5698
(eval "$ac_try") 2>&5
5700
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5701
test $ac_status = 0; } &&
5702
test -f conftest2.$ac_objext && { { case "(($ac_try" in
5703
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5704
*) ac_try_echo=$ac_try;;
5706
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5707
$as_echo "$ac_try_echo"; } >&5
5708
(eval "$ac_try") 2>&5
5710
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5711
test $ac_status = 0; };
5716
# cc exists but doesn't like -o.
5717
eval ac_cv_prog_cc_${ac_cc}_c_o=no
5722
eval ac_cv_prog_cc_${ac_cc}_c_o=no
5724
rm -f core conftest*
5727
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5728
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5729
$as_echo "yes" >&6; }
5731
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5732
$as_echo "no" >&6; }
5734
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5738
# FIXME: we rely on the cache variable name because
5739
# there is no other way.
5741
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5742
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5743
if test "$am_t" != yes; then
5744
# Losing compiler, so override with the script.
5745
# FIXME: It is wrong to rewrite CC.
5746
# But if we don't then we get into trouble of one sort or another.
5747
# A longer-term fix would be to have automake use am__CC in this case,
5748
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5749
CC="$am_aux_dir/compile $CC"
5754
# Needed for the various install and uninstall hooks.
5756
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5757
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5758
if ${ac_cv_path_SED+:} false; then :
5759
$as_echo_n "(cached) " >&6
5761
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5762
for ac_i in 1 2 3 4 5 6 7; do
5763
ac_script="$ac_script$as_nl$ac_script"
5765
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5766
{ ac_script=; unset ac_script;}
5767
if test -z "$SED"; then
5768
ac_path_SED_found=false
5769
# Loop through the user's path and test for each of PROGNAME-LIST
5770
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774
test -z "$as_dir" && as_dir=.
5775
for ac_prog in sed gsed; do
5776
for ac_exec_ext in '' $ac_executable_extensions; do
5777
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5778
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5779
# Check for GNU ac_path_SED and select it if it is found.
5780
# Check for GNU $ac_path_SED
5781
case `"$ac_path_SED" --version 2>&1` in
5783
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5786
$as_echo_n 0123456789 >"conftest.in"
5789
cat "conftest.in" "conftest.in" >"conftest.tmp"
5790
mv "conftest.tmp" "conftest.in"
5791
cp "conftest.in" "conftest.nl"
5792
$as_echo '' >> "conftest.nl"
5793
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5794
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5795
as_fn_arith $ac_count + 1 && ac_count=$as_val
5796
if test $ac_count -gt ${ac_path_SED_max-0}; then
5797
# Best one so far, save it but keep looking for a better one
5798
ac_cv_path_SED="$ac_path_SED"
5799
ac_path_SED_max=$ac_count
5801
# 10*(2^10) chars as input seems more than enough
5802
test $ac_count -gt 10 && break
5804
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5807
$ac_path_SED_found && break 3
5812
if test -z "$ac_cv_path_SED"; then
5813
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5820
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5821
$as_echo "$ac_cv_path_SED" >&6; }
5822
SED="$ac_cv_path_SED"
5825
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5826
$as_echo_n "checking whether ln -s works... " >&6; }
5828
if test "$LN_S" = "ln -s"; then
5829
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5830
$as_echo "yes" >&6; }
5832
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5833
$as_echo "no, using $LN_S" >&6; }
5838
# Needed for creating the archives in lib/ and the shared libraries.
5841
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5842
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5847
macro_version='2.4.2'
5848
macro_revision='1.3337'
5862
ltmain="$ac_aux_dir/ltmain.sh"
5864
# Backslashify metacharacters that are still active within
5865
# double-quoted strings.
5866
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5868
# Same as above, but do not quote variable references.
5869
double_quote_subst='s/\(["`\\]\)/\\\1/g'
5871
# Sed substitution to delay expansion of an escaped shell variable in a
5872
# double_quote_subst'ed string.
5873
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5875
# Sed substitution to delay expansion of an escaped single quote.
5876
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5878
# Sed substitution to avoid accidental globbing in evaled expressions
5879
no_glob_subst='s/\*/\\\*/g'
5881
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5882
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5883
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5885
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5886
$as_echo_n "checking how to print strings... " >&6; }
5887
# Test print first, because it will be a builtin if present.
5888
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5889
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5891
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5894
# Use this function as a fallback that always works.
5895
func_fallback_echo ()
5897
eval 'cat <<_LTECHO_EOF
5901
ECHO='func_fallback_echo'
5904
# func_echo_all arg...
5905
# Invoke $ECHO with all args, space-separated.
5912
printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5913
$as_echo "printf" >&6; } ;;
5914
print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5915
$as_echo "print -r" >&6; } ;;
5916
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5917
$as_echo "cat" >&6; } ;;
5933
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5934
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5935
if ${ac_cv_path_SED+:} false; then :
5936
$as_echo_n "(cached) " >&6
5938
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5939
for ac_i in 1 2 3 4 5 6 7; do
5940
ac_script="$ac_script$as_nl$ac_script"
5942
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5943
{ ac_script=; unset ac_script;}
5944
if test -z "$SED"; then
5945
ac_path_SED_found=false
5946
# Loop through the user's path and test for each of PROGNAME-LIST
5947
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951
test -z "$as_dir" && as_dir=.
5952
for ac_prog in sed gsed; do
5953
for ac_exec_ext in '' $ac_executable_extensions; do
5954
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5955
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5956
# Check for GNU ac_path_SED and select it if it is found.
5957
# Check for GNU $ac_path_SED
5958
case `"$ac_path_SED" --version 2>&1` in
5960
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5963
$as_echo_n 0123456789 >"conftest.in"
5966
cat "conftest.in" "conftest.in" >"conftest.tmp"
5967
mv "conftest.tmp" "conftest.in"
5968
cp "conftest.in" "conftest.nl"
5969
$as_echo '' >> "conftest.nl"
5970
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5971
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5972
as_fn_arith $ac_count + 1 && ac_count=$as_val
5973
if test $ac_count -gt ${ac_path_SED_max-0}; then
5974
# Best one so far, save it but keep looking for a better one
5975
ac_cv_path_SED="$ac_path_SED"
5976
ac_path_SED_max=$ac_count
5978
# 10*(2^10) chars as input seems more than enough
5979
test $ac_count -gt 10 && break
5981
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5984
$ac_path_SED_found && break 3
5989
if test -z "$ac_cv_path_SED"; then
5990
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5997
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5998
$as_echo "$ac_cv_path_SED" >&6; }
5999
SED="$ac_cv_path_SED"
6002
test -z "$SED" && SED=sed
6003
Xsed="$SED -e 1s/^X//"
6015
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6016
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6017
if ${ac_cv_path_GREP+:} false; then :
6018
$as_echo_n "(cached) " >&6
6020
if test -z "$GREP"; then
6021
ac_path_GREP_found=false
6022
# Loop through the user's path and test for each of PROGNAME-LIST
6023
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6027
test -z "$as_dir" && as_dir=.
6028
for ac_prog in grep ggrep; do
6029
for ac_exec_ext in '' $ac_executable_extensions; do
6030
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6031
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
6032
# Check for GNU ac_path_GREP and select it if it is found.
6033
# Check for GNU $ac_path_GREP
6034
case `"$ac_path_GREP" --version 2>&1` in
6036
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6039
$as_echo_n 0123456789 >"conftest.in"
6042
cat "conftest.in" "conftest.in" >"conftest.tmp"
6043
mv "conftest.tmp" "conftest.in"
6044
cp "conftest.in" "conftest.nl"
6045
$as_echo 'GREP' >> "conftest.nl"
6046
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6047
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6048
as_fn_arith $ac_count + 1 && ac_count=$as_val
6049
if test $ac_count -gt ${ac_path_GREP_max-0}; then
6050
# Best one so far, save it but keep looking for a better one
6051
ac_cv_path_GREP="$ac_path_GREP"
6052
ac_path_GREP_max=$ac_count
6054
# 10*(2^10) chars as input seems more than enough
6055
test $ac_count -gt 10 && break
6057
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6060
$ac_path_GREP_found && break 3
6065
if test -z "$ac_cv_path_GREP"; then
6066
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6069
ac_cv_path_GREP=$GREP
6073
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6074
$as_echo "$ac_cv_path_GREP" >&6; }
6075
GREP="$ac_cv_path_GREP"
6078
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6079
$as_echo_n "checking for egrep... " >&6; }
6080
if ${ac_cv_path_EGREP+:} false; then :
6081
$as_echo_n "(cached) " >&6
6083
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6084
then ac_cv_path_EGREP="$GREP -E"
6086
if test -z "$EGREP"; then
6087
ac_path_EGREP_found=false
6088
# Loop through the user's path and test for each of PROGNAME-LIST
6089
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6090
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6093
test -z "$as_dir" && as_dir=.
6094
for ac_prog in egrep; do
6095
for ac_exec_ext in '' $ac_executable_extensions; do
6096
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6097
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6098
# Check for GNU ac_path_EGREP and select it if it is found.
6099
# Check for GNU $ac_path_EGREP
6100
case `"$ac_path_EGREP" --version 2>&1` in
6102
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6105
$as_echo_n 0123456789 >"conftest.in"
6108
cat "conftest.in" "conftest.in" >"conftest.tmp"
6109
mv "conftest.tmp" "conftest.in"
6110
cp "conftest.in" "conftest.nl"
6111
$as_echo 'EGREP' >> "conftest.nl"
6112
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6113
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6114
as_fn_arith $ac_count + 1 && ac_count=$as_val
6115
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6116
# Best one so far, save it but keep looking for a better one
6117
ac_cv_path_EGREP="$ac_path_EGREP"
6118
ac_path_EGREP_max=$ac_count
6120
# 10*(2^10) chars as input seems more than enough
6121
test $ac_count -gt 10 && break
6123
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6126
$ac_path_EGREP_found && break 3
6131
if test -z "$ac_cv_path_EGREP"; then
6132
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6135
ac_cv_path_EGREP=$EGREP
6140
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6141
$as_echo "$ac_cv_path_EGREP" >&6; }
6142
EGREP="$ac_cv_path_EGREP"
6145
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6146
$as_echo_n "checking for fgrep... " >&6; }
6147
if ${ac_cv_path_FGREP+:} false; then :
6148
$as_echo_n "(cached) " >&6
6150
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6151
then ac_cv_path_FGREP="$GREP -F"
6153
if test -z "$FGREP"; then
6154
ac_path_FGREP_found=false
6155
# Loop through the user's path and test for each of PROGNAME-LIST
6156
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6157
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6160
test -z "$as_dir" && as_dir=.
6161
for ac_prog in fgrep; do
6162
for ac_exec_ext in '' $ac_executable_extensions; do
6163
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6164
{ test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6165
# Check for GNU ac_path_FGREP and select it if it is found.
6166
# Check for GNU $ac_path_FGREP
6167
case `"$ac_path_FGREP" --version 2>&1` in
6169
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6172
$as_echo_n 0123456789 >"conftest.in"
6175
cat "conftest.in" "conftest.in" >"conftest.tmp"
6176
mv "conftest.tmp" "conftest.in"
6177
cp "conftest.in" "conftest.nl"
6178
$as_echo 'FGREP' >> "conftest.nl"
6179
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6180
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6181
as_fn_arith $ac_count + 1 && ac_count=$as_val
6182
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6183
# Best one so far, save it but keep looking for a better one
6184
ac_cv_path_FGREP="$ac_path_FGREP"
6185
ac_path_FGREP_max=$ac_count
6187
# 10*(2^10) chars as input seems more than enough
6188
test $ac_count -gt 10 && break
6190
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6193
$ac_path_FGREP_found && break 3
6198
if test -z "$ac_cv_path_FGREP"; then
6199
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6202
ac_cv_path_FGREP=$FGREP
6207
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6208
$as_echo "$ac_cv_path_FGREP" >&6; }
6209
FGREP="$ac_cv_path_FGREP"
6212
test -z "$GREP" && GREP=grep
6232
# Check whether --with-gnu-ld was given.
6233
if test "${with_gnu_ld+set}" = set; then :
6234
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6240
if test "$GCC" = yes; then
6241
# Check if gcc -print-prog-name=ld gives a path.
6242
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6243
$as_echo_n "checking for ld used by $CC... " >&6; }
6246
# gcc leaves a trailing carriage return which upsets mingw
6247
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6249
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6252
# Accept absolute paths.
6254
re_direlt='/[^/][^/]*/\.\./'
6255
# Canonicalize the pathname of ld
6256
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6257
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6258
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6260
test -z "$LD" && LD="$ac_prog"
6263
# If it fails, then pretend we aren't using GCC.
6267
# If it is relative, then search for the first ld in PATH.
6271
elif test "$with_gnu_ld" = yes; then
6272
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6273
$as_echo_n "checking for GNU ld... " >&6; }
6275
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6276
$as_echo_n "checking for non-GNU ld... " >&6; }
6278
if ${lt_cv_path_LD+:} false; then :
6279
$as_echo_n "(cached) " >&6
6281
if test -z "$LD"; then
6282
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6283
for ac_dir in $PATH; do
6285
test -z "$ac_dir" && ac_dir=.
6286
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6287
lt_cv_path_LD="$ac_dir/$ac_prog"
6288
# Check to see if the program is GNU ld. I'd rather use --version,
6289
# but apparently some variants of GNU ld only accept -v.
6290
# Break only if it was the GNU/non-GNU ld that we prefer.
6291
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6292
*GNU* | *'with BFD'*)
6293
test "$with_gnu_ld" != no && break
6296
test "$with_gnu_ld" != yes && break
6303
lt_cv_path_LD="$LD" # Let the user override the test with a path.
6308
if test -n "$LD"; then
6309
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6310
$as_echo "$LD" >&6; }
6312
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6313
$as_echo "no" >&6; }
6315
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6316
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6317
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6318
if ${lt_cv_prog_gnu_ld+:} false; then :
6319
$as_echo_n "(cached) " >&6
6321
# I'd rather use --version here, but apparently some GNU lds only accept -v.
6322
case `$LD -v 2>&1 </dev/null` in
6323
*GNU* | *'with BFD'*)
6324
lt_cv_prog_gnu_ld=yes
6327
lt_cv_prog_gnu_ld=no
6331
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6332
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
6333
with_gnu_ld=$lt_cv_prog_gnu_ld
6343
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6344
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6345
if ${lt_cv_path_NM+:} false; then :
6346
$as_echo_n "(cached) " >&6
6348
if test -n "$NM"; then
6349
# Let the user override the test.
6352
lt_nm_to_check="${ac_tool_prefix}nm"
6353
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6354
lt_nm_to_check="$lt_nm_to_check nm"
6356
for lt_tmp_nm in $lt_nm_to_check; do
6357
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6358
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6360
test -z "$ac_dir" && ac_dir=.
6361
tmp_nm="$ac_dir/$lt_tmp_nm"
6362
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6363
# Check to see if the nm accepts a BSD-compat flag.
6364
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
6365
# nm: unknown option "B" ignored
6366
# Tru64's nm complains that /dev/null is an invalid object file
6367
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6368
*/dev/null* | *'Invalid file or object type'*)
6369
lt_cv_path_NM="$tmp_nm -B"
6373
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6375
lt_cv_path_NM="$tmp_nm -p"
6379
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6380
continue # so that we can try to find one that supports BSD flags
6389
: ${lt_cv_path_NM=no}
6392
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6393
$as_echo "$lt_cv_path_NM" >&6; }
6394
if test "$lt_cv_path_NM" != "no"; then
6397
# Didn't find any BSD compatible name lister, look for dumpbin.
6398
if test -n "$DUMPBIN"; then :
6399
# Let the user override the test.
6401
if test -n "$ac_tool_prefix"; then
6402
for ac_prog in dumpbin "link -dump"
6404
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6405
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6406
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6407
$as_echo_n "checking for $ac_word... " >&6; }
6408
if ${ac_cv_prog_DUMPBIN+:} false; then :
6409
$as_echo_n "(cached) " >&6
6411
if test -n "$DUMPBIN"; then
6412
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6414
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6418
test -z "$as_dir" && as_dir=.
6419
for ac_exec_ext in '' $ac_executable_extensions; do
6420
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6421
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6422
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6431
DUMPBIN=$ac_cv_prog_DUMPBIN
6432
if test -n "$DUMPBIN"; then
6433
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6434
$as_echo "$DUMPBIN" >&6; }
6436
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6437
$as_echo "no" >&6; }
6441
test -n "$DUMPBIN" && break
6444
if test -z "$DUMPBIN"; then
6445
ac_ct_DUMPBIN=$DUMPBIN
6446
for ac_prog in dumpbin "link -dump"
6448
# Extract the first word of "$ac_prog", so it can be a program name with args.
6449
set dummy $ac_prog; ac_word=$2
6450
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6451
$as_echo_n "checking for $ac_word... " >&6; }
6452
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6453
$as_echo_n "(cached) " >&6
6455
if test -n "$ac_ct_DUMPBIN"; then
6456
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6458
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462
test -z "$as_dir" && as_dir=.
6463
for ac_exec_ext in '' $ac_executable_extensions; do
6464
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6465
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6466
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6475
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6476
if test -n "$ac_ct_DUMPBIN"; then
6477
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6478
$as_echo "$ac_ct_DUMPBIN" >&6; }
6480
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6481
$as_echo "no" >&6; }
6485
test -n "$ac_ct_DUMPBIN" && break
6488
if test "x$ac_ct_DUMPBIN" = x; then
6491
case $cross_compiling:$ac_tool_warned in
6493
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6494
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6495
ac_tool_warned=yes ;;
6497
DUMPBIN=$ac_ct_DUMPBIN
6501
case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6503
DUMPBIN="$DUMPBIN -symbols"
6511
if test "$DUMPBIN" != ":"; then
6515
test -z "$NM" && NM=nm
6522
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6523
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6524
if ${lt_cv_nm_interface+:} false; then :
6525
$as_echo_n "(cached) " >&6
6527
lt_cv_nm_interface="BSD nm"
6528
echo "int some_variable = 0;" > conftest.$ac_ext
6529
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6530
(eval "$ac_compile" 2>conftest.err)
6531
cat conftest.err >&5
6532
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6533
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6534
cat conftest.err >&5
6535
(eval echo "\"\$as_me:$LINENO: output\"" >&5)
6536
cat conftest.out >&5
6537
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6538
lt_cv_nm_interface="MS dumpbin"
6542
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6543
$as_echo "$lt_cv_nm_interface" >&6; }
6545
# find the maximum length of command line arguments
6546
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6547
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6548
if ${lt_cv_sys_max_cmd_len+:} false; then :
6549
$as_echo_n "(cached) " >&6
6556
# On DJGPP, this test can blow up pretty badly due to problems in libc
6557
# (any single argument exceeding 2000 bytes causes a buffer overrun
6558
# during glob expansion). Even if it were fixed, the result of this
6559
# check would be larger than it should be.
6560
lt_cv_sys_max_cmd_len=12288; # 12K is about right
6564
# Under GNU Hurd, this test is not required because there is
6565
# no limit to the length of command line arguments.
6566
# Libtool will interpret -1 as no limit whatsoever
6567
lt_cv_sys_max_cmd_len=-1;
6570
cygwin* | mingw* | cegcc*)
6571
# On Win9x/ME, this test blows up -- it succeeds, but takes
6572
# about 5 minutes as the teststring grows exponentially.
6573
# Worse, since 9x/ME are not pre-emptively multitasking,
6574
# you end up with a "frozen" computer, even though with patience
6575
# the test eventually succeeds (with a max line length of 256k).
6576
# Instead, let's just punt: use the minimum linelength reported by
6577
# all of the supported platforms: 8192 (on NT/2K/XP).
6578
lt_cv_sys_max_cmd_len=8192;
6582
# On MiNT this can take a long time and run out of memory.
6583
lt_cv_sys_max_cmd_len=8192;
6587
# On AmigaOS with pdksh, this test takes hours, literally.
6588
# So we just punt and use a minimum line length of 8192.
6589
lt_cv_sys_max_cmd_len=8192;
6592
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6593
# This has been around since 386BSD, at least. Likely further.
6594
if test -x /sbin/sysctl; then
6595
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6596
elif test -x /usr/sbin/sysctl; then
6597
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6599
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6601
# And add a safety zone
6602
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6603
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6607
# We know the value 262144 and hardcode it with a safety zone (like BSD)
6608
lt_cv_sys_max_cmd_len=196608
6612
# The test takes a long time on OS/2.
6613
lt_cv_sys_max_cmd_len=8192
6617
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6618
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6619
# nice to cause kernel panics so lets avoid the loop below.
6620
# First set a reasonable default.
6621
lt_cv_sys_max_cmd_len=16384
6623
if test -x /sbin/sysconfig; then
6624
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6625
*1*) lt_cv_sys_max_cmd_len=-1 ;;
6630
lt_cv_sys_max_cmd_len=102400
6632
sysv5* | sco5v6* | sysv4.2uw2*)
6633
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6634
if test -n "$kargmax"; then
6635
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6637
lt_cv_sys_max_cmd_len=32768
6641
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6642
if test -n "$lt_cv_sys_max_cmd_len"; then
6643
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6644
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6646
# Make teststring a little bigger before we do anything with it.
6647
# a 1K string should be a reasonable start.
6648
for i in 1 2 3 4 5 6 7 8 ; do
6649
teststring=$teststring$teststring
6651
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6652
# If test is not a shell built-in, we'll probably end up computing a
6653
# maximum length that is only half of the actual maximum length, but
6655
while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6656
= "X$teststring$teststring"; } >/dev/null 2>&1 &&
6657
test $i != 17 # 1/2 MB should be enough
6660
teststring=$teststring$teststring
6662
# Only check the string length outside the loop.
6663
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6665
# Add a significant safety factor because C++ compilers can tack on
6666
# massive amounts of additional arguments before passing them to the
6667
# linker. It appears as though 1/2 is a usable value.
6668
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6675
if test -n $lt_cv_sys_max_cmd_len ; then
6676
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6677
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6679
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6680
$as_echo "none" >&6; }
6682
max_cmd_len=$lt_cv_sys_max_cmd_len
6693
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6694
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6695
# Try some XSI features
6698
test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6700
&& eval 'test $(( 1 + 1 )) -eq 2 \
6701
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6703
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6704
$as_echo "$xsi_shell" >&6; }
6707
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6708
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6710
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6712
&& lt_shell_append=yes
6713
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6714
$as_echo "$lt_shell_append" >&6; }
6717
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6727
# test EBCDIC or ASCII
6728
case `echo X|tr X '\101'` in
6729
A) # ASCII based system
6730
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6731
lt_SP2NL='tr \040 \012'
6732
lt_NL2SP='tr \015\012 \040\040'
6734
*) # EBCDIC based system
6735
lt_SP2NL='tr \100 \n'
6736
lt_NL2SP='tr \r\n \100\100'
6748
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6749
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6750
if ${lt_cv_to_host_file_cmd+:} false; then :
6751
$as_echo_n "(cached) " >&6
6756
*-*-mingw* ) # actually msys
6757
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6760
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6762
* ) # otherwise, assume *nix
6763
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6769
*-*-mingw* ) # actually msys
6770
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6773
lt_cv_to_host_file_cmd=func_convert_file_noop
6775
* ) # otherwise, assume *nix
6776
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6780
* ) # unhandled hosts (and "normal" native builds)
6781
lt_cv_to_host_file_cmd=func_convert_file_noop
6787
to_host_file_cmd=$lt_cv_to_host_file_cmd
6788
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6789
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
6795
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6796
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6797
if ${lt_cv_to_tool_file_cmd+:} false; then :
6798
$as_echo_n "(cached) " >&6
6800
#assume ordinary cross tools, or native build.
6801
lt_cv_to_tool_file_cmd=func_convert_file_noop
6805
*-*-mingw* ) # actually msys
6806
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6814
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6815
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6816
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6822
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6823
$as_echo_n "checking for $LD option to reload object files... " >&6; }
6824
if ${lt_cv_ld_reload_flag+:} false; then :
6825
$as_echo_n "(cached) " >&6
6827
lt_cv_ld_reload_flag='-r'
6829
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6830
$as_echo "$lt_cv_ld_reload_flag" >&6; }
6831
reload_flag=$lt_cv_ld_reload_flag
6832
case $reload_flag in
6834
*) reload_flag=" $reload_flag" ;;
6836
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6838
cygwin* | mingw* | pw32* | cegcc*)
6839
if test "$GCC" != yes; then
6844
if test "$GCC" = yes; then
6845
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6847
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6860
if test -n "$ac_tool_prefix"; then
6861
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6862
set dummy ${ac_tool_prefix}objdump; ac_word=$2
6863
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6864
$as_echo_n "checking for $ac_word... " >&6; }
6865
if ${ac_cv_prog_OBJDUMP+:} false; then :
6866
$as_echo_n "(cached) " >&6
6868
if test -n "$OBJDUMP"; then
6869
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6871
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875
test -z "$as_dir" && as_dir=.
6876
for ac_exec_ext in '' $ac_executable_extensions; do
6877
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6878
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6879
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6888
OBJDUMP=$ac_cv_prog_OBJDUMP
6889
if test -n "$OBJDUMP"; then
6890
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6891
$as_echo "$OBJDUMP" >&6; }
6893
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6894
$as_echo "no" >&6; }
6899
if test -z "$ac_cv_prog_OBJDUMP"; then
6900
ac_ct_OBJDUMP=$OBJDUMP
6901
# Extract the first word of "objdump", so it can be a program name with args.
6902
set dummy objdump; ac_word=$2
6903
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6904
$as_echo_n "checking for $ac_word... " >&6; }
6905
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6906
$as_echo_n "(cached) " >&6
6908
if test -n "$ac_ct_OBJDUMP"; then
6909
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6911
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915
test -z "$as_dir" && as_dir=.
6916
for ac_exec_ext in '' $ac_executable_extensions; do
6917
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6918
ac_cv_prog_ac_ct_OBJDUMP="objdump"
6919
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6928
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6929
if test -n "$ac_ct_OBJDUMP"; then
6930
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6931
$as_echo "$ac_ct_OBJDUMP" >&6; }
6933
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6934
$as_echo "no" >&6; }
6937
if test "x$ac_ct_OBJDUMP" = x; then
6940
case $cross_compiling:$ac_tool_warned in
6942
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6943
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6944
ac_tool_warned=yes ;;
6946
OBJDUMP=$ac_ct_OBJDUMP
6949
OBJDUMP="$ac_cv_prog_OBJDUMP"
6952
test -z "$OBJDUMP" && OBJDUMP=objdump
6962
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6963
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6964
if ${lt_cv_deplibs_check_method+:} false; then :
6965
$as_echo_n "(cached) " >&6
6967
lt_cv_file_magic_cmd='$MAGIC_CMD'
6968
lt_cv_file_magic_test_file=
6969
lt_cv_deplibs_check_method='unknown'
6970
# Need to set the preceding variable on all platforms that support
6971
# interlibrary dependencies.
6972
# 'none' -- dependencies not supported.
6973
# `unknown' -- same as none, but documents that we really don't know.
6974
# 'pass_all' -- all dependencies passed with no checks.
6975
# 'test_compile' -- check by making test program.
6976
# 'file_magic [[regex]]' -- check by looking for files in library path
6977
# which responds to the $file_magic_cmd with a given extended regex.
6978
# If you have `file' or equivalent on your system and you're not sure
6979
# whether `pass_all' will *always* work, you probably want this one.
6983
lt_cv_deplibs_check_method=pass_all
6987
lt_cv_deplibs_check_method=pass_all
6991
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6992
lt_cv_file_magic_cmd='/usr/bin/file -L'
6993
lt_cv_file_magic_test_file=/shlib/libc.so
6997
# func_win32_libid is a shell function defined in ltmain.sh
6998
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6999
lt_cv_file_magic_cmd='func_win32_libid'
7003
# Base MSYS/MinGW do not provide the 'file' command needed by
7004
# func_win32_libid shell function, so use a weaker test based on 'objdump',
7005
# unless we find 'file', for example because we are cross-compiling.
7006
# func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7007
if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7008
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7009
lt_cv_file_magic_cmd='func_win32_libid'
7011
# Keep this pattern in sync with the one in func_win32_libid.
7012
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7013
lt_cv_file_magic_cmd='$OBJDUMP -f'
7018
# use the weaker test based on 'objdump'. See mingw*.
7019
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7020
lt_cv_file_magic_cmd='$OBJDUMP -f'
7023
darwin* | rhapsody*)
7024
lt_cv_deplibs_check_method=pass_all
7027
freebsd* | dragonfly*)
7028
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7031
# Not sure whether the presence of OpenBSD here was a mistake.
7032
# Let's accept both of them until this is cleared up.
7033
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7034
lt_cv_file_magic_cmd=/usr/bin/file
7035
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7039
lt_cv_deplibs_check_method=pass_all
7044
lt_cv_deplibs_check_method=pass_all
7048
lt_cv_deplibs_check_method=pass_all
7051
hpux10.20* | hpux11*)
7052
lt_cv_file_magic_cmd=/usr/bin/file
7055
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7056
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7059
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7060
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7063
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7064
lt_cv_file_magic_test_file=/usr/lib/libc.sl
7070
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7071
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7074
irix5* | irix6* | nonstopux*)
7076
*-32|*"-32 ") libmagic=32-bit;;
7077
*-n32|*"-n32 ") libmagic=N32;;
7078
*-64|*"-64 ") libmagic=64-bit;;
7079
*) libmagic=never-match;;
7081
lt_cv_deplibs_check_method=pass_all
7084
# This must be glibc/ELF.
7085
linux* | k*bsd*-gnu | kopensolaris*-gnu)
7086
lt_cv_deplibs_check_method=pass_all
7090
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7091
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7093
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7098
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7099
lt_cv_file_magic_cmd=/usr/bin/file
7100
lt_cv_file_magic_test_file=/usr/lib/libnls.so
7104
lt_cv_deplibs_check_method=pass_all
7108
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7109
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7111
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7115
osf3* | osf4* | osf5*)
7116
lt_cv_deplibs_check_method=pass_all
7120
lt_cv_deplibs_check_method=pass_all
7124
lt_cv_deplibs_check_method=pass_all
7127
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7128
lt_cv_deplibs_check_method=pass_all
7132
case $host_vendor in
7134
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]'
7135
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7138
lt_cv_deplibs_check_method=pass_all
7141
lt_cv_file_magic_cmd='/bin/file'
7142
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7145
lt_cv_file_magic_cmd='/bin/file'
7146
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7147
lt_cv_file_magic_test_file=/lib/libc.so
7150
lt_cv_deplibs_check_method=pass_all
7153
lt_cv_deplibs_check_method=pass_all
7159
lt_cv_deplibs_check_method=pass_all
7164
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7165
$as_echo "$lt_cv_deplibs_check_method" >&6; }
7169
if test "$build" = "$host"; then
7172
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7175
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7181
file_magic_cmd=$lt_cv_file_magic_cmd
7182
deplibs_check_method=$lt_cv_deplibs_check_method
7183
test -z "$deplibs_check_method" && deplibs_check_method=unknown
7206
if test -n "$ac_tool_prefix"; then
7207
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7208
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7209
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7210
$as_echo_n "checking for $ac_word... " >&6; }
7211
if ${ac_cv_prog_DLLTOOL+:} false; then :
7212
$as_echo_n "(cached) " >&6
7214
if test -n "$DLLTOOL"; then
7215
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7217
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221
test -z "$as_dir" && as_dir=.
7222
for ac_exec_ext in '' $ac_executable_extensions; do
7223
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7224
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7225
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7234
DLLTOOL=$ac_cv_prog_DLLTOOL
7235
if test -n "$DLLTOOL"; then
7236
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7237
$as_echo "$DLLTOOL" >&6; }
7239
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7240
$as_echo "no" >&6; }
7245
if test -z "$ac_cv_prog_DLLTOOL"; then
7246
ac_ct_DLLTOOL=$DLLTOOL
7247
# Extract the first word of "dlltool", so it can be a program name with args.
7248
set dummy dlltool; ac_word=$2
7249
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7250
$as_echo_n "checking for $ac_word... " >&6; }
7251
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7252
$as_echo_n "(cached) " >&6
7254
if test -n "$ac_ct_DLLTOOL"; then
7255
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7257
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261
test -z "$as_dir" && as_dir=.
7262
for ac_exec_ext in '' $ac_executable_extensions; do
7263
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7264
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7265
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7274
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7275
if test -n "$ac_ct_DLLTOOL"; then
7276
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7277
$as_echo "$ac_ct_DLLTOOL" >&6; }
7279
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7280
$as_echo "no" >&6; }
7283
if test "x$ac_ct_DLLTOOL" = x; then
7286
case $cross_compiling:$ac_tool_warned in
7288
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7289
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7290
ac_tool_warned=yes ;;
7292
DLLTOOL=$ac_ct_DLLTOOL
7295
DLLTOOL="$ac_cv_prog_DLLTOOL"
7298
test -z "$DLLTOOL" && DLLTOOL=dlltool
7309
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7310
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7311
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7312
$as_echo_n "(cached) " >&6
7314
lt_cv_sharedlib_from_linklib_cmd='unknown'
7317
cygwin* | mingw* | pw32* | cegcc*)
7318
# two different shell functions defined in ltmain.sh
7319
# decide which to use based on capabilities of $DLLTOOL
7320
case `$DLLTOOL --help 2>&1` in
7321
*--identify-strict*)
7322
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7325
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7330
# fallback: assume linklib IS sharedlib
7331
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7336
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7337
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7338
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7339
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7348
if test -n "$ac_tool_prefix"; then
7351
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7352
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7353
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7354
$as_echo_n "checking for $ac_word... " >&6; }
7355
if ${ac_cv_prog_AR+:} false; then :
7356
$as_echo_n "(cached) " >&6
7358
if test -n "$AR"; then
7359
ac_cv_prog_AR="$AR" # Let the user override the test.
7361
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365
test -z "$as_dir" && as_dir=.
7366
for ac_exec_ext in '' $ac_executable_extensions; do
7367
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7368
ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7369
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7379
if test -n "$AR"; then
7380
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7381
$as_echo "$AR" >&6; }
7383
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7384
$as_echo "no" >&6; }
7388
test -n "$AR" && break
7391
if test -z "$AR"; then
7395
# Extract the first word of "$ac_prog", so it can be a program name with args.
7396
set dummy $ac_prog; ac_word=$2
7397
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7398
$as_echo_n "checking for $ac_word... " >&6; }
7399
if ${ac_cv_prog_ac_ct_AR+:} false; then :
7400
$as_echo_n "(cached) " >&6
7402
if test -n "$ac_ct_AR"; then
7403
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7405
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7409
test -z "$as_dir" && as_dir=.
7410
for ac_exec_ext in '' $ac_executable_extensions; do
7411
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7412
ac_cv_prog_ac_ct_AR="$ac_prog"
7413
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7422
ac_ct_AR=$ac_cv_prog_ac_ct_AR
7423
if test -n "$ac_ct_AR"; then
7424
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7425
$as_echo "$ac_ct_AR" >&6; }
7427
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7428
$as_echo "no" >&6; }
7432
test -n "$ac_ct_AR" && break
7435
if test "x$ac_ct_AR" = x; then
7438
case $cross_compiling:$ac_tool_warned in
7440
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7441
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7442
ac_tool_warned=yes ;;
7461
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7462
$as_echo_n "checking for archiver @FILE support... " >&6; }
7463
if ${lt_cv_ar_at_file+:} false; then :
7464
$as_echo_n "(cached) " >&6
7467
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7468
/* end confdefs.h. */
7478
if ac_fn_c_try_compile "$LINENO"; then :
7479
echo conftest.$ac_objext > conftest.lst
7480
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7481
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7482
(eval $lt_ar_try) 2>&5
7484
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7485
test $ac_status = 0; }
7486
if test "$ac_status" -eq 0; then
7487
# Ensure the archiver fails upon bogus file names.
7488
rm -f conftest.$ac_objext libconftest.a
7489
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7490
(eval $lt_ar_try) 2>&5
7492
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7493
test $ac_status = 0; }
7494
if test "$ac_status" -ne 0; then
7498
rm -f conftest.* libconftest.a
7501
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7504
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7505
$as_echo "$lt_cv_ar_at_file" >&6; }
7507
if test "x$lt_cv_ar_at_file" = xno; then
7510
archiver_list_spec=$lt_cv_ar_at_file
7519
if test -n "$ac_tool_prefix"; then
7520
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7521
set dummy ${ac_tool_prefix}strip; ac_word=$2
7522
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7523
$as_echo_n "checking for $ac_word... " >&6; }
7524
if ${ac_cv_prog_STRIP+:} false; then :
7525
$as_echo_n "(cached) " >&6
7527
if test -n "$STRIP"; then
7528
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7530
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7534
test -z "$as_dir" && as_dir=.
7535
for ac_exec_ext in '' $ac_executable_extensions; do
7536
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7537
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7538
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7547
STRIP=$ac_cv_prog_STRIP
7548
if test -n "$STRIP"; then
7549
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7550
$as_echo "$STRIP" >&6; }
7552
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7553
$as_echo "no" >&6; }
7558
if test -z "$ac_cv_prog_STRIP"; then
7560
# Extract the first word of "strip", so it can be a program name with args.
7561
set dummy strip; ac_word=$2
7562
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7563
$as_echo_n "checking for $ac_word... " >&6; }
7564
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7565
$as_echo_n "(cached) " >&6
7567
if test -n "$ac_ct_STRIP"; then
7568
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7570
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7574
test -z "$as_dir" && as_dir=.
7575
for ac_exec_ext in '' $ac_executable_extensions; do
7576
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7577
ac_cv_prog_ac_ct_STRIP="strip"
7578
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7587
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7588
if test -n "$ac_ct_STRIP"; then
7589
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7590
$as_echo "$ac_ct_STRIP" >&6; }
7592
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7593
$as_echo "no" >&6; }
7596
if test "x$ac_ct_STRIP" = x; then
7599
case $cross_compiling:$ac_tool_warned in
7601
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7602
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7603
ac_tool_warned=yes ;;
7608
STRIP="$ac_cv_prog_STRIP"
7611
test -z "$STRIP" && STRIP=:
7618
if test -n "$ac_tool_prefix"; then
7619
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7620
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7621
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7622
$as_echo_n "checking for $ac_word... " >&6; }
7623
if ${ac_cv_prog_RANLIB+:} false; then :
7624
$as_echo_n "(cached) " >&6
7626
if test -n "$RANLIB"; then
7627
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7629
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7633
test -z "$as_dir" && as_dir=.
7634
for ac_exec_ext in '' $ac_executable_extensions; do
7635
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7636
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7637
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7646
RANLIB=$ac_cv_prog_RANLIB
7647
if test -n "$RANLIB"; then
7648
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7649
$as_echo "$RANLIB" >&6; }
7651
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7652
$as_echo "no" >&6; }
7657
if test -z "$ac_cv_prog_RANLIB"; then
7658
ac_ct_RANLIB=$RANLIB
7659
# Extract the first word of "ranlib", so it can be a program name with args.
7660
set dummy ranlib; ac_word=$2
7661
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7662
$as_echo_n "checking for $ac_word... " >&6; }
7663
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7664
$as_echo_n "(cached) " >&6
7666
if test -n "$ac_ct_RANLIB"; then
7667
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7669
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673
test -z "$as_dir" && as_dir=.
7674
for ac_exec_ext in '' $ac_executable_extensions; do
7675
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7676
ac_cv_prog_ac_ct_RANLIB="ranlib"
7677
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7686
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7687
if test -n "$ac_ct_RANLIB"; then
7688
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7689
$as_echo "$ac_ct_RANLIB" >&6; }
7691
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7692
$as_echo "no" >&6; }
7695
if test "x$ac_ct_RANLIB" = x; then
7698
case $cross_compiling:$ac_tool_warned in
7700
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7701
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7702
ac_tool_warned=yes ;;
7704
RANLIB=$ac_ct_RANLIB
7707
RANLIB="$ac_cv_prog_RANLIB"
7710
test -z "$RANLIB" && RANLIB=:
7717
# Determine commands to create old-style static archives.
7718
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7719
old_postinstall_cmds='chmod 644 $oldlib'
7720
old_postuninstall_cmds=
7722
if test -n "$RANLIB"; then
7725
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7728
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7731
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7736
lock_old_archive_extraction=yes ;;
7738
lock_old_archive_extraction=no ;;
7779
# If no C compiler was specified, use CC.
7782
# If no C compiler flags were specified, use CFLAGS.
7783
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7785
# Allow CC to be a program name with arguments.
7789
# Check for command to grab the raw symbol name followed by C symbol from nm.
7790
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7791
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7792
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7793
$as_echo_n "(cached) " >&6
7796
# These are sane defaults that work on at least a few old systems.
7797
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7799
# Character class describing NM global symbol codes.
7800
symcode='[BCDEGRST]'
7802
# Regexp to match symbols that can be accessed directly from C.
7803
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7805
# Define system-specific variables.
7810
cygwin* | mingw* | pw32* | cegcc*)
7811
symcode='[ABCDGISTW]'
7814
if test "$host_cpu" = ia64; then
7815
symcode='[ABCDEGRST]'
7819
symcode='[BCDEGRST]'
7822
symcode='[BCDEGQRST]'
7833
sysv5* | sco5v6* | unixware* | OpenUNIX*)
7841
# If we're using GNU nm, then use its standard symbol codes.
7842
case `$NM -V 2>&1` in
7843
*GNU* | *'with BFD'*)
7844
symcode='[ABCDGIRSTW]' ;;
7847
# Transform an extracted symbol line into a proper C declaration.
7848
# Some systems (esp. on ia64) link data and code symbols differently,
7849
# so use this general approach.
7850
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7852
# Transform an extracted symbol line into symbol name and symbol address
7853
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7854
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
7856
# Handle CRLF in mingw tool chain
7860
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7864
# Try without a prefix underscore, then with it.
7865
for ac_symprfx in "" "_"; do
7867
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7868
symxfrm="\\1 $ac_symprfx\\2 \\2"
7870
# Write the raw and C identifiers.
7871
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7872
# Fake it for dumpbin and say T for any non-static function
7873
# and D for any global variable.
7874
# Also find C++ and __fastcall symbols from MSVC++,
7875
# which start with @ or ?.
7876
lt_cv_sys_global_symbol_pipe="$AWK '"\
7877
" {last_section=section; section=\$ 3};"\
7878
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7879
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7880
" \$ 0!~/External *\|/{next};"\
7881
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7882
" {if(hide[section]) next};"\
7883
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7884
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7885
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7886
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7887
" ' prfx=^$ac_symprfx"
7889
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7891
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7893
# Check to see that the pipe works correctly.
7897
cat > conftest.$ac_ext <<_LT_EOF
7902
void nm_test_func(void);
7903
void nm_test_func(void){}
7907
int main(){nm_test_var='a';nm_test_func();return(0);}
7910
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7911
(eval $ac_compile) 2>&5
7913
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7914
test $ac_status = 0; }; then
7915
# Now try to grab the symbols.
7917
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7918
(eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7920
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7921
test $ac_status = 0; } && test -s "$nlist"; then
7922
# Try sorting and uniquifying the output.
7923
if sort "$nlist" | uniq > "$nlist"T; then
7924
mv -f "$nlist"T "$nlist"
7929
# Make sure that we snagged all the symbols we need.
7930
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7931
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7932
cat <<_LT_EOF > conftest.$ac_ext
7933
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7934
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7935
/* DATA imports from DLLs on WIN32 con't be const, because runtime
7936
relocations are performed -- see ld's documentation on pseudo-relocs. */
7937
# define LT_DLSYM_CONST
7938
#elif defined(__osf__)
7939
/* This system does not cope well with relocations in const data. */
7940
# define LT_DLSYM_CONST
7942
# define LT_DLSYM_CONST const
7950
# Now generate the symbol file.
7951
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7953
cat <<_LT_EOF >> conftest.$ac_ext
7955
/* The mapping between symbol names and symbols. */
7956
LT_DLSYM_CONST struct {
7960
lt__PROGRAM__LTX_preloaded_symbols[] =
7962
{ "@PROGRAM@", (void *) 0 },
7964
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7965
cat <<\_LT_EOF >> conftest.$ac_ext
7969
/* This works around a problem in FreeBSD linker */
7970
#ifdef FREEBSD_WORKAROUND
7971
static const void *lt_preloaded_setup() {
7972
return lt__PROGRAM__LTX_preloaded_symbols;
7980
# Now try linking the two files.
7981
mv conftest.$ac_objext conftstm.$ac_objext
7982
lt_globsym_save_LIBS=$LIBS
7983
lt_globsym_save_CFLAGS=$CFLAGS
7984
LIBS="conftstm.$ac_objext"
7985
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7986
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7987
(eval $ac_link) 2>&5
7989
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7990
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7993
LIBS=$lt_globsym_save_LIBS
7994
CFLAGS=$lt_globsym_save_CFLAGS
7996
echo "cannot find nm_test_func in $nlist" >&5
7999
echo "cannot find nm_test_var in $nlist" >&5
8002
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8005
echo "$progname: failed program was:" >&5
8006
cat conftest.$ac_ext >&5
8008
rm -rf conftest* conftst*
8010
# Do not use the global_symbol_pipe unless it works.
8011
if test "$pipe_works" = yes; then
8014
lt_cv_sys_global_symbol_pipe=
8020
if test -z "$lt_cv_sys_global_symbol_pipe"; then
8021
lt_cv_sys_global_symbol_to_cdecl=
8023
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8024
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8025
$as_echo "failed" >&6; }
8027
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8028
$as_echo "ok" >&6; }
8031
# Response file support.
8032
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8033
nm_file_list_spec='@'
8034
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8035
nm_file_list_spec='@'
8064
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8065
$as_echo_n "checking for sysroot... " >&6; }
8067
# Check whether --with-sysroot was given.
8068
if test "${with_sysroot+set}" = set; then :
8069
withval=$with_sysroot;
8076
case ${with_sysroot} in #(
8078
if test "$GCC" = yes; then
8079
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8083
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8088
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8089
$as_echo "${with_sysroot}" >&6; }
8090
as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8094
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8095
$as_echo "${lt_sysroot:-no}" >&6; }
8101
# Check whether --enable-libtool-lock was given.
8102
if test "${enable_libtool_lock+set}" = set; then :
8103
enableval=$enable_libtool_lock;
8106
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8108
# Some flags need to be propagated to the compiler or linker for good
8112
# Find out which ABI we are using.
8113
echo 'int i;' > conftest.$ac_ext
8114
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8115
(eval $ac_compile) 2>&5
8117
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8118
test $ac_status = 0; }; then
8119
case `/usr/bin/file conftest.$ac_objext` in
8131
# Find out which ABI we are using.
8132
echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8133
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8134
(eval $ac_compile) 2>&5
8136
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8137
test $ac_status = 0; }; then
8138
if test "$lt_cv_prog_gnu_ld" = yes; then
8139
case `/usr/bin/file conftest.$ac_objext` in
8141
LD="${LD-ld} -melf32bsmip"
8144
LD="${LD-ld} -melf32bmipn32"
8147
LD="${LD-ld} -melf64bmip"
8151
case `/usr/bin/file conftest.$ac_objext` in
8167
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8168
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8169
# Find out which ABI we are using.
8170
echo 'int i;' > conftest.$ac_ext
8171
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8172
(eval $ac_compile) 2>&5
8174
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8175
test $ac_status = 0; }; then
8176
case `/usr/bin/file conftest.o` in
8179
x86_64-*kfreebsd*-gnu)
8180
LD="${LD-ld} -m elf_i386_fbsd"
8183
LD="${LD-ld} -m elf_i386"
8185
ppc64-*linux*|powerpc64-*linux*)
8186
LD="${LD-ld} -m elf32ppclinux"
8189
LD="${LD-ld} -m elf_s390"
8192
LD="${LD-ld} -m elf32_sparc"
8198
x86_64-*kfreebsd*-gnu)
8199
LD="${LD-ld} -m elf_x86_64_fbsd"
8202
LD="${LD-ld} -m elf_x86_64"
8204
ppc*-*linux*|powerpc*-*linux*)
8205
LD="${LD-ld} -m elf64ppc"
8207
s390*-*linux*|s390*-*tpf*)
8208
LD="${LD-ld} -m elf64_s390"
8211
LD="${LD-ld} -m elf64_sparc"
8221
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
8222
SAVE_CFLAGS="$CFLAGS"
8223
CFLAGS="$CFLAGS -belf"
8224
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8225
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8226
if ${lt_cv_cc_needs_belf+:} false; then :
8227
$as_echo_n "(cached) " >&6
8230
ac_cpp='$CPP $CPPFLAGS'
8231
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8232
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8233
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8235
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8236
/* end confdefs.h. */
8246
if ac_fn_c_try_link "$LINENO"; then :
8247
lt_cv_cc_needs_belf=yes
8249
lt_cv_cc_needs_belf=no
8251
rm -f core conftest.err conftest.$ac_objext \
8252
conftest$ac_exeext conftest.$ac_ext
8254
ac_cpp='$CPP $CPPFLAGS'
8255
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8256
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8257
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8260
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8261
$as_echo "$lt_cv_cc_needs_belf" >&6; }
8262
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8263
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8264
CFLAGS="$SAVE_CFLAGS"
8268
# Find out which ABI we are using.
8269
echo 'int i;' > conftest.$ac_ext
8270
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8271
(eval $ac_compile) 2>&5
8273
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8274
test $ac_status = 0; }; then
8275
case `/usr/bin/file conftest.o` in
8277
case $lt_cv_prog_gnu_ld in
8281
LD="${LD-ld} -m elf_x86_64"
8284
LD="${LD-ld} -m elf64_sparc"
8287
# GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8288
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8293
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8305
need_locks="$enable_libtool_lock"
8307
if test -n "$ac_tool_prefix"; then
8308
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8309
set dummy ${ac_tool_prefix}mt; ac_word=$2
8310
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8311
$as_echo_n "checking for $ac_word... " >&6; }
8312
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8313
$as_echo_n "(cached) " >&6
8315
if test -n "$MANIFEST_TOOL"; then
8316
ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8318
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8322
test -z "$as_dir" && as_dir=.
8323
for ac_exec_ext in '' $ac_executable_extensions; do
8324
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8325
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8326
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8335
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8336
if test -n "$MANIFEST_TOOL"; then
8337
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8338
$as_echo "$MANIFEST_TOOL" >&6; }
8340
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8341
$as_echo "no" >&6; }
8346
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8347
ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8348
# Extract the first word of "mt", so it can be a program name with args.
8349
set dummy mt; ac_word=$2
8350
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8351
$as_echo_n "checking for $ac_word... " >&6; }
8352
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8353
$as_echo_n "(cached) " >&6
8355
if test -n "$ac_ct_MANIFEST_TOOL"; then
8356
ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8358
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8362
test -z "$as_dir" && as_dir=.
8363
for ac_exec_ext in '' $ac_executable_extensions; do
8364
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8365
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8366
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8375
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8376
if test -n "$ac_ct_MANIFEST_TOOL"; then
8377
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8378
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8380
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8381
$as_echo "no" >&6; }
8384
if test "x$ac_ct_MANIFEST_TOOL" = x; then
8387
case $cross_compiling:$ac_tool_warned in
8389
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8390
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8391
ac_tool_warned=yes ;;
8393
MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8396
MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8399
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8400
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8401
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8402
if ${lt_cv_path_mainfest_tool+:} false; then :
8403
$as_echo_n "(cached) " >&6
8405
lt_cv_path_mainfest_tool=no
8406
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8407
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8408
cat conftest.err >&5
8409
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8410
lt_cv_path_mainfest_tool=yes
8414
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8415
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
8416
if test "x$lt_cv_path_mainfest_tool" != xyes; then
8426
rhapsody* | darwin*)
8427
if test -n "$ac_tool_prefix"; then
8428
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8429
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8430
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8431
$as_echo_n "checking for $ac_word... " >&6; }
8432
if ${ac_cv_prog_DSYMUTIL+:} false; then :
8433
$as_echo_n "(cached) " >&6
8435
if test -n "$DSYMUTIL"; then
8436
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8438
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8442
test -z "$as_dir" && as_dir=.
8443
for ac_exec_ext in '' $ac_executable_extensions; do
8444
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8445
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8446
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8455
DSYMUTIL=$ac_cv_prog_DSYMUTIL
8456
if test -n "$DSYMUTIL"; then
8457
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8458
$as_echo "$DSYMUTIL" >&6; }
8460
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8461
$as_echo "no" >&6; }
8466
if test -z "$ac_cv_prog_DSYMUTIL"; then
8467
ac_ct_DSYMUTIL=$DSYMUTIL
8468
# Extract the first word of "dsymutil", so it can be a program name with args.
8469
set dummy dsymutil; ac_word=$2
8470
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8471
$as_echo_n "checking for $ac_word... " >&6; }
8472
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8473
$as_echo_n "(cached) " >&6
8475
if test -n "$ac_ct_DSYMUTIL"; then
8476
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8478
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8482
test -z "$as_dir" && as_dir=.
8483
for ac_exec_ext in '' $ac_executable_extensions; do
8484
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8485
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8486
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8495
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8496
if test -n "$ac_ct_DSYMUTIL"; then
8497
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8498
$as_echo "$ac_ct_DSYMUTIL" >&6; }
8500
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8501
$as_echo "no" >&6; }
8504
if test "x$ac_ct_DSYMUTIL" = x; then
8507
case $cross_compiling:$ac_tool_warned in
8509
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8510
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8511
ac_tool_warned=yes ;;
8513
DSYMUTIL=$ac_ct_DSYMUTIL
8516
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8519
if test -n "$ac_tool_prefix"; then
8520
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8521
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8522
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8523
$as_echo_n "checking for $ac_word... " >&6; }
8524
if ${ac_cv_prog_NMEDIT+:} false; then :
8525
$as_echo_n "(cached) " >&6
8527
if test -n "$NMEDIT"; then
8528
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8530
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8534
test -z "$as_dir" && as_dir=.
8535
for ac_exec_ext in '' $ac_executable_extensions; do
8536
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8537
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8538
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8547
NMEDIT=$ac_cv_prog_NMEDIT
8548
if test -n "$NMEDIT"; then
8549
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8550
$as_echo "$NMEDIT" >&6; }
8552
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8553
$as_echo "no" >&6; }
8558
if test -z "$ac_cv_prog_NMEDIT"; then
8559
ac_ct_NMEDIT=$NMEDIT
8560
# Extract the first word of "nmedit", so it can be a program name with args.
8561
set dummy nmedit; ac_word=$2
8562
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8563
$as_echo_n "checking for $ac_word... " >&6; }
8564
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8565
$as_echo_n "(cached) " >&6
8567
if test -n "$ac_ct_NMEDIT"; then
8568
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8570
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8574
test -z "$as_dir" && as_dir=.
8575
for ac_exec_ext in '' $ac_executable_extensions; do
8576
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8577
ac_cv_prog_ac_ct_NMEDIT="nmedit"
8578
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8587
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8588
if test -n "$ac_ct_NMEDIT"; then
8589
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8590
$as_echo "$ac_ct_NMEDIT" >&6; }
8592
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8593
$as_echo "no" >&6; }
8596
if test "x$ac_ct_NMEDIT" = x; then
8599
case $cross_compiling:$ac_tool_warned in
8601
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8602
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8603
ac_tool_warned=yes ;;
8605
NMEDIT=$ac_ct_NMEDIT
8608
NMEDIT="$ac_cv_prog_NMEDIT"
8611
if test -n "$ac_tool_prefix"; then
8612
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8613
set dummy ${ac_tool_prefix}lipo; ac_word=$2
8614
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8615
$as_echo_n "checking for $ac_word... " >&6; }
8616
if ${ac_cv_prog_LIPO+:} false; then :
8617
$as_echo_n "(cached) " >&6
8619
if test -n "$LIPO"; then
8620
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8622
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8626
test -z "$as_dir" && as_dir=.
8627
for ac_exec_ext in '' $ac_executable_extensions; do
8628
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8629
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8630
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8639
LIPO=$ac_cv_prog_LIPO
8640
if test -n "$LIPO"; then
8641
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8642
$as_echo "$LIPO" >&6; }
8644
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8645
$as_echo "no" >&6; }
8650
if test -z "$ac_cv_prog_LIPO"; then
8652
# Extract the first word of "lipo", so it can be a program name with args.
8653
set dummy lipo; ac_word=$2
8654
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8655
$as_echo_n "checking for $ac_word... " >&6; }
8656
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8657
$as_echo_n "(cached) " >&6
8659
if test -n "$ac_ct_LIPO"; then
8660
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8662
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8666
test -z "$as_dir" && as_dir=.
8667
for ac_exec_ext in '' $ac_executable_extensions; do
8668
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8669
ac_cv_prog_ac_ct_LIPO="lipo"
8670
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8679
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8680
if test -n "$ac_ct_LIPO"; then
8681
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8682
$as_echo "$ac_ct_LIPO" >&6; }
8684
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8685
$as_echo "no" >&6; }
8688
if test "x$ac_ct_LIPO" = x; then
8691
case $cross_compiling:$ac_tool_warned in
8693
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8694
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8695
ac_tool_warned=yes ;;
8700
LIPO="$ac_cv_prog_LIPO"
8703
if test -n "$ac_tool_prefix"; then
8704
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8705
set dummy ${ac_tool_prefix}otool; ac_word=$2
8706
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8707
$as_echo_n "checking for $ac_word... " >&6; }
8708
if ${ac_cv_prog_OTOOL+:} false; then :
8709
$as_echo_n "(cached) " >&6
8711
if test -n "$OTOOL"; then
8712
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8714
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8718
test -z "$as_dir" && as_dir=.
8719
for ac_exec_ext in '' $ac_executable_extensions; do
8720
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8721
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8722
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8731
OTOOL=$ac_cv_prog_OTOOL
8732
if test -n "$OTOOL"; then
8733
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8734
$as_echo "$OTOOL" >&6; }
8736
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8737
$as_echo "no" >&6; }
8742
if test -z "$ac_cv_prog_OTOOL"; then
8744
# Extract the first word of "otool", so it can be a program name with args.
8745
set dummy otool; ac_word=$2
8746
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8747
$as_echo_n "checking for $ac_word... " >&6; }
8748
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8749
$as_echo_n "(cached) " >&6
8751
if test -n "$ac_ct_OTOOL"; then
8752
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8754
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8758
test -z "$as_dir" && as_dir=.
8759
for ac_exec_ext in '' $ac_executable_extensions; do
8760
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8761
ac_cv_prog_ac_ct_OTOOL="otool"
8762
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8771
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8772
if test -n "$ac_ct_OTOOL"; then
8773
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8774
$as_echo "$ac_ct_OTOOL" >&6; }
8776
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8777
$as_echo "no" >&6; }
8780
if test "x$ac_ct_OTOOL" = x; then
8783
case $cross_compiling:$ac_tool_warned in
8785
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8786
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8787
ac_tool_warned=yes ;;
8792
OTOOL="$ac_cv_prog_OTOOL"
8795
if test -n "$ac_tool_prefix"; then
8796
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8797
set dummy ${ac_tool_prefix}otool64; ac_word=$2
8798
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8799
$as_echo_n "checking for $ac_word... " >&6; }
8800
if ${ac_cv_prog_OTOOL64+:} false; then :
8801
$as_echo_n "(cached) " >&6
8803
if test -n "$OTOOL64"; then
8804
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8806
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8810
test -z "$as_dir" && as_dir=.
8811
for ac_exec_ext in '' $ac_executable_extensions; do
8812
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8813
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8814
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8823
OTOOL64=$ac_cv_prog_OTOOL64
8824
if test -n "$OTOOL64"; then
8825
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8826
$as_echo "$OTOOL64" >&6; }
8828
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8829
$as_echo "no" >&6; }
8834
if test -z "$ac_cv_prog_OTOOL64"; then
8835
ac_ct_OTOOL64=$OTOOL64
8836
# Extract the first word of "otool64", so it can be a program name with args.
8837
set dummy otool64; ac_word=$2
8838
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8839
$as_echo_n "checking for $ac_word... " >&6; }
8840
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8841
$as_echo_n "(cached) " >&6
8843
if test -n "$ac_ct_OTOOL64"; then
8844
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8846
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8850
test -z "$as_dir" && as_dir=.
8851
for ac_exec_ext in '' $ac_executable_extensions; do
8852
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8853
ac_cv_prog_ac_ct_OTOOL64="otool64"
8854
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8863
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8864
if test -n "$ac_ct_OTOOL64"; then
8865
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8866
$as_echo "$ac_ct_OTOOL64" >&6; }
8868
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8869
$as_echo "no" >&6; }
8872
if test "x$ac_ct_OTOOL64" = x; then
8875
case $cross_compiling:$ac_tool_warned in
8877
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8878
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8879
ac_tool_warned=yes ;;
8881
OTOOL64=$ac_ct_OTOOL64
8884
OTOOL64="$ac_cv_prog_OTOOL64"
8913
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8914
$as_echo_n "checking for -single_module linker flag... " >&6; }
8915
if ${lt_cv_apple_cc_single_mod+:} false; then :
8916
$as_echo_n "(cached) " >&6
8918
lt_cv_apple_cc_single_mod=no
8919
if test -z "${LT_MULTI_MODULE}"; then
8920
# By default we will add the -single_module flag. You can override
8921
# by either setting the environment variable LT_MULTI_MODULE
8922
# non-empty at configure time, or by adding -multi_module to the
8924
rm -rf libconftest.dylib*
8925
echo "int foo(void){return 1;}" > conftest.c
8926
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8927
-dynamiclib -Wl,-single_module conftest.c" >&5
8928
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8929
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8931
# If there is a non-empty error log, and "single_module"
8932
# appears in it, assume the flag caused a linker warning
8933
if test -s conftest.err && $GREP single_module conftest.err; then
8934
cat conftest.err >&5
8935
# Otherwise, if the output was created with a 0 exit code from
8936
# the compiler, it worked.
8937
elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8938
lt_cv_apple_cc_single_mod=yes
8940
cat conftest.err >&5
8942
rm -rf libconftest.dylib*
8946
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8947
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8949
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8950
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8951
if ${lt_cv_ld_exported_symbols_list+:} false; then :
8952
$as_echo_n "(cached) " >&6
8954
lt_cv_ld_exported_symbols_list=no
8955
save_LDFLAGS=$LDFLAGS
8956
echo "_main" > conftest.sym
8957
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8958
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8959
/* end confdefs.h. */
8969
if ac_fn_c_try_link "$LINENO"; then :
8970
lt_cv_ld_exported_symbols_list=yes
8972
lt_cv_ld_exported_symbols_list=no
8974
rm -f core conftest.err conftest.$ac_objext \
8975
conftest$ac_exeext conftest.$ac_ext
8976
LDFLAGS="$save_LDFLAGS"
8979
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8980
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8982
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8983
$as_echo_n "checking for -force_load linker flag... " >&6; }
8984
if ${lt_cv_ld_force_load+:} false; then :
8985
$as_echo_n "(cached) " >&6
8987
lt_cv_ld_force_load=no
8988
cat > conftest.c << _LT_EOF
8989
int forced_loaded() { return 2;}
8991
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8992
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8993
echo "$AR cru libconftest.a conftest.o" >&5
8994
$AR cru libconftest.a conftest.o 2>&5
8995
echo "$RANLIB libconftest.a" >&5
8996
$RANLIB libconftest.a 2>&5
8997
cat > conftest.c << _LT_EOF
8998
int main() { return 0;}
9000
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9001
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9003
if test -s conftest.err && $GREP force_load conftest.err; then
9004
cat conftest.err >&5
9005
elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
9006
lt_cv_ld_force_load=yes
9008
cat conftest.err >&5
9010
rm -f conftest.err libconftest.a conftest conftest.c
9011
rm -rf conftest.dSYM
9014
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9015
$as_echo "$lt_cv_ld_force_load" >&6; }
9017
rhapsody* | darwin1.[012])
9018
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9020
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9021
darwin*) # darwin 5.x on
9022
# if running on 10.5 or later, the deployment target defaults
9023
# to the OS version, if on x86, and 10.4, the deployment
9024
# target defaults to 10.4. Don't you love it?
9025
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9026
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9027
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9029
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9031
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9035
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9036
_lt_dar_single_mod='$single_module'
9038
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9039
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9041
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9043
if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9044
_lt_dsymutil='~$DSYMUTIL $lib || :'
9052
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9053
$as_echo_n "checking for ANSI C header files... " >&6; }
9054
if ${ac_cv_header_stdc+:} false; then :
9055
$as_echo_n "(cached) " >&6
9057
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9058
/* end confdefs.h. */
9072
if ac_fn_c_try_compile "$LINENO"; then :
9073
ac_cv_header_stdc=yes
9075
ac_cv_header_stdc=no
9077
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9079
if test $ac_cv_header_stdc = yes; then
9080
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9081
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9082
/* end confdefs.h. */
9086
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9087
$EGREP "memchr" >/dev/null 2>&1; then :
9090
ac_cv_header_stdc=no
9096
if test $ac_cv_header_stdc = yes; then
9097
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9098
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9099
/* end confdefs.h. */
9103
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9104
$EGREP "free" >/dev/null 2>&1; then :
9107
ac_cv_header_stdc=no
9113
if test $ac_cv_header_stdc = yes; then
9114
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9115
if test "$cross_compiling" = yes; then :
9118
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9119
/* end confdefs.h. */
9122
#if ((' ' & 0x0FF) == 0x020)
9123
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9124
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9126
# define ISLOWER(c) \
9127
(('a' <= (c) && (c) <= 'i') \
9128
|| ('j' <= (c) && (c) <= 'r') \
9129
|| ('s' <= (c) && (c) <= 'z'))
9130
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9133
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9138
for (i = 0; i < 256; i++)
9139
if (XOR (islower (i), ISLOWER (i))
9140
|| toupper (i) != TOUPPER (i))
9145
if ac_fn_c_try_run "$LINENO"; then :
9148
ac_cv_header_stdc=no
9150
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9151
conftest.$ac_objext conftest.beam conftest.$ac_ext
9156
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9157
$as_echo "$ac_cv_header_stdc" >&6; }
9158
if test $ac_cv_header_stdc = yes; then
9160
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
9164
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
9165
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9166
inttypes.h stdint.h unistd.h
9168
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9169
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9171
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9172
cat >>confdefs.h <<_ACEOF
9173
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9181
for ac_header in dlfcn.h
9183
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9185
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9186
cat >>confdefs.h <<_ACEOF
9187
#define HAVE_DLFCN_H 1
9197
func_stripname_cnf ()
9200
.*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9201
*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9203
} # func_stripname_cnf
9219
# Check whether --enable-shared was given.
9220
if test "${enable_shared+set}" = set; then :
9221
enableval=$enable_shared; p=${PACKAGE-default}
9223
yes) enable_shared=yes ;;
9224
no) enable_shared=no ;;
9227
# Look at the argument we got. We use all the common list separators.
9228
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9229
for pkg in $enableval; do
9231
if test "X$pkg" = "X$p"; then
9250
# Check whether --enable-static was given.
9251
if test "${enable_static+set}" = set; then :
9252
enableval=$enable_static; p=${PACKAGE-default}
9254
yes) enable_static=yes ;;
9255
no) enable_static=no ;;
9258
# Look at the argument we got. We use all the common list separators.
9259
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9260
for pkg in $enableval; do
9262
if test "X$pkg" = "X$p"; then
9282
# Check whether --with-pic was given.
9283
if test "${with_pic+set}" = set; then :
9284
withval=$with_pic; lt_p=${PACKAGE-default}
9286
yes|no) pic_mode=$withval ;;
9289
# Look at the argument we got. We use all the common list separators.
9290
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9291
for lt_pkg in $withval; do
9293
if test "X$lt_pkg" = "X$lt_p"; then
9305
test -z "$pic_mode" && pic_mode=default
9313
# Check whether --enable-fast-install was given.
9314
if test "${enable_fast_install+set}" = set; then :
9315
enableval=$enable_fast_install; p=${PACKAGE-default}
9317
yes) enable_fast_install=yes ;;
9318
no) enable_fast_install=no ;;
9320
enable_fast_install=no
9321
# Look at the argument we got. We use all the common list separators.
9322
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9323
for pkg in $enableval; do
9325
if test "X$pkg" = "X$p"; then
9326
enable_fast_install=yes
9333
enable_fast_install=yes
9346
# This can be used to rebuild libtool when needed
9347
LIBTOOL_DEPS="$ltmain"
9349
# Always use our own libtool.
9350
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9381
test -z "$LN_S" && LN_S="ln -s"
9396
if test -n "${ZSH_VERSION+set}" ; then
9397
setopt NO_GLOB_SUBST
9400
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9401
$as_echo_n "checking for objdir... " >&6; }
9402
if ${lt_cv_objdir+:} false; then :
9403
$as_echo_n "(cached) " >&6
9405
rm -f .libs 2>/dev/null
9406
mkdir .libs 2>/dev/null
9407
if test -d .libs; then
9410
# MS-DOS does not allow filenames that begin with a dot.
9413
rmdir .libs 2>/dev/null
9415
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9416
$as_echo "$lt_cv_objdir" >&6; }
9417
objdir=$lt_cv_objdir
9423
cat >>confdefs.h <<_ACEOF
9424
#define LT_OBJDIR "$lt_cv_objdir/"
9432
# AIX sometimes has problems with the GCC collect2 program. For some
9433
# reason, if we set the COLLECT_NAMES environment variable, the problems
9434
# vanish in a puff of smoke.
9435
if test "X${COLLECT_NAMES+set}" != Xset; then
9437
export COLLECT_NAMES
9444
can_build_shared=yes
9446
# All known linkers require a `.a' archive for static linking (except MSVC,
9447
# which needs '.lib').
9450
with_gnu_ld="$lt_cv_prog_gnu_ld"
9453
old_CFLAGS="$CFLAGS"
9455
# Set sane defaults for various variables
9456
test -z "$CC" && CC=cc
9457
test -z "$LTCC" && LTCC=$CC
9458
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9459
test -z "$LD" && LD=ld
9460
test -z "$ac_objext" && ac_objext=o
9462
for cc_temp in $compiler""; do
9464
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9465
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9470
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9473
# Only perform the check for file, if the check method requires it
9474
test -z "$MAGIC_CMD" && MAGIC_CMD=file
9475
case $deplibs_check_method in
9477
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9478
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9479
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9480
if ${lt_cv_path_MAGIC_CMD+:} false; then :
9481
$as_echo_n "(cached) " >&6
9485
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9488
lt_save_MAGIC_CMD="$MAGIC_CMD"
9489
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9490
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9491
for ac_dir in $ac_dummy; do
9493
test -z "$ac_dir" && ac_dir=.
9494
if test -f $ac_dir/${ac_tool_prefix}file; then
9495
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9496
if test -n "$file_magic_test_file"; then
9497
case $deplibs_check_method in
9499
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9500
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9501
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9502
$EGREP "$file_magic_regex" > /dev/null; then
9507
*** Warning: the command libtool uses to detect shared libraries,
9508
*** $file_magic_cmd, produces output that libtool cannot recognize.
9509
*** The result is that libtool may fail to recognize shared libraries
9510
*** as such. This will affect the creation of libtool libraries that
9511
*** depend on shared libraries, but programs linked with such libtool
9512
*** libraries will work regardless of this problem. Nevertheless, you
9513
*** may want to report the problem to your system manager and/or to
9514
*** bug-libtool@gnu.org
9524
MAGIC_CMD="$lt_save_MAGIC_CMD"
9529
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9530
if test -n "$MAGIC_CMD"; then
9531
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9532
$as_echo "$MAGIC_CMD" >&6; }
9534
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9535
$as_echo "no" >&6; }
9542
if test -z "$lt_cv_path_MAGIC_CMD"; then
9543
if test -n "$ac_tool_prefix"; then
9544
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9545
$as_echo_n "checking for file... " >&6; }
9546
if ${lt_cv_path_MAGIC_CMD+:} false; then :
9547
$as_echo_n "(cached) " >&6
9551
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9554
lt_save_MAGIC_CMD="$MAGIC_CMD"
9555
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9556
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9557
for ac_dir in $ac_dummy; do
9559
test -z "$ac_dir" && ac_dir=.
9560
if test -f $ac_dir/file; then
9561
lt_cv_path_MAGIC_CMD="$ac_dir/file"
9562
if test -n "$file_magic_test_file"; then
9563
case $deplibs_check_method in
9565
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9566
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9567
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9568
$EGREP "$file_magic_regex" > /dev/null; then
9573
*** Warning: the command libtool uses to detect shared libraries,
9574
*** $file_magic_cmd, produces output that libtool cannot recognize.
9575
*** The result is that libtool may fail to recognize shared libraries
9576
*** as such. This will affect the creation of libtool libraries that
9577
*** depend on shared libraries, but programs linked with such libtool
9578
*** libraries will work regardless of this problem. Nevertheless, you
9579
*** may want to report the problem to your system manager and/or to
9580
*** bug-libtool@gnu.org
9590
MAGIC_CMD="$lt_save_MAGIC_CMD"
9595
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9596
if test -n "$MAGIC_CMD"; then
9597
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9598
$as_echo "$MAGIC_CMD" >&6; }
9600
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9601
$as_echo "no" >&6; }
9614
# Use C for the default configuration in the libtool script
9618
ac_cpp='$CPP $CPPFLAGS'
9619
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9620
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9621
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9624
# Source file extension for C test sources.
9627
# Object file extension for compiled C test sources.
9631
# Code to be used in simple compile tests
9632
lt_simple_compile_test_code="int some_variable = 0;"
9634
# Code to be used in simple link tests
9635
lt_simple_link_test_code='int main(){return(0);}'
9643
# If no C compiler was specified, use CC.
9646
# If no C compiler flags were specified, use CFLAGS.
9647
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9649
# Allow CC to be a program name with arguments.
9652
# Save the default compiler, since it gets overwritten when the other
9653
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9654
compiler_DEFAULT=$CC
9656
# save warnings/boilerplate of simple test code
9657
ac_outfile=conftest.$ac_objext
9658
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9659
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9660
_lt_compiler_boilerplate=`cat conftest.err`
9663
ac_outfile=conftest.$ac_objext
9664
echo "$lt_simple_link_test_code" >conftest.$ac_ext
9665
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9666
_lt_linker_boilerplate=`cat conftest.err`
9671
## There is no encapsulation within the following macros, do not change
9672
## the running order or otherwise move them around unless you know exactly
9673
## what you are doing...
9674
if test -n "$compiler"; then
9676
lt_prog_compiler_no_builtin_flag=
9678
if test "$GCC" = yes; then
9679
case $cc_basename in
9681
lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9683
lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9686
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9687
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9688
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9689
$as_echo_n "(cached) " >&6
9691
lt_cv_prog_compiler_rtti_exceptions=no
9692
ac_outfile=conftest.$ac_objext
9693
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9694
lt_compiler_flag="-fno-rtti -fno-exceptions"
9695
# Insert the option either (1) after the last *FLAGS variable, or
9696
# (2) before a word containing "conftest.", or (3) at the end.
9697
# Note that $ac_compile itself does not contain backslashes and begins
9698
# with a dollar sign (not a hyphen), so the echo should work correctly.
9699
# The option is referenced via a variable to avoid confusing sed.
9700
lt_compile=`echo "$ac_compile" | $SED \
9701
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9702
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9703
-e 's:$: $lt_compiler_flag:'`
9704
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9705
(eval "$lt_compile" 2>conftest.err)
9707
cat conftest.err >&5
9708
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9709
if (exit $ac_status) && test -s "$ac_outfile"; then
9710
# The compiler can only warn and ignore the option if not recognized
9711
# So say no if there are warnings other than the usual output.
9712
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9713
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9714
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9715
lt_cv_prog_compiler_rtti_exceptions=yes
9721
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9722
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9724
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9725
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9737
lt_prog_compiler_wl=
9738
lt_prog_compiler_pic=
9739
lt_prog_compiler_static=
9742
if test "$GCC" = yes; then
9743
lt_prog_compiler_wl='-Wl,'
9744
lt_prog_compiler_static='-static'
9748
# All AIX code is PIC.
9749
if test "$host_cpu" = ia64; then
9750
# AIX 5 now supports IA64 processor
9751
lt_prog_compiler_static='-Bstatic'
9758
# see comment about AmigaOS4 .so support
9759
lt_prog_compiler_pic='-fPIC'
9762
# FIXME: we need at least 68020 code to build shared libraries, but
9763
# adding the `-m68020' flag to GCC prevents building anything better,
9765
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9770
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9771
# PIC is the default for these OSes.
9774
mingw* | cygwin* | pw32* | os2* | cegcc*)
9775
# This hack is so that the source file can tell whether it is being
9776
# built for inclusion in a dll (and should export symbols for example).
9777
# Although the cygwin gcc ignores -fPIC, still need this for old-style
9778
# (--disable-auto-import) libraries
9779
lt_prog_compiler_pic='-DDLL_EXPORT'
9782
darwin* | rhapsody*)
9783
# PIC is the default on this platform
9784
# Common symbols not allowed in MH_DYLIB files
9785
lt_prog_compiler_pic='-fno-common'
9789
# PIC is the default for Haiku.
9790
# The "-static" flag exists, but is broken.
9791
lt_prog_compiler_static=
9795
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9796
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9797
# sets the default TLS model and affects inlining.
9803
lt_prog_compiler_pic='-fPIC'
9809
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
9810
# Instead, we relocate shared libraries at runtime.
9814
# Just because we use GCC doesn't mean we suddenly get shared libraries
9815
# on systems that don't support them.
9816
lt_prog_compiler_can_build_shared=no
9821
# QNX uses GNU C++, but need to define -shared option too, otherwise
9823
lt_prog_compiler_pic='-fPIC -shared'
9827
if test -d /usr/nec; then
9828
lt_prog_compiler_pic=-Kconform_pic
9833
lt_prog_compiler_pic='-fPIC'
9837
case $cc_basename in
9838
nvcc*) # Cuda Compiler Driver 2.2
9839
lt_prog_compiler_wl='-Xlinker '
9840
if test -n "$lt_prog_compiler_pic"; then
9841
lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9846
# PORTME Check for flag to pass linker flags through the system compiler.
9849
lt_prog_compiler_wl='-Wl,'
9850
if test "$host_cpu" = ia64; then
9851
# AIX 5 now supports IA64 processor
9852
lt_prog_compiler_static='-Bstatic'
9854
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9858
mingw* | cygwin* | pw32* | os2* | cegcc*)
9859
# This hack is so that the source file can tell whether it is being
9860
# built for inclusion in a dll (and should export symbols for example).
9861
lt_prog_compiler_pic='-DDLL_EXPORT'
9864
hpux9* | hpux10* | hpux11*)
9865
lt_prog_compiler_wl='-Wl,'
9866
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9873
lt_prog_compiler_pic='+Z'
9876
# Is there a better lt_prog_compiler_static that works with the bundled CC?
9877
lt_prog_compiler_static='${wl}-a ${wl}archive'
9880
irix5* | irix6* | nonstopux*)
9881
lt_prog_compiler_wl='-Wl,'
9882
# PIC (with -KPIC) is the default.
9883
lt_prog_compiler_static='-non_shared'
9886
linux* | k*bsd*-gnu | kopensolaris*-gnu)
9887
case $cc_basename in
9888
# old Intel for x86_64 which still supported -KPIC.
9890
lt_prog_compiler_wl='-Wl,'
9891
lt_prog_compiler_pic='-KPIC'
9892
lt_prog_compiler_static='-static'
9894
# icc used to be incompatible with GCC.
9895
# ICC 10 doesn't accept -KPIC any more.
9897
lt_prog_compiler_wl='-Wl,'
9898
lt_prog_compiler_pic='-fPIC'
9899
lt_prog_compiler_static='-static'
9901
# Lahey Fortran 8.1.
9903
lt_prog_compiler_wl='-Wl,'
9904
lt_prog_compiler_pic='--shared'
9905
lt_prog_compiler_static='--static'
9908
# NAG Fortran compiler
9909
lt_prog_compiler_wl='-Wl,-Wl,,'
9910
lt_prog_compiler_pic='-PIC'
9911
lt_prog_compiler_static='-Bstatic'
9913
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9914
# Portland Group compilers (*not* the Pentium gcc compiler,
9915
# which looks to be a dead project)
9916
lt_prog_compiler_wl='-Wl,'
9917
lt_prog_compiler_pic='-fpic'
9918
lt_prog_compiler_static='-Bstatic'
9921
lt_prog_compiler_wl='-Wl,'
9922
# All Alpha code is PIC.
9923
lt_prog_compiler_static='-non_shared'
9925
xl* | bgxl* | bgf* | mpixl*)
9926
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9927
lt_prog_compiler_wl='-Wl,'
9928
lt_prog_compiler_pic='-qpic'
9929
lt_prog_compiler_static='-qstaticlink'
9932
case `$CC -V 2>&1 | sed 5q` in
9933
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9934
# Sun Fortran 8.3 passes all unrecognized flags to the linker
9935
lt_prog_compiler_pic='-KPIC'
9936
lt_prog_compiler_static='-Bstatic'
9937
lt_prog_compiler_wl=''
9939
*Sun\ F* | *Sun*Fortran*)
9940
lt_prog_compiler_pic='-KPIC'
9941
lt_prog_compiler_static='-Bstatic'
9942
lt_prog_compiler_wl='-Qoption ld '
9946
lt_prog_compiler_pic='-KPIC'
9947
lt_prog_compiler_static='-Bstatic'
9948
lt_prog_compiler_wl='-Wl,'
9950
*Intel*\ [CF]*Compiler*)
9951
lt_prog_compiler_wl='-Wl,'
9952
lt_prog_compiler_pic='-fPIC'
9953
lt_prog_compiler_static='-static'
9956
lt_prog_compiler_wl='-Wl,'
9957
lt_prog_compiler_pic='-fpic'
9958
lt_prog_compiler_static='-Bstatic'
9966
lt_prog_compiler_pic='-KPIC'
9967
lt_prog_compiler_static='-Bstatic'
9971
# QNX uses GNU C++, but need to define -shared option too, otherwise
9973
lt_prog_compiler_pic='-fPIC -shared'
9976
osf3* | osf4* | osf5*)
9977
lt_prog_compiler_wl='-Wl,'
9978
# All OSF/1 code is PIC.
9979
lt_prog_compiler_static='-non_shared'
9983
lt_prog_compiler_static='-non_shared'
9987
lt_prog_compiler_pic='-KPIC'
9988
lt_prog_compiler_static='-Bstatic'
9989
case $cc_basename in
9990
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9991
lt_prog_compiler_wl='-Qoption ld ';;
9993
lt_prog_compiler_wl='-Wl,';;
9998
lt_prog_compiler_wl='-Qoption ld '
9999
lt_prog_compiler_pic='-PIC'
10000
lt_prog_compiler_static='-Bstatic'
10003
sysv4 | sysv4.2uw2* | sysv4.3*)
10004
lt_prog_compiler_wl='-Wl,'
10005
lt_prog_compiler_pic='-KPIC'
10006
lt_prog_compiler_static='-Bstatic'
10010
if test -d /usr/nec ;then
10011
lt_prog_compiler_pic='-Kconform_pic'
10012
lt_prog_compiler_static='-Bstatic'
10016
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10017
lt_prog_compiler_wl='-Wl,'
10018
lt_prog_compiler_pic='-KPIC'
10019
lt_prog_compiler_static='-Bstatic'
10023
lt_prog_compiler_wl='-Wl,'
10024
lt_prog_compiler_can_build_shared=no
10028
lt_prog_compiler_pic='-pic'
10029
lt_prog_compiler_static='-Bstatic'
10033
lt_prog_compiler_can_build_shared=no
10039
# For platforms which do not support PIC, -DPIC is meaningless:
10041
lt_prog_compiler_pic=
10044
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10048
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10049
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10050
if ${lt_cv_prog_compiler_pic+:} false; then :
10051
$as_echo_n "(cached) " >&6
10053
lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10055
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10056
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
10057
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10060
# Check to make sure the PIC flag actually works.
10062
if test -n "$lt_prog_compiler_pic"; then
10063
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10064
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10065
if ${lt_cv_prog_compiler_pic_works+:} false; then :
10066
$as_echo_n "(cached) " >&6
10068
lt_cv_prog_compiler_pic_works=no
10069
ac_outfile=conftest.$ac_objext
10070
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10071
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10072
# Insert the option either (1) after the last *FLAGS variable, or
10073
# (2) before a word containing "conftest.", or (3) at the end.
10074
# Note that $ac_compile itself does not contain backslashes and begins
10075
# with a dollar sign (not a hyphen), so the echo should work correctly.
10076
# The option is referenced via a variable to avoid confusing sed.
10077
lt_compile=`echo "$ac_compile" | $SED \
10078
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10079
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10080
-e 's:$: $lt_compiler_flag:'`
10081
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10082
(eval "$lt_compile" 2>conftest.err)
10084
cat conftest.err >&5
10085
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10086
if (exit $ac_status) && test -s "$ac_outfile"; then
10087
# The compiler can only warn and ignore the option if not recognized
10088
# So say no if there are warnings other than the usual output.
10089
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10090
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10091
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10092
lt_cv_prog_compiler_pic_works=yes
10098
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10099
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10101
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10102
case $lt_prog_compiler_pic in
10104
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10107
lt_prog_compiler_pic=
10108
lt_prog_compiler_can_build_shared=no
10124
# Check to make sure the static flag actually works.
10126
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10127
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10128
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10129
if ${lt_cv_prog_compiler_static_works+:} false; then :
10130
$as_echo_n "(cached) " >&6
10132
lt_cv_prog_compiler_static_works=no
10133
save_LDFLAGS="$LDFLAGS"
10134
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10135
echo "$lt_simple_link_test_code" > conftest.$ac_ext
10136
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10137
# The linker can only warn and ignore the option if not recognized
10138
# So say no if there are warnings
10139
if test -s conftest.err; then
10140
# Append any errors to the config.log.
10141
cat conftest.err 1>&5
10142
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10143
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10144
if diff conftest.exp conftest.er2 >/dev/null; then
10145
lt_cv_prog_compiler_static_works=yes
10148
lt_cv_prog_compiler_static_works=yes
10152
LDFLAGS="$save_LDFLAGS"
10155
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10156
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10158
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10161
lt_prog_compiler_static=
10170
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10171
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10172
if ${lt_cv_prog_compiler_c_o+:} false; then :
10173
$as_echo_n "(cached) " >&6
10175
lt_cv_prog_compiler_c_o=no
10176
$RM -r conftest 2>/dev/null
10180
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10182
lt_compiler_flag="-o out/conftest2.$ac_objext"
10183
# Insert the option either (1) after the last *FLAGS variable, or
10184
# (2) before a word containing "conftest.", or (3) at the end.
10185
# Note that $ac_compile itself does not contain backslashes and begins
10186
# with a dollar sign (not a hyphen), so the echo should work correctly.
10187
lt_compile=`echo "$ac_compile" | $SED \
10188
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10189
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10190
-e 's:$: $lt_compiler_flag:'`
10191
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10192
(eval "$lt_compile" 2>out/conftest.err)
10194
cat out/conftest.err >&5
10195
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10196
if (exit $ac_status) && test -s out/conftest2.$ac_objext
10198
# The compiler can only warn and ignore the option if not recognized
10199
# So say no if there are warnings
10200
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10201
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10202
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10203
lt_cv_prog_compiler_c_o=yes
10208
# SGI C++ compiler will create directory out/ii_files/ for
10209
# template instantiation
10210
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10211
$RM out/* && rmdir out
10217
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10218
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10225
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10226
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10227
if ${lt_cv_prog_compiler_c_o+:} false; then :
10228
$as_echo_n "(cached) " >&6
10230
lt_cv_prog_compiler_c_o=no
10231
$RM -r conftest 2>/dev/null
10235
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10237
lt_compiler_flag="-o out/conftest2.$ac_objext"
10238
# Insert the option either (1) after the last *FLAGS variable, or
10239
# (2) before a word containing "conftest.", or (3) at the end.
10240
# Note that $ac_compile itself does not contain backslashes and begins
10241
# with a dollar sign (not a hyphen), so the echo should work correctly.
10242
lt_compile=`echo "$ac_compile" | $SED \
10243
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10244
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10245
-e 's:$: $lt_compiler_flag:'`
10246
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10247
(eval "$lt_compile" 2>out/conftest.err)
10249
cat out/conftest.err >&5
10250
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251
if (exit $ac_status) && test -s out/conftest2.$ac_objext
10253
# The compiler can only warn and ignore the option if not recognized
10254
# So say no if there are warnings
10255
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10256
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10257
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10258
lt_cv_prog_compiler_c_o=yes
10263
# SGI C++ compiler will create directory out/ii_files/ for
10264
# template instantiation
10265
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10266
$RM out/* && rmdir out
10272
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10273
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10278
hard_links="nottested"
10279
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10280
# do not overwrite the value of need_locks provided by the user
10281
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10282
$as_echo_n "checking if we can lock with hard links... " >&6; }
10285
ln conftest.a conftest.b 2>/dev/null && hard_links=no
10287
ln conftest.a conftest.b 2>&5 || hard_links=no
10288
ln conftest.a conftest.b 2>/dev/null && hard_links=no
10289
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10290
$as_echo "$hard_links" >&6; }
10291
if test "$hard_links" = no; then
10292
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10293
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10305
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10306
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10309
allow_undefined_flag=
10310
always_export_symbols=no
10312
archive_expsym_cmds=
10313
compiler_needs_object=no
10314
enable_shared_with_static_runtimes=no
10315
export_dynamic_flag_spec=
10316
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10317
hardcode_automatic=no
10319
hardcode_direct_absolute=no
10320
hardcode_libdir_flag_spec=
10321
hardcode_libdir_separator=
10322
hardcode_minus_L=no
10323
hardcode_shlibpath_var=unsupported
10325
link_all_deplibs=unknown
10327
module_expsym_cmds=
10328
old_archive_from_new_cmds=
10329
old_archive_from_expsyms_cmds=
10330
thread_safe_flag_spec=
10331
whole_archive_flag_spec=
10332
# include_expsyms should be a list of space-separated symbols to be *always*
10333
# included in the symbol list
10335
# exclude_expsyms can be an extended regexp of symbols to exclude
10336
# it will be wrapped by ` (' and `)$', so one must not match beginning or
10337
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10338
# as well as any symbol that contains `d'.
10339
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10340
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10341
# platforms (ab)use it in PIC code, but their linkers get confused if
10342
# the symbol is explicitly referenced. Since portable code cannot
10343
# rely on this symbol name, it's probably fine to never include it in
10344
# preloaded symbol tables.
10345
# Exclude shared library initialization/finalization symbols.
10346
extract_expsyms_cmds=
10349
cygwin* | mingw* | pw32* | cegcc*)
10350
# FIXME: the MSVC++ port hasn't been tested in a loooong time
10351
# When not using gcc, we currently assume that we are using
10352
# Microsoft Visual C++.
10353
if test "$GCC" != yes; then
10358
# we just hope/assume this is gcc and not c89 (= MSVC++)
10368
# On some targets, GNU ld is compatible enough with the native linker
10369
# that we're better off using the native interface for both.
10370
lt_use_gnu_ld_interface=no
10371
if test "$with_gnu_ld" = yes; then
10374
# The AIX port of GNU ld has always aspired to compatibility
10375
# with the native linker. However, as the warning in the GNU ld
10376
# block says, versions before 2.19.5* couldn't really create working
10377
# shared libraries, regardless of the interface used.
10378
case `$LD -v 2>&1` in
10379
*\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10380
*\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10381
*\ \(GNU\ Binutils\)\ [3-9]*) ;;
10383
lt_use_gnu_ld_interface=yes
10388
lt_use_gnu_ld_interface=yes
10393
if test "$lt_use_gnu_ld_interface" = yes; then
10394
# If archive_cmds runs LD, not CC, wlarc should be empty
10397
# Set some defaults for GNU ld with shared library support. These
10398
# are reset later if shared libraries are not supported. Putting them
10399
# here allows them to be overridden if necessary.
10400
runpath_var=LD_RUN_PATH
10401
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10402
export_dynamic_flag_spec='${wl}--export-dynamic'
10403
# ancient GNU ld didn't support --whole-archive et. al.
10404
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10405
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10407
whole_archive_flag_spec=
10409
supports_anon_versioning=no
10410
case `$LD -v 2>&1` in
10411
*GNU\ gold*) supports_anon_versioning=yes ;;
10412
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10413
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10414
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10415
*\ 2.11.*) ;; # other 2.11 versions
10416
*) supports_anon_versioning=yes ;;
10419
# See if GNU ld supports shared libraries.
10422
# On AIX/PPC, the GNU linker is very broken
10423
if test "$host_cpu" != ia64; then
10427
*** Warning: the GNU linker, at least up to release 2.19, is reported
10428
*** to be unable to reliably create shared libraries on AIX.
10429
*** Therefore, libtool is disabling shared libraries support. If you
10430
*** really care for shared libraries, you may want to install binutils
10431
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10432
*** You will then need to restart the configuration process.
10441
# see comment about AmigaOS4 .so support
10442
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10443
archive_expsym_cmds=''
10446
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)'
10447
hardcode_libdir_flag_spec='-L$libdir'
10448
hardcode_minus_L=yes
10454
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10455
allow_undefined_flag=unsupported
10456
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10457
# support --undefined. This deserves some investigation. FIXME
10458
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10464
cygwin* | mingw* | pw32* | cegcc*)
10465
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10466
# as there is no search path for DLLs.
10467
hardcode_libdir_flag_spec='-L$libdir'
10468
export_dynamic_flag_spec='${wl}--export-all-symbols'
10469
allow_undefined_flag=unsupported
10470
always_export_symbols=no
10471
enable_shared_with_static_runtimes=yes
10472
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10473
exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10475
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10476
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10477
# If the export-symbols file already is a .def file (1st line
10478
# is EXPORTS), use it as is; otherwise, prepend...
10479
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10480
cp $export_symbols $output_objdir/$soname.def;
10482
echo EXPORTS > $output_objdir/$soname.def;
10483
cat $export_symbols >> $output_objdir/$soname.def;
10485
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10492
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10493
link_all_deplibs=yes
10498
hardcode_shlibpath_var=no
10499
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10500
export_dynamic_flag_spec='${wl}-E'
10501
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10502
# Instead, shared libraries are loaded at an image base (0x10000000 by
10503
# default) and relocated if they conflict, which is a slow very memory
10504
# consuming and fragmenting process. To avoid this, we pick a random,
10505
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10506
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
10507
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10508
archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10511
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10513
if test "$host_os" = linux-dietlibc; then
10514
case $cc_basename in
10515
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10518
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10519
&& test "$tmp_diet" = no
10521
tmp_addflag=' $pic_flag'
10522
tmp_sharedflag='-shared'
10523
case $cc_basename,$host_cpu in
10524
pgcc*) # Portland Group C compiler
10525
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10526
tmp_addflag=' $pic_flag'
10528
pgf77* | pgf90* | pgf95* | pgfortran*)
10529
# Portland Group f77 and f90 compilers
10530
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10531
tmp_addflag=' $pic_flag -Mnomain' ;;
10532
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10533
tmp_addflag=' -i_dynamic' ;;
10534
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10535
tmp_addflag=' -i_dynamic -nofor_main' ;;
10536
ifc* | ifort*) # Intel Fortran compiler
10537
tmp_addflag=' -nofor_main' ;;
10538
lf95*) # Lahey Fortran 8.1
10539
whole_archive_flag_spec=
10540
tmp_sharedflag='--shared' ;;
10541
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10542
tmp_sharedflag='-qmkshrobj'
10544
nvcc*) # Cuda Compiler Driver 2.2
10545
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10546
compiler_needs_object=yes
10549
case `$CC -V 2>&1 | sed 5q` in
10550
*Sun\ C*) # Sun C 5.9
10551
whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10552
compiler_needs_object=yes
10553
tmp_sharedflag='-G' ;;
10554
*Sun\ F*) # Sun Fortran 8.3
10555
tmp_sharedflag='-G' ;;
10557
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10559
if test "x$supports_anon_versioning" = xyes; then
10560
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10561
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10562
echo "local: *; };" >> $output_objdir/$libname.ver~
10563
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10566
case $cc_basename in
10567
xlf* | bgf* | bgxlf* | mpixlf*)
10568
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10569
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10570
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10571
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10572
if test "x$supports_anon_versioning" = xyes; then
10573
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10574
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10575
echo "local: *; };" >> $output_objdir/$libname.ver~
10576
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10586
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10587
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10590
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10591
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10596
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10600
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
10601
*** create shared libraries on Solaris systems. Therefore, libtool
10602
*** is disabling shared libraries support. We urge you to upgrade GNU
10603
*** binutils to release 2.9.1 or newer. Another option is to modify
10604
*** your PATH or compiler configuration so that the native linker is
10605
*** used, and then restart.
10608
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10609
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10610
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10616
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10617
case `$LD -v 2>&1` in
10618
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10622
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10623
*** reliably create shared libraries on SCO systems. Therefore, libtool
10624
*** is disabling shared libraries support. We urge you to upgrade GNU
10625
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10626
*** your PATH or compiler configuration so that the native linker is
10627
*** used, and then restart.
10632
# For security reasons, it is highly recommended that you always
10633
# use absolute paths for naming shared libraries, and exclude the
10634
# DT_RUNPATH tag from executables and libraries. But doing so
10635
# requires that you compile everything twice, which is a pain.
10636
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10637
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10638
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10639
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10648
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10650
hardcode_direct=yes
10651
hardcode_shlibpath_var=no
10655
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10656
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10657
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10664
if test "$ld_shlibs" = no; then
10666
hardcode_libdir_flag_spec=
10667
export_dynamic_flag_spec=
10668
whole_archive_flag_spec=
10671
# PORTME fill in a description of your system's linker (not GNU ld)
10674
allow_undefined_flag=unsupported
10675
always_export_symbols=yes
10676
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'
10677
# Note: this linker hardcodes the directories in LIBPATH if there
10678
# are no directories specified by -L.
10679
hardcode_minus_L=yes
10680
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10681
# Neither direct hardcoding nor static linking is supported with a
10683
hardcode_direct=unsupported
10688
if test "$host_cpu" = ia64; then
10689
# On IA64, the linker does run time linking by default, so we don't
10690
# have to do anything special.
10691
aix_use_runtimelinking=no
10692
exp_sym_flag='-Bexport'
10695
# If we're using GNU nm, then we don't want the "-C" option.
10696
# -C means demangle to AIX nm, but means don't demangle with GNU nm
10697
# Also, AIX nm treats weak defined symbols like other global
10698
# defined symbols, whereas GNU nm marks them as "W".
10699
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10700
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10702
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'
10704
aix_use_runtimelinking=no
10706
# Test if we are trying to use run time linking or normal
10707
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
10708
# need to do runtime linking.
10709
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10710
for ld_flag in $LDFLAGS; do
10711
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10712
aix_use_runtimelinking=yes
10719
exp_sym_flag='-bexport'
10720
no_entry_flag='-bnoentry'
10723
# When large executables or shared objects are built, AIX ld can
10724
# have problems creating the table of contents. If linking a library
10725
# or program results in "error TOC overflow" add -mminimal-toc to
10726
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10727
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10730
hardcode_direct=yes
10731
hardcode_direct_absolute=yes
10732
hardcode_libdir_separator=':'
10733
link_all_deplibs=yes
10734
file_list_spec='${wl}-f,'
10736
if test "$GCC" = yes; then
10737
case $host_os in aix4.[012]|aix4.[012].*)
10738
# We only want to do this on AIX 4.2 and lower, the check
10739
# below for broken collect2 doesn't work under 4.3+
10740
collect2name=`${CC} -print-prog-name=collect2`
10741
if test -f "$collect2name" &&
10742
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10744
# We have reworked collect2
10747
# We have old collect2
10748
hardcode_direct=unsupported
10749
# It fails to find uninstalled libraries when the uninstalled
10750
# path is not listed in the libpath. Setting hardcode_minus_L
10751
# to unsupported forces relinking
10752
hardcode_minus_L=yes
10753
hardcode_libdir_flag_spec='-L$libdir'
10754
hardcode_libdir_separator=
10758
shared_flag='-shared'
10759
if test "$aix_use_runtimelinking" = yes; then
10760
shared_flag="$shared_flag "'${wl}-G'
10764
if test "$host_cpu" = ia64; then
10765
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10766
# chokes on -Wl,-G. The following line is correct:
10769
if test "$aix_use_runtimelinking" = yes; then
10770
shared_flag='${wl}-G'
10772
shared_flag='${wl}-bM:SRE'
10777
export_dynamic_flag_spec='${wl}-bexpall'
10778
# It seems that -bexpall does not export symbols beginning with
10779
# underscore (_), so it is better to generate a list of symbols to export.
10780
always_export_symbols=yes
10781
if test "$aix_use_runtimelinking" = yes; then
10782
# Warning - without using the other runtime loading flags (-brtl),
10783
# -berok will link without error, but may produce a broken library.
10784
allow_undefined_flag='-berok'
10785
# Determine the default libpath from the value encoded in an
10786
# empty executable.
10787
if test "${lt_cv_aix_libpath+set}" = set; then
10788
aix_libpath=$lt_cv_aix_libpath
10790
if ${lt_cv_aix_libpath_+:} false; then :
10791
$as_echo_n "(cached) " >&6
10793
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10794
/* end confdefs.h. */
10804
if ac_fn_c_try_link "$LINENO"; then :
10806
lt_aix_libpath_sed='
10807
/Import File Strings/,/^$/ {
10809
s/^0 *\([^ ]*\) *$/\1/
10813
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10814
# Check for a 64-bit object if we didn't find anything.
10815
if test -z "$lt_cv_aix_libpath_"; then
10816
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10819
rm -f core conftest.err conftest.$ac_objext \
10820
conftest$ac_exeext conftest.$ac_ext
10821
if test -z "$lt_cv_aix_libpath_"; then
10822
lt_cv_aix_libpath_="/usr/lib:/lib"
10827
aix_libpath=$lt_cv_aix_libpath_
10830
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10831
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10833
if test "$host_cpu" = ia64; then
10834
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10835
allow_undefined_flag="-z nodefs"
10836
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10838
# Determine the default libpath from the value encoded in an
10839
# empty executable.
10840
if test "${lt_cv_aix_libpath+set}" = set; then
10841
aix_libpath=$lt_cv_aix_libpath
10843
if ${lt_cv_aix_libpath_+:} false; then :
10844
$as_echo_n "(cached) " >&6
10846
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10847
/* end confdefs.h. */
10857
if ac_fn_c_try_link "$LINENO"; then :
10859
lt_aix_libpath_sed='
10860
/Import File Strings/,/^$/ {
10862
s/^0 *\([^ ]*\) *$/\1/
10866
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10867
# Check for a 64-bit object if we didn't find anything.
10868
if test -z "$lt_cv_aix_libpath_"; then
10869
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10872
rm -f core conftest.err conftest.$ac_objext \
10873
conftest$ac_exeext conftest.$ac_ext
10874
if test -z "$lt_cv_aix_libpath_"; then
10875
lt_cv_aix_libpath_="/usr/lib:/lib"
10880
aix_libpath=$lt_cv_aix_libpath_
10883
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10884
# Warning - without using the other run time loading flags,
10885
# -berok will link without error, but may produce a broken library.
10886
no_undefined_flag=' ${wl}-bernotok'
10887
allow_undefined_flag=' ${wl}-berok'
10888
if test "$with_gnu_ld" = yes; then
10889
# We only use this code for GNU lds that support --whole-archive.
10890
whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10892
# Exported symbols can be pulled into shared objects from archives
10893
whole_archive_flag_spec='$convenience'
10895
archive_cmds_need_lc=yes
10896
# This is similar to how AIX traditionally builds its shared libraries.
10897
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10905
# see comment about AmigaOS4 .so support
10906
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10907
archive_expsym_cmds=''
10910
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)'
10911
hardcode_libdir_flag_spec='-L$libdir'
10912
hardcode_minus_L=yes
10918
export_dynamic_flag_spec=-rdynamic
10921
cygwin* | mingw* | pw32* | cegcc*)
10922
# When not using gcc, we currently assume that we are using
10923
# Microsoft Visual C++.
10924
# hardcode_libdir_flag_spec is actually meaningless, as there is
10925
# no search path for DLLs.
10926
case $cc_basename in
10929
hardcode_libdir_flag_spec=' '
10930
allow_undefined_flag=unsupported
10931
always_export_symbols=yes
10933
# Tell ltmain to make .lib files, not .a files.
10935
# Tell ltmain to make .dll files, not .so files.
10937
# FIXME: Setting linknames here is a bad hack.
10938
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10939
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10940
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10942
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10944
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10946
# The linker will not automatically build a static lib if we build a DLL.
10947
# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10948
enable_shared_with_static_runtimes=yes
10949
exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10950
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10952
old_postinstall_cmds='chmod 644 $oldlib'
10953
postlink_cmds='lt_outputfile="@OUTPUT@"~
10954
lt_tool_outputfile="@TOOL_OUTPUT@"~
10955
case $lt_outputfile in
10958
lt_outputfile="$lt_outputfile.exe"
10959
lt_tool_outputfile="$lt_tool_outputfile.exe"
10962
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10963
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10964
$RM "$lt_outputfile.manifest";
10968
# Assume MSVC wrapper
10969
hardcode_libdir_flag_spec=' '
10970
allow_undefined_flag=unsupported
10971
# Tell ltmain to make .lib files, not .a files.
10973
# Tell ltmain to make .dll files, not .so files.
10975
# FIXME: Setting linknames here is a bad hack.
10976
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10977
# The linker will automatically build a .lib file if we build a DLL.
10978
old_archive_from_new_cmds='true'
10979
# FIXME: Should let the user specify the lib program.
10980
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10981
enable_shared_with_static_runtimes=yes
10986
darwin* | rhapsody*)
10989
archive_cmds_need_lc=no
10991
hardcode_automatic=yes
10992
hardcode_shlibpath_var=unsupported
10993
if test "$lt_cv_ld_force_load" = "yes"; then
10994
whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10997
whole_archive_flag_spec=''
10999
link_all_deplibs=yes
11000
allow_undefined_flag="$_lt_dar_allow_undefined"
11001
case $cc_basename in
11002
ifort*) _lt_dar_can_shared=yes ;;
11003
*) _lt_dar_can_shared=$GCC ;;
11005
if test "$_lt_dar_can_shared" = "yes"; then
11006
output_verbose_link_cmd=func_echo_all
11007
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11008
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11009
archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11010
module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11019
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11020
hardcode_libdir_flag_spec='-L$libdir'
11021
hardcode_shlibpath_var=no
11024
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11025
# support. Future versions do this automatically, but an explicit c++rt0.o
11026
# does not break anything, and helps significantly (at the cost of a little
11029
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11030
hardcode_libdir_flag_spec='-R$libdir'
11031
hardcode_direct=yes
11032
hardcode_shlibpath_var=no
11035
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
11037
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11038
hardcode_direct=yes
11039
hardcode_minus_L=yes
11040
hardcode_shlibpath_var=no
11043
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11044
freebsd* | dragonfly*)
11045
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11046
hardcode_libdir_flag_spec='-R$libdir'
11047
hardcode_direct=yes
11048
hardcode_shlibpath_var=no
11052
if test "$GCC" = yes; then
11053
archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11055
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'
11057
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11058
hardcode_libdir_separator=:
11059
hardcode_direct=yes
11061
# hardcode_minus_L: Not really in the search PATH,
11062
# but as the default location of the library.
11063
hardcode_minus_L=yes
11064
export_dynamic_flag_spec='${wl}-E'
11068
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11069
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11071
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11073
if test "$with_gnu_ld" = no; then
11074
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11075
hardcode_libdir_separator=:
11076
hardcode_direct=yes
11077
hardcode_direct_absolute=yes
11078
export_dynamic_flag_spec='${wl}-E'
11079
# hardcode_minus_L: Not really in the search PATH,
11080
# but as the default location of the library.
11081
hardcode_minus_L=yes
11086
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11089
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11092
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11095
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11101
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11104
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11108
# Older versions of the 11.00 compiler do not understand -b yet
11109
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11110
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11111
$as_echo_n "checking if $CC understands -b... " >&6; }
11112
if ${lt_cv_prog_compiler__b+:} false; then :
11113
$as_echo_n "(cached) " >&6
11115
lt_cv_prog_compiler__b=no
11116
save_LDFLAGS="$LDFLAGS"
11117
LDFLAGS="$LDFLAGS -b"
11118
echo "$lt_simple_link_test_code" > conftest.$ac_ext
11119
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11120
# The linker can only warn and ignore the option if not recognized
11121
# So say no if there are warnings
11122
if test -s conftest.err; then
11123
# Append any errors to the config.log.
11124
cat conftest.err 1>&5
11125
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11126
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11127
if diff conftest.exp conftest.er2 >/dev/null; then
11128
lt_cv_prog_compiler__b=yes
11131
lt_cv_prog_compiler__b=yes
11135
LDFLAGS="$save_LDFLAGS"
11138
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11139
$as_echo "$lt_cv_prog_compiler__b" >&6; }
11141
if test x"$lt_cv_prog_compiler__b" = xyes; then
11142
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11144
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11150
if test "$with_gnu_ld" = no; then
11151
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11152
hardcode_libdir_separator=:
11157
hardcode_shlibpath_var=no
11160
hardcode_direct=yes
11161
hardcode_direct_absolute=yes
11162
export_dynamic_flag_spec='${wl}-E'
11164
# hardcode_minus_L: Not really in the search PATH,
11165
# but as the default location of the library.
11166
hardcode_minus_L=yes
11172
irix5* | irix6* | nonstopux*)
11173
if test "$GCC" = yes; then
11174
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11175
# Try to use the -exported_symbol ld option, if it does not
11176
# work, assume that -exports_file does not work either and
11177
# implicitly export all symbols.
11178
# This should be the same for all languages, so no per-tag cache variable.
11179
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11180
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11181
if ${lt_cv_irix_exported_symbol+:} false; then :
11182
$as_echo_n "(cached) " >&6
11184
save_LDFLAGS="$LDFLAGS"
11185
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11186
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11187
/* end confdefs.h. */
11188
int foo (void) { return 0; }
11190
if ac_fn_c_try_link "$LINENO"; then :
11191
lt_cv_irix_exported_symbol=yes
11193
lt_cv_irix_exported_symbol=no
11195
rm -f core conftest.err conftest.$ac_objext \
11196
conftest$ac_exeext conftest.$ac_ext
11197
LDFLAGS="$save_LDFLAGS"
11199
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11200
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
11201
if test "$lt_cv_irix_exported_symbol" = yes; then
11202
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11205
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11206
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11208
archive_cmds_need_lc='no'
11209
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11210
hardcode_libdir_separator=:
11212
link_all_deplibs=yes
11216
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11217
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11219
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11221
hardcode_libdir_flag_spec='-R$libdir'
11222
hardcode_direct=yes
11223
hardcode_shlibpath_var=no
11227
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11228
hardcode_direct=yes
11229
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11230
hardcode_libdir_separator=:
11231
hardcode_shlibpath_var=no
11238
if test -f /usr/libexec/ld.so; then
11239
hardcode_direct=yes
11240
hardcode_shlibpath_var=no
11241
hardcode_direct_absolute=yes
11242
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11243
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11244
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11245
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11246
export_dynamic_flag_spec='${wl}-E'
11249
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11250
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11251
hardcode_libdir_flag_spec='-R$libdir'
11254
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11255
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11265
hardcode_libdir_flag_spec='-L$libdir'
11266
hardcode_minus_L=yes
11267
allow_undefined_flag=unsupported
11268
archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
11269
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11273
if test "$GCC" = yes; then
11274
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11275
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11277
allow_undefined_flag=' -expect_unresolved \*'
11278
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11280
archive_cmds_need_lc='no'
11281
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11282
hardcode_libdir_separator=:
11285
osf4* | osf5*) # as osf3* with the addition of -msym flag
11286
if test "$GCC" = yes; then
11287
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11288
archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11289
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11291
allow_undefined_flag=' -expect_unresolved \*'
11292
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11293
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
11294
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11296
# Both c and cxx compiler support -rpath directly
11297
hardcode_libdir_flag_spec='-rpath $libdir'
11299
archive_cmds_need_lc='no'
11300
hardcode_libdir_separator=:
11304
no_undefined_flag=' -z defs'
11305
if test "$GCC" = yes; then
11307
archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11308
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11309
$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11311
case `$CC -V 2>&1` in
11314
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11315
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11316
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11320
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11321
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11322
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11326
hardcode_libdir_flag_spec='-R$libdir'
11327
hardcode_shlibpath_var=no
11329
solaris2.[0-5] | solaris2.[0-5].*) ;;
11331
# The compiler driver will combine and reorder linker options,
11332
# but understands `-z linker_flag'. GCC discards it without `$wl',
11333
# but is careful enough not to reorder.
11334
# Supported since Solaris 2.6 (maybe 2.5.1?)
11335
if test "$GCC" = yes; then
11336
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11338
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11342
link_all_deplibs=yes
11346
if test "x$host_vendor" = xsequent; then
11347
# Use $CC to link under sequent, because it throws in some extra .o
11348
# files that make .init and .fini sections work.
11349
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11351
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11353
hardcode_libdir_flag_spec='-L$libdir'
11354
hardcode_direct=yes
11355
hardcode_minus_L=yes
11356
hardcode_shlibpath_var=no
11360
case $host_vendor in
11362
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11363
hardcode_direct=yes # is this really true???
11366
## LD is ld it makes a PLAMLIB
11367
## CC just makes a GrossModule.
11368
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11369
reload_cmds='$CC -r -o $output$reload_objs'
11373
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11374
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11377
runpath_var='LD_RUN_PATH'
11378
hardcode_shlibpath_var=no
11382
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11383
hardcode_shlibpath_var=no
11384
export_dynamic_flag_spec='-Bexport'
11388
if test -d /usr/nec; then
11389
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11390
hardcode_shlibpath_var=no
11391
runpath_var=LD_RUN_PATH
11392
hardcode_runpath_var=yes
11397
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11398
no_undefined_flag='${wl}-z,text'
11399
archive_cmds_need_lc=no
11400
hardcode_shlibpath_var=no
11401
runpath_var='LD_RUN_PATH'
11403
if test "$GCC" = yes; then
11404
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11405
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11407
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11408
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11412
sysv5* | sco3.2v5* | sco5v6*)
11413
# Note: We can NOT use -z defs as we might desire, because we do not
11414
# link with -lc, and that would cause any symbols used from libc to
11415
# always be unresolved, which means just about no library would
11416
# ever link correctly. If we're not using GNU ld we use -z text
11417
# though, which does catch some bad symbols but isn't as heavy-handed
11419
no_undefined_flag='${wl}-z,text'
11420
allow_undefined_flag='${wl}-z,nodefs'
11421
archive_cmds_need_lc=no
11422
hardcode_shlibpath_var=no
11423
hardcode_libdir_flag_spec='${wl}-R,$libdir'
11424
hardcode_libdir_separator=':'
11425
link_all_deplibs=yes
11426
export_dynamic_flag_spec='${wl}-Bexport'
11427
runpath_var='LD_RUN_PATH'
11429
if test "$GCC" = yes; then
11430
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11431
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11433
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11434
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11439
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11440
hardcode_libdir_flag_spec='-L$libdir'
11441
hardcode_shlibpath_var=no
11449
if test x$host_vendor = xsni; then
11451
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11452
export_dynamic_flag_spec='${wl}-Blargedynsym'
11458
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11459
$as_echo "$ld_shlibs" >&6; }
11460
test "$ld_shlibs" = no && can_build_shared=no
11462
with_gnu_ld=$with_gnu_ld
11479
# Do we need to explicitly link libc?
11481
case "x$archive_cmds_need_lc" in
11483
# Assume -lc should be added
11484
archive_cmds_need_lc=yes
11486
if test "$enable_shared" = yes && test "$GCC" = yes; then
11487
case $archive_cmds in
11489
# FIXME: we may have to deal with multi-command sequences.
11492
# Test whether the compiler implicitly links with -lc since on some
11493
# systems, -lgcc has to come before -lc. If gcc already passes -lc
11494
# to ld, don't add -lc before -lgcc.
11495
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11496
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11497
if ${lt_cv_archive_cmds_need_lc+:} false; then :
11498
$as_echo_n "(cached) " >&6
11501
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11503
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11504
(eval $ac_compile) 2>&5
11506
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11507
test $ac_status = 0; } 2>conftest.err; then
11510
libobjs=conftest.$ac_objext
11512
wl=$lt_prog_compiler_wl
11513
pic_flag=$lt_prog_compiler_pic
11519
lt_save_allow_undefined_flag=$allow_undefined_flag
11520
allow_undefined_flag=
11521
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11522
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11524
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11525
test $ac_status = 0; }
11527
lt_cv_archive_cmds_need_lc=no
11529
lt_cv_archive_cmds_need_lc=yes
11531
allow_undefined_flag=$lt_save_allow_undefined_flag
11533
cat conftest.err 1>&5
11538
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11539
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11540
archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11698
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11699
$as_echo_n "checking dynamic linker characteristics... " >&6; }
11701
if test "$GCC" = yes; then
11703
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11704
*) lt_awk_arg="/^libraries:/" ;;
11707
mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11708
*) lt_sed_strip_eq="s,=/,/,g" ;;
11710
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11711
case $lt_search_path_spec in
11713
# if the path contains ";" then we assume it to be the separator
11714
# otherwise default to the standard path separator (i.e. ":") - it is
11715
# assumed that no part of a normal pathname contains ";" but that should
11716
# okay in the real world where ";" in dirpaths is itself problematic.
11717
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11720
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11723
# Ok, now we have the path, separated by spaces, we can step through it
11724
# and add multilib dir if necessary.
11725
lt_tmp_lt_search_path_spec=
11726
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11727
for lt_sys_path in $lt_search_path_spec; do
11728
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11729
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11731
test -d "$lt_sys_path" && \
11732
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11735
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11736
BEGIN {RS=" "; FS="/|\n";} {
11739
for (lt_i = NF; lt_i > 0; lt_i--) {
11740
if ($lt_i != "" && $lt_i != ".") {
11741
if ($lt_i == "..") {
11744
if (lt_count == 0) {
11745
lt_foo="/" $lt_i lt_foo;
11752
if (lt_foo != "") { lt_freq[lt_foo]++; }
11753
if (lt_freq[lt_foo] == 1) { print lt_foo; }
11755
# AWK program above erroneously prepends '/' to C:/dos/paths
11758
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11759
$SED 's,/\([A-Za-z]:\),\1,g'` ;;
11761
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11763
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11765
library_names_spec=
11766
libname_spec='lib$name'
11770
postuninstall_cmds=
11774
shlibpath_overrides_runpath=unknown
11776
dynamic_linker="$host_os ld.so"
11777
sys_lib_dlsearch_path_spec="/lib /usr/lib"
11778
need_lib_prefix=unknown
11779
hardcode_into_libs=no
11781
# when you set need_version to no, make sure it does not cause -set_version
11782
# flags to be left without arguments
11783
need_version=unknown
11787
version_type=linux # correct to gnu/linux during the next big refactor
11788
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11789
shlibpath_var=LIBPATH
11791
# AIX 3 has no versioning support, so we append a major version to the name.
11792
soname_spec='${libname}${release}${shared_ext}$major'
11796
version_type=linux # correct to gnu/linux during the next big refactor
11799
hardcode_into_libs=yes
11800
if test "$host_cpu" = ia64; then
11801
# AIX 5 supports IA64
11802
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11803
shlibpath_var=LD_LIBRARY_PATH
11805
# With GCC up to 2.95.x, collect2 would create an import file
11806
# for dependence libraries. The import file would start with
11807
# the line `#! .'. This would cause the generated library to
11808
# depend on `.', always an invalid library. This was fixed in
11809
# development snapshots of GCC prior to 3.0.
11811
aix4 | aix4.[01] | aix4.[01].*)
11812
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11814
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11817
can_build_shared=no
11821
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11822
# soname into executable. Probably we can add versioning support to
11823
# collect2, so additional links can be useful in future.
11824
if test "$aix_use_runtimelinking" = yes; then
11825
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
11826
# instead of lib<name>.a to let people know that these are not
11827
# typical AIX shared libraries.
11828
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11830
# We preserve .a as extension for shared libraries through AIX4.2
11831
# and later when we are not doing run time linking.
11832
library_names_spec='${libname}${release}.a $libname.a'
11833
soname_spec='${libname}${release}${shared_ext}$major'
11835
shlibpath_var=LIBPATH
11842
# Since July 2007 AmigaOS4 officially supports .so libraries.
11843
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11844
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11847
library_names_spec='$libname.ixlibrary $libname.a'
11848
# Create ${libname}_ixlibrary.a entries in /sys/libs.
11849
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
11855
library_names_spec='${libname}${shared_ext}'
11856
dynamic_linker="$host_os ld.so"
11857
shlibpath_var=LIBRARY_PATH
11861
version_type=linux # correct to gnu/linux during the next big refactor
11863
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11864
soname_spec='${libname}${release}${shared_ext}$major'
11865
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11866
shlibpath_var=LD_LIBRARY_PATH
11867
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11868
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11869
# the default ld.so.conf also contains /usr/contrib/lib and
11870
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11871
# libtool to hard-code these into programs
11874
cygwin* | mingw* | pw32* | cegcc*)
11875
version_type=windows
11880
case $GCC,$cc_basename in
11883
library_names_spec='$libname.dll.a'
11884
# DLL is installed to $(libdir)/../bin by postinstall_cmds
11885
postinstall_cmds='base_file=`basename \${file}`~
11886
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11887
dldir=$destdir/`dirname \$dlpath`~
11888
test -d \$dldir || mkdir -p \$dldir~
11889
$install_prog $dir/$dlname \$dldir/$dlname~
11890
chmod a+x \$dldir/$dlname~
11891
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11892
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11894
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11895
dlpath=$dir/\$dldll~
11897
shlibpath_overrides_runpath=yes
11901
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
11902
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11904
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11907
# MinGW DLLs use traditional 'lib' prefix
11908
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11911
# pw32 DLLs use 'pw' prefix rather than 'lib'
11912
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11915
dynamic_linker='Win32 ld.exe'
11920
libname_spec='$name'
11921
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11922
library_names_spec='${libname}.dll.lib'
11926
sys_lib_search_path_spec=
11929
for lt_path in $LIB
11932
# Let DOS variable expansion print the short 8.3 style file name.
11933
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11934
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11937
# Convert to MSYS style.
11938
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11941
# Convert to unix form, then to dos form, then back to unix form
11942
# but this time dos style (no spaces!) so that the unix form looks
11943
# like /cygdrive/c/PROGRA~1:/cygdr...
11944
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11945
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11946
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11949
sys_lib_search_path_spec="$LIB"
11950
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11951
# It is most probably a Windows format PATH.
11952
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11954
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11956
# FIXME: find the short name or the path components, as spaces are
11957
# common. (e.g. "Program Files" -> "PROGRA~1")
11961
# DLL is installed to $(libdir)/../bin by postinstall_cmds
11962
postinstall_cmds='base_file=`basename \${file}`~
11963
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11964
dldir=$destdir/`dirname \$dlpath`~
11965
test -d \$dldir || mkdir -p \$dldir~
11966
$install_prog $dir/$dlname \$dldir/$dlname'
11967
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11968
dlpath=$dir/\$dldll~
11970
shlibpath_overrides_runpath=yes
11971
dynamic_linker='Win32 link.exe'
11975
# Assume MSVC wrapper
11976
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11977
dynamic_linker='Win32 ld.exe'
11980
# FIXME: first we should search . and the directory the executable is in
11984
darwin* | rhapsody*)
11985
dynamic_linker="$host_os dyld"
11986
version_type=darwin
11989
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11990
soname_spec='${libname}${release}${major}$shared_ext'
11991
shlibpath_overrides_runpath=yes
11992
shlibpath_var=DYLD_LIBRARY_PATH
11993
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11995
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11996
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12000
version_type=linux # correct to gnu/linux during the next big refactor
12003
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12004
soname_spec='${libname}${release}${shared_ext}$major'
12005
shlibpath_var=LD_LIBRARY_PATH
12008
freebsd* | dragonfly*)
12009
# DragonFly does not have aout. When/if they implement a new
12010
# versioning mechanism, adjust this.
12011
if test -x /usr/bin/objformat; then
12012
objformat=`/usr/bin/objformat`
12015
freebsd[23].*) objformat=aout ;;
12016
*) objformat=elf ;;
12019
version_type=freebsd-$objformat
12020
case $version_type in
12022
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12027
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12031
shlibpath_var=LD_LIBRARY_PATH
12034
shlibpath_overrides_runpath=yes
12036
freebsd3.[01]* | freebsdelf3.[01]*)
12037
shlibpath_overrides_runpath=yes
12038
hardcode_into_libs=yes
12040
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12041
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12042
shlibpath_overrides_runpath=no
12043
hardcode_into_libs=yes
12045
*) # from 4.6 on, and DragonFly
12046
shlibpath_overrides_runpath=yes
12047
hardcode_into_libs=yes
12053
version_type=linux # correct to gnu/linux during the next big refactor
12056
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12057
soname_spec='${libname}${release}${shared_ext}$major'
12058
shlibpath_var=LD_LIBRARY_PATH
12059
shlibpath_overrides_runpath=no
12060
hardcode_into_libs=yes
12064
version_type=linux # correct to gnu/linux during the next big refactor
12067
dynamic_linker="$host_os runtime_loader"
12068
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12069
soname_spec='${libname}${release}${shared_ext}$major'
12070
shlibpath_var=LIBRARY_PATH
12071
shlibpath_overrides_runpath=yes
12072
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12073
hardcode_into_libs=yes
12076
hpux9* | hpux10* | hpux11*)
12077
# Give a soname corresponding to the major version so that dld.sl refuses to
12078
# link against other versions.
12085
hardcode_into_libs=yes
12086
dynamic_linker="$host_os dld.so"
12087
shlibpath_var=LD_LIBRARY_PATH
12088
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12089
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12090
soname_spec='${libname}${release}${shared_ext}$major'
12091
if test "X$HPUX_IA64_MODE" = X32; then
12092
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12094
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12096
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12100
hardcode_into_libs=yes
12101
dynamic_linker="$host_os dld.sl"
12102
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12103
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12104
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12105
soname_spec='${libname}${release}${shared_ext}$major'
12106
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12107
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12111
dynamic_linker="$host_os dld.sl"
12112
shlibpath_var=SHLIB_PATH
12113
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12114
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12115
soname_spec='${libname}${release}${shared_ext}$major'
12118
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12119
postinstall_cmds='chmod 555 $lib'
12120
# or fails outright, so override atomically:
12121
install_override_mode=555
12125
version_type=linux # correct to gnu/linux during the next big refactor
12128
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12129
soname_spec='${libname}${release}${shared_ext}$major'
12130
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12131
shlibpath_var=LD_LIBRARY_PATH
12132
shlibpath_overrides_runpath=no
12133
hardcode_into_libs=yes
12136
irix5* | irix6* | nonstopux*)
12138
nonstopux*) version_type=nonstopux ;;
12140
if test "$lt_cv_prog_gnu_ld" = yes; then
12141
version_type=linux # correct to gnu/linux during the next big refactor
12148
soname_spec='${libname}${release}${shared_ext}$major'
12149
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12151
irix5* | nonstopux*)
12152
libsuff= shlibsuff=
12155
case $LD in # libtool.m4 will add one of these switches to LD
12156
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12157
libsuff= shlibsuff= libmagic=32-bit;;
12158
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12159
libsuff=32 shlibsuff=N32 libmagic=N32;;
12160
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12161
libsuff=64 shlibsuff=64 libmagic=64-bit;;
12162
*) libsuff= shlibsuff= libmagic=never-match;;
12166
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12167
shlibpath_overrides_runpath=no
12168
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12169
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12170
hardcode_into_libs=yes
12173
# No shared lib support for Linux oldld, aout, or coff.
12174
linux*oldld* | linux*aout* | linux*coff*)
12178
# This must be glibc/ELF.
12179
linux* | k*bsd*-gnu | kopensolaris*-gnu)
12180
version_type=linux # correct to gnu/linux during the next big refactor
12183
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12184
soname_spec='${libname}${release}${shared_ext}$major'
12185
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12186
shlibpath_var=LD_LIBRARY_PATH
12187
shlibpath_overrides_runpath=no
12189
# Some binutils ld are patched to set DT_RUNPATH
12190
if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12191
$as_echo_n "(cached) " >&6
12193
lt_cv_shlibpath_overrides_runpath=no
12194
save_LDFLAGS=$LDFLAGS
12195
save_libdir=$libdir
12196
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12197
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12198
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12199
/* end confdefs.h. */
12209
if ac_fn_c_try_link "$LINENO"; then :
12210
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12211
lt_cv_shlibpath_overrides_runpath=yes
12214
rm -f core conftest.err conftest.$ac_objext \
12215
conftest$ac_exeext conftest.$ac_ext
12216
LDFLAGS=$save_LDFLAGS
12217
libdir=$save_libdir
12221
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12223
# This implies no fast_install, which is unacceptable.
12224
# Some rework will be needed to allow for fast_install
12225
# before this can be enabled.
12226
hardcode_into_libs=yes
12228
# Add ABI-specific directories to the system library path.
12229
sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12231
# Append ld.so.conf contents to the search path
12232
if test -f /etc/ld.so.conf; then
12233
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12234
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12238
# We used to test for /lib/ld.so.1 and disable shared libraries on
12239
# powerpc, because MkLinux only supported shared libraries with the
12240
# GNU dynamic linker. Since this was broken with cross compilers,
12241
# most powerpc-linux boxes support dynamic linking these days and
12242
# people can always --disable-shared, the test was removed, and we
12243
# assume the GNU/Linux dynamic linker is in use.
12244
dynamic_linker='GNU/Linux ld.so'
12251
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12252
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12253
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12254
dynamic_linker='NetBSD (a.out) ld.so'
12256
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12257
soname_spec='${libname}${release}${shared_ext}$major'
12258
dynamic_linker='NetBSD ld.elf_so'
12260
shlibpath_var=LD_LIBRARY_PATH
12261
shlibpath_overrides_runpath=yes
12262
hardcode_into_libs=yes
12266
version_type=linux # correct to gnu/linux during the next big refactor
12267
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12268
shlibpath_var=LD_LIBRARY_PATH
12269
shlibpath_overrides_runpath=yes
12276
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12277
soname_spec='${libname}${release}${shared_ext}$major'
12278
shlibpath_var=LD_LIBRARY_PATH
12279
shlibpath_overrides_runpath=no
12280
hardcode_into_libs=yes
12281
dynamic_linker='ldqnx.so'
12286
sys_lib_dlsearch_path_spec="/usr/lib"
12288
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12290
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12291
*) need_version=no ;;
12293
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12294
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12295
shlibpath_var=LD_LIBRARY_PATH
12296
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12298
openbsd2.[89] | openbsd2.[89].*)
12299
shlibpath_overrides_runpath=no
12302
shlibpath_overrides_runpath=yes
12306
shlibpath_overrides_runpath=yes
12311
libname_spec='$name'
12314
library_names_spec='$libname${shared_ext} $libname.a'
12315
dynamic_linker='OS/2 ld.exe'
12316
shlibpath_var=LIBPATH
12319
osf3* | osf4* | osf5*)
12323
soname_spec='${libname}${release}${shared_ext}$major'
12324
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12325
shlibpath_var=LD_LIBRARY_PATH
12326
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12327
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12335
version_type=linux # correct to gnu/linux during the next big refactor
12338
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12339
soname_spec='${libname}${release}${shared_ext}$major'
12340
shlibpath_var=LD_LIBRARY_PATH
12341
shlibpath_overrides_runpath=yes
12342
hardcode_into_libs=yes
12343
# ldd complains unless libraries are executable
12344
postinstall_cmds='chmod +x $lib'
12349
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12350
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12351
shlibpath_var=LD_LIBRARY_PATH
12352
shlibpath_overrides_runpath=yes
12353
if test "$with_gnu_ld" = yes; then
12360
version_type=linux # correct to gnu/linux during the next big refactor
12361
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12362
soname_spec='${libname}${release}${shared_ext}$major'
12363
shlibpath_var=LD_LIBRARY_PATH
12364
case $host_vendor in
12366
shlibpath_overrides_runpath=no
12368
runpath_var=LD_RUN_PATH
12376
shlibpath_overrides_runpath=no
12377
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12383
if test -d /usr/nec ;then
12384
version_type=linux # correct to gnu/linux during the next big refactor
12385
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12386
soname_spec='$libname${shared_ext}.$major'
12387
shlibpath_var=LD_LIBRARY_PATH
12391
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12392
version_type=freebsd-elf
12395
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12396
soname_spec='${libname}${release}${shared_ext}$major'
12397
shlibpath_var=LD_LIBRARY_PATH
12398
shlibpath_overrides_runpath=yes
12399
hardcode_into_libs=yes
12400
if test "$with_gnu_ld" = yes; then
12401
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12403
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12406
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12410
sys_lib_dlsearch_path_spec='/usr/lib'
12414
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12415
version_type=linux # correct to gnu/linux during the next big refactor
12418
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12419
shlibpath_var=LD_LIBRARY_PATH
12420
shlibpath_overrides_runpath=no
12421
hardcode_into_libs=yes
12425
version_type=linux # correct to gnu/linux during the next big refactor
12426
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12427
soname_spec='${libname}${release}${shared_ext}$major'
12428
shlibpath_var=LD_LIBRARY_PATH
12435
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12436
$as_echo "$dynamic_linker" >&6; }
12437
test "$dynamic_linker" = no && can_build_shared=no
12439
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12440
if test "$GCC" = yes; then
12441
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12444
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12445
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12447
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12448
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12542
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12543
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12545
if test -n "$hardcode_libdir_flag_spec" ||
12546
test -n "$runpath_var" ||
12547
test "X$hardcode_automatic" = "Xyes" ; then
12549
# We can hardcode non-existent directories.
12550
if test "$hardcode_direct" != no &&
12551
# If the only mechanism to avoid hardcoding is shlibpath_var, we
12552
# have to relink, otherwise we might link with an installed library
12553
# when we should be linking with a yet-to-be-installed one
12554
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12555
test "$hardcode_minus_L" != no; then
12556
# Linking always hardcodes the temporary library directory.
12557
hardcode_action=relink
12559
# We can link without hardcoding, and we can hardcode nonexisting dirs.
12560
hardcode_action=immediate
12563
# We cannot hardcode anything, or else we can only hardcode existing
12565
hardcode_action=unsupported
12567
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12568
$as_echo "$hardcode_action" >&6; }
12570
if test "$hardcode_action" = relink ||
12571
test "$inherit_rpath" = yes; then
12572
# Fast installation is not supported
12573
enable_fast_install=no
12574
elif test "$shlibpath_overrides_runpath" = yes ||
12575
test "$enable_shared" = no; then
12576
# Fast installation is not necessary
12577
enable_fast_install=needless
12585
if test "x$enable_dlopen" != xyes; then
12586
enable_dlopen=unknown
12587
enable_dlopen_self=unknown
12588
enable_dlopen_self_static=unknown
12595
lt_cv_dlopen="load_add_on"
12597
lt_cv_dlopen_self=yes
12600
mingw* | pw32* | cegcc*)
12601
lt_cv_dlopen="LoadLibrary"
12606
lt_cv_dlopen="dlopen"
12611
# if libdl is installed we need to link against it
12612
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12613
$as_echo_n "checking for dlopen in -ldl... " >&6; }
12614
if ${ac_cv_lib_dl_dlopen+:} false; then :
12615
$as_echo_n "(cached) " >&6
12617
ac_check_lib_save_LIBS=$LIBS
12619
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12620
/* end confdefs.h. */
12622
/* Override any GCC internal prototype to avoid an error.
12623
Use char because int might match the return type of a GCC
12624
builtin and then its argument prototype would still apply. */
12637
if ac_fn_c_try_link "$LINENO"; then :
12638
ac_cv_lib_dl_dlopen=yes
12640
ac_cv_lib_dl_dlopen=no
12642
rm -f core conftest.err conftest.$ac_objext \
12643
conftest$ac_exeext conftest.$ac_ext
12644
LIBS=$ac_check_lib_save_LIBS
12646
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12647
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12648
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12649
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12652
lt_cv_dlopen="dyld"
12654
lt_cv_dlopen_self=yes
12661
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12662
if test "x$ac_cv_func_shl_load" = xyes; then :
12663
lt_cv_dlopen="shl_load"
12665
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12666
$as_echo_n "checking for shl_load in -ldld... " >&6; }
12667
if ${ac_cv_lib_dld_shl_load+:} false; then :
12668
$as_echo_n "(cached) " >&6
12670
ac_check_lib_save_LIBS=$LIBS
12672
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12673
/* end confdefs.h. */
12675
/* Override any GCC internal prototype to avoid an error.
12676
Use char because int might match the return type of a GCC
12677
builtin and then its argument prototype would still apply. */
12685
return shl_load ();
12690
if ac_fn_c_try_link "$LINENO"; then :
12691
ac_cv_lib_dld_shl_load=yes
12693
ac_cv_lib_dld_shl_load=no
12695
rm -f core conftest.err conftest.$ac_objext \
12696
conftest$ac_exeext conftest.$ac_ext
12697
LIBS=$ac_check_lib_save_LIBS
12699
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12700
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12701
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12702
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12704
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12705
if test "x$ac_cv_func_dlopen" = xyes; then :
12706
lt_cv_dlopen="dlopen"
12708
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12709
$as_echo_n "checking for dlopen in -ldl... " >&6; }
12710
if ${ac_cv_lib_dl_dlopen+:} false; then :
12711
$as_echo_n "(cached) " >&6
12713
ac_check_lib_save_LIBS=$LIBS
12715
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12716
/* end confdefs.h. */
12718
/* Override any GCC internal prototype to avoid an error.
12719
Use char because int might match the return type of a GCC
12720
builtin and then its argument prototype would still apply. */
12733
if ac_fn_c_try_link "$LINENO"; then :
12734
ac_cv_lib_dl_dlopen=yes
12736
ac_cv_lib_dl_dlopen=no
12738
rm -f core conftest.err conftest.$ac_objext \
12739
conftest$ac_exeext conftest.$ac_ext
12740
LIBS=$ac_check_lib_save_LIBS
12742
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12743
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12744
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12745
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12747
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12748
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
12749
if ${ac_cv_lib_svld_dlopen+:} false; then :
12750
$as_echo_n "(cached) " >&6
12752
ac_check_lib_save_LIBS=$LIBS
12753
LIBS="-lsvld $LIBS"
12754
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12755
/* end confdefs.h. */
12757
/* Override any GCC internal prototype to avoid an error.
12758
Use char because int might match the return type of a GCC
12759
builtin and then its argument prototype would still apply. */
12772
if ac_fn_c_try_link "$LINENO"; then :
12773
ac_cv_lib_svld_dlopen=yes
12775
ac_cv_lib_svld_dlopen=no
12777
rm -f core conftest.err conftest.$ac_objext \
12778
conftest$ac_exeext conftest.$ac_ext
12779
LIBS=$ac_check_lib_save_LIBS
12781
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12782
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12783
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12784
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12786
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12787
$as_echo_n "checking for dld_link in -ldld... " >&6; }
12788
if ${ac_cv_lib_dld_dld_link+:} false; then :
12789
$as_echo_n "(cached) " >&6
12791
ac_check_lib_save_LIBS=$LIBS
12793
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12794
/* end confdefs.h. */
12796
/* Override any GCC internal prototype to avoid an error.
12797
Use char because int might match the return type of a GCC
12798
builtin and then its argument prototype would still apply. */
12806
return dld_link ();
12811
if ac_fn_c_try_link "$LINENO"; then :
12812
ac_cv_lib_dld_dld_link=yes
12814
ac_cv_lib_dld_dld_link=no
12816
rm -f core conftest.err conftest.$ac_objext \
12817
conftest$ac_exeext conftest.$ac_ext
12818
LIBS=$ac_check_lib_save_LIBS
12820
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12821
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12822
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12823
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12844
if test "x$lt_cv_dlopen" != xno; then
12850
case $lt_cv_dlopen in
12852
save_CPPFLAGS="$CPPFLAGS"
12853
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12855
save_LDFLAGS="$LDFLAGS"
12856
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12859
LIBS="$lt_cv_dlopen_libs $LIBS"
12861
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12862
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12863
if ${lt_cv_dlopen_self+:} false; then :
12864
$as_echo_n "(cached) " >&6
12866
if test "$cross_compiling" = yes; then :
12867
lt_cv_dlopen_self=cross
12869
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12870
lt_status=$lt_dlunknown
12871
cat > conftest.$ac_ext <<_LT_EOF
12872
#line $LINENO "configure"
12873
#include "confdefs.h"
12882
# define LT_DLGLOBAL RTLD_GLOBAL
12885
# define LT_DLGLOBAL DL_GLOBAL
12887
# define LT_DLGLOBAL 0
12891
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12892
find out it does not work in some platform. */
12893
#ifndef LT_DLLAZY_OR_NOW
12895
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12898
# define LT_DLLAZY_OR_NOW DL_LAZY
12901
# define LT_DLLAZY_OR_NOW RTLD_NOW
12904
# define LT_DLLAZY_OR_NOW DL_NOW
12906
# define LT_DLLAZY_OR_NOW 0
12913
/* When -fvisbility=hidden is used, assume the code has been annotated
12914
correspondingly for the symbols needed. */
12915
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12916
int fnord () __attribute__((visibility("default")));
12919
int fnord () { return 42; }
12922
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12923
int status = $lt_dlunknown;
12927
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12930
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12931
else puts (dlerror ());
12933
/* dlclose (self); */
12941
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12942
(eval $ac_link) 2>&5
12944
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12945
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12946
(./conftest; exit; ) >&5 2>/dev/null
12948
case x$lt_status in
12949
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12950
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12951
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12954
# compilation failed
12955
lt_cv_dlopen_self=no
12962
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12963
$as_echo "$lt_cv_dlopen_self" >&6; }
12965
if test "x$lt_cv_dlopen_self" = xyes; then
12966
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12967
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12968
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12969
if ${lt_cv_dlopen_self_static+:} false; then :
12970
$as_echo_n "(cached) " >&6
12972
if test "$cross_compiling" = yes; then :
12973
lt_cv_dlopen_self_static=cross
12975
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12976
lt_status=$lt_dlunknown
12977
cat > conftest.$ac_ext <<_LT_EOF
12978
#line $LINENO "configure"
12979
#include "confdefs.h"
12988
# define LT_DLGLOBAL RTLD_GLOBAL
12991
# define LT_DLGLOBAL DL_GLOBAL
12993
# define LT_DLGLOBAL 0
12997
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12998
find out it does not work in some platform. */
12999
#ifndef LT_DLLAZY_OR_NOW
13001
# define LT_DLLAZY_OR_NOW RTLD_LAZY
13004
# define LT_DLLAZY_OR_NOW DL_LAZY
13007
# define LT_DLLAZY_OR_NOW RTLD_NOW
13010
# define LT_DLLAZY_OR_NOW DL_NOW
13012
# define LT_DLLAZY_OR_NOW 0
13019
/* When -fvisbility=hidden is used, assume the code has been annotated
13020
correspondingly for the symbols needed. */
13021
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13022
int fnord () __attribute__((visibility("default")));
13025
int fnord () { return 42; }
13028
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13029
int status = $lt_dlunknown;
13033
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13036
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13037
else puts (dlerror ());
13039
/* dlclose (self); */
13047
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13048
(eval $ac_link) 2>&5
13050
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13051
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13052
(./conftest; exit; ) >&5 2>/dev/null
13054
case x$lt_status in
13055
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13056
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13057
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13060
# compilation failed
13061
lt_cv_dlopen_self_static=no
13068
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13069
$as_echo "$lt_cv_dlopen_self_static" >&6; }
13072
CPPFLAGS="$save_CPPFLAGS"
13073
LDFLAGS="$save_LDFLAGS"
13078
case $lt_cv_dlopen_self in
13079
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13080
*) enable_dlopen_self=unknown ;;
13083
case $lt_cv_dlopen_self_static in
13084
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13085
*) enable_dlopen_self_static=unknown ;;
13107
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13108
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
13109
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13110
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13111
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13112
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13113
$as_echo "yes" >&6; }
13115
# FIXME - insert some real tests, host_os isn't really good enough
13118
if test -n "$STRIP" ; then
13119
striplib="$STRIP -x"
13120
old_striplib="$STRIP -S"
13121
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13122
$as_echo "yes" >&6; }
13124
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13125
$as_echo "no" >&6; }
13129
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13130
$as_echo "no" >&6; }
13146
# Report which library types will actually be built
13147
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13148
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13149
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13150
$as_echo "$can_build_shared" >&6; }
13152
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13153
$as_echo_n "checking whether to build shared libraries... " >&6; }
13154
test "$can_build_shared" = "no" && enable_shared=no
13156
# On AIX, shared libraries and static libraries use the same namespace, and
13157
# are all built from PIC.
13160
test "$enable_shared" = yes && enable_static=no
13161
if test -n "$RANLIB"; then
13162
archive_cmds="$archive_cmds~\$RANLIB \$lib"
13163
postinstall_cmds='$RANLIB $lib'
13168
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13169
test "$enable_shared" = yes && enable_static=no
13173
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13174
$as_echo "$enable_shared" >&6; }
13176
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13177
$as_echo_n "checking whether to build static libraries... " >&6; }
13178
# Make sure either enable_shared or enable_static is yes.
13179
test "$enable_shared" = yes || enable_static=yes
13180
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13181
$as_echo "$enable_static" >&6; }
13188
ac_cpp='$CPP $CPPFLAGS'
13189
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13190
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13191
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13195
if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13196
( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13197
(test "X$CXX" != "Xg++"))) ; then
13199
ac_cpp='$CXXCPP $CPPFLAGS'
13200
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13201
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13202
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13203
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13204
$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13205
if test -z "$CXXCPP"; then
13206
if ${ac_cv_prog_CXXCPP+:} false; then :
13207
$as_echo_n "(cached) " >&6
13209
# Double quotes because CXXCPP needs to be expanded
13210
for CXXCPP in "$CXX -E" "/lib/cpp"
13212
ac_preproc_ok=false
13213
for ac_cxx_preproc_warn_flag in '' yes
13215
# Use a header file that comes with gcc, so configuring glibc
13216
# with a fresh cross-compiler works.
13217
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13218
# <limits.h> exists even on freestanding compilers.
13219
# On the NeXT, cc -E runs the code through the compiler's parser,
13220
# not just through cpp. "Syntax error" is here to catch this case.
13221
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13222
/* end confdefs.h. */
13224
# include <limits.h>
13226
# include <assert.h>
13230
if ac_fn_cxx_try_cpp "$LINENO"; then :
13233
# Broken: fails on valid input.
13236
rm -f conftest.err conftest.i conftest.$ac_ext
13238
# OK, works on sane cases. Now check whether nonexistent headers
13239
# can be detected and how.
13240
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13241
/* end confdefs.h. */
13242
#include <ac_nonexistent.h>
13244
if ac_fn_cxx_try_cpp "$LINENO"; then :
13245
# Broken: success on invalid input.
13248
# Passes both tests.
13252
rm -f conftest.err conftest.i conftest.$ac_ext
13255
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13256
rm -f conftest.i conftest.err conftest.$ac_ext
13257
if $ac_preproc_ok; then :
13262
ac_cv_prog_CXXCPP=$CXXCPP
13265
CXXCPP=$ac_cv_prog_CXXCPP
13267
ac_cv_prog_CXXCPP=$CXXCPP
13269
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13270
$as_echo "$CXXCPP" >&6; }
13271
ac_preproc_ok=false
13272
for ac_cxx_preproc_warn_flag in '' yes
13274
# Use a header file that comes with gcc, so configuring glibc
13275
# with a fresh cross-compiler works.
13276
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13277
# <limits.h> exists even on freestanding compilers.
13278
# On the NeXT, cc -E runs the code through the compiler's parser,
13279
# not just through cpp. "Syntax error" is here to catch this case.
13280
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13281
/* end confdefs.h. */
13283
# include <limits.h>
13285
# include <assert.h>
13289
if ac_fn_cxx_try_cpp "$LINENO"; then :
13292
# Broken: fails on valid input.
13295
rm -f conftest.err conftest.i conftest.$ac_ext
13297
# OK, works on sane cases. Now check whether nonexistent headers
13298
# can be detected and how.
13299
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13300
/* end confdefs.h. */
13301
#include <ac_nonexistent.h>
13303
if ac_fn_cxx_try_cpp "$LINENO"; then :
13304
# Broken: success on invalid input.
13307
# Passes both tests.
13311
rm -f conftest.err conftest.i conftest.$ac_ext
13314
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13315
rm -f conftest.i conftest.err conftest.$ac_ext
13316
if $ac_preproc_ok; then :
13319
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13320
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13321
as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13322
See \`config.log' for more details" "$LINENO" 5; }
13326
ac_cpp='$CPP $CPPFLAGS'
13327
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13328
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13329
ac_compiler_gnu=$ac_cv_c_compiler_gnu
13332
_lt_caught_CXX_error=yes
13336
ac_cpp='$CXXCPP $CPPFLAGS'
13337
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13338
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13339
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13341
archive_cmds_need_lc_CXX=no
13342
allow_undefined_flag_CXX=
13343
always_export_symbols_CXX=no
13344
archive_expsym_cmds_CXX=
13345
compiler_needs_object_CXX=no
13346
export_dynamic_flag_spec_CXX=
13347
hardcode_direct_CXX=no
13348
hardcode_direct_absolute_CXX=no
13349
hardcode_libdir_flag_spec_CXX=
13350
hardcode_libdir_separator_CXX=
13351
hardcode_minus_L_CXX=no
13352
hardcode_shlibpath_var_CXX=unsupported
13353
hardcode_automatic_CXX=no
13354
inherit_rpath_CXX=no
13356
module_expsym_cmds_CXX=
13357
link_all_deplibs_CXX=unknown
13358
old_archive_cmds_CXX=$old_archive_cmds
13359
reload_flag_CXX=$reload_flag
13360
reload_cmds_CXX=$reload_cmds
13361
no_undefined_flag_CXX=
13362
whole_archive_flag_spec_CXX=
13363
enable_shared_with_static_runtimes_CXX=no
13365
# Source file extension for C++ test sources.
13368
# Object file extension for compiled C++ test sources.
13372
# No sense in running all these tests if we already determined that
13373
# the CXX compiler isn't working. Some variables (like enable_shared)
13374
# are currently assumed to apply to all compilers on this platform,
13375
# and will be corrupted by setting them based on a non-working compiler.
13376
if test "$_lt_caught_CXX_error" != yes; then
13377
# Code to be used in simple compile tests
13378
lt_simple_compile_test_code="int some_variable = 0;"
13380
# Code to be used in simple link tests
13381
lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13383
# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13390
# If no C compiler was specified, use CC.
13393
# If no C compiler flags were specified, use CFLAGS.
13394
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13396
# Allow CC to be a program name with arguments.
13400
# save warnings/boilerplate of simple test code
13401
ac_outfile=conftest.$ac_objext
13402
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13403
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13404
_lt_compiler_boilerplate=`cat conftest.err`
13407
ac_outfile=conftest.$ac_objext
13408
echo "$lt_simple_link_test_code" >conftest.$ac_ext
13409
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13410
_lt_linker_boilerplate=`cat conftest.err`
13414
# Allow CC to be a program name with arguments.
13416
lt_save_CFLAGS=$CFLAGS
13420
lt_save_with_gnu_ld=$with_gnu_ld
13421
lt_save_path_LD=$lt_cv_path_LD
13422
if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13423
lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13425
$as_unset lt_cv_prog_gnu_ld
13427
if test -n "${lt_cv_path_LDCXX+set}"; then
13428
lt_cv_path_LD=$lt_cv_path_LDCXX
13430
$as_unset lt_cv_path_LD
13432
test -z "${LDCXX+set}" || LD=$LDCXX
13437
for cc_temp in $compiler""; do
13439
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13440
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13445
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13448
if test -n "$compiler"; then
13449
# We don't want -fno-exception when compiling C++ code, so set the
13450
# no_builtin_flag separately
13451
if test "$GXX" = yes; then
13452
lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13454
lt_prog_compiler_no_builtin_flag_CXX=
13457
if test "$GXX" = yes; then
13458
# Set up default GNU C++ configuration
13462
# Check whether --with-gnu-ld was given.
13463
if test "${with_gnu_ld+set}" = set; then :
13464
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13470
if test "$GCC" = yes; then
13471
# Check if gcc -print-prog-name=ld gives a path.
13472
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13473
$as_echo_n "checking for ld used by $CC... " >&6; }
13476
# gcc leaves a trailing carriage return which upsets mingw
13477
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13479
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13482
# Accept absolute paths.
13484
re_direlt='/[^/][^/]*/\.\./'
13485
# Canonicalize the pathname of ld
13486
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13487
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13488
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13490
test -z "$LD" && LD="$ac_prog"
13493
# If it fails, then pretend we aren't using GCC.
13497
# If it is relative, then search for the first ld in PATH.
13498
with_gnu_ld=unknown
13501
elif test "$with_gnu_ld" = yes; then
13502
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13503
$as_echo_n "checking for GNU ld... " >&6; }
13505
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13506
$as_echo_n "checking for non-GNU ld... " >&6; }
13508
if ${lt_cv_path_LD+:} false; then :
13509
$as_echo_n "(cached) " >&6
13511
if test -z "$LD"; then
13512
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13513
for ac_dir in $PATH; do
13515
test -z "$ac_dir" && ac_dir=.
13516
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13517
lt_cv_path_LD="$ac_dir/$ac_prog"
13518
# Check to see if the program is GNU ld. I'd rather use --version,
13519
# but apparently some variants of GNU ld only accept -v.
13520
# Break only if it was the GNU/non-GNU ld that we prefer.
13521
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13522
*GNU* | *'with BFD'*)
13523
test "$with_gnu_ld" != no && break
13526
test "$with_gnu_ld" != yes && break
13533
lt_cv_path_LD="$LD" # Let the user override the test with a path.
13537
LD="$lt_cv_path_LD"
13538
if test -n "$LD"; then
13539
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13540
$as_echo "$LD" >&6; }
13542
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13543
$as_echo "no" >&6; }
13545
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13546
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13547
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13548
if ${lt_cv_prog_gnu_ld+:} false; then :
13549
$as_echo_n "(cached) " >&6
13551
# I'd rather use --version here, but apparently some GNU lds only accept -v.
13552
case `$LD -v 2>&1 </dev/null` in
13553
*GNU* | *'with BFD'*)
13554
lt_cv_prog_gnu_ld=yes
13557
lt_cv_prog_gnu_ld=no
13561
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13562
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13563
with_gnu_ld=$lt_cv_prog_gnu_ld
13571
# Check if GNU C++ uses GNU ld as the underlying linker, since the
13572
# archiving commands below assume that GNU ld is being used.
13573
if test "$with_gnu_ld" = yes; then
13574
archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13575
archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13577
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13578
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13580
# If archive_cmds runs LD, not CC, wlarc should be empty
13581
# XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13582
# investigate it a little bit more. (MM)
13585
# ancient GNU ld didn't support --whole-archive et. al.
13586
if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13587
$GREP 'no-whole-archive' > /dev/null; then
13588
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13590
whole_archive_flag_spec_CXX=
13596
# A generic and very simple default shared library creation
13597
# command for GNU C++ for the case where it uses the native
13598
# linker, instead of GNU ld. If possible, this setting should
13599
# overridden to take advantage of the native linker features on
13600
# the platform it is being used on.
13601
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13604
# Commands to make compiler produce verbose output that lists
13605
# what "hidden" libraries, object files and flags are used when
13606
# linking a shared library.
13607
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13615
# PORTME: fill in a description of your system's C++ link characteristics
13616
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13617
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13621
# FIXME: insert proper C++ library support
13625
if test "$host_cpu" = ia64; then
13626
# On IA64, the linker does run time linking by default, so we don't
13627
# have to do anything special.
13628
aix_use_runtimelinking=no
13629
exp_sym_flag='-Bexport'
13632
aix_use_runtimelinking=no
13634
# Test if we are trying to use run time linking or normal
13635
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
13636
# need to do runtime linking.
13637
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13638
for ld_flag in $LDFLAGS; do
13641
aix_use_runtimelinking=yes
13649
exp_sym_flag='-bexport'
13650
no_entry_flag='-bnoentry'
13653
# When large executables or shared objects are built, AIX ld can
13654
# have problems creating the table of contents. If linking a library
13655
# or program results in "error TOC overflow" add -mminimal-toc to
13656
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13657
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13659
archive_cmds_CXX=''
13660
hardcode_direct_CXX=yes
13661
hardcode_direct_absolute_CXX=yes
13662
hardcode_libdir_separator_CXX=':'
13663
link_all_deplibs_CXX=yes
13664
file_list_spec_CXX='${wl}-f,'
13666
if test "$GXX" = yes; then
13667
case $host_os in aix4.[012]|aix4.[012].*)
13668
# We only want to do this on AIX 4.2 and lower, the check
13669
# below for broken collect2 doesn't work under 4.3+
13670
collect2name=`${CC} -print-prog-name=collect2`
13671
if test -f "$collect2name" &&
13672
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13674
# We have reworked collect2
13677
# We have old collect2
13678
hardcode_direct_CXX=unsupported
13679
# It fails to find uninstalled libraries when the uninstalled
13680
# path is not listed in the libpath. Setting hardcode_minus_L
13681
# to unsupported forces relinking
13682
hardcode_minus_L_CXX=yes
13683
hardcode_libdir_flag_spec_CXX='-L$libdir'
13684
hardcode_libdir_separator_CXX=
13687
shared_flag='-shared'
13688
if test "$aix_use_runtimelinking" = yes; then
13689
shared_flag="$shared_flag "'${wl}-G'
13693
if test "$host_cpu" = ia64; then
13694
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13695
# chokes on -Wl,-G. The following line is correct:
13698
if test "$aix_use_runtimelinking" = yes; then
13699
shared_flag='${wl}-G'
13701
shared_flag='${wl}-bM:SRE'
13706
export_dynamic_flag_spec_CXX='${wl}-bexpall'
13707
# It seems that -bexpall does not export symbols beginning with
13708
# underscore (_), so it is better to generate a list of symbols to
13710
always_export_symbols_CXX=yes
13711
if test "$aix_use_runtimelinking" = yes; then
13712
# Warning - without using the other runtime loading flags (-brtl),
13713
# -berok will link without error, but may produce a broken library.
13714
allow_undefined_flag_CXX='-berok'
13715
# Determine the default libpath from the value encoded in an empty
13717
if test "${lt_cv_aix_libpath+set}" = set; then
13718
aix_libpath=$lt_cv_aix_libpath
13720
if ${lt_cv_aix_libpath__CXX+:} false; then :
13721
$as_echo_n "(cached) " >&6
13723
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13724
/* end confdefs.h. */
13734
if ac_fn_cxx_try_link "$LINENO"; then :
13736
lt_aix_libpath_sed='
13737
/Import File Strings/,/^$/ {
13739
s/^0 *\([^ ]*\) *$/\1/
13743
lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13744
# Check for a 64-bit object if we didn't find anything.
13745
if test -z "$lt_cv_aix_libpath__CXX"; then
13746
lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13749
rm -f core conftest.err conftest.$ac_objext \
13750
conftest$ac_exeext conftest.$ac_ext
13751
if test -z "$lt_cv_aix_libpath__CXX"; then
13752
lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13757
aix_libpath=$lt_cv_aix_libpath__CXX
13760
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13762
archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13764
if test "$host_cpu" = ia64; then
13765
hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13766
allow_undefined_flag_CXX="-z nodefs"
13767
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13769
# Determine the default libpath from the value encoded in an
13770
# empty executable.
13771
if test "${lt_cv_aix_libpath+set}" = set; then
13772
aix_libpath=$lt_cv_aix_libpath
13774
if ${lt_cv_aix_libpath__CXX+:} false; then :
13775
$as_echo_n "(cached) " >&6
13777
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13778
/* end confdefs.h. */
13788
if ac_fn_cxx_try_link "$LINENO"; then :
13790
lt_aix_libpath_sed='
13791
/Import File Strings/,/^$/ {
13793
s/^0 *\([^ ]*\) *$/\1/
13797
lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13798
# Check for a 64-bit object if we didn't find anything.
13799
if test -z "$lt_cv_aix_libpath__CXX"; then
13800
lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13803
rm -f core conftest.err conftest.$ac_objext \
13804
conftest$ac_exeext conftest.$ac_ext
13805
if test -z "$lt_cv_aix_libpath__CXX"; then
13806
lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13811
aix_libpath=$lt_cv_aix_libpath__CXX
13814
hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13815
# Warning - without using the other run time loading flags,
13816
# -berok will link without error, but may produce a broken library.
13817
no_undefined_flag_CXX=' ${wl}-bernotok'
13818
allow_undefined_flag_CXX=' ${wl}-berok'
13819
if test "$with_gnu_ld" = yes; then
13820
# We only use this code for GNU lds that support --whole-archive.
13821
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13823
# Exported symbols can be pulled into shared objects from archives
13824
whole_archive_flag_spec_CXX='$convenience'
13826
archive_cmds_need_lc_CXX=yes
13827
# This is similar to how AIX traditionally builds its shared
13829
archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13835
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13836
allow_undefined_flag_CXX=unsupported
13837
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13838
# support --undefined. This deserves some investigation. FIXME
13839
archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13846
case $cc_basename in
13848
# FIXME: insert proper C++ library support
13854
cygwin* | mingw* | pw32* | cegcc*)
13855
case $GXX,$cc_basename in
13858
# hardcode_libdir_flag_spec is actually meaningless, as there is
13859
# no search path for DLLs.
13860
hardcode_libdir_flag_spec_CXX=' '
13861
allow_undefined_flag_CXX=unsupported
13862
always_export_symbols_CXX=yes
13863
file_list_spec_CXX='@'
13864
# Tell ltmain to make .lib files, not .a files.
13866
# Tell ltmain to make .dll files, not .so files.
13868
# FIXME: Setting linknames here is a bad hack.
13869
archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13870
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13871
$SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13873
$SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13875
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13877
# The linker will not automatically build a static lib if we build a DLL.
13878
# _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13879
enable_shared_with_static_runtimes_CXX=yes
13881
old_postinstall_cmds_CXX='chmod 644 $oldlib'
13882
postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13883
lt_tool_outputfile="@TOOL_OUTPUT@"~
13884
case $lt_outputfile in
13887
lt_outputfile="$lt_outputfile.exe"
13888
lt_tool_outputfile="$lt_tool_outputfile.exe"
13891
func_to_tool_file "$lt_outputfile"~
13892
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13893
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13894
$RM "$lt_outputfile.manifest";
13899
# _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13900
# as there is no search path for DLLs.
13901
hardcode_libdir_flag_spec_CXX='-L$libdir'
13902
export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13903
allow_undefined_flag_CXX=unsupported
13904
always_export_symbols_CXX=no
13905
enable_shared_with_static_runtimes_CXX=yes
13907
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13908
archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13909
# If the export-symbols file already is a .def file (1st line
13910
# is EXPORTS), use it as is; otherwise, prepend...
13911
archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13912
cp $export_symbols $output_objdir/$soname.def;
13914
echo EXPORTS > $output_objdir/$soname.def;
13915
cat $export_symbols >> $output_objdir/$soname.def;
13917
$CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13924
darwin* | rhapsody*)
13927
archive_cmds_need_lc_CXX=no
13928
hardcode_direct_CXX=no
13929
hardcode_automatic_CXX=yes
13930
hardcode_shlibpath_var_CXX=unsupported
13931
if test "$lt_cv_ld_force_load" = "yes"; then
13932
whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13935
whole_archive_flag_spec_CXX=''
13937
link_all_deplibs_CXX=yes
13938
allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13939
case $cc_basename in
13940
ifort*) _lt_dar_can_shared=yes ;;
13941
*) _lt_dar_can_shared=$GCC ;;
13943
if test "$_lt_dar_can_shared" = "yes"; then
13944
output_verbose_link_cmd=func_echo_all
13945
archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13946
module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13947
archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13948
module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13949
if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13950
archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13951
archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13961
case $cc_basename in
13963
# FIXME: insert proper C++ library support
13967
# Green Hills C++ Compiler
13968
# FIXME: insert proper C++ library support
13972
# FIXME: insert proper C++ library support
13979
# C++ shared libraries reported to be fairly broken before
13985
archive_cmds_need_lc_CXX=no
13988
freebsd* | dragonfly*)
13989
# FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13998
archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13999
link_all_deplibs_CXX=yes
14003
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14004
hardcode_libdir_separator_CXX=:
14005
export_dynamic_flag_spec_CXX='${wl}-E'
14006
hardcode_direct_CXX=yes
14007
hardcode_minus_L_CXX=yes # Not in the search PATH,
14008
# but as the default
14009
# location of the library.
14011
case $cc_basename in
14013
# FIXME: insert proper C++ library support
14017
archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14018
# Commands to make compiler produce verbose output that lists
14019
# what "hidden" libraries, object files and flags are used when
14020
# linking a shared library.
14022
# There doesn't appear to be a way to prevent this compiler from
14023
# explicitly linking system object files so we need to strip them
14024
# from the output so that they don't get included in the library
14026
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; func_echo_all "$list"'
14029
if test "$GXX" = yes; then
14030
archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14032
# FIXME: insert proper C++ library support
14040
if test $with_gnu_ld = no; then
14041
hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14042
hardcode_libdir_separator_CXX=:
14048
export_dynamic_flag_spec_CXX='${wl}-E'
14054
hardcode_direct_CXX=no
14055
hardcode_shlibpath_var_CXX=no
14058
hardcode_direct_CXX=yes
14059
hardcode_direct_absolute_CXX=yes
14060
hardcode_minus_L_CXX=yes # Not in the search PATH,
14061
# but as the default
14062
# location of the library.
14066
case $cc_basename in
14068
# FIXME: insert proper C++ library support
14074
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14077
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14080
archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14083
# Commands to make compiler produce verbose output that lists
14084
# what "hidden" libraries, object files and flags are used when
14085
# linking a shared library.
14087
# There doesn't appear to be a way to prevent this compiler from
14088
# explicitly linking system object files so we need to strip them
14089
# from the output so that they don't get included in the library
14091
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; func_echo_all "$list"'
14094
if test "$GXX" = yes; then
14095
if test $with_gnu_ld = no; then
14098
archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14101
archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14104
archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14109
# FIXME: insert proper C++ library support
14117
hardcode_direct_CXX=no
14118
hardcode_shlibpath_var_CXX=no
14119
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14120
export_dynamic_flag_spec_CXX='${wl}-E'
14121
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14122
# Instead, shared libraries are loaded at an image base (0x10000000 by
14123
# default) and relocated if they conflict, which is a slow very memory
14124
# consuming and fragmenting process. To avoid this, we pick a random,
14125
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14126
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
14127
archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14128
archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14131
case $cc_basename in
14134
archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14136
# Archives containing C++ object files must be created using
14137
# "CC -ar", where "CC" is the IRIX C++ compiler. This is
14138
# necessary to make sure instantiated templates are included
14140
old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14143
if test "$GXX" = yes; then
14144
if test "$with_gnu_ld" = no; then
14145
archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14147
archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
14150
link_all_deplibs_CXX=yes
14153
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14154
hardcode_libdir_separator_CXX=:
14155
inherit_rpath_CXX=yes
14158
linux* | k*bsd*-gnu | kopensolaris*-gnu)
14159
case $cc_basename in
14161
# Kuck and Associates, Inc. (KAI) C++ Compiler
14163
# KCC will only create a shared library if the output file
14164
# ends with ".so" (or ".sl" for HP-UX), so rename the library
14165
# to its proper name (with version) after linking.
14166
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 $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14167
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 $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
14168
# Commands to make compiler produce verbose output that lists
14169
# what "hidden" libraries, object files and flags are used when
14170
# linking a shared library.
14172
# There doesn't appear to be a way to prevent this compiler from
14173
# explicitly linking system object files so we need to strip them
14174
# from the output so that they don't get included in the library
14176
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; func_echo_all "$list"'
14178
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14179
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14181
# Archives containing C++ object files must be created using
14182
# "CC -Bstatic", where "CC" is the KAI C++ compiler.
14183
old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14188
# version 8.0 and above of icpc choke on multiply defined symbols
14189
# if we add $predep_objects and $postdep_objects, however 7.1 and
14190
# earlier do not add the objects themselves.
14191
case `$CC -V 2>&1` in
14193
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14194
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14196
*) # Version 8.0 or newer
14199
ia64*) tmp_idyn=' -i_dynamic';;
14201
archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14202
archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14205
archive_cmds_need_lc_CXX=no
14206
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14207
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14208
whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14211
# Portland Group C++ compiler
14213
*pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14214
prelink_cmds_CXX='tpldir=Template.dir~
14216
$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14217
compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14218
old_archive_cmds_CXX='tpldir=Template.dir~
14220
$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14221
$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14223
archive_cmds_CXX='tpldir=Template.dir~
14225
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14226
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14227
archive_expsym_cmds_CXX='tpldir=Template.dir~
14229
$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14230
$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14232
*) # Version 6 and above use weak symbols
14233
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14234
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14238
hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14239
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14240
whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14244
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14245
archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
14247
runpath_var=LD_RUN_PATH
14248
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14249
hardcode_libdir_separator_CXX=:
14251
# Commands to make compiler produce verbose output that lists
14252
# what "hidden" libraries, object files and flags are used when
14253
# linking a shared library.
14255
# There doesn't appear to be a way to prevent this compiler from
14256
# explicitly linking system object files so we need to strip them
14257
# from the output so that they don't get included in the library
14259
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
14261
xl* | mpixl* | bgxl*)
14262
# IBM XL 8.0 on PPC, with GNU ld
14263
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14264
export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14265
archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14266
if test "x$supports_anon_versioning" = xyes; then
14267
archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14268
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14269
echo "local: *; };" >> $output_objdir/$libname.ver~
14270
$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14274
case `$CC -V 2>&1 | sed 5q` in
14277
no_undefined_flag_CXX=' -zdefs'
14278
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14279
archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14280
hardcode_libdir_flag_spec_CXX='-R$libdir'
14281
whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14282
compiler_needs_object_CXX=yes
14284
# Not sure whether something based on
14285
# $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14287
output_verbose_link_cmd='func_echo_all'
14289
# Archives containing C++ object files must be created using
14290
# "CC -xar", where "CC" is the Sun C++ compiler. This is
14291
# necessary to make sure instantiated templates are included
14293
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14301
# FIXME: insert proper C++ library support
14306
# FIXME: insert proper C++ library support
14311
case $cc_basename in
14313
# FIXME: insert proper C++ library support
14317
# FIXME: insert proper C++ library support
14324
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14325
archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14327
hardcode_libdir_flag_spec_CXX='-R$libdir'
14328
hardcode_direct_CXX=yes
14329
hardcode_shlibpath_var_CXX=no
14331
# Workaround some broken pre-1.5 toolchains
14332
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14340
# C++ shared libraries are fairly broken
14345
if test -f /usr/libexec/ld.so; then
14346
hardcode_direct_CXX=yes
14347
hardcode_shlibpath_var_CXX=no
14348
hardcode_direct_absolute_CXX=yes
14349
archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14350
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14351
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14352
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14353
export_dynamic_flag_spec_CXX='${wl}-E'
14354
whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14356
output_verbose_link_cmd=func_echo_all
14362
osf3* | osf4* | osf5*)
14363
case $cc_basename in
14365
# Kuck and Associates, Inc. (KAI) C++ Compiler
14367
# KCC will only create a shared library if the output file
14368
# ends with ".so" (or ".sl" for HP-UX), so rename the library
14369
# to its proper name (with version) after linking.
14370
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 $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14372
hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14373
hardcode_libdir_separator_CXX=:
14375
# Archives containing C++ object files must be created using
14376
# the KAI C++ compiler.
14378
osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14379
*) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14383
# Rational C++ 2.4.1
14384
# FIXME: insert proper C++ library support
14390
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14391
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14392
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14395
allow_undefined_flag_CXX=' -expect_unresolved \*'
14396
archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14397
archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14398
echo "-hidden">> $lib.exp~
14399
$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
14401
hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14405
hardcode_libdir_separator_CXX=:
14407
# Commands to make compiler produce verbose output that lists
14408
# what "hidden" libraries, object files and flags are used when
14409
# linking a shared library.
14411
# There doesn't appear to be a way to prevent this compiler from
14412
# explicitly linking system object files so we need to strip them
14413
# from the output so that they don't get included in the library
14415
output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
14418
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14419
allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14422
archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14425
archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14429
hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14430
hardcode_libdir_separator_CXX=:
14432
# Commands to make compiler produce verbose output that lists
14433
# what "hidden" libraries, object files and flags are used when
14434
# linking a shared library.
14435
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14438
# FIXME: insert proper C++ library support
14446
# FIXME: insert proper C++ library support
14451
case $cc_basename in
14454
# FIXME: insert proper C++ library support
14459
# FIXME: insert proper C++ library support
14463
# FIXME: insert proper C++ library support
14470
case $cc_basename in
14472
# Sun C++ 4.2, 5.x and Centerline C++
14473
archive_cmds_need_lc_CXX=yes
14474
no_undefined_flag_CXX=' -zdefs'
14475
archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14476
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14477
$CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14479
hardcode_libdir_flag_spec_CXX='-R$libdir'
14480
hardcode_shlibpath_var_CXX=no
14482
solaris2.[0-5] | solaris2.[0-5].*) ;;
14484
# The compiler driver will combine and reorder linker options,
14485
# but understands `-z linker_flag'.
14486
# Supported since Solaris 2.6 (maybe 2.5.1?)
14487
whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14490
link_all_deplibs_CXX=yes
14492
output_verbose_link_cmd='func_echo_all'
14494
# Archives containing C++ object files must be created using
14495
# "CC -xar", where "CC" is the Sun C++ compiler. This is
14496
# necessary to make sure instantiated templates are included
14498
old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14501
# Green Hills C++ Compiler
14502
archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14504
# The C++ compiler must be used to create the archive.
14505
old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14508
# GNU C++ compiler with Solaris linker
14509
if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14510
no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14511
if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14512
archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14513
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14514
$CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14516
# Commands to make compiler produce verbose output that lists
14517
# what "hidden" libraries, object files and flags are used when
14518
# linking a shared library.
14519
output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14521
# g++ 2.7 appears to require `-G' NOT `-shared' on this
14523
archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14524
archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14525
$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14527
# Commands to make compiler produce verbose output that lists
14528
# what "hidden" libraries, object files and flags are used when
14529
# linking a shared library.
14530
output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14533
hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14535
solaris2.[0-5] | solaris2.[0-5].*) ;;
14537
whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14545
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14546
no_undefined_flag_CXX='${wl}-z,text'
14547
archive_cmds_need_lc_CXX=no
14548
hardcode_shlibpath_var_CXX=no
14549
runpath_var='LD_RUN_PATH'
14551
case $cc_basename in
14553
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14554
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14557
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14558
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14563
sysv5* | sco3.2v5* | sco5v6*)
14564
# Note: We can NOT use -z defs as we might desire, because we do not
14565
# link with -lc, and that would cause any symbols used from libc to
14566
# always be unresolved, which means just about no library would
14567
# ever link correctly. If we're not using GNU ld we use -z text
14568
# though, which does catch some bad symbols but isn't as heavy-handed
14570
no_undefined_flag_CXX='${wl}-z,text'
14571
allow_undefined_flag_CXX='${wl}-z,nodefs'
14572
archive_cmds_need_lc_CXX=no
14573
hardcode_shlibpath_var_CXX=no
14574
hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14575
hardcode_libdir_separator_CXX=':'
14576
link_all_deplibs_CXX=yes
14577
export_dynamic_flag_spec_CXX='${wl}-Bexport'
14578
runpath_var='LD_RUN_PATH'
14580
case $cc_basename in
14582
archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14583
archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14584
old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14585
'"$old_archive_cmds_CXX"
14586
reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14587
'"$reload_cmds_CXX"
14590
archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14591
archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14597
case $cc_basename in
14599
# NonStop-UX NCC 3.20
14600
# FIXME: insert proper C++ library support
14604
# FIXME: insert proper C++ library support
14611
# FIXME: insert proper C++ library support
14616
# FIXME: insert proper C++ library support
14621
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14622
$as_echo "$ld_shlibs_CXX" >&6; }
14623
test "$ld_shlibs_CXX" = no && can_build_shared=no
14629
## There is no encapsulation within the following macros, do not change
14630
## the running order or otherwise move them around unless you know exactly
14631
## what you are doing...
14632
# Dependencies to place before and after the object being linked:
14633
predep_objects_CXX=
14634
postdep_objects_CXX=
14637
compiler_lib_search_path_CXX=
14639
cat > conftest.$ac_ext <<_LT_EOF
14643
Foo (void) { a = 0; }
14650
_lt_libdeps_save_CFLAGS=$CFLAGS
14651
case "$CC $CFLAGS " in #(
14652
*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14653
*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14654
*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14657
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14658
(eval $ac_compile) 2>&5
14660
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14661
test $ac_status = 0; }; then
14662
# Parse the compiler output and extract the necessary
14663
# objects, libraries and library flags.
14665
# Sentinel used to keep track of whether or not we are before
14666
# the conftest object file.
14667
pre_test_object_deps_done=no
14669
for p in `eval "$output_verbose_link_cmd"`; do
14670
case ${prev}${p} in
14673
# Some compilers place space between "-{L,R}" and the path.
14674
# Remove the space.
14675
if test $p = "-L" ||
14676
test $p = "-R"; then
14681
# Expand the sysroot to ease extracting the directories later.
14682
if test -z "$prev"; then
14684
-L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14685
-R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14686
-l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14690
=*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14692
if test "$pre_test_object_deps_done" = no; then
14695
# Internal compiler library paths should come after those
14696
# provided the user. The postdeps already come after the
14697
# user supplied libs so there is no need to process them.
14698
if test -z "$compiler_lib_search_path_CXX"; then
14699
compiler_lib_search_path_CXX="${prev}${p}"
14701
compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14704
# The "-l" case would never come before the object being
14705
# linked, so don't bother handling this case.
14708
if test -z "$postdeps_CXX"; then
14709
postdeps_CXX="${prev}${p}"
14711
postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14717
*.lto.$objext) ;; # Ignore GCC LTO objects
14719
# This assumes that the test object file only shows up
14720
# once in the compiler output.
14721
if test "$p" = "conftest.$objext"; then
14722
pre_test_object_deps_done=yes
14726
if test "$pre_test_object_deps_done" = no; then
14727
if test -z "$predep_objects_CXX"; then
14728
predep_objects_CXX="$p"
14730
predep_objects_CXX="$predep_objects_CXX $p"
14733
if test -z "$postdep_objects_CXX"; then
14734
postdep_objects_CXX="$p"
14736
postdep_objects_CXX="$postdep_objects_CXX $p"
14741
*) ;; # Ignore the rest.
14749
echo "libtool.m4: error: problem compiling CXX test program"
14752
$RM -f confest.$objext
14753
CFLAGS=$_lt_libdeps_save_CFLAGS
14755
# PORTME: override above test on systems where it is broken
14758
# Interix 3.5 installs completely hosed .la files for C++, so rather than
14759
# hack all around it, let's just trust "g++" to DTRT.
14760
predep_objects_CXX=
14761
postdep_objects_CXX=
14766
case `$CC -V 2>&1 | sed 5q` in
14770
# The more standards-conforming stlport4 library is
14771
# incompatible with the Cstd library. Avoid specifying
14772
# it if it's in CXXFLAGS. Ignore libCrun as
14773
# -library=stlport4 depends on it.
14774
case " $CXX $CXXFLAGS " in
14775
*" -library=stlport4 "*)
14776
solaris_use_stlport4=yes
14780
if test "$solaris_use_stlport4" != yes; then
14781
postdeps_CXX='-library=Cstd -library=Crun'
14788
case $cc_basename in
14790
# The more standards-conforming stlport4 library is
14791
# incompatible with the Cstd library. Avoid specifying
14792
# it if it's in CXXFLAGS. Ignore libCrun as
14793
# -library=stlport4 depends on it.
14794
case " $CXX $CXXFLAGS " in
14795
*" -library=stlport4 "*)
14796
solaris_use_stlport4=yes
14800
# Adding this requires a known-good setup of shared libraries for
14801
# Sun compiler versions before 5.6, else PIC objects from an old
14802
# archive will be linked into the output, leading to subtle bugs.
14803
if test "$solaris_use_stlport4" != yes; then
14804
postdeps_CXX='-library=Cstd -library=Crun'
14812
case " $postdeps_CXX " in
14813
*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14815
compiler_lib_search_dirs_CXX=
14816
if test -n "${compiler_lib_search_path_CXX}"; then
14817
compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14850
lt_prog_compiler_wl_CXX=
14851
lt_prog_compiler_pic_CXX=
14852
lt_prog_compiler_static_CXX=
14855
# C++ specific cases for pic, static, wl, etc.
14856
if test "$GXX" = yes; then
14857
lt_prog_compiler_wl_CXX='-Wl,'
14858
lt_prog_compiler_static_CXX='-static'
14862
# All AIX code is PIC.
14863
if test "$host_cpu" = ia64; then
14864
# AIX 5 now supports IA64 processor
14865
lt_prog_compiler_static_CXX='-Bstatic'
14872
# see comment about AmigaOS4 .so support
14873
lt_prog_compiler_pic_CXX='-fPIC'
14876
# FIXME: we need at least 68020 code to build shared libraries, but
14877
# adding the `-m68020' flag to GCC prevents building anything better,
14879
lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14884
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14885
# PIC is the default for these OSes.
14887
mingw* | cygwin* | os2* | pw32* | cegcc*)
14888
# This hack is so that the source file can tell whether it is being
14889
# built for inclusion in a dll (and should export symbols for example).
14890
# Although the cygwin gcc ignores -fPIC, still need this for old-style
14891
# (--disable-auto-import) libraries
14892
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14894
darwin* | rhapsody*)
14895
# PIC is the default on this platform
14896
# Common symbols not allowed in MH_DYLIB files
14897
lt_prog_compiler_pic_CXX='-fno-common'
14900
# DJGPP does not support shared libraries at all
14901
lt_prog_compiler_pic_CXX=
14904
# PIC is the default for Haiku.
14905
# The "-static" flag exists, but is broken.
14906
lt_prog_compiler_static_CXX=
14909
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
14910
# Instead, we relocate shared libraries at runtime.
14913
if test -d /usr/nec; then
14914
lt_prog_compiler_pic_CXX=-Kconform_pic
14918
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14919
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14920
# sets the default TLS model and affects inlining.
14925
lt_prog_compiler_pic_CXX='-fPIC'
14930
# QNX uses GNU C++, but need to define -shared option too, otherwise
14931
# it will coredump.
14932
lt_prog_compiler_pic_CXX='-fPIC -shared'
14935
lt_prog_compiler_pic_CXX='-fPIC'
14941
# All AIX code is PIC.
14942
if test "$host_cpu" = ia64; then
14943
# AIX 5 now supports IA64 processor
14944
lt_prog_compiler_static_CXX='-Bstatic'
14946
lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14950
case $cc_basename in
14952
# Green Hills C++ Compiler
14953
# _LT_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"
14957
mingw* | cygwin* | os2* | pw32* | cegcc*)
14958
# This hack is so that the source file can tell whether it is being
14959
# built for inclusion in a dll (and should export symbols for example).
14960
lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14963
case $cc_basename in
14965
lt_prog_compiler_pic_CXX='-KPIC'
14968
# Green Hills C++ Compiler
14969
lt_prog_compiler_pic_CXX='-pic'
14975
freebsd* | dragonfly*)
14976
# FreeBSD uses GNU C++
14978
hpux9* | hpux10* | hpux11*)
14979
case $cc_basename in
14981
lt_prog_compiler_wl_CXX='-Wl,'
14982
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14983
if test "$host_cpu" != ia64; then
14984
lt_prog_compiler_pic_CXX='+Z'
14988
lt_prog_compiler_wl_CXX='-Wl,'
14989
lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14995
lt_prog_compiler_pic_CXX='+Z'
15004
# This is c89, which is MS Visual C++ (no shared libs)
15005
# Anyone wants to do a port?
15007
irix5* | irix6* | nonstopux*)
15008
case $cc_basename in
15010
lt_prog_compiler_wl_CXX='-Wl,'
15011
lt_prog_compiler_static_CXX='-non_shared'
15012
# CC pic flag -KPIC is the default.
15018
linux* | k*bsd*-gnu | kopensolaris*-gnu)
15019
case $cc_basename in
15022
lt_prog_compiler_wl_CXX='--backend -Wl,'
15023
lt_prog_compiler_pic_CXX='-fPIC'
15026
# old Intel C++ for x86_64 which still supported -KPIC.
15027
lt_prog_compiler_wl_CXX='-Wl,'
15028
lt_prog_compiler_pic_CXX='-KPIC'
15029
lt_prog_compiler_static_CXX='-static'
15032
# Intel C++, used to be incompatible with GCC.
15033
# ICC 10 doesn't accept -KPIC any more.
15034
lt_prog_compiler_wl_CXX='-Wl,'
15035
lt_prog_compiler_pic_CXX='-fPIC'
15036
lt_prog_compiler_static_CXX='-static'
15039
# Portland Group C++ compiler
15040
lt_prog_compiler_wl_CXX='-Wl,'
15041
lt_prog_compiler_pic_CXX='-fpic'
15042
lt_prog_compiler_static_CXX='-Bstatic'
15046
# Make sure the PIC flag is empty. It appears that all Alpha
15047
# Linux and Compaq Tru64 Unix objects are PIC.
15048
lt_prog_compiler_pic_CXX=
15049
lt_prog_compiler_static_CXX='-non_shared'
15051
xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15052
# IBM XL 8.0, 9.0 on PPC and BlueGene
15053
lt_prog_compiler_wl_CXX='-Wl,'
15054
lt_prog_compiler_pic_CXX='-qpic'
15055
lt_prog_compiler_static_CXX='-qstaticlink'
15058
case `$CC -V 2>&1 | sed 5q` in
15061
lt_prog_compiler_pic_CXX='-KPIC'
15062
lt_prog_compiler_static_CXX='-Bstatic'
15063
lt_prog_compiler_wl_CXX='-Qoption ld '
15074
case $cc_basename in
15076
lt_prog_compiler_pic_CXX='-W c,exportall'
15085
# QNX uses GNU C++, but need to define -shared option too, otherwise
15086
# it will coredump.
15087
lt_prog_compiler_pic_CXX='-fPIC -shared'
15089
osf3* | osf4* | osf5*)
15090
case $cc_basename in
15092
lt_prog_compiler_wl_CXX='--backend -Wl,'
15095
# Rational C++ 2.4.1
15096
lt_prog_compiler_pic_CXX='-pic'
15099
# Digital/Compaq C++
15100
lt_prog_compiler_wl_CXX='-Wl,'
15101
# Make sure the PIC flag is empty. It appears that all Alpha
15102
# Linux and Compaq Tru64 Unix objects are PIC.
15103
lt_prog_compiler_pic_CXX=
15104
lt_prog_compiler_static_CXX='-non_shared'
15113
case $cc_basename in
15115
# Sun C++ 4.2, 5.x and Centerline C++
15116
lt_prog_compiler_pic_CXX='-KPIC'
15117
lt_prog_compiler_static_CXX='-Bstatic'
15118
lt_prog_compiler_wl_CXX='-Qoption ld '
15121
# Green Hills C++ Compiler
15122
lt_prog_compiler_pic_CXX='-PIC'
15129
case $cc_basename in
15132
lt_prog_compiler_pic_CXX='-pic'
15133
lt_prog_compiler_static_CXX='-Bstatic'
15137
lt_prog_compiler_pic_CXX='-pic'
15143
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15144
case $cc_basename in
15146
lt_prog_compiler_wl_CXX='-Wl,'
15147
lt_prog_compiler_pic_CXX='-KPIC'
15148
lt_prog_compiler_static_CXX='-Bstatic'
15153
case $cc_basename in
15155
# NonStop-UX NCC 3.20
15156
lt_prog_compiler_pic_CXX='-KPIC'
15165
lt_prog_compiler_can_build_shared_CXX=no
15171
# For platforms which do not support PIC, -DPIC is meaningless:
15173
lt_prog_compiler_pic_CXX=
15176
lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15180
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15181
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15182
if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15183
$as_echo_n "(cached) " >&6
15185
lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15187
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15188
$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15189
lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15192
# Check to make sure the PIC flag actually works.
15194
if test -n "$lt_prog_compiler_pic_CXX"; then
15195
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15196
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15197
if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15198
$as_echo_n "(cached) " >&6
15200
lt_cv_prog_compiler_pic_works_CXX=no
15201
ac_outfile=conftest.$ac_objext
15202
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15203
lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15204
# Insert the option either (1) after the last *FLAGS variable, or
15205
# (2) before a word containing "conftest.", or (3) at the end.
15206
# Note that $ac_compile itself does not contain backslashes and begins
15207
# with a dollar sign (not a hyphen), so the echo should work correctly.
15208
# The option is referenced via a variable to avoid confusing sed.
15209
lt_compile=`echo "$ac_compile" | $SED \
15210
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15211
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15212
-e 's:$: $lt_compiler_flag:'`
15213
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15214
(eval "$lt_compile" 2>conftest.err)
15216
cat conftest.err >&5
15217
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218
if (exit $ac_status) && test -s "$ac_outfile"; then
15219
# The compiler can only warn and ignore the option if not recognized
15220
# So say no if there are warnings other than the usual output.
15221
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15222
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15223
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15224
lt_cv_prog_compiler_pic_works_CXX=yes
15230
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15231
$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15233
if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15234
case $lt_prog_compiler_pic_CXX in
15236
*) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15239
lt_prog_compiler_pic_CXX=
15240
lt_prog_compiler_can_build_shared_CXX=no
15250
# Check to make sure the static flag actually works.
15252
wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15253
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15254
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15255
if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15256
$as_echo_n "(cached) " >&6
15258
lt_cv_prog_compiler_static_works_CXX=no
15259
save_LDFLAGS="$LDFLAGS"
15260
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15261
echo "$lt_simple_link_test_code" > conftest.$ac_ext
15262
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15263
# The linker can only warn and ignore the option if not recognized
15264
# So say no if there are warnings
15265
if test -s conftest.err; then
15266
# Append any errors to the config.log.
15267
cat conftest.err 1>&5
15268
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15269
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15270
if diff conftest.exp conftest.er2 >/dev/null; then
15271
lt_cv_prog_compiler_static_works_CXX=yes
15274
lt_cv_prog_compiler_static_works_CXX=yes
15278
LDFLAGS="$save_LDFLAGS"
15281
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15282
$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15284
if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15287
lt_prog_compiler_static_CXX=
15293
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15294
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15295
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15296
$as_echo_n "(cached) " >&6
15298
lt_cv_prog_compiler_c_o_CXX=no
15299
$RM -r conftest 2>/dev/null
15303
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15305
lt_compiler_flag="-o out/conftest2.$ac_objext"
15306
# Insert the option either (1) after the last *FLAGS variable, or
15307
# (2) before a word containing "conftest.", or (3) at the end.
15308
# Note that $ac_compile itself does not contain backslashes and begins
15309
# with a dollar sign (not a hyphen), so the echo should work correctly.
15310
lt_compile=`echo "$ac_compile" | $SED \
15311
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15312
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15313
-e 's:$: $lt_compiler_flag:'`
15314
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15315
(eval "$lt_compile" 2>out/conftest.err)
15317
cat out/conftest.err >&5
15318
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15321
# The compiler can only warn and ignore the option if not recognized
15322
# So say no if there are warnings
15323
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15324
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15325
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15326
lt_cv_prog_compiler_c_o_CXX=yes
15331
# SGI C++ compiler will create directory out/ii_files/ for
15332
# template instantiation
15333
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15334
$RM out/* && rmdir out
15340
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15341
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15345
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15346
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15347
if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15348
$as_echo_n "(cached) " >&6
15350
lt_cv_prog_compiler_c_o_CXX=no
15351
$RM -r conftest 2>/dev/null
15355
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15357
lt_compiler_flag="-o out/conftest2.$ac_objext"
15358
# Insert the option either (1) after the last *FLAGS variable, or
15359
# (2) before a word containing "conftest.", or (3) at the end.
15360
# Note that $ac_compile itself does not contain backslashes and begins
15361
# with a dollar sign (not a hyphen), so the echo should work correctly.
15362
lt_compile=`echo "$ac_compile" | $SED \
15363
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15364
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15365
-e 's:$: $lt_compiler_flag:'`
15366
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15367
(eval "$lt_compile" 2>out/conftest.err)
15369
cat out/conftest.err >&5
15370
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371
if (exit $ac_status) && test -s out/conftest2.$ac_objext
15373
# The compiler can only warn and ignore the option if not recognized
15374
# So say no if there are warnings
15375
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15376
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15377
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15378
lt_cv_prog_compiler_c_o_CXX=yes
15383
# SGI C++ compiler will create directory out/ii_files/ for
15384
# template instantiation
15385
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15386
$RM out/* && rmdir out
15392
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15393
$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15398
hard_links="nottested"
15399
if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15400
# do not overwrite the value of need_locks provided by the user
15401
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15402
$as_echo_n "checking if we can lock with hard links... " >&6; }
15405
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15407
ln conftest.a conftest.b 2>&5 || hard_links=no
15408
ln conftest.a conftest.b 2>/dev/null && hard_links=no
15409
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15410
$as_echo "$hard_links" >&6; }
15411
if test "$hard_links" = no; then
15412
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15413
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15422
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15423
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15425
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15426
exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15429
# If we're using GNU nm, then we don't want the "-C" option.
15430
# -C means demangle to AIX nm, but means don't demangle with GNU nm
15431
# Also, AIX nm treats weak defined symbols like other global defined
15432
# symbols, whereas GNU nm marks them as "W".
15433
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15434
export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15436
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'
15440
export_symbols_cmds_CXX="$ltdll_cmds"
15442
cygwin* | mingw* | cegcc*)
15443
case $cc_basename in
15445
exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15448
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15449
exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15454
export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15458
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15459
$as_echo "$ld_shlibs_CXX" >&6; }
15460
test "$ld_shlibs_CXX" = no && can_build_shared=no
15462
with_gnu_ld_CXX=$with_gnu_ld
15470
# Do we need to explicitly link libc?
15472
case "x$archive_cmds_need_lc_CXX" in
15474
# Assume -lc should be added
15475
archive_cmds_need_lc_CXX=yes
15477
if test "$enable_shared" = yes && test "$GCC" = yes; then
15478
case $archive_cmds_CXX in
15480
# FIXME: we may have to deal with multi-command sequences.
15483
# Test whether the compiler implicitly links with -lc since on some
15484
# systems, -lgcc has to come before -lc. If gcc already passes -lc
15485
# to ld, don't add -lc before -lgcc.
15486
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15487
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15488
if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15489
$as_echo_n "(cached) " >&6
15492
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15494
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15495
(eval $ac_compile) 2>&5
15497
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15498
test $ac_status = 0; } 2>conftest.err; then
15501
libobjs=conftest.$ac_objext
15503
wl=$lt_prog_compiler_wl_CXX
15504
pic_flag=$lt_prog_compiler_pic_CXX
15510
lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15511
allow_undefined_flag_CXX=
15512
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15513
(eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15515
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15516
test $ac_status = 0; }
15518
lt_cv_archive_cmds_need_lc_CXX=no
15520
lt_cv_archive_cmds_need_lc_CXX=yes
15522
allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15524
cat conftest.err 1>&5
15529
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15530
$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15531
archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15599
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15600
$as_echo_n "checking dynamic linker characteristics... " >&6; }
15602
library_names_spec=
15603
libname_spec='lib$name'
15607
postuninstall_cmds=
15611
shlibpath_overrides_runpath=unknown
15613
dynamic_linker="$host_os ld.so"
15614
sys_lib_dlsearch_path_spec="/lib /usr/lib"
15615
need_lib_prefix=unknown
15616
hardcode_into_libs=no
15618
# when you set need_version to no, make sure it does not cause -set_version
15619
# flags to be left without arguments
15620
need_version=unknown
15624
version_type=linux # correct to gnu/linux during the next big refactor
15625
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15626
shlibpath_var=LIBPATH
15628
# AIX 3 has no versioning support, so we append a major version to the name.
15629
soname_spec='${libname}${release}${shared_ext}$major'
15633
version_type=linux # correct to gnu/linux during the next big refactor
15636
hardcode_into_libs=yes
15637
if test "$host_cpu" = ia64; then
15638
# AIX 5 supports IA64
15639
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15640
shlibpath_var=LD_LIBRARY_PATH
15642
# With GCC up to 2.95.x, collect2 would create an import file
15643
# for dependence libraries. The import file would start with
15644
# the line `#! .'. This would cause the generated library to
15645
# depend on `.', always an invalid library. This was fixed in
15646
# development snapshots of GCC prior to 3.0.
15648
aix4 | aix4.[01] | aix4.[01].*)
15649
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15651
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15654
can_build_shared=no
15658
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15659
# soname into executable. Probably we can add versioning support to
15660
# collect2, so additional links can be useful in future.
15661
if test "$aix_use_runtimelinking" = yes; then
15662
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
15663
# instead of lib<name>.a to let people know that these are not
15664
# typical AIX shared libraries.
15665
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15667
# We preserve .a as extension for shared libraries through AIX4.2
15668
# and later when we are not doing run time linking.
15669
library_names_spec='${libname}${release}.a $libname.a'
15670
soname_spec='${libname}${release}${shared_ext}$major'
15672
shlibpath_var=LIBPATH
15679
# Since July 2007 AmigaOS4 officially supports .so libraries.
15680
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15681
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15684
library_names_spec='$libname.ixlibrary $libname.a'
15685
# Create ${libname}_ixlibrary.a entries in /sys/libs.
15686
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
15692
library_names_spec='${libname}${shared_ext}'
15693
dynamic_linker="$host_os ld.so"
15694
shlibpath_var=LIBRARY_PATH
15698
version_type=linux # correct to gnu/linux during the next big refactor
15700
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15701
soname_spec='${libname}${release}${shared_ext}$major'
15702
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15703
shlibpath_var=LD_LIBRARY_PATH
15704
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15705
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15706
# the default ld.so.conf also contains /usr/contrib/lib and
15707
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15708
# libtool to hard-code these into programs
15711
cygwin* | mingw* | pw32* | cegcc*)
15712
version_type=windows
15717
case $GCC,$cc_basename in
15720
library_names_spec='$libname.dll.a'
15721
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15722
postinstall_cmds='base_file=`basename \${file}`~
15723
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15724
dldir=$destdir/`dirname \$dlpath`~
15725
test -d \$dldir || mkdir -p \$dldir~
15726
$install_prog $dir/$dlname \$dldir/$dlname~
15727
chmod a+x \$dldir/$dlname~
15728
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15729
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15731
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15732
dlpath=$dir/\$dldll~
15734
shlibpath_overrides_runpath=yes
15738
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
15739
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15743
# MinGW DLLs use traditional 'lib' prefix
15744
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15747
# pw32 DLLs use 'pw' prefix rather than 'lib'
15748
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15751
dynamic_linker='Win32 ld.exe'
15756
libname_spec='$name'
15757
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15758
library_names_spec='${libname}.dll.lib'
15762
sys_lib_search_path_spec=
15765
for lt_path in $LIB
15768
# Let DOS variable expansion print the short 8.3 style file name.
15769
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15770
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15773
# Convert to MSYS style.
15774
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15777
# Convert to unix form, then to dos form, then back to unix form
15778
# but this time dos style (no spaces!) so that the unix form looks
15779
# like /cygdrive/c/PROGRA~1:/cygdr...
15780
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15781
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15782
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15785
sys_lib_search_path_spec="$LIB"
15786
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15787
# It is most probably a Windows format PATH.
15788
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15790
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15792
# FIXME: find the short name or the path components, as spaces are
15793
# common. (e.g. "Program Files" -> "PROGRA~1")
15797
# DLL is installed to $(libdir)/../bin by postinstall_cmds
15798
postinstall_cmds='base_file=`basename \${file}`~
15799
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15800
dldir=$destdir/`dirname \$dlpath`~
15801
test -d \$dldir || mkdir -p \$dldir~
15802
$install_prog $dir/$dlname \$dldir/$dlname'
15803
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15804
dlpath=$dir/\$dldll~
15806
shlibpath_overrides_runpath=yes
15807
dynamic_linker='Win32 link.exe'
15811
# Assume MSVC wrapper
15812
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15813
dynamic_linker='Win32 ld.exe'
15816
# FIXME: first we should search . and the directory the executable is in
15820
darwin* | rhapsody*)
15821
dynamic_linker="$host_os dyld"
15822
version_type=darwin
15825
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15826
soname_spec='${libname}${release}${major}$shared_ext'
15827
shlibpath_overrides_runpath=yes
15828
shlibpath_var=DYLD_LIBRARY_PATH
15829
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15831
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15835
version_type=linux # correct to gnu/linux during the next big refactor
15838
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15839
soname_spec='${libname}${release}${shared_ext}$major'
15840
shlibpath_var=LD_LIBRARY_PATH
15843
freebsd* | dragonfly*)
15844
# DragonFly does not have aout. When/if they implement a new
15845
# versioning mechanism, adjust this.
15846
if test -x /usr/bin/objformat; then
15847
objformat=`/usr/bin/objformat`
15850
freebsd[23].*) objformat=aout ;;
15851
*) objformat=elf ;;
15854
version_type=freebsd-$objformat
15855
case $version_type in
15857
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15862
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15866
shlibpath_var=LD_LIBRARY_PATH
15869
shlibpath_overrides_runpath=yes
15871
freebsd3.[01]* | freebsdelf3.[01]*)
15872
shlibpath_overrides_runpath=yes
15873
hardcode_into_libs=yes
15875
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15876
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15877
shlibpath_overrides_runpath=no
15878
hardcode_into_libs=yes
15880
*) # from 4.6 on, and DragonFly
15881
shlibpath_overrides_runpath=yes
15882
hardcode_into_libs=yes
15888
version_type=linux # correct to gnu/linux during the next big refactor
15891
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15892
soname_spec='${libname}${release}${shared_ext}$major'
15893
shlibpath_var=LD_LIBRARY_PATH
15894
shlibpath_overrides_runpath=no
15895
hardcode_into_libs=yes
15899
version_type=linux # correct to gnu/linux during the next big refactor
15902
dynamic_linker="$host_os runtime_loader"
15903
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15904
soname_spec='${libname}${release}${shared_ext}$major'
15905
shlibpath_var=LIBRARY_PATH
15906
shlibpath_overrides_runpath=yes
15907
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15908
hardcode_into_libs=yes
15911
hpux9* | hpux10* | hpux11*)
15912
# Give a soname corresponding to the major version so that dld.sl refuses to
15913
# link against other versions.
15920
hardcode_into_libs=yes
15921
dynamic_linker="$host_os dld.so"
15922
shlibpath_var=LD_LIBRARY_PATH
15923
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15924
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15925
soname_spec='${libname}${release}${shared_ext}$major'
15926
if test "X$HPUX_IA64_MODE" = X32; then
15927
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15929
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15931
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15935
hardcode_into_libs=yes
15936
dynamic_linker="$host_os dld.sl"
15937
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15938
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15939
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15940
soname_spec='${libname}${release}${shared_ext}$major'
15941
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15942
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15946
dynamic_linker="$host_os dld.sl"
15947
shlibpath_var=SHLIB_PATH
15948
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15949
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15950
soname_spec='${libname}${release}${shared_ext}$major'
15953
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15954
postinstall_cmds='chmod 555 $lib'
15955
# or fails outright, so override atomically:
15956
install_override_mode=555
15960
version_type=linux # correct to gnu/linux during the next big refactor
15963
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15964
soname_spec='${libname}${release}${shared_ext}$major'
15965
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15966
shlibpath_var=LD_LIBRARY_PATH
15967
shlibpath_overrides_runpath=no
15968
hardcode_into_libs=yes
15971
irix5* | irix6* | nonstopux*)
15973
nonstopux*) version_type=nonstopux ;;
15975
if test "$lt_cv_prog_gnu_ld" = yes; then
15976
version_type=linux # correct to gnu/linux during the next big refactor
15983
soname_spec='${libname}${release}${shared_ext}$major'
15984
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15986
irix5* | nonstopux*)
15987
libsuff= shlibsuff=
15990
case $LD in # libtool.m4 will add one of these switches to LD
15991
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15992
libsuff= shlibsuff= libmagic=32-bit;;
15993
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15994
libsuff=32 shlibsuff=N32 libmagic=N32;;
15995
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15996
libsuff=64 shlibsuff=64 libmagic=64-bit;;
15997
*) libsuff= shlibsuff= libmagic=never-match;;
16001
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16002
shlibpath_overrides_runpath=no
16003
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16004
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16005
hardcode_into_libs=yes
16008
# No shared lib support for Linux oldld, aout, or coff.
16009
linux*oldld* | linux*aout* | linux*coff*)
16013
# This must be glibc/ELF.
16014
linux* | k*bsd*-gnu | kopensolaris*-gnu)
16015
version_type=linux # correct to gnu/linux during the next big refactor
16018
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16019
soname_spec='${libname}${release}${shared_ext}$major'
16020
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16021
shlibpath_var=LD_LIBRARY_PATH
16022
shlibpath_overrides_runpath=no
16024
# Some binutils ld are patched to set DT_RUNPATH
16025
if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16026
$as_echo_n "(cached) " >&6
16028
lt_cv_shlibpath_overrides_runpath=no
16029
save_LDFLAGS=$LDFLAGS
16030
save_libdir=$libdir
16031
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16032
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16033
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16034
/* end confdefs.h. */
16044
if ac_fn_cxx_try_link "$LINENO"; then :
16045
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16046
lt_cv_shlibpath_overrides_runpath=yes
16049
rm -f core conftest.err conftest.$ac_objext \
16050
conftest$ac_exeext conftest.$ac_ext
16051
LDFLAGS=$save_LDFLAGS
16052
libdir=$save_libdir
16056
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16058
# This implies no fast_install, which is unacceptable.
16059
# Some rework will be needed to allow for fast_install
16060
# before this can be enabled.
16061
hardcode_into_libs=yes
16063
# Add ABI-specific directories to the system library path.
16064
sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16066
# Append ld.so.conf contents to the search path
16067
if test -f /etc/ld.so.conf; then
16068
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
16069
sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
16073
# We used to test for /lib/ld.so.1 and disable shared libraries on
16074
# powerpc, because MkLinux only supported shared libraries with the
16075
# GNU dynamic linker. Since this was broken with cross compilers,
16076
# most powerpc-linux boxes support dynamic linking these days and
16077
# people can always --disable-shared, the test was removed, and we
16078
# assume the GNU/Linux dynamic linker is in use.
16079
dynamic_linker='GNU/Linux ld.so'
16086
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16087
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16088
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16089
dynamic_linker='NetBSD (a.out) ld.so'
16091
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16092
soname_spec='${libname}${release}${shared_ext}$major'
16093
dynamic_linker='NetBSD ld.elf_so'
16095
shlibpath_var=LD_LIBRARY_PATH
16096
shlibpath_overrides_runpath=yes
16097
hardcode_into_libs=yes
16101
version_type=linux # correct to gnu/linux during the next big refactor
16102
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16103
shlibpath_var=LD_LIBRARY_PATH
16104
shlibpath_overrides_runpath=yes
16111
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16112
soname_spec='${libname}${release}${shared_ext}$major'
16113
shlibpath_var=LD_LIBRARY_PATH
16114
shlibpath_overrides_runpath=no
16115
hardcode_into_libs=yes
16116
dynamic_linker='ldqnx.so'
16121
sys_lib_dlsearch_path_spec="/usr/lib"
16123
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16125
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16126
*) need_version=no ;;
16128
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16129
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16130
shlibpath_var=LD_LIBRARY_PATH
16131
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16133
openbsd2.[89] | openbsd2.[89].*)
16134
shlibpath_overrides_runpath=no
16137
shlibpath_overrides_runpath=yes
16141
shlibpath_overrides_runpath=yes
16146
libname_spec='$name'
16149
library_names_spec='$libname${shared_ext} $libname.a'
16150
dynamic_linker='OS/2 ld.exe'
16151
shlibpath_var=LIBPATH
16154
osf3* | osf4* | osf5*)
16158
soname_spec='${libname}${release}${shared_ext}$major'
16159
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16160
shlibpath_var=LD_LIBRARY_PATH
16161
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16162
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16170
version_type=linux # correct to gnu/linux during the next big refactor
16173
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16174
soname_spec='${libname}${release}${shared_ext}$major'
16175
shlibpath_var=LD_LIBRARY_PATH
16176
shlibpath_overrides_runpath=yes
16177
hardcode_into_libs=yes
16178
# ldd complains unless libraries are executable
16179
postinstall_cmds='chmod +x $lib'
16184
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16185
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16186
shlibpath_var=LD_LIBRARY_PATH
16187
shlibpath_overrides_runpath=yes
16188
if test "$with_gnu_ld" = yes; then
16195
version_type=linux # correct to gnu/linux during the next big refactor
16196
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16197
soname_spec='${libname}${release}${shared_ext}$major'
16198
shlibpath_var=LD_LIBRARY_PATH
16199
case $host_vendor in
16201
shlibpath_overrides_runpath=no
16203
runpath_var=LD_RUN_PATH
16211
shlibpath_overrides_runpath=no
16212
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16218
if test -d /usr/nec ;then
16219
version_type=linux # correct to gnu/linux during the next big refactor
16220
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16221
soname_spec='$libname${shared_ext}.$major'
16222
shlibpath_var=LD_LIBRARY_PATH
16226
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16227
version_type=freebsd-elf
16230
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16231
soname_spec='${libname}${release}${shared_ext}$major'
16232
shlibpath_var=LD_LIBRARY_PATH
16233
shlibpath_overrides_runpath=yes
16234
hardcode_into_libs=yes
16235
if test "$with_gnu_ld" = yes; then
16236
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16238
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16241
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16245
sys_lib_dlsearch_path_spec='/usr/lib'
16249
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16250
version_type=linux # correct to gnu/linux during the next big refactor
16253
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16254
shlibpath_var=LD_LIBRARY_PATH
16255
shlibpath_overrides_runpath=no
16256
hardcode_into_libs=yes
16260
version_type=linux # correct to gnu/linux during the next big refactor
16261
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16262
soname_spec='${libname}${release}${shared_ext}$major'
16263
shlibpath_var=LD_LIBRARY_PATH
16270
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16271
$as_echo "$dynamic_linker" >&6; }
16272
test "$dynamic_linker" = no && can_build_shared=no
16274
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16275
if test "$GCC" = yes; then
16276
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16279
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16280
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16282
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16283
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16323
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16324
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16325
hardcode_action_CXX=
16326
if test -n "$hardcode_libdir_flag_spec_CXX" ||
16327
test -n "$runpath_var_CXX" ||
16328
test "X$hardcode_automatic_CXX" = "Xyes" ; then
16330
# We can hardcode non-existent directories.
16331
if test "$hardcode_direct_CXX" != no &&
16332
# If the only mechanism to avoid hardcoding is shlibpath_var, we
16333
# have to relink, otherwise we might link with an installed library
16334
# when we should be linking with a yet-to-be-installed one
16335
## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16336
test "$hardcode_minus_L_CXX" != no; then
16337
# Linking always hardcodes the temporary library directory.
16338
hardcode_action_CXX=relink
16340
# We can link without hardcoding, and we can hardcode nonexisting dirs.
16341
hardcode_action_CXX=immediate
16344
# We cannot hardcode anything, or else we can only hardcode existing
16346
hardcode_action_CXX=unsupported
16348
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16349
$as_echo "$hardcode_action_CXX" >&6; }
16351
if test "$hardcode_action_CXX" = relink ||
16352
test "$inherit_rpath_CXX" = yes; then
16353
# Fast installation is not supported
16354
enable_fast_install=no
16355
elif test "$shlibpath_overrides_runpath" = yes ||
16356
test "$enable_shared" = no; then
16357
# Fast installation is not necessary
16358
enable_fast_install=needless
16367
fi # test -n "$compiler"
16370
CFLAGS=$lt_save_CFLAGS
16374
with_gnu_ld=$lt_save_with_gnu_ld
16375
lt_cv_path_LDCXX=$lt_cv_path_LD
16376
lt_cv_path_LD=$lt_save_path_LD
16377
lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16378
lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16379
fi # test "$_lt_caught_CXX_error" != yes
16382
ac_cpp='$CPP $CPPFLAGS'
16383
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16384
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16385
ac_compiler_gnu=$ac_cv_c_compiler_gnu
16401
ac_config_commands="$ac_config_commands libtool"
16406
# Only expand once:
16409
if test "$ac_cv_prog_AR" = false; then
16410
as_fn_error $? "The 'ar' utility was not found. Please put ar on the path." "$LINENO" 5
16413
# We use pkg-config to set up the cflags and libs for gtk.
16414
# Extract the first word of "pkg-config", so it can be a program name with args.
16415
set dummy pkg-config; ac_word=$2
16416
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16417
$as_echo_n "checking for $ac_word... " >&6; }
16418
if ${ac_cv_prog_HAVE_PKG_CONFIG+:} false; then :
16419
$as_echo_n "(cached) " >&6
16421
if test -n "$HAVE_PKG_CONFIG"; then
16422
ac_cv_prog_HAVE_PKG_CONFIG="$HAVE_PKG_CONFIG" # Let the user override the test.
16424
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16425
for as_dir in $PATH
16428
test -z "$as_dir" && as_dir=.
16429
for ac_exec_ext in '' $ac_executable_extensions; do
16430
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16431
ac_cv_prog_HAVE_PKG_CONFIG="yes"
16432
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16439
test -z "$ac_cv_prog_HAVE_PKG_CONFIG" && ac_cv_prog_HAVE_PKG_CONFIG="no"
16442
HAVE_PKG_CONFIG=$ac_cv_prog_HAVE_PKG_CONFIG
16443
if test -n "$HAVE_PKG_CONFIG"; then
16444
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_PKG_CONFIG" >&5
16445
$as_echo "$HAVE_PKG_CONFIG" >&6; }
16447
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16448
$as_echo "no" >&6; }
16453
if test "$GCC" != "yes"; then
16454
as_fn_error $? "Only GCC is currently supported. Please put gcc in the path." "$LINENO" 5
16461
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
16462
$as_echo_n "checking for X... " >&6; }
16465
# Check whether --with-x was given.
16466
if test "${with_x+set}" = set; then :
16470
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
16471
if test "x$with_x" = xno; then
16472
# The user explicitly disabled X.
16475
case $x_includes,$x_libraries in #(
16476
*\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
16477
*,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
16478
$as_echo_n "(cached) " >&6
16480
# One or both of the vars are not set, and there is no cached value.
16481
ac_x_includes=no ac_x_libraries=no
16482
rm -f -r conftest.dir
16483
if mkdir conftest.dir; then
16485
cat >Imakefile <<'_ACEOF'
16487
@echo incroot='${INCROOT}'
16489
@echo usrlibdir='${USRLIBDIR}'
16491
@echo libdir='${LIBDIR}'
16493
if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
16494
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16495
for ac_var in incroot usrlibdir libdir; do
16496
eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
16498
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
16499
for ac_extension in a so sl dylib la dll; do
16500
if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
16501
test -f "$ac_im_libdir/libX11.$ac_extension"; then
16502
ac_im_usrlibdir=$ac_im_libdir; break
16505
# Screen out bogus values from the imake configuration. They are
16506
# bogus both because they are the default anyway, and because
16507
# using them would break gcc on systems where it needs fixed includes.
16508
case $ac_im_incroot in
16509
/usr/include) ac_x_includes= ;;
16510
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
16512
case $ac_im_usrlibdir in
16513
/usr/lib | /usr/lib64 | /lib | /lib64) ;;
16514
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
16518
rm -f -r conftest.dir
16521
# Standard set of common directories for X headers.
16522
# Check X11 before X11Rn because it is often a symlink to the current release.
16536
/usr/local/X11/include
16537
/usr/local/X11R7/include
16538
/usr/local/X11R6/include
16539
/usr/local/X11R5/include
16540
/usr/local/X11R4/include
16542
/usr/local/include/X11
16543
/usr/local/include/X11R7
16544
/usr/local/include/X11R6
16545
/usr/local/include/X11R5
16546
/usr/local/include/X11R4
16550
/usr/XFree86/include/X11
16554
/usr/unsupported/include
16555
/usr/athena/include
16556
/usr/local/x11r5/include
16557
/usr/lpp/Xamples/include
16559
/usr/openwin/include
16560
/usr/openwin/share/include'
16562
if test "$ac_x_includes" = no; then
16563
# Guess where to find include files, by looking for Xlib.h.
16564
# First, try using that file with no special directory specified.
16565
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16566
/* end confdefs.h. */
16567
#include <X11/Xlib.h>
16569
if ac_fn_c_try_cpp "$LINENO"; then :
16570
# We can compile using X headers with no special include directory.
16573
for ac_dir in $ac_x_header_dirs; do
16574
if test -r "$ac_dir/X11/Xlib.h"; then
16575
ac_x_includes=$ac_dir
16580
rm -f conftest.err conftest.i conftest.$ac_ext
16581
fi # $ac_x_includes = no
16583
if test "$ac_x_libraries" = no; then
16584
# Check for the libraries.
16585
# See if we find them without any special options.
16586
# Don't add to $LIBS permanently.
16589
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16590
/* end confdefs.h. */
16591
#include <X11/Xlib.h>
16600
if ac_fn_c_try_link "$LINENO"; then :
16602
# We can link X programs with no special library path.
16606
for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
16608
# Don't even attempt the hair of trying to link an X program!
16609
for ac_extension in a so sl dylib la dll; do
16610
if test -r "$ac_dir/libX11.$ac_extension"; then
16611
ac_x_libraries=$ac_dir
16617
rm -f core conftest.err conftest.$ac_objext \
16618
conftest$ac_exeext conftest.$ac_ext
16619
fi # $ac_x_libraries = no
16621
case $ac_x_includes,$ac_x_libraries in #(
16622
no,* | *,no | *\'*)
16623
# Didn't find X, or a directory has "'" in its name.
16624
ac_cv_have_x="have_x=no";; #(
16626
# Record where we found X for the cache.
16627
ac_cv_have_x="have_x=yes\
16628
ac_x_includes='$ac_x_includes'\
16629
ac_x_libraries='$ac_x_libraries'"
16635
eval "$ac_cv_have_x"
16638
if test "$have_x" != yes; then
16639
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
16640
$as_echo "$have_x" >&6; }
16643
# If each of the values was on the command line, it overrides each guess.
16644
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
16645
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
16646
# Update the cache value to reflect the command line values.
16647
ac_cv_have_x="have_x=yes\
16648
ac_x_includes='$x_includes'\
16649
ac_x_libraries='$x_libraries'"
16650
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
16651
$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
16654
if test "$no_x" = yes; then
16655
# Not all programs may use this symbol, but it does not hurt to define it.
16657
$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
16659
X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
16661
if test -n "$x_includes"; then
16662
X_CFLAGS="$X_CFLAGS -I$x_includes"
16665
# It would also be nice to do this for all -L options, not just this one.
16666
if test -n "$x_libraries"; then
16667
X_LIBS="$X_LIBS -L$x_libraries"
16668
# For Solaris; some versions of Sun CC require a space after -R and
16669
# others require no space. Words are not sufficient . . . .
16670
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
16671
$as_echo_n "checking whether -R must be followed by a space... " >&6; }
16672
ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
16673
ac_xsave_c_werror_flag=$ac_c_werror_flag
16674
ac_c_werror_flag=yes
16675
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16676
/* end confdefs.h. */
16686
if ac_fn_c_try_link "$LINENO"; then :
16687
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16688
$as_echo "no" >&6; }
16689
X_LIBS="$X_LIBS -R$x_libraries"
16691
LIBS="$ac_xsave_LIBS -R $x_libraries"
16692
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16693
/* end confdefs.h. */
16703
if ac_fn_c_try_link "$LINENO"; then :
16704
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16705
$as_echo "yes" >&6; }
16706
X_LIBS="$X_LIBS -R $x_libraries"
16708
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
16709
$as_echo "neither works" >&6; }
16711
rm -f core conftest.err conftest.$ac_objext \
16712
conftest$ac_exeext conftest.$ac_ext
16714
rm -f core conftest.err conftest.$ac_objext \
16715
conftest$ac_exeext conftest.$ac_ext
16716
ac_c_werror_flag=$ac_xsave_c_werror_flag
16717
LIBS=$ac_xsave_LIBS
16720
# Check for system-dependent libraries X programs must link with.
16721
# Do this before checking for the system-independent R6 libraries
16722
# (-lICE), since we may need -lsocket or whatever for X linking.
16724
if test "$ISC" = yes; then
16725
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
16727
# Martyn Johnson says this is needed for Ultrix, if the X
16728
# libraries were built with DECnet support. And Karl Berry says
16729
# the Alpha needs dnet_stub (dnet does not exist).
16730
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
16731
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16732
/* end confdefs.h. */
16734
/* Override any GCC internal prototype to avoid an error.
16735
Use char because int might match the return type of a GCC
16736
builtin and then its argument prototype would still apply. */
16740
char XOpenDisplay ();
16744
return XOpenDisplay ();
16749
if ac_fn_c_try_link "$LINENO"; then :
16752
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
16753
$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
16754
if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
16755
$as_echo_n "(cached) " >&6
16757
ac_check_lib_save_LIBS=$LIBS
16758
LIBS="-ldnet $LIBS"
16759
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16760
/* end confdefs.h. */
16762
/* Override any GCC internal prototype to avoid an error.
16763
Use char because int might match the return type of a GCC
16764
builtin and then its argument prototype would still apply. */
16772
return dnet_ntoa ();
16777
if ac_fn_c_try_link "$LINENO"; then :
16778
ac_cv_lib_dnet_dnet_ntoa=yes
16780
ac_cv_lib_dnet_dnet_ntoa=no
16782
rm -f core conftest.err conftest.$ac_objext \
16783
conftest$ac_exeext conftest.$ac_ext
16784
LIBS=$ac_check_lib_save_LIBS
16786
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
16787
$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
16788
if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
16789
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
16792
if test $ac_cv_lib_dnet_dnet_ntoa = no; then
16793
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
16794
$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
16795
if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
16796
$as_echo_n "(cached) " >&6
16798
ac_check_lib_save_LIBS=$LIBS
16799
LIBS="-ldnet_stub $LIBS"
16800
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16801
/* end confdefs.h. */
16803
/* Override any GCC internal prototype to avoid an error.
16804
Use char because int might match the return type of a GCC
16805
builtin and then its argument prototype would still apply. */
16813
return dnet_ntoa ();
16818
if ac_fn_c_try_link "$LINENO"; then :
16819
ac_cv_lib_dnet_stub_dnet_ntoa=yes
16821
ac_cv_lib_dnet_stub_dnet_ntoa=no
16823
rm -f core conftest.err conftest.$ac_objext \
16824
conftest$ac_exeext conftest.$ac_ext
16825
LIBS=$ac_check_lib_save_LIBS
16827
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
16828
$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
16829
if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
16830
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
16835
rm -f core conftest.err conftest.$ac_objext \
16836
conftest$ac_exeext conftest.$ac_ext
16837
LIBS="$ac_xsave_LIBS"
16839
# msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
16840
# to get the SysV transport functions.
16841
# Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
16843
# The nsl library prevents programs from opening the X display
16844
# on Irix 5.2, according to T.E. Dickey.
16845
# The functions gethostbyname, getservbyname, and inet_addr are
16846
# in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
16847
ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
16848
if test "x$ac_cv_func_gethostbyname" = xyes; then :
16852
if test $ac_cv_func_gethostbyname = no; then
16853
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
16854
$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
16855
if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
16856
$as_echo_n "(cached) " >&6
16858
ac_check_lib_save_LIBS=$LIBS
16860
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16861
/* end confdefs.h. */
16863
/* Override any GCC internal prototype to avoid an error.
16864
Use char because int might match the return type of a GCC
16865
builtin and then its argument prototype would still apply. */
16869
char gethostbyname ();
16873
return gethostbyname ();
16878
if ac_fn_c_try_link "$LINENO"; then :
16879
ac_cv_lib_nsl_gethostbyname=yes
16881
ac_cv_lib_nsl_gethostbyname=no
16883
rm -f core conftest.err conftest.$ac_objext \
16884
conftest$ac_exeext conftest.$ac_ext
16885
LIBS=$ac_check_lib_save_LIBS
16887
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
16888
$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
16889
if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
16890
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
16893
if test $ac_cv_lib_nsl_gethostbyname = no; then
16894
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
16895
$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
16896
if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
16897
$as_echo_n "(cached) " >&6
16899
ac_check_lib_save_LIBS=$LIBS
16901
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16902
/* end confdefs.h. */
16904
/* Override any GCC internal prototype to avoid an error.
16905
Use char because int might match the return type of a GCC
16906
builtin and then its argument prototype would still apply. */
16910
char gethostbyname ();
16914
return gethostbyname ();
16919
if ac_fn_c_try_link "$LINENO"; then :
16920
ac_cv_lib_bsd_gethostbyname=yes
16922
ac_cv_lib_bsd_gethostbyname=no
16924
rm -f core conftest.err conftest.$ac_objext \
16925
conftest$ac_exeext conftest.$ac_ext
16926
LIBS=$ac_check_lib_save_LIBS
16928
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
16929
$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
16930
if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
16931
X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
16937
# lieder@skyler.mavd.honeywell.com says without -lsocket,
16938
# socket/setsockopt and other routines are undefined under SCO ODT
16939
# 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
16940
# on later versions), says Simon Leinen: it contains gethostby*
16941
# variants that don't use the name server (or something). -lsocket
16942
# must be given before -lnsl if both are needed. We assume that
16943
# if connect needs -lnsl, so does gethostbyname.
16944
ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
16945
if test "x$ac_cv_func_connect" = xyes; then :
16949
if test $ac_cv_func_connect = no; then
16950
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
16951
$as_echo_n "checking for connect in -lsocket... " >&6; }
16952
if ${ac_cv_lib_socket_connect+:} false; then :
16953
$as_echo_n "(cached) " >&6
16955
ac_check_lib_save_LIBS=$LIBS
16956
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
16957
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16958
/* end confdefs.h. */
16960
/* Override any GCC internal prototype to avoid an error.
16961
Use char because int might match the return type of a GCC
16962
builtin and then its argument prototype would still apply. */
16975
if ac_fn_c_try_link "$LINENO"; then :
16976
ac_cv_lib_socket_connect=yes
16978
ac_cv_lib_socket_connect=no
16980
rm -f core conftest.err conftest.$ac_objext \
16981
conftest$ac_exeext conftest.$ac_ext
16982
LIBS=$ac_check_lib_save_LIBS
16984
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
16985
$as_echo "$ac_cv_lib_socket_connect" >&6; }
16986
if test "x$ac_cv_lib_socket_connect" = xyes; then :
16987
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
16992
# Guillermo Gomez says -lposix is necessary on A/UX.
16993
ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
16994
if test "x$ac_cv_func_remove" = xyes; then :
16998
if test $ac_cv_func_remove = no; then
16999
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
17000
$as_echo_n "checking for remove in -lposix... " >&6; }
17001
if ${ac_cv_lib_posix_remove+:} false; then :
17002
$as_echo_n "(cached) " >&6
17004
ac_check_lib_save_LIBS=$LIBS
17005
LIBS="-lposix $LIBS"
17006
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17007
/* end confdefs.h. */
17009
/* Override any GCC internal prototype to avoid an error.
17010
Use char because int might match the return type of a GCC
17011
builtin and then its argument prototype would still apply. */
17024
if ac_fn_c_try_link "$LINENO"; then :
17025
ac_cv_lib_posix_remove=yes
17027
ac_cv_lib_posix_remove=no
17029
rm -f core conftest.err conftest.$ac_objext \
17030
conftest$ac_exeext conftest.$ac_ext
17031
LIBS=$ac_check_lib_save_LIBS
17033
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
17034
$as_echo "$ac_cv_lib_posix_remove" >&6; }
17035
if test "x$ac_cv_lib_posix_remove" = xyes; then :
17036
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
17041
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
17042
ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
17043
if test "x$ac_cv_func_shmat" = xyes; then :
17047
if test $ac_cv_func_shmat = no; then
17048
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
17049
$as_echo_n "checking for shmat in -lipc... " >&6; }
17050
if ${ac_cv_lib_ipc_shmat+:} false; then :
17051
$as_echo_n "(cached) " >&6
17053
ac_check_lib_save_LIBS=$LIBS
17055
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17056
/* end confdefs.h. */
17058
/* Override any GCC internal prototype to avoid an error.
17059
Use char because int might match the return type of a GCC
17060
builtin and then its argument prototype would still apply. */
17073
if ac_fn_c_try_link "$LINENO"; then :
17074
ac_cv_lib_ipc_shmat=yes
17076
ac_cv_lib_ipc_shmat=no
17078
rm -f core conftest.err conftest.$ac_objext \
17079
conftest$ac_exeext conftest.$ac_ext
17080
LIBS=$ac_check_lib_save_LIBS
17082
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
17083
$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
17084
if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
17085
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
17091
# Check for libraries that X11R6 Xt/Xaw programs need.
17092
ac_save_LDFLAGS=$LDFLAGS
17093
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
17094
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
17095
# check for ICE first), but we must link in the order -lSM -lICE or
17096
# we get undefined symbols. So assume we have SM if we have ICE.
17097
# These have to be linked with before -lX11, unlike the other
17098
# libraries we check for below, so use a different variable.
17099
# John Interrante, Karl Berry
17100
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
17101
$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
17102
if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
17103
$as_echo_n "(cached) " >&6
17105
ac_check_lib_save_LIBS=$LIBS
17106
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
17107
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17108
/* end confdefs.h. */
17110
/* Override any GCC internal prototype to avoid an error.
17111
Use char because int might match the return type of a GCC
17112
builtin and then its argument prototype would still apply. */
17116
char IceConnectionNumber ();
17120
return IceConnectionNumber ();
17125
if ac_fn_c_try_link "$LINENO"; then :
17126
ac_cv_lib_ICE_IceConnectionNumber=yes
17128
ac_cv_lib_ICE_IceConnectionNumber=no
17130
rm -f core conftest.err conftest.$ac_objext \
17131
conftest$ac_exeext conftest.$ac_ext
17132
LIBS=$ac_check_lib_save_LIBS
17134
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
17135
$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
17136
if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
17137
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
17140
LDFLAGS=$ac_save_LDFLAGS
17146
# Check for libintl.h. When configuring using "--without-x", /usr/local/include
17147
# may not be added to the include path, so code that use glib's i18n functions
17148
# would fail to compile because it can't find libintl.h.
17150
ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
17151
if test "x$ac_cv_header_libintl_h" = xyes; then :
17158
if test "$have_libintl" = "no"; then
17159
unset ac_cv_header_libintl_h
17160
CPPFLAGS="$CPPFLAGS -I/usr/local/include"
17161
ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
17162
if test "x$ac_cv_header_libintl_h" = xyes; then :
17165
as_fn_error $? "libintl.h not found. Make sure you have the gettext headers installed." "$LINENO" 5
17172
# Check for glib 2.6.0 or greater.
17176
if test -z "glib-2.0"; then
17177
as_fn_error $? "'library' parameter is required.'" "$LINENO" 5
17179
if test -z "GLIB2"; then
17180
as_fn_error $? "'lvar' parameter is required.'" "$LINENO" 5
17184
ac_vmw_have_lib_func=0
17185
ac_vmw_have_lib_header=0
17186
ac_vmw_custom_libs=
17189
# First, try any user-defined CUSTOM_* flags.
17191
if test -n "${CUSTOM_GLIB2_CPPFLAGS}" || test -n "${CUSTOM_GLIB2_LIBS}"; then
17192
ac_vmw_custom_libs="${CUSTOM_GLIB2_LIBS} -lglib-2.0"
17193
if test -n "glib.h"; then
17194
ORIGINAL_CPPFLAGS="$CPPFLAGS"
17195
CPPFLAGS="${CUSTOM_GLIB2_CPPFLAGS} $CPPFLAGS"
17197
ac_fn_c_check_header_mongrel "$LINENO" "glib.h" "ac_cv_header_glib_h" "$ac_includes_default"
17198
if test "x$ac_cv_header_glib_h" = xyes; then :
17199
ac_vmw_have_lib_header=1
17204
CPPFLAGS="$ORIGINAL_CPPFLAGS"
17206
ac_vmw_have_lib_header=1
17209
# Check a specific function in the library if requested.
17210
# If it hasn't, just pick a random function from libc, just to make
17211
# sure the linker can find the library being tested.
17212
if test $ac_vmw_have_lib_header -eq 1; then
17213
if test -n "g_key_file_new"; then
17214
ac_vmw_function=g_key_file_new
17216
ac_vmw_function=strlen
17218
as_ac_Lib=`$as_echo "ac_cv_lib_glib-2.0_$ac_vmw_function" | $as_tr_sh`
17219
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_vmw_function in -lglib-2.0" >&5
17220
$as_echo_n "checking for $ac_vmw_function in -lglib-2.0... " >&6; }
17221
if eval \${$as_ac_Lib+:} false; then :
17222
$as_echo_n "(cached) " >&6
17224
ac_check_lib_save_LIBS=$LIBS
17225
LIBS="-lglib-2.0 $ac_vmw_custom_libs $LIBS"
17226
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17227
/* end confdefs.h. */
17229
/* Override any GCC internal prototype to avoid an error.
17230
Use char because int might match the return type of a GCC
17231
builtin and then its argument prototype would still apply. */
17235
char $ac_vmw_function ();
17239
return $ac_vmw_function ();
17244
if ac_fn_c_try_link "$LINENO"; then :
17245
eval "$as_ac_Lib=yes"
17247
eval "$as_ac_Lib=no"
17249
rm -f core conftest.err conftest.$ac_objext \
17250
conftest$ac_exeext conftest.$ac_ext
17251
LIBS=$ac_check_lib_save_LIBS
17253
eval ac_res=\$$as_ac_Lib
17254
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17255
$as_echo "$ac_res" >&6; }
17256
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
17257
ac_vmw_have_lib_func=1
17262
if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
17263
GLIB2_CPPFLAGS="${CUSTOM_GLIB2_CPPFLAGS}"
17264
GLIB2_LIBS="$ac_vmw_custom_libs"
17269
# If that didn't work, try with pkg-config.
17270
if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n "glib-2.0"; then
17271
if test -n "2.6.0"; then
17272
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.6.0 (via pkg-config)" >&5
17273
$as_echo_n "checking for glib-2.0 >= 2.6.0 (via pkg-config)... " >&6; }
17274
if pkg-config --exists 'glib-2.0 >= 2.6.0'; then
17278
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 (via pkg-config)" >&5
17279
$as_echo_n "checking for glib-2.0 (via pkg-config)... " >&6; }
17280
if pkg-config --exists 'glib-2.0'; then
17285
if test $ac_vmw_have_lib -eq 1; then
17286
# Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
17287
# fails on OpenSolaris B71. So be pessimistic.
17288
ac_vmw_cppflags="`pkg-config --cflags glib-2.0`"
17290
ac_vmw_libs="`pkg-config --libs glib-2.0`"
17292
if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
17293
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17294
$as_echo "yes" >&6; }
17295
GLIB2_CPPFLAGS="$ac_vmw_cppflags"
17296
GLIB2_LIBS="$ac_vmw_libs"
17298
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17299
$as_echo "no" >&6; }
17302
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17303
$as_echo "no" >&6; }
17307
# If we still haven't found the lib, try with the library's custom "config" script.
17308
# Before checking, flush the AC_PATH_PROG cached variable.
17309
unset ac_cv_path_ac_vmw_lib_cfg
17310
unset ac_vmw_lib_cfg
17311
if test $ac_vmw_have_lib -eq 0 && test -n ""; then
17312
# Extract the first word of "", so it can be a program name with args.
17313
set dummy ; ac_word=$2
17314
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17315
$as_echo_n "checking for $ac_word... " >&6; }
17316
if ${ac_cv_path_ac_vmw_lib_cfg+:} false; then :
17317
$as_echo_n "(cached) " >&6
17319
case $ac_vmw_lib_cfg in
17321
ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
17324
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17325
for as_dir in $PATH
17328
test -z "$as_dir" && as_dir=.
17329
for ac_exec_ext in '' $ac_executable_extensions; do
17330
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17331
ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
17332
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17339
test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
17343
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
17344
if test -n "$ac_vmw_lib_cfg"; then
17345
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_vmw_lib_cfg" >&5
17346
$as_echo "$ac_vmw_lib_cfg" >&6; }
17348
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17349
$as_echo "no" >&6; }
17353
if test "$ac_vmw_lib_cfg" != "no"; then
17354
# XXX: icu-config does not follow the "--cflags" and "--libs" convention,
17355
# so single it out here to avoid having to replicate all the rest of the
17357
if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
17358
GLIB2_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
17359
GLIB2_LIBS="`$ac_vmw_lib_cfg --ldflags`"
17361
GLIB2_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
17362
GLIB2_LIBS="`$ac_vmw_lib_cfg --libs`"
17368
# Finish by executing the user provided action. The call to "true" is needed
17369
# because the actions are optional, and we need something inside the block.
17370
if test $ac_vmw_have_lib -eq 1; then
17377
as_fn_error $? "glib >= 2.6.0 is required." "$LINENO" 5
17382
if test -z "gmodule-2.0"; then
17383
as_fn_error $? "'library' parameter is required.'" "$LINENO" 5
17385
if test -z "GMODULE"; then
17386
as_fn_error $? "'lvar' parameter is required.'" "$LINENO" 5
17390
ac_vmw_have_lib_func=0
17391
ac_vmw_have_lib_header=0
17392
ac_vmw_custom_libs=
17395
# First, try any user-defined CUSTOM_* flags.
17397
if test -n "${CUSTOM_GMODULE_CPPFLAGS}" || test -n "${CUSTOM_GMODULE_LIBS}"; then
17398
ac_vmw_custom_libs="${CUSTOM_GMODULE_LIBS} -lgmodule-2.0"
17399
if test -n ""; then
17400
ORIGINAL_CPPFLAGS="$CPPFLAGS"
17401
CPPFLAGS="${CUSTOM_GMODULE_CPPFLAGS} $CPPFLAGS"
17403
ac_fn_c_check_header_mongrel "$LINENO" "" "ac_cv_header_" "$ac_includes_default"
17404
if test "x$ac_cv_header_" = xyes; then :
17405
ac_vmw_have_lib_header=1
17410
CPPFLAGS="$ORIGINAL_CPPFLAGS"
17412
ac_vmw_have_lib_header=1
17415
# Check a specific function in the library if requested.
17416
# If it hasn't, just pick a random function from libc, just to make
17417
# sure the linker can find the library being tested.
17418
if test $ac_vmw_have_lib_header -eq 1; then
17419
if test -n ""; then
17422
ac_vmw_function=strlen
17424
as_ac_Lib=`$as_echo "ac_cv_lib_gmodule-2.0_$ac_vmw_function" | $as_tr_sh`
17425
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_vmw_function in -lgmodule-2.0" >&5
17426
$as_echo_n "checking for $ac_vmw_function in -lgmodule-2.0... " >&6; }
17427
if eval \${$as_ac_Lib+:} false; then :
17428
$as_echo_n "(cached) " >&6
17430
ac_check_lib_save_LIBS=$LIBS
17431
LIBS="-lgmodule-2.0 $ac_vmw_custom_libs $LIBS"
17432
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17433
/* end confdefs.h. */
17435
/* Override any GCC internal prototype to avoid an error.
17436
Use char because int might match the return type of a GCC
17437
builtin and then its argument prototype would still apply. */
17441
char $ac_vmw_function ();
17445
return $ac_vmw_function ();
17450
if ac_fn_c_try_link "$LINENO"; then :
17451
eval "$as_ac_Lib=yes"
17453
eval "$as_ac_Lib=no"
17455
rm -f core conftest.err conftest.$ac_objext \
17456
conftest$ac_exeext conftest.$ac_ext
17457
LIBS=$ac_check_lib_save_LIBS
17459
eval ac_res=\$$as_ac_Lib
17460
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17461
$as_echo "$ac_res" >&6; }
17462
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
17463
ac_vmw_have_lib_func=1
17468
if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
17469
GMODULE_CPPFLAGS="${CUSTOM_GMODULE_CPPFLAGS}"
17470
GMODULE_LIBS="$ac_vmw_custom_libs"
17475
# If that didn't work, try with pkg-config.
17476
if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n "gmodule-2.0"; then
17477
if test -n "2.6.0"; then
17478
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmodule-2.0 >= 2.6.0 (via pkg-config)" >&5
17479
$as_echo_n "checking for gmodule-2.0 >= 2.6.0 (via pkg-config)... " >&6; }
17480
if pkg-config --exists 'gmodule-2.0 >= 2.6.0'; then
17484
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmodule-2.0 (via pkg-config)" >&5
17485
$as_echo_n "checking for gmodule-2.0 (via pkg-config)... " >&6; }
17486
if pkg-config --exists 'gmodule-2.0'; then
17491
if test $ac_vmw_have_lib -eq 1; then
17492
# Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
17493
# fails on OpenSolaris B71. So be pessimistic.
17494
ac_vmw_cppflags="`pkg-config --cflags gmodule-2.0`"
17496
ac_vmw_libs="`pkg-config --libs gmodule-2.0`"
17498
if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
17499
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17500
$as_echo "yes" >&6; }
17501
GMODULE_CPPFLAGS="$ac_vmw_cppflags"
17502
GMODULE_LIBS="$ac_vmw_libs"
17504
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17505
$as_echo "no" >&6; }
17508
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17509
$as_echo "no" >&6; }
17513
# If we still haven't found the lib, try with the library's custom "config" script.
17514
# Before checking, flush the AC_PATH_PROG cached variable.
17515
unset ac_cv_path_ac_vmw_lib_cfg
17516
unset ac_vmw_lib_cfg
17517
if test $ac_vmw_have_lib -eq 0 && test -n ""; then
17518
# Extract the first word of "", so it can be a program name with args.
17519
set dummy ; ac_word=$2
17520
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17521
$as_echo_n "checking for $ac_word... " >&6; }
17522
if ${ac_cv_path_ac_vmw_lib_cfg+:} false; then :
17523
$as_echo_n "(cached) " >&6
17525
case $ac_vmw_lib_cfg in
17527
ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
17530
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17531
for as_dir in $PATH
17534
test -z "$as_dir" && as_dir=.
17535
for ac_exec_ext in '' $ac_executable_extensions; do
17536
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17537
ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
17538
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17545
test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
17549
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
17550
if test -n "$ac_vmw_lib_cfg"; then
17551
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_vmw_lib_cfg" >&5
17552
$as_echo "$ac_vmw_lib_cfg" >&6; }
17554
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17555
$as_echo "no" >&6; }
17559
if test "$ac_vmw_lib_cfg" != "no"; then
17560
# XXX: icu-config does not follow the "--cflags" and "--libs" convention,
17561
# so single it out here to avoid having to replicate all the rest of the
17563
if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
17564
GMODULE_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
17565
GMODULE_LIBS="`$ac_vmw_lib_cfg --ldflags`"
17567
GMODULE_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
17568
GMODULE_LIBS="`$ac_vmw_lib_cfg --libs`"
17574
# Finish by executing the user provided action. The call to "true" is needed
17575
# because the actions are optional, and we need something inside the block.
17576
if test $ac_vmw_have_lib -eq 1; then
17583
as_fn_error $? "gmodule >= 2.6.0 is required." "$LINENO" 5
17588
if test -z "gobject-2.0"; then
17589
as_fn_error $? "'library' parameter is required.'" "$LINENO" 5
17591
if test -z "GOBJECT"; then
17592
as_fn_error $? "'lvar' parameter is required.'" "$LINENO" 5
17596
ac_vmw_have_lib_func=0
17597
ac_vmw_have_lib_header=0
17598
ac_vmw_custom_libs=
17601
# First, try any user-defined CUSTOM_* flags.
17603
if test -n "${CUSTOM_GOBJECT_CPPFLAGS}" || test -n "${CUSTOM_GOBJECT_LIBS}"; then
17604
ac_vmw_custom_libs="${CUSTOM_GOBJECT_LIBS} -lgobject-2.0"
17605
if test -n "glib-object.h"; then
17606
ORIGINAL_CPPFLAGS="$CPPFLAGS"
17607
CPPFLAGS="${CUSTOM_GOBJECT_CPPFLAGS} $CPPFLAGS"
17609
ac_fn_c_check_header_mongrel "$LINENO" "glib-object.h" "ac_cv_header_glib_object_h" "$ac_includes_default"
17610
if test "x$ac_cv_header_glib_object_h" = xyes; then :
17611
ac_vmw_have_lib_header=1
17616
CPPFLAGS="$ORIGINAL_CPPFLAGS"
17618
ac_vmw_have_lib_header=1
17621
# Check a specific function in the library if requested.
17622
# If it hasn't, just pick a random function from libc, just to make
17623
# sure the linker can find the library being tested.
17624
if test $ac_vmw_have_lib_header -eq 1; then
17625
if test -n ""; then
17628
ac_vmw_function=strlen
17630
as_ac_Lib=`$as_echo "ac_cv_lib_gobject-2.0_$ac_vmw_function" | $as_tr_sh`
17631
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_vmw_function in -lgobject-2.0" >&5
17632
$as_echo_n "checking for $ac_vmw_function in -lgobject-2.0... " >&6; }
17633
if eval \${$as_ac_Lib+:} false; then :
17634
$as_echo_n "(cached) " >&6
17636
ac_check_lib_save_LIBS=$LIBS
17637
LIBS="-lgobject-2.0 $ac_vmw_custom_libs $LIBS"
17638
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17639
/* end confdefs.h. */
17641
/* Override any GCC internal prototype to avoid an error.
17642
Use char because int might match the return type of a GCC
17643
builtin and then its argument prototype would still apply. */
17647
char $ac_vmw_function ();
17651
return $ac_vmw_function ();
17656
if ac_fn_c_try_link "$LINENO"; then :
17657
eval "$as_ac_Lib=yes"
17659
eval "$as_ac_Lib=no"
17661
rm -f core conftest.err conftest.$ac_objext \
17662
conftest$ac_exeext conftest.$ac_ext
17663
LIBS=$ac_check_lib_save_LIBS
17665
eval ac_res=\$$as_ac_Lib
17666
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17667
$as_echo "$ac_res" >&6; }
17668
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
17669
ac_vmw_have_lib_func=1
17674
if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
17675
GOBJECT_CPPFLAGS="${CUSTOM_GOBJECT_CPPFLAGS}"
17676
GOBJECT_LIBS="$ac_vmw_custom_libs"
17681
# If that didn't work, try with pkg-config.
17682
if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n "gobject-2.0"; then
17683
if test -n "2.6.0"; then
17684
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 >= 2.6.0 (via pkg-config)" >&5
17685
$as_echo_n "checking for gobject-2.0 >= 2.6.0 (via pkg-config)... " >&6; }
17686
if pkg-config --exists 'gobject-2.0 >= 2.6.0'; then
17690
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-2.0 (via pkg-config)" >&5
17691
$as_echo_n "checking for gobject-2.0 (via pkg-config)... " >&6; }
17692
if pkg-config --exists 'gobject-2.0'; then
17697
if test $ac_vmw_have_lib -eq 1; then
17698
# Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
17699
# fails on OpenSolaris B71. So be pessimistic.
17700
ac_vmw_cppflags="`pkg-config --cflags gobject-2.0`"
17702
ac_vmw_libs="`pkg-config --libs gobject-2.0`"
17704
if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
17705
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17706
$as_echo "yes" >&6; }
17707
GOBJECT_CPPFLAGS="$ac_vmw_cppflags"
17708
GOBJECT_LIBS="$ac_vmw_libs"
17710
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17711
$as_echo "no" >&6; }
17714
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17715
$as_echo "no" >&6; }
17719
# If we still haven't found the lib, try with the library's custom "config" script.
17720
# Before checking, flush the AC_PATH_PROG cached variable.
17721
unset ac_cv_path_ac_vmw_lib_cfg
17722
unset ac_vmw_lib_cfg
17723
if test $ac_vmw_have_lib -eq 0 && test -n ""; then
17724
# Extract the first word of "", so it can be a program name with args.
17725
set dummy ; ac_word=$2
17726
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17727
$as_echo_n "checking for $ac_word... " >&6; }
17728
if ${ac_cv_path_ac_vmw_lib_cfg+:} false; then :
17729
$as_echo_n "(cached) " >&6
17731
case $ac_vmw_lib_cfg in
17733
ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
17736
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17737
for as_dir in $PATH
17740
test -z "$as_dir" && as_dir=.
17741
for ac_exec_ext in '' $ac_executable_extensions; do
17742
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17743
ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
17744
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17751
test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
17755
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
17756
if test -n "$ac_vmw_lib_cfg"; then
17757
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_vmw_lib_cfg" >&5
17758
$as_echo "$ac_vmw_lib_cfg" >&6; }
17760
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17761
$as_echo "no" >&6; }
17765
if test "$ac_vmw_lib_cfg" != "no"; then
17766
# XXX: icu-config does not follow the "--cflags" and "--libs" convention,
17767
# so single it out here to avoid having to replicate all the rest of the
17769
if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
17770
GOBJECT_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
17771
GOBJECT_LIBS="`$ac_vmw_lib_cfg --ldflags`"
17773
GOBJECT_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
17774
GOBJECT_LIBS="`$ac_vmw_lib_cfg --libs`"
17780
# Finish by executing the user provided action. The call to "true" is needed
17781
# because the actions are optional, and we need something inside the block.
17782
if test $ac_vmw_have_lib -eq 1; then
17789
as_fn_error $? "gobject >= 2.6.0 is required." "$LINENO" 5
17794
if test -z "gthread-2.0"; then
17795
as_fn_error $? "'library' parameter is required.'" "$LINENO" 5
17797
if test -z "GTHREAD"; then
17798
as_fn_error $? "'lvar' parameter is required.'" "$LINENO" 5
17802
ac_vmw_have_lib_func=0
17803
ac_vmw_have_lib_header=0
17804
ac_vmw_custom_libs=
17807
# First, try any user-defined CUSTOM_* flags.
17809
if test -n "${CUSTOM_GTHREAD_CPPFLAGS}" || test -n "${CUSTOM_GTHREAD_LIBS}"; then
17810
ac_vmw_custom_libs="${CUSTOM_GTHREAD_LIBS} -lgthread-2.0"
17811
if test -n ""; then
17812
ORIGINAL_CPPFLAGS="$CPPFLAGS"
17813
CPPFLAGS="${CUSTOM_GTHREAD_CPPFLAGS} $CPPFLAGS"
17815
ac_fn_c_check_header_mongrel "$LINENO" "" "ac_cv_header_" "$ac_includes_default"
17816
if test "x$ac_cv_header_" = xyes; then :
17817
ac_vmw_have_lib_header=1
17822
CPPFLAGS="$ORIGINAL_CPPFLAGS"
17824
ac_vmw_have_lib_header=1
17827
# Check a specific function in the library if requested.
17828
# If it hasn't, just pick a random function from libc, just to make
17829
# sure the linker can find the library being tested.
17830
if test $ac_vmw_have_lib_header -eq 1; then
17831
if test -n ""; then
17834
ac_vmw_function=strlen
17836
as_ac_Lib=`$as_echo "ac_cv_lib_gthread-2.0_$ac_vmw_function" | $as_tr_sh`
17837
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_vmw_function in -lgthread-2.0" >&5
17838
$as_echo_n "checking for $ac_vmw_function in -lgthread-2.0... " >&6; }
17839
if eval \${$as_ac_Lib+:} false; then :
17840
$as_echo_n "(cached) " >&6
17842
ac_check_lib_save_LIBS=$LIBS
17843
LIBS="-lgthread-2.0 $ac_vmw_custom_libs $LIBS"
17844
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17845
/* end confdefs.h. */
17847
/* Override any GCC internal prototype to avoid an error.
17848
Use char because int might match the return type of a GCC
17849
builtin and then its argument prototype would still apply. */
17853
char $ac_vmw_function ();
17857
return $ac_vmw_function ();
17862
if ac_fn_c_try_link "$LINENO"; then :
17863
eval "$as_ac_Lib=yes"
17865
eval "$as_ac_Lib=no"
17867
rm -f core conftest.err conftest.$ac_objext \
17868
conftest$ac_exeext conftest.$ac_ext
17869
LIBS=$ac_check_lib_save_LIBS
17871
eval ac_res=\$$as_ac_Lib
17872
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17873
$as_echo "$ac_res" >&6; }
17874
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
17875
ac_vmw_have_lib_func=1
17880
if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
17881
GTHREAD_CPPFLAGS="${CUSTOM_GTHREAD_CPPFLAGS}"
17882
GTHREAD_LIBS="$ac_vmw_custom_libs"
17887
# If that didn't work, try with pkg-config.
17888
if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n "gthread-2.0"; then
17889
if test -n "2.6.0"; then
17890
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gthread-2.0 >= 2.6.0 (via pkg-config)" >&5
17891
$as_echo_n "checking for gthread-2.0 >= 2.6.0 (via pkg-config)... " >&6; }
17892
if pkg-config --exists 'gthread-2.0 >= 2.6.0'; then
17896
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gthread-2.0 (via pkg-config)" >&5
17897
$as_echo_n "checking for gthread-2.0 (via pkg-config)... " >&6; }
17898
if pkg-config --exists 'gthread-2.0'; then
17903
if test $ac_vmw_have_lib -eq 1; then
17904
# Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
17905
# fails on OpenSolaris B71. So be pessimistic.
17906
ac_vmw_cppflags="`pkg-config --cflags gthread-2.0`"
17908
ac_vmw_libs="`pkg-config --libs gthread-2.0`"
17910
if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
17911
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17912
$as_echo "yes" >&6; }
17913
GTHREAD_CPPFLAGS="$ac_vmw_cppflags"
17914
GTHREAD_LIBS="$ac_vmw_libs"
17916
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17917
$as_echo "no" >&6; }
17920
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17921
$as_echo "no" >&6; }
17925
# If we still haven't found the lib, try with the library's custom "config" script.
17926
# Before checking, flush the AC_PATH_PROG cached variable.
17927
unset ac_cv_path_ac_vmw_lib_cfg
17928
unset ac_vmw_lib_cfg
17929
if test $ac_vmw_have_lib -eq 0 && test -n ""; then
17930
# Extract the first word of "", so it can be a program name with args.
17931
set dummy ; ac_word=$2
17932
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17933
$as_echo_n "checking for $ac_word... " >&6; }
17934
if ${ac_cv_path_ac_vmw_lib_cfg+:} false; then :
17935
$as_echo_n "(cached) " >&6
17937
case $ac_vmw_lib_cfg in
17939
ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
17942
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17943
for as_dir in $PATH
17946
test -z "$as_dir" && as_dir=.
17947
for ac_exec_ext in '' $ac_executable_extensions; do
17948
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17949
ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
17950
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17957
test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
17961
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
17962
if test -n "$ac_vmw_lib_cfg"; then
17963
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_vmw_lib_cfg" >&5
17964
$as_echo "$ac_vmw_lib_cfg" >&6; }
17966
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17967
$as_echo "no" >&6; }
17971
if test "$ac_vmw_lib_cfg" != "no"; then
17972
# XXX: icu-config does not follow the "--cflags" and "--libs" convention,
17973
# so single it out here to avoid having to replicate all the rest of the
17975
if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
17976
GTHREAD_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
17977
GTHREAD_LIBS="`$ac_vmw_lib_cfg --ldflags`"
17979
GTHREAD_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
17980
GTHREAD_LIBS="`$ac_vmw_lib_cfg --libs`"
17986
# Finish by executing the user provided action. The call to "true" is needed
17987
# because the actions are optional, and we need something inside the block.
17988
if test $ac_vmw_have_lib -eq 1; then
17995
as_fn_error $? "glib >= 2.6.0 is required." "$LINENO" 5
17998
# Extract the first word of "glib-genmarshal", so it can be a program name with args.
17999
set dummy glib-genmarshal; ac_word=$2
18000
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18001
$as_echo_n "checking for $ac_word... " >&6; }
18002
if ${ac_cv_prog_have_genmarshal+:} false; then :
18003
$as_echo_n "(cached) " >&6
18005
if test -n "$have_genmarshal"; then
18006
ac_cv_prog_have_genmarshal="$have_genmarshal" # Let the user override the test.
18008
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18009
for as_dir in $PATH
18012
test -z "$as_dir" && as_dir=.
18013
for ac_exec_ext in '' $ac_executable_extensions; do
18014
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18015
ac_cv_prog_have_genmarshal="yes"
18016
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18023
test -z "$ac_cv_prog_have_genmarshal" && ac_cv_prog_have_genmarshal="no"
18026
have_genmarshal=$ac_cv_prog_have_genmarshal
18027
if test -n "$have_genmarshal"; then
18028
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_genmarshal" >&5
18029
$as_echo "$have_genmarshal" >&6; }
18031
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18032
$as_echo "no" >&6; }
18037
if test "$have_genmarshal" != "yes"; then
18038
as_fn_error $? "glib-genmarshal is required; make sure it's available in your path." "$LINENO" 5
18042
# Parts of our Linux code require more recent version of glib
18044
if test "$os" = "linux"; then
18047
if test -z "glib-2.0"; then
18048
as_fn_error $? "'library' parameter is required.'" "$LINENO" 5
18050
if test -z "GLIB2"; then
18051
as_fn_error $? "'lvar' parameter is required.'" "$LINENO" 5
18055
ac_vmw_have_lib_func=0
18056
ac_vmw_have_lib_header=0
18057
ac_vmw_custom_libs=
18060
# First, try any user-defined CUSTOM_* flags.
18062
if test -n "${CUSTOM_GLIB2_CPPFLAGS}" || test -n "${CUSTOM_GLIB2_LIBS}"; then
18063
ac_vmw_custom_libs="${CUSTOM_GLIB2_LIBS} -lglib-2.0"
18064
if test -n "glib.h"; then
18065
ORIGINAL_CPPFLAGS="$CPPFLAGS"
18066
CPPFLAGS="${CUSTOM_GLIB2_CPPFLAGS} $CPPFLAGS"
18068
ac_fn_c_check_header_mongrel "$LINENO" "glib.h" "ac_cv_header_glib_h" "$ac_includes_default"
18069
if test "x$ac_cv_header_glib_h" = xyes; then :
18070
ac_vmw_have_lib_header=1
18075
CPPFLAGS="$ORIGINAL_CPPFLAGS"
18077
ac_vmw_have_lib_header=1
18080
# Check a specific function in the library if requested.
18081
# If it hasn't, just pick a random function from libc, just to make
18082
# sure the linker can find the library being tested.
18083
if test $ac_vmw_have_lib_header -eq 1; then
18084
if test -n "g_regex_new"; then
18085
ac_vmw_function=g_regex_new
18087
ac_vmw_function=strlen
18089
as_ac_Lib=`$as_echo "ac_cv_lib_glib-2.0_$ac_vmw_function" | $as_tr_sh`
18090
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_vmw_function in -lglib-2.0" >&5
18091
$as_echo_n "checking for $ac_vmw_function in -lglib-2.0... " >&6; }
18092
if eval \${$as_ac_Lib+:} false; then :
18093
$as_echo_n "(cached) " >&6
18095
ac_check_lib_save_LIBS=$LIBS
18096
LIBS="-lglib-2.0 $ac_vmw_custom_libs $LIBS"
18097
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18098
/* end confdefs.h. */
18100
/* Override any GCC internal prototype to avoid an error.
18101
Use char because int might match the return type of a GCC
18102
builtin and then its argument prototype would still apply. */
18106
char $ac_vmw_function ();
18110
return $ac_vmw_function ();
18115
if ac_fn_c_try_link "$LINENO"; then :
18116
eval "$as_ac_Lib=yes"
18118
eval "$as_ac_Lib=no"
18120
rm -f core conftest.err conftest.$ac_objext \
18121
conftest$ac_exeext conftest.$ac_ext
18122
LIBS=$ac_check_lib_save_LIBS
18124
eval ac_res=\$$as_ac_Lib
18125
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18126
$as_echo "$ac_res" >&6; }
18127
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18128
ac_vmw_have_lib_func=1
18133
if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
18134
GLIB2_CPPFLAGS="${CUSTOM_GLIB2_CPPFLAGS}"
18135
GLIB2_LIBS="$ac_vmw_custom_libs"
18140
# If that didn't work, try with pkg-config.
18141
if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n "glib-2.0"; then
18142
if test -n "2.14.0"; then
18143
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.14.0 (via pkg-config)" >&5
18144
$as_echo_n "checking for glib-2.0 >= 2.14.0 (via pkg-config)... " >&6; }
18145
if pkg-config --exists 'glib-2.0 >= 2.14.0'; then
18149
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 (via pkg-config)" >&5
18150
$as_echo_n "checking for glib-2.0 (via pkg-config)... " >&6; }
18151
if pkg-config --exists 'glib-2.0'; then
18156
if test $ac_vmw_have_lib -eq 1; then
18157
# Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
18158
# fails on OpenSolaris B71. So be pessimistic.
18159
ac_vmw_cppflags="`pkg-config --cflags glib-2.0`"
18161
ac_vmw_libs="`pkg-config --libs glib-2.0`"
18163
if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
18164
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18165
$as_echo "yes" >&6; }
18166
GLIB2_CPPFLAGS="$ac_vmw_cppflags"
18167
GLIB2_LIBS="$ac_vmw_libs"
18169
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18170
$as_echo "no" >&6; }
18173
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18174
$as_echo "no" >&6; }
18178
# If we still haven't found the lib, try with the library's custom "config" script.
18179
# Before checking, flush the AC_PATH_PROG cached variable.
18180
unset ac_cv_path_ac_vmw_lib_cfg
18181
unset ac_vmw_lib_cfg
18182
if test $ac_vmw_have_lib -eq 0 && test -n ""; then
18183
# Extract the first word of "", so it can be a program name with args.
18184
set dummy ; ac_word=$2
18185
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18186
$as_echo_n "checking for $ac_word... " >&6; }
18187
if ${ac_cv_path_ac_vmw_lib_cfg+:} false; then :
18188
$as_echo_n "(cached) " >&6
18190
case $ac_vmw_lib_cfg in
18192
ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
18195
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18196
for as_dir in $PATH
18199
test -z "$as_dir" && as_dir=.
18200
for ac_exec_ext in '' $ac_executable_extensions; do
18201
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18202
ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
18203
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18210
test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
18214
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
18215
if test -n "$ac_vmw_lib_cfg"; then
18216
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_vmw_lib_cfg" >&5
18217
$as_echo "$ac_vmw_lib_cfg" >&6; }
18219
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18220
$as_echo "no" >&6; }
18224
if test "$ac_vmw_lib_cfg" != "no"; then
18225
# XXX: icu-config does not follow the "--cflags" and "--libs" convention,
18226
# so single it out here to avoid having to replicate all the rest of the
18228
if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
18229
GLIB2_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
18230
GLIB2_LIBS="`$ac_vmw_lib_cfg --ldflags`"
18232
GLIB2_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
18233
GLIB2_LIBS="`$ac_vmw_lib_cfg --libs`"
18239
# Finish by executing the user provided action. The call to "true" is needed
18240
# because the actions are optional, and we need something inside the block.
18241
if test $ac_vmw_have_lib -eq 1; then
18248
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: glib is not recent enough, some features will be disabled." >&5
18249
$as_echo "$as_me: WARNING: glib is not recent enough, some features will be disabled." >&2;}
18259
if test -z "fuse"; then
18260
as_fn_error $? "'library' parameter is required.'" "$LINENO" 5
18262
if test -z "FUSE"; then
18263
as_fn_error $? "'lvar' parameter is required.'" "$LINENO" 5
18267
ac_vmw_have_lib_func=0
18268
ac_vmw_have_lib_header=0
18269
ac_vmw_custom_libs=
18272
# First, try any user-defined CUSTOM_* flags.
18274
if test -n "${CUSTOM_FUSE_CPPFLAGS}" || test -n "${CUSTOM_FUSE_LIBS}"; then
18275
ac_vmw_custom_libs="${CUSTOM_FUSE_LIBS} -lfuse"
18276
if test -n "fuse.h"; then
18277
ORIGINAL_CPPFLAGS="$CPPFLAGS"
18278
CPPFLAGS="${CUSTOM_FUSE_CPPFLAGS} $CPPFLAGS"
18280
ac_fn_c_check_header_mongrel "$LINENO" "fuse.h" "ac_cv_header_fuse_h" "$ac_includes_default"
18281
if test "x$ac_cv_header_fuse_h" = xyes; then :
18282
ac_vmw_have_lib_header=1
18287
CPPFLAGS="$ORIGINAL_CPPFLAGS"
18289
ac_vmw_have_lib_header=1
18292
# Check a specific function in the library if requested.
18293
# If it hasn't, just pick a random function from libc, just to make
18294
# sure the linker can find the library being tested.
18295
if test $ac_vmw_have_lib_header -eq 1; then
18296
if test -n "fuse_main"; then
18297
ac_vmw_function=fuse_main
18299
ac_vmw_function=strlen
18301
as_ac_Lib=`$as_echo "ac_cv_lib_fuse_$ac_vmw_function" | $as_tr_sh`
18302
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_vmw_function in -lfuse" >&5
18303
$as_echo_n "checking for $ac_vmw_function in -lfuse... " >&6; }
18304
if eval \${$as_ac_Lib+:} false; then :
18305
$as_echo_n "(cached) " >&6
18307
ac_check_lib_save_LIBS=$LIBS
18308
LIBS="-lfuse $ac_vmw_custom_libs $LIBS"
18309
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18310
/* end confdefs.h. */
18312
/* Override any GCC internal prototype to avoid an error.
18313
Use char because int might match the return type of a GCC
18314
builtin and then its argument prototype would still apply. */
18318
char $ac_vmw_function ();
18322
return $ac_vmw_function ();
18327
if ac_fn_c_try_link "$LINENO"; then :
18328
eval "$as_ac_Lib=yes"
18330
eval "$as_ac_Lib=no"
18332
rm -f core conftest.err conftest.$ac_objext \
18333
conftest$ac_exeext conftest.$ac_ext
18334
LIBS=$ac_check_lib_save_LIBS
18336
eval ac_res=\$$as_ac_Lib
18337
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18338
$as_echo "$ac_res" >&6; }
18339
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18340
ac_vmw_have_lib_func=1
18345
if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
18346
FUSE_CPPFLAGS="${CUSTOM_FUSE_CPPFLAGS}"
18347
FUSE_LIBS="$ac_vmw_custom_libs"
18352
# If that didn't work, try with pkg-config.
18353
if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n "fuse"; then
18354
if test -n ""; then
18355
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse >= (via pkg-config)" >&5
18356
$as_echo_n "checking for fuse >= (via pkg-config)... " >&6; }
18357
if pkg-config --exists 'fuse >= '; then
18361
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse (via pkg-config)" >&5
18362
$as_echo_n "checking for fuse (via pkg-config)... " >&6; }
18363
if pkg-config --exists 'fuse'; then
18368
if test $ac_vmw_have_lib -eq 1; then
18369
# Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
18370
# fails on OpenSolaris B71. So be pessimistic.
18371
ac_vmw_cppflags="`pkg-config --cflags fuse`"
18373
ac_vmw_libs="`pkg-config --libs fuse`"
18375
if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
18376
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18377
$as_echo "yes" >&6; }
18378
FUSE_CPPFLAGS="$ac_vmw_cppflags"
18379
FUSE_LIBS="$ac_vmw_libs"
18381
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18382
$as_echo "no" >&6; }
18385
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18386
$as_echo "no" >&6; }
18390
# If we still haven't found the lib, try with the library's custom "config" script.
18391
# Before checking, flush the AC_PATH_PROG cached variable.
18392
unset ac_cv_path_ac_vmw_lib_cfg
18393
unset ac_vmw_lib_cfg
18394
if test $ac_vmw_have_lib -eq 0 && test -n ""; then
18395
# Extract the first word of "", so it can be a program name with args.
18396
set dummy ; ac_word=$2
18397
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18398
$as_echo_n "checking for $ac_word... " >&6; }
18399
if ${ac_cv_path_ac_vmw_lib_cfg+:} false; then :
18400
$as_echo_n "(cached) " >&6
18402
case $ac_vmw_lib_cfg in
18404
ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
18407
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18408
for as_dir in $PATH
18411
test -z "$as_dir" && as_dir=.
18412
for ac_exec_ext in '' $ac_executable_extensions; do
18413
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18414
ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
18415
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18422
test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
18426
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
18427
if test -n "$ac_vmw_lib_cfg"; then
18428
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_vmw_lib_cfg" >&5
18429
$as_echo "$ac_vmw_lib_cfg" >&6; }
18431
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18432
$as_echo "no" >&6; }
18436
if test "$ac_vmw_lib_cfg" != "no"; then
18437
# XXX: icu-config does not follow the "--cflags" and "--libs" convention,
18438
# so single it out here to avoid having to replicate all the rest of the
18440
if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
18441
FUSE_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
18442
FUSE_LIBS="`$ac_vmw_lib_cfg --ldflags`"
18444
FUSE_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
18445
FUSE_LIBS="`$ac_vmw_lib_cfg --libs`"
18451
# Finish by executing the user provided action. The call to "true" is needed
18452
# because the actions are optional, and we need something inside the block.
18453
if test $ac_vmw_have_lib -eq 1; then
18461
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Fuse is missing, vmblock-fuse will be disabled." >&5
18462
$as_echo "$as_me: WARNING: Fuse is missing, vmblock-fuse will be disabled." >&2;}
18470
# Check whether --with-pam was given.
18471
if test "${with_pam+set}" = set; then :
18478
if test "$with_pam" = "yes"; then
18480
if test -z "$CUSTOM_PAM_CPPFLAGS"; then
18481
if test "$os" = freebsd; then
18482
CUSTOM_PAM_CPPFLAGS="-I/usr/local/include"
18484
CUSTOM_PAM_CPPFLAGS="-I/usr/include"
18486
if test -n ""; then
18487
CUSTOM_PAM_CPPFLAGS="${CUSTOM_PAM_CPPFLAGS}/"
18493
if test -z "pam"; then
18494
as_fn_error $? "'library' parameter is required.'" "$LINENO" 5
18496
if test -z "PAM"; then
18497
as_fn_error $? "'lvar' parameter is required.'" "$LINENO" 5
18501
ac_vmw_have_lib_func=0
18502
ac_vmw_have_lib_header=0
18503
ac_vmw_custom_libs=
18506
# First, try any user-defined CUSTOM_* flags.
18508
if test -n "${CUSTOM_PAM_CPPFLAGS}" || test -n "${CUSTOM_PAM_LIBS}"; then
18509
ac_vmw_custom_libs="${CUSTOM_PAM_LIBS} -lpam"
18510
if test -n "security/pam_appl.h"; then
18511
ORIGINAL_CPPFLAGS="$CPPFLAGS"
18512
CPPFLAGS="${CUSTOM_PAM_CPPFLAGS} $CPPFLAGS"
18514
ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
18515
if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
18516
ac_vmw_have_lib_header=1
18521
CPPFLAGS="$ORIGINAL_CPPFLAGS"
18523
ac_vmw_have_lib_header=1
18526
# Check a specific function in the library if requested.
18527
# If it hasn't, just pick a random function from libc, just to make
18528
# sure the linker can find the library being tested.
18529
if test $ac_vmw_have_lib_header -eq 1; then
18530
if test -n "pam_start"; then
18531
ac_vmw_function=pam_start
18533
ac_vmw_function=strlen
18535
as_ac_Lib=`$as_echo "ac_cv_lib_pam_$ac_vmw_function" | $as_tr_sh`
18536
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_vmw_function in -lpam" >&5
18537
$as_echo_n "checking for $ac_vmw_function in -lpam... " >&6; }
18538
if eval \${$as_ac_Lib+:} false; then :
18539
$as_echo_n "(cached) " >&6
18541
ac_check_lib_save_LIBS=$LIBS
18542
LIBS="-lpam $ac_vmw_custom_libs $LIBS"
18543
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18544
/* end confdefs.h. */
18546
/* Override any GCC internal prototype to avoid an error.
18547
Use char because int might match the return type of a GCC
18548
builtin and then its argument prototype would still apply. */
18552
char $ac_vmw_function ();
18556
return $ac_vmw_function ();
18561
if ac_fn_c_try_link "$LINENO"; then :
18562
eval "$as_ac_Lib=yes"
18564
eval "$as_ac_Lib=no"
18566
rm -f core conftest.err conftest.$ac_objext \
18567
conftest$ac_exeext conftest.$ac_ext
18568
LIBS=$ac_check_lib_save_LIBS
18570
eval ac_res=\$$as_ac_Lib
18571
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18572
$as_echo "$ac_res" >&6; }
18573
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18574
ac_vmw_have_lib_func=1
18579
if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
18580
PAM_CPPFLAGS="${CUSTOM_PAM_CPPFLAGS}"
18581
PAM_LIBS="$ac_vmw_custom_libs"
18586
# If that didn't work, try with pkg-config.
18587
if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n ""; then
18588
if test -n ""; then
18589
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for >= (via pkg-config)" >&5
18590
$as_echo_n "checking for >= (via pkg-config)... " >&6; }
18591
if pkg-config --exists ' >= '; then
18595
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for (via pkg-config)" >&5
18596
$as_echo_n "checking for (via pkg-config)... " >&6; }
18597
if pkg-config --exists ''; then
18602
if test $ac_vmw_have_lib -eq 1; then
18603
# Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
18604
# fails on OpenSolaris B71. So be pessimistic.
18605
ac_vmw_cppflags="`pkg-config --cflags `"
18607
ac_vmw_libs="`pkg-config --libs `"
18609
if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
18610
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18611
$as_echo "yes" >&6; }
18612
PAM_CPPFLAGS="$ac_vmw_cppflags"
18613
PAM_LIBS="$ac_vmw_libs"
18615
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18616
$as_echo "no" >&6; }
18619
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18620
$as_echo "no" >&6; }
18624
# If we still haven't found the lib, try with the library's custom "config" script.
18625
# Before checking, flush the AC_PATH_PROG cached variable.
18626
unset ac_cv_path_ac_vmw_lib_cfg
18627
unset ac_vmw_lib_cfg
18628
if test $ac_vmw_have_lib -eq 0 && test -n ""; then
18629
# Extract the first word of "", so it can be a program name with args.
18630
set dummy ; ac_word=$2
18631
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18632
$as_echo_n "checking for $ac_word... " >&6; }
18633
if ${ac_cv_path_ac_vmw_lib_cfg+:} false; then :
18634
$as_echo_n "(cached) " >&6
18636
case $ac_vmw_lib_cfg in
18638
ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
18641
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18642
for as_dir in $PATH
18645
test -z "$as_dir" && as_dir=.
18646
for ac_exec_ext in '' $ac_executable_extensions; do
18647
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18648
ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
18649
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18656
test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
18660
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
18661
if test -n "$ac_vmw_lib_cfg"; then
18662
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_vmw_lib_cfg" >&5
18663
$as_echo "$ac_vmw_lib_cfg" >&6; }
18665
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18666
$as_echo "no" >&6; }
18670
if test "$ac_vmw_lib_cfg" != "no"; then
18671
# XXX: icu-config does not follow the "--cflags" and "--libs" convention,
18672
# so single it out here to avoid having to replicate all the rest of the
18674
if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
18675
PAM_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
18676
PAM_LIBS="`$ac_vmw_lib_cfg --ldflags`"
18678
PAM_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
18679
PAM_LIBS="`$ac_vmw_lib_cfg --libs`"
18685
# Finish by executing the user provided action. The call to "true" is needed
18686
# because the actions are optional, and we need something inside the block.
18687
if test $ac_vmw_have_lib -eq 1; then
18691
PAM_CPPFLAGS="$PAM_CPPFLAGS -DUSE_PAM"
18696
if test -z "$feature"; then
18699
as_fn_error $? "Cannot find PAM library. Please configure without $feature (using --without-pam), or install the PAM libraries and devel package(s)." "$LINENO" 5
18706
# Check for CUnit and disable test code if not available.
18708
if test "$enable_tests" = "auto" -o "$enable_tests" = "yes"; then
18710
if test -z "$CUSTOM_CUNIT_CPPFLAGS"; then
18711
if test "$os" = freebsd; then
18712
CUSTOM_CUNIT_CPPFLAGS="-I/usr/local/include"
18714
CUSTOM_CUNIT_CPPFLAGS="-I/usr/include"
18716
if test -n ""; then
18717
CUSTOM_CUNIT_CPPFLAGS="${CUSTOM_CUNIT_CPPFLAGS}/"
18723
if test -z "cunit"; then
18724
as_fn_error $? "'library' parameter is required.'" "$LINENO" 5
18726
if test -z "CUNIT"; then
18727
as_fn_error $? "'lvar' parameter is required.'" "$LINENO" 5
18731
ac_vmw_have_lib_func=0
18732
ac_vmw_have_lib_header=0
18733
ac_vmw_custom_libs=
18736
# First, try any user-defined CUSTOM_* flags.
18738
if test -n "${CUSTOM_CUNIT_CPPFLAGS}" || test -n "${CUSTOM_CUNIT_LIBS}"; then
18739
ac_vmw_custom_libs="${CUSTOM_CUNIT_LIBS} -lcunit"
18740
if test -n "CUnit/CUnit.h"; then
18741
ORIGINAL_CPPFLAGS="$CPPFLAGS"
18742
CPPFLAGS="${CUSTOM_CUNIT_CPPFLAGS} $CPPFLAGS"
18744
ac_fn_c_check_header_mongrel "$LINENO" "CUnit/CUnit.h" "ac_cv_header_CUnit_CUnit_h" "$ac_includes_default"
18745
if test "x$ac_cv_header_CUnit_CUnit_h" = xyes; then :
18746
ac_vmw_have_lib_header=1
18751
CPPFLAGS="$ORIGINAL_CPPFLAGS"
18753
ac_vmw_have_lib_header=1
18756
# Check a specific function in the library if requested.
18757
# If it hasn't, just pick a random function from libc, just to make
18758
# sure the linker can find the library being tested.
18759
if test $ac_vmw_have_lib_header -eq 1; then
18760
if test -n "CU_initialize_registry"; then
18761
ac_vmw_function=CU_initialize_registry
18763
ac_vmw_function=strlen
18765
as_ac_Lib=`$as_echo "ac_cv_lib_cunit_$ac_vmw_function" | $as_tr_sh`
18766
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_vmw_function in -lcunit" >&5
18767
$as_echo_n "checking for $ac_vmw_function in -lcunit... " >&6; }
18768
if eval \${$as_ac_Lib+:} false; then :
18769
$as_echo_n "(cached) " >&6
18771
ac_check_lib_save_LIBS=$LIBS
18772
LIBS="-lcunit $ac_vmw_custom_libs $LIBS"
18773
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18774
/* end confdefs.h. */
18776
/* Override any GCC internal prototype to avoid an error.
18777
Use char because int might match the return type of a GCC
18778
builtin and then its argument prototype would still apply. */
18782
char $ac_vmw_function ();
18786
return $ac_vmw_function ();
18791
if ac_fn_c_try_link "$LINENO"; then :
18792
eval "$as_ac_Lib=yes"
18794
eval "$as_ac_Lib=no"
18796
rm -f core conftest.err conftest.$ac_objext \
18797
conftest$ac_exeext conftest.$ac_ext
18798
LIBS=$ac_check_lib_save_LIBS
18800
eval ac_res=\$$as_ac_Lib
18801
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18802
$as_echo "$ac_res" >&6; }
18803
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
18804
ac_vmw_have_lib_func=1
18809
if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
18810
CUNIT_CPPFLAGS="${CUSTOM_CUNIT_CPPFLAGS}"
18811
CUNIT_LIBS="$ac_vmw_custom_libs"
18816
# If that didn't work, try with pkg-config.
18817
if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n ""; then
18818
if test -n ""; then
18819
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for >= (via pkg-config)" >&5
18820
$as_echo_n "checking for >= (via pkg-config)... " >&6; }
18821
if pkg-config --exists ' >= '; then
18825
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for (via pkg-config)" >&5
18826
$as_echo_n "checking for (via pkg-config)... " >&6; }
18827
if pkg-config --exists ''; then
18832
if test $ac_vmw_have_lib -eq 1; then
18833
# Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
18834
# fails on OpenSolaris B71. So be pessimistic.
18835
ac_vmw_cppflags="`pkg-config --cflags `"
18837
ac_vmw_libs="`pkg-config --libs `"
18839
if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
18840
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18841
$as_echo "yes" >&6; }
18842
CUNIT_CPPFLAGS="$ac_vmw_cppflags"
18843
CUNIT_LIBS="$ac_vmw_libs"
18845
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18846
$as_echo "no" >&6; }
18849
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18850
$as_echo "no" >&6; }
18854
# If we still haven't found the lib, try with the library's custom "config" script.
18855
# Before checking, flush the AC_PATH_PROG cached variable.
18856
unset ac_cv_path_ac_vmw_lib_cfg
18857
unset ac_vmw_lib_cfg
18858
if test $ac_vmw_have_lib -eq 0 && test -n ""; then
18859
# Extract the first word of "", so it can be a program name with args.
18860
set dummy ; ac_word=$2
18861
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18862
$as_echo_n "checking for $ac_word... " >&6; }
18863
if ${ac_cv_path_ac_vmw_lib_cfg+:} false; then :
18864
$as_echo_n "(cached) " >&6
18866
case $ac_vmw_lib_cfg in
18868
ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
18871
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18872
for as_dir in $PATH
18875
test -z "$as_dir" && as_dir=.
18876
for ac_exec_ext in '' $ac_executable_extensions; do
18877
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18878
ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
18879
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18886
test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
18890
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
18891
if test -n "$ac_vmw_lib_cfg"; then
18892
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_vmw_lib_cfg" >&5
18893
$as_echo "$ac_vmw_lib_cfg" >&6; }
18895
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18896
$as_echo "no" >&6; }
18900
if test "$ac_vmw_lib_cfg" != "no"; then
18901
# XXX: icu-config does not follow the "--cflags" and "--libs" convention,
18902
# so single it out here to avoid having to replicate all the rest of the
18904
if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
18905
CUNIT_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
18906
CUNIT_LIBS="`$ac_vmw_lib_cfg --ldflags`"
18908
CUNIT_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
18909
CUNIT_LIBS="`$ac_vmw_lib_cfg --libs`"
18915
# Finish by executing the user provided action. The call to "true" is needed
18916
# because the actions are optional, and we need something inside the block.
18917
if test $ac_vmw_have_lib -eq 1; then
18927
if test "$have_cunit" = "no"; then
18928
if test "$enable_tests" = "yes"; then
18931
if test -z "$feature"; then
18934
as_fn_error $? "Cannot find CUNIT library. Please configure without $feature (using --without-cunit), or install the CUNIT libraries and devel package(s)." "$LINENO" 5
18937
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: CUnit not found, tests won't be compiled." >&5
18938
$as_echo "$as_me: WARNING: CUnit not found, tests won't be compiled." >&2;}
18943
# If the user explicitly disables X11, then don't try to detect the X-related libraries
18944
if test "$have_x" = "disabled"; then
18945
enable_multimon="no"
18946
elif test "$have_x" != "yes"; then
18947
as_fn_error $? "The X11 libraries were not found. Please configure without X11 (using --without-x), or install the libX11 devel package(s)." "$LINENO" 5
18949
CPPFLAGS="$CPPFLAGS $X_CFLAGS"
18950
COMMON_XLIBS="$X_PRE_LIBS $X_LIBS -lX11 $X_EXTRA_LIBS"
18952
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XeviQueryVersion in -lXext" >&5
18953
$as_echo_n "checking for XeviQueryVersion in -lXext... " >&6; }
18954
if ${ac_cv_lib_Xext_XeviQueryVersion+:} false; then :
18955
$as_echo_n "(cached) " >&6
18957
ac_check_lib_save_LIBS=$LIBS
18958
LIBS="-lXext $COMMON_XLIBS $LIBS"
18959
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18960
/* end confdefs.h. */
18962
/* Override any GCC internal prototype to avoid an error.
18963
Use char because int might match the return type of a GCC
18964
builtin and then its argument prototype would still apply. */
18968
char XeviQueryVersion ();
18972
return XeviQueryVersion ();
18977
if ac_fn_c_try_link "$LINENO"; then :
18978
ac_cv_lib_Xext_XeviQueryVersion=yes
18980
ac_cv_lib_Xext_XeviQueryVersion=no
18982
rm -f core conftest.err conftest.$ac_objext \
18983
conftest$ac_exeext conftest.$ac_ext
18984
LIBS=$ac_check_lib_save_LIBS
18986
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XeviQueryVersion" >&5
18987
$as_echo "$ac_cv_lib_Xext_XeviQueryVersion" >&6; }
18988
if test "x$ac_cv_lib_Xext_XeviQueryVersion" = xyes; then :
18989
COMMON_XLIBS="-lXext $COMMON_XLIBS"
18991
as_fn_error $? "libXext not found. Please configure without X11 (using --without-x), or install the libXext devel package(s)." "$LINENO" 5
18995
ac_fn_c_check_header_compile "$LINENO" "X11/extensions/extutil.h" "ac_cv_header_X11_extensions_extutil_h" "#include <X11/Xlib.h>
18996
#include <X11/Xproto.h>
18998
if test "x$ac_cv_header_X11_extensions_extutil_h" = xyes; then :
19001
as_fn_error $? "X11/extensions/extutil.h header not found - you're probably on Solaris 10 or older. Please copy that header file onto your system manually, or configure without X11 (using --without-x)." "$LINENO" 5
19006
if test "$enable_multimon" != "no"; then
19007
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryVersion in -lXinerama" >&5
19008
$as_echo_n "checking for XineramaQueryVersion in -lXinerama... " >&6; }
19009
if ${ac_cv_lib_Xinerama_XineramaQueryVersion+:} false; then :
19010
$as_echo_n "(cached) " >&6
19012
ac_check_lib_save_LIBS=$LIBS
19013
LIBS="-lXinerama $COMMON_XLIBS $LIBS"
19014
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19015
/* end confdefs.h. */
19017
/* Override any GCC internal prototype to avoid an error.
19018
Use char because int might match the return type of a GCC
19019
builtin and then its argument prototype would still apply. */
19023
char XineramaQueryVersion ();
19027
return XineramaQueryVersion ();
19032
if ac_fn_c_try_link "$LINENO"; then :
19033
ac_cv_lib_Xinerama_XineramaQueryVersion=yes
19035
ac_cv_lib_Xinerama_XineramaQueryVersion=no
19037
rm -f core conftest.err conftest.$ac_objext \
19038
conftest$ac_exeext conftest.$ac_ext
19039
LIBS=$ac_check_lib_save_LIBS
19041
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryVersion" >&5
19042
$as_echo "$ac_cv_lib_Xinerama_XineramaQueryVersion" >&6; }
19043
if test "x$ac_cv_lib_Xinerama_XineramaQueryVersion" = xyes; then :
19044
COMMON_XLIBS="-lXinerama $COMMON_XLIBS"
19046
as_fn_error $? "libXinerama not found. Please configure without multimon (using --disable-multimon), configure without X11 (using --without-x), or install the libXinerama devel package(s)." "$LINENO" 5
19051
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenDevice in -lXi" >&5
19052
$as_echo_n "checking for XOpenDevice in -lXi... " >&6; }
19053
if ${ac_cv_lib_Xi_XOpenDevice+:} false; then :
19054
$as_echo_n "(cached) " >&6
19056
ac_check_lib_save_LIBS=$LIBS
19057
LIBS="-lXi $COMMON_XLIBS $LIBS"
19058
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19059
/* end confdefs.h. */
19061
/* Override any GCC internal prototype to avoid an error.
19062
Use char because int might match the return type of a GCC
19063
builtin and then its argument prototype would still apply. */
19067
char XOpenDevice ();
19071
return XOpenDevice ();
19076
if ac_fn_c_try_link "$LINENO"; then :
19077
ac_cv_lib_Xi_XOpenDevice=yes
19079
ac_cv_lib_Xi_XOpenDevice=no
19081
rm -f core conftest.err conftest.$ac_objext \
19082
conftest$ac_exeext conftest.$ac_ext
19083
LIBS=$ac_check_lib_save_LIBS
19085
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xi_XOpenDevice" >&5
19086
$as_echo "$ac_cv_lib_Xi_XOpenDevice" >&6; }
19087
if test "x$ac_cv_lib_Xi_XOpenDevice" = xyes; then :
19088
COMMON_XLIBS="-lXi $COMMON_XLIBS"
19090
as_fn_error $? "libXi not found. Please configure without X11 (using --without-x), or install the libXi devel package(s)." "$LINENO" 5
19094
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryVersion in -lXrender" >&5
19095
$as_echo_n "checking for XRenderQueryVersion in -lXrender... " >&6; }
19096
if ${ac_cv_lib_Xrender_XRenderQueryVersion+:} false; then :
19097
$as_echo_n "(cached) " >&6
19099
ac_check_lib_save_LIBS=$LIBS
19100
LIBS="-lXrender $COMMON_XLIBS $LIBS"
19101
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19102
/* end confdefs.h. */
19104
/* Override any GCC internal prototype to avoid an error.
19105
Use char because int might match the return type of a GCC
19106
builtin and then its argument prototype would still apply. */
19110
char XRenderQueryVersion ();
19114
return XRenderQueryVersion ();
19119
if ac_fn_c_try_link "$LINENO"; then :
19120
ac_cv_lib_Xrender_XRenderQueryVersion=yes
19122
ac_cv_lib_Xrender_XRenderQueryVersion=no
19124
rm -f core conftest.err conftest.$ac_objext \
19125
conftest$ac_exeext conftest.$ac_ext
19126
LIBS=$ac_check_lib_save_LIBS
19128
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryVersion" >&5
19129
$as_echo "$ac_cv_lib_Xrender_XRenderQueryVersion" >&6; }
19130
if test "x$ac_cv_lib_Xrender_XRenderQueryVersion" = xyes; then :
19131
COMMON_XLIBS="-lXrender $COMMON_XLIBS"
19133
as_fn_error $? "libXrender not found. Please configure without X11 (using --without-x), or install the libXrender devel package(s)." "$LINENO" 5
19137
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryVersion in -lXrandr" >&5
19138
$as_echo_n "checking for XRRQueryVersion in -lXrandr... " >&6; }
19139
if ${ac_cv_lib_Xrandr_XRRQueryVersion+:} false; then :
19140
$as_echo_n "(cached) " >&6
19142
ac_check_lib_save_LIBS=$LIBS
19143
LIBS="-lXrandr $COMMON_XLIBS $LIBS"
19144
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19145
/* end confdefs.h. */
19147
/* Override any GCC internal prototype to avoid an error.
19148
Use char because int might match the return type of a GCC
19149
builtin and then its argument prototype would still apply. */
19153
char XRRQueryVersion ();
19157
return XRRQueryVersion ();
19162
if ac_fn_c_try_link "$LINENO"; then :
19163
ac_cv_lib_Xrandr_XRRQueryVersion=yes
19165
ac_cv_lib_Xrandr_XRRQueryVersion=no
19167
rm -f core conftest.err conftest.$ac_objext \
19168
conftest$ac_exeext conftest.$ac_ext
19169
LIBS=$ac_check_lib_save_LIBS
19171
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryVersion" >&5
19172
$as_echo "$ac_cv_lib_Xrandr_XRRQueryVersion" >&6; }
19173
if test "x$ac_cv_lib_Xrandr_XRRQueryVersion" = xyes; then :
19174
COMMON_XLIBS="-lXrandr $COMMON_XLIBS"
19176
as_fn_error $? "libXrandr not found. Please configure without X11 (using --without-x) or install the libXrandr devel package(s)." "$LINENO" 5
19180
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
19181
$as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
19182
if ${ac_cv_lib_Xtst_XTestQueryExtension+:} false; then :
19183
$as_echo_n "(cached) " >&6
19185
ac_check_lib_save_LIBS=$LIBS
19186
LIBS="-lXtst $COMMON_XLIBS $LIBS"
19187
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19188
/* end confdefs.h. */
19190
/* Override any GCC internal prototype to avoid an error.
19191
Use char because int might match the return type of a GCC
19192
builtin and then its argument prototype would still apply. */
19196
char XTestQueryExtension ();
19200
return XTestQueryExtension ();
19205
if ac_fn_c_try_link "$LINENO"; then :
19206
ac_cv_lib_Xtst_XTestQueryExtension=yes
19208
ac_cv_lib_Xtst_XTestQueryExtension=no
19210
rm -f core conftest.err conftest.$ac_objext \
19211
conftest$ac_exeext conftest.$ac_ext
19212
LIBS=$ac_check_lib_save_LIBS
19214
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
19215
$as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
19216
if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = xyes; then :
19217
COMMON_XLIBS="-lXtst $COMMON_XLIBS"
19219
as_fn_error $? "libXtst not found. Please configure without X11 (using --without-x) or install the libXtst devel package(s)." "$LINENO" 5
19223
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
19224
$as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
19225
if ${ac_cv_lib_SM_SmcOpenConnection+:} false; then :
19226
$as_echo_n "(cached) " >&6
19228
ac_check_lib_save_LIBS=$LIBS
19230
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19231
/* end confdefs.h. */
19233
/* Override any GCC internal prototype to avoid an error.
19234
Use char because int might match the return type of a GCC
19235
builtin and then its argument prototype would still apply. */
19239
char SmcOpenConnection ();
19243
return SmcOpenConnection ();
19248
if ac_fn_c_try_link "$LINENO"; then :
19249
ac_cv_lib_SM_SmcOpenConnection=yes
19251
ac_cv_lib_SM_SmcOpenConnection=no
19253
rm -f core conftest.err conftest.$ac_objext \
19254
conftest$ac_exeext conftest.$ac_ext
19255
LIBS=$ac_check_lib_save_LIBS
19257
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
19258
$as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
19259
if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes; then :
19260
XSM_LIBS="-lSM -lICE" && have_xsm_lib="yes"
19267
for ac_header in X11/SM/SMlib.h X11/ICE/ICElib.h
19269
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19270
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19271
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19272
cat >>confdefs.h <<_ACEOF
19273
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19275
have_xsm_header="yes"
19280
if test "$have_xsm_lib" = "yes" -a "$have_xsm_header" = "yes"; then
19284
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCompositeQueryExtension in -lXcomposite" >&5
19285
$as_echo_n "checking for XCompositeQueryExtension in -lXcomposite... " >&6; }
19286
if ${ac_cv_lib_Xcomposite_XCompositeQueryExtension+:} false; then :
19287
$as_echo_n "(cached) " >&6
19289
ac_check_lib_save_LIBS=$LIBS
19290
LIBS="-lXcomposite $LIBS"
19291
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19292
/* end confdefs.h. */
19294
/* Override any GCC internal prototype to avoid an error.
19295
Use char because int might match the return type of a GCC
19296
builtin and then its argument prototype would still apply. */
19300
char XCompositeQueryExtension ();
19304
return XCompositeQueryExtension ();
19309
if ac_fn_c_try_link "$LINENO"; then :
19310
ac_cv_lib_Xcomposite_XCompositeQueryExtension=yes
19312
ac_cv_lib_Xcomposite_XCompositeQueryExtension=no
19314
rm -f core conftest.err conftest.$ac_objext \
19315
conftest$ac_exeext conftest.$ac_ext
19316
LIBS=$ac_check_lib_save_LIBS
19318
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcomposite_XCompositeQueryExtension" >&5
19319
$as_echo "$ac_cv_lib_Xcomposite_XCompositeQueryExtension" >&6; }
19320
if test "x$ac_cv_lib_Xcomposite_XCompositeQueryExtension" = xyes; then :
19321
XCOMPOSITE_LIBS="-lXcomposite"
19323
have_xcomposite="no"
19327
for ac_header in X11/extensions/Xcomposite.h
19329
ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xcomposite.h" "ac_cv_header_X11_extensions_Xcomposite_h" "$ac_includes_default"
19330
if test "x$ac_cv_header_X11_extensions_Xcomposite_h" = xyes; then :
19331
cat >>confdefs.h <<_ACEOF
19332
#define HAVE_X11_EXTENSIONS_XCOMPOSITE_H 1
19336
have_xcomposite="no"
19341
if test "$have_xcomposite" != "no"; then
19342
have_xcomposite="yes"
19345
# Check whether we have gtk+ 2.0.
19346
if test "$with_gtk2" != "no"; then
19347
# gdk_display_get_default_group (added in gtk+ 2.4.0) is function currently
19348
# needed by vmware-user.
19351
if test -z "gtk-x11-2.0"; then
19352
as_fn_error $? "'library' parameter is required.'" "$LINENO" 5
19354
if test -z "GTK"; then
19355
as_fn_error $? "'lvar' parameter is required.'" "$LINENO" 5
19359
ac_vmw_have_lib_func=0
19360
ac_vmw_have_lib_header=0
19361
ac_vmw_custom_libs=
19364
# First, try any user-defined CUSTOM_* flags.
19366
if test -n "${CUSTOM_GTK_CPPFLAGS}" || test -n "${CUSTOM_GTK_LIBS}"; then
19367
ac_vmw_custom_libs="${CUSTOM_GTK_LIBS} -lgtk-x11-2.0"
19368
if test -n "gtk/gtk.h"; then
19369
ORIGINAL_CPPFLAGS="$CPPFLAGS"
19370
CPPFLAGS="${CUSTOM_GTK_CPPFLAGS} $CPPFLAGS"
19372
ac_fn_c_check_header_mongrel "$LINENO" "gtk/gtk.h" "ac_cv_header_gtk_gtk_h" "$ac_includes_default"
19373
if test "x$ac_cv_header_gtk_gtk_h" = xyes; then :
19374
ac_vmw_have_lib_header=1
19379
CPPFLAGS="$ORIGINAL_CPPFLAGS"
19381
ac_vmw_have_lib_header=1
19384
# Check a specific function in the library if requested.
19385
# If it hasn't, just pick a random function from libc, just to make
19386
# sure the linker can find the library being tested.
19387
if test $ac_vmw_have_lib_header -eq 1; then
19388
if test -n "gdk_display_get_default_group"; then
19389
ac_vmw_function=gdk_display_get_default_group
19391
ac_vmw_function=strlen
19393
as_ac_Lib=`$as_echo "ac_cv_lib_gtk-x11-2.0_$ac_vmw_function" | $as_tr_sh`
19394
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_vmw_function in -lgtk-x11-2.0" >&5
19395
$as_echo_n "checking for $ac_vmw_function in -lgtk-x11-2.0... " >&6; }
19396
if eval \${$as_ac_Lib+:} false; then :
19397
$as_echo_n "(cached) " >&6
19399
ac_check_lib_save_LIBS=$LIBS
19400
LIBS="-lgtk-x11-2.0 $ac_vmw_custom_libs $LIBS"
19401
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19402
/* end confdefs.h. */
19404
/* Override any GCC internal prototype to avoid an error.
19405
Use char because int might match the return type of a GCC
19406
builtin and then its argument prototype would still apply. */
19410
char $ac_vmw_function ();
19414
return $ac_vmw_function ();
19419
if ac_fn_c_try_link "$LINENO"; then :
19420
eval "$as_ac_Lib=yes"
19422
eval "$as_ac_Lib=no"
19424
rm -f core conftest.err conftest.$ac_objext \
19425
conftest$ac_exeext conftest.$ac_ext
19426
LIBS=$ac_check_lib_save_LIBS
19428
eval ac_res=\$$as_ac_Lib
19429
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19430
$as_echo "$ac_res" >&6; }
19431
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
19432
ac_vmw_have_lib_func=1
19437
if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
19438
GTK_CPPFLAGS="${CUSTOM_GTK_CPPFLAGS}"
19439
GTK_LIBS="$ac_vmw_custom_libs"
19444
# If that didn't work, try with pkg-config.
19445
if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n "gtk+-2.0"; then
19446
if test -n "2.4.0"; then
19447
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.4.0 (via pkg-config)" >&5
19448
$as_echo_n "checking for gtk+-2.0 >= 2.4.0 (via pkg-config)... " >&6; }
19449
if pkg-config --exists 'gtk+-2.0 >= 2.4.0'; then
19453
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 (via pkg-config)" >&5
19454
$as_echo_n "checking for gtk+-2.0 (via pkg-config)... " >&6; }
19455
if pkg-config --exists 'gtk+-2.0'; then
19460
if test $ac_vmw_have_lib -eq 1; then
19461
# Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
19462
# fails on OpenSolaris B71. So be pessimistic.
19463
ac_vmw_cppflags="`pkg-config --cflags gtk+-2.0`"
19465
ac_vmw_libs="`pkg-config --libs gtk+-2.0`"
19467
if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
19468
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19469
$as_echo "yes" >&6; }
19470
GTK_CPPFLAGS="$ac_vmw_cppflags"
19471
GTK_LIBS="$ac_vmw_libs"
19473
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19474
$as_echo "no" >&6; }
19477
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19478
$as_echo "no" >&6; }
19482
# If we still haven't found the lib, try with the library's custom "config" script.
19483
# Before checking, flush the AC_PATH_PROG cached variable.
19484
unset ac_cv_path_ac_vmw_lib_cfg
19485
unset ac_vmw_lib_cfg
19486
if test $ac_vmw_have_lib -eq 0 && test -n ""; then
19487
# Extract the first word of "", so it can be a program name with args.
19488
set dummy ; ac_word=$2
19489
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19490
$as_echo_n "checking for $ac_word... " >&6; }
19491
if ${ac_cv_path_ac_vmw_lib_cfg+:} false; then :
19492
$as_echo_n "(cached) " >&6
19494
case $ac_vmw_lib_cfg in
19496
ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
19499
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19500
for as_dir in $PATH
19503
test -z "$as_dir" && as_dir=.
19504
for ac_exec_ext in '' $ac_executable_extensions; do
19505
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19506
ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
19507
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19514
test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
19518
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
19519
if test -n "$ac_vmw_lib_cfg"; then
19520
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_vmw_lib_cfg" >&5
19521
$as_echo "$ac_vmw_lib_cfg" >&6; }
19523
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19524
$as_echo "no" >&6; }
19528
if test "$ac_vmw_lib_cfg" != "no"; then
19529
# XXX: icu-config does not follow the "--cflags" and "--libs" convention,
19530
# so single it out here to avoid having to replicate all the rest of the
19532
if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
19533
GTK_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
19534
GTK_LIBS="`$ac_vmw_lib_cfg --ldflags`"
19536
GTK_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
19537
GTK_LIBS="`$ac_vmw_lib_cfg --libs`"
19543
# Finish by executing the user provided action. The call to "true" is needed
19544
# because the actions are optional, and we need something inside the block.
19545
if test $ac_vmw_have_lib -eq 1; then
19549
GTK_CPPFLAGS="$GTK_CPPFLAGS -DGTK2"
19552
as_fn_error $? "Gtk+ 2.0 library not found or too old. Please configure without Gtk+ support (using --without-gtk2) or install the Gtk+ 2.0 devel package." "$LINENO" 5
19558
# Check for gtkmm 2.4.0 or greater.
19561
if test "$with_gtkmm" != "no"; then
19562
CUSTOM_GTKMM_CPPFLAGS="$CUSTOM_GTKMM_CPPFLAGS $GTK_CPPFLAGS"
19567
ac_cpp='$CXXCPP $CPPFLAGS'
19568
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19569
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19570
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19574
if test -z "gtkmm-2.4"; then
19575
as_fn_error $? "'library' parameter is required.'" "$LINENO" 5
19577
if test -z "GTKMM"; then
19578
as_fn_error $? "'lvar' parameter is required.'" "$LINENO" 5
19582
ac_vmw_have_lib_func=0
19583
ac_vmw_have_lib_header=0
19584
ac_vmw_custom_libs=
19587
# First, try any user-defined CUSTOM_* flags.
19589
if test -n "${CUSTOM_GTKMM_CPPFLAGS}" || test -n "${CUSTOM_GTKMM_LIBS}"; then
19590
ac_vmw_custom_libs="${CUSTOM_GTKMM_LIBS} -lgtkmm-2.4"
19591
if test -n "gtkmm.h"; then
19592
ORIGINAL_CPPFLAGS="$CPPFLAGS"
19593
CPPFLAGS="${CUSTOM_GTKMM_CPPFLAGS} $CPPFLAGS"
19595
ac_fn_cxx_check_header_mongrel "$LINENO" "gtkmm.h" "ac_cv_header_gtkmm_h" "$ac_includes_default"
19596
if test "x$ac_cv_header_gtkmm_h" = xyes; then :
19597
ac_vmw_have_lib_header=1
19602
CPPFLAGS="$ORIGINAL_CPPFLAGS"
19604
ac_vmw_have_lib_header=1
19607
# Check a specific function in the library if requested.
19608
# If it hasn't, just pick a random function from libc, just to make
19609
# sure the linker can find the library being tested.
19610
if test $ac_vmw_have_lib_header -eq 1; then
19611
if test -n ""; then
19614
ac_vmw_function=strlen
19616
as_ac_Lib=`$as_echo "ac_cv_lib_gtkmm-2.4_$ac_vmw_function" | $as_tr_sh`
19617
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_vmw_function in -lgtkmm-2.4" >&5
19618
$as_echo_n "checking for $ac_vmw_function in -lgtkmm-2.4... " >&6; }
19619
if eval \${$as_ac_Lib+:} false; then :
19620
$as_echo_n "(cached) " >&6
19622
ac_check_lib_save_LIBS=$LIBS
19623
LIBS="-lgtkmm-2.4 $ac_vmw_custom_libs $LIBS"
19624
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19625
/* end confdefs.h. */
19627
/* Override any GCC internal prototype to avoid an error.
19628
Use char because int might match the return type of a GCC
19629
builtin and then its argument prototype would still apply. */
19633
char $ac_vmw_function ();
19637
return $ac_vmw_function ();
19642
if ac_fn_cxx_try_link "$LINENO"; then :
19643
eval "$as_ac_Lib=yes"
19645
eval "$as_ac_Lib=no"
19647
rm -f core conftest.err conftest.$ac_objext \
19648
conftest$ac_exeext conftest.$ac_ext
19649
LIBS=$ac_check_lib_save_LIBS
19651
eval ac_res=\$$as_ac_Lib
19652
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19653
$as_echo "$ac_res" >&6; }
19654
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
19655
ac_vmw_have_lib_func=1
19660
if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
19661
GTKMM_CPPFLAGS="${CUSTOM_GTKMM_CPPFLAGS}"
19662
GTKMM_LIBS="$ac_vmw_custom_libs"
19667
# If that didn't work, try with pkg-config.
19668
if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n "gtkmm-2.4"; then
19669
if test -n "2.4.0"; then
19670
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtkmm-2.4 >= 2.4.0 (via pkg-config)" >&5
19671
$as_echo_n "checking for gtkmm-2.4 >= 2.4.0 (via pkg-config)... " >&6; }
19672
if pkg-config --exists 'gtkmm-2.4 >= 2.4.0'; then
19676
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtkmm-2.4 (via pkg-config)" >&5
19677
$as_echo_n "checking for gtkmm-2.4 (via pkg-config)... " >&6; }
19678
if pkg-config --exists 'gtkmm-2.4'; then
19683
if test $ac_vmw_have_lib -eq 1; then
19684
# Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
19685
# fails on OpenSolaris B71. So be pessimistic.
19686
ac_vmw_cppflags="`pkg-config --cflags gtkmm-2.4`"
19688
ac_vmw_libs="`pkg-config --libs gtkmm-2.4`"
19690
if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
19691
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19692
$as_echo "yes" >&6; }
19693
GTKMM_CPPFLAGS="$ac_vmw_cppflags"
19694
GTKMM_LIBS="$ac_vmw_libs"
19696
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19697
$as_echo "no" >&6; }
19700
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19701
$as_echo "no" >&6; }
19705
# If we still haven't found the lib, try with the library's custom "config" script.
19706
# Before checking, flush the AC_PATH_PROG cached variable.
19707
unset ac_cv_path_ac_vmw_lib_cfg
19708
unset ac_vmw_lib_cfg
19709
if test $ac_vmw_have_lib -eq 0 && test -n ""; then
19710
# Extract the first word of "", so it can be a program name with args.
19711
set dummy ; ac_word=$2
19712
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19713
$as_echo_n "checking for $ac_word... " >&6; }
19714
if ${ac_cv_path_ac_vmw_lib_cfg+:} false; then :
19715
$as_echo_n "(cached) " >&6
19717
case $ac_vmw_lib_cfg in
19719
ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
19722
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19723
for as_dir in $PATH
19726
test -z "$as_dir" && as_dir=.
19727
for ac_exec_ext in '' $ac_executable_extensions; do
19728
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19729
ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
19730
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19737
test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
19741
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
19742
if test -n "$ac_vmw_lib_cfg"; then
19743
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_vmw_lib_cfg" >&5
19744
$as_echo "$ac_vmw_lib_cfg" >&6; }
19746
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19747
$as_echo "no" >&6; }
19751
if test "$ac_vmw_lib_cfg" != "no"; then
19752
# XXX: icu-config does not follow the "--cflags" and "--libs" convention,
19753
# so single it out here to avoid having to replicate all the rest of the
19755
if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
19756
GTKMM_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
19757
GTKMM_LIBS="`$ac_vmw_lib_cfg --ldflags`"
19759
GTKMM_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
19760
GTKMM_LIBS="`$ac_vmw_lib_cfg --libs`"
19766
# Finish by executing the user provided action. The call to "true" is needed
19767
# because the actions are optional, and we need something inside the block.
19768
if test $ac_vmw_have_lib -eq 1; then
19772
GTKMM_CPPFLAGS="$GTKMM_CPPFLAGS -DHAVE_GTKMM"
19775
as_fn_error $? "gtkmm library not found. Please install the libgtkmm devel package(s), or re-configure using --without-gtkmm." "$LINENO" 5
19779
ac_cpp='$CPP $CPPFLAGS'
19780
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19781
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19782
ac_compiler_gnu=$ac_cv_c_compiler_gnu
19786
fi # End of checks for X libraries
19788
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
19789
$as_echo_n "checking for crypt in -lcrypt... " >&6; }
19790
if ${ac_cv_lib_crypt_crypt+:} false; then :
19791
$as_echo_n "(cached) " >&6
19793
ac_check_lib_save_LIBS=$LIBS
19794
LIBS="-lcrypt $LIBS"
19795
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19796
/* end confdefs.h. */
19798
/* Override any GCC internal prototype to avoid an error.
19799
Use char because int might match the return type of a GCC
19800
builtin and then its argument prototype would still apply. */
19813
if ac_fn_c_try_link "$LINENO"; then :
19814
ac_cv_lib_crypt_crypt=yes
19816
ac_cv_lib_crypt_crypt=no
19818
rm -f core conftest.err conftest.$ac_objext \
19819
conftest$ac_exeext conftest.$ac_ext
19820
LIBS=$ac_check_lib_save_LIBS
19822
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
19823
$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
19824
if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
19827
as_fn_error $? "libcrypt not found. Please install the libc/libcrypt devel package(s)." "$LINENO" 5
19831
for ac_func in dlopen
19833
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
19834
if test "x$ac_cv_func_dlopen" = xyes; then :
19835
cat >>confdefs.h <<_ACEOF
19836
#define HAVE_DLOPEN 1
19840
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
19841
$as_echo_n "checking for dlopen in -ldl... " >&6; }
19842
if ${ac_cv_lib_dl_dlopen+:} false; then :
19843
$as_echo_n "(cached) " >&6
19845
ac_check_lib_save_LIBS=$LIBS
19847
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19848
/* end confdefs.h. */
19850
/* Override any GCC internal prototype to avoid an error.
19851
Use char because int might match the return type of a GCC
19852
builtin and then its argument prototype would still apply. */
19865
if ac_fn_c_try_link "$LINENO"; then :
19866
ac_cv_lib_dl_dlopen=yes
19868
ac_cv_lib_dl_dlopen=no
19870
rm -f core conftest.err conftest.$ac_objext \
19871
conftest$ac_exeext conftest.$ac_ext
19872
LIBS=$ac_check_lib_save_LIBS
19874
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
19875
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
19876
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
19877
VIX_LIBADD="$VIX_LIBADD -ldl"
19878
LIBVMTOOLS_LIBADD="$LIBVMTOOLS_LIBADD -ldl"
19880
as_fn_error $? "dlopen was not found, but is required for open-vm-tools to function properly. Please contact your OS vendor." "$LINENO" 5
19887
for ac_func in ecvt
19889
ac_fn_c_check_func "$LINENO" "ecvt" "ac_cv_func_ecvt"
19890
if test "x$ac_cv_func_ecvt" = xyes; then :
19891
cat >>confdefs.h <<_ACEOF
19892
#define HAVE_ECVT 1
19898
for ac_func in fcvt
19900
ac_fn_c_check_func "$LINENO" "fcvt" "ac_cv_func_fcvt"
19901
if test "x$ac_cv_func_fcvt" = xyes; then :
19902
cat >>confdefs.h <<_ACEOF
19903
#define HAVE_FCVT 1
19910
if test "$os" = "freebsd" -a "$osVersion" -ge 600000; then
19911
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lthr" >&5
19912
$as_echo_n "checking for pthread_mutex_init in -lthr... " >&6; }
19913
if ${ac_cv_lib_thr_pthread_mutex_init+:} false; then :
19914
$as_echo_n "(cached) " >&6
19916
ac_check_lib_save_LIBS=$LIBS
19918
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19919
/* end confdefs.h. */
19921
/* Override any GCC internal prototype to avoid an error.
19922
Use char because int might match the return type of a GCC
19923
builtin and then its argument prototype would still apply. */
19927
char pthread_mutex_init ();
19931
return pthread_mutex_init ();
19936
if ac_fn_c_try_link "$LINENO"; then :
19937
ac_cv_lib_thr_pthread_mutex_init=yes
19939
ac_cv_lib_thr_pthread_mutex_init=no
19941
rm -f core conftest.err conftest.$ac_objext \
19942
conftest$ac_exeext conftest.$ac_ext
19943
LIBS=$ac_check_lib_save_LIBS
19945
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_thr_pthread_mutex_init" >&5
19946
$as_echo "$ac_cv_lib_thr_pthread_mutex_init" >&6; }
19947
if test "x$ac_cv_lib_thr_pthread_mutex_init" = xyes; then :
19950
as_fn_error $? "Unable to locate required threading library libthr." "$LINENO" 5
19954
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
19955
$as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; }
19956
if ${ac_cv_lib_pthread_pthread_mutex_init+:} false; then :
19957
$as_echo_n "(cached) " >&6
19959
ac_check_lib_save_LIBS=$LIBS
19960
LIBS="-lpthread $LIBS"
19961
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19962
/* end confdefs.h. */
19964
/* Override any GCC internal prototype to avoid an error.
19965
Use char because int might match the return type of a GCC
19966
builtin and then its argument prototype would still apply. */
19970
char pthread_mutex_init ();
19974
return pthread_mutex_init ();
19979
if ac_fn_c_try_link "$LINENO"; then :
19980
ac_cv_lib_pthread_pthread_mutex_init=yes
19982
ac_cv_lib_pthread_pthread_mutex_init=no
19984
rm -f core conftest.err conftest.$ac_objext \
19985
conftest$ac_exeext conftest.$ac_ext
19986
LIBS=$ac_check_lib_save_LIBS
19988
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
19989
$as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
19990
if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes; then :
19991
THREAD_LIB=-lpthread
19993
as_fn_error $? "libpthread not found. Please install the libc/libpthread devel package(s)." "$LINENO" 5
20000
# Check whether --with-pam-prefix was given.
20001
if test "${with_pam_prefix+set}" = set; then :
20002
withval=$with_pam_prefix; PAM_PREFIX="$withval"
20004
PAM_PREFIX='$(sysconfdir)'
20008
if test "$os" = "linux"; then
20010
# Check whether --with-procps was given.
20011
if test "${with_procps+set}" = set; then :
20012
withval=$with_procps;
20021
if test "$with_procps" = "yes"; then
20022
if test -z "$CUSTOM_PROCPS_NAME"; then
20023
CUSTOM_PROCPS_NAME=proc
20026
# XXX: no pkg-config and no procps-config means we need to
20027
# hard-code a sensible default.
20028
if test -z "$CUSTOM_PROCPS_LIBS"; then
20029
CUSTOM_PROCPS_LIBS="-L/lib"
20032
# Some distros provide libproc-${version}.so only, others provide the
20033
# libproc.so symlink. Try both to see what sticks (but only try the 3.2.7
20034
# and 3.2.8 versions - adding every possible version here would be a mess).
20036
# Users can help by providing CUSTOM_PROCPS_NAME / CUSTOM_PROCPS_LIBS if
20042
if test -z "$CUSTOM_PROCPS_NAME"; then
20043
as_fn_error $? "'library' parameter is required.'" "$LINENO" 5
20045
if test -z "PROCPS"; then
20046
as_fn_error $? "'lvar' parameter is required.'" "$LINENO" 5
20050
ac_vmw_have_lib_func=0
20051
ac_vmw_have_lib_header=0
20052
ac_vmw_custom_libs=
20055
# First, try any user-defined CUSTOM_* flags.
20057
if test -n "${CUSTOM_PROCPS_CPPFLAGS}" || test -n "${CUSTOM_PROCPS_LIBS}"; then
20058
ac_vmw_custom_libs="${CUSTOM_PROCPS_LIBS} -l$CUSTOM_PROCPS_NAME"
20059
if test -n ""; then
20060
ORIGINAL_CPPFLAGS="$CPPFLAGS"
20061
CPPFLAGS="${CUSTOM_PROCPS_CPPFLAGS} $CPPFLAGS"
20063
ac_fn_c_check_header_mongrel "$LINENO" "" "ac_cv_header_" "$ac_includes_default"
20064
if test "x$ac_cv_header_" = xyes; then :
20065
ac_vmw_have_lib_header=1
20070
CPPFLAGS="$ORIGINAL_CPPFLAGS"
20072
ac_vmw_have_lib_header=1
20075
# Check a specific function in the library if requested.
20076
# If it hasn't, just pick a random function from libc, just to make
20077
# sure the linker can find the library being tested.
20078
if test $ac_vmw_have_lib_header -eq 1; then
20079
if test -n "getstat"; then
20080
ac_vmw_function=getstat
20082
ac_vmw_function=strlen
20084
as_ac_Lib=`$as_echo "ac_cv_lib_$CUSTOM_PROCPS_NAME''_$ac_vmw_function" | $as_tr_sh`
20085
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_vmw_function in -l$CUSTOM_PROCPS_NAME" >&5
20086
$as_echo_n "checking for $ac_vmw_function in -l$CUSTOM_PROCPS_NAME... " >&6; }
20087
if eval \${$as_ac_Lib+:} false; then :
20088
$as_echo_n "(cached) " >&6
20090
ac_check_lib_save_LIBS=$LIBS
20091
LIBS="-l$CUSTOM_PROCPS_NAME $ac_vmw_custom_libs $LIBS"
20092
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20093
/* end confdefs.h. */
20095
/* Override any GCC internal prototype to avoid an error.
20096
Use char because int might match the return type of a GCC
20097
builtin and then its argument prototype would still apply. */
20101
char $ac_vmw_function ();
20105
return $ac_vmw_function ();
20110
if ac_fn_c_try_link "$LINENO"; then :
20111
eval "$as_ac_Lib=yes"
20113
eval "$as_ac_Lib=no"
20115
rm -f core conftest.err conftest.$ac_objext \
20116
conftest$ac_exeext conftest.$ac_ext
20117
LIBS=$ac_check_lib_save_LIBS
20119
eval ac_res=\$$as_ac_Lib
20120
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20121
$as_echo "$ac_res" >&6; }
20122
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20123
ac_vmw_have_lib_func=1
20128
if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
20129
PROCPS_CPPFLAGS="${CUSTOM_PROCPS_CPPFLAGS}"
20130
PROCPS_LIBS="$ac_vmw_custom_libs"
20135
# If that didn't work, try with pkg-config.
20136
if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n ""; then
20137
if test -n ""; then
20138
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for >= (via pkg-config)" >&5
20139
$as_echo_n "checking for >= (via pkg-config)... " >&6; }
20140
if pkg-config --exists ' >= '; then
20144
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for (via pkg-config)" >&5
20145
$as_echo_n "checking for (via pkg-config)... " >&6; }
20146
if pkg-config --exists ''; then
20151
if test $ac_vmw_have_lib -eq 1; then
20152
# Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
20153
# fails on OpenSolaris B71. So be pessimistic.
20154
ac_vmw_cppflags="`pkg-config --cflags `"
20156
ac_vmw_libs="`pkg-config --libs `"
20158
if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
20159
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20160
$as_echo "yes" >&6; }
20161
PROCPS_CPPFLAGS="$ac_vmw_cppflags"
20162
PROCPS_LIBS="$ac_vmw_libs"
20164
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20165
$as_echo "no" >&6; }
20168
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20169
$as_echo "no" >&6; }
20173
# If we still haven't found the lib, try with the library's custom "config" script.
20174
# Before checking, flush the AC_PATH_PROG cached variable.
20175
unset ac_cv_path_ac_vmw_lib_cfg
20176
unset ac_vmw_lib_cfg
20177
if test $ac_vmw_have_lib -eq 0 && test -n ""; then
20178
# Extract the first word of "", so it can be a program name with args.
20179
set dummy ; ac_word=$2
20180
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20181
$as_echo_n "checking for $ac_word... " >&6; }
20182
if ${ac_cv_path_ac_vmw_lib_cfg+:} false; then :
20183
$as_echo_n "(cached) " >&6
20185
case $ac_vmw_lib_cfg in
20187
ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
20190
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20191
for as_dir in $PATH
20194
test -z "$as_dir" && as_dir=.
20195
for ac_exec_ext in '' $ac_executable_extensions; do
20196
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20197
ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
20198
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20205
test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
20209
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
20210
if test -n "$ac_vmw_lib_cfg"; then
20211
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_vmw_lib_cfg" >&5
20212
$as_echo "$ac_vmw_lib_cfg" >&6; }
20214
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20215
$as_echo "no" >&6; }
20219
if test "$ac_vmw_lib_cfg" != "no"; then
20220
# XXX: icu-config does not follow the "--cflags" and "--libs" convention,
20221
# so single it out here to avoid having to replicate all the rest of the
20223
if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
20224
PROCPS_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
20225
PROCPS_LIBS="`$ac_vmw_lib_cfg --ldflags`"
20227
PROCPS_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
20228
PROCPS_LIBS="`$ac_vmw_lib_cfg --libs`"
20234
# Finish by executing the user provided action. The call to "true" is needed
20235
# because the actions are optional, and we need something inside the block.
20236
if test $ac_vmw_have_lib -eq 1; then
20249
if test "$have_procps" = "no"; then
20252
if test -z "proc-3.2.8"; then
20253
as_fn_error $? "'library' parameter is required.'" "$LINENO" 5
20255
if test -z "PROCPS"; then
20256
as_fn_error $? "'lvar' parameter is required.'" "$LINENO" 5
20260
ac_vmw_have_lib_func=0
20261
ac_vmw_have_lib_header=0
20262
ac_vmw_custom_libs=
20265
# First, try any user-defined CUSTOM_* flags.
20267
if test -n "${CUSTOM_PROCPS_CPPFLAGS}" || test -n "${CUSTOM_PROCPS_LIBS}"; then
20268
ac_vmw_custom_libs="${CUSTOM_PROCPS_LIBS} -lproc-3.2.8"
20269
if test -n ""; then
20270
ORIGINAL_CPPFLAGS="$CPPFLAGS"
20271
CPPFLAGS="${CUSTOM_PROCPS_CPPFLAGS} $CPPFLAGS"
20273
ac_fn_c_check_header_mongrel "$LINENO" "" "ac_cv_header_" "$ac_includes_default"
20274
if test "x$ac_cv_header_" = xyes; then :
20275
ac_vmw_have_lib_header=1
20280
CPPFLAGS="$ORIGINAL_CPPFLAGS"
20282
ac_vmw_have_lib_header=1
20285
# Check a specific function in the library if requested.
20286
# If it hasn't, just pick a random function from libc, just to make
20287
# sure the linker can find the library being tested.
20288
if test $ac_vmw_have_lib_header -eq 1; then
20289
if test -n "getstat"; then
20290
ac_vmw_function=getstat
20292
ac_vmw_function=strlen
20294
as_ac_Lib=`$as_echo "ac_cv_lib_proc-3.2.8_$ac_vmw_function" | $as_tr_sh`
20295
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_vmw_function in -lproc-3.2.8" >&5
20296
$as_echo_n "checking for $ac_vmw_function in -lproc-3.2.8... " >&6; }
20297
if eval \${$as_ac_Lib+:} false; then :
20298
$as_echo_n "(cached) " >&6
20300
ac_check_lib_save_LIBS=$LIBS
20301
LIBS="-lproc-3.2.8 $ac_vmw_custom_libs $LIBS"
20302
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20303
/* end confdefs.h. */
20305
/* Override any GCC internal prototype to avoid an error.
20306
Use char because int might match the return type of a GCC
20307
builtin and then its argument prototype would still apply. */
20311
char $ac_vmw_function ();
20315
return $ac_vmw_function ();
20320
if ac_fn_c_try_link "$LINENO"; then :
20321
eval "$as_ac_Lib=yes"
20323
eval "$as_ac_Lib=no"
20325
rm -f core conftest.err conftest.$ac_objext \
20326
conftest$ac_exeext conftest.$ac_ext
20327
LIBS=$ac_check_lib_save_LIBS
20329
eval ac_res=\$$as_ac_Lib
20330
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20331
$as_echo "$ac_res" >&6; }
20332
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20333
ac_vmw_have_lib_func=1
20338
if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
20339
PROCPS_CPPFLAGS="${CUSTOM_PROCPS_CPPFLAGS}"
20340
PROCPS_LIBS="$ac_vmw_custom_libs"
20345
# If that didn't work, try with pkg-config.
20346
if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n ""; then
20347
if test -n ""; then
20348
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for >= (via pkg-config)" >&5
20349
$as_echo_n "checking for >= (via pkg-config)... " >&6; }
20350
if pkg-config --exists ' >= '; then
20354
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for (via pkg-config)" >&5
20355
$as_echo_n "checking for (via pkg-config)... " >&6; }
20356
if pkg-config --exists ''; then
20361
if test $ac_vmw_have_lib -eq 1; then
20362
# Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
20363
# fails on OpenSolaris B71. So be pessimistic.
20364
ac_vmw_cppflags="`pkg-config --cflags `"
20366
ac_vmw_libs="`pkg-config --libs `"
20368
if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
20369
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20370
$as_echo "yes" >&6; }
20371
PROCPS_CPPFLAGS="$ac_vmw_cppflags"
20372
PROCPS_LIBS="$ac_vmw_libs"
20374
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20375
$as_echo "no" >&6; }
20378
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20379
$as_echo "no" >&6; }
20383
# If we still haven't found the lib, try with the library's custom "config" script.
20384
# Before checking, flush the AC_PATH_PROG cached variable.
20385
unset ac_cv_path_ac_vmw_lib_cfg
20386
unset ac_vmw_lib_cfg
20387
if test $ac_vmw_have_lib -eq 0 && test -n ""; then
20388
# Extract the first word of "", so it can be a program name with args.
20389
set dummy ; ac_word=$2
20390
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20391
$as_echo_n "checking for $ac_word... " >&6; }
20392
if ${ac_cv_path_ac_vmw_lib_cfg+:} false; then :
20393
$as_echo_n "(cached) " >&6
20395
case $ac_vmw_lib_cfg in
20397
ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
20400
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20401
for as_dir in $PATH
20404
test -z "$as_dir" && as_dir=.
20405
for ac_exec_ext in '' $ac_executable_extensions; do
20406
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20407
ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
20408
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20415
test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
20419
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
20420
if test -n "$ac_vmw_lib_cfg"; then
20421
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_vmw_lib_cfg" >&5
20422
$as_echo "$ac_vmw_lib_cfg" >&6; }
20424
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20425
$as_echo "no" >&6; }
20429
if test "$ac_vmw_lib_cfg" != "no"; then
20430
# XXX: icu-config does not follow the "--cflags" and "--libs" convention,
20431
# so single it out here to avoid having to replicate all the rest of the
20433
if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
20434
PROCPS_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
20435
PROCPS_LIBS="`$ac_vmw_lib_cfg --ldflags`"
20437
PROCPS_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
20438
PROCPS_LIBS="`$ac_vmw_lib_cfg --libs`"
20444
# Finish by executing the user provided action. The call to "true" is needed
20445
# because the actions are optional, and we need something inside the block.
20446
if test $ac_vmw_have_lib -eq 1; then
20460
if test "$have_procps" = "no"; then
20463
if test -z "proc-3.2.7"; then
20464
as_fn_error $? "'library' parameter is required.'" "$LINENO" 5
20466
if test -z "PROCPS"; then
20467
as_fn_error $? "'lvar' parameter is required.'" "$LINENO" 5
20471
ac_vmw_have_lib_func=0
20472
ac_vmw_have_lib_header=0
20473
ac_vmw_custom_libs=
20476
# First, try any user-defined CUSTOM_* flags.
20478
if test -n "${CUSTOM_PROCPS_CPPFLAGS}" || test -n "${CUSTOM_PROCPS_LIBS}"; then
20479
ac_vmw_custom_libs="${CUSTOM_PROCPS_LIBS} -lproc-3.2.7"
20480
if test -n ""; then
20481
ORIGINAL_CPPFLAGS="$CPPFLAGS"
20482
CPPFLAGS="${CUSTOM_PROCPS_CPPFLAGS} $CPPFLAGS"
20484
ac_fn_c_check_header_mongrel "$LINENO" "" "ac_cv_header_" "$ac_includes_default"
20485
if test "x$ac_cv_header_" = xyes; then :
20486
ac_vmw_have_lib_header=1
20491
CPPFLAGS="$ORIGINAL_CPPFLAGS"
20493
ac_vmw_have_lib_header=1
20496
# Check a specific function in the library if requested.
20497
# If it hasn't, just pick a random function from libc, just to make
20498
# sure the linker can find the library being tested.
20499
if test $ac_vmw_have_lib_header -eq 1; then
20500
if test -n "getstat"; then
20501
ac_vmw_function=getstat
20503
ac_vmw_function=strlen
20505
as_ac_Lib=`$as_echo "ac_cv_lib_proc-3.2.7_$ac_vmw_function" | $as_tr_sh`
20506
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_vmw_function in -lproc-3.2.7" >&5
20507
$as_echo_n "checking for $ac_vmw_function in -lproc-3.2.7... " >&6; }
20508
if eval \${$as_ac_Lib+:} false; then :
20509
$as_echo_n "(cached) " >&6
20511
ac_check_lib_save_LIBS=$LIBS
20512
LIBS="-lproc-3.2.7 $ac_vmw_custom_libs $LIBS"
20513
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20514
/* end confdefs.h. */
20516
/* Override any GCC internal prototype to avoid an error.
20517
Use char because int might match the return type of a GCC
20518
builtin and then its argument prototype would still apply. */
20522
char $ac_vmw_function ();
20526
return $ac_vmw_function ();
20531
if ac_fn_c_try_link "$LINENO"; then :
20532
eval "$as_ac_Lib=yes"
20534
eval "$as_ac_Lib=no"
20536
rm -f core conftest.err conftest.$ac_objext \
20537
conftest$ac_exeext conftest.$ac_ext
20538
LIBS=$ac_check_lib_save_LIBS
20540
eval ac_res=\$$as_ac_Lib
20541
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20542
$as_echo "$ac_res" >&6; }
20543
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20544
ac_vmw_have_lib_func=1
20549
if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
20550
PROCPS_CPPFLAGS="${CUSTOM_PROCPS_CPPFLAGS}"
20551
PROCPS_LIBS="$ac_vmw_custom_libs"
20556
# If that didn't work, try with pkg-config.
20557
if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n ""; then
20558
if test -n ""; then
20559
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for >= (via pkg-config)" >&5
20560
$as_echo_n "checking for >= (via pkg-config)... " >&6; }
20561
if pkg-config --exists ' >= '; then
20565
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for (via pkg-config)" >&5
20566
$as_echo_n "checking for (via pkg-config)... " >&6; }
20567
if pkg-config --exists ''; then
20572
if test $ac_vmw_have_lib -eq 1; then
20573
# Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
20574
# fails on OpenSolaris B71. So be pessimistic.
20575
ac_vmw_cppflags="`pkg-config --cflags `"
20577
ac_vmw_libs="`pkg-config --libs `"
20579
if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
20580
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20581
$as_echo "yes" >&6; }
20582
PROCPS_CPPFLAGS="$ac_vmw_cppflags"
20583
PROCPS_LIBS="$ac_vmw_libs"
20585
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20586
$as_echo "no" >&6; }
20589
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20590
$as_echo "no" >&6; }
20594
# If we still haven't found the lib, try with the library's custom "config" script.
20595
# Before checking, flush the AC_PATH_PROG cached variable.
20596
unset ac_cv_path_ac_vmw_lib_cfg
20597
unset ac_vmw_lib_cfg
20598
if test $ac_vmw_have_lib -eq 0 && test -n ""; then
20599
# Extract the first word of "", so it can be a program name with args.
20600
set dummy ; ac_word=$2
20601
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20602
$as_echo_n "checking for $ac_word... " >&6; }
20603
if ${ac_cv_path_ac_vmw_lib_cfg+:} false; then :
20604
$as_echo_n "(cached) " >&6
20606
case $ac_vmw_lib_cfg in
20608
ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
20611
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20612
for as_dir in $PATH
20615
test -z "$as_dir" && as_dir=.
20616
for ac_exec_ext in '' $ac_executable_extensions; do
20617
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20618
ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
20619
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20626
test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
20630
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
20631
if test -n "$ac_vmw_lib_cfg"; then
20632
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_vmw_lib_cfg" >&5
20633
$as_echo "$ac_vmw_lib_cfg" >&6; }
20635
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20636
$as_echo "no" >&6; }
20640
if test "$ac_vmw_lib_cfg" != "no"; then
20641
# XXX: icu-config does not follow the "--cflags" and "--libs" convention,
20642
# so single it out here to avoid having to replicate all the rest of the
20644
if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
20645
PROCPS_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
20646
PROCPS_LIBS="`$ac_vmw_lib_cfg --ldflags`"
20648
PROCPS_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
20649
PROCPS_LIBS="`$ac_vmw_lib_cfg --libs`"
20655
# Finish by executing the user provided action. The call to "true" is needed
20656
# because the actions are optional, and we need something inside the block.
20657
if test $ac_vmw_have_lib -eq 1; then
20664
as_fn_error $? "libproc not found. Please configure without procps (using --without-procps) or install procps - http://procps.sourceforge.net" "$LINENO" 5
20670
if test "$with_procps" != "yes"; then
20672
$as_echo "#define NO_PROCPS 1" >>confdefs.h
20677
# Check whether --with-dnet was given.
20678
if test "${with_dnet+set}" = set; then :
20679
withval=$with_dnet;
20686
if test "$with_dnet" = "yes"; then
20687
# On Debian, dnet is installed via the libdumbnet package. We need to
20688
# detect this so that our source files include dumbnet.h instead of
20689
# dnet.h, which is part of a different package altogether.
20692
if test -z "dumbnet"; then
20693
as_fn_error $? "'library' parameter is required.'" "$LINENO" 5
20695
if test -z "DNET"; then
20696
as_fn_error $? "'lvar' parameter is required.'" "$LINENO" 5
20700
ac_vmw_have_lib_func=0
20701
ac_vmw_have_lib_header=0
20702
ac_vmw_custom_libs=
20705
# First, try any user-defined CUSTOM_* flags.
20707
if test -n "${CUSTOM_DNET_CPPFLAGS}" || test -n "${CUSTOM_DNET_LIBS}"; then
20708
ac_vmw_custom_libs="${CUSTOM_DNET_LIBS} -ldumbnet"
20709
if test -n "dumbnet.h"; then
20710
ORIGINAL_CPPFLAGS="$CPPFLAGS"
20711
CPPFLAGS="${CUSTOM_DNET_CPPFLAGS} $CPPFLAGS"
20713
ac_fn_c_check_header_mongrel "$LINENO" "dumbnet.h" "ac_cv_header_dumbnet_h" "$ac_includes_default"
20714
if test "x$ac_cv_header_dumbnet_h" = xyes; then :
20715
ac_vmw_have_lib_header=1
20720
CPPFLAGS="$ORIGINAL_CPPFLAGS"
20722
ac_vmw_have_lib_header=1
20725
# Check a specific function in the library if requested.
20726
# If it hasn't, just pick a random function from libc, just to make
20727
# sure the linker can find the library being tested.
20728
if test $ac_vmw_have_lib_header -eq 1; then
20729
if test -n "intf_open"; then
20730
ac_vmw_function=intf_open
20732
ac_vmw_function=strlen
20734
as_ac_Lib=`$as_echo "ac_cv_lib_dumbnet_$ac_vmw_function" | $as_tr_sh`
20735
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_vmw_function in -ldumbnet" >&5
20736
$as_echo_n "checking for $ac_vmw_function in -ldumbnet... " >&6; }
20737
if eval \${$as_ac_Lib+:} false; then :
20738
$as_echo_n "(cached) " >&6
20740
ac_check_lib_save_LIBS=$LIBS
20741
LIBS="-ldumbnet $ac_vmw_custom_libs $LIBS"
20742
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20743
/* end confdefs.h. */
20745
/* Override any GCC internal prototype to avoid an error.
20746
Use char because int might match the return type of a GCC
20747
builtin and then its argument prototype would still apply. */
20751
char $ac_vmw_function ();
20755
return $ac_vmw_function ();
20760
if ac_fn_c_try_link "$LINENO"; then :
20761
eval "$as_ac_Lib=yes"
20763
eval "$as_ac_Lib=no"
20765
rm -f core conftest.err conftest.$ac_objext \
20766
conftest$ac_exeext conftest.$ac_ext
20767
LIBS=$ac_check_lib_save_LIBS
20769
eval ac_res=\$$as_ac_Lib
20770
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20771
$as_echo "$ac_res" >&6; }
20772
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20773
ac_vmw_have_lib_func=1
20778
if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
20779
DNET_CPPFLAGS="${CUSTOM_DNET_CPPFLAGS}"
20780
DNET_LIBS="$ac_vmw_custom_libs"
20785
# If that didn't work, try with pkg-config.
20786
if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n ""; then
20787
if test -n ""; then
20788
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for >= (via pkg-config)" >&5
20789
$as_echo_n "checking for >= (via pkg-config)... " >&6; }
20790
if pkg-config --exists ' >= '; then
20794
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for (via pkg-config)" >&5
20795
$as_echo_n "checking for (via pkg-config)... " >&6; }
20796
if pkg-config --exists ''; then
20801
if test $ac_vmw_have_lib -eq 1; then
20802
# Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
20803
# fails on OpenSolaris B71. So be pessimistic.
20804
ac_vmw_cppflags="`pkg-config --cflags `"
20806
ac_vmw_libs="`pkg-config --libs `"
20808
if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
20809
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20810
$as_echo "yes" >&6; }
20811
DNET_CPPFLAGS="$ac_vmw_cppflags"
20812
DNET_LIBS="$ac_vmw_libs"
20814
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20815
$as_echo "no" >&6; }
20818
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20819
$as_echo "no" >&6; }
20823
# If we still haven't found the lib, try with the library's custom "config" script.
20824
# Before checking, flush the AC_PATH_PROG cached variable.
20825
unset ac_cv_path_ac_vmw_lib_cfg
20826
unset ac_vmw_lib_cfg
20827
if test $ac_vmw_have_lib -eq 0 && test -n "dumbnet-config"; then
20828
# Extract the first word of "dumbnet-config", so it can be a program name with args.
20829
set dummy dumbnet-config; ac_word=$2
20830
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20831
$as_echo_n "checking for $ac_word... " >&6; }
20832
if ${ac_cv_path_ac_vmw_lib_cfg+:} false; then :
20833
$as_echo_n "(cached) " >&6
20835
case $ac_vmw_lib_cfg in
20837
ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
20840
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20841
for as_dir in $PATH
20844
test -z "$as_dir" && as_dir=.
20845
for ac_exec_ext in '' $ac_executable_extensions; do
20846
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20847
ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
20848
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20855
test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
20859
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
20860
if test -n "$ac_vmw_lib_cfg"; then
20861
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_vmw_lib_cfg" >&5
20862
$as_echo "$ac_vmw_lib_cfg" >&6; }
20864
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20865
$as_echo "no" >&6; }
20869
if test "$ac_vmw_lib_cfg" != "no"; then
20870
# XXX: icu-config does not follow the "--cflags" and "--libs" convention,
20871
# so single it out here to avoid having to replicate all the rest of the
20873
if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
20874
DNET_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
20875
DNET_LIBS="`$ac_vmw_lib_cfg --ldflags`"
20877
DNET_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
20878
DNET_LIBS="`$ac_vmw_lib_cfg --libs`"
20884
# Finish by executing the user provided action. The call to "true" is needed
20885
# because the actions are optional, and we need something inside the block.
20886
if test $ac_vmw_have_lib -eq 1; then
20892
$as_echo "#define DNET_IS_DUMBNET 1" >>confdefs.h
20900
if test $have_dnet = "no"; then
20903
if test -z "dnet"; then
20904
as_fn_error $? "'library' parameter is required.'" "$LINENO" 5
20906
if test -z "DNET"; then
20907
as_fn_error $? "'lvar' parameter is required.'" "$LINENO" 5
20911
ac_vmw_have_lib_func=0
20912
ac_vmw_have_lib_header=0
20913
ac_vmw_custom_libs=
20916
# First, try any user-defined CUSTOM_* flags.
20918
if test -n "${CUSTOM_DNET_CPPFLAGS}" || test -n "${CUSTOM_DNET_LIBS}"; then
20919
ac_vmw_custom_libs="${CUSTOM_DNET_LIBS} -ldnet"
20920
if test -n "dnet.h"; then
20921
ORIGINAL_CPPFLAGS="$CPPFLAGS"
20922
CPPFLAGS="${CUSTOM_DNET_CPPFLAGS} $CPPFLAGS"
20924
ac_fn_c_check_header_mongrel "$LINENO" "dnet.h" "ac_cv_header_dnet_h" "$ac_includes_default"
20925
if test "x$ac_cv_header_dnet_h" = xyes; then :
20926
ac_vmw_have_lib_header=1
20931
CPPFLAGS="$ORIGINAL_CPPFLAGS"
20933
ac_vmw_have_lib_header=1
20936
# Check a specific function in the library if requested.
20937
# If it hasn't, just pick a random function from libc, just to make
20938
# sure the linker can find the library being tested.
20939
if test $ac_vmw_have_lib_header -eq 1; then
20940
if test -n "intf_open"; then
20941
ac_vmw_function=intf_open
20943
ac_vmw_function=strlen
20945
as_ac_Lib=`$as_echo "ac_cv_lib_dnet_$ac_vmw_function" | $as_tr_sh`
20946
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_vmw_function in -ldnet" >&5
20947
$as_echo_n "checking for $ac_vmw_function in -ldnet... " >&6; }
20948
if eval \${$as_ac_Lib+:} false; then :
20949
$as_echo_n "(cached) " >&6
20951
ac_check_lib_save_LIBS=$LIBS
20952
LIBS="-ldnet $ac_vmw_custom_libs $LIBS"
20953
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20954
/* end confdefs.h. */
20956
/* Override any GCC internal prototype to avoid an error.
20957
Use char because int might match the return type of a GCC
20958
builtin and then its argument prototype would still apply. */
20962
char $ac_vmw_function ();
20966
return $ac_vmw_function ();
20971
if ac_fn_c_try_link "$LINENO"; then :
20972
eval "$as_ac_Lib=yes"
20974
eval "$as_ac_Lib=no"
20976
rm -f core conftest.err conftest.$ac_objext \
20977
conftest$ac_exeext conftest.$ac_ext
20978
LIBS=$ac_check_lib_save_LIBS
20980
eval ac_res=\$$as_ac_Lib
20981
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20982
$as_echo "$ac_res" >&6; }
20983
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20984
ac_vmw_have_lib_func=1
20989
if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
20990
DNET_CPPFLAGS="${CUSTOM_DNET_CPPFLAGS}"
20991
DNET_LIBS="$ac_vmw_custom_libs"
20996
# If that didn't work, try with pkg-config.
20997
if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n ""; then
20998
if test -n ""; then
20999
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for >= (via pkg-config)" >&5
21000
$as_echo_n "checking for >= (via pkg-config)... " >&6; }
21001
if pkg-config --exists ' >= '; then
21005
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for (via pkg-config)" >&5
21006
$as_echo_n "checking for (via pkg-config)... " >&6; }
21007
if pkg-config --exists ''; then
21012
if test $ac_vmw_have_lib -eq 1; then
21013
# Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
21014
# fails on OpenSolaris B71. So be pessimistic.
21015
ac_vmw_cppflags="`pkg-config --cflags `"
21017
ac_vmw_libs="`pkg-config --libs `"
21019
if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
21020
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21021
$as_echo "yes" >&6; }
21022
DNET_CPPFLAGS="$ac_vmw_cppflags"
21023
DNET_LIBS="$ac_vmw_libs"
21025
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21026
$as_echo "no" >&6; }
21029
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21030
$as_echo "no" >&6; }
21034
# If we still haven't found the lib, try with the library's custom "config" script.
21035
# Before checking, flush the AC_PATH_PROG cached variable.
21036
unset ac_cv_path_ac_vmw_lib_cfg
21037
unset ac_vmw_lib_cfg
21038
if test $ac_vmw_have_lib -eq 0 && test -n "dnet-config"; then
21039
# Extract the first word of "dnet-config", so it can be a program name with args.
21040
set dummy dnet-config; ac_word=$2
21041
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21042
$as_echo_n "checking for $ac_word... " >&6; }
21043
if ${ac_cv_path_ac_vmw_lib_cfg+:} false; then :
21044
$as_echo_n "(cached) " >&6
21046
case $ac_vmw_lib_cfg in
21048
ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
21051
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21052
for as_dir in $PATH
21055
test -z "$as_dir" && as_dir=.
21056
for ac_exec_ext in '' $ac_executable_extensions; do
21057
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21058
ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
21059
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21066
test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
21070
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
21071
if test -n "$ac_vmw_lib_cfg"; then
21072
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_vmw_lib_cfg" >&5
21073
$as_echo "$ac_vmw_lib_cfg" >&6; }
21075
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21076
$as_echo "no" >&6; }
21080
if test "$ac_vmw_lib_cfg" != "no"; then
21081
# XXX: icu-config does not follow the "--cflags" and "--libs" convention,
21082
# so single it out here to avoid having to replicate all the rest of the
21084
if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
21085
DNET_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
21086
DNET_LIBS="`$ac_vmw_lib_cfg --ldflags`"
21088
DNET_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
21089
DNET_LIBS="`$ac_vmw_lib_cfg --libs`"
21095
# Finish by executing the user provided action. The call to "true" is needed
21096
# because the actions are optional, and we need something inside the block.
21097
if test $ac_vmw_have_lib -eq 1; then
21109
if test $have_dnet = "no"; then
21110
as_fn_error $? "dnet-config was not found on your PATH. Please configure without dnet (using --without-dnet) or install dnet - http://libdnet.sourceforge.net" "$LINENO" 5
21114
if test "$with_dnet" != "yes"; then
21116
$as_echo "#define NO_DNET 1" >>confdefs.h
21121
# Check whether --with-icu was given.
21122
if test "${with_icu+set}" = set; then :
21129
if test "$have_x" = "yes" -o "$with_icu" = "yes"; then
21130
if test -n "$ac_tool_prefix"; then
21131
# Extract the first word of "${ac_tool_prefix}$CXX", so it can be a program name with args.
21132
set dummy ${ac_tool_prefix}$CXX; ac_word=$2
21133
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21134
$as_echo_n "checking for $ac_word... " >&6; }
21135
if ${ac_cv_prog_have_cxx+:} false; then :
21136
$as_echo_n "(cached) " >&6
21138
if test -n "$have_cxx"; then
21139
ac_cv_prog_have_cxx="$have_cxx" # Let the user override the test.
21141
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21142
for as_dir in $PATH
21145
test -z "$as_dir" && as_dir=.
21146
for ac_exec_ext in '' $ac_executable_extensions; do
21147
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21148
ac_cv_prog_have_cxx="${ac_tool_prefix}$CXX"
21149
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21158
have_cxx=$ac_cv_prog_have_cxx
21159
if test -n "$have_cxx"; then
21160
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_cxx" >&5
21161
$as_echo "$have_cxx" >&6; }
21163
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21164
$as_echo "no" >&6; }
21169
if test -z "$ac_cv_prog_have_cxx"; then
21170
ac_ct_have_cxx=$have_cxx
21171
# Extract the first word of "$CXX", so it can be a program name with args.
21172
set dummy $CXX; ac_word=$2
21173
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21174
$as_echo_n "checking for $ac_word... " >&6; }
21175
if ${ac_cv_prog_ac_ct_have_cxx+:} false; then :
21176
$as_echo_n "(cached) " >&6
21178
if test -n "$ac_ct_have_cxx"; then
21179
ac_cv_prog_ac_ct_have_cxx="$ac_ct_have_cxx" # Let the user override the test.
21181
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21182
for as_dir in $PATH
21185
test -z "$as_dir" && as_dir=.
21186
for ac_exec_ext in '' $ac_executable_extensions; do
21187
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21188
ac_cv_prog_ac_ct_have_cxx="$CXX"
21189
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21198
ac_ct_have_cxx=$ac_cv_prog_ac_ct_have_cxx
21199
if test -n "$ac_ct_have_cxx"; then
21200
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_have_cxx" >&5
21201
$as_echo "$ac_ct_have_cxx" >&6; }
21203
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21204
$as_echo "no" >&6; }
21207
if test "x$ac_ct_have_cxx" = x; then
21210
case $cross_compiling:$ac_tool_warned in
21212
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21213
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21214
ac_tool_warned=yes ;;
21216
have_cxx=$ac_ct_have_cxx
21219
have_cxx="$ac_cv_prog_have_cxx"
21222
if test "$have_cxx" = "no"; then
21223
as_fn_error $? "C++ compiler not found. Make sure you have a C++ compiler installed or configure without X11 (using --without-x) and without ICU (using --without-icu)." "$LINENO" 5
21227
if test "$with_icu" = "yes"; then
21231
ac_cpp='$CXXCPP $CPPFLAGS'
21232
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21233
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21234
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21238
if test -z "icuuc"; then
21239
as_fn_error $? "'library' parameter is required.'" "$LINENO" 5
21241
if test -z "ICU"; then
21242
as_fn_error $? "'lvar' parameter is required.'" "$LINENO" 5
21246
ac_vmw_have_lib_func=0
21247
ac_vmw_have_lib_header=0
21248
ac_vmw_custom_libs=
21251
# First, try any user-defined CUSTOM_* flags.
21253
if test -n "${CUSTOM_ICU_CPPFLAGS}" || test -n "${CUSTOM_ICU_LIBS}"; then
21254
ac_vmw_custom_libs="${CUSTOM_ICU_LIBS} -licuuc"
21255
if test -n "unicode/utf.h"; then
21256
ORIGINAL_CPPFLAGS="$CPPFLAGS"
21257
CPPFLAGS="${CUSTOM_ICU_CPPFLAGS} $CPPFLAGS"
21259
ac_fn_cxx_check_header_mongrel "$LINENO" "unicode/utf.h" "ac_cv_header_unicode_utf_h" "$ac_includes_default"
21260
if test "x$ac_cv_header_unicode_utf_h" = xyes; then :
21261
ac_vmw_have_lib_header=1
21266
CPPFLAGS="$ORIGINAL_CPPFLAGS"
21268
ac_vmw_have_lib_header=1
21271
# Check a specific function in the library if requested.
21272
# If it hasn't, just pick a random function from libc, just to make
21273
# sure the linker can find the library being tested.
21274
if test $ac_vmw_have_lib_header -eq 1; then
21275
if test -n ""; then
21278
ac_vmw_function=strlen
21280
as_ac_Lib=`$as_echo "ac_cv_lib_icuuc_$ac_vmw_function" | $as_tr_sh`
21281
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_vmw_function in -licuuc" >&5
21282
$as_echo_n "checking for $ac_vmw_function in -licuuc... " >&6; }
21283
if eval \${$as_ac_Lib+:} false; then :
21284
$as_echo_n "(cached) " >&6
21286
ac_check_lib_save_LIBS=$LIBS
21287
LIBS="-licuuc $ac_vmw_custom_libs $LIBS"
21288
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21289
/* end confdefs.h. */
21291
/* Override any GCC internal prototype to avoid an error.
21292
Use char because int might match the return type of a GCC
21293
builtin and then its argument prototype would still apply. */
21297
char $ac_vmw_function ();
21301
return $ac_vmw_function ();
21306
if ac_fn_cxx_try_link "$LINENO"; then :
21307
eval "$as_ac_Lib=yes"
21309
eval "$as_ac_Lib=no"
21311
rm -f core conftest.err conftest.$ac_objext \
21312
conftest$ac_exeext conftest.$ac_ext
21313
LIBS=$ac_check_lib_save_LIBS
21315
eval ac_res=\$$as_ac_Lib
21316
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21317
$as_echo "$ac_res" >&6; }
21318
if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21319
ac_vmw_have_lib_func=1
21324
if test $ac_vmw_have_lib_func -eq 1 && test $ac_vmw_have_lib_header -eq 1; then
21325
ICU_CPPFLAGS="${CUSTOM_ICU_CPPFLAGS}"
21326
ICU_LIBS="$ac_vmw_custom_libs"
21331
# If that didn't work, try with pkg-config.
21332
if test $ac_vmw_have_lib -eq 0 && test "$HAVE_PKG_CONFIG" = "yes" && test -n ""; then
21333
if test -n ""; then
21334
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for >= (via pkg-config)" >&5
21335
$as_echo_n "checking for >= (via pkg-config)... " >&6; }
21336
if pkg-config --exists ' >= '; then
21340
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for (via pkg-config)" >&5
21341
$as_echo_n "checking for (via pkg-config)... " >&6; }
21342
if pkg-config --exists ''; then
21347
if test $ac_vmw_have_lib -eq 1; then
21348
# Sometimes pkg-config might fail; for example, "pkg-config gtk+-2.0 --cflags"
21349
# fails on OpenSolaris B71. So be pessimistic.
21350
ac_vmw_cppflags="`pkg-config --cflags `"
21352
ac_vmw_libs="`pkg-config --libs `"
21354
if test $ac_vmw_ret1 -eq 0 && test $ac_vmw_ret2 -eq 0; then
21355
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21356
$as_echo "yes" >&6; }
21357
ICU_CPPFLAGS="$ac_vmw_cppflags"
21358
ICU_LIBS="$ac_vmw_libs"
21360
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21361
$as_echo "no" >&6; }
21364
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21365
$as_echo "no" >&6; }
21369
# If we still haven't found the lib, try with the library's custom "config" script.
21370
# Before checking, flush the AC_PATH_PROG cached variable.
21371
unset ac_cv_path_ac_vmw_lib_cfg
21372
unset ac_vmw_lib_cfg
21373
if test $ac_vmw_have_lib -eq 0 && test -n "icu-config"; then
21374
# Extract the first word of "icu-config", so it can be a program name with args.
21375
set dummy icu-config; ac_word=$2
21376
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21377
$as_echo_n "checking for $ac_word... " >&6; }
21378
if ${ac_cv_path_ac_vmw_lib_cfg+:} false; then :
21379
$as_echo_n "(cached) " >&6
21381
case $ac_vmw_lib_cfg in
21383
ac_cv_path_ac_vmw_lib_cfg="$ac_vmw_lib_cfg" # Let the user override the test with a path.
21386
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21387
for as_dir in $PATH
21390
test -z "$as_dir" && as_dir=.
21391
for ac_exec_ext in '' $ac_executable_extensions; do
21392
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21393
ac_cv_path_ac_vmw_lib_cfg="$as_dir/$ac_word$ac_exec_ext"
21394
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21401
test -z "$ac_cv_path_ac_vmw_lib_cfg" && ac_cv_path_ac_vmw_lib_cfg="no"
21405
ac_vmw_lib_cfg=$ac_cv_path_ac_vmw_lib_cfg
21406
if test -n "$ac_vmw_lib_cfg"; then
21407
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_vmw_lib_cfg" >&5
21408
$as_echo "$ac_vmw_lib_cfg" >&6; }
21410
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21411
$as_echo "no" >&6; }
21415
if test "$ac_vmw_lib_cfg" != "no"; then
21416
# XXX: icu-config does not follow the "--cflags" and "--libs" convention,
21417
# so single it out here to avoid having to replicate all the rest of the
21419
if test `basename "$ac_vmw_lib_cfg"` = "icu-config"; then
21420
ICU_CPPFLAGS="`$ac_vmw_lib_cfg --cppflags`"
21421
ICU_LIBS="`$ac_vmw_lib_cfg --ldflags`"
21423
ICU_CPPFLAGS="`$ac_vmw_lib_cfg --cflags`"
21424
ICU_LIBS="`$ac_vmw_lib_cfg --libs`"
21430
# Finish by executing the user provided action. The call to "true" is needed
21431
# because the actions are optional, and we need something inside the block.
21432
if test $ac_vmw_have_lib -eq 1; then
21436
ICU_CPPFLAGS="$ICU_CPPFLAGS -DUSE_ICU"
21439
as_fn_error $? "ICU library not found. Please configure without ICU (using --without-icu) or install ICU - http://www.icu-project.org" "$LINENO" 5
21443
ac_cpp='$CPP $CPPFLAGS'
21444
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21445
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21446
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21449
# Check whether we have ICU >= 3.8.
21451
ac_cpp='$CXXCPP $CPPFLAGS'
21452
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21453
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21454
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21456
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ucasemap_utf8ToTitle in ICU" >&5
21457
$as_echo_n "checking for ucasemap_utf8ToTitle in ICU... " >&6; }
21458
ORIGINAL_CPPFLAGS="$CPPFLAGS"
21459
CPPFLAGS="$CPPFLAGS $ICU_CPPFLAGS"
21460
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21461
/* end confdefs.h. */
21462
#include <unicode/ucasemap.h>
21467
(void) &ucasemap_utf8ToTitle;
21474
if ac_fn_cxx_try_compile "$LINENO"; then :
21476
ICU_CPPFLAGS="$ICU_CPPFLAGS -DHAVE_ICU_38"
21477
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21478
$as_echo "yes" >&6; }
21481
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21482
$as_echo "no" >&6; }
21484
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21485
CPPFLAGS="$ORIGINAL_CPPFLAGS"
21487
ac_cpp='$CPP $CPPFLAGS'
21488
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21489
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21490
ac_compiler_gnu=$ac_cv_c_compiler_gnu
21493
# Easier to give all modules the ICU defines/includes...
21494
CPPFLAGS="$CPPFLAGS $ICU_CPPFLAGS"
21496
CPPFLAGS="$CPPFLAGS -DNO_ICU"
21499
# Extract the first word of "rpcgen", so it can be a program name with args.
21500
set dummy rpcgen; ac_word=$2
21501
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21502
$as_echo_n "checking for $ac_word... " >&6; }
21503
if ${ac_cv_path_RPCGEN+:} false; then :
21504
$as_echo_n "(cached) " >&6
21508
ac_cv_path_RPCGEN="$RPCGEN" # Let the user override the test with a path.
21511
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21512
for as_dir in $PATH
21515
test -z "$as_dir" && as_dir=.
21516
for ac_exec_ext in '' $ac_executable_extensions; do
21517
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21518
ac_cv_path_RPCGEN="$as_dir/$ac_word$ac_exec_ext"
21519
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21526
test -z "$ac_cv_path_RPCGEN" && ac_cv_path_RPCGEN=" as_fn_error $? "rpcgen not found. Please install the libc devel package." "$LINENO" 5 "
21530
RPCGEN=$ac_cv_path_RPCGEN
21531
if test -n "$RPCGEN"; then
21532
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPCGEN" >&5
21533
$as_echo "$RPCGEN" >&6; }
21535
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21536
$as_echo "no" >&6; }
21545
for ac_header in crypt.h
21547
ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
21548
if test "x$ac_cv_header_crypt_h" = xyes; then :
21549
cat >>confdefs.h <<_ACEOF
21550
#define HAVE_CRYPT_H 1
21557
for ac_header in inttypes.h
21559
ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
21560
if test "x$ac_cv_header_inttypes_h" = xyes; then :
21561
cat >>confdefs.h <<_ACEOF
21562
#define HAVE_INTTYPES_H 1
21569
for ac_header in stdint.h
21571
ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
21572
if test "x$ac_cv_header_stdint_h" = xyes; then :
21573
cat >>confdefs.h <<_ACEOF
21574
#define HAVE_STDINT_H 1
21581
for ac_header in stdlib.h
21583
ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
21584
if test "x$ac_cv_header_stdlib_h" = xyes; then :
21585
cat >>confdefs.h <<_ACEOF
21586
#define HAVE_STDLIB_H 1
21593
for ac_header in wchar.h
21595
ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
21596
if test "x$ac_cv_header_wchar_h" = xyes; then :
21597
cat >>confdefs.h <<_ACEOF
21598
#define HAVE_WCHAR_H 1
21605
for ac_header in sys/inttypes.h
21607
ac_fn_c_check_header_mongrel "$LINENO" "sys/inttypes.h" "ac_cv_header_sys_inttypes_h" "$ac_includes_default"
21608
if test "x$ac_cv_header_sys_inttypes_h" = xyes; then :
21609
cat >>confdefs.h <<_ACEOF
21610
#define HAVE_SYS_INTTYPES_H 1
21617
for ac_header in sys/io.h
21619
ac_fn_c_check_header_mongrel "$LINENO" "sys/io.h" "ac_cv_header_sys_io_h" "$ac_includes_default"
21620
if test "x$ac_cv_header_sys_io_h" = xyes; then :
21621
cat >>confdefs.h <<_ACEOF
21622
#define HAVE_SYS_IO_H 1
21629
for ac_header in sys/param.h
21631
ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
21632
if test "x$ac_cv_header_sys_param_h" = xyes; then :
21633
cat >>confdefs.h <<_ACEOF
21634
#define HAVE_SYS_PARAM_H 1
21640
# Required to make the sys/user.h check work correctly on FreeBSD
21641
for ac_header in sys/sysinfo.h
21643
ac_fn_c_check_header_mongrel "$LINENO" "sys/sysinfo.h" "ac_cv_header_sys_sysinfo_h" "$ac_includes_default"
21644
if test "x$ac_cv_header_sys_sysinfo_h" = xyes; then :
21645
cat >>confdefs.h <<_ACEOF
21646
#define HAVE_SYS_SYSINFO_H 1
21653
for ac_header in sys/types.h
21655
ac_fn_c_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
21656
if test "x$ac_cv_header_sys_types_h" = xyes; then :
21657
cat >>confdefs.h <<_ACEOF
21658
#define HAVE_SYS_TYPES_H 1
21665
for ac_header in sys/user.h
21667
ac_fn_c_check_header_compile "$LINENO" "sys/user.h" "ac_cv_header_sys_user_h" "
21668
#ifdef HAVE_SYS_PARAM_H
21669
# include <sys/param.h>
21673
if test "x$ac_cv_header_sys_user_h" = xyes; then :
21674
cat >>confdefs.h <<_ACEOF
21675
#define HAVE_SYS_USER_H 1
21682
for ac_header in sys/vfs.h
21684
ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
21685
if test "x$ac_cv_header_sys_vfs_h" = xyes; then :
21686
cat >>confdefs.h <<_ACEOF
21687
#define HAVE_SYS_VFS_H 1
21694
for ac_header in syslimits.h
21696
ac_fn_c_check_header_mongrel "$LINENO" "syslimits.h" "ac_cv_header_syslimits_h" "$ac_includes_default"
21697
if test "x$ac_cv_header_syslimits_h" = xyes; then :
21698
cat >>confdefs.h <<_ACEOF
21699
#define HAVE_SYSLIMITS_H 1
21706
for ac_header in unwind.h
21708
ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default"
21709
if test "x$ac_cv_header_unwind_h" = xyes; then :
21710
cat >>confdefs.h <<_ACEOF
21711
#define HAVE_UNWIND_H 1
21719
ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
21720
if test "x$ac_cv_header_wchar_h" = xyes; then :
21728
if test "$os" = "linux"; then
21729
# Make sure kernel-headers package is installed.
21730
ac_fn_c_check_header_mongrel "$LINENO" "linux/unistd.h" "ac_cv_header_linux_unistd_h" "$ac_includes_default"
21731
if test "x$ac_cv_header_linux_unistd_h" = xyes; then :
21734
as_fn_error $? "linux/unistd.h is not found. Please install kernel-headers/linux-userspace-headers/linux-libc-dev package." "$LINENO" 5
21740
if test "$enable_multimon" != "no"; then
21741
ac_fn_c_check_header_compile "$LINENO" "X11/extensions/panoramiXproto.h" "ac_cv_header_X11_extensions_panoramiXproto_h" "#include <X11/X.h>
21742
#include <X11/Xmd.h>
21744
if test "x$ac_cv_header_X11_extensions_panoramiXproto_h" = xyes; then :
21747
as_fn_error $? "panoramiXproto.h not found. Please configure without multimon (using --disable-multimon) or install the libXinerama devel package(s)." "$LINENO" 5
21753
bsdPrintfWrappers=no
21754
if test "$os" = "linux"; then
21755
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ecvt in -lc" >&5
21756
$as_echo_n "checking for ecvt in -lc... " >&6; }
21757
if ${ac_cv_lib_c_ecvt+:} false; then :
21758
$as_echo_n "(cached) " >&6
21760
ac_check_lib_save_LIBS=$LIBS
21762
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21763
/* end confdefs.h. */
21765
/* Override any GCC internal prototype to avoid an error.
21766
Use char because int might match the return type of a GCC
21767
builtin and then its argument prototype would still apply. */
21780
if ac_fn_c_try_link "$LINENO"; then :
21781
ac_cv_lib_c_ecvt=yes
21783
ac_cv_lib_c_ecvt=no
21785
rm -f core conftest.err conftest.$ac_objext \
21786
conftest$ac_exeext conftest.$ac_ext
21787
LIBS=$ac_check_lib_save_LIBS
21789
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_ecvt" >&5
21790
$as_echo "$ac_cv_lib_c_ecvt" >&6; }
21791
if test "x$ac_cv_lib_c_ecvt" = xyes; then :
21792
bsdPrintfWrappers=yes
21798
### Typdefs, structs, and compiler quarks.
21800
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
21801
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
21802
if ${ac_cv_header_stdbool_h+:} false; then :
21803
$as_echo_n "(cached) " >&6
21805
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21806
/* end confdefs.h. */
21808
#include <stdbool.h>
21810
"error: bool is not defined"
21813
"error: false is not defined"
21816
"error: false is not 0"
21819
"error: true is not defined"
21822
"error: true is not 1"
21824
#ifndef __bool_true_false_are_defined
21825
"error: __bool_true_false_are_defined is not defined"
21828
struct s { _Bool s: 1; _Bool t; } s;
21830
char a[true == 1 ? 1 : -1];
21831
char b[false == 0 ? 1 : -1];
21832
char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21833
char d[(bool) 0.5 == true ? 1 : -1];
21834
/* See body of main program for 'e'. */
21835
char f[(_Bool) 0.0 == false ? 1 : -1];
21837
char h[sizeof (_Bool)];
21838
char i[sizeof s.t];
21839
enum { j = false, k = true, l = false * true, m = true * 256 };
21840
/* The following fails for
21841
HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21843
char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21844
char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21845
/* Catch a bug in an HP-UX C compiler. See
21846
http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21847
http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21859
/* Refer to every declared value, to avoid compiler optimizations. */
21860
return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21861
+ !m + !n + !o + !p + !q + !pq);
21867
if ac_fn_c_try_compile "$LINENO"; then :
21868
ac_cv_header_stdbool_h=yes
21870
ac_cv_header_stdbool_h=no
21872
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21874
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
21875
$as_echo "$ac_cv_header_stdbool_h" >&6; }
21876
ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
21877
if test "x$ac_cv_type__Bool" = xyes; then :
21879
cat >>confdefs.h <<_ACEOF
21880
#define HAVE__BOOL 1
21886
if test $ac_cv_header_stdbool_h = yes; then
21888
$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
21892
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
21893
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
21894
if ${ac_cv_c_const+:} false; then :
21895
$as_echo_n "(cached) " >&6
21897
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21898
/* end confdefs.h. */
21903
/* FIXME: Include the comments suggested by Paul. */
21904
#ifndef __cplusplus
21905
/* Ultrix mips cc rejects this. */
21906
typedef int charset[2];
21908
/* SunOS 4.1.1 cc rejects this. */
21909
char const *const *pcpcc;
21911
/* NEC SVR4.0.2 mips cc rejects this. */
21912
struct point {int x, y;};
21913
static struct point const zero = {0,0};
21914
/* AIX XL C 1.02.0.0 rejects this.
21915
It does not let you subtract one const X* pointer from another in
21916
an arm of an if-expression whose if-part is not a constant
21918
const char *g = "string";
21919
pcpcc = &g + (g ? g-g : 0);
21920
/* HPUX 7.0 cc rejects these. */
21922
ppc = (char**) pcpcc;
21923
pcpcc = (char const *const *) ppc;
21924
{ /* SCO 3.2v4 cc rejects this. */
21926
char const *s = 0 ? (char *) 0 : (char const *) 0;
21931
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21932
int x[] = {25, 17};
21933
const int *foo = &x[0];
21936
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21937
typedef const int *iptr;
21941
{ /* AIX XL C 1.02.0.0 rejects this saying
21942
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21943
struct s { int j; const int *ap[3]; };
21944
struct s *b; b->j = 5;
21946
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21947
const int foo = 10;
21948
if (!foo) return 0;
21950
return !cs[0] && !zero.x;
21957
if ac_fn_c_try_compile "$LINENO"; then :
21962
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21964
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
21965
$as_echo "$ac_cv_c_const" >&6; }
21966
if test $ac_cv_c_const = no; then
21968
$as_echo "#define const /**/" >>confdefs.h
21972
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
21973
$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
21974
if ${ac_cv_type_uid_t+:} false; then :
21975
$as_echo_n "(cached) " >&6
21977
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21978
/* end confdefs.h. */
21979
#include <sys/types.h>
21982
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21983
$EGREP "uid_t" >/dev/null 2>&1; then :
21984
ac_cv_type_uid_t=yes
21986
ac_cv_type_uid_t=no
21991
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
21992
$as_echo "$ac_cv_type_uid_t" >&6; }
21993
if test $ac_cv_type_uid_t = no; then
21995
$as_echo "#define uid_t int" >>confdefs.h
21998
$as_echo "#define gid_t int" >>confdefs.h
22002
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
22003
$as_echo_n "checking for inline... " >&6; }
22004
if ${ac_cv_c_inline+:} false; then :
22005
$as_echo_n "(cached) " >&6
22008
for ac_kw in inline __inline__ __inline; do
22009
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22010
/* end confdefs.h. */
22011
#ifndef __cplusplus
22013
static $ac_kw foo_t static_foo () {return 0; }
22014
$ac_kw foo_t foo () {return 0; }
22018
if ac_fn_c_try_compile "$LINENO"; then :
22019
ac_cv_c_inline=$ac_kw
22021
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22022
test "$ac_cv_c_inline" != no && break
22026
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
22027
$as_echo "$ac_cv_c_inline" >&6; }
22029
case $ac_cv_c_inline in
22032
case $ac_cv_c_inline in
22034
*) ac_val=$ac_cv_c_inline;;
22036
cat >>confdefs.h <<_ACEOF
22037
#ifndef __cplusplus
22038
#define inline $ac_val
22044
ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22045
if test "x$ac_cv_type_mode_t" = xyes; then :
22049
cat >>confdefs.h <<_ACEOF
22055
ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22056
if test "x$ac_cv_type_off_t" = xyes; then :
22060
cat >>confdefs.h <<_ACEOF
22061
#define off_t long int
22066
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22067
if test "x$ac_cv_type_pid_t" = xyes; then :
22071
cat >>confdefs.h <<_ACEOF
22077
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22078
if test "x$ac_cv_type_size_t" = xyes; then :
22082
cat >>confdefs.h <<_ACEOF
22083
#define size_t unsigned int
22088
ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
22089
if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
22091
cat >>confdefs.h <<_ACEOF
22092
#define HAVE_STRUCT_STAT_ST_RDEV 1
22098
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
22099
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22100
if ${ac_cv_header_time+:} false; then :
22101
$as_echo_n "(cached) " >&6
22103
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22104
/* end confdefs.h. */
22105
#include <sys/types.h>
22106
#include <sys/time.h>
22112
if ((struct tm *) 0)
22118
if ac_fn_c_try_compile "$LINENO"; then :
22119
ac_cv_header_time=yes
22121
ac_cv_header_time=no
22123
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22125
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
22126
$as_echo "$ac_cv_header_time" >&6; }
22127
if test $ac_cv_header_time = yes; then
22129
$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
22133
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
22134
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
22135
if ${ac_cv_struct_tm+:} false; then :
22136
$as_echo_n "(cached) " >&6
22138
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22139
/* end confdefs.h. */
22140
#include <sys/types.h>
22147
int *p = &tm.tm_sec;
22153
if ac_fn_c_try_compile "$LINENO"; then :
22154
ac_cv_struct_tm=time.h
22156
ac_cv_struct_tm=sys/time.h
22158
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22160
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
22161
$as_echo "$ac_cv_struct_tm" >&6; }
22162
if test $ac_cv_struct_tm = sys/time.h; then
22164
$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
22168
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
22169
$as_echo_n "checking for working volatile... " >&6; }
22170
if ${ac_cv_c_volatile+:} false; then :
22171
$as_echo_n "(cached) " >&6
22173
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22174
/* end confdefs.h. */
22181
int * volatile y = (int *) 0;
22187
if ac_fn_c_try_compile "$LINENO"; then :
22188
ac_cv_c_volatile=yes
22190
ac_cv_c_volatile=no
22192
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22194
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
22195
$as_echo "$ac_cv_c_volatile" >&6; }
22196
if test $ac_cv_c_volatile = no; then
22198
$as_echo "#define volatile /**/" >>confdefs.h
22204
### Specific features and OS/arch flags / actions
22207
### General flags / actions
22208
CFLAGS="$CFLAGS -Wall"
22209
CFLAGS="$CFLAGS -Werror"
22211
# -Wno-unknown-pragmas is due to gcc not understanding '#pragma ident' in Xlib.h on OpenSolaris.
22212
for TEST_CFLAG in -Wno-pointer-sign -Wno-unused-value -fno-strict-aliasing \
22213
-Wno-unknown-pragmas -Wno-uninitialized; do
22214
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC flag $TEST_CFLAG" >&5
22215
$as_echo_n "checking for GCC flag $TEST_CFLAG... " >&6; }
22216
ORIGINAL_CFLAGS="$CFLAGS"
22217
CFLAGS="$CFLAGS $TEST_CFLAG"
22219
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22220
/* end confdefs.h. */
22232
if ac_fn_c_try_compile "$LINENO"; then :
22233
NEW_CFLAG=" $TEST_CFLAG"
22234
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22235
$as_echo "yes" >&6; }
22237
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22238
$as_echo "no" >&6; }
22240
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22241
CFLAGS="$ORIGINAL_CFLAGS$NEW_CFLAG"
22243
CPPFLAGS="$CPPFLAGS -DVMX86_TOOLS"
22244
CPPFLAGS="$CPPFLAGS"
22246
# -fvisibility is used by "core service" plugins, but not required.
22247
ORIGINAL_CFLAGS="$CFLAGS"
22248
CFLAGS="$CFLAGS -fvisibility=hidden"
22249
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC flag -fvisibility" >&5
22250
$as_echo_n "checking for GCC flag -fvisibility... " >&6; }
22251
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22252
/* end confdefs.h. */
22262
if ac_fn_c_try_compile "$LINENO"; then :
22263
PLUGIN_CPPFLAGS="-fvisibility=hidden -DGCC_EXPLICIT_EXPORT";
22264
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22265
$as_echo "yes" >&6; }
22267
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22268
$as_echo "no" >&6; }
22270
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22271
CFLAGS="$ORIGINAL_CFLAGS"
22273
# Detect "unused-but-set-variable" gcc warning and disable it.
22274
ORIGINAL_CFLAGS="$CFLAGS"
22275
CFLAGS="$CFLAGS -Wno-unused-but-set-variable"
22276
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC flag -Wno-unused-but-set-variable" >&5
22277
$as_echo_n "checking for GCC flag -Wno-unused-but-set-variable... " >&6; }
22278
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22279
/* end confdefs.h. */
22289
if ac_fn_c_try_compile "$LINENO"; then :
22290
ORIGINAL_CFLAGS="$ORIGINAL_CFLAGS -Wno-unused-but-set-variable";
22291
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22292
$as_echo "yes" >&6; }
22294
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22295
$as_echo "no" >&6; }
22297
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22298
CFLAGS="$ORIGINAL_CFLAGS"
22303
INCLUDE_DIR="`cd $srcdir; pwd`/lib/include"
22304
BLD_INCLUDE_DIR="$BUILDDIR/lib/include"
22305
CPPFLAGS="-I$INCLUDE_DIR -I$BLD_INCLUDE_DIR $CPPFLAGS"
22311
if test "$enable_docs" = "yes"; then
22312
# Extract the first word of "doxygen", so it can be a program name with args.
22313
set dummy doxygen; ac_word=$2
22314
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22315
$as_echo_n "checking for $ac_word... " >&6; }
22316
if ${ac_cv_prog_have_doxygen+:} false; then :
22317
$as_echo_n "(cached) " >&6
22319
if test -n "$have_doxygen"; then
22320
ac_cv_prog_have_doxygen="$have_doxygen" # Let the user override the test.
22322
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22323
for as_dir in $PATH
22326
test -z "$as_dir" && as_dir=.
22327
for ac_exec_ext in '' $ac_executable_extensions; do
22328
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22329
ac_cv_prog_have_doxygen="yes"
22330
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22337
test -z "$ac_cv_prog_have_doxygen" && ac_cv_prog_have_doxygen="no"
22340
have_doxygen=$ac_cv_prog_have_doxygen
22341
if test -n "$have_doxygen"; then
22342
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_doxygen" >&5
22343
$as_echo "$have_doxygen" >&6; }
22345
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22346
$as_echo "no" >&6; }
22350
if test "$have_doxygen" = "no"; then
22351
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: doxygen not found; API documentation will not be generated." >&5
22352
$as_echo "$as_me: WARNING: doxygen not found; API documentation will not be generated." >&2;}
22354
# Extract the first word of "dot", so it can be a program name with args.
22355
set dummy dot; ac_word=$2
22356
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22357
$as_echo_n "checking for $ac_word... " >&6; }
22358
if ${ac_cv_path_DOT+:} false; then :
22359
$as_echo_n "(cached) " >&6
22363
ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
22366
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22367
for as_dir in $PATH
22370
test -z "$as_dir" && as_dir=.
22371
for ac_exec_ext in '' $ac_executable_extensions; do
22372
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22373
ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
22374
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22384
DOT=$ac_cv_path_DOT
22385
if test -n "$DOT"; then
22386
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
22387
$as_echo "$DOT" >&6; }
22389
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22390
$as_echo "no" >&6; }
22394
if test "$DOT" = ""; then
22403
# Extract the first word of "mscgen", so it can be a program name with args.
22404
set dummy mscgen; ac_word=$2
22405
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22406
$as_echo_n "checking for $ac_word... " >&6; }
22407
if ${ac_cv_path_MSCGEN+:} false; then :
22408
$as_echo_n "(cached) " >&6
22412
ac_cv_path_MSCGEN="$MSCGEN" # Let the user override the test with a path.
22415
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22416
for as_dir in $PATH
22419
test -z "$as_dir" && as_dir=.
22420
for ac_exec_ext in '' $ac_executable_extensions; do
22421
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22422
ac_cv_path_MSCGEN="$as_dir/$ac_word$ac_exec_ext"
22423
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22430
test -z "$ac_cv_path_MSCGEN" && ac_cv_path_MSCGEN="no"
22434
MSCGEN=$ac_cv_path_MSCGEN
22435
if test -n "$MSCGEN"; then
22436
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSCGEN" >&5
22437
$as_echo "$MSCGEN" >&6; }
22439
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22440
$as_echo "no" >&6; }
22444
if test "$MSCGEN" != "no"; then
22445
MSCGEN_DIR="`dirname $MSCGEN`"
22454
### OS/arch-specific flags / actions
22461
buildHgfsmounter=no
22463
if test "$have_glib_2_14" = "yes"; then
22464
CPPFLAGS="$CPPFLAGS -DHAVE_GLIB_REGEX"
22467
if test "$os" = "linux"; then
22468
MODULES_DIR="$LINUXDIR/kernel/"
22470
CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
22471
CPPFLAGS="$CPPFLAGS -D_LARGEFILE64_SOURCE"
22472
CPPFLAGS="$CPPFLAGS -D_XOPEN_SOURCE=500"
22473
CPPFLAGS="$CPPFLAGS -D_BSD_SOURCE"
22474
CPPFLAGS="$CPPFLAGS -D_SVID_SOURCE"
22476
LIBVMTOOLS_LIBADD="$LIBVMTOOLS_LIBADD -lrt"
22478
MODULES="$MODULES vmci vsock"
22479
MODULES="$MODULES vmxnet vmhgfs"
22480
if test "$osVersion" -lt 300000; then
22481
MODULES="$MODULES vmblock vmsync"
22483
buildHgfsmounter=yes
22486
if test "$os" = "freebsd" || test "$os" = "kfreebsd-gnu"; then
22487
LIBVMTOOLS_LIBADD="$LIBVMTOOLS_LIBADD -lkvm"
22488
MODULES_DIR="/boot/modules"
22490
if test "$osVersion" -ge 302000; then
22491
MODULES="$MODULES vmmemctl"
22493
if test "$osVersion" -ge 409000; then
22494
MODULES="$MODULES vmxnet"
22496
if test "$osVersion" -ge 600000; then
22497
MODULES="$MODULES vmblock vmhgfs"
22498
buildHgfsmounter=yes
22501
if test "$with_kernel_modules" = "yes"; then
22502
echo "****************************************************************"
22503
echo " You are building FreeBSD kernel modules. Make sure you use "
22504
echo " 'make' to build open-vm-tools, and not GNU make ('gmake'). "
22505
echo "****************************************************************"
22509
if test "$os" = "solaris"; then
22510
LIB_IMPERSONATE_CPPFLAGS="$LIB_IMPERSONATE_CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
22511
LIB_USER_CPPFLAGS="$LIB_USER_CPPFLAGS -D_POSIX_PTHREAD_SEMANTICS"
22513
LIBVMTOOLS_LIBADD="$LIBVMTOOLS_LIBADD -lsocket"
22514
LIBVMTOOLS_LIBADD="$LIBVMTOOLS_LIBADD -lnsl"
22515
LIBVMTOOLS_LIBADD="$LIBVMTOOLS_LIBADD -lresolv"
22516
LIBVMTOOLS_LIBADD="$LIBVMTOOLS_LIBADD -lrpcsvc"
22518
# Setup defines to identify the OS version.
22519
if test "$osVersion" -eq 509000; then
22520
CPPFLAGS="$CPPFLAGS -DSOL9"
22522
if test "$osVersion" -eq 510000; then
22523
CPPFLAGS="$CPPFLAGS -DSOL10"
22525
if test "$osVersion" -eq 511000; then
22526
CPPFLAGS="$CPPFLAGS -DSOL11"
22529
MODULES="$MODULES vmxnet vmmemctl"
22531
# HGFS and vmblock need Solaris 10 at least.
22532
if test "$osVersion" -ge 510000; then
22533
MODULES="$MODULES vmhgfs vmblock"
22536
# vmxnet3 is built on Solaris 10 / 11 only if GLDv3 is installed.
22537
if test "$osVersion" -gt 510000; then
22538
ac_fn_c_check_header_mongrel "$LINENO" "sys/mac.h" "ac_cv_header_sys_mac_h" "$ac_includes_default"
22539
if test "x$ac_cv_header_sys_mac_h" = xyes; then :
22540
MODULES="$MODULES vmxnet3"
22542
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GLDv3 (sys/mac.h) is not installed, vmxnet3 will not be compiled." >&5
22543
$as_echo "$as_me: WARNING: GLDv3 (sys/mac.h) is not installed, vmxnet3 will not be compiled." >&2;}
22549
if test "$with_kernel_modules" = "yes"; then
22550
echo "****************************************************************"
22551
echo " You are building Solaris kernel modules. Make sure you use "
22552
echo " GNU make to build open-vm-tools. "
22553
echo "****************************************************************"
22557
if test "$buildHgfsmounter" = "yes"; then
22558
BUILD_HGFSMOUNTER_TRUE=
22559
BUILD_HGFSMOUNTER_FALSE='#'
22561
BUILD_HGFSMOUNTER_TRUE='#'
22562
BUILD_HGFSMOUNTER_FALSE=
22565
if test "$os" = "linux"; then
22573
if test "$os" = "solaris"; then
22581
if test "$os" = "freebsd" -o "$os" = "kfreebsd-gnu"; then
22589
if test \( "$os" = "freebsd" -o "$os" = "kfreebsd-gnu" \) -a -n "$SYSDIR"; then
22590
FREEBSD_CUSTOM_SYSDIR_TRUE=
22591
FREEBSD_CUSTOM_SYSDIR_FALSE='#'
22593
FREEBSD_CUSTOM_SYSDIR_TRUE='#'
22594
FREEBSD_CUSTOM_SYSDIR_FALSE=
22597
if test "$userSpaceBitness" = "32"; then
22598
THIRTY_TWO_BIT_USERSPACE_TRUE=
22599
THIRTY_TWO_BIT_USERSPACE_FALSE='#'
22601
THIRTY_TWO_BIT_USERSPACE_TRUE='#'
22602
THIRTY_TWO_BIT_USERSPACE_FALSE=
22605
if test "$have_x" = "yes"; then
22613
if test "$with_icu" = "yes"; then
22621
if test "$with_kernel_modules" = "yes"; then
22622
WITH_KERNEL_MODULES_TRUE=
22623
WITH_KERNEL_MODULES_FALSE='#'
22625
WITH_KERNEL_MODULES_TRUE='#'
22626
WITH_KERNEL_MODULES_FALSE=
22629
if test "$have_xsm" = "yes"; then
22637
if test "$have_xcomposite" = "yes"; then
22638
HAVE_XCOMPOSITE_TRUE=
22639
HAVE_XCOMPOSITE_FALSE='#'
22641
HAVE_XCOMPOSITE_TRUE='#'
22642
HAVE_XCOMPOSITE_FALSE=
22645
if test "$have_cunit" = "yes"; then
22647
ENABLE_TESTS_FALSE='#'
22649
ENABLE_TESTS_TRUE='#'
22650
ENABLE_TESTS_FALSE=
22653
if test "$with_root_privileges" = "yes"; then
22654
WITH_ROOT_PRIVILEGES_TRUE=
22655
WITH_ROOT_PRIVILEGES_FALSE='#'
22657
WITH_ROOT_PRIVILEGES_TRUE='#'
22658
WITH_ROOT_PRIVILEGES_FALSE=
22661
if test "$have_dnet" = "yes"; then
22663
HAVE_DNET_FALSE='#'
22669
if test "$have_doxygen" = "yes"; then
22671
HAVE_DOXYGEN_FALSE='#'
22673
HAVE_DOXYGEN_TRUE='#'
22674
HAVE_DOXYGEN_FALSE=
22677
if test "$have_fuse" = "yes"; then
22679
HAVE_FUSE_FALSE='#'
22685
if test "$with_gnu_ld" = "yes"; then
22687
HAVE_GNU_LD_FALSE='#'
22689
HAVE_GNU_LD_TRUE='#'
22693
if test "$have_x" = "yes" -a "$with_gtkmm" = "yes"; then
22695
HAVE_GTKMM_FALSE='#'
22697
HAVE_GTKMM_TRUE='#'
22701
if test "$with_pam" = "yes"; then
22709
if test "os" = "linux" -a "$have_glib_2_14" = "yes"; then
22710
USE_SLASH_PROC_TRUE=
22711
USE_SLASH_PROC_FALSE='#'
22713
USE_SLASH_PROC_TRUE='#'
22714
USE_SLASH_PROC_FALSE=
22717
if test "$bsdPrintfWrappers" = "yes"; then
22718
USE_PRINTF_WRAPPERS_TRUE=
22719
USE_PRINTF_WRAPPERS_FALSE='#'
22721
USE_PRINTF_WRAPPERS_TRUE='#'
22722
USE_PRINTF_WRAPPERS_FALSE=
22726
if test "$have_xsm" != "yes"; then
22727
$as_echo "#define NO_XSM 1" >>confdefs.h
22731
if test "$have_xcomposite" != "yes"; then
22732
$as_echo "#define NO_XCOMPOSITE 1" >>confdefs.h
22736
### Feature-specific flags / actions
22737
# Combine where possible
22739
# If control reaches this point and multimon is still enabled, then we know
22740
# all of the tests for required components have passed and it's safe to allow
22741
# multimon. Otherwise, it should be disabled.
22742
if test "$enable_multimon" = "no"; then
22743
# XXX: For consistency, change this to ENABLE_MULTIMON. This will require
22744
# some additional code cleanup.
22746
$as_echo "#define NO_MULTIMON 1" >>confdefs.h
22750
LIB_AUTH_CPPFLAGS="$LIB_AUTH_CPPFLAGS $PAM_CPPFLAGS"
22751
if test "$HAVE_CRYPT" = "yes"; then
22752
LIBVMTOOLS_LIBADD="$LIBVMTOOLS_LIBADD -lcrypt"
22753
VIX_LIBADD="$VIX_LIBADD -lcrypt"
22757
LIBVMTOOLS_LIBADD="$LIBVMTOOLS_LIBADD $THREAD_LIB"
22758
VIX_LIBADD="$VIX_LIBADD $THREAD_LIB"
22760
### Core Services definitions.
22762
HGFS_LIBS="$BUILDDIR/libhgfs/libhgfs.la"
22764
VMTOOLS_LIBS="$BUILDDIR/libvmtools/libvmtools.la $GLIB2_LIBS"
22765
VMTOOLS_CPPFLAGS="-DVMTOOLS_USE_GLIB $GLIB2_CPPFLAGS"
22767
PLUGIN_CPPFLAGS="$VMTOOLS_CPPFLAGS $PLUGIN_CPPFLAGS"
22768
PLUGIN_LDFLAGS="-Wl,-z,defs -Wl,-lc -shared -module -avoid-version"
22770
# In Solaris, the XDR-related functions are not in libc like in Linux and
22771
# FreeBSD, so binaries need to be linked to some extra libraries.
22773
if test "$os" = "solaris"; then
22774
XDR_LIBS="-lnsl -lrpcsvc"
22777
# Installation directories for core services plugins.
22778
TEST_PLUGIN_INSTALLDIR=$datadir/open-vm-tools/tests
22779
COMMON_PLUGIN_INSTALLDIR=$libdir/open-vm-tools/plugins/common
22780
VMSVC_PLUGIN_INSTALLDIR=$libdir/open-vm-tools/plugins/vmsvc
22781
VMUSR_PLUGIN_INSTALLDIR=$libdir/open-vm-tools/plugins/vmusr
22783
# General definitions
22784
INSTVMSG='$(SHELL) $(top_srcdir)/scripts/build/instvmsg.sh'
22785
RPCGEN_WRAPPER='$(SHELL) $(top_builddir)/scripts/build/rpcgen_wrapper.sh'
22811
if test "$os" = "freebsd" -a -n "$SYSDIR"; then
22812
# If SYSDIR is not defined, AC_SUBST expands to nothing, so we need something
22813
# inside this block.
22832
### Create the Makefiles
22834
ac_config_files="$ac_config_files Makefile lib/Makefile lib/appUtil/Makefile lib/auth/Makefile lib/backdoor/Makefile lib/dict/Makefile lib/dynxdr/Makefile lib/err/Makefile lib/file/Makefile lib/foundryMsg/Makefile lib/glibUtils/Makefile lib/guestApp/Makefile lib/guestRpc/Makefile lib/hgfs/Makefile lib/hgfsBd/Makefile lib/hgfsHelper/Makefile lib/hgfsServer/Makefile lib/hgfsServerManagerGuest/Makefile lib/hgfsServerPolicyGuest/Makefile lib/impersonate/Makefile lib/lock/Makefile lib/message/Makefile lib/misc/Makefile lib/netUtil/Makefile lib/panic/Makefile lib/panicDefault/Makefile lib/printer/Makefile lib/procMgr/Makefile lib/rpcChannel/Makefile lib/rpcIn/Makefile lib/rpcOut/Makefile lib/rpcVmx/Makefile lib/slashProc/Makefile lib/string/Makefile lib/stubs/Makefile lib/syncDriver/Makefile lib/system/Makefile lib/unicode/Makefile lib/user/Makefile lib/vmCheck/Makefile lib/vmSignal/Makefile lib/wiper/Makefile lib/xdg/Makefile services/Makefile services/vmtoolsd/Makefile services/plugins/Makefile services/plugins/desktopEvents/Makefile services/plugins/dndcp/Makefile services/plugins/guestInfo/Makefile services/plugins/guestInfo/getlib/Makefile services/plugins/hgfsServer/Makefile services/plugins/powerOps/Makefile services/plugins/resolutionSet/Makefile services/plugins/timeSync/Makefile services/plugins/vix/Makefile services/plugins/vmbackup/Makefile vmware-user-suid-wrapper/Makefile toolbox/Makefile hgfsclient/Makefile hgfsmounter/Makefile checkvm/Makefile rpctool/Makefile libguestlib/Makefile libguestlib/vmguestlib.pc libhgfs/Makefile libvmtools/Makefile xferlogs/Makefile modules/Makefile vmblock-fuse/Makefile vmblockmounter/Makefile tests/Makefile tests/vmrpcdbg/Makefile tests/testDebug/Makefile tests/testPlugin/Makefile tests/testVmblock/Makefile docs/Makefile docs/api/Makefile scripts/Makefile scripts/build/rpcgen_wrapper.sh"
22840
cat >confcache <<\_ACEOF
22841
# This file is a shell script that caches the results of configure
22842
# tests run on this system so they can be shared between configure
22843
# scripts and configure runs, see configure's option --config-cache.
22844
# It is not useful on other systems. If it contains results you don't
22845
# want to keep, you may remove or edit it.
22847
# config.status only pays attention to the cache file if you give it
22848
# the --recheck option to rerun configure.
22850
# `ac_cv_env_foo' variables (set or unset) will be overridden when
22851
# loading this file, other *unset* `ac_cv_foo' will be assigned the
22852
# following values.
22856
# The following way of writing the cache mishandles newlines in values,
22857
# but we know of no workaround that is simple, portable, and efficient.
22858
# So, we kill variables containing newlines.
22859
# Ultrix sh set writes to stderr and can't be redirected directly,
22860
# and sets the high bit in the cache file unless we assign to the vars.
22862
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22863
eval ac_val=\$$ac_var
22867
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22868
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22871
_ | IFS | as_nl) ;; #(
22872
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22873
*) { eval $ac_var=; unset $ac_var;} ;;
22879
case $as_nl`(ac_space=' '; set) 2>&1` in #(
22880
*${as_nl}ac_space=\ *)
22881
# `set' does not quote correctly, so add quotes: double-quote
22882
# substitution turns \\\\ into \\, and sed turns \\ into \.
22885
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22888
# `set' quotes correctly as required by POSIX, so do not add quotes.
22889
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22898
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22900
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22902
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22903
if test -w "$cache_file"; then
22904
if test "x$cache_file" != "x/dev/null"; then
22905
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22906
$as_echo "$as_me: updating cache $cache_file" >&6;}
22907
if test ! -f "$cache_file" || test -h "$cache_file"; then
22908
cat confcache >"$cache_file"
22910
case $cache_file in #(
22912
mv -f confcache "$cache_file"$$ &&
22913
mv -f "$cache_file"$$ "$cache_file" ;; #(
22915
mv -f confcache "$cache_file" ;;
22920
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22921
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22926
test "x$prefix" = xNONE && prefix=$ac_default_prefix
22927
# Let make expand exec_prefix.
22928
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22930
# Transform confdefs.h into DEFS.
22931
# Protect against shell expansion while executing Makefile rules.
22932
# Protect against Makefile macro expansion.
22934
# If the first sed substitution is executed (which looks for macros that
22935
# take arguments), then branch to the quote section. Otherwise,
22936
# look for a macro that doesn't take arguments.
22946
s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
22948
s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
22952
s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
22965
DEFS=`sed -n "$ac_script" confdefs.h`
22971
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22972
# 1. Remove the extension, and $U if already installed.
22973
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22974
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22975
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22976
# will be set to the directory where LIBOBJS objects are built.
22977
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22978
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22980
LIBOBJS=$ac_libobjs
22982
LTLIBOBJS=$ac_ltlibobjs
22985
if test -n "$EXEEXT"; then
22987
am__EXEEXT_FALSE='#'
22989
am__EXEEXT_TRUE='#'
22993
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22994
as_fn_error $? "conditional \"AMDEP\" was never defined.
22995
Usually this means the macro was only invoked conditionally." "$LINENO" 5
22997
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22998
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22999
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23001
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23002
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
23003
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23005
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23006
as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
23007
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23009
if test -z "${BUILD_HGFSMOUNTER_TRUE}" && test -z "${BUILD_HGFSMOUNTER_FALSE}"; then
23010
as_fn_error $? "conditional \"BUILD_HGFSMOUNTER\" was never defined.
23011
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23013
if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
23014
as_fn_error $? "conditional \"LINUX\" was never defined.
23015
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23017
if test -z "${SOLARIS_TRUE}" && test -z "${SOLARIS_FALSE}"; then
23018
as_fn_error $? "conditional \"SOLARIS\" was never defined.
23019
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23021
if test -z "${FREEBSD_TRUE}" && test -z "${FREEBSD_FALSE}"; then
23022
as_fn_error $? "conditional \"FREEBSD\" was never defined.
23023
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23025
if test -z "${FREEBSD_CUSTOM_SYSDIR_TRUE}" && test -z "${FREEBSD_CUSTOM_SYSDIR_FALSE}"; then
23026
as_fn_error $? "conditional \"FREEBSD_CUSTOM_SYSDIR\" was never defined.
23027
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23029
if test -z "${THIRTY_TWO_BIT_USERSPACE_TRUE}" && test -z "${THIRTY_TWO_BIT_USERSPACE_FALSE}"; then
23030
as_fn_error $? "conditional \"THIRTY_TWO_BIT_USERSPACE\" was never defined.
23031
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23033
if test -z "${HAVE_X11_TRUE}" && test -z "${HAVE_X11_FALSE}"; then
23034
as_fn_error $? "conditional \"HAVE_X11\" was never defined.
23035
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23037
if test -z "${HAVE_ICU_TRUE}" && test -z "${HAVE_ICU_FALSE}"; then
23038
as_fn_error $? "conditional \"HAVE_ICU\" was never defined.
23039
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23041
if test -z "${WITH_KERNEL_MODULES_TRUE}" && test -z "${WITH_KERNEL_MODULES_FALSE}"; then
23042
as_fn_error $? "conditional \"WITH_KERNEL_MODULES\" was never defined.
23043
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23045
if test -z "${HAVE_XSM_TRUE}" && test -z "${HAVE_XSM_FALSE}"; then
23046
as_fn_error $? "conditional \"HAVE_XSM\" was never defined.
23047
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23049
if test -z "${HAVE_XCOMPOSITE_TRUE}" && test -z "${HAVE_XCOMPOSITE_FALSE}"; then
23050
as_fn_error $? "conditional \"HAVE_XCOMPOSITE\" was never defined.
23051
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23053
if test -z "${ENABLE_TESTS_TRUE}" && test -z "${ENABLE_TESTS_FALSE}"; then
23054
as_fn_error $? "conditional \"ENABLE_TESTS\" was never defined.
23055
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23057
if test -z "${WITH_ROOT_PRIVILEGES_TRUE}" && test -z "${WITH_ROOT_PRIVILEGES_FALSE}"; then
23058
as_fn_error $? "conditional \"WITH_ROOT_PRIVILEGES\" was never defined.
23059
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23061
if test -z "${HAVE_DNET_TRUE}" && test -z "${HAVE_DNET_FALSE}"; then
23062
as_fn_error $? "conditional \"HAVE_DNET\" was never defined.
23063
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23065
if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then
23066
as_fn_error $? "conditional \"HAVE_DOXYGEN\" was never defined.
23067
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23069
if test -z "${HAVE_FUSE_TRUE}" && test -z "${HAVE_FUSE_FALSE}"; then
23070
as_fn_error $? "conditional \"HAVE_FUSE\" was never defined.
23071
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23073
if test -z "${HAVE_GNU_LD_TRUE}" && test -z "${HAVE_GNU_LD_FALSE}"; then
23074
as_fn_error $? "conditional \"HAVE_GNU_LD\" was never defined.
23075
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23077
if test -z "${HAVE_GTKMM_TRUE}" && test -z "${HAVE_GTKMM_FALSE}"; then
23078
as_fn_error $? "conditional \"HAVE_GTKMM\" was never defined.
23079
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23081
if test -z "${HAVE_PAM_TRUE}" && test -z "${HAVE_PAM_FALSE}"; then
23082
as_fn_error $? "conditional \"HAVE_PAM\" was never defined.
23083
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23085
if test -z "${USE_SLASH_PROC_TRUE}" && test -z "${USE_SLASH_PROC_FALSE}"; then
23086
as_fn_error $? "conditional \"USE_SLASH_PROC\" was never defined.
23087
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23089
if test -z "${USE_PRINTF_WRAPPERS_TRUE}" && test -z "${USE_PRINTF_WRAPPERS_FALSE}"; then
23090
as_fn_error $? "conditional \"USE_PRINTF_WRAPPERS\" was never defined.
23091
Usually this means the macro was only invoked conditionally." "$LINENO" 5
23094
: "${CONFIG_STATUS=./config.status}"
23096
ac_clean_files_save=$ac_clean_files
23097
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23098
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23099
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
23101
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23103
# Generated by $as_me.
23104
# Run this file to recreate the current configuration.
23105
# Compiler output produced by configure, useful for debugging
23106
# configure, is in config.log if it exists.
23109
ac_cs_recheck=false
23112
SHELL=\${CONFIG_SHELL-$SHELL}
23115
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23116
## -------------------- ##
23117
## M4sh Initialization. ##
23118
## -------------------- ##
23120
# Be more Bourne compatible
23121
DUALCASE=1; export DUALCASE # for MKS sh
23122
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23125
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23126
# is contrary to our usage. Disable this feature.
23127
alias -g '${1+"$@"}'='"$@"'
23128
setopt NO_GLOB_SUBST
23130
case `(set -o) 2>/dev/null` in #(
23142
# Printing a long string crashes Solaris 7 /usr/bin/printf.
23143
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
23144
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
23145
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
23146
# Prefer a ksh shell builtin over an external printf program on Solaris,
23147
# but without wasting forks for bash or zsh.
23148
if test -z "$BASH_VERSION$ZSH_VERSION" \
23149
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
23150
as_echo='print -r --'
23151
as_echo_n='print -rn --'
23152
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
23153
as_echo='printf %s\n'
23154
as_echo_n='printf %s'
23156
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
23157
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
23158
as_echo_n='/usr/ucb/echo -n'
23160
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
23161
as_echo_n_body='eval
23165
expr "X$arg" : "X\\(.*\\)$as_nl";
23166
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
23168
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
23170
export as_echo_n_body
23171
as_echo_n='sh -c $as_echo_n_body as_echo'
23173
export as_echo_body
23174
as_echo='sh -c $as_echo_body as_echo'
23177
# The user is always right.
23178
if test "${PATH_SEPARATOR+set}" != set; then
23180
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23181
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23188
# We need space, tab and new line, in precisely that order. Quoting is
23189
# there to prevent editors from complaining about space-tab.
23190
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
23191
# splitting by setting IFS to empty value.)
23194
# Find who we are. Look in the path if we contain no directory separator.
23197
*[\\/]* ) as_myself=$0 ;;
23198
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23199
for as_dir in $PATH
23202
test -z "$as_dir" && as_dir=.
23203
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23209
# We did not find ourselves, most probably we were run as `sh COMMAND'
23210
# in which case we are not to be found in the path.
23211
if test "x$as_myself" = x; then
23214
if test ! -f "$as_myself"; then
23215
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23219
# Unset variables that we do not need and which cause bugs (e.g. in
23220
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
23221
# suppresses any "Segmentation fault" message there. '((' could
23222
# trigger a bug in pdksh 5.2.14.
23223
for as_var in BASH_ENV ENV MAIL MAILPATH
23224
do eval test x\${$as_var+set} = xset \
23225
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23238
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23241
# as_fn_error STATUS ERROR [LINENO LOG_FD]
23242
# ----------------------------------------
23243
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23244
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23245
# script with STATUS, using 1 if that was 0.
23248
as_status=$1; test $as_status -eq 0 && as_status=1
23250
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23251
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23253
$as_echo "$as_me: error: $2" >&2
23254
as_fn_exit $as_status
23258
# as_fn_set_status STATUS
23259
# -----------------------
23260
# Set $? to STATUS, without forking.
23261
as_fn_set_status ()
23264
} # as_fn_set_status
23266
# as_fn_exit STATUS
23267
# -----------------
23268
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23272
as_fn_set_status $1
23278
# Portably unset VAR.
23281
{ eval $1=; unset $1;}
23283
as_unset=as_fn_unset
23284
# as_fn_append VAR VALUE
23285
# ----------------------
23286
# Append the text in VALUE to the end of the definition contained in VAR. Take
23287
# advantage of any shell optimizations that allow amortized linear growth over
23288
# repeated appends, instead of the typical quadratic growth present in naive
23290
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
23291
eval 'as_fn_append ()
23302
# as_fn_arith ARG...
23303
# ------------------
23304
# Perform arithmetic evaluation on the ARGs, and store the result in the
23305
# global $as_val. Take advantage of shells that can avoid forks. The arguments
23306
# must be portable across $(()) and expr.
23307
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
23308
eval 'as_fn_arith ()
23315
as_val=`expr "$@" || test $? -eq 1`
23320
if expr a : '\(a\)' >/dev/null 2>&1 &&
23321
test "X`expr 00001 : '.*\(...\)'`" = X001; then
23327
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23328
as_basename=basename
23333
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23339
as_me=`$as_basename -- "$0" ||
23340
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23341
X"$0" : 'X\(//\)$' \| \
23342
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23344
sed '/^.*\/\([^/][^/]*\)\/*$/{
23358
# Avoid depending upon Character Ranges.
23359
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23360
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23361
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23362
as_cr_digits='0123456789'
23363
as_cr_alnum=$as_cr_Letters$as_cr_digits
23365
ECHO_C= ECHO_N= ECHO_T=
23366
case `echo -n x` in #(((((
23368
case `echo 'xy\c'` in
23369
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
23371
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23378
rm -f conf$$ conf$$.exe conf$$.file
23379
if test -d conf$$.dir; then
23380
rm -f conf$$.dir/conf$$.file
23383
mkdir conf$$.dir 2>/dev/null
23385
if (echo >conf$$.file) 2>/dev/null; then
23386
if ln -s conf$$.file conf$$ 2>/dev/null; then
23388
# ... but there are two gotchas:
23389
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23390
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23391
# In both cases, we have to default to `cp -p'.
23392
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23394
elif ln conf$$.file conf$$ 2>/dev/null; then
23402
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23403
rmdir conf$$.dir 2>/dev/null
23408
# Create "$as_dir" as a directory, including parents if necessary.
23413
-*) as_dir=./$as_dir;;
23415
test -d "$as_dir" || eval $as_mkdir_p || {
23419
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23420
*) as_qdir=$as_dir;;
23422
as_dirs="'$as_qdir' $as_dirs"
23423
as_dir=`$as_dirname -- "$as_dir" ||
23424
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23425
X"$as_dir" : 'X\(//\)[^/]' \| \
23426
X"$as_dir" : 'X\(//\)$' \| \
23427
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23428
$as_echo X"$as_dir" |
23429
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23433
/^X\(\/\/\)[^/].*/{
23446
test -d "$as_dir" && break
23448
test -z "$as_dirs" || eval "mkdir $as_dirs"
23449
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23453
if mkdir -p . 2>/dev/null; then
23454
as_mkdir_p='mkdir -p "$as_dir"'
23456
test -d ./-p && rmdir ./-p
23460
if test -x / >/dev/null 2>&1; then
23461
as_test_x='test -x'
23463
if ls -dL / >/dev/null 2>&1; then
23470
if test -d "$1"; then
23476
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
23477
???[sx]*):;;*)false;;esac;fi
23481
as_executable_p=$as_test_x
23483
# Sed expression to map a string onto a valid CPP name.
23484
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23486
# Sed expression to map a string onto a valid variable name.
23487
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23491
## ----------------------------------- ##
23492
## Main body of $CONFIG_STATUS script. ##
23493
## ----------------------------------- ##
23495
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23497
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23498
# Save the log message, to keep $0 and so on meaningful, and to
23499
# report actual input values of CONFIG_FILES etc. instead of their
23500
# values after options handling.
23502
This file was extended by open-vm-tools $as_me 2012.12.26, which was
23503
generated by GNU Autoconf 2.68. Invocation command line was
23505
CONFIG_FILES = $CONFIG_FILES
23506
CONFIG_HEADERS = $CONFIG_HEADERS
23507
CONFIG_LINKS = $CONFIG_LINKS
23508
CONFIG_COMMANDS = $CONFIG_COMMANDS
23511
on `(hostname || uname -n) 2>/dev/null | sed 1q`
23516
case $ac_config_files in *"
23517
"*) set x $ac_config_files; shift; ac_config_files=$*;;
23522
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23523
# Files that config.status was made for.
23524
config_files="$ac_config_files"
23525
config_commands="$ac_config_commands"
23529
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23531
\`$as_me' instantiates files and other configuration actions
23532
from templates according to the current configuration. Unless the files
23533
and actions are specified as TAGs, all are instantiated by default.
23535
Usage: $0 [OPTION]... [TAG]...
23537
-h, --help print this help, then exit
23538
-V, --version print version number and configuration settings, then exit
23539
--config print configuration, then exit
23540
-q, --quiet, --silent
23541
do not print progress messages
23542
-d, --debug don't remove temporary files
23543
--recheck update $as_me by reconfiguring in the same conditions
23544
--file=FILE[:TEMPLATE]
23545
instantiate the configuration file FILE
23547
Configuration files:
23550
Configuration commands:
23553
Report bugs to <open-vm-tools-devel@lists.sourceforge.net>."
23556
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23557
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23559
open-vm-tools config.status 2012.12.26
23560
configured by $0, generated by GNU Autoconf 2.68,
23561
with options \\"\$ac_cs_config\\"
23563
Copyright (C) 2010 Free Software Foundation, Inc.
23564
This config.status script is free software; the Free Software Foundation
23565
gives unlimited permission to copy, distribute and modify it."
23572
test -n "\$AWK" || AWK=awk
23575
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23576
# The default lists apply if the user does not specify any file.
23582
ac_option=`expr "X$1" : 'X\([^=]*\)='`
23583
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23587
ac_option=`expr "X$1" : 'X\([^=]*\)='`
23599
# Handling of the options.
23600
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23602
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23603
$as_echo "$ac_cs_version"; exit ;;
23604
--config | --confi | --conf | --con | --co | --c )
23605
$as_echo "$ac_cs_config"; exit ;;
23606
--debug | --debu | --deb | --de | --d | -d )
23608
--file | --fil | --fi | --f )
23611
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23612
'') as_fn_error $? "missing file argument" ;;
23614
as_fn_append CONFIG_FILES " '$ac_optarg'"
23615
ac_need_defaults=false;;
23616
--he | --h | --help | --hel | -h )
23617
$as_echo "$ac_cs_usage"; exit ;;
23618
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
23619
| -silent | --silent | --silen | --sile | --sil | --si | --s)
23622
# This is an error.
23623
-*) as_fn_error $? "unrecognized option: \`$1'
23624
Try \`$0 --help' for more information." ;;
23626
*) as_fn_append ac_config_targets " $1"
23627
ac_need_defaults=false ;;
23633
ac_configure_extra_args=
23635
if $ac_cs_silent; then
23637
ac_configure_extra_args="$ac_configure_extra_args --silent"
23641
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23642
if \$ac_cs_recheck; then
23643
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23645
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23646
CONFIG_SHELL='$SHELL'
23647
export CONFIG_SHELL
23652
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23656
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23657
## Running $as_me. ##
23663
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23667
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23670
# The HP-UX ksh and POSIX shell print the target directory to stdout
23671
# if CDPATH is set.
23672
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23674
sed_quote_subst='$sed_quote_subst'
23675
double_quote_subst='$double_quote_subst'
23676
delay_variable_subst='$delay_variable_subst'
23677
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23678
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23679
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
23680
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
23681
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
23682
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
23683
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23684
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23685
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
23686
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23687
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23688
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23689
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23690
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23691
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23692
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23693
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23694
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23695
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23696
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23697
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23698
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23699
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23700
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23701
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23702
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23703
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23704
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23705
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23706
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
23707
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
23708
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23709
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
23710
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
23711
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
23712
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
23713
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
23714
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
23715
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
23716
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
23717
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
23718
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
23719
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
23720
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
23721
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
23722
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23723
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23724
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
23725
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
23726
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
23727
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
23728
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
23729
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
23730
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
23731
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
23732
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
23733
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
23734
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
23735
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
23736
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
23737
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
23738
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
23739
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
23740
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
23741
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
23742
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
23743
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
23744
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
23745
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
23746
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
23747
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
23748
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
23749
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
23750
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
23751
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
23752
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23753
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
23754
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
23755
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
23756
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
23757
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
23758
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
23759
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23760
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
23761
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23762
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
23763
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23764
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
23765
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
23766
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
23767
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
23768
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
23769
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
23770
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
23771
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
23772
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
23773
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
23774
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
23775
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
23776
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
23777
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
23778
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
23779
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
23780
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
23781
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
23782
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
23783
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
23784
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
23785
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
23786
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
23787
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
23788
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
23789
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
23790
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
23791
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
23792
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
23793
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
23794
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23795
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23796
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
23797
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
23798
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
23799
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
23800
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
23801
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
23802
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
23803
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
23804
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
23805
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
23806
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
23807
compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
23808
predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
23809
postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
23810
predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
23811
postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
23812
compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
23813
LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
23814
reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
23815
reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23816
old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23817
compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
23818
GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
23819
lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
23820
lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
23821
lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
23822
lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
23823
lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
23824
archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
23825
enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
23826
export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23827
whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23828
compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
23829
old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23830
old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23831
archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23832
archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23833
module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23834
module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23835
with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
23836
allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23837
no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23838
hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23839
hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
23840
hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
23841
hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
23842
hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
23843
hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
23844
hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
23845
inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
23846
link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
23847
always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
23848
export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23849
exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23850
include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23851
prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23852
postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23853
file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
23854
hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
23855
compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
23856
predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23857
postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23858
predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
23859
postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
23860
compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
23863
LTCFLAGS='$LTCFLAGS'
23864
compiler='$compiler_DEFAULT'
23866
# A function that is used when there is no print builtin or printf.
23867
func_fallback_echo ()
23869
eval 'cat <<_LTECHO_EOF
23874
# Quote evaled strings.
23889
deplibs_check_method \
23894
sharedlib_from_linklib_cmd \
23897
archiver_list_spec \
23903
lt_cv_sys_global_symbol_pipe \
23904
lt_cv_sys_global_symbol_to_cdecl \
23905
lt_cv_sys_global_symbol_to_c_name_address \
23906
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23907
nm_file_list_spec \
23908
lt_prog_compiler_no_builtin_flag \
23909
lt_prog_compiler_pic \
23910
lt_prog_compiler_wl \
23911
lt_prog_compiler_static \
23912
lt_cv_prog_compiler_c_o \
23921
export_dynamic_flag_spec \
23922
whole_archive_flag_spec \
23923
compiler_needs_object \
23925
allow_undefined_flag \
23926
no_undefined_flag \
23927
hardcode_libdir_flag_spec \
23928
hardcode_libdir_separator \
23932
variables_saved_for_relink \
23934
library_names_spec \
23936
install_override_mode \
23940
compiler_lib_search_dirs \
23945
compiler_lib_search_path \
23949
lt_prog_compiler_no_builtin_flag_CXX \
23950
lt_prog_compiler_pic_CXX \
23951
lt_prog_compiler_wl_CXX \
23952
lt_prog_compiler_static_CXX \
23953
lt_cv_prog_compiler_c_o_CXX \
23954
export_dynamic_flag_spec_CXX \
23955
whole_archive_flag_spec_CXX \
23956
compiler_needs_object_CXX \
23958
allow_undefined_flag_CXX \
23959
no_undefined_flag_CXX \
23960
hardcode_libdir_flag_spec_CXX \
23961
hardcode_libdir_separator_CXX \
23962
exclude_expsyms_CXX \
23963
include_expsyms_CXX \
23964
file_list_spec_CXX \
23965
compiler_lib_search_dirs_CXX \
23966
predep_objects_CXX \
23967
postdep_objects_CXX \
23970
compiler_lib_search_path_CXX; do
23971
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23972
*[\\\\\\\`\\"\\\$]*)
23973
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
23976
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23981
# Double-quote double-evaled strings.
23982
for var in reload_cmds \
23983
old_postinstall_cmds \
23984
old_postuninstall_cmds \
23986
extract_expsyms_cmds \
23987
old_archive_from_new_cmds \
23988
old_archive_from_expsyms_cmds \
23990
archive_expsym_cmds \
23992
module_expsym_cmds \
23993
export_symbols_cmds \
23997
postuninstall_cmds \
23999
sys_lib_search_path_spec \
24000
sys_lib_dlsearch_path_spec \
24002
old_archive_cmds_CXX \
24003
old_archive_from_new_cmds_CXX \
24004
old_archive_from_expsyms_cmds_CXX \
24006
archive_expsym_cmds_CXX \
24008
module_expsym_cmds_CXX \
24009
export_symbols_cmds_CXX \
24011
postlink_cmds_CXX; do
24012
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
24013
*[\\\\\\\`\\"\\\$]*)
24014
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
24017
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
24022
ac_aux_dir='$ac_aux_dir'
24023
xsi_shell='$xsi_shell'
24024
lt_shell_append='$lt_shell_append'
24026
# See if we are running on zsh, and set the options which allow our
24027
# commands through without removal of \ escapes INIT.
24028
if test -n "\${ZSH_VERSION+set}" ; then
24029
setopt NO_GLOB_SUBST
24035
TIMESTAMP='$TIMESTAMP'
24046
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24048
# Handling of arguments.
24049
for ac_config_target in $ac_config_targets
24051
case $ac_config_target in
24052
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24053
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
24054
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24055
"lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
24056
"lib/appUtil/Makefile") CONFIG_FILES="$CONFIG_FILES lib/appUtil/Makefile" ;;
24057
"lib/auth/Makefile") CONFIG_FILES="$CONFIG_FILES lib/auth/Makefile" ;;
24058
"lib/backdoor/Makefile") CONFIG_FILES="$CONFIG_FILES lib/backdoor/Makefile" ;;
24059
"lib/dict/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dict/Makefile" ;;
24060
"lib/dynxdr/Makefile") CONFIG_FILES="$CONFIG_FILES lib/dynxdr/Makefile" ;;
24061
"lib/err/Makefile") CONFIG_FILES="$CONFIG_FILES lib/err/Makefile" ;;
24062
"lib/file/Makefile") CONFIG_FILES="$CONFIG_FILES lib/file/Makefile" ;;
24063
"lib/foundryMsg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/foundryMsg/Makefile" ;;
24064
"lib/glibUtils/Makefile") CONFIG_FILES="$CONFIG_FILES lib/glibUtils/Makefile" ;;
24065
"lib/guestApp/Makefile") CONFIG_FILES="$CONFIG_FILES lib/guestApp/Makefile" ;;
24066
"lib/guestRpc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/guestRpc/Makefile" ;;
24067
"lib/hgfs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hgfs/Makefile" ;;
24068
"lib/hgfsBd/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hgfsBd/Makefile" ;;
24069
"lib/hgfsHelper/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hgfsHelper/Makefile" ;;
24070
"lib/hgfsServer/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hgfsServer/Makefile" ;;
24071
"lib/hgfsServerManagerGuest/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hgfsServerManagerGuest/Makefile" ;;
24072
"lib/hgfsServerPolicyGuest/Makefile") CONFIG_FILES="$CONFIG_FILES lib/hgfsServerPolicyGuest/Makefile" ;;
24073
"lib/impersonate/Makefile") CONFIG_FILES="$CONFIG_FILES lib/impersonate/Makefile" ;;
24074
"lib/lock/Makefile") CONFIG_FILES="$CONFIG_FILES lib/lock/Makefile" ;;
24075
"lib/message/Makefile") CONFIG_FILES="$CONFIG_FILES lib/message/Makefile" ;;
24076
"lib/misc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/misc/Makefile" ;;
24077
"lib/netUtil/Makefile") CONFIG_FILES="$CONFIG_FILES lib/netUtil/Makefile" ;;
24078
"lib/panic/Makefile") CONFIG_FILES="$CONFIG_FILES lib/panic/Makefile" ;;
24079
"lib/panicDefault/Makefile") CONFIG_FILES="$CONFIG_FILES lib/panicDefault/Makefile" ;;
24080
"lib/printer/Makefile") CONFIG_FILES="$CONFIG_FILES lib/printer/Makefile" ;;
24081
"lib/procMgr/Makefile") CONFIG_FILES="$CONFIG_FILES lib/procMgr/Makefile" ;;
24082
"lib/rpcChannel/Makefile") CONFIG_FILES="$CONFIG_FILES lib/rpcChannel/Makefile" ;;
24083
"lib/rpcIn/Makefile") CONFIG_FILES="$CONFIG_FILES lib/rpcIn/Makefile" ;;
24084
"lib/rpcOut/Makefile") CONFIG_FILES="$CONFIG_FILES lib/rpcOut/Makefile" ;;
24085
"lib/rpcVmx/Makefile") CONFIG_FILES="$CONFIG_FILES lib/rpcVmx/Makefile" ;;
24086
"lib/slashProc/Makefile") CONFIG_FILES="$CONFIG_FILES lib/slashProc/Makefile" ;;
24087
"lib/string/Makefile") CONFIG_FILES="$CONFIG_FILES lib/string/Makefile" ;;
24088
"lib/stubs/Makefile") CONFIG_FILES="$CONFIG_FILES lib/stubs/Makefile" ;;
24089
"lib/syncDriver/Makefile") CONFIG_FILES="$CONFIG_FILES lib/syncDriver/Makefile" ;;
24090
"lib/system/Makefile") CONFIG_FILES="$CONFIG_FILES lib/system/Makefile" ;;
24091
"lib/unicode/Makefile") CONFIG_FILES="$CONFIG_FILES lib/unicode/Makefile" ;;
24092
"lib/user/Makefile") CONFIG_FILES="$CONFIG_FILES lib/user/Makefile" ;;
24093
"lib/vmCheck/Makefile") CONFIG_FILES="$CONFIG_FILES lib/vmCheck/Makefile" ;;
24094
"lib/vmSignal/Makefile") CONFIG_FILES="$CONFIG_FILES lib/vmSignal/Makefile" ;;
24095
"lib/wiper/Makefile") CONFIG_FILES="$CONFIG_FILES lib/wiper/Makefile" ;;
24096
"lib/xdg/Makefile") CONFIG_FILES="$CONFIG_FILES lib/xdg/Makefile" ;;
24097
"services/Makefile") CONFIG_FILES="$CONFIG_FILES services/Makefile" ;;
24098
"services/vmtoolsd/Makefile") CONFIG_FILES="$CONFIG_FILES services/vmtoolsd/Makefile" ;;
24099
"services/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES services/plugins/Makefile" ;;
24100
"services/plugins/desktopEvents/Makefile") CONFIG_FILES="$CONFIG_FILES services/plugins/desktopEvents/Makefile" ;;
24101
"services/plugins/dndcp/Makefile") CONFIG_FILES="$CONFIG_FILES services/plugins/dndcp/Makefile" ;;
24102
"services/plugins/guestInfo/Makefile") CONFIG_FILES="$CONFIG_FILES services/plugins/guestInfo/Makefile" ;;
24103
"services/plugins/guestInfo/getlib/Makefile") CONFIG_FILES="$CONFIG_FILES services/plugins/guestInfo/getlib/Makefile" ;;
24104
"services/plugins/hgfsServer/Makefile") CONFIG_FILES="$CONFIG_FILES services/plugins/hgfsServer/Makefile" ;;
24105
"services/plugins/powerOps/Makefile") CONFIG_FILES="$CONFIG_FILES services/plugins/powerOps/Makefile" ;;
24106
"services/plugins/resolutionSet/Makefile") CONFIG_FILES="$CONFIG_FILES services/plugins/resolutionSet/Makefile" ;;
24107
"services/plugins/timeSync/Makefile") CONFIG_FILES="$CONFIG_FILES services/plugins/timeSync/Makefile" ;;
24108
"services/plugins/vix/Makefile") CONFIG_FILES="$CONFIG_FILES services/plugins/vix/Makefile" ;;
24109
"services/plugins/vmbackup/Makefile") CONFIG_FILES="$CONFIG_FILES services/plugins/vmbackup/Makefile" ;;
24110
"vmware-user-suid-wrapper/Makefile") CONFIG_FILES="$CONFIG_FILES vmware-user-suid-wrapper/Makefile" ;;
24111
"toolbox/Makefile") CONFIG_FILES="$CONFIG_FILES toolbox/Makefile" ;;
24112
"hgfsclient/Makefile") CONFIG_FILES="$CONFIG_FILES hgfsclient/Makefile" ;;
24113
"hgfsmounter/Makefile") CONFIG_FILES="$CONFIG_FILES hgfsmounter/Makefile" ;;
24114
"checkvm/Makefile") CONFIG_FILES="$CONFIG_FILES checkvm/Makefile" ;;
24115
"rpctool/Makefile") CONFIG_FILES="$CONFIG_FILES rpctool/Makefile" ;;
24116
"libguestlib/Makefile") CONFIG_FILES="$CONFIG_FILES libguestlib/Makefile" ;;
24117
"libguestlib/vmguestlib.pc") CONFIG_FILES="$CONFIG_FILES libguestlib/vmguestlib.pc" ;;
24118
"libhgfs/Makefile") CONFIG_FILES="$CONFIG_FILES libhgfs/Makefile" ;;
24119
"libvmtools/Makefile") CONFIG_FILES="$CONFIG_FILES libvmtools/Makefile" ;;
24120
"xferlogs/Makefile") CONFIG_FILES="$CONFIG_FILES xferlogs/Makefile" ;;
24121
"modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
24122
"vmblock-fuse/Makefile") CONFIG_FILES="$CONFIG_FILES vmblock-fuse/Makefile" ;;
24123
"vmblockmounter/Makefile") CONFIG_FILES="$CONFIG_FILES vmblockmounter/Makefile" ;;
24124
"tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
24125
"tests/vmrpcdbg/Makefile") CONFIG_FILES="$CONFIG_FILES tests/vmrpcdbg/Makefile" ;;
24126
"tests/testDebug/Makefile") CONFIG_FILES="$CONFIG_FILES tests/testDebug/Makefile" ;;
24127
"tests/testPlugin/Makefile") CONFIG_FILES="$CONFIG_FILES tests/testPlugin/Makefile" ;;
24128
"tests/testVmblock/Makefile") CONFIG_FILES="$CONFIG_FILES tests/testVmblock/Makefile" ;;
24129
"docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
24130
"docs/api/Makefile") CONFIG_FILES="$CONFIG_FILES docs/api/Makefile" ;;
24131
"scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
24132
"scripts/build/rpcgen_wrapper.sh") CONFIG_FILES="$CONFIG_FILES scripts/build/rpcgen_wrapper.sh" ;;
24134
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
24139
# If the user did not use the arguments to specify the items to instantiate,
24140
# then the envvar interface is used. Set only those that are not.
24141
# We use the long form for the default assignment because of an extremely
24142
# bizarre bug on SunOS 4.1.3.
24143
if $ac_need_defaults; then
24144
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24145
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24148
# Have a temporary directory for convenience. Make it in the build tree
24149
# simply because there is no reason against having it here, and in addition,
24150
# creating and moving files from /tmp can sometimes cause problems.
24151
# Hook for its removal unless debugging.
24152
# Note that there is a small window in which the directory will not be cleaned:
24153
# after its creation but before its name has been assigned to `$tmp'.
24157
trap 'exit_status=$?
24158
: "${ac_tmp:=$tmp}"
24159
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
24161
trap 'as_fn_exit 1' 1 2 13 15
24163
# Create a (secure) tmp directory for tmp files.
24166
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24170
tmp=./conf$$-$RANDOM
24171
(umask 077 && mkdir "$tmp")
24172
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
24175
# Set up the scripts for CONFIG_FILES section.
24176
# No need to generate them if there are no CONFIG_FILES.
24177
# This happens for instance with `./config.status config.h'.
24178
if test -n "$CONFIG_FILES"; then
24181
ac_cr=`echo X | tr X '\015'`
24182
# On cygwin, bash can eat \r inside `` if the user requested igncr.
24183
# But we know of no other shell where ac_cr would be empty at this
24184
# point, so we can use a bashism as a fallback.
24185
if test "x$ac_cr" = x; then
24186
eval ac_cr=\$\'\\r\'
24188
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
24189
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
24192
ac_cs_awk_cr=$ac_cr
24195
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
24200
echo "cat >conf$$subs.awk <<_ACEOF" &&
24201
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
24203
} >conf$$subs.sh ||
24204
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24205
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
24207
for ac_last_try in false false false false false :; do
24208
. ./conf$$subs.sh ||
24209
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24211
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
24212
if test $ac_delim_n = $ac_delim_num; then
24214
elif $ac_last_try; then
24215
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
24217
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24220
rm -f conf$$subs.sh
24222
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24223
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
24227
s/^/S["/; s/!.*/"]=/
24237
s/\(.\{148\}\)..*/\1/
24239
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
24244
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24251
s/\(.\{148\}\)..*/\1/
24253
s/["\\]/\\&/g; s/^/"/; s/$/"/
24257
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
24262
' <conf$$subs.awk | sed '
24267
' >>$CONFIG_STATUS || ac_write_fail=1
24268
rm -f conf$$subs.awk
24269
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24271
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
24272
for (key in S) S_is_set[key] = 1
24278
nfields = split(line, field, "@")
24280
len = length(field[1])
24281
for (i = 2; i < nfields; i++) {
24283
keylen = length(key)
24284
if (S_is_set[key]) {
24286
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
24287
len += length(value) + length(field[++i])
24298
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24299
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
24300
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
24303
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
24304
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
24307
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
24308
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
24309
# trailing colons and then remove the whole line if VPATH becomes empty
24310
# (actually we leave an empty line to preserve line numbers).
24311
if test "x$srcdir" = x.; then
24312
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
24330
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24331
fi # test -n "$CONFIG_FILES"
24334
eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
24339
:[FHLC]) ac_mode=$ac_tag; continue;;
24341
case $ac_mode$ac_tag in
24343
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
24344
:[FH]-) ac_tag=-:-;;
24345
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24362
-) ac_f="$ac_tmp/stdin";;
24363
*) # Look for the file first in the build tree, then in the source tree
24364
# (if the path is not absolute). The absolute path cannot be DOS-style,
24365
# because $ac_f cannot contain `:'.
24369
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24371
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
24373
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
24374
as_fn_append ac_file_inputs " '$ac_f'"
24377
# Let's still pretend it is `configure' which instantiates (i.e., don't
24378
# use $as_me), people would be surprised to read:
24379
# /* config.h. Generated by config.status. */
24380
configure_input='Generated from '`
24381
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24383
if test x"$ac_file" != x-; then
24384
configure_input="$ac_file. $configure_input"
24385
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24386
$as_echo "$as_me: creating $ac_file" >&6;}
24388
# Neutralize special characters interpreted by sed in replacement strings.
24389
case $configure_input in #(
24390
*\&* | *\|* | *\\* )
24391
ac_sed_conf_input=`$as_echo "$configure_input" |
24392
sed 's/[\\\\&|]/\\\\&/g'`;; #(
24393
*) ac_sed_conf_input=$configure_input;;
24397
*:-:* | *:-) cat >"$ac_tmp/stdin" \
24398
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24403
ac_dir=`$as_dirname -- "$ac_file" ||
24404
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24405
X"$ac_file" : 'X\(//\)[^/]' \| \
24406
X"$ac_file" : 'X\(//\)$' \| \
24407
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24408
$as_echo X"$ac_file" |
24409
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24413
/^X\(\/\/\)[^/].*/{
24426
as_dir="$ac_dir"; as_fn_mkdir_p
24430
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24432
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24433
# A ".." for each directory in $ac_dir_suffix.
24434
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24435
case $ac_top_builddir_sub in
24436
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24437
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24440
ac_abs_top_builddir=$ac_pwd
24441
ac_abs_builddir=$ac_pwd$ac_dir_suffix
24442
# for backward compatibility:
24443
ac_top_builddir=$ac_top_build_prefix
24446
.) # We are building in place.
24448
ac_top_srcdir=$ac_top_builddir_sub
24449
ac_abs_top_srcdir=$ac_pwd ;;
24450
[\\/]* | ?:[\\/]* ) # Absolute name.
24451
ac_srcdir=$srcdir$ac_dir_suffix;
24452
ac_top_srcdir=$srcdir
24453
ac_abs_top_srcdir=$srcdir ;;
24454
*) # Relative name.
24455
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24456
ac_top_srcdir=$ac_top_build_prefix$srcdir
24457
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24459
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24469
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24470
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24472
ac_MKDIR_P=$MKDIR_P
24474
[\\/$]* | ?:[\\/]* ) ;;
24475
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24479
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24480
# If the template does not know about datarootdir, expand it.
24481
# FIXME: This hack should be removed a few years after 2.60.
24482
ac_datarootdir_hack=; ac_datarootdir_seen=
24493
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24494
*datarootdir*) ac_datarootdir_seen=yes;;
24495
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24496
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24497
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24499
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24500
ac_datarootdir_hack='
24501
s&@datadir@&$datadir&g
24502
s&@docdir@&$docdir&g
24503
s&@infodir@&$infodir&g
24504
s&@localedir@&$localedir&g
24505
s&@mandir@&$mandir&g
24506
s&\\\${datarootdir}&$datarootdir&g' ;;
24510
# Neutralize VPATH when `$srcdir' = `.'.
24511
# Shell code in configure.ac might set extrasub.
24512
# FIXME: do we really want to maintain this feature?
24513
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24514
ac_sed_extra="$ac_vpsub
24517
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24519
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24520
s|@configure_input@|$ac_sed_conf_input|;t t
24521
s&@top_builddir@&$ac_top_builddir_sub&;t t
24522
s&@top_build_prefix@&$ac_top_build_prefix&;t t
24523
s&@srcdir@&$ac_srcdir&;t t
24524
s&@abs_srcdir@&$ac_abs_srcdir&;t t
24525
s&@top_srcdir@&$ac_top_srcdir&;t t
24526
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24527
s&@builddir@&$ac_builddir&;t t
24528
s&@abs_builddir@&$ac_abs_builddir&;t t
24529
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24530
s&@INSTALL@&$ac_INSTALL&;t t
24531
s&@MKDIR_P@&$ac_MKDIR_P&;t t
24532
$ac_datarootdir_hack
24534
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24535
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24537
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24538
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24539
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
24540
"$ac_tmp/out"`; test -z "$ac_out"; } &&
24541
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24542
which seems to be undefined. Please make sure it is defined" >&5
24543
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24544
which seems to be undefined. Please make sure it is defined" >&2;}
24546
rm -f "$ac_tmp/stdin"
24548
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24549
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24551
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
24555
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24556
$as_echo "$as_me: executing $ac_file commands" >&6;}
24561
case $ac_file$ac_mode in
24562
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24563
# Autoconf 2.62 quotes --file arguments for eval, but not when files
24564
# are listed without --file. Let's play safe and only enable the eval
24565
# if we detect the quoting.
24566
case $CONFIG_FILES in
24567
*\'*) eval set x "$CONFIG_FILES" ;;
24568
*) set x $CONFIG_FILES ;;
24573
# Strip MF so we end up with the name of the file.
24574
mf=`echo "$mf" | sed -e 's/:.*$//'`
24575
# Check whether this is an Automake generated Makefile or not.
24576
# We used to match only the files named `Makefile.in', but
24577
# some people rename them; so instead we look at the file content.
24578
# Grep'ing the first line is not enough: some people post-process
24579
# each Makefile.in and add a new line on top of each file to say so.
24580
# Grep'ing the whole file is not good either: AIX grep has a line
24581
# limit of 2048, but all sed's we know have understand at least 4000.
24582
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24583
dirpart=`$as_dirname -- "$mf" ||
24584
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24585
X"$mf" : 'X\(//\)[^/]' \| \
24586
X"$mf" : 'X\(//\)$' \| \
24587
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24589
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24593
/^X\(\/\/\)[^/].*/{
24609
# Extract the definition of DEPDIR, am__include, and am__quote
24610
# from the Makefile without running `make'.
24611
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24612
test -z "$DEPDIR" && continue
24613
am__include=`sed -n 's/^am__include = //p' < "$mf"`
24614
test -z "am__include" && continue
24615
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24616
# When using ansi2knr, U may be empty or an underscore; expand it
24617
U=`sed -n 's/^U = //p' < "$mf"`
24618
# Find all dependency output files, they are included files with
24619
# $(DEPDIR) in their names. We invoke sed twice because it is the
24620
# simplest approach to changing $(DEPDIR) to its actual value in the
24622
for file in `sed -n "
24623
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24624
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24625
# Make sure the directory exists.
24626
test -f "$dirpart/$file" && continue
24627
fdir=`$as_dirname -- "$file" ||
24628
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24629
X"$file" : 'X\(//\)[^/]' \| \
24630
X"$file" : 'X\(//\)$' \| \
24631
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24632
$as_echo X"$file" |
24633
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24637
/^X\(\/\/\)[^/].*/{
24650
as_dir=$dirpart/$fdir; as_fn_mkdir_p
24651
# echo "creating $dirpart/$file"
24652
echo '# dummy' > "$dirpart/$file"
24659
# See if we are running on zsh, and set the options which allow our
24660
# commands through without removal of \ escapes.
24661
if test -n "${ZSH_VERSION+set}" ; then
24662
setopt NO_GLOB_SUBST
24665
cfgfile="${ofile}T"
24666
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24669
cat <<_LT_EOF >> "$cfgfile"
24672
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
24673
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
24674
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24675
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
24677
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
24678
# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
24680
# Written by Gordon Matzigkeit, 1996
24682
# This file is part of GNU Libtool.
24684
# GNU Libtool is free software; you can redistribute it and/or
24685
# modify it under the terms of the GNU General Public License as
24686
# published by the Free Software Foundation; either version 2 of
24687
# the License, or (at your option) any later version.
24689
# As a special exception to the GNU General Public License,
24690
# if you distribute this file as part of a program or library that
24691
# is built using GNU Libtool, you may include this file under the
24692
# same distribution terms that you use for the rest of that program.
24694
# GNU Libtool is distributed in the hope that it will be useful,
24695
# but WITHOUT ANY WARRANTY; without even the implied warranty of
24696
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24697
# GNU General Public License for more details.
24699
# You should have received a copy of the GNU General Public License
24700
# along with GNU Libtool; see the file COPYING. If not, a copy
24701
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
24702
# obtained by writing to the Free Software Foundation, Inc.,
24703
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24706
# The names of the tagged configurations supported by this script.
24707
available_tags="CXX "
24709
# ### BEGIN LIBTOOL CONFIG
24711
# Which release of libtool.m4 was used?
24712
macro_version=$macro_version
24713
macro_revision=$macro_revision
24715
# Whether or not to build shared libraries.
24716
build_libtool_libs=$enable_shared
24718
# Whether or not to build static libraries.
24719
build_old_libs=$enable_static
24721
# What type of objects to build.
24724
# Whether or not to optimize for fast installation.
24725
fast_install=$enable_fast_install
24727
# Shell to use when invoking shell scripts.
24730
# An echo program that protects backslashes.
24733
# The PATH separator for the build system.
24734
PATH_SEPARATOR=$lt_PATH_SEPARATOR
24737
host_alias=$host_alias
24741
# The build system.
24742
build_alias=$build_alias
24746
# A sed program that does not truncate output.
24749
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
24750
Xsed="\$SED -e 1s/^X//"
24752
# A grep program that handles long lines.
24758
# A literal string matcher.
24761
# A BSD- or MS-compatible name lister.
24764
# Whether we need soft or hard links.
24767
# What is the maximum length of a command?
24768
max_cmd_len=$max_cmd_len
24770
# Object file suffix (normally "o").
24773
# Executable file suffix (normally "").
24776
# whether the shell understands "unset".
24779
# turn spaces into newlines.
24782
# turn newlines into spaces.
24785
# convert \$build file names to \$host format.
24786
to_host_file_cmd=$lt_cv_to_host_file_cmd
24788
# convert \$build files to toolchain format.
24789
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
24791
# An object symbol dumper.
24792
OBJDUMP=$lt_OBJDUMP
24794
# Method to check whether dependent libraries are shared objects.
24795
deplibs_check_method=$lt_deplibs_check_method
24797
# Command to use when deplibs_check_method = "file_magic".
24798
file_magic_cmd=$lt_file_magic_cmd
24800
# How to find potential files when deplibs_check_method = "file_magic".
24801
file_magic_glob=$lt_file_magic_glob
24803
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
24804
want_nocaseglob=$lt_want_nocaseglob
24806
# DLL creation program.
24807
DLLTOOL=$lt_DLLTOOL
24809
# Command to associate shared and link libraries.
24810
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
24815
# Flags to create an archive.
24816
AR_FLAGS=$lt_AR_FLAGS
24818
# How to feed a file listing to the archiver.
24819
archiver_list_spec=$lt_archiver_list_spec
24821
# A symbol stripping program.
24824
# Commands used to install an old-style archive.
24826
old_postinstall_cmds=$lt_old_postinstall_cmds
24827
old_postuninstall_cmds=$lt_old_postuninstall_cmds
24829
# Whether to use a lock for old archive extraction.
24830
lock_old_archive_extraction=$lock_old_archive_extraction
24835
# LTCC compiler flags.
24836
LTCFLAGS=$lt_CFLAGS
24838
# Take the output of nm and produce a listing of raw symbols and C names.
24839
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24841
# Transform the output of nm in a proper C declaration.
24842
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24844
# Transform the output of nm in a C name address pair.
24845
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24847
# Transform the output of nm in a C name address pair when lib prefix is needed.
24848
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24850
# Specify filename containing input files for \$NM.
24851
nm_file_list_spec=$lt_nm_file_list_spec
24853
# The root where to search for dependent libraries,and in which our libraries should be installed.
24854
lt_sysroot=$lt_sysroot
24856
# The name of the directory that contains temporary libtool files.
24859
# Used to examine libraries when file_magic_cmd begins with "file".
24860
MAGIC_CMD=$MAGIC_CMD
24862
# Must we lock files when doing compilation?
24863
need_locks=$lt_need_locks
24866
MANIFEST_TOOL=$lt_MANIFEST_TOOL
24868
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24869
DSYMUTIL=$lt_DSYMUTIL
24871
# Tool to change global to local symbols on Mac OS X.
24874
# Tool to manipulate fat objects and archives on Mac OS X.
24877
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
24880
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24881
OTOOL64=$lt_OTOOL64
24883
# Old archive suffix (normally "a").
24886
# Shared library suffix (normally ".so").
24887
shrext_cmds=$lt_shrext_cmds
24889
# The commands to extract the exported symbol list from a shared archive.
24890
extract_expsyms_cmds=$lt_extract_expsyms_cmds
24892
# Variables whose values should be saved in libtool wrapper scripts and
24893
# restored at link time.
24894
variables_saved_for_relink=$lt_variables_saved_for_relink
24896
# Do we need the "lib" prefix for modules?
24897
need_lib_prefix=$need_lib_prefix
24899
# Do we need a version for libraries?
24900
need_version=$need_version
24902
# Library versioning type.
24903
version_type=$version_type
24905
# Shared library runtime path variable.
24906
runpath_var=$runpath_var
24908
# Shared library path variable.
24909
shlibpath_var=$shlibpath_var
24911
# Is shlibpath searched before the hard-coded library search path?
24912
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24914
# Format of library name prefix.
24915
libname_spec=$lt_libname_spec
24917
# List of archive names. First name is the real one, the rest are links.
24918
# The last name is the one that the linker finds with -lNAME
24919
library_names_spec=$lt_library_names_spec
24921
# The coded name of the library, if different from the real name.
24922
soname_spec=$lt_soname_spec
24924
# Permission mode override for installation of shared libraries.
24925
install_override_mode=$lt_install_override_mode
24927
# Command to use after installation of a shared archive.
24928
postinstall_cmds=$lt_postinstall_cmds
24930
# Command to use after uninstallation of a shared archive.
24931
postuninstall_cmds=$lt_postuninstall_cmds
24933
# Commands used to finish a libtool library installation in a directory.
24934
finish_cmds=$lt_finish_cmds
24936
# As "finish_cmds", except a single script fragment to be evaled but
24938
finish_eval=$lt_finish_eval
24940
# Whether we should hardcode library paths into libraries.
24941
hardcode_into_libs=$hardcode_into_libs
24943
# Compile-time system search path for libraries.
24944
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24946
# Run-time system search path for libraries.
24947
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24949
# Whether dlopen is supported.
24950
dlopen_support=$enable_dlopen
24952
# Whether dlopen of programs is supported.
24953
dlopen_self=$enable_dlopen_self
24955
# Whether dlopen of statically linked programs is supported.
24956
dlopen_self_static=$enable_dlopen_self_static
24958
# Commands to strip libraries.
24959
old_striplib=$lt_old_striplib
24960
striplib=$lt_striplib
24963
# The linker used to build libraries.
24966
# How to create reloadable object files.
24967
reload_flag=$lt_reload_flag
24968
reload_cmds=$lt_reload_cmds
24970
# Commands used to build an old-style archive.
24971
old_archive_cmds=$lt_old_archive_cmds
24973
# A language specific compiler.
24976
# Is the compiler the GNU compiler?
24979
# Compiler flag to turn off builtin functions.
24980
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24982
# Additional compiler flags for building library objects.
24983
pic_flag=$lt_lt_prog_compiler_pic
24985
# How to pass a linker flag through the compiler.
24986
wl=$lt_lt_prog_compiler_wl
24988
# Compiler flag to prevent dynamic linking.
24989
link_static_flag=$lt_lt_prog_compiler_static
24991
# Does compiler simultaneously support -c and -o options?
24992
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24994
# Whether or not to add -lc for building shared libraries.
24995
build_libtool_need_lc=$archive_cmds_need_lc
24997
# Whether or not to disallow shared libs when runtime libs are static.
24998
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
25000
# Compiler flag to allow reflexive dlopens.
25001
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
25003
# Compiler flag to generate shared objects directly from archives.
25004
whole_archive_flag_spec=$lt_whole_archive_flag_spec
25006
# Whether the compiler copes with passing no objects directly.
25007
compiler_needs_object=$lt_compiler_needs_object
25009
# Create an old-style archive from a shared archive.
25010
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
25012
# Create a temporary old-style archive to link instead of a shared archive.
25013
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
25015
# Commands used to build a shared archive.
25016
archive_cmds=$lt_archive_cmds
25017
archive_expsym_cmds=$lt_archive_expsym_cmds
25019
# Commands used to build a loadable module if different from building
25020
# a shared archive.
25021
module_cmds=$lt_module_cmds
25022
module_expsym_cmds=$lt_module_expsym_cmds
25024
# Whether we are building with GNU ld or not.
25025
with_gnu_ld=$lt_with_gnu_ld
25027
# Flag that allows shared libraries with undefined symbols to be built.
25028
allow_undefined_flag=$lt_allow_undefined_flag
25030
# Flag that enforces no undefined symbols.
25031
no_undefined_flag=$lt_no_undefined_flag
25033
# Flag to hardcode \$libdir into a binary during linking.
25034
# This must work even if \$libdir does not exist
25035
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
25037
# Whether we need a single "-rpath" flag with a separated argument.
25038
hardcode_libdir_separator=$lt_hardcode_libdir_separator
25040
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25041
# DIR into the resulting binary.
25042
hardcode_direct=$hardcode_direct
25044
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25045
# DIR into the resulting binary and the resulting library dependency is
25046
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
25047
# library is relocated.
25048
hardcode_direct_absolute=$hardcode_direct_absolute
25050
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25051
# into the resulting binary.
25052
hardcode_minus_L=$hardcode_minus_L
25054
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25055
# into the resulting binary.
25056
hardcode_shlibpath_var=$hardcode_shlibpath_var
25058
# Set to "yes" if building a shared library automatically hardcodes DIR
25059
# into the library and all subsequent libraries and executables linked
25061
hardcode_automatic=$hardcode_automatic
25063
# Set to yes if linker adds runtime paths of dependent libraries
25064
# to runtime path list.
25065
inherit_rpath=$inherit_rpath
25067
# Whether libtool must link a program against all its dependency libraries.
25068
link_all_deplibs=$link_all_deplibs
25070
# Set to "yes" if exported symbols are required.
25071
always_export_symbols=$always_export_symbols
25073
# The commands to list exported symbols.
25074
export_symbols_cmds=$lt_export_symbols_cmds
25076
# Symbols that should not be listed in the preloaded symbols.
25077
exclude_expsyms=$lt_exclude_expsyms
25079
# Symbols that must always be exported.
25080
include_expsyms=$lt_include_expsyms
25082
# Commands necessary for linking programs (against libraries) with templates.
25083
prelink_cmds=$lt_prelink_cmds
25085
# Commands necessary for finishing linking programs.
25086
postlink_cmds=$lt_postlink_cmds
25088
# Specify filename containing input files.
25089
file_list_spec=$lt_file_list_spec
25091
# How to hardcode a shared library path into an executable.
25092
hardcode_action=$hardcode_action
25094
# The directories searched by this compiler when creating a shared library.
25095
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
25097
# Dependencies to place before and after the objects being linked to
25098
# create a shared library.
25099
predep_objects=$lt_predep_objects
25100
postdep_objects=$lt_postdep_objects
25101
predeps=$lt_predeps
25102
postdeps=$lt_postdeps
25104
# The library search path used internally by the compiler when linking
25105
# a shared library.
25106
compiler_lib_search_path=$lt_compiler_lib_search_path
25108
# ### END LIBTOOL CONFIG
25114
cat <<\_LT_EOF >> "$cfgfile"
25115
# AIX sometimes has problems with the GCC collect2 program. For some
25116
# reason, if we set the COLLECT_NAMES environment variable, the problems
25117
# vanish in a puff of smoke.
25118
if test "X${COLLECT_NAMES+set}" != Xset; then
25120
export COLLECT_NAMES
25127
ltmain="$ac_aux_dir/ltmain.sh"
25130
# We use sed instead of cat because bash on DJGPP gets confused if
25131
# if finds mixed CR/LF and LF-only lines. Since sed operates in
25132
# text mode, it properly converts lines to CR/LF. This bash problem
25133
# is reportedly fixed, but why not run on old versions too?
25134
sed '$q' "$ltmain" >> "$cfgfile" \
25135
|| (rm -f "$cfgfile"; exit 1)
25137
if test x"$xsi_shell" = xyes; then
25138
sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
25142
\ */*) func_dirname_result="${1%/*}${2}" ;;\
25143
\ * ) func_dirname_result="${3}" ;;\
25145
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
25146
&& mv -f "$cfgfile.tmp" "$cfgfile" \
25147
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25148
test 0 -eq $? || _lt_function_replace_fail=:
25151
sed -e '/^func_basename ()$/,/^} # func_basename /c\
25154
\ func_basename_result="${1##*/}"\
25155
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
25156
&& mv -f "$cfgfile.tmp" "$cfgfile" \
25157
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25158
test 0 -eq $? || _lt_function_replace_fail=:
25161
sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
25162
func_dirname_and_basename ()\
25165
\ */*) func_dirname_result="${1%/*}${2}" ;;\
25166
\ * ) func_dirname_result="${3}" ;;\
25168
\ func_basename_result="${1##*/}"\
25169
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
25170
&& mv -f "$cfgfile.tmp" "$cfgfile" \
25171
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25172
test 0 -eq $? || _lt_function_replace_fail=:
25175
sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
25178
\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
25179
\ # positional parameters, so assign one to ordinary parameter first.\
25180
\ func_stripname_result=${3}\
25181
\ func_stripname_result=${func_stripname_result#"${1}"}\
25182
\ func_stripname_result=${func_stripname_result%"${2}"}\
25183
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
25184
&& mv -f "$cfgfile.tmp" "$cfgfile" \
25185
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25186
test 0 -eq $? || _lt_function_replace_fail=:
25189
sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
25190
func_split_long_opt ()\
25192
\ func_split_long_opt_name=${1%%=*}\
25193
\ func_split_long_opt_arg=${1#*=}\
25194
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
25195
&& mv -f "$cfgfile.tmp" "$cfgfile" \
25196
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25197
test 0 -eq $? || _lt_function_replace_fail=:
25200
sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
25201
func_split_short_opt ()\
25203
\ func_split_short_opt_arg=${1#??}\
25204
\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
25205
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
25206
&& mv -f "$cfgfile.tmp" "$cfgfile" \
25207
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25208
test 0 -eq $? || _lt_function_replace_fail=:
25211
sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
25215
\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
25216
\ *) func_lo2o_result=${1} ;;\
25218
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
25219
&& mv -f "$cfgfile.tmp" "$cfgfile" \
25220
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25221
test 0 -eq $? || _lt_function_replace_fail=:
25224
sed -e '/^func_xform ()$/,/^} # func_xform /c\
25227
func_xform_result=${1%.*}.lo\
25228
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
25229
&& mv -f "$cfgfile.tmp" "$cfgfile" \
25230
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25231
test 0 -eq $? || _lt_function_replace_fail=:
25234
sed -e '/^func_arith ()$/,/^} # func_arith /c\
25237
func_arith_result=$(( $* ))\
25238
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
25239
&& mv -f "$cfgfile.tmp" "$cfgfile" \
25240
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25241
test 0 -eq $? || _lt_function_replace_fail=:
25244
sed -e '/^func_len ()$/,/^} # func_len /c\
25247
func_len_result=${#1}\
25248
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
25249
&& mv -f "$cfgfile.tmp" "$cfgfile" \
25250
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25251
test 0 -eq $? || _lt_function_replace_fail=:
25255
if test x"$lt_shell_append" = xyes; then
25256
sed -e '/^func_append ()$/,/^} # func_append /c\
25259
eval "${1}+=\\${2}"\
25260
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
25261
&& mv -f "$cfgfile.tmp" "$cfgfile" \
25262
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25263
test 0 -eq $? || _lt_function_replace_fail=:
25266
sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
25267
func_append_quoted ()\
25269
\ func_quote_for_eval "${2}"\
25270
\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
25271
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
25272
&& mv -f "$cfgfile.tmp" "$cfgfile" \
25273
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25274
test 0 -eq $? || _lt_function_replace_fail=:
25277
# Save a `func_append' function call where possible by direct use of '+='
25278
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
25279
&& mv -f "$cfgfile.tmp" "$cfgfile" \
25280
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25281
test 0 -eq $? || _lt_function_replace_fail=:
25283
# Save a `func_append' function call even when '+=' is not available
25284
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
25285
&& mv -f "$cfgfile.tmp" "$cfgfile" \
25286
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
25287
test 0 -eq $? || _lt_function_replace_fail=:
25290
if test x"$_lt_function_replace_fail" = x":"; then
25291
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
25292
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
25296
mv -f "$cfgfile" "$ofile" ||
25297
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
25301
cat <<_LT_EOF >> "$ofile"
25303
# ### BEGIN LIBTOOL TAG CONFIG: CXX
25305
# The linker used to build libraries.
25308
# How to create reloadable object files.
25309
reload_flag=$lt_reload_flag_CXX
25310
reload_cmds=$lt_reload_cmds_CXX
25312
# Commands used to build an old-style archive.
25313
old_archive_cmds=$lt_old_archive_cmds_CXX
25315
# A language specific compiler.
25316
CC=$lt_compiler_CXX
25318
# Is the compiler the GNU compiler?
25321
# Compiler flag to turn off builtin functions.
25322
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
25324
# Additional compiler flags for building library objects.
25325
pic_flag=$lt_lt_prog_compiler_pic_CXX
25327
# How to pass a linker flag through the compiler.
25328
wl=$lt_lt_prog_compiler_wl_CXX
25330
# Compiler flag to prevent dynamic linking.
25331
link_static_flag=$lt_lt_prog_compiler_static_CXX
25333
# Does compiler simultaneously support -c and -o options?
25334
compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
25336
# Whether or not to add -lc for building shared libraries.
25337
build_libtool_need_lc=$archive_cmds_need_lc_CXX
25339
# Whether or not to disallow shared libs when runtime libs are static.
25340
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
25342
# Compiler flag to allow reflexive dlopens.
25343
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
25345
# Compiler flag to generate shared objects directly from archives.
25346
whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
25348
# Whether the compiler copes with passing no objects directly.
25349
compiler_needs_object=$lt_compiler_needs_object_CXX
25351
# Create an old-style archive from a shared archive.
25352
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
25354
# Create a temporary old-style archive to link instead of a shared archive.
25355
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
25357
# Commands used to build a shared archive.
25358
archive_cmds=$lt_archive_cmds_CXX
25359
archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
25361
# Commands used to build a loadable module if different from building
25362
# a shared archive.
25363
module_cmds=$lt_module_cmds_CXX
25364
module_expsym_cmds=$lt_module_expsym_cmds_CXX
25366
# Whether we are building with GNU ld or not.
25367
with_gnu_ld=$lt_with_gnu_ld_CXX
25369
# Flag that allows shared libraries with undefined symbols to be built.
25370
allow_undefined_flag=$lt_allow_undefined_flag_CXX
25372
# Flag that enforces no undefined symbols.
25373
no_undefined_flag=$lt_no_undefined_flag_CXX
25375
# Flag to hardcode \$libdir into a binary during linking.
25376
# This must work even if \$libdir does not exist
25377
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
25379
# Whether we need a single "-rpath" flag with a separated argument.
25380
hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
25382
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25383
# DIR into the resulting binary.
25384
hardcode_direct=$hardcode_direct_CXX
25386
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25387
# DIR into the resulting binary and the resulting library dependency is
25388
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
25389
# library is relocated.
25390
hardcode_direct_absolute=$hardcode_direct_absolute_CXX
25392
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25393
# into the resulting binary.
25394
hardcode_minus_L=$hardcode_minus_L_CXX
25396
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25397
# into the resulting binary.
25398
hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
25400
# Set to "yes" if building a shared library automatically hardcodes DIR
25401
# into the library and all subsequent libraries and executables linked
25403
hardcode_automatic=$hardcode_automatic_CXX
25405
# Set to yes if linker adds runtime paths of dependent libraries
25406
# to runtime path list.
25407
inherit_rpath=$inherit_rpath_CXX
25409
# Whether libtool must link a program against all its dependency libraries.
25410
link_all_deplibs=$link_all_deplibs_CXX
25412
# Set to "yes" if exported symbols are required.
25413
always_export_symbols=$always_export_symbols_CXX
25415
# The commands to list exported symbols.
25416
export_symbols_cmds=$lt_export_symbols_cmds_CXX
25418
# Symbols that should not be listed in the preloaded symbols.
25419
exclude_expsyms=$lt_exclude_expsyms_CXX
25421
# Symbols that must always be exported.
25422
include_expsyms=$lt_include_expsyms_CXX
25424
# Commands necessary for linking programs (against libraries) with templates.
25425
prelink_cmds=$lt_prelink_cmds_CXX
25427
# Commands necessary for finishing linking programs.
25428
postlink_cmds=$lt_postlink_cmds_CXX
25430
# Specify filename containing input files.
25431
file_list_spec=$lt_file_list_spec_CXX
25433
# How to hardcode a shared library path into an executable.
25434
hardcode_action=$hardcode_action_CXX
25436
# The directories searched by this compiler when creating a shared library.
25437
compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
25439
# Dependencies to place before and after the objects being linked to
25440
# create a shared library.
25441
predep_objects=$lt_predep_objects_CXX
25442
postdep_objects=$lt_postdep_objects_CXX
25443
predeps=$lt_predeps_CXX
25444
postdeps=$lt_postdeps_CXX
25446
# The library search path used internally by the compiler when linking
25447
# a shared library.
25448
compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
25450
# ### END LIBTOOL TAG CONFIG: CXX
25461
ac_clean_files=$ac_clean_files_save
25463
test $ac_write_fail = 0 ||
25464
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25467
# configure is writing to config.log, and then calls config.status.
25468
# config.status does its own redirection, appending to config.log.
25469
# Unfortunately, on DOS this fails, as config.log is still kept open
25470
# by configure, so config.status won't be able to write to it; its
25471
# output is simply discarded. So we exec the FD to /dev/null,
25472
# effectively closing config.log, so it can be properly (re)opened and
25473
# appended to by config.status. When coming back to configure, we
25474
# need to make the FD available again.
25475
if test "$no_create" != yes; then
25477
ac_config_status_args=
25478
test "$silent" = yes &&
25479
ac_config_status_args="$ac_config_status_args --quiet"
25481
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25483
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
25484
# would make configure fail if this is the last instruction.
25485
$ac_cs_success || as_fn_exit 1
25487
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25488
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25489
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}