2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.68 for indicator-power 0.1.
5
# Report bugs to <http://bugs.launchpad.net/indicator-power>.
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
178
test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182
PATH=/empty FPATH=/empty; export PATH FPATH
183
test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184
|| test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185
test \$(( 1 + 1 )) = 2 || 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: http://bugs.launchpad.net/indicator-power 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='indicator-power'
572
PACKAGE_TARNAME='indicator-power'
573
PACKAGE_VERSION='0.1'
574
PACKAGE_STRING='indicator-power 0.1'
575
PACKAGE_BUGREPORT='http://bugs.launchpad.net/indicator-power'
576
PACKAGE_URL='http://launchpad.net/indicator-power'
578
ac_unique_file="configure.ac"
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>
616
ac_subst_vars='am__EXEEXT_FALSE
628
XGETTEXT_EXTRA_OPTIONS
632
GETTEXT_MACRO_VERSION
641
INTLTOOL_SERVICE_RULE
643
INTLTOOL_SCHEMAS_RULE
645
INTLTOOL_XML_NOMERGE_RULE
650
INTLTOOL_SOUNDLIST_RULE
657
INTLTOOL_DIRECTORY_RULE
658
INTLTOOL_DESKTOP_RULE
722
MAINTAINER_MODE_FALSE
732
INSTALL_STRIP_PROGRAM
774
program_transform_name
787
enable_option_checking
788
enable_maintainer_mode
790
enable_dependency_tracking
804
ac_precious_vars='build_alias
822
# Initialize some variables set by options.
824
ac_init_version=false
825
ac_unrecognized_opts=
827
# The variables have the same names as the options, with
828
# dashes changed to underlines.
836
program_transform_name=s,x,x,
844
# Installation directory options.
845
# These are left unexpanded so users can "make install exec_prefix=/foo"
846
# and all the variables that are supposed to be based on exec_prefix
847
# by default will actually change.
848
# Use braces instead of parens because sh, perl, etc. also accept them.
849
# (The list follows the same order as the GNU Coding Standards.)
850
bindir='${exec_prefix}/bin'
851
sbindir='${exec_prefix}/sbin'
852
libexecdir='${exec_prefix}/libexec'
853
datarootdir='${prefix}/share'
854
datadir='${datarootdir}'
855
sysconfdir='${prefix}/etc'
856
sharedstatedir='${prefix}/com'
857
localstatedir='${prefix}/var'
858
includedir='${prefix}/include'
859
oldincludedir='/usr/include'
860
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861
infodir='${datarootdir}/info'
866
libdir='${exec_prefix}/lib'
867
localedir='${datarootdir}/locale'
868
mandir='${datarootdir}/man'
874
# If the previous option needs an argument, assign it.
875
if test -n "$ac_prev"; then
876
eval $ac_prev=\$ac_option
882
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
887
# Accept the important Cygnus configure options, so we can diagnose typos.
889
case $ac_dashdash$ac_option in
893
-bindir | --bindir | --bindi | --bind | --bin | --bi)
895
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
898
-build | --build | --buil | --bui | --bu)
899
ac_prev=build_alias ;;
900
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
901
build_alias=$ac_optarg ;;
903
-cache-file | --cache-file | --cache-fil | --cache-fi \
904
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905
ac_prev=cache_file ;;
906
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908
cache_file=$ac_optarg ;;
911
cache_file=config.cache ;;
913
-datadir | --datadir | --datadi | --datad)
915
-datadir=* | --datadir=* | --datadi=* | --datad=*)
916
datadir=$ac_optarg ;;
918
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919
| --dataroo | --dataro | --datar)
920
ac_prev=datarootdir ;;
921
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923
datarootdir=$ac_optarg ;;
925
-disable-* | --disable-*)
926
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927
# Reject names that are not valid shell variable names.
928
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929
as_fn_error $? "invalid feature name: $ac_useropt"
930
ac_useropt_orig=$ac_useropt
931
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932
case $ac_user_opts in
936
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
937
ac_unrecognized_sep=', ';;
939
eval enable_$ac_useropt=no ;;
941
-docdir | --docdir | --docdi | --doc | --do)
943
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
946
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
951
-enable-* | --enable-*)
952
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953
# Reject names that are not valid shell variable names.
954
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955
as_fn_error $? "invalid feature name: $ac_useropt"
956
ac_useropt_orig=$ac_useropt
957
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958
case $ac_user_opts in
962
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
963
ac_unrecognized_sep=', ';;
965
eval enable_$ac_useropt=\$ac_optarg ;;
967
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
968
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
969
| --exec | --exe | --ex)
970
ac_prev=exec_prefix ;;
971
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
972
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
973
| --exec=* | --exe=* | --ex=*)
974
exec_prefix=$ac_optarg ;;
976
-gas | --gas | --ga | --g)
977
# Obsolete; use --with-gas.
980
-help | --help | --hel | --he | -h)
982
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
983
ac_init_help=recursive ;;
984
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
985
ac_init_help=short ;;
987
-host | --host | --hos | --ho)
988
ac_prev=host_alias ;;
989
-host=* | --host=* | --hos=* | --ho=*)
990
host_alias=$ac_optarg ;;
992
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
994
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
996
htmldir=$ac_optarg ;;
998
-includedir | --includedir | --includedi | --included | --include \
999
| --includ | --inclu | --incl | --inc)
1000
ac_prev=includedir ;;
1001
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1002
| --includ=* | --inclu=* | --incl=* | --inc=*)
1003
includedir=$ac_optarg ;;
1005
-infodir | --infodir | --infodi | --infod | --info | --inf)
1007
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1008
infodir=$ac_optarg ;;
1010
-libdir | --libdir | --libdi | --libd)
1012
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1013
libdir=$ac_optarg ;;
1015
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1016
| --libexe | --libex | --libe)
1017
ac_prev=libexecdir ;;
1018
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1019
| --libexe=* | --libex=* | --libe=*)
1020
libexecdir=$ac_optarg ;;
1022
-localedir | --localedir | --localedi | --localed | --locale)
1023
ac_prev=localedir ;;
1024
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1025
localedir=$ac_optarg ;;
1027
-localstatedir | --localstatedir | --localstatedi | --localstated \
1028
| --localstate | --localstat | --localsta | --localst | --locals)
1029
ac_prev=localstatedir ;;
1030
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1031
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1032
localstatedir=$ac_optarg ;;
1034
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1036
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1037
mandir=$ac_optarg ;;
1039
-nfp | --nfp | --nf)
1040
# Obsolete; use --without-fp.
1043
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1044
| --no-cr | --no-c | -n)
1047
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1048
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1051
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1052
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1053
| --oldin | --oldi | --old | --ol | --o)
1054
ac_prev=oldincludedir ;;
1055
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1056
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1057
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1058
oldincludedir=$ac_optarg ;;
1060
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1062
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1063
prefix=$ac_optarg ;;
1065
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1066
| --program-pre | --program-pr | --program-p)
1067
ac_prev=program_prefix ;;
1068
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1069
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1070
program_prefix=$ac_optarg ;;
1072
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1073
| --program-suf | --program-su | --program-s)
1074
ac_prev=program_suffix ;;
1075
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1076
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1077
program_suffix=$ac_optarg ;;
1079
-program-transform-name | --program-transform-name \
1080
| --program-transform-nam | --program-transform-na \
1081
| --program-transform-n | --program-transform- \
1082
| --program-transform | --program-transfor \
1083
| --program-transfo | --program-transf \
1084
| --program-trans | --program-tran \
1085
| --progr-tra | --program-tr | --program-t)
1086
ac_prev=program_transform_name ;;
1087
-program-transform-name=* | --program-transform-name=* \
1088
| --program-transform-nam=* | --program-transform-na=* \
1089
| --program-transform-n=* | --program-transform-=* \
1090
| --program-transform=* | --program-transfor=* \
1091
| --program-transfo=* | --program-transf=* \
1092
| --program-trans=* | --program-tran=* \
1093
| --progr-tra=* | --program-tr=* | --program-t=*)
1094
program_transform_name=$ac_optarg ;;
1096
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1098
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1099
pdfdir=$ac_optarg ;;
1101
-psdir | --psdir | --psdi | --psd | --ps)
1103
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1106
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1107
| -silent | --silent | --silen | --sile | --sil)
1110
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1112
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1114
sbindir=$ac_optarg ;;
1116
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1117
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1118
| --sharedst | --shareds | --shared | --share | --shar \
1120
ac_prev=sharedstatedir ;;
1121
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1122
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1123
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1125
sharedstatedir=$ac_optarg ;;
1127
-site | --site | --sit)
1129
-site=* | --site=* | --sit=*)
1132
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1134
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1135
srcdir=$ac_optarg ;;
1137
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1138
| --syscon | --sysco | --sysc | --sys | --sy)
1139
ac_prev=sysconfdir ;;
1140
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1141
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1142
sysconfdir=$ac_optarg ;;
1144
-target | --target | --targe | --targ | --tar | --ta | --t)
1145
ac_prev=target_alias ;;
1146
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1147
target_alias=$ac_optarg ;;
1149
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1152
-version | --version | --versio | --versi | --vers | -V)
1153
ac_init_version=: ;;
1156
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1157
# Reject names that are not valid shell variable names.
1158
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159
as_fn_error $? "invalid package name: $ac_useropt"
1160
ac_useropt_orig=$ac_useropt
1161
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162
case $ac_user_opts in
1166
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1167
ac_unrecognized_sep=', ';;
1169
eval with_$ac_useropt=\$ac_optarg ;;
1171
-without-* | --without-*)
1172
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1173
# Reject names that are not valid shell variable names.
1174
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175
as_fn_error $? "invalid package name: $ac_useropt"
1176
ac_useropt_orig=$ac_useropt
1177
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178
case $ac_user_opts in
1182
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1183
ac_unrecognized_sep=', ';;
1185
eval with_$ac_useropt=no ;;
1188
# Obsolete; use --with-x.
1191
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1192
| --x-incl | --x-inc | --x-in | --x-i)
1193
ac_prev=x_includes ;;
1194
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1195
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1196
x_includes=$ac_optarg ;;
1198
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1199
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1200
ac_prev=x_libraries ;;
1201
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1202
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1203
x_libraries=$ac_optarg ;;
1205
-*) as_fn_error $? "unrecognized option: \`$ac_option'
1206
Try \`$0 --help' for more information"
1210
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1211
# Reject names that are not valid shell variable names.
1212
case $ac_envvar in #(
1213
'' | [0-9]* | *[!_$as_cr_alnum]* )
1214
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1216
eval $ac_envvar=\$ac_optarg
1217
export $ac_envvar ;;
1220
# FIXME: should be removed in autoconf 3.0.
1221
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1222
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1224
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1230
if test -n "$ac_prev"; then
1231
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1232
as_fn_error $? "missing argument to $ac_option"
1235
if test -n "$ac_unrecognized_opts"; then
1236
case $enable_option_checking in
1238
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1239
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1243
# Check all directory arguments for consistency.
1244
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1245
datadir sysconfdir sharedstatedir localstatedir includedir \
1246
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1247
libdir localedir mandir
1249
eval ac_val=\$$ac_var
1250
# Remove trailing slashes.
1253
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1254
eval $ac_var=\$ac_val;;
1256
# Be sure to have absolute directory names.
1258
[\\/$]* | ?:[\\/]* ) continue;;
1259
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1261
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1264
# There might be people who depend on the old broken behavior: `$host'
1265
# used to hold the argument of --host etc.
1266
# FIXME: To remove some day.
1269
target=$target_alias
1271
# FIXME: To remove some day.
1272
if test "x$host_alias" != x; then
1273
if test "x$build_alias" = x; then
1274
cross_compiling=maybe
1275
$as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1276
If a cross compiler is detected then cross compile mode will be used" >&2
1277
elif test "x$build_alias" != "x$host_alias"; then
1283
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1285
test "$silent" = yes && exec 6>/dev/null
1288
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1289
ac_ls_di=`ls -di .` &&
1290
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1291
as_fn_error $? "working directory cannot be determined"
1292
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1293
as_fn_error $? "pwd does not report name of working directory"
1296
# Find the source files, if location was not specified.
1297
if test -z "$srcdir"; then
1298
ac_srcdir_defaulted=yes
1299
# Try the directory containing this script, then the parent directory.
1300
ac_confdir=`$as_dirname -- "$as_myself" ||
1301
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1302
X"$as_myself" : 'X\(//\)[^/]' \| \
1303
X"$as_myself" : 'X\(//\)$' \| \
1304
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1305
$as_echo X"$as_myself" |
1306
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1324
if test ! -r "$srcdir/$ac_unique_file"; then
1328
ac_srcdir_defaulted=no
1330
if test ! -r "$srcdir/$ac_unique_file"; then
1331
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1332
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1334
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1336
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1338
# When building in place, set srcdir=.
1339
if test "$ac_abs_confdir" = "$ac_pwd"; then
1342
# Remove unnecessary trailing slashes from srcdir.
1343
# Double slashes in file names in object file debugging info
1344
# mess up M-x gdb in Emacs.
1346
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1348
for ac_var in $ac_precious_vars; do
1349
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1350
eval ac_env_${ac_var}_value=\$${ac_var}
1351
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1352
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1356
# Report the --help message.
1358
if test "$ac_init_help" = "long"; then
1359
# Omit some internal or obsolete options to make the list less imposing.
1360
# This message is too long to be a string in the A/UX 3.1 sh.
1362
\`configure' configures indicator-power 0.1 to adapt to many kinds of systems.
1364
Usage: $0 [OPTION]... [VAR=VALUE]...
1366
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1367
VAR=VALUE. See below for descriptions of some of the useful variables.
1369
Defaults for the options are specified in brackets.
1372
-h, --help display this help and exit
1373
--help=short display options specific to this package
1374
--help=recursive display the short help of all the included packages
1375
-V, --version display version information and exit
1376
-q, --quiet, --silent do not print \`checking ...' messages
1377
--cache-file=FILE cache test results in FILE [disabled]
1378
-C, --config-cache alias for \`--cache-file=config.cache'
1379
-n, --no-create do not create output files
1380
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1382
Installation directories:
1383
--prefix=PREFIX install architecture-independent files in PREFIX
1384
[$ac_default_prefix]
1385
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1388
By default, \`make install' will install all the files in
1389
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1390
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1391
for instance \`--prefix=\$HOME'.
1393
For better control, use the options below.
1395
Fine tuning of the installation directories:
1396
--bindir=DIR user executables [EPREFIX/bin]
1397
--sbindir=DIR system admin executables [EPREFIX/sbin]
1398
--libexecdir=DIR program executables [EPREFIX/libexec]
1399
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1400
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1401
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1402
--libdir=DIR object code libraries [EPREFIX/lib]
1403
--includedir=DIR C header files [PREFIX/include]
1404
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1405
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1406
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1407
--infodir=DIR info documentation [DATAROOTDIR/info]
1408
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1409
--mandir=DIR man documentation [DATAROOTDIR/man]
1410
--docdir=DIR documentation root [DATAROOTDIR/doc/indicator-power]
1411
--htmldir=DIR html documentation [DOCDIR]
1412
--dvidir=DIR dvi documentation [DOCDIR]
1413
--pdfdir=DIR pdf documentation [DOCDIR]
1414
--psdir=DIR ps documentation [DOCDIR]
1420
--program-prefix=PREFIX prepend PREFIX to installed program names
1421
--program-suffix=SUFFIX append SUFFIX to installed program names
1422
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1425
--build=BUILD configure for building on BUILD [guessed]
1426
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1430
if test -n "$ac_init_help"; then
1431
case $ac_init_help in
1432
short | recursive ) echo "Configuration of indicator-power 0.1:";;
1437
--disable-option-checking ignore unrecognized --enable/--with options
1438
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1439
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1440
--disable-maintainer-mode disable make rules and dependencies not useful
1441
(and sometimes confusing) to the casual installer
1442
--enable-silent-rules less verbose build output (undo: `make V=1')
1443
--disable-silent-rules verbose build output (undo: `make V=0')
1444
--disable-dependency-tracking speeds up one-time build
1445
--enable-dependency-tracking do not reject slow dependency extractors
1446
--enable-shared[=PKGS] build shared libraries [default=yes]
1447
--enable-static[=PKGS] build static libraries [default=yes]
1448
--enable-fast-install[=PKGS]
1449
optimize for fast installation [default=yes]
1450
--disable-libtool-lock avoid locking (might break parallel builds)
1451
--enable-localinstall install all of the files localy instead of system
1452
directories (for distcheck)
1453
--disable-nls do not use Native Language Support
1454
--disable-rpath do not hardcode runtime library paths
1457
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1458
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1459
--with-pic try to use only PIC/non-PIC objects [default=use
1461
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1462
--with-sysroot=DIR Search for dependent libraries within DIR
1463
(or the compiler's sysroot if not specified).
1464
--with-gnu-ld assume the C compiler uses GNU ld default=no
1465
--with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1466
--without-libiconv-prefix don't search for libiconv in includedir and libdir
1467
--with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1468
--without-libintl-prefix don't search for libintl in includedir and libdir
1470
Some influential environment variables:
1471
CC C compiler command
1472
CFLAGS C compiler flags
1473
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1474
nonstandard directory <lib dir>
1475
LIBS libraries to pass to the linker, e.g. -l<library>
1476
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1477
you have headers in a nonstandard directory <include dir>
1479
PKG_CONFIG path to pkg-config utility
1481
directories to add to pkg-config's search path
1483
path overriding pkg-config's built-in search path
1485
C compiler flags for UPOWER, overriding pkg-config
1486
UPOWER_LIBS linker flags for UPOWER, overriding pkg-config
1488
C compiler flags for INDICATOR, overriding pkg-config
1490
linker flags for INDICATOR, overriding pkg-config
1492
Use these variables to override the choices made by `configure' or to help
1493
it to find libraries and programs with nonstandard names/locations.
1495
Report bugs to <http://bugs.launchpad.net/indicator-power>.
1496
indicator-power home page: <http://launchpad.net/indicator-power>.
1501
if test "$ac_init_help" = "recursive"; then
1502
# If there are subdirs, report their specific --help.
1503
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1504
test -d "$ac_dir" ||
1505
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1510
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1512
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1513
# A ".." for each directory in $ac_dir_suffix.
1514
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1515
case $ac_top_builddir_sub in
1516
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1517
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1520
ac_abs_top_builddir=$ac_pwd
1521
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1522
# for backward compatibility:
1523
ac_top_builddir=$ac_top_build_prefix
1526
.) # We are building in place.
1528
ac_top_srcdir=$ac_top_builddir_sub
1529
ac_abs_top_srcdir=$ac_pwd ;;
1530
[\\/]* | ?:[\\/]* ) # Absolute name.
1531
ac_srcdir=$srcdir$ac_dir_suffix;
1532
ac_top_srcdir=$srcdir
1533
ac_abs_top_srcdir=$srcdir ;;
1535
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1536
ac_top_srcdir=$ac_top_build_prefix$srcdir
1537
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1539
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1541
cd "$ac_dir" || { ac_status=$?; continue; }
1542
# Check for guested configure.
1543
if test -f "$ac_srcdir/configure.gnu"; then
1545
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1546
elif test -f "$ac_srcdir/configure"; then
1548
$SHELL "$ac_srcdir/configure" --help=recursive
1550
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1552
cd "$ac_pwd" || { ac_status=$?; break; }
1556
test -n "$ac_init_help" && exit $ac_status
1557
if $ac_init_version; then
1559
indicator-power configure 0.1
1560
generated by GNU Autoconf 2.68
1562
Copyright (C) 2010 Free Software Foundation, Inc.
1563
This configure script is free software; the Free Software Foundation
1564
gives unlimited permission to copy, distribute and modify it.
1569
## ------------------------ ##
1570
## Autoconf initialization. ##
1571
## ------------------------ ##
1573
# ac_fn_c_try_compile LINENO
1574
# --------------------------
1575
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1576
ac_fn_c_try_compile ()
1578
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1579
rm -f conftest.$ac_objext
1580
if { { ac_try="$ac_compile"
1582
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1583
*) ac_try_echo=$ac_try;;
1585
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1586
$as_echo "$ac_try_echo"; } >&5
1587
(eval "$ac_compile") 2>conftest.err
1589
if test -s conftest.err; then
1590
grep -v '^ *+' conftest.err >conftest.er1
1591
cat conftest.er1 >&5
1592
mv -f conftest.er1 conftest.err
1594
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1595
test $ac_status = 0; } && {
1596
test -z "$ac_c_werror_flag" ||
1597
test ! -s conftest.err
1598
} && test -s conftest.$ac_objext; then :
1601
$as_echo "$as_me: failed program was:" >&5
1602
sed 's/^/| /' conftest.$ac_ext >&5
1606
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607
as_fn_set_status $ac_retval
1609
} # ac_fn_c_try_compile
1611
# ac_fn_c_try_link LINENO
1612
# -----------------------
1613
# Try to link conftest.$ac_ext, and return whether this succeeded.
1616
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1617
rm -f conftest.$ac_objext conftest$ac_exeext
1618
if { { ac_try="$ac_link"
1620
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1621
*) ac_try_echo=$ac_try;;
1623
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1624
$as_echo "$ac_try_echo"; } >&5
1625
(eval "$ac_link") 2>conftest.err
1627
if test -s conftest.err; then
1628
grep -v '^ *+' conftest.err >conftest.er1
1629
cat conftest.er1 >&5
1630
mv -f conftest.er1 conftest.err
1632
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1633
test $ac_status = 0; } && {
1634
test -z "$ac_c_werror_flag" ||
1635
test ! -s conftest.err
1636
} && test -s conftest$ac_exeext && {
1637
test "$cross_compiling" = yes ||
1638
$as_test_x conftest$ac_exeext
1642
$as_echo "$as_me: failed program was:" >&5
1643
sed 's/^/| /' conftest.$ac_ext >&5
1647
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1648
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1649
# interfere with the next link command; also delete a directory that is
1650
# left behind by Apple's compiler. We do this before executing the actions.
1651
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1652
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653
as_fn_set_status $ac_retval
1655
} # ac_fn_c_try_link
1657
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1658
# -------------------------------------------------------
1659
# Tests whether HEADER exists and can be compiled using the include files in
1660
# INCLUDES, setting the cache variable VAR accordingly.
1661
ac_fn_c_check_header_compile ()
1663
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1665
$as_echo_n "checking for $2... " >&6; }
1666
if eval \${$3+:} false; then :
1667
$as_echo_n "(cached) " >&6
1669
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670
/* end confdefs.h. */
1674
if ac_fn_c_try_compile "$LINENO"; then :
1679
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1682
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683
$as_echo "$ac_res" >&6; }
1684
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686
} # ac_fn_c_check_header_compile
1688
# ac_fn_c_try_cpp LINENO
1689
# ----------------------
1690
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1693
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1694
if { { ac_try="$ac_cpp conftest.$ac_ext"
1696
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697
*) ac_try_echo=$ac_try;;
1699
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700
$as_echo "$ac_try_echo"; } >&5
1701
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1703
if test -s conftest.err; then
1704
grep -v '^ *+' conftest.err >conftest.er1
1705
cat conftest.er1 >&5
1706
mv -f conftest.er1 conftest.err
1708
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709
test $ac_status = 0; } > conftest.i && {
1710
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1711
test ! -s conftest.err
1715
$as_echo "$as_me: failed program was:" >&5
1716
sed 's/^/| /' conftest.$ac_ext >&5
1720
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1721
as_fn_set_status $ac_retval
1725
# ac_fn_c_try_run LINENO
1726
# ----------------------
1727
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1728
# that executables *can* be run.
1731
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732
if { { ac_try="$ac_link"
1734
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735
*) ac_try_echo=$ac_try;;
1737
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738
$as_echo "$ac_try_echo"; } >&5
1739
(eval "$ac_link") 2>&5
1741
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1743
{ { case "(($ac_try" in
1744
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745
*) ac_try_echo=$ac_try;;
1747
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748
$as_echo "$ac_try_echo"; } >&5
1749
(eval "$ac_try") 2>&5
1751
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1752
test $ac_status = 0; }; }; then :
1755
$as_echo "$as_me: program exited with status $ac_status" >&5
1756
$as_echo "$as_me: failed program was:" >&5
1757
sed 's/^/| /' conftest.$ac_ext >&5
1759
ac_retval=$ac_status
1761
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1762
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1763
as_fn_set_status $ac_retval
1767
# ac_fn_c_check_func LINENO FUNC VAR
1768
# ----------------------------------
1769
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1770
ac_fn_c_check_func ()
1772
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774
$as_echo_n "checking for $2... " >&6; }
1775
if eval \${$3+:} false; then :
1776
$as_echo_n "(cached) " >&6
1778
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779
/* end confdefs.h. */
1780
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1781
For example, HP-UX 11i <limits.h> declares gettimeofday. */
1782
#define $2 innocuous_$2
1784
/* System header to define __stub macros and hopefully few prototypes,
1785
which can conflict with char $2 (); below.
1786
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1787
<limits.h> exists even on freestanding compilers. */
1790
# include <limits.h>
1792
# include <assert.h>
1797
/* Override any GCC internal prototype to avoid an error.
1798
Use char because int might match the return type of a GCC
1799
builtin and then its argument prototype would still apply. */
1804
/* The GNU C library defines this for functions which it implements
1805
to always fail with ENOSYS. Some functions are actually named
1806
something starting with __ and the normal name is an alias. */
1807
#if defined __stub_$2 || defined __stub___$2
1819
if ac_fn_c_try_link "$LINENO"; then :
1824
rm -f core conftest.err conftest.$ac_objext \
1825
conftest$ac_exeext 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_func
1833
cat >config.log <<_ACEOF
1834
This file contains any messages produced by compilers while
1835
running configure, to aid debugging if configure makes a mistake.
1837
It was created by indicator-power $as_me 0.1, which was
1838
generated by GNU Autoconf 2.68. Invocation command line was
1850
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1851
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1852
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1853
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1854
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1856
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1857
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1859
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1860
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1861
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1862
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1863
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1864
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1865
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1869
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1873
test -z "$as_dir" && as_dir=.
1874
$as_echo "PATH: $as_dir"
1890
# Keep a trace of the command line.
1891
# Strip out --no-create and --no-recursion so they do not pile up.
1892
# Strip out --silent because we don't want to record it for future runs.
1893
# Also quote any args containing shell meta-characters.
1894
# Make two passes to allow for proper duplicate-argument suppression.
1898
ac_must_keep_next=false
1904
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1905
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1906
| -silent | --silent | --silen | --sile | --sil)
1909
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1912
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1914
as_fn_append ac_configure_args1 " '$ac_arg'"
1915
if test $ac_must_keep_next = true; then
1916
ac_must_keep_next=false # Got value, back to normal.
1919
*=* | --config-cache | -C | -disable-* | --disable-* \
1920
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1921
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1922
| -with-* | --with-* | -without-* | --without-* | --x)
1923
case "$ac_configure_args0 " in
1924
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1927
-* ) ac_must_keep_next=true ;;
1930
as_fn_append ac_configure_args " '$ac_arg'"
1935
{ ac_configure_args0=; unset ac_configure_args0;}
1936
{ ac_configure_args1=; unset ac_configure_args1;}
1938
# When interrupted or exit'd, cleanup temporary files, and complete
1939
# config.log. We remove comments because anyway the quotes in there
1940
# would cause problems or look ugly.
1941
# WARNING: Use '\'' to represent an apostrophe within the trap.
1942
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1943
trap 'exit_status=$?
1944
# Save into config.log some information that might help in debugging.
1948
$as_echo "## ---------------- ##
1949
## Cache variables. ##
1950
## ---------------- ##"
1952
# The following way of writing the cache mishandles newlines in values,
1954
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1955
eval ac_val=\$$ac_var
1959
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1960
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1963
_ | IFS | as_nl) ;; #(
1964
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1965
*) { eval $ac_var=; unset $ac_var;} ;;
1970
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1971
*${as_nl}ac_space=\ *)
1973
"s/'\''/'\''\\\\'\'''\''/g;
1974
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1977
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1984
$as_echo "## ----------------- ##
1985
## Output variables. ##
1986
## ----------------- ##"
1988
for ac_var in $ac_subst_vars
1990
eval ac_val=\$$ac_var
1992
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1994
$as_echo "$ac_var='\''$ac_val'\''"
1998
if test -n "$ac_subst_files"; then
1999
$as_echo "## ------------------- ##
2000
## File substitutions. ##
2001
## ------------------- ##"
2003
for ac_var in $ac_subst_files
2005
eval ac_val=\$$ac_var
2007
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2009
$as_echo "$ac_var='\''$ac_val'\''"
2014
if test -s confdefs.h; then
2015
$as_echo "## ----------- ##
2022
test "$ac_signal" != 0 &&
2023
$as_echo "$as_me: caught signal $ac_signal"
2024
$as_echo "$as_me: exit $exit_status"
2026
rm -f core *.core core.conftest.* &&
2027
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2030
for ac_signal in 1 2 13 15; do
2031
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2035
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2036
rm -f -r conftest* confdefs.h
2038
$as_echo "/* confdefs.h */" > confdefs.h
2040
# Predefined preprocessor variables.
2042
cat >>confdefs.h <<_ACEOF
2043
#define PACKAGE_NAME "$PACKAGE_NAME"
2046
cat >>confdefs.h <<_ACEOF
2047
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2050
cat >>confdefs.h <<_ACEOF
2051
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2054
cat >>confdefs.h <<_ACEOF
2055
#define PACKAGE_STRING "$PACKAGE_STRING"
2058
cat >>confdefs.h <<_ACEOF
2059
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2062
cat >>confdefs.h <<_ACEOF
2063
#define PACKAGE_URL "$PACKAGE_URL"
2067
# Let the site file select an alternate cache file if it wants to.
2068
# Prefer an explicitly selected file to automatically selected ones.
2071
if test -n "$CONFIG_SITE"; then
2072
# We do not want a PATH search for config.site.
2073
case $CONFIG_SITE in #((
2074
-*) ac_site_file1=./$CONFIG_SITE;;
2075
*/*) ac_site_file1=$CONFIG_SITE;;
2076
*) ac_site_file1=./$CONFIG_SITE;;
2078
elif test "x$prefix" != xNONE; then
2079
ac_site_file1=$prefix/share/config.site
2080
ac_site_file2=$prefix/etc/config.site
2082
ac_site_file1=$ac_default_prefix/share/config.site
2083
ac_site_file2=$ac_default_prefix/etc/config.site
2085
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2087
test "x$ac_site_file" = xNONE && continue
2088
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2089
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2090
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2091
sed 's/^/| /' "$ac_site_file" >&5
2093
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2094
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2095
as_fn_error $? "failed to load site script $ac_site_file
2096
See \`config.log' for more details" "$LINENO" 5; }
2100
if test -r "$cache_file"; then
2101
# Some versions of bash will fail to source /dev/null (special files
2102
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
2103
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2104
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2105
$as_echo "$as_me: loading cache $cache_file" >&6;}
2107
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2108
*) . "./$cache_file";;
2112
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2113
$as_echo "$as_me: creating cache $cache_file" >&6;}
2117
gt_needs="$gt_needs "
2118
# Check that the precious variables saved in the cache have kept the same
2120
ac_cache_corrupted=false
2121
for ac_var in $ac_precious_vars; do
2122
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2123
eval ac_new_set=\$ac_env_${ac_var}_set
2124
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2125
eval ac_new_val=\$ac_env_${ac_var}_value
2126
case $ac_old_set,$ac_new_set in
2128
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2129
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2130
ac_cache_corrupted=: ;;
2132
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2133
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2134
ac_cache_corrupted=: ;;
2137
if test "x$ac_old_val" != "x$ac_new_val"; then
2138
# differences in whitespace do not lead to failure.
2139
ac_old_val_w=`echo x $ac_old_val`
2140
ac_new_val_w=`echo x $ac_new_val`
2141
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2142
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2143
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2144
ac_cache_corrupted=:
2146
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2147
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2148
eval $ac_var=\$ac_old_val
2150
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2151
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2152
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2153
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2156
# Pass precious variables to config.status.
2157
if test "$ac_new_set" = set; then
2159
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2160
*) ac_arg=$ac_var=$ac_new_val ;;
2162
case " $ac_configure_args " in
2163
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2164
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2168
if $ac_cache_corrupted; then
2169
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2170
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2171
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2172
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2173
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2175
## -------------------- ##
2176
## Main body of script. ##
2177
## -------------------- ##
2180
ac_cpp='$CPP $CPPFLAGS'
2181
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2182
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2183
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2189
ac_config_headers="$ac_config_headers config.h"
2194
for ac_dir in build-aux "$srcdir"/build-aux; do
2195
if test -f "$ac_dir/install-sh"; then
2197
ac_install_sh="$ac_aux_dir/install-sh -c"
2199
elif test -f "$ac_dir/install.sh"; then
2201
ac_install_sh="$ac_aux_dir/install.sh -c"
2203
elif test -f "$ac_dir/shtool"; then
2205
ac_install_sh="$ac_aux_dir/shtool install -c"
2209
if test -z "$ac_aux_dir"; then
2210
as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2213
# These three variables are undocumented and unsupported,
2214
# and are intended to be withdrawn in a future Autoconf release.
2215
# They can cause serious problems if a builder's source tree is in a directory
2216
# whose full name contains unusual characters.
2217
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2218
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2219
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2223
am__api_version='1.11'
2225
# Find a good install program. We prefer a C program (faster),
2226
# so one script is as good as another. But avoid the broken or
2227
# incompatible versions:
2228
# SysV /etc/install, /usr/sbin/install
2229
# SunOS /usr/etc/install
2230
# IRIX /sbin/install
2232
# AmigaOS /C/install, which installs bootblocks on floppy discs
2233
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2234
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2235
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2236
# OS/2's system install, which has a completely different semantic
2237
# ./install, which can be erroneously created by make from ./install.sh.
2238
# Reject install programs that cannot install multiple files.
2239
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2240
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2241
if test -z "$INSTALL"; then
2242
if ${ac_cv_path_install+:} false; then :
2243
$as_echo_n "(cached) " >&6
2245
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249
test -z "$as_dir" && as_dir=.
2250
# Account for people who put trailing slashes in PATH elements.
2251
case $as_dir/ in #((
2252
./ | .// | /[cC]/* | \
2253
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2254
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2257
# OSF1 and SCO ODT 3.0 have their own names for install.
2258
# Don't use installbsd from OSF since it installs stuff as root
2260
for ac_prog in ginstall scoinst install; do
2261
for ac_exec_ext in '' $ac_executable_extensions; do
2262
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2263
if test $ac_prog = install &&
2264
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2265
# AIX install. It has an incompatible calling convention.
2267
elif test $ac_prog = install &&
2268
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2269
# program-specific install script used by HP pwplus--don't use.
2272
rm -rf conftest.one conftest.two conftest.dir
2273
echo one > conftest.one
2274
echo two > conftest.two
2276
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2277
test -s conftest.one && test -s conftest.two &&
2278
test -s conftest.dir/conftest.one &&
2279
test -s conftest.dir/conftest.two
2281
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2294
rm -rf conftest.one conftest.two conftest.dir
2297
if test "${ac_cv_path_install+set}" = set; then
2298
INSTALL=$ac_cv_path_install
2300
# As a last resort, use the slow shell script. Don't cache a
2301
# value for INSTALL within a source directory, because that will
2302
# break other packages using the cache if that directory is
2303
# removed, or if the value is a relative name.
2304
INSTALL=$ac_install_sh
2307
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2308
$as_echo "$INSTALL" >&6; }
2310
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2311
# It thinks the first close brace ends the variable substitution.
2312
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2314
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2316
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2318
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2319
$as_echo_n "checking whether build environment is sane... " >&6; }
2322
echo timestamp > conftest.file
2323
# Reject unsafe characters in $srcdir or the absolute working directory
2324
# name. Accept space and tab only in the latter.
2328
*[\\\"\#\$\&\'\`$am_lf]*)
2329
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2332
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2333
as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2336
# Do `set' in a subshell so we don't clobber the current shell's
2337
# arguments. Must try -L first in case configure is actually a
2338
# symlink; some systems play weird games with the mod time of symlinks
2339
# (eg FreeBSD returns the mod time of the symlink's containing
2342
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2343
if test "$*" = "X"; then
2345
set X `ls -t "$srcdir/configure" conftest.file`
2348
if test "$*" != "X $srcdir/configure conftest.file" \
2349
&& test "$*" != "X conftest.file $srcdir/configure"; then
2351
# If neither matched, then we have a broken ls. This can happen
2352
# if, for instance, CONFIG_SHELL is bash and it inherits a
2353
# broken ls alias from the environment. This has actually
2354
# happened. Such a system could not be considered "sane".
2355
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2356
alias in your environment" "$LINENO" 5
2359
test "$2" = conftest.file
2365
as_fn_error $? "newly created file is older than distributed files!
2366
Check your system clock" "$LINENO" 5
2368
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2369
$as_echo "yes" >&6; }
2370
test "$program_prefix" != NONE &&
2371
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2372
# Use a double $ so make ignores it.
2373
test "$program_suffix" != NONE &&
2374
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2375
# Double any \ or $.
2376
# By default was `s,x,x', remove it if useless.
2377
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2378
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2380
# expand $ac_aux_dir to an absolute path
2381
am_aux_dir=`cd $ac_aux_dir && pwd`
2383
if test x"${MISSING+set}" != xset; then
2386
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2388
MISSING="\${SHELL} $am_aux_dir/missing" ;;
2391
# Use eval to expand $SHELL
2392
if eval "$MISSING --run true"; then
2393
am_missing_run="$MISSING --run "
2396
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2397
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2400
if test x"${install_sh}" != xset; then
2403
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2405
install_sh="\${SHELL} $am_aux_dir/install-sh"
2409
# Installed binaries are usually stripped using `strip' when the user
2410
# run `make install-strip'. However `strip' might not be the right
2411
# tool to use in cross-compilation environments, therefore Automake
2412
# will honor the `STRIP' environment variable to overrule this program.
2413
if test "$cross_compiling" != no; then
2414
if test -n "$ac_tool_prefix"; then
2415
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2416
set dummy ${ac_tool_prefix}strip; ac_word=$2
2417
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2418
$as_echo_n "checking for $ac_word... " >&6; }
2419
if ${ac_cv_prog_STRIP+:} false; then :
2420
$as_echo_n "(cached) " >&6
2422
if test -n "$STRIP"; then
2423
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2425
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429
test -z "$as_dir" && as_dir=.
2430
for ac_exec_ext in '' $ac_executable_extensions; do
2431
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2432
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2433
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2442
STRIP=$ac_cv_prog_STRIP
2443
if test -n "$STRIP"; then
2444
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2445
$as_echo "$STRIP" >&6; }
2447
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2448
$as_echo "no" >&6; }
2453
if test -z "$ac_cv_prog_STRIP"; then
2455
# Extract the first word of "strip", so it can be a program name with args.
2456
set dummy strip; ac_word=$2
2457
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2458
$as_echo_n "checking for $ac_word... " >&6; }
2459
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2460
$as_echo_n "(cached) " >&6
2462
if test -n "$ac_ct_STRIP"; then
2463
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2465
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2469
test -z "$as_dir" && as_dir=.
2470
for ac_exec_ext in '' $ac_executable_extensions; do
2471
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2472
ac_cv_prog_ac_ct_STRIP="strip"
2473
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2482
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2483
if test -n "$ac_ct_STRIP"; then
2484
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2485
$as_echo "$ac_ct_STRIP" >&6; }
2487
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2488
$as_echo "no" >&6; }
2491
if test "x$ac_ct_STRIP" = x; then
2494
case $cross_compiling:$ac_tool_warned in
2496
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2497
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2498
ac_tool_warned=yes ;;
2503
STRIP="$ac_cv_prog_STRIP"
2507
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2509
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2510
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2511
if test -z "$MKDIR_P"; then
2512
if ${ac_cv_path_mkdir+:} false; then :
2513
$as_echo_n "(cached) " >&6
2515
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2519
test -z "$as_dir" && as_dir=.
2520
for ac_prog in mkdir gmkdir; do
2521
for ac_exec_ext in '' $ac_executable_extensions; do
2522
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2523
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2524
'mkdir (GNU coreutils) '* | \
2525
'mkdir (coreutils) '* | \
2526
'mkdir (fileutils) '4.1*)
2527
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2537
test -d ./--version && rmdir ./--version
2538
if test "${ac_cv_path_mkdir+set}" = set; then
2539
MKDIR_P="$ac_cv_path_mkdir -p"
2541
# As a last resort, use the slow shell script. Don't cache a
2542
# value for MKDIR_P within a source directory, because that will
2543
# break other packages using the cache if that directory is
2544
# removed, or if the value is a relative name.
2545
MKDIR_P="$ac_install_sh -d"
2548
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2549
$as_echo "$MKDIR_P" >&6; }
2553
[\\/$]* | ?:[\\/]*) ;;
2554
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2557
for ac_prog in gawk mawk nawk awk
2559
# Extract the first word of "$ac_prog", so it can be a program name with args.
2560
set dummy $ac_prog; ac_word=$2
2561
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2562
$as_echo_n "checking for $ac_word... " >&6; }
2563
if ${ac_cv_prog_AWK+:} false; then :
2564
$as_echo_n "(cached) " >&6
2566
if test -n "$AWK"; then
2567
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2569
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2573
test -z "$as_dir" && as_dir=.
2574
for ac_exec_ext in '' $ac_executable_extensions; do
2575
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2576
ac_cv_prog_AWK="$ac_prog"
2577
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2587
if test -n "$AWK"; then
2588
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2589
$as_echo "$AWK" >&6; }
2591
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2592
$as_echo "no" >&6; }
2596
test -n "$AWK" && break
2599
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2600
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2602
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2603
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2604
$as_echo_n "(cached) " >&6
2606
cat >conftest.make <<\_ACEOF
2609
@echo '@@@%%%=$(MAKE)=@@@%%%'
2611
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2612
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2614
eval ac_cv_prog_make_${ac_make}_set=yes;;
2616
eval ac_cv_prog_make_${ac_make}_set=no;;
2620
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2621
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2622
$as_echo "yes" >&6; }
2625
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2626
$as_echo "no" >&6; }
2627
SET_MAKE="MAKE=${MAKE-make}"
2630
rm -rf .tst 2>/dev/null
2631
mkdir .tst 2>/dev/null
2632
if test -d .tst; then
2637
rmdir .tst 2>/dev/null
2639
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2640
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2641
# is not polluted with repeated "-I."
2642
am__isrc=' -I$(srcdir)'
2643
# test to see if srcdir already configured
2644
if test -f $srcdir/config.status; then
2645
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2649
# test whether we have cygpath
2650
if test -z "$CYGPATH_W"; then
2651
if (cygpath --version) >/dev/null 2>/dev/null; then
2652
CYGPATH_W='cygpath -w'
2659
# Define the identity of the package.
2660
PACKAGE='indicator-power'
2664
cat >>confdefs.h <<_ACEOF
2665
#define PACKAGE "$PACKAGE"
2669
cat >>confdefs.h <<_ACEOF
2670
#define VERSION "$VERSION"
2673
# Some tools Automake needs.
2675
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2678
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2681
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2684
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2687
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2689
# We need awk for the "check" target. The system "awk" is bad on
2691
# Always define AMTAR for backward compatibility.
2693
AMTAR=${AMTAR-"${am_missing_run}tar"}
2695
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2702
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable maintainer-specific portions of Makefiles" >&5
2703
$as_echo_n "checking whether to disable maintainer-specific portions of Makefiles... " >&6; }
2704
# Check whether --enable-maintainer-mode was given.
2705
if test "${enable_maintainer_mode+set}" = set; then :
2706
enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2708
USE_MAINTAINER_MODE=yes
2711
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2712
$as_echo "$USE_MAINTAINER_MODE" >&6; }
2713
if test $USE_MAINTAINER_MODE = yes; then
2714
MAINTAINER_MODE_TRUE=
2715
MAINTAINER_MODE_FALSE='#'
2717
MAINTAINER_MODE_TRUE='#'
2718
MAINTAINER_MODE_FALSE=
2721
MAINT=$MAINTAINER_MODE_TRUE
2725
# Check whether --enable-silent-rules was given.
2726
if test "${enable_silent_rules+set}" = set; then :
2727
enableval=$enable_silent_rules;
2730
case $enable_silent_rules in
2731
yes) AM_DEFAULT_VERBOSITY=0;;
2732
no) AM_DEFAULT_VERBOSITY=1;;
2733
*) AM_DEFAULT_VERBOSITY=0;;
2738
# Check for programs
2740
ac_cpp='$CPP $CPPFLAGS'
2741
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2742
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2743
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2744
if test -n "$ac_tool_prefix"; then
2745
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2746
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2747
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2748
$as_echo_n "checking for $ac_word... " >&6; }
2749
if ${ac_cv_prog_CC+:} false; then :
2750
$as_echo_n "(cached) " >&6
2752
if test -n "$CC"; then
2753
ac_cv_prog_CC="$CC" # Let the user override the test.
2755
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2759
test -z "$as_dir" && as_dir=.
2760
for ac_exec_ext in '' $ac_executable_extensions; do
2761
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2762
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2763
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2773
if test -n "$CC"; then
2774
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2775
$as_echo "$CC" >&6; }
2777
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2778
$as_echo "no" >&6; }
2783
if test -z "$ac_cv_prog_CC"; then
2785
# Extract the first word of "gcc", so it can be a program name with args.
2786
set dummy gcc; ac_word=$2
2787
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2788
$as_echo_n "checking for $ac_word... " >&6; }
2789
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2790
$as_echo_n "(cached) " >&6
2792
if test -n "$ac_ct_CC"; then
2793
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2795
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799
test -z "$as_dir" && as_dir=.
2800
for ac_exec_ext in '' $ac_executable_extensions; do
2801
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2802
ac_cv_prog_ac_ct_CC="gcc"
2803
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2812
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2813
if test -n "$ac_ct_CC"; then
2814
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2815
$as_echo "$ac_ct_CC" >&6; }
2817
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2818
$as_echo "no" >&6; }
2821
if test "x$ac_ct_CC" = x; then
2824
case $cross_compiling:$ac_tool_warned in
2826
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2827
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2828
ac_tool_warned=yes ;;
2836
if test -z "$CC"; then
2837
if test -n "$ac_tool_prefix"; then
2838
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2839
set dummy ${ac_tool_prefix}cc; ac_word=$2
2840
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2841
$as_echo_n "checking for $ac_word... " >&6; }
2842
if ${ac_cv_prog_CC+:} false; then :
2843
$as_echo_n "(cached) " >&6
2845
if test -n "$CC"; then
2846
ac_cv_prog_CC="$CC" # Let the user override the test.
2848
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852
test -z "$as_dir" && as_dir=.
2853
for ac_exec_ext in '' $ac_executable_extensions; do
2854
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2855
ac_cv_prog_CC="${ac_tool_prefix}cc"
2856
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2866
if test -n "$CC"; then
2867
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2868
$as_echo "$CC" >&6; }
2870
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871
$as_echo "no" >&6; }
2877
if test -z "$CC"; then
2878
# Extract the first word of "cc", so it can be a program name with args.
2879
set dummy cc; ac_word=$2
2880
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2881
$as_echo_n "checking for $ac_word... " >&6; }
2882
if ${ac_cv_prog_CC+:} false; then :
2883
$as_echo_n "(cached) " >&6
2885
if test -n "$CC"; then
2886
ac_cv_prog_CC="$CC" # Let the user override the test.
2889
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893
test -z "$as_dir" && as_dir=.
2894
for ac_exec_ext in '' $ac_executable_extensions; do
2895
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2896
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2897
ac_prog_rejected=yes
2901
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2908
if test $ac_prog_rejected = yes; then
2909
# We found a bogon in the path, so make sure we never use it.
2910
set dummy $ac_cv_prog_CC
2912
if test $# != 0; then
2913
# We chose a different compiler from the bogus one.
2914
# However, it has the same basename, so the bogon will be chosen
2915
# first if we set CC to just the basename; use the full file name.
2917
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2923
if test -n "$CC"; then
2924
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2925
$as_echo "$CC" >&6; }
2927
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928
$as_echo "no" >&6; }
2933
if test -z "$CC"; then
2934
if test -n "$ac_tool_prefix"; then
2935
for ac_prog in cl.exe
2937
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2938
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2939
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2940
$as_echo_n "checking for $ac_word... " >&6; }
2941
if ${ac_cv_prog_CC+:} false; then :
2942
$as_echo_n "(cached) " >&6
2944
if test -n "$CC"; then
2945
ac_cv_prog_CC="$CC" # Let the user override the test.
2947
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2951
test -z "$as_dir" && as_dir=.
2952
for ac_exec_ext in '' $ac_executable_extensions; do
2953
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2954
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2955
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2965
if test -n "$CC"; then
2966
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2967
$as_echo "$CC" >&6; }
2969
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970
$as_echo "no" >&6; }
2974
test -n "$CC" && break
2977
if test -z "$CC"; then
2979
for ac_prog in cl.exe
2981
# Extract the first word of "$ac_prog", so it can be a program name with args.
2982
set dummy $ac_prog; ac_word=$2
2983
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984
$as_echo_n "checking for $ac_word... " >&6; }
2985
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2986
$as_echo_n "(cached) " >&6
2988
if test -n "$ac_ct_CC"; then
2989
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2991
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995
test -z "$as_dir" && as_dir=.
2996
for ac_exec_ext in '' $ac_executable_extensions; do
2997
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2998
ac_cv_prog_ac_ct_CC="$ac_prog"
2999
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3008
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3009
if test -n "$ac_ct_CC"; then
3010
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3011
$as_echo "$ac_ct_CC" >&6; }
3013
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3014
$as_echo "no" >&6; }
3018
test -n "$ac_ct_CC" && break
3021
if test "x$ac_ct_CC" = x; then
3024
case $cross_compiling:$ac_tool_warned in
3026
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3027
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3028
ac_tool_warned=yes ;;
3037
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3038
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3039
as_fn_error $? "no acceptable C compiler found in \$PATH
3040
See \`config.log' for more details" "$LINENO" 5; }
3042
# Provide some information about the compiler.
3043
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3046
for ac_option in --version -v -V -qversion; do
3047
{ { ac_try="$ac_compiler $ac_option >&5"
3049
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050
*) ac_try_echo=$ac_try;;
3052
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3053
$as_echo "$ac_try_echo"; } >&5
3054
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3056
if test -s conftest.err; then
3058
... rest of stderr output deleted ...
3059
10q' conftest.err >conftest.er1
3060
cat conftest.er1 >&5
3062
rm -f conftest.er1 conftest.err
3063
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3064
test $ac_status = 0; }
3067
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3068
/* end confdefs.h. */
3078
ac_clean_files_save=$ac_clean_files
3079
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3080
# Try to create an executable without -o first, disregard a.out.
3081
# It will help us diagnose broken compilers, and finding out an intuition
3083
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3084
$as_echo_n "checking whether the C compiler works... " >&6; }
3085
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3087
# The possible output files:
3088
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3091
for ac_file in $ac_files
3094
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3095
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3100
if { { ac_try="$ac_link_default"
3102
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103
*) ac_try_echo=$ac_try;;
3105
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3106
$as_echo "$ac_try_echo"; } >&5
3107
(eval "$ac_link_default") 2>&5
3109
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3110
test $ac_status = 0; }; then :
3111
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3112
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3113
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3114
# so that the user can short-circuit this test for compilers unknown to
3116
for ac_file in $ac_files ''
3118
test -f "$ac_file" || continue
3120
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3123
# We found the default executable, but exeext='' is most
3127
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3129
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3131
# We set ac_cv_exeext here because the later test for it is not
3132
# safe: cross compilers may not add the suffix if given an `-o'
3133
# argument, so we may need to know it at that point already.
3134
# Even if this section looks crufty: it has the advantage of
3141
test "$ac_cv_exeext" = no && ac_cv_exeext=
3146
if test -z "$ac_file"; then :
3147
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3148
$as_echo "no" >&6; }
3149
$as_echo "$as_me: failed program was:" >&5
3150
sed 's/^/| /' conftest.$ac_ext >&5
3152
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3153
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3154
as_fn_error 77 "C compiler cannot create executables
3155
See \`config.log' for more details" "$LINENO" 5; }
3157
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3158
$as_echo "yes" >&6; }
3160
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3161
$as_echo_n "checking for C compiler default output file name... " >&6; }
3162
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3163
$as_echo "$ac_file" >&6; }
3164
ac_exeext=$ac_cv_exeext
3166
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3167
ac_clean_files=$ac_clean_files_save
3168
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3169
$as_echo_n "checking for suffix of executables... " >&6; }
3170
if { { ac_try="$ac_link"
3172
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173
*) ac_try_echo=$ac_try;;
3175
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3176
$as_echo "$ac_try_echo"; } >&5
3177
(eval "$ac_link") 2>&5
3179
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3180
test $ac_status = 0; }; then :
3181
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3182
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3183
# work properly (i.e., refer to `conftest.exe'), while it won't with
3185
for ac_file in conftest.exe conftest conftest.*; do
3186
test -f "$ac_file" || continue
3188
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3189
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3195
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3196
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3197
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3198
See \`config.log' for more details" "$LINENO" 5; }
3200
rm -f conftest conftest$ac_cv_exeext
3201
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3202
$as_echo "$ac_cv_exeext" >&6; }
3204
rm -f conftest.$ac_ext
3205
EXEEXT=$ac_cv_exeext
3207
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3208
/* end confdefs.h. */
3213
FILE *f = fopen ("conftest.out", "w");
3214
return ferror (f) || fclose (f) != 0;
3220
ac_clean_files="$ac_clean_files conftest.out"
3221
# Check that the compiler produces executables we can run. If not, either
3222
# the compiler is broken, or we cross compile.
3223
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3224
$as_echo_n "checking whether we are cross compiling... " >&6; }
3225
if test "$cross_compiling" != yes; then
3226
{ { ac_try="$ac_link"
3228
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229
*) ac_try_echo=$ac_try;;
3231
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3232
$as_echo "$ac_try_echo"; } >&5
3233
(eval "$ac_link") 2>&5
3235
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3236
test $ac_status = 0; }
3237
if { ac_try='./conftest$ac_cv_exeext'
3238
{ { case "(($ac_try" in
3239
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240
*) ac_try_echo=$ac_try;;
3242
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3243
$as_echo "$ac_try_echo"; } >&5
3244
(eval "$ac_try") 2>&5
3246
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3247
test $ac_status = 0; }; }; then
3250
if test "$cross_compiling" = maybe; then
3253
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3254
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3255
as_fn_error $? "cannot run C compiled programs.
3256
If you meant to cross compile, use \`--host'.
3257
See \`config.log' for more details" "$LINENO" 5; }
3261
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3262
$as_echo "$cross_compiling" >&6; }
3264
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3265
ac_clean_files=$ac_clean_files_save
3266
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3267
$as_echo_n "checking for suffix of object files... " >&6; }
3268
if ${ac_cv_objext+:} false; then :
3269
$as_echo_n "(cached) " >&6
3271
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3272
/* end confdefs.h. */
3282
rm -f conftest.o conftest.obj
3283
if { { ac_try="$ac_compile"
3285
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286
*) ac_try_echo=$ac_try;;
3288
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3289
$as_echo "$ac_try_echo"; } >&5
3290
(eval "$ac_compile") 2>&5
3292
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3293
test $ac_status = 0; }; then :
3294
for ac_file in conftest.o conftest.obj conftest.*; do
3295
test -f "$ac_file" || continue;
3297
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3298
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3303
$as_echo "$as_me: failed program was:" >&5
3304
sed 's/^/| /' conftest.$ac_ext >&5
3306
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3307
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3308
as_fn_error $? "cannot compute suffix of object files: cannot compile
3309
See \`config.log' for more details" "$LINENO" 5; }
3311
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3313
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3314
$as_echo "$ac_cv_objext" >&6; }
3315
OBJEXT=$ac_cv_objext
3317
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3318
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3319
if ${ac_cv_c_compiler_gnu+:} false; then :
3320
$as_echo_n "(cached) " >&6
3322
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3323
/* end confdefs.h. */
3336
if ac_fn_c_try_compile "$LINENO"; then :
3341
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3342
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3345
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3346
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3347
if test $ac_compiler_gnu = yes; then
3352
ac_test_CFLAGS=${CFLAGS+set}
3353
ac_save_CFLAGS=$CFLAGS
3354
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3355
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3356
if ${ac_cv_prog_cc_g+:} false; then :
3357
$as_echo_n "(cached) " >&6
3359
ac_save_c_werror_flag=$ac_c_werror_flag
3360
ac_c_werror_flag=yes
3363
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364
/* end confdefs.h. */
3374
if ac_fn_c_try_compile "$LINENO"; then :
3378
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3379
/* end confdefs.h. */
3389
if ac_fn_c_try_compile "$LINENO"; then :
3392
ac_c_werror_flag=$ac_save_c_werror_flag
3394
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3395
/* end confdefs.h. */
3405
if ac_fn_c_try_compile "$LINENO"; then :
3408
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3410
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3412
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3413
ac_c_werror_flag=$ac_save_c_werror_flag
3415
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3416
$as_echo "$ac_cv_prog_cc_g" >&6; }
3417
if test "$ac_test_CFLAGS" = set; then
3418
CFLAGS=$ac_save_CFLAGS
3419
elif test $ac_cv_prog_cc_g = yes; then
3420
if test "$GCC" = yes; then
3426
if test "$GCC" = yes; then
3432
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3433
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3434
if ${ac_cv_prog_cc_c89+:} false; then :
3435
$as_echo_n "(cached) " >&6
3437
ac_cv_prog_cc_c89=no
3439
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3440
/* end confdefs.h. */
3443
#include <sys/types.h>
3444
#include <sys/stat.h>
3445
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3446
struct buf { int x; };
3447
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3448
static char *e (p, i)
3454
static char *f (char * (*g) (char **, int), char **p, ...)
3459
s = g (p, va_arg (v,int));
3464
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3465
function prototypes and stuff, but not '\xHH' hex character constants.
3466
These don't provoke an error unfortunately, instead are silently treated
3467
as 'x'. The following induces an error, until -std is added to get
3468
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3469
array size at least. It's necessary to write '\x00'==0 to get something
3470
that's true only with -std. */
3471
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3473
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3474
inside strings and character constants. */
3476
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3478
int test (int i, double x);
3479
struct s1 {int (*f) (int a);};
3480
struct s2 {int (*f) (double a);};
3481
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3487
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3492
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3493
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3495
CC="$ac_save_CC $ac_arg"
3496
if ac_fn_c_try_compile "$LINENO"; then :
3497
ac_cv_prog_cc_c89=$ac_arg
3499
rm -f core conftest.err conftest.$ac_objext
3500
test "x$ac_cv_prog_cc_c89" != "xno" && break
3502
rm -f conftest.$ac_ext
3507
case "x$ac_cv_prog_cc_c89" in
3509
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3510
$as_echo "none needed" >&6; } ;;
3512
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3513
$as_echo "unsupported" >&6; } ;;
3515
CC="$CC $ac_cv_prog_cc_c89"
3516
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3517
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3519
if test "x$ac_cv_prog_cc_c89" != xno; then :
3524
ac_cpp='$CPP $CPPFLAGS'
3525
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3526
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3527
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3528
DEPDIR="${am__leading_dot}deps"
3530
ac_config_commands="$ac_config_commands depfiles"
3533
am_make=${MAKE-make}
3534
cat > confinc << 'END'
3536
@echo this is the am__doit target
3539
# If we don't find an include directive, just comment out the code.
3540
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3541
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3545
# First try GNU make style include.
3546
echo "include confinc" > confmf
3547
# Ignore all kinds of additional output from `make'.
3548
case `$am_make -s -f confmf 2> /dev/null` in #(
3549
*the\ am__doit\ target*)
3555
# Now try BSD make style include.
3556
if test "$am__include" = "#"; then
3557
echo '.include "confinc"' > confmf
3558
case `$am_make -s -f confmf 2> /dev/null` in #(
3559
*the\ am__doit\ target*)
3560
am__include=.include
3568
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3569
$as_echo "$_am_result" >&6; }
3570
rm -f confinc confmf
3572
# Check whether --enable-dependency-tracking was given.
3573
if test "${enable_dependency_tracking+set}" = set; then :
3574
enableval=$enable_dependency_tracking;
3577
if test "x$enable_dependency_tracking" != xno; then
3578
am_depcomp="$ac_aux_dir/depcomp"
3581
if test "x$enable_dependency_tracking" != xno; then
3591
depcc="$CC" am_compiler_list=
3593
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3594
$as_echo_n "checking dependency style of $depcc... " >&6; }
3595
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3596
$as_echo_n "(cached) " >&6
3598
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3599
# We make a subdir and do the tests there. Otherwise we can end up
3600
# making bogus files that we don't know about and never remove. For
3601
# instance it was reported that on HP-UX the gcc test will end up
3602
# making a dummy file named `D' -- because `-MD' means `put the output
3605
# Copy depcomp to subdir because otherwise we won't find it if we're
3606
# using a relative directory.
3607
cp "$am_depcomp" conftest.dir
3609
# We will build objects and dependencies in a subdirectory because
3610
# it helps to detect inapplicable dependency modes. For instance
3611
# both Tru64's cc and ICC support -MD to output dependencies as a
3612
# side effect of compilation, but ICC will put the dependencies in
3613
# the current directory while Tru64 will put them in the object
3617
am_cv_CC_dependencies_compiler_type=none
3618
if test "$am_compiler_list" = ""; then
3619
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3622
case " $depcc " in #(
3623
*\ -arch\ *\ -arch\ *) am__universal=true ;;
3626
for depmode in $am_compiler_list; do
3627
# Setup a source with many dependencies, because some compilers
3628
# like to wrap large dependency lists on column 80 (with \), and
3629
# we should not choose a depcomp mode which is confused by this.
3631
# We need to recreate these files for each test, as the compiler may
3632
# overwrite some of them when testing with obscure command lines.
3633
# This happens at least with the AIX C compiler.
3635
for i in 1 2 3 4 5 6; do
3636
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3637
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3638
# Solaris 8's {/usr,}/bin/sh.
3639
touch sub/conftst$i.h
3641
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3643
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3644
# mode. It turns out that the SunPro C++ compiler does not properly
3645
# handle `-M -o', and we need to detect this. Also, some Intel
3646
# versions had trouble with output in subdirs
3647
am__obj=sub/conftest.${OBJEXT-o}
3648
am__minus_obj="-o $am__obj"
3651
# This depmode causes a compiler race in universal mode.
3652
test "$am__universal" = false || continue
3655
# after this tag, mechanisms are not by side-effect, so they'll
3656
# only be used when explicitly requested
3657
if test "x$enable_dependency_tracking" = xyes; then
3663
msvisualcpp | msvcmsys)
3664
# This compiler won't grok `-c -o', but also, the minuso test has
3665
# not run yet. These depmodes are late enough in the game, and
3666
# so weak that their functioning should not be impacted.
3667
am__obj=conftest.${OBJEXT-o}
3672
if depmode=$depmode \
3673
source=sub/conftest.c object=$am__obj \
3674
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3675
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3676
>/dev/null 2>conftest.err &&
3677
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3678
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3679
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3680
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3681
# icc doesn't choke on unknown options, it will just issue warnings
3682
# or remarks (even with -Werror). So we grep stderr for any message
3683
# that says an option was ignored or not supported.
3684
# When given -MP, icc 7.0 and 7.1 complain thusly:
3685
# icc: Command line warning: ignoring option '-M'; no argument required
3686
# The diagnosis changed in icc 8.0:
3687
# icc: Command line remark: option '-MP' not supported
3688
if (grep 'ignoring option' conftest.err ||
3689
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3690
am_cv_CC_dependencies_compiler_type=$depmode
3699
am_cv_CC_dependencies_compiler_type=none
3703
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3704
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3705
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3708
test "x$enable_dependency_tracking" != xno \
3709
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3711
am__fastdepCC_FALSE='#'
3713
am__fastdepCC_TRUE='#'
3714
am__fastdepCC_FALSE=
3718
if test "x$CC" != xcc; then
3719
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3720
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3722
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3723
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3725
set dummy $CC; ac_cc=`$as_echo "$2" |
3726
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3727
if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
3728
$as_echo_n "(cached) " >&6
3730
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731
/* end confdefs.h. */
3741
# Make sure it works both with $CC and with simple cc.
3742
# We do the test twice because some compilers refuse to overwrite an
3743
# existing .o file with -o, though they will create one.
3744
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3746
if { { case "(($ac_try" in
3747
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748
*) ac_try_echo=$ac_try;;
3750
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3751
$as_echo "$ac_try_echo"; } >&5
3752
(eval "$ac_try") 2>&5
3754
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3755
test $ac_status = 0; } &&
3756
test -f conftest2.$ac_objext && { { case "(($ac_try" in
3757
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3758
*) ac_try_echo=$ac_try;;
3760
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3761
$as_echo "$ac_try_echo"; } >&5
3762
(eval "$ac_try") 2>&5
3764
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3765
test $ac_status = 0; };
3767
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3768
if test "x$CC" != xcc; then
3769
# Test first that cc exists at all.
3770
if { ac_try='cc -c conftest.$ac_ext >&5'
3771
{ { case "(($ac_try" in
3772
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3773
*) ac_try_echo=$ac_try;;
3775
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3776
$as_echo "$ac_try_echo"; } >&5
3777
(eval "$ac_try") 2>&5
3779
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3780
test $ac_status = 0; }; }; then
3781
ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3783
if { { case "(($ac_try" in
3784
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785
*) ac_try_echo=$ac_try;;
3787
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3788
$as_echo "$ac_try_echo"; } >&5
3789
(eval "$ac_try") 2>&5
3791
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3792
test $ac_status = 0; } &&
3793
test -f conftest2.$ac_objext && { { case "(($ac_try" in
3794
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3795
*) ac_try_echo=$ac_try;;
3797
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3798
$as_echo "$ac_try_echo"; } >&5
3799
(eval "$ac_try") 2>&5
3801
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3802
test $ac_status = 0; };
3807
# cc exists but doesn't like -o.
3808
eval ac_cv_prog_cc_${ac_cc}_c_o=no
3813
eval ac_cv_prog_cc_${ac_cc}_c_o=no
3815
rm -f core conftest*
3818
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3819
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3820
$as_echo "yes" >&6; }
3822
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3823
$as_echo "no" >&6; }
3825
$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3829
# FIXME: we rely on the cache variable name because
3830
# there is no other way.
3832
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3833
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3834
if test "$am_t" != yes; then
3835
# Losing compiler, so override with the script.
3836
# FIXME: It is wrong to rewrite CC.
3837
# But if we don't then we get into trouble of one sort or another.
3838
# A longer-term fix would be to have automake use am__CC in this case,
3839
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3840
CC="$am_aux_dir/compile $CC"
3845
# Initialize libtool
3849
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3850
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3856
macro_revision='1.3293'
3870
ltmain="$ac_aux_dir/ltmain.sh"
3872
# Make sure we can run config.sub.
3873
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3874
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3876
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3877
$as_echo_n "checking build system type... " >&6; }
3878
if ${ac_cv_build+:} false; then :
3879
$as_echo_n "(cached) " >&6
3881
ac_build_alias=$build_alias
3882
test "x$ac_build_alias" = x &&
3883
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3884
test "x$ac_build_alias" = x &&
3885
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3886
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3887
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3890
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3891
$as_echo "$ac_cv_build" >&6; }
3892
case $ac_cv_build in
3894
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3897
ac_save_IFS=$IFS; IFS='-'
3903
# Remember, the first character of IFS is used to create $*,
3904
# except with old shells:
3907
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3910
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3911
$as_echo_n "checking host system type... " >&6; }
3912
if ${ac_cv_host+:} false; then :
3913
$as_echo_n "(cached) " >&6
3915
if test "x$host_alias" = x; then
3916
ac_cv_host=$ac_cv_build
3918
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3919
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3923
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3924
$as_echo "$ac_cv_host" >&6; }
3927
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3930
ac_save_IFS=$IFS; IFS='-'
3936
# Remember, the first character of IFS is used to create $*,
3937
# except with old shells:
3940
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3943
# Backslashify metacharacters that are still active within
3944
# double-quoted strings.
3945
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3947
# Same as above, but do not quote variable references.
3948
double_quote_subst='s/\(["`\\]\)/\\\1/g'
3950
# Sed substitution to delay expansion of an escaped shell variable in a
3951
# double_quote_subst'ed string.
3952
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3954
# Sed substitution to delay expansion of an escaped single quote.
3955
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3957
# Sed substitution to avoid accidental globbing in evaled expressions
3958
no_glob_subst='s/\*/\\\*/g'
3960
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3961
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3962
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3964
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3965
$as_echo_n "checking how to print strings... " >&6; }
3966
# Test print first, because it will be a builtin if present.
3967
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3968
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3970
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3973
# Use this function as a fallback that always works.
3974
func_fallback_echo ()
3976
eval 'cat <<_LTECHO_EOF
3980
ECHO='func_fallback_echo'
3983
# func_echo_all arg...
3984
# Invoke $ECHO with all args, space-separated.
3991
printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3992
$as_echo "printf" >&6; } ;;
3993
print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3994
$as_echo "print -r" >&6; } ;;
3995
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3996
$as_echo "cat" >&6; } ;;
4012
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4013
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4014
if ${ac_cv_path_SED+:} false; then :
4015
$as_echo_n "(cached) " >&6
4017
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4018
for ac_i in 1 2 3 4 5 6 7; do
4019
ac_script="$ac_script$as_nl$ac_script"
4021
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4022
{ ac_script=; unset ac_script;}
4023
if test -z "$SED"; then
4024
ac_path_SED_found=false
4025
# Loop through the user's path and test for each of PROGNAME-LIST
4026
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030
test -z "$as_dir" && as_dir=.
4031
for ac_prog in sed gsed; do
4032
for ac_exec_ext in '' $ac_executable_extensions; do
4033
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4034
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4035
# Check for GNU ac_path_SED and select it if it is found.
4036
# Check for GNU $ac_path_SED
4037
case `"$ac_path_SED" --version 2>&1` in
4039
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4042
$as_echo_n 0123456789 >"conftest.in"
4045
cat "conftest.in" "conftest.in" >"conftest.tmp"
4046
mv "conftest.tmp" "conftest.in"
4047
cp "conftest.in" "conftest.nl"
4048
$as_echo '' >> "conftest.nl"
4049
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4050
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4051
as_fn_arith $ac_count + 1 && ac_count=$as_val
4052
if test $ac_count -gt ${ac_path_SED_max-0}; then
4053
# Best one so far, save it but keep looking for a better one
4054
ac_cv_path_SED="$ac_path_SED"
4055
ac_path_SED_max=$ac_count
4057
# 10*(2^10) chars as input seems more than enough
4058
test $ac_count -gt 10 && break
4060
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4063
$ac_path_SED_found && break 3
4068
if test -z "$ac_cv_path_SED"; then
4069
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4076
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4077
$as_echo "$ac_cv_path_SED" >&6; }
4078
SED="$ac_cv_path_SED"
4081
test -z "$SED" && SED=sed
4082
Xsed="$SED -e 1s/^X//"
4094
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4095
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4096
if ${ac_cv_path_GREP+:} false; then :
4097
$as_echo_n "(cached) " >&6
4099
if test -z "$GREP"; then
4100
ac_path_GREP_found=false
4101
# Loop through the user's path and test for each of PROGNAME-LIST
4102
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4103
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4106
test -z "$as_dir" && as_dir=.
4107
for ac_prog in grep ggrep; do
4108
for ac_exec_ext in '' $ac_executable_extensions; do
4109
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4110
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4111
# Check for GNU ac_path_GREP and select it if it is found.
4112
# Check for GNU $ac_path_GREP
4113
case `"$ac_path_GREP" --version 2>&1` in
4115
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4118
$as_echo_n 0123456789 >"conftest.in"
4121
cat "conftest.in" "conftest.in" >"conftest.tmp"
4122
mv "conftest.tmp" "conftest.in"
4123
cp "conftest.in" "conftest.nl"
4124
$as_echo 'GREP' >> "conftest.nl"
4125
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4126
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4127
as_fn_arith $ac_count + 1 && ac_count=$as_val
4128
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4129
# Best one so far, save it but keep looking for a better one
4130
ac_cv_path_GREP="$ac_path_GREP"
4131
ac_path_GREP_max=$ac_count
4133
# 10*(2^10) chars as input seems more than enough
4134
test $ac_count -gt 10 && break
4136
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4139
$ac_path_GREP_found && break 3
4144
if test -z "$ac_cv_path_GREP"; then
4145
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4148
ac_cv_path_GREP=$GREP
4152
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4153
$as_echo "$ac_cv_path_GREP" >&6; }
4154
GREP="$ac_cv_path_GREP"
4157
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4158
$as_echo_n "checking for egrep... " >&6; }
4159
if ${ac_cv_path_EGREP+:} false; then :
4160
$as_echo_n "(cached) " >&6
4162
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4163
then ac_cv_path_EGREP="$GREP -E"
4165
if test -z "$EGREP"; then
4166
ac_path_EGREP_found=false
4167
# Loop through the user's path and test for each of PROGNAME-LIST
4168
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4172
test -z "$as_dir" && as_dir=.
4173
for ac_prog in egrep; do
4174
for ac_exec_ext in '' $ac_executable_extensions; do
4175
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4176
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4177
# Check for GNU ac_path_EGREP and select it if it is found.
4178
# Check for GNU $ac_path_EGREP
4179
case `"$ac_path_EGREP" --version 2>&1` in
4181
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4184
$as_echo_n 0123456789 >"conftest.in"
4187
cat "conftest.in" "conftest.in" >"conftest.tmp"
4188
mv "conftest.tmp" "conftest.in"
4189
cp "conftest.in" "conftest.nl"
4190
$as_echo 'EGREP' >> "conftest.nl"
4191
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4192
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4193
as_fn_arith $ac_count + 1 && ac_count=$as_val
4194
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4195
# Best one so far, save it but keep looking for a better one
4196
ac_cv_path_EGREP="$ac_path_EGREP"
4197
ac_path_EGREP_max=$ac_count
4199
# 10*(2^10) chars as input seems more than enough
4200
test $ac_count -gt 10 && break
4202
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4205
$ac_path_EGREP_found && break 3
4210
if test -z "$ac_cv_path_EGREP"; then
4211
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4214
ac_cv_path_EGREP=$EGREP
4219
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4220
$as_echo "$ac_cv_path_EGREP" >&6; }
4221
EGREP="$ac_cv_path_EGREP"
4224
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4225
$as_echo_n "checking for fgrep... " >&6; }
4226
if ${ac_cv_path_FGREP+:} false; then :
4227
$as_echo_n "(cached) " >&6
4229
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4230
then ac_cv_path_FGREP="$GREP -F"
4232
if test -z "$FGREP"; then
4233
ac_path_FGREP_found=false
4234
# Loop through the user's path and test for each of PROGNAME-LIST
4235
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4239
test -z "$as_dir" && as_dir=.
4240
for ac_prog in fgrep; do
4241
for ac_exec_ext in '' $ac_executable_extensions; do
4242
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4243
{ test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4244
# Check for GNU ac_path_FGREP and select it if it is found.
4245
# Check for GNU $ac_path_FGREP
4246
case `"$ac_path_FGREP" --version 2>&1` in
4248
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4251
$as_echo_n 0123456789 >"conftest.in"
4254
cat "conftest.in" "conftest.in" >"conftest.tmp"
4255
mv "conftest.tmp" "conftest.in"
4256
cp "conftest.in" "conftest.nl"
4257
$as_echo 'FGREP' >> "conftest.nl"
4258
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4259
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4260
as_fn_arith $ac_count + 1 && ac_count=$as_val
4261
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4262
# Best one so far, save it but keep looking for a better one
4263
ac_cv_path_FGREP="$ac_path_FGREP"
4264
ac_path_FGREP_max=$ac_count
4266
# 10*(2^10) chars as input seems more than enough
4267
test $ac_count -gt 10 && break
4269
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4272
$ac_path_FGREP_found && break 3
4277
if test -z "$ac_cv_path_FGREP"; then
4278
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4281
ac_cv_path_FGREP=$FGREP
4286
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4287
$as_echo "$ac_cv_path_FGREP" >&6; }
4288
FGREP="$ac_cv_path_FGREP"
4291
test -z "$GREP" && GREP=grep
4311
# Check whether --with-gnu-ld was given.
4312
if test "${with_gnu_ld+set}" = set; then :
4313
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4319
if test "$GCC" = yes; then
4320
# Check if gcc -print-prog-name=ld gives a path.
4321
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4322
$as_echo_n "checking for ld used by $CC... " >&6; }
4325
# gcc leaves a trailing carriage return which upsets mingw
4326
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4328
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4331
# Accept absolute paths.
4333
re_direlt='/[^/][^/]*/\.\./'
4334
# Canonicalize the pathname of ld
4335
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4336
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4337
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4339
test -z "$LD" && LD="$ac_prog"
4342
# If it fails, then pretend we aren't using GCC.
4346
# If it is relative, then search for the first ld in PATH.
4350
elif test "$with_gnu_ld" = yes; then
4351
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4352
$as_echo_n "checking for GNU ld... " >&6; }
4354
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4355
$as_echo_n "checking for non-GNU ld... " >&6; }
4357
if ${lt_cv_path_LD+:} false; then :
4358
$as_echo_n "(cached) " >&6
4360
if test -z "$LD"; then
4361
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4362
for ac_dir in $PATH; do
4364
test -z "$ac_dir" && ac_dir=.
4365
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4366
lt_cv_path_LD="$ac_dir/$ac_prog"
4367
# Check to see if the program is GNU ld. I'd rather use --version,
4368
# but apparently some variants of GNU ld only accept -v.
4369
# Break only if it was the GNU/non-GNU ld that we prefer.
4370
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4371
*GNU* | *'with BFD'*)
4372
test "$with_gnu_ld" != no && break
4375
test "$with_gnu_ld" != yes && break
4382
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4387
if test -n "$LD"; then
4388
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4389
$as_echo "$LD" >&6; }
4391
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4392
$as_echo "no" >&6; }
4394
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4395
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4396
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4397
if ${lt_cv_prog_gnu_ld+:} false; then :
4398
$as_echo_n "(cached) " >&6
4400
# I'd rather use --version here, but apparently some GNU lds only accept -v.
4401
case `$LD -v 2>&1 </dev/null` in
4402
*GNU* | *'with BFD'*)
4403
lt_cv_prog_gnu_ld=yes
4406
lt_cv_prog_gnu_ld=no
4410
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4411
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4412
with_gnu_ld=$lt_cv_prog_gnu_ld
4422
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4423
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4424
if ${lt_cv_path_NM+:} false; then :
4425
$as_echo_n "(cached) " >&6
4427
if test -n "$NM"; then
4428
# Let the user override the test.
4431
lt_nm_to_check="${ac_tool_prefix}nm"
4432
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4433
lt_nm_to_check="$lt_nm_to_check nm"
4435
for lt_tmp_nm in $lt_nm_to_check; do
4436
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4437
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4439
test -z "$ac_dir" && ac_dir=.
4440
tmp_nm="$ac_dir/$lt_tmp_nm"
4441
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4442
# Check to see if the nm accepts a BSD-compat flag.
4443
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4444
# nm: unknown option "B" ignored
4445
# Tru64's nm complains that /dev/null is an invalid object file
4446
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4447
*/dev/null* | *'Invalid file or object type'*)
4448
lt_cv_path_NM="$tmp_nm -B"
4452
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4454
lt_cv_path_NM="$tmp_nm -p"
4458
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4459
continue # so that we can try to find one that supports BSD flags
4468
: ${lt_cv_path_NM=no}
4471
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4472
$as_echo "$lt_cv_path_NM" >&6; }
4473
if test "$lt_cv_path_NM" != "no"; then
4476
# Didn't find any BSD compatible name lister, look for dumpbin.
4477
if test -n "$DUMPBIN"; then :
4478
# Let the user override the test.
4480
if test -n "$ac_tool_prefix"; then
4481
for ac_prog in dumpbin "link -dump"
4483
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4484
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4485
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4486
$as_echo_n "checking for $ac_word... " >&6; }
4487
if ${ac_cv_prog_DUMPBIN+:} false; then :
4488
$as_echo_n "(cached) " >&6
4490
if test -n "$DUMPBIN"; then
4491
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4493
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497
test -z "$as_dir" && as_dir=.
4498
for ac_exec_ext in '' $ac_executable_extensions; do
4499
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4500
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4501
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4510
DUMPBIN=$ac_cv_prog_DUMPBIN
4511
if test -n "$DUMPBIN"; then
4512
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4513
$as_echo "$DUMPBIN" >&6; }
4515
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4516
$as_echo "no" >&6; }
4520
test -n "$DUMPBIN" && break
4523
if test -z "$DUMPBIN"; then
4524
ac_ct_DUMPBIN=$DUMPBIN
4525
for ac_prog in dumpbin "link -dump"
4527
# Extract the first word of "$ac_prog", so it can be a program name with args.
4528
set dummy $ac_prog; ac_word=$2
4529
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4530
$as_echo_n "checking for $ac_word... " >&6; }
4531
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4532
$as_echo_n "(cached) " >&6
4534
if test -n "$ac_ct_DUMPBIN"; then
4535
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4537
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541
test -z "$as_dir" && as_dir=.
4542
for ac_exec_ext in '' $ac_executable_extensions; do
4543
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4544
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4545
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4554
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4555
if test -n "$ac_ct_DUMPBIN"; then
4556
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4557
$as_echo "$ac_ct_DUMPBIN" >&6; }
4559
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4560
$as_echo "no" >&6; }
4564
test -n "$ac_ct_DUMPBIN" && break
4567
if test "x$ac_ct_DUMPBIN" = x; then
4570
case $cross_compiling:$ac_tool_warned in
4572
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4573
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4574
ac_tool_warned=yes ;;
4576
DUMPBIN=$ac_ct_DUMPBIN
4580
case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4582
DUMPBIN="$DUMPBIN -symbols"
4590
if test "$DUMPBIN" != ":"; then
4594
test -z "$NM" && NM=nm
4601
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4602
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4603
if ${lt_cv_nm_interface+:} false; then :
4604
$as_echo_n "(cached) " >&6
4606
lt_cv_nm_interface="BSD nm"
4607
echo "int some_variable = 0;" > conftest.$ac_ext
4608
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4609
(eval "$ac_compile" 2>conftest.err)
4610
cat conftest.err >&5
4611
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4612
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4613
cat conftest.err >&5
4614
(eval echo "\"\$as_me:$LINENO: output\"" >&5)
4615
cat conftest.out >&5
4616
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4617
lt_cv_nm_interface="MS dumpbin"
4621
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4622
$as_echo "$lt_cv_nm_interface" >&6; }
4624
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4625
$as_echo_n "checking whether ln -s works... " >&6; }
4627
if test "$LN_S" = "ln -s"; then
4628
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4629
$as_echo "yes" >&6; }
4631
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4632
$as_echo "no, using $LN_S" >&6; }
4635
# find the maximum length of command line arguments
4636
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4637
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4638
if ${lt_cv_sys_max_cmd_len+:} false; then :
4639
$as_echo_n "(cached) " >&6
4646
# On DJGPP, this test can blow up pretty badly due to problems in libc
4647
# (any single argument exceeding 2000 bytes causes a buffer overrun
4648
# during glob expansion). Even if it were fixed, the result of this
4649
# check would be larger than it should be.
4650
lt_cv_sys_max_cmd_len=12288; # 12K is about right
4654
# Under GNU Hurd, this test is not required because there is
4655
# no limit to the length of command line arguments.
4656
# Libtool will interpret -1 as no limit whatsoever
4657
lt_cv_sys_max_cmd_len=-1;
4660
cygwin* | mingw* | cegcc*)
4661
# On Win9x/ME, this test blows up -- it succeeds, but takes
4662
# about 5 minutes as the teststring grows exponentially.
4663
# Worse, since 9x/ME are not pre-emptively multitasking,
4664
# you end up with a "frozen" computer, even though with patience
4665
# the test eventually succeeds (with a max line length of 256k).
4666
# Instead, let's just punt: use the minimum linelength reported by
4667
# all of the supported platforms: 8192 (on NT/2K/XP).
4668
lt_cv_sys_max_cmd_len=8192;
4672
# On MiNT this can take a long time and run out of memory.
4673
lt_cv_sys_max_cmd_len=8192;
4677
# On AmigaOS with pdksh, this test takes hours, literally.
4678
# So we just punt and use a minimum line length of 8192.
4679
lt_cv_sys_max_cmd_len=8192;
4682
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4683
# This has been around since 386BSD, at least. Likely further.
4684
if test -x /sbin/sysctl; then
4685
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4686
elif test -x /usr/sbin/sysctl; then
4687
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4689
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4691
# And add a safety zone
4692
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4693
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4697
# We know the value 262144 and hardcode it with a safety zone (like BSD)
4698
lt_cv_sys_max_cmd_len=196608
4702
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4703
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4704
# nice to cause kernel panics so lets avoid the loop below.
4705
# First set a reasonable default.
4706
lt_cv_sys_max_cmd_len=16384
4708
if test -x /sbin/sysconfig; then
4709
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4710
*1*) lt_cv_sys_max_cmd_len=-1 ;;
4715
lt_cv_sys_max_cmd_len=102400
4717
sysv5* | sco5v6* | sysv4.2uw2*)
4718
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4719
if test -n "$kargmax"; then
4720
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4722
lt_cv_sys_max_cmd_len=32768
4726
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4727
if test -n "$lt_cv_sys_max_cmd_len"; then
4728
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4729
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4731
# Make teststring a little bigger before we do anything with it.
4732
# a 1K string should be a reasonable start.
4733
for i in 1 2 3 4 5 6 7 8 ; do
4734
teststring=$teststring$teststring
4736
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4737
# If test is not a shell built-in, we'll probably end up computing a
4738
# maximum length that is only half of the actual maximum length, but
4740
while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
4741
= "X$teststring$teststring"; } >/dev/null 2>&1 &&
4742
test $i != 17 # 1/2 MB should be enough
4745
teststring=$teststring$teststring
4747
# Only check the string length outside the loop.
4748
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4750
# Add a significant safety factor because C++ compilers can tack on
4751
# massive amounts of additional arguments before passing them to the
4752
# linker. It appears as though 1/2 is a usable value.
4753
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4760
if test -n $lt_cv_sys_max_cmd_len ; then
4761
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4762
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4764
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4765
$as_echo "none" >&6; }
4767
max_cmd_len=$lt_cv_sys_max_cmd_len
4778
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4779
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4780
# Try some XSI features
4783
test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4785
&& eval 'test $(( 1 + 1 )) -eq 2 \
4786
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4788
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4789
$as_echo "$xsi_shell" >&6; }
4792
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4793
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4795
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4797
&& lt_shell_append=yes
4798
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4799
$as_echo "$lt_shell_append" >&6; }
4802
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4812
# test EBCDIC or ASCII
4813
case `echo X|tr X '\101'` in
4814
A) # ASCII based system
4815
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4816
lt_SP2NL='tr \040 \012'
4817
lt_NL2SP='tr \015\012 \040\040'
4819
*) # EBCDIC based system
4820
lt_SP2NL='tr \100 \n'
4821
lt_NL2SP='tr \r\n \100\100'
4833
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4834
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4835
if ${lt_cv_to_host_file_cmd+:} false; then :
4836
$as_echo_n "(cached) " >&6
4841
*-*-mingw* ) # actually msys
4842
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4845
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4847
* ) # otherwise, assume *nix
4848
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4854
*-*-mingw* ) # actually msys
4855
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4858
lt_cv_to_host_file_cmd=func_convert_file_noop
4860
* ) # otherwise, assume *nix
4861
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4865
* ) # unhandled hosts (and "normal" native builds)
4866
lt_cv_to_host_file_cmd=func_convert_file_noop
4872
to_host_file_cmd=$lt_cv_to_host_file_cmd
4873
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4874
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4880
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4881
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4882
if ${lt_cv_to_tool_file_cmd+:} false; then :
4883
$as_echo_n "(cached) " >&6
4885
#assume ordinary cross tools, or native build.
4886
lt_cv_to_tool_file_cmd=func_convert_file_noop
4890
*-*-mingw* ) # actually msys
4891
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4899
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4900
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4901
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4907
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4908
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4909
if ${lt_cv_ld_reload_flag+:} false; then :
4910
$as_echo_n "(cached) " >&6
4912
lt_cv_ld_reload_flag='-r'
4914
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4915
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4916
reload_flag=$lt_cv_ld_reload_flag
4917
case $reload_flag in
4919
*) reload_flag=" $reload_flag" ;;
4921
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4923
cygwin* | mingw* | pw32* | cegcc*)
4924
if test "$GCC" != yes; then
4929
if test "$GCC" = yes; then
4930
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4932
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4945
if test -n "$ac_tool_prefix"; then
4946
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4947
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4948
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4949
$as_echo_n "checking for $ac_word... " >&6; }
4950
if ${ac_cv_prog_OBJDUMP+:} false; then :
4951
$as_echo_n "(cached) " >&6
4953
if test -n "$OBJDUMP"; then
4954
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4956
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960
test -z "$as_dir" && as_dir=.
4961
for ac_exec_ext in '' $ac_executable_extensions; do
4962
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4963
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4964
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4973
OBJDUMP=$ac_cv_prog_OBJDUMP
4974
if test -n "$OBJDUMP"; then
4975
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4976
$as_echo "$OBJDUMP" >&6; }
4978
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4979
$as_echo "no" >&6; }
4984
if test -z "$ac_cv_prog_OBJDUMP"; then
4985
ac_ct_OBJDUMP=$OBJDUMP
4986
# Extract the first word of "objdump", so it can be a program name with args.
4987
set dummy objdump; ac_word=$2
4988
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4989
$as_echo_n "checking for $ac_word... " >&6; }
4990
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4991
$as_echo_n "(cached) " >&6
4993
if test -n "$ac_ct_OBJDUMP"; then
4994
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4996
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000
test -z "$as_dir" && as_dir=.
5001
for ac_exec_ext in '' $ac_executable_extensions; do
5002
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5003
ac_cv_prog_ac_ct_OBJDUMP="objdump"
5004
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5013
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5014
if test -n "$ac_ct_OBJDUMP"; then
5015
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5016
$as_echo "$ac_ct_OBJDUMP" >&6; }
5018
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5019
$as_echo "no" >&6; }
5022
if test "x$ac_ct_OBJDUMP" = x; then
5025
case $cross_compiling:$ac_tool_warned in
5027
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5028
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5029
ac_tool_warned=yes ;;
5031
OBJDUMP=$ac_ct_OBJDUMP
5034
OBJDUMP="$ac_cv_prog_OBJDUMP"
5037
test -z "$OBJDUMP" && OBJDUMP=objdump
5047
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5048
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5049
if ${lt_cv_deplibs_check_method+:} false; then :
5050
$as_echo_n "(cached) " >&6
5052
lt_cv_file_magic_cmd='$MAGIC_CMD'
5053
lt_cv_file_magic_test_file=
5054
lt_cv_deplibs_check_method='unknown'
5055
# Need to set the preceding variable on all platforms that support
5056
# interlibrary dependencies.
5057
# 'none' -- dependencies not supported.
5058
# `unknown' -- same as none, but documents that we really don't know.
5059
# 'pass_all' -- all dependencies passed with no checks.
5060
# 'test_compile' -- check by making test program.
5061
# 'file_magic [[regex]]' -- check by looking for files in library path
5062
# which responds to the $file_magic_cmd with a given extended regex.
5063
# If you have `file' or equivalent on your system and you're not sure
5064
# whether `pass_all' will *always* work, you probably want this one.
5068
lt_cv_deplibs_check_method=pass_all
5072
lt_cv_deplibs_check_method=pass_all
5076
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5077
lt_cv_file_magic_cmd='/usr/bin/file -L'
5078
lt_cv_file_magic_test_file=/shlib/libc.so
5082
# func_win32_libid is a shell function defined in ltmain.sh
5083
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5084
lt_cv_file_magic_cmd='func_win32_libid'
5088
# Base MSYS/MinGW do not provide the 'file' command needed by
5089
# func_win32_libid shell function, so use a weaker test based on 'objdump',
5090
# unless we find 'file', for example because we are cross-compiling.
5091
# func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5092
if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5093
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5094
lt_cv_file_magic_cmd='func_win32_libid'
5096
# Keep this pattern in sync with the one in func_win32_libid.
5097
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5098
lt_cv_file_magic_cmd='$OBJDUMP -f'
5103
# use the weaker test based on 'objdump'. See mingw*.
5104
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5105
lt_cv_file_magic_cmd='$OBJDUMP -f'
5108
darwin* | rhapsody*)
5109
lt_cv_deplibs_check_method=pass_all
5112
freebsd* | dragonfly*)
5113
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5116
# Not sure whether the presence of OpenBSD here was a mistake.
5117
# Let's accept both of them until this is cleared up.
5118
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5119
lt_cv_file_magic_cmd=/usr/bin/file
5120
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5124
lt_cv_deplibs_check_method=pass_all
5129
lt_cv_deplibs_check_method=pass_all
5133
lt_cv_deplibs_check_method=pass_all
5136
hpux10.20* | hpux11*)
5137
lt_cv_file_magic_cmd=/usr/bin/file
5140
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5141
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5144
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]'
5145
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5148
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5149
lt_cv_file_magic_test_file=/usr/lib/libc.sl
5155
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5156
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5159
irix5* | irix6* | nonstopux*)
5161
*-32|*"-32 ") libmagic=32-bit;;
5162
*-n32|*"-n32 ") libmagic=N32;;
5163
*-64|*"-64 ") libmagic=64-bit;;
5164
*) libmagic=never-match;;
5166
lt_cv_deplibs_check_method=pass_all
5169
# This must be Linux ELF.
5170
linux* | k*bsd*-gnu | kopensolaris*-gnu)
5171
lt_cv_deplibs_check_method=pass_all
5174
netbsd* | netbsdelf*-gnu)
5175
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5176
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5178
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5183
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5184
lt_cv_file_magic_cmd=/usr/bin/file
5185
lt_cv_file_magic_test_file=/usr/lib/libnls.so
5189
lt_cv_deplibs_check_method=pass_all
5193
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5194
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5196
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5200
osf3* | osf4* | osf5*)
5201
lt_cv_deplibs_check_method=pass_all
5205
lt_cv_deplibs_check_method=pass_all
5209
lt_cv_deplibs_check_method=pass_all
5212
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5213
lt_cv_deplibs_check_method=pass_all
5217
case $host_vendor in
5219
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]'
5220
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5223
lt_cv_deplibs_check_method=pass_all
5226
lt_cv_file_magic_cmd='/bin/file'
5227
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5230
lt_cv_file_magic_cmd='/bin/file'
5231
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5232
lt_cv_file_magic_test_file=/lib/libc.so
5235
lt_cv_deplibs_check_method=pass_all
5238
lt_cv_deplibs_check_method=pass_all
5244
lt_cv_deplibs_check_method=pass_all
5249
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5250
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5254
if test "$build" = "$host"; then
5257
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5260
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5266
file_magic_cmd=$lt_cv_file_magic_cmd
5267
deplibs_check_method=$lt_cv_deplibs_check_method
5268
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5291
if test -n "$ac_tool_prefix"; then
5292
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5293
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5294
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5295
$as_echo_n "checking for $ac_word... " >&6; }
5296
if ${ac_cv_prog_DLLTOOL+:} false; then :
5297
$as_echo_n "(cached) " >&6
5299
if test -n "$DLLTOOL"; then
5300
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5302
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306
test -z "$as_dir" && as_dir=.
5307
for ac_exec_ext in '' $ac_executable_extensions; do
5308
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5309
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5310
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5319
DLLTOOL=$ac_cv_prog_DLLTOOL
5320
if test -n "$DLLTOOL"; then
5321
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5322
$as_echo "$DLLTOOL" >&6; }
5324
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5325
$as_echo "no" >&6; }
5330
if test -z "$ac_cv_prog_DLLTOOL"; then
5331
ac_ct_DLLTOOL=$DLLTOOL
5332
# Extract the first word of "dlltool", so it can be a program name with args.
5333
set dummy dlltool; ac_word=$2
5334
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5335
$as_echo_n "checking for $ac_word... " >&6; }
5336
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5337
$as_echo_n "(cached) " >&6
5339
if test -n "$ac_ct_DLLTOOL"; then
5340
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5342
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346
test -z "$as_dir" && as_dir=.
5347
for ac_exec_ext in '' $ac_executable_extensions; do
5348
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5349
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5350
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5359
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5360
if test -n "$ac_ct_DLLTOOL"; then
5361
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5362
$as_echo "$ac_ct_DLLTOOL" >&6; }
5364
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5365
$as_echo "no" >&6; }
5368
if test "x$ac_ct_DLLTOOL" = x; then
5371
case $cross_compiling:$ac_tool_warned in
5373
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5374
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5375
ac_tool_warned=yes ;;
5377
DLLTOOL=$ac_ct_DLLTOOL
5380
DLLTOOL="$ac_cv_prog_DLLTOOL"
5383
test -z "$DLLTOOL" && DLLTOOL=dlltool
5394
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5395
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5396
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5397
$as_echo_n "(cached) " >&6
5399
lt_cv_sharedlib_from_linklib_cmd='unknown'
5402
cygwin* | mingw* | pw32* | cegcc*)
5403
# two different shell functions defined in ltmain.sh
5404
# decide which to use based on capabilities of $DLLTOOL
5405
case `$DLLTOOL --help 2>&1` in
5406
*--identify-strict*)
5407
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5410
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5415
# fallback: assume linklib IS sharedlib
5416
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5421
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5422
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5423
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5424
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5433
if test -n "$ac_tool_prefix"; then
5436
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5437
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5438
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5439
$as_echo_n "checking for $ac_word... " >&6; }
5440
if ${ac_cv_prog_AR+:} false; then :
5441
$as_echo_n "(cached) " >&6
5443
if test -n "$AR"; then
5444
ac_cv_prog_AR="$AR" # Let the user override the test.
5446
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5450
test -z "$as_dir" && as_dir=.
5451
for ac_exec_ext in '' $ac_executable_extensions; do
5452
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5453
ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5454
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5464
if test -n "$AR"; then
5465
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5466
$as_echo "$AR" >&6; }
5468
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5469
$as_echo "no" >&6; }
5473
test -n "$AR" && break
5476
if test -z "$AR"; then
5480
# Extract the first word of "$ac_prog", so it can be a program name with args.
5481
set dummy $ac_prog; ac_word=$2
5482
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5483
$as_echo_n "checking for $ac_word... " >&6; }
5484
if ${ac_cv_prog_ac_ct_AR+:} false; then :
5485
$as_echo_n "(cached) " >&6
5487
if test -n "$ac_ct_AR"; then
5488
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5490
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494
test -z "$as_dir" && as_dir=.
5495
for ac_exec_ext in '' $ac_executable_extensions; do
5496
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5497
ac_cv_prog_ac_ct_AR="$ac_prog"
5498
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5507
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5508
if test -n "$ac_ct_AR"; then
5509
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5510
$as_echo "$ac_ct_AR" >&6; }
5512
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5513
$as_echo "no" >&6; }
5517
test -n "$ac_ct_AR" && break
5520
if test "x$ac_ct_AR" = x; then
5523
case $cross_compiling:$ac_tool_warned in
5525
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5526
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5527
ac_tool_warned=yes ;;
5546
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5547
$as_echo_n "checking for archiver @FILE support... " >&6; }
5548
if ${lt_cv_ar_at_file+:} false; then :
5549
$as_echo_n "(cached) " >&6
5552
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5553
/* end confdefs.h. */
5563
if ac_fn_c_try_compile "$LINENO"; then :
5564
echo conftest.$ac_objext > conftest.lst
5565
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5566
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5567
(eval $lt_ar_try) 2>&5
5569
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5570
test $ac_status = 0; }
5571
if test "$ac_status" -eq 0; then
5572
# Ensure the archiver fails upon bogus file names.
5573
rm -f conftest.$ac_objext libconftest.a
5574
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5575
(eval $lt_ar_try) 2>&5
5577
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5578
test $ac_status = 0; }
5579
if test "$ac_status" -ne 0; then
5583
rm -f conftest.* libconftest.a
5586
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5589
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5590
$as_echo "$lt_cv_ar_at_file" >&6; }
5592
if test "x$lt_cv_ar_at_file" = xno; then
5595
archiver_list_spec=$lt_cv_ar_at_file
5604
if test -n "$ac_tool_prefix"; then
5605
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5606
set dummy ${ac_tool_prefix}strip; ac_word=$2
5607
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5608
$as_echo_n "checking for $ac_word... " >&6; }
5609
if ${ac_cv_prog_STRIP+:} false; then :
5610
$as_echo_n "(cached) " >&6
5612
if test -n "$STRIP"; then
5613
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5615
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5619
test -z "$as_dir" && as_dir=.
5620
for ac_exec_ext in '' $ac_executable_extensions; do
5621
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5622
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5623
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5632
STRIP=$ac_cv_prog_STRIP
5633
if test -n "$STRIP"; then
5634
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5635
$as_echo "$STRIP" >&6; }
5637
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5638
$as_echo "no" >&6; }
5643
if test -z "$ac_cv_prog_STRIP"; then
5645
# Extract the first word of "strip", so it can be a program name with args.
5646
set dummy strip; ac_word=$2
5647
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5648
$as_echo_n "checking for $ac_word... " >&6; }
5649
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5650
$as_echo_n "(cached) " >&6
5652
if test -n "$ac_ct_STRIP"; then
5653
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5655
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5659
test -z "$as_dir" && as_dir=.
5660
for ac_exec_ext in '' $ac_executable_extensions; do
5661
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5662
ac_cv_prog_ac_ct_STRIP="strip"
5663
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5672
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5673
if test -n "$ac_ct_STRIP"; then
5674
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5675
$as_echo "$ac_ct_STRIP" >&6; }
5677
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5678
$as_echo "no" >&6; }
5681
if test "x$ac_ct_STRIP" = x; then
5684
case $cross_compiling:$ac_tool_warned in
5686
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5687
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5688
ac_tool_warned=yes ;;
5693
STRIP="$ac_cv_prog_STRIP"
5696
test -z "$STRIP" && STRIP=:
5703
if test -n "$ac_tool_prefix"; then
5704
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5705
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5706
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5707
$as_echo_n "checking for $ac_word... " >&6; }
5708
if ${ac_cv_prog_RANLIB+:} false; then :
5709
$as_echo_n "(cached) " >&6
5711
if test -n "$RANLIB"; then
5712
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5714
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5718
test -z "$as_dir" && as_dir=.
5719
for ac_exec_ext in '' $ac_executable_extensions; do
5720
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5721
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5722
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5731
RANLIB=$ac_cv_prog_RANLIB
5732
if test -n "$RANLIB"; then
5733
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5734
$as_echo "$RANLIB" >&6; }
5736
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5737
$as_echo "no" >&6; }
5742
if test -z "$ac_cv_prog_RANLIB"; then
5743
ac_ct_RANLIB=$RANLIB
5744
# Extract the first word of "ranlib", so it can be a program name with args.
5745
set dummy ranlib; ac_word=$2
5746
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5747
$as_echo_n "checking for $ac_word... " >&6; }
5748
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5749
$as_echo_n "(cached) " >&6
5751
if test -n "$ac_ct_RANLIB"; then
5752
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5754
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758
test -z "$as_dir" && as_dir=.
5759
for ac_exec_ext in '' $ac_executable_extensions; do
5760
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5761
ac_cv_prog_ac_ct_RANLIB="ranlib"
5762
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5771
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5772
if test -n "$ac_ct_RANLIB"; then
5773
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5774
$as_echo "$ac_ct_RANLIB" >&6; }
5776
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5777
$as_echo "no" >&6; }
5780
if test "x$ac_ct_RANLIB" = x; then
5783
case $cross_compiling:$ac_tool_warned in
5785
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5786
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5787
ac_tool_warned=yes ;;
5789
RANLIB=$ac_ct_RANLIB
5792
RANLIB="$ac_cv_prog_RANLIB"
5795
test -z "$RANLIB" && RANLIB=:
5802
# Determine commands to create old-style static archives.
5803
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5804
old_postinstall_cmds='chmod 644 $oldlib'
5805
old_postuninstall_cmds=
5807
if test -n "$RANLIB"; then
5810
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5813
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5816
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5821
lock_old_archive_extraction=yes ;;
5823
lock_old_archive_extraction=no ;;
5864
# If no C compiler was specified, use CC.
5867
# If no C compiler flags were specified, use CFLAGS.
5868
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5870
# Allow CC to be a program name with arguments.
5874
# Check for command to grab the raw symbol name followed by C symbol from nm.
5875
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5876
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5877
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5878
$as_echo_n "(cached) " >&6
5881
# These are sane defaults that work on at least a few old systems.
5882
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5884
# Character class describing NM global symbol codes.
5885
symcode='[BCDEGRST]'
5887
# Regexp to match symbols that can be accessed directly from C.
5888
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5890
# Define system-specific variables.
5895
cygwin* | mingw* | pw32* | cegcc*)
5896
symcode='[ABCDGISTW]'
5899
if test "$host_cpu" = ia64; then
5900
symcode='[ABCDEGRST]'
5904
symcode='[BCDEGRST]'
5907
symcode='[BCDEGQRST]'
5918
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5926
# If we're using GNU nm, then use its standard symbol codes.
5927
case `$NM -V 2>&1` in
5928
*GNU* | *'with BFD'*)
5929
symcode='[ABCDGIRSTW]' ;;
5932
# Transform an extracted symbol line into a proper C declaration.
5933
# Some systems (esp. on ia64) link data and code symbols differently,
5934
# so use this general approach.
5935
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5937
# Transform an extracted symbol line into symbol name and symbol address
5938
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5939
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'"
5941
# Handle CRLF in mingw tool chain
5945
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5949
# Try without a prefix underscore, then with it.
5950
for ac_symprfx in "" "_"; do
5952
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5953
symxfrm="\\1 $ac_symprfx\\2 \\2"
5955
# Write the raw and C identifiers.
5956
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5957
# Fake it for dumpbin and say T for any non-static function
5958
# and D for any global variable.
5959
# Also find C++ and __fastcall symbols from MSVC++,
5960
# which start with @ or ?.
5961
lt_cv_sys_global_symbol_pipe="$AWK '"\
5962
" {last_section=section; section=\$ 3};"\
5963
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5964
" \$ 0!~/External *\|/{next};"\
5965
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5966
" {if(hide[section]) next};"\
5967
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5968
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5969
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5970
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5971
" ' prfx=^$ac_symprfx"
5973
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5975
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5977
# Check to see that the pipe works correctly.
5981
cat > conftest.$ac_ext <<_LT_EOF
5986
void nm_test_func(void);
5987
void nm_test_func(void){}
5991
int main(){nm_test_var='a';nm_test_func();return(0);}
5994
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5995
(eval $ac_compile) 2>&5
5997
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5998
test $ac_status = 0; }; then
5999
# Now try to grab the symbols.
6001
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6002
(eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6004
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6005
test $ac_status = 0; } && test -s "$nlist"; then
6006
# Try sorting and uniquifying the output.
6007
if sort "$nlist" | uniq > "$nlist"T; then
6008
mv -f "$nlist"T "$nlist"
6013
# Make sure that we snagged all the symbols we need.
6014
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6015
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6016
cat <<_LT_EOF > conftest.$ac_ext
6017
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6018
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6019
/* DATA imports from DLLs on WIN32 con't be const, because runtime
6020
relocations are performed -- see ld's documentation on pseudo-relocs. */
6021
# define LT_DLSYM_CONST
6022
#elif defined(__osf__)
6023
/* This system does not cope well with relocations in const data. */
6024
# define LT_DLSYM_CONST
6026
# define LT_DLSYM_CONST const
6034
# Now generate the symbol file.
6035
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6037
cat <<_LT_EOF >> conftest.$ac_ext
6039
/* The mapping between symbol names and symbols. */
6040
LT_DLSYM_CONST struct {
6044
lt__PROGRAM__LTX_preloaded_symbols[] =
6046
{ "@PROGRAM@", (void *) 0 },
6048
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6049
cat <<\_LT_EOF >> conftest.$ac_ext
6053
/* This works around a problem in FreeBSD linker */
6054
#ifdef FREEBSD_WORKAROUND
6055
static const void *lt_preloaded_setup() {
6056
return lt__PROGRAM__LTX_preloaded_symbols;
6064
# Now try linking the two files.
6065
mv conftest.$ac_objext conftstm.$ac_objext
6066
lt_globsym_save_LIBS=$LIBS
6067
lt_globsym_save_CFLAGS=$CFLAGS
6068
LIBS="conftstm.$ac_objext"
6069
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6070
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6071
(eval $ac_link) 2>&5
6073
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6074
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6077
LIBS=$lt_globsym_save_LIBS
6078
CFLAGS=$lt_globsym_save_CFLAGS
6080
echo "cannot find nm_test_func in $nlist" >&5
6083
echo "cannot find nm_test_var in $nlist" >&5
6086
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6089
echo "$progname: failed program was:" >&5
6090
cat conftest.$ac_ext >&5
6092
rm -rf conftest* conftst*
6094
# Do not use the global_symbol_pipe unless it works.
6095
if test "$pipe_works" = yes; then
6098
lt_cv_sys_global_symbol_pipe=
6104
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6105
lt_cv_sys_global_symbol_to_cdecl=
6107
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6108
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6109
$as_echo "failed" >&6; }
6111
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6112
$as_echo "ok" >&6; }
6115
# Response file support.
6116
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6117
nm_file_list_spec='@'
6118
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6119
nm_file_list_spec='@'
6148
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6149
$as_echo_n "checking for sysroot... " >&6; }
6151
# Check whether --with-sysroot was given.
6152
if test "${with_sysroot+set}" = set; then :
6153
withval=$with_sysroot;
6160
case ${with_sysroot} in #(
6162
if test "$GCC" = yes; then
6163
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6167
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6172
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6173
$as_echo "${with_sysroot}" >&6; }
6174
as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6178
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6179
$as_echo "${lt_sysroot:-no}" >&6; }
6185
# Check whether --enable-libtool-lock was given.
6186
if test "${enable_libtool_lock+set}" = set; then :
6187
enableval=$enable_libtool_lock;
6190
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6192
# Some flags need to be propagated to the compiler or linker for good
6196
# Find out which ABI we are using.
6197
echo 'int i;' > conftest.$ac_ext
6198
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6199
(eval $ac_compile) 2>&5
6201
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6202
test $ac_status = 0; }; then
6203
case `/usr/bin/file conftest.$ac_objext` in
6215
# Find out which ABI we are using.
6216
echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6217
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6218
(eval $ac_compile) 2>&5
6220
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6221
test $ac_status = 0; }; then
6222
if test "$lt_cv_prog_gnu_ld" = yes; then
6223
case `/usr/bin/file conftest.$ac_objext` in
6225
LD="${LD-ld} -melf32bsmip"
6228
LD="${LD-ld} -melf32bmipn32"
6231
LD="${LD-ld} -melf64bmip"
6235
case `/usr/bin/file conftest.$ac_objext` in
6251
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6252
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6253
# Find out which ABI we are using.
6254
echo 'int i;' > conftest.$ac_ext
6255
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6256
(eval $ac_compile) 2>&5
6258
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6259
test $ac_status = 0; }; then
6260
case `/usr/bin/file conftest.o` in
6263
x86_64-*kfreebsd*-gnu)
6264
LD="${LD-ld} -m elf_i386_fbsd"
6267
LD="${LD-ld} -m elf_i386"
6269
ppc64-*linux*|powerpc64-*linux*)
6270
LD="${LD-ld} -m elf32ppclinux"
6273
LD="${LD-ld} -m elf_s390"
6276
LD="${LD-ld} -m elf32_sparc"
6282
x86_64-*kfreebsd*-gnu)
6283
LD="${LD-ld} -m elf_x86_64_fbsd"
6286
LD="${LD-ld} -m elf_x86_64"
6288
ppc*-*linux*|powerpc*-*linux*)
6289
LD="${LD-ld} -m elf64ppc"
6291
s390*-*linux*|s390*-*tpf*)
6292
LD="${LD-ld} -m elf64_s390"
6295
LD="${LD-ld} -m elf64_sparc"
6305
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
6306
SAVE_CFLAGS="$CFLAGS"
6307
CFLAGS="$CFLAGS -belf"
6308
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6309
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6310
if ${lt_cv_cc_needs_belf+:} false; then :
6311
$as_echo_n "(cached) " >&6
6314
ac_cpp='$CPP $CPPFLAGS'
6315
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6316
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6317
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6319
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6320
/* end confdefs.h. */
6330
if ac_fn_c_try_link "$LINENO"; then :
6331
lt_cv_cc_needs_belf=yes
6333
lt_cv_cc_needs_belf=no
6335
rm -f core conftest.err conftest.$ac_objext \
6336
conftest$ac_exeext conftest.$ac_ext
6338
ac_cpp='$CPP $CPPFLAGS'
6339
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6340
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6341
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6344
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6345
$as_echo "$lt_cv_cc_needs_belf" >&6; }
6346
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6347
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6348
CFLAGS="$SAVE_CFLAGS"
6352
# Find out which ABI we are using.
6353
echo 'int i;' > conftest.$ac_ext
6354
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6355
(eval $ac_compile) 2>&5
6357
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6358
test $ac_status = 0; }; then
6359
case `/usr/bin/file conftest.o` in
6361
case $lt_cv_prog_gnu_ld in
6362
yes*) LD="${LD-ld} -m elf64_sparc" ;;
6364
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6376
need_locks="$enable_libtool_lock"
6378
if test -n "$ac_tool_prefix"; then
6379
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6380
set dummy ${ac_tool_prefix}mt; ac_word=$2
6381
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6382
$as_echo_n "checking for $ac_word... " >&6; }
6383
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6384
$as_echo_n "(cached) " >&6
6386
if test -n "$MANIFEST_TOOL"; then
6387
ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6389
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6393
test -z "$as_dir" && as_dir=.
6394
for ac_exec_ext in '' $ac_executable_extensions; do
6395
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6396
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6397
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6406
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6407
if test -n "$MANIFEST_TOOL"; then
6408
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6409
$as_echo "$MANIFEST_TOOL" >&6; }
6411
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6412
$as_echo "no" >&6; }
6417
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6418
ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6419
# Extract the first word of "mt", so it can be a program name with args.
6420
set dummy mt; ac_word=$2
6421
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6422
$as_echo_n "checking for $ac_word... " >&6; }
6423
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6424
$as_echo_n "(cached) " >&6
6426
if test -n "$ac_ct_MANIFEST_TOOL"; then
6427
ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6429
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6433
test -z "$as_dir" && as_dir=.
6434
for ac_exec_ext in '' $ac_executable_extensions; do
6435
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6436
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6437
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6446
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6447
if test -n "$ac_ct_MANIFEST_TOOL"; then
6448
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6449
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6451
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452
$as_echo "no" >&6; }
6455
if test "x$ac_ct_MANIFEST_TOOL" = x; then
6458
case $cross_compiling:$ac_tool_warned in
6460
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6461
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6462
ac_tool_warned=yes ;;
6464
MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6467
MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6470
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6471
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6472
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6473
if ${lt_cv_path_mainfest_tool+:} false; then :
6474
$as_echo_n "(cached) " >&6
6476
lt_cv_path_mainfest_tool=no
6477
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6478
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6479
cat conftest.err >&5
6480
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6481
lt_cv_path_mainfest_tool=yes
6485
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6486
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6487
if test "x$lt_cv_path_mainfest_tool" != xyes; then
6497
rhapsody* | darwin*)
6498
if test -n "$ac_tool_prefix"; then
6499
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6500
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6501
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6502
$as_echo_n "checking for $ac_word... " >&6; }
6503
if ${ac_cv_prog_DSYMUTIL+:} false; then :
6504
$as_echo_n "(cached) " >&6
6506
if test -n "$DSYMUTIL"; then
6507
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6509
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6513
test -z "$as_dir" && as_dir=.
6514
for ac_exec_ext in '' $ac_executable_extensions; do
6515
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6516
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6517
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6526
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6527
if test -n "$DSYMUTIL"; then
6528
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6529
$as_echo "$DSYMUTIL" >&6; }
6531
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532
$as_echo "no" >&6; }
6537
if test -z "$ac_cv_prog_DSYMUTIL"; then
6538
ac_ct_DSYMUTIL=$DSYMUTIL
6539
# Extract the first word of "dsymutil", so it can be a program name with args.
6540
set dummy dsymutil; ac_word=$2
6541
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6542
$as_echo_n "checking for $ac_word... " >&6; }
6543
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6544
$as_echo_n "(cached) " >&6
6546
if test -n "$ac_ct_DSYMUTIL"; then
6547
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6549
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6553
test -z "$as_dir" && as_dir=.
6554
for ac_exec_ext in '' $ac_executable_extensions; do
6555
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6556
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6557
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6566
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6567
if test -n "$ac_ct_DSYMUTIL"; then
6568
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6569
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6571
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6572
$as_echo "no" >&6; }
6575
if test "x$ac_ct_DSYMUTIL" = x; then
6578
case $cross_compiling:$ac_tool_warned in
6580
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6581
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6582
ac_tool_warned=yes ;;
6584
DSYMUTIL=$ac_ct_DSYMUTIL
6587
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6590
if test -n "$ac_tool_prefix"; then
6591
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6592
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6593
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6594
$as_echo_n "checking for $ac_word... " >&6; }
6595
if ${ac_cv_prog_NMEDIT+:} false; then :
6596
$as_echo_n "(cached) " >&6
6598
if test -n "$NMEDIT"; then
6599
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6601
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6605
test -z "$as_dir" && as_dir=.
6606
for ac_exec_ext in '' $ac_executable_extensions; do
6607
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6608
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6609
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6618
NMEDIT=$ac_cv_prog_NMEDIT
6619
if test -n "$NMEDIT"; then
6620
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6621
$as_echo "$NMEDIT" >&6; }
6623
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6624
$as_echo "no" >&6; }
6629
if test -z "$ac_cv_prog_NMEDIT"; then
6630
ac_ct_NMEDIT=$NMEDIT
6631
# Extract the first word of "nmedit", so it can be a program name with args.
6632
set dummy nmedit; ac_word=$2
6633
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6634
$as_echo_n "checking for $ac_word... " >&6; }
6635
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6636
$as_echo_n "(cached) " >&6
6638
if test -n "$ac_ct_NMEDIT"; then
6639
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6641
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645
test -z "$as_dir" && as_dir=.
6646
for ac_exec_ext in '' $ac_executable_extensions; do
6647
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6648
ac_cv_prog_ac_ct_NMEDIT="nmedit"
6649
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6658
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6659
if test -n "$ac_ct_NMEDIT"; then
6660
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6661
$as_echo "$ac_ct_NMEDIT" >&6; }
6663
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6664
$as_echo "no" >&6; }
6667
if test "x$ac_ct_NMEDIT" = x; then
6670
case $cross_compiling:$ac_tool_warned in
6672
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6673
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6674
ac_tool_warned=yes ;;
6676
NMEDIT=$ac_ct_NMEDIT
6679
NMEDIT="$ac_cv_prog_NMEDIT"
6682
if test -n "$ac_tool_prefix"; then
6683
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6684
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6685
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6686
$as_echo_n "checking for $ac_word... " >&6; }
6687
if ${ac_cv_prog_LIPO+:} false; then :
6688
$as_echo_n "(cached) " >&6
6690
if test -n "$LIPO"; then
6691
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6693
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6697
test -z "$as_dir" && as_dir=.
6698
for ac_exec_ext in '' $ac_executable_extensions; do
6699
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6700
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6701
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6710
LIPO=$ac_cv_prog_LIPO
6711
if test -n "$LIPO"; then
6712
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6713
$as_echo "$LIPO" >&6; }
6715
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6716
$as_echo "no" >&6; }
6721
if test -z "$ac_cv_prog_LIPO"; then
6723
# Extract the first word of "lipo", so it can be a program name with args.
6724
set dummy lipo; ac_word=$2
6725
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6726
$as_echo_n "checking for $ac_word... " >&6; }
6727
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6728
$as_echo_n "(cached) " >&6
6730
if test -n "$ac_ct_LIPO"; then
6731
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6733
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737
test -z "$as_dir" && as_dir=.
6738
for ac_exec_ext in '' $ac_executable_extensions; do
6739
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6740
ac_cv_prog_ac_ct_LIPO="lipo"
6741
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6750
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6751
if test -n "$ac_ct_LIPO"; then
6752
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6753
$as_echo "$ac_ct_LIPO" >&6; }
6755
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6756
$as_echo "no" >&6; }
6759
if test "x$ac_ct_LIPO" = x; then
6762
case $cross_compiling:$ac_tool_warned in
6764
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6765
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6766
ac_tool_warned=yes ;;
6771
LIPO="$ac_cv_prog_LIPO"
6774
if test -n "$ac_tool_prefix"; then
6775
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6776
set dummy ${ac_tool_prefix}otool; ac_word=$2
6777
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6778
$as_echo_n "checking for $ac_word... " >&6; }
6779
if ${ac_cv_prog_OTOOL+:} false; then :
6780
$as_echo_n "(cached) " >&6
6782
if test -n "$OTOOL"; then
6783
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6785
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6789
test -z "$as_dir" && as_dir=.
6790
for ac_exec_ext in '' $ac_executable_extensions; do
6791
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6792
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6793
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6802
OTOOL=$ac_cv_prog_OTOOL
6803
if test -n "$OTOOL"; then
6804
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6805
$as_echo "$OTOOL" >&6; }
6807
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6808
$as_echo "no" >&6; }
6813
if test -z "$ac_cv_prog_OTOOL"; then
6815
# Extract the first word of "otool", so it can be a program name with args.
6816
set dummy otool; ac_word=$2
6817
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6818
$as_echo_n "checking for $ac_word... " >&6; }
6819
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6820
$as_echo_n "(cached) " >&6
6822
if test -n "$ac_ct_OTOOL"; then
6823
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6825
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829
test -z "$as_dir" && as_dir=.
6830
for ac_exec_ext in '' $ac_executable_extensions; do
6831
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6832
ac_cv_prog_ac_ct_OTOOL="otool"
6833
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6842
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6843
if test -n "$ac_ct_OTOOL"; then
6844
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6845
$as_echo "$ac_ct_OTOOL" >&6; }
6847
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6848
$as_echo "no" >&6; }
6851
if test "x$ac_ct_OTOOL" = x; then
6854
case $cross_compiling:$ac_tool_warned in
6856
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6857
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6858
ac_tool_warned=yes ;;
6863
OTOOL="$ac_cv_prog_OTOOL"
6866
if test -n "$ac_tool_prefix"; then
6867
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6868
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6869
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6870
$as_echo_n "checking for $ac_word... " >&6; }
6871
if ${ac_cv_prog_OTOOL64+:} false; then :
6872
$as_echo_n "(cached) " >&6
6874
if test -n "$OTOOL64"; then
6875
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6877
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6881
test -z "$as_dir" && as_dir=.
6882
for ac_exec_ext in '' $ac_executable_extensions; do
6883
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6884
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6885
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6894
OTOOL64=$ac_cv_prog_OTOOL64
6895
if test -n "$OTOOL64"; then
6896
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6897
$as_echo "$OTOOL64" >&6; }
6899
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6900
$as_echo "no" >&6; }
6905
if test -z "$ac_cv_prog_OTOOL64"; then
6906
ac_ct_OTOOL64=$OTOOL64
6907
# Extract the first word of "otool64", so it can be a program name with args.
6908
set dummy otool64; ac_word=$2
6909
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6910
$as_echo_n "checking for $ac_word... " >&6; }
6911
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6912
$as_echo_n "(cached) " >&6
6914
if test -n "$ac_ct_OTOOL64"; then
6915
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6917
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6921
test -z "$as_dir" && as_dir=.
6922
for ac_exec_ext in '' $ac_executable_extensions; do
6923
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6924
ac_cv_prog_ac_ct_OTOOL64="otool64"
6925
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6934
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6935
if test -n "$ac_ct_OTOOL64"; then
6936
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6937
$as_echo "$ac_ct_OTOOL64" >&6; }
6939
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6940
$as_echo "no" >&6; }
6943
if test "x$ac_ct_OTOOL64" = x; then
6946
case $cross_compiling:$ac_tool_warned in
6948
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6949
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6950
ac_tool_warned=yes ;;
6952
OTOOL64=$ac_ct_OTOOL64
6955
OTOOL64="$ac_cv_prog_OTOOL64"
6984
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6985
$as_echo_n "checking for -single_module linker flag... " >&6; }
6986
if ${lt_cv_apple_cc_single_mod+:} false; then :
6987
$as_echo_n "(cached) " >&6
6989
lt_cv_apple_cc_single_mod=no
6990
if test -z "${LT_MULTI_MODULE}"; then
6991
# By default we will add the -single_module flag. You can override
6992
# by either setting the environment variable LT_MULTI_MODULE
6993
# non-empty at configure time, or by adding -multi_module to the
6995
rm -rf libconftest.dylib*
6996
echo "int foo(void){return 1;}" > conftest.c
6997
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6998
-dynamiclib -Wl,-single_module conftest.c" >&5
6999
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7000
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7002
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7003
lt_cv_apple_cc_single_mod=yes
7005
cat conftest.err >&5
7007
rm -rf libconftest.dylib*
7011
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7012
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7013
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7014
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7015
if ${lt_cv_ld_exported_symbols_list+:} false; then :
7016
$as_echo_n "(cached) " >&6
7018
lt_cv_ld_exported_symbols_list=no
7019
save_LDFLAGS=$LDFLAGS
7020
echo "_main" > conftest.sym
7021
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7022
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023
/* end confdefs.h. */
7033
if ac_fn_c_try_link "$LINENO"; then :
7034
lt_cv_ld_exported_symbols_list=yes
7036
lt_cv_ld_exported_symbols_list=no
7038
rm -f core conftest.err conftest.$ac_objext \
7039
conftest$ac_exeext conftest.$ac_ext
7040
LDFLAGS="$save_LDFLAGS"
7043
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7044
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7045
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7046
$as_echo_n "checking for -force_load linker flag... " >&6; }
7047
if ${lt_cv_ld_force_load+:} false; then :
7048
$as_echo_n "(cached) " >&6
7050
lt_cv_ld_force_load=no
7051
cat > conftest.c << _LT_EOF
7052
int forced_loaded() { return 2;}
7054
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7055
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7056
echo "$AR cru libconftest.a conftest.o" >&5
7057
$AR cru libconftest.a conftest.o 2>&5
7058
echo "$RANLIB libconftest.a" >&5
7059
$RANLIB libconftest.a 2>&5
7060
cat > conftest.c << _LT_EOF
7061
int main() { return 0;}
7063
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7064
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7066
if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7067
lt_cv_ld_force_load=yes
7069
cat conftest.err >&5
7071
rm -f conftest.err libconftest.a conftest conftest.c
7072
rm -rf conftest.dSYM
7075
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7076
$as_echo "$lt_cv_ld_force_load" >&6; }
7078
rhapsody* | darwin1.[012])
7079
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7081
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7082
darwin*) # darwin 5.x on
7083
# if running on 10.5 or later, the deployment target defaults
7084
# to the OS version, if on x86, and 10.4, the deployment
7085
# target defaults to 10.4. Don't you love it?
7086
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7087
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7088
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7090
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7092
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7096
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7097
_lt_dar_single_mod='$single_module'
7099
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7100
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7102
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7104
if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7105
_lt_dsymutil='~$DSYMUTIL $lib || :'
7113
ac_cpp='$CPP $CPPFLAGS'
7114
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7115
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7116
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7117
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7118
$as_echo_n "checking how to run the C preprocessor... " >&6; }
7119
# On Suns, sometimes $CPP names a directory.
7120
if test -n "$CPP" && test -d "$CPP"; then
7123
if test -z "$CPP"; then
7124
if ${ac_cv_prog_CPP+:} false; then :
7125
$as_echo_n "(cached) " >&6
7127
# Double quotes because CPP needs to be expanded
7128
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7131
for ac_c_preproc_warn_flag in '' yes
7133
# Use a header file that comes with gcc, so configuring glibc
7134
# with a fresh cross-compiler works.
7135
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7136
# <limits.h> exists even on freestanding compilers.
7137
# On the NeXT, cc -E runs the code through the compiler's parser,
7138
# not just through cpp. "Syntax error" is here to catch this case.
7139
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7140
/* end confdefs.h. */
7142
# include <limits.h>
7144
# include <assert.h>
7148
if ac_fn_c_try_cpp "$LINENO"; then :
7151
# Broken: fails on valid input.
7154
rm -f conftest.err conftest.i conftest.$ac_ext
7156
# OK, works on sane cases. Now check whether nonexistent headers
7157
# can be detected and how.
7158
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7159
/* end confdefs.h. */
7160
#include <ac_nonexistent.h>
7162
if ac_fn_c_try_cpp "$LINENO"; then :
7163
# Broken: success on invalid input.
7166
# Passes both tests.
7170
rm -f conftest.err conftest.i conftest.$ac_ext
7173
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7174
rm -f conftest.i conftest.err conftest.$ac_ext
7175
if $ac_preproc_ok; then :
7187
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7188
$as_echo "$CPP" >&6; }
7190
for ac_c_preproc_warn_flag in '' yes
7192
# Use a header file that comes with gcc, so configuring glibc
7193
# with a fresh cross-compiler works.
7194
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7195
# <limits.h> exists even on freestanding compilers.
7196
# On the NeXT, cc -E runs the code through the compiler's parser,
7197
# not just through cpp. "Syntax error" is here to catch this case.
7198
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7199
/* end confdefs.h. */
7201
# include <limits.h>
7203
# include <assert.h>
7207
if ac_fn_c_try_cpp "$LINENO"; then :
7210
# Broken: fails on valid input.
7213
rm -f conftest.err conftest.i conftest.$ac_ext
7215
# OK, works on sane cases. Now check whether nonexistent headers
7216
# can be detected and how.
7217
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7218
/* end confdefs.h. */
7219
#include <ac_nonexistent.h>
7221
if ac_fn_c_try_cpp "$LINENO"; then :
7222
# Broken: success on invalid input.
7225
# Passes both tests.
7229
rm -f conftest.err conftest.i conftest.$ac_ext
7232
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7233
rm -f conftest.i conftest.err conftest.$ac_ext
7234
if $ac_preproc_ok; then :
7237
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7238
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7239
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7240
See \`config.log' for more details" "$LINENO" 5; }
7244
ac_cpp='$CPP $CPPFLAGS'
7245
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7246
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7247
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7250
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7251
$as_echo_n "checking for ANSI C header files... " >&6; }
7252
if ${ac_cv_header_stdc+:} false; then :
7253
$as_echo_n "(cached) " >&6
7255
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7256
/* end confdefs.h. */
7270
if ac_fn_c_try_compile "$LINENO"; then :
7271
ac_cv_header_stdc=yes
7273
ac_cv_header_stdc=no
7275
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7277
if test $ac_cv_header_stdc = yes; then
7278
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7279
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7280
/* end confdefs.h. */
7284
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7285
$EGREP "memchr" >/dev/null 2>&1; then :
7288
ac_cv_header_stdc=no
7294
if test $ac_cv_header_stdc = yes; then
7295
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7296
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7297
/* end confdefs.h. */
7301
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7302
$EGREP "free" >/dev/null 2>&1; then :
7305
ac_cv_header_stdc=no
7311
if test $ac_cv_header_stdc = yes; then
7312
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7313
if test "$cross_compiling" = yes; then :
7316
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317
/* end confdefs.h. */
7320
#if ((' ' & 0x0FF) == 0x020)
7321
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7322
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7324
# define ISLOWER(c) \
7325
(('a' <= (c) && (c) <= 'i') \
7326
|| ('j' <= (c) && (c) <= 'r') \
7327
|| ('s' <= (c) && (c) <= 'z'))
7328
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7331
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7336
for (i = 0; i < 256; i++)
7337
if (XOR (islower (i), ISLOWER (i))
7338
|| toupper (i) != TOUPPER (i))
7343
if ac_fn_c_try_run "$LINENO"; then :
7346
ac_cv_header_stdc=no
7348
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7349
conftest.$ac_objext conftest.beam conftest.$ac_ext
7354
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7355
$as_echo "$ac_cv_header_stdc" >&6; }
7356
if test $ac_cv_header_stdc = yes; then
7358
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
7362
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7363
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7364
inttypes.h stdint.h unistd.h
7366
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7367
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7369
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7370
cat >>confdefs.h <<_ACEOF
7371
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7379
for ac_header in dlfcn.h
7381
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7383
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7384
cat >>confdefs.h <<_ACEOF
7385
#define HAVE_DLFCN_H 1
7406
# Check whether --enable-shared was given.
7407
if test "${enable_shared+set}" = set; then :
7408
enableval=$enable_shared; p=${PACKAGE-default}
7410
yes) enable_shared=yes ;;
7411
no) enable_shared=no ;;
7414
# Look at the argument we got. We use all the common list separators.
7415
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7416
for pkg in $enableval; do
7418
if test "X$pkg" = "X$p"; then
7437
# Check whether --enable-static was given.
7438
if test "${enable_static+set}" = set; then :
7439
enableval=$enable_static; p=${PACKAGE-default}
7441
yes) enable_static=yes ;;
7442
no) enable_static=no ;;
7445
# Look at the argument we got. We use all the common list separators.
7446
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7447
for pkg in $enableval; do
7449
if test "X$pkg" = "X$p"; then
7469
# Check whether --with-pic was given.
7470
if test "${with_pic+set}" = set; then :
7471
withval=$with_pic; pic_mode="$withval"
7477
test -z "$pic_mode" && pic_mode=default
7485
# Check whether --enable-fast-install was given.
7486
if test "${enable_fast_install+set}" = set; then :
7487
enableval=$enable_fast_install; p=${PACKAGE-default}
7489
yes) enable_fast_install=yes ;;
7490
no) enable_fast_install=no ;;
7492
enable_fast_install=no
7493
# Look at the argument we got. We use all the common list separators.
7494
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7495
for pkg in $enableval; do
7497
if test "X$pkg" = "X$p"; then
7498
enable_fast_install=yes
7505
enable_fast_install=yes
7518
# This can be used to rebuild libtool when needed
7519
LIBTOOL_DEPS="$ltmain"
7521
# Always use our own libtool.
7522
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7549
test -z "$LN_S" && LN_S="ln -s"
7564
if test -n "${ZSH_VERSION+set}" ; then
7565
setopt NO_GLOB_SUBST
7568
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7569
$as_echo_n "checking for objdir... " >&6; }
7570
if ${lt_cv_objdir+:} false; then :
7571
$as_echo_n "(cached) " >&6
7573
rm -f .libs 2>/dev/null
7574
mkdir .libs 2>/dev/null
7575
if test -d .libs; then
7578
# MS-DOS does not allow filenames that begin with a dot.
7581
rmdir .libs 2>/dev/null
7583
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7584
$as_echo "$lt_cv_objdir" >&6; }
7585
objdir=$lt_cv_objdir
7591
cat >>confdefs.h <<_ACEOF
7592
#define LT_OBJDIR "$lt_cv_objdir/"
7600
# AIX sometimes has problems with the GCC collect2 program. For some
7601
# reason, if we set the COLLECT_NAMES environment variable, the problems
7602
# vanish in a puff of smoke.
7603
if test "X${COLLECT_NAMES+set}" != Xset; then
7605
export COLLECT_NAMES
7612
can_build_shared=yes
7614
# All known linkers require a `.a' archive for static linking (except MSVC,
7615
# which needs '.lib').
7618
with_gnu_ld="$lt_cv_prog_gnu_ld"
7621
old_CFLAGS="$CFLAGS"
7623
# Set sane defaults for various variables
7624
test -z "$CC" && CC=cc
7625
test -z "$LTCC" && LTCC=$CC
7626
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7627
test -z "$LD" && LD=ld
7628
test -z "$ac_objext" && ac_objext=o
7630
for cc_temp in $compiler""; do
7632
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7633
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7638
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7641
# Only perform the check for file, if the check method requires it
7642
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7643
case $deplibs_check_method in
7645
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7646
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7647
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7648
if ${lt_cv_path_MAGIC_CMD+:} false; then :
7649
$as_echo_n "(cached) " >&6
7653
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7656
lt_save_MAGIC_CMD="$MAGIC_CMD"
7657
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7658
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7659
for ac_dir in $ac_dummy; do
7661
test -z "$ac_dir" && ac_dir=.
7662
if test -f $ac_dir/${ac_tool_prefix}file; then
7663
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7664
if test -n "$file_magic_test_file"; then
7665
case $deplibs_check_method in
7667
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7668
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7669
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7670
$EGREP "$file_magic_regex" > /dev/null; then
7675
*** Warning: the command libtool uses to detect shared libraries,
7676
*** $file_magic_cmd, produces output that libtool cannot recognize.
7677
*** The result is that libtool may fail to recognize shared libraries
7678
*** as such. This will affect the creation of libtool libraries that
7679
*** depend on shared libraries, but programs linked with such libtool
7680
*** libraries will work regardless of this problem. Nevertheless, you
7681
*** may want to report the problem to your system manager and/or to
7682
*** bug-libtool@gnu.org
7692
MAGIC_CMD="$lt_save_MAGIC_CMD"
7697
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7698
if test -n "$MAGIC_CMD"; then
7699
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7700
$as_echo "$MAGIC_CMD" >&6; }
7702
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7703
$as_echo "no" >&6; }
7710
if test -z "$lt_cv_path_MAGIC_CMD"; then
7711
if test -n "$ac_tool_prefix"; then
7712
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7713
$as_echo_n "checking for file... " >&6; }
7714
if ${lt_cv_path_MAGIC_CMD+:} false; then :
7715
$as_echo_n "(cached) " >&6
7719
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7722
lt_save_MAGIC_CMD="$MAGIC_CMD"
7723
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7724
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7725
for ac_dir in $ac_dummy; do
7727
test -z "$ac_dir" && ac_dir=.
7728
if test -f $ac_dir/file; then
7729
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7730
if test -n "$file_magic_test_file"; then
7731
case $deplibs_check_method in
7733
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7734
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7735
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7736
$EGREP "$file_magic_regex" > /dev/null; then
7741
*** Warning: the command libtool uses to detect shared libraries,
7742
*** $file_magic_cmd, produces output that libtool cannot recognize.
7743
*** The result is that libtool may fail to recognize shared libraries
7744
*** as such. This will affect the creation of libtool libraries that
7745
*** depend on shared libraries, but programs linked with such libtool
7746
*** libraries will work regardless of this problem. Nevertheless, you
7747
*** may want to report the problem to your system manager and/or to
7748
*** bug-libtool@gnu.org
7758
MAGIC_CMD="$lt_save_MAGIC_CMD"
7763
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7764
if test -n "$MAGIC_CMD"; then
7765
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7766
$as_echo "$MAGIC_CMD" >&6; }
7768
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7769
$as_echo "no" >&6; }
7782
# Use C for the default configuration in the libtool script
7786
ac_cpp='$CPP $CPPFLAGS'
7787
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7788
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7789
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7792
# Source file extension for C test sources.
7795
# Object file extension for compiled C test sources.
7799
# Code to be used in simple compile tests
7800
lt_simple_compile_test_code="int some_variable = 0;"
7802
# Code to be used in simple link tests
7803
lt_simple_link_test_code='int main(){return(0);}'
7811
# If no C compiler was specified, use CC.
7814
# If no C compiler flags were specified, use CFLAGS.
7815
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7817
# Allow CC to be a program name with arguments.
7820
# Save the default compiler, since it gets overwritten when the other
7821
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7822
compiler_DEFAULT=$CC
7824
# save warnings/boilerplate of simple test code
7825
ac_outfile=conftest.$ac_objext
7826
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7827
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7828
_lt_compiler_boilerplate=`cat conftest.err`
7831
ac_outfile=conftest.$ac_objext
7832
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7833
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7834
_lt_linker_boilerplate=`cat conftest.err`
7839
## There is no encapsulation within the following macros, do not change
7840
## the running order or otherwise move them around unless you know exactly
7841
## what you are doing...
7842
if test -n "$compiler"; then
7844
lt_prog_compiler_no_builtin_flag=
7846
if test "$GCC" = yes; then
7847
case $cc_basename in
7849
lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7851
lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7854
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7855
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7856
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7857
$as_echo_n "(cached) " >&6
7859
lt_cv_prog_compiler_rtti_exceptions=no
7860
ac_outfile=conftest.$ac_objext
7861
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7862
lt_compiler_flag="-fno-rtti -fno-exceptions"
7863
# Insert the option either (1) after the last *FLAGS variable, or
7864
# (2) before a word containing "conftest.", or (3) at the end.
7865
# Note that $ac_compile itself does not contain backslashes and begins
7866
# with a dollar sign (not a hyphen), so the echo should work correctly.
7867
# The option is referenced via a variable to avoid confusing sed.
7868
lt_compile=`echo "$ac_compile" | $SED \
7869
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7870
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7871
-e 's:$: $lt_compiler_flag:'`
7872
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7873
(eval "$lt_compile" 2>conftest.err)
7875
cat conftest.err >&5
7876
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7877
if (exit $ac_status) && test -s "$ac_outfile"; then
7878
# The compiler can only warn and ignore the option if not recognized
7879
# So say no if there are warnings other than the usual output.
7880
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7881
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7882
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7883
lt_cv_prog_compiler_rtti_exceptions=yes
7889
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7890
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7892
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7893
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7905
lt_prog_compiler_wl=
7906
lt_prog_compiler_pic=
7907
lt_prog_compiler_static=
7910
if test "$GCC" = yes; then
7911
lt_prog_compiler_wl='-Wl,'
7912
lt_prog_compiler_static='-static'
7916
# All AIX code is PIC.
7917
if test "$host_cpu" = ia64; then
7918
# AIX 5 now supports IA64 processor
7919
lt_prog_compiler_static='-Bstatic'
7926
# see comment about AmigaOS4 .so support
7927
lt_prog_compiler_pic='-fPIC'
7930
# FIXME: we need at least 68020 code to build shared libraries, but
7931
# adding the `-m68020' flag to GCC prevents building anything better,
7933
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7938
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7939
# PIC is the default for these OSes.
7942
mingw* | cygwin* | pw32* | os2* | cegcc*)
7943
# This hack is so that the source file can tell whether it is being
7944
# built for inclusion in a dll (and should export symbols for example).
7945
# Although the cygwin gcc ignores -fPIC, still need this for old-style
7946
# (--disable-auto-import) libraries
7947
lt_prog_compiler_pic='-DDLL_EXPORT'
7950
darwin* | rhapsody*)
7951
# PIC is the default on this platform
7952
# Common symbols not allowed in MH_DYLIB files
7953
lt_prog_compiler_pic='-fno-common'
7957
# PIC is the default for Haiku.
7958
# The "-static" flag exists, but is broken.
7959
lt_prog_compiler_static=
7963
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7964
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7965
# sets the default TLS model and affects inlining.
7971
lt_prog_compiler_pic='-fPIC'
7977
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
7978
# Instead, we relocate shared libraries at runtime.
7982
# Just because we use GCC doesn't mean we suddenly get shared libraries
7983
# on systems that don't support them.
7984
lt_prog_compiler_can_build_shared=no
7989
# QNX uses GNU C++, but need to define -shared option too, otherwise
7991
lt_prog_compiler_pic='-fPIC -shared'
7995
if test -d /usr/nec; then
7996
lt_prog_compiler_pic=-Kconform_pic
8001
lt_prog_compiler_pic='-fPIC'
8005
case $cc_basename in
8006
nvcc*) # Cuda Compiler Driver 2.2
8007
lt_prog_compiler_wl='-Xlinker '
8008
lt_prog_compiler_pic='-Xcompiler -fPIC'
8012
# PORTME Check for flag to pass linker flags through the system compiler.
8015
lt_prog_compiler_wl='-Wl,'
8016
if test "$host_cpu" = ia64; then
8017
# AIX 5 now supports IA64 processor
8018
lt_prog_compiler_static='-Bstatic'
8020
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8024
mingw* | cygwin* | pw32* | os2* | cegcc*)
8025
# This hack is so that the source file can tell whether it is being
8026
# built for inclusion in a dll (and should export symbols for example).
8027
lt_prog_compiler_pic='-DDLL_EXPORT'
8030
hpux9* | hpux10* | hpux11*)
8031
lt_prog_compiler_wl='-Wl,'
8032
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8039
lt_prog_compiler_pic='+Z'
8042
# Is there a better lt_prog_compiler_static that works with the bundled CC?
8043
lt_prog_compiler_static='${wl}-a ${wl}archive'
8046
irix5* | irix6* | nonstopux*)
8047
lt_prog_compiler_wl='-Wl,'
8048
# PIC (with -KPIC) is the default.
8049
lt_prog_compiler_static='-non_shared'
8052
linux* | k*bsd*-gnu | kopensolaris*-gnu)
8053
case $cc_basename in
8054
# old Intel for x86_64 which still supported -KPIC.
8056
lt_prog_compiler_wl='-Wl,'
8057
lt_prog_compiler_pic='-KPIC'
8058
lt_prog_compiler_static='-static'
8060
# icc used to be incompatible with GCC.
8061
# ICC 10 doesn't accept -KPIC any more.
8063
lt_prog_compiler_wl='-Wl,'
8064
lt_prog_compiler_pic='-fPIC'
8065
lt_prog_compiler_static='-static'
8067
# Lahey Fortran 8.1.
8069
lt_prog_compiler_wl='-Wl,'
8070
lt_prog_compiler_pic='--shared'
8071
lt_prog_compiler_static='--static'
8074
# NAG Fortran compiler
8075
lt_prog_compiler_wl='-Wl,-Wl,,'
8076
lt_prog_compiler_pic='-PIC'
8077
lt_prog_compiler_static='-Bstatic'
8079
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8080
# Portland Group compilers (*not* the Pentium gcc compiler,
8081
# which looks to be a dead project)
8082
lt_prog_compiler_wl='-Wl,'
8083
lt_prog_compiler_pic='-fpic'
8084
lt_prog_compiler_static='-Bstatic'
8087
lt_prog_compiler_wl='-Wl,'
8088
# All Alpha code is PIC.
8089
lt_prog_compiler_static='-non_shared'
8091
xl* | bgxl* | bgf* | mpixl*)
8092
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8093
lt_prog_compiler_wl='-Wl,'
8094
lt_prog_compiler_pic='-qpic'
8095
lt_prog_compiler_static='-qstaticlink'
8098
case `$CC -V 2>&1 | sed 5q` in
8099
*Sun\ F* | *Sun*Fortran*)
8100
# Sun Fortran 8.3 passes all unrecognized flags to the linker
8101
lt_prog_compiler_pic='-KPIC'
8102
lt_prog_compiler_static='-Bstatic'
8103
lt_prog_compiler_wl=''
8107
lt_prog_compiler_pic='-KPIC'
8108
lt_prog_compiler_static='-Bstatic'
8109
lt_prog_compiler_wl='-Wl,'
8117
lt_prog_compiler_pic='-KPIC'
8118
lt_prog_compiler_static='-Bstatic'
8122
# QNX uses GNU C++, but need to define -shared option too, otherwise
8124
lt_prog_compiler_pic='-fPIC -shared'
8127
osf3* | osf4* | osf5*)
8128
lt_prog_compiler_wl='-Wl,'
8129
# All OSF/1 code is PIC.
8130
lt_prog_compiler_static='-non_shared'
8134
lt_prog_compiler_static='-non_shared'
8138
lt_prog_compiler_pic='-KPIC'
8139
lt_prog_compiler_static='-Bstatic'
8140
case $cc_basename in
8141
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8142
lt_prog_compiler_wl='-Qoption ld ';;
8144
lt_prog_compiler_wl='-Wl,';;
8149
lt_prog_compiler_wl='-Qoption ld '
8150
lt_prog_compiler_pic='-PIC'
8151
lt_prog_compiler_static='-Bstatic'
8154
sysv4 | sysv4.2uw2* | sysv4.3*)
8155
lt_prog_compiler_wl='-Wl,'
8156
lt_prog_compiler_pic='-KPIC'
8157
lt_prog_compiler_static='-Bstatic'
8161
if test -d /usr/nec ;then
8162
lt_prog_compiler_pic='-Kconform_pic'
8163
lt_prog_compiler_static='-Bstatic'
8167
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8168
lt_prog_compiler_wl='-Wl,'
8169
lt_prog_compiler_pic='-KPIC'
8170
lt_prog_compiler_static='-Bstatic'
8174
lt_prog_compiler_wl='-Wl,'
8175
lt_prog_compiler_can_build_shared=no
8179
lt_prog_compiler_pic='-pic'
8180
lt_prog_compiler_static='-Bstatic'
8184
lt_prog_compiler_can_build_shared=no
8190
# For platforms which do not support PIC, -DPIC is meaningless:
8192
lt_prog_compiler_pic=
8195
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8199
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8200
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8201
if ${lt_cv_prog_compiler_pic+:} false; then :
8202
$as_echo_n "(cached) " >&6
8204
lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8206
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8207
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8208
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8211
# Check to make sure the PIC flag actually works.
8213
if test -n "$lt_prog_compiler_pic"; then
8214
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8215
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8216
if ${lt_cv_prog_compiler_pic_works+:} false; then :
8217
$as_echo_n "(cached) " >&6
8219
lt_cv_prog_compiler_pic_works=no
8220
ac_outfile=conftest.$ac_objext
8221
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8222
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8223
# Insert the option either (1) after the last *FLAGS variable, or
8224
# (2) before a word containing "conftest.", or (3) at the end.
8225
# Note that $ac_compile itself does not contain backslashes and begins
8226
# with a dollar sign (not a hyphen), so the echo should work correctly.
8227
# The option is referenced via a variable to avoid confusing sed.
8228
lt_compile=`echo "$ac_compile" | $SED \
8229
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8230
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8231
-e 's:$: $lt_compiler_flag:'`
8232
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8233
(eval "$lt_compile" 2>conftest.err)
8235
cat conftest.err >&5
8236
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237
if (exit $ac_status) && test -s "$ac_outfile"; then
8238
# The compiler can only warn and ignore the option if not recognized
8239
# So say no if there are warnings other than the usual output.
8240
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8241
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8242
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8243
lt_cv_prog_compiler_pic_works=yes
8249
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8250
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8252
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8253
case $lt_prog_compiler_pic in
8255
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8258
lt_prog_compiler_pic=
8259
lt_prog_compiler_can_build_shared=no
8275
# Check to make sure the static flag actually works.
8277
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8278
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8279
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8280
if ${lt_cv_prog_compiler_static_works+:} false; then :
8281
$as_echo_n "(cached) " >&6
8283
lt_cv_prog_compiler_static_works=no
8284
save_LDFLAGS="$LDFLAGS"
8285
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8286
echo "$lt_simple_link_test_code" > conftest.$ac_ext
8287
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8288
# The linker can only warn and ignore the option if not recognized
8289
# So say no if there are warnings
8290
if test -s conftest.err; then
8291
# Append any errors to the config.log.
8292
cat conftest.err 1>&5
8293
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8294
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8295
if diff conftest.exp conftest.er2 >/dev/null; then
8296
lt_cv_prog_compiler_static_works=yes
8299
lt_cv_prog_compiler_static_works=yes
8303
LDFLAGS="$save_LDFLAGS"
8306
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8307
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8309
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8312
lt_prog_compiler_static=
8321
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8322
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8323
if ${lt_cv_prog_compiler_c_o+:} false; then :
8324
$as_echo_n "(cached) " >&6
8326
lt_cv_prog_compiler_c_o=no
8327
$RM -r conftest 2>/dev/null
8331
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8333
lt_compiler_flag="-o out/conftest2.$ac_objext"
8334
# Insert the option either (1) after the last *FLAGS variable, or
8335
# (2) before a word containing "conftest.", or (3) at the end.
8336
# Note that $ac_compile itself does not contain backslashes and begins
8337
# with a dollar sign (not a hyphen), so the echo should work correctly.
8338
lt_compile=`echo "$ac_compile" | $SED \
8339
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8340
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8341
-e 's:$: $lt_compiler_flag:'`
8342
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8343
(eval "$lt_compile" 2>out/conftest.err)
8345
cat out/conftest.err >&5
8346
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8349
# The compiler can only warn and ignore the option if not recognized
8350
# So say no if there are warnings
8351
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8352
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8353
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8354
lt_cv_prog_compiler_c_o=yes
8359
# SGI C++ compiler will create directory out/ii_files/ for
8360
# template instantiation
8361
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8362
$RM out/* && rmdir out
8368
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8369
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8376
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8377
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8378
if ${lt_cv_prog_compiler_c_o+:} false; then :
8379
$as_echo_n "(cached) " >&6
8381
lt_cv_prog_compiler_c_o=no
8382
$RM -r conftest 2>/dev/null
8386
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8388
lt_compiler_flag="-o out/conftest2.$ac_objext"
8389
# Insert the option either (1) after the last *FLAGS variable, or
8390
# (2) before a word containing "conftest.", or (3) at the end.
8391
# Note that $ac_compile itself does not contain backslashes and begins
8392
# with a dollar sign (not a hyphen), so the echo should work correctly.
8393
lt_compile=`echo "$ac_compile" | $SED \
8394
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8395
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8396
-e 's:$: $lt_compiler_flag:'`
8397
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8398
(eval "$lt_compile" 2>out/conftest.err)
8400
cat out/conftest.err >&5
8401
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8404
# The compiler can only warn and ignore the option if not recognized
8405
# So say no if there are warnings
8406
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8407
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8408
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8409
lt_cv_prog_compiler_c_o=yes
8414
# SGI C++ compiler will create directory out/ii_files/ for
8415
# template instantiation
8416
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8417
$RM out/* && rmdir out
8423
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8424
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8429
hard_links="nottested"
8430
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8431
# do not overwrite the value of need_locks provided by the user
8432
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8433
$as_echo_n "checking if we can lock with hard links... " >&6; }
8436
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8438
ln conftest.a conftest.b 2>&5 || hard_links=no
8439
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8440
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8441
$as_echo "$hard_links" >&6; }
8442
if test "$hard_links" = no; then
8443
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8444
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8456
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8457
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8460
allow_undefined_flag=
8461
always_export_symbols=no
8463
archive_expsym_cmds=
8464
compiler_needs_object=no
8465
enable_shared_with_static_runtimes=no
8466
export_dynamic_flag_spec=
8467
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8468
hardcode_automatic=no
8470
hardcode_direct_absolute=no
8471
hardcode_libdir_flag_spec=
8472
hardcode_libdir_flag_spec_ld=
8473
hardcode_libdir_separator=
8475
hardcode_shlibpath_var=unsupported
8477
link_all_deplibs=unknown
8480
old_archive_from_new_cmds=
8481
old_archive_from_expsyms_cmds=
8482
thread_safe_flag_spec=
8483
whole_archive_flag_spec=
8484
# include_expsyms should be a list of space-separated symbols to be *always*
8485
# included in the symbol list
8487
# exclude_expsyms can be an extended regexp of symbols to exclude
8488
# it will be wrapped by ` (' and `)$', so one must not match beginning or
8489
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8490
# as well as any symbol that contains `d'.
8491
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8492
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8493
# platforms (ab)use it in PIC code, but their linkers get confused if
8494
# the symbol is explicitly referenced. Since portable code cannot
8495
# rely on this symbol name, it's probably fine to never include it in
8496
# preloaded symbol tables.
8497
# Exclude shared library initialization/finalization symbols.
8498
extract_expsyms_cmds=
8501
cygwin* | mingw* | pw32* | cegcc*)
8502
# FIXME: the MSVC++ port hasn't been tested in a loooong time
8503
# When not using gcc, we currently assume that we are using
8504
# Microsoft Visual C++.
8505
if test "$GCC" != yes; then
8510
# we just hope/assume this is gcc and not c89 (= MSVC++)
8516
linux* | k*bsd*-gnu | gnu*)
8523
# On some targets, GNU ld is compatible enough with the native linker
8524
# that we're better off using the native interface for both.
8525
lt_use_gnu_ld_interface=no
8526
if test "$with_gnu_ld" = yes; then
8529
# The AIX port of GNU ld has always aspired to compatibility
8530
# with the native linker. However, as the warning in the GNU ld
8531
# block says, versions before 2.19.5* couldn't really create working
8532
# shared libraries, regardless of the interface used.
8533
case `$LD -v 2>&1` in
8534
*\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8535
*\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8536
*\ \(GNU\ Binutils\)\ [3-9]*) ;;
8538
lt_use_gnu_ld_interface=yes
8543
lt_use_gnu_ld_interface=yes
8548
if test "$lt_use_gnu_ld_interface" = yes; then
8549
# If archive_cmds runs LD, not CC, wlarc should be empty
8552
# Set some defaults for GNU ld with shared library support. These
8553
# are reset later if shared libraries are not supported. Putting them
8554
# here allows them to be overridden if necessary.
8555
runpath_var=LD_RUN_PATH
8556
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8557
export_dynamic_flag_spec='${wl}--export-dynamic'
8558
# ancient GNU ld didn't support --whole-archive et. al.
8559
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8560
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8562
whole_archive_flag_spec=
8564
supports_anon_versioning=no
8565
case `$LD -v 2>&1` in
8566
*GNU\ gold*) supports_anon_versioning=yes ;;
8567
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8568
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8569
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8570
*\ 2.11.*) ;; # other 2.11 versions
8571
*) supports_anon_versioning=yes ;;
8574
# See if GNU ld supports shared libraries.
8577
# On AIX/PPC, the GNU linker is very broken
8578
if test "$host_cpu" != ia64; then
8582
*** Warning: the GNU linker, at least up to release 2.19, is reported
8583
*** to be unable to reliably create shared libraries on AIX.
8584
*** Therefore, libtool is disabling shared libraries support. If you
8585
*** really care for shared libraries, you may want to install binutils
8586
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8587
*** You will then need to restart the configuration process.
8596
# see comment about AmigaOS4 .so support
8597
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8598
archive_expsym_cmds=''
8601
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)'
8602
hardcode_libdir_flag_spec='-L$libdir'
8603
hardcode_minus_L=yes
8609
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8610
allow_undefined_flag=unsupported
8611
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8612
# support --undefined. This deserves some investigation. FIXME
8613
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8619
cygwin* | mingw* | pw32* | cegcc*)
8620
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8621
# as there is no search path for DLLs.
8622
hardcode_libdir_flag_spec='-L$libdir'
8623
export_dynamic_flag_spec='${wl}--export-all-symbols'
8624
allow_undefined_flag=unsupported
8625
always_export_symbols=no
8626
enable_shared_with_static_runtimes=yes
8627
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'
8628
exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8630
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8631
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8632
# If the export-symbols file already is a .def file (1st line
8633
# is EXPORTS), use it as is; otherwise, prepend...
8634
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8635
cp $export_symbols $output_objdir/$soname.def;
8637
echo EXPORTS > $output_objdir/$soname.def;
8638
cat $export_symbols >> $output_objdir/$soname.def;
8640
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8647
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8648
link_all_deplibs=yes
8653
hardcode_shlibpath_var=no
8654
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8655
export_dynamic_flag_spec='${wl}-E'
8656
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8657
# Instead, shared libraries are loaded at an image base (0x10000000 by
8658
# default) and relocated if they conflict, which is a slow very memory
8659
# consuming and fragmenting process. To avoid this, we pick a random,
8660
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8661
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
8662
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8663
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'
8666
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8668
if test "$host_os" = linux-dietlibc; then
8669
case $cc_basename in
8670
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8673
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8674
&& test "$tmp_diet" = no
8676
tmp_addflag=' $pic_flag'
8677
tmp_sharedflag='-shared'
8678
case $cc_basename,$host_cpu in
8679
pgcc*) # Portland Group C compiler
8680
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'
8681
tmp_addflag=' $pic_flag'
8683
pgf77* | pgf90* | pgf95* | pgfortran*)
8684
# Portland Group f77 and f90 compilers
8685
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'
8686
tmp_addflag=' $pic_flag -Mnomain' ;;
8687
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8688
tmp_addflag=' -i_dynamic' ;;
8689
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8690
tmp_addflag=' -i_dynamic -nofor_main' ;;
8691
ifc* | ifort*) # Intel Fortran compiler
8692
tmp_addflag=' -nofor_main' ;;
8693
lf95*) # Lahey Fortran 8.1
8694
whole_archive_flag_spec=
8695
tmp_sharedflag='--shared' ;;
8696
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8697
tmp_sharedflag='-qmkshrobj'
8699
nvcc*) # Cuda Compiler Driver 2.2
8700
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'
8701
compiler_needs_object=yes
8704
case `$CC -V 2>&1 | sed 5q` in
8705
*Sun\ C*) # Sun C 5.9
8706
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'
8707
compiler_needs_object=yes
8708
tmp_sharedflag='-G' ;;
8709
*Sun\ F*) # Sun Fortran 8.3
8710
tmp_sharedflag='-G' ;;
8712
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8714
if test "x$supports_anon_versioning" = xyes; then
8715
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8716
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8717
echo "local: *; };" >> $output_objdir/$libname.ver~
8718
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8721
case $cc_basename in
8722
xlf* | bgf* | bgxlf* | mpixlf*)
8723
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8724
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8725
hardcode_libdir_flag_spec=
8726
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8727
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8728
if test "x$supports_anon_versioning" = xyes; then
8729
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8730
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8731
echo "local: *; };" >> $output_objdir/$libname.ver~
8732
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8741
netbsd* | netbsdelf*-gnu)
8742
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8743
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8746
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8747
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8752
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8756
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8757
*** create shared libraries on Solaris systems. Therefore, libtool
8758
*** is disabling shared libraries support. We urge you to upgrade GNU
8759
*** binutils to release 2.9.1 or newer. Another option is to modify
8760
*** your PATH or compiler configuration so that the native linker is
8761
*** used, and then restart.
8764
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8765
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8766
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8772
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8773
case `$LD -v 2>&1` in
8774
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8778
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8779
*** reliably create shared libraries on SCO systems. Therefore, libtool
8780
*** is disabling shared libraries support. We urge you to upgrade GNU
8781
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8782
*** your PATH or compiler configuration so that the native linker is
8783
*** used, and then restart.
8788
# For security reasons, it is highly recommended that you always
8789
# use absolute paths for naming shared libraries, and exclude the
8790
# DT_RUNPATH tag from executables and libraries. But doing so
8791
# requires that you compile everything twice, which is a pain.
8792
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8793
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8794
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8795
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8804
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8807
hardcode_shlibpath_var=no
8811
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8812
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8813
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8820
if test "$ld_shlibs" = no; then
8822
hardcode_libdir_flag_spec=
8823
export_dynamic_flag_spec=
8824
whole_archive_flag_spec=
8827
# PORTME fill in a description of your system's linker (not GNU ld)
8830
allow_undefined_flag=unsupported
8831
always_export_symbols=yes
8832
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'
8833
# Note: this linker hardcodes the directories in LIBPATH if there
8834
# are no directories specified by -L.
8835
hardcode_minus_L=yes
8836
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8837
# Neither direct hardcoding nor static linking is supported with a
8839
hardcode_direct=unsupported
8844
if test "$host_cpu" = ia64; then
8845
# On IA64, the linker does run time linking by default, so we don't
8846
# have to do anything special.
8847
aix_use_runtimelinking=no
8848
exp_sym_flag='-Bexport'
8851
# If we're using GNU nm, then we don't want the "-C" option.
8852
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8853
# Also, AIX nm treats weak defined symbols like other global
8854
# defined symbols, whereas GNU nm marks them as "W".
8855
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8856
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'
8858
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'
8860
aix_use_runtimelinking=no
8862
# Test if we are trying to use run time linking or normal
8863
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8864
# need to do runtime linking.
8865
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8866
for ld_flag in $LDFLAGS; do
8867
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8868
aix_use_runtimelinking=yes
8875
exp_sym_flag='-bexport'
8876
no_entry_flag='-bnoentry'
8879
# When large executables or shared objects are built, AIX ld can
8880
# have problems creating the table of contents. If linking a library
8881
# or program results in "error TOC overflow" add -mminimal-toc to
8882
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8883
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8887
hardcode_direct_absolute=yes
8888
hardcode_libdir_separator=':'
8889
link_all_deplibs=yes
8890
file_list_spec='${wl}-f,'
8892
if test "$GCC" = yes; then
8893
case $host_os in aix4.[012]|aix4.[012].*)
8894
# We only want to do this on AIX 4.2 and lower, the check
8895
# below for broken collect2 doesn't work under 4.3+
8896
collect2name=`${CC} -print-prog-name=collect2`
8897
if test -f "$collect2name" &&
8898
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8900
# We have reworked collect2
8903
# We have old collect2
8904
hardcode_direct=unsupported
8905
# It fails to find uninstalled libraries when the uninstalled
8906
# path is not listed in the libpath. Setting hardcode_minus_L
8907
# to unsupported forces relinking
8908
hardcode_minus_L=yes
8909
hardcode_libdir_flag_spec='-L$libdir'
8910
hardcode_libdir_separator=
8914
shared_flag='-shared'
8915
if test "$aix_use_runtimelinking" = yes; then
8916
shared_flag="$shared_flag "'${wl}-G'
8921
if test "$host_cpu" = ia64; then
8922
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8923
# chokes on -Wl,-G. The following line is correct:
8926
if test "$aix_use_runtimelinking" = yes; then
8927
shared_flag='${wl}-G'
8929
shared_flag='${wl}-bM:SRE'
8934
export_dynamic_flag_spec='${wl}-bexpall'
8935
# It seems that -bexpall does not export symbols beginning with
8936
# underscore (_), so it is better to generate a list of symbols to export.
8937
always_export_symbols=yes
8938
if test "$aix_use_runtimelinking" = yes; then
8939
# Warning - without using the other runtime loading flags (-brtl),
8940
# -berok will link without error, but may produce a broken library.
8941
allow_undefined_flag='-berok'
8942
# Determine the default libpath from the value encoded in an
8944
if test "${lt_cv_aix_libpath+set}" = set; then
8945
aix_libpath=$lt_cv_aix_libpath
8947
if ${lt_cv_aix_libpath_+:} false; then :
8948
$as_echo_n "(cached) " >&6
8950
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8951
/* end confdefs.h. */
8961
if ac_fn_c_try_link "$LINENO"; then :
8963
lt_aix_libpath_sed='
8964
/Import File Strings/,/^$/ {
8966
s/^0 *\([^ ]*\) *$/\1/
8970
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8971
# Check for a 64-bit object if we didn't find anything.
8972
if test -z "$lt_cv_aix_libpath_"; then
8973
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8976
rm -f core conftest.err conftest.$ac_objext \
8977
conftest$ac_exeext conftest.$ac_ext
8978
if test -z "$lt_cv_aix_libpath_"; then
8979
lt_cv_aix_libpath_="/usr/lib:/lib"
8984
aix_libpath=$lt_cv_aix_libpath_
8987
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8988
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"
8990
if test "$host_cpu" = ia64; then
8991
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8992
allow_undefined_flag="-z nodefs"
8993
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"
8995
# Determine the default libpath from the value encoded in an
8997
if test "${lt_cv_aix_libpath+set}" = set; then
8998
aix_libpath=$lt_cv_aix_libpath
9000
if ${lt_cv_aix_libpath_+:} false; then :
9001
$as_echo_n "(cached) " >&6
9003
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9004
/* end confdefs.h. */
9014
if ac_fn_c_try_link "$LINENO"; then :
9016
lt_aix_libpath_sed='
9017
/Import File Strings/,/^$/ {
9019
s/^0 *\([^ ]*\) *$/\1/
9023
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9024
# Check for a 64-bit object if we didn't find anything.
9025
if test -z "$lt_cv_aix_libpath_"; then
9026
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9029
rm -f core conftest.err conftest.$ac_objext \
9030
conftest$ac_exeext conftest.$ac_ext
9031
if test -z "$lt_cv_aix_libpath_"; then
9032
lt_cv_aix_libpath_="/usr/lib:/lib"
9037
aix_libpath=$lt_cv_aix_libpath_
9040
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9041
# Warning - without using the other run time loading flags,
9042
# -berok will link without error, but may produce a broken library.
9043
no_undefined_flag=' ${wl}-bernotok'
9044
allow_undefined_flag=' ${wl}-berok'
9045
if test "$with_gnu_ld" = yes; then
9046
# We only use this code for GNU lds that support --whole-archive.
9047
whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9049
# Exported symbols can be pulled into shared objects from archives
9050
whole_archive_flag_spec='$convenience'
9052
archive_cmds_need_lc=yes
9053
# This is similar to how AIX traditionally builds its shared libraries.
9054
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'
9062
# see comment about AmigaOS4 .so support
9063
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9064
archive_expsym_cmds=''
9067
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)'
9068
hardcode_libdir_flag_spec='-L$libdir'
9069
hardcode_minus_L=yes
9075
export_dynamic_flag_spec=-rdynamic
9078
cygwin* | mingw* | pw32* | cegcc*)
9079
# When not using gcc, we currently assume that we are using
9080
# Microsoft Visual C++.
9081
# hardcode_libdir_flag_spec is actually meaningless, as there is
9082
# no search path for DLLs.
9083
case $cc_basename in
9086
hardcode_libdir_flag_spec=' '
9087
allow_undefined_flag=unsupported
9088
always_export_symbols=yes
9090
# Tell ltmain to make .lib files, not .a files.
9092
# Tell ltmain to make .dll files, not .so files.
9094
# FIXME: Setting linknames here is a bad hack.
9095
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9096
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9097
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9099
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9101
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9103
# The linker will not automatically build a static lib if we build a DLL.
9104
# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9105
enable_shared_with_static_runtimes=yes
9106
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9108
old_postinstall_cmds='chmod 644 $oldlib'
9109
postlink_cmds='lt_outputfile="@OUTPUT@"~
9110
lt_tool_outputfile="@TOOL_OUTPUT@"~
9111
case $lt_outputfile in
9114
lt_outputfile="$lt_outputfile.exe"
9115
lt_tool_outputfile="$lt_tool_outputfile.exe"
9118
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9119
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9120
$RM "$lt_outputfile.manifest";
9124
# Assume MSVC wrapper
9125
hardcode_libdir_flag_spec=' '
9126
allow_undefined_flag=unsupported
9127
# Tell ltmain to make .lib files, not .a files.
9129
# Tell ltmain to make .dll files, not .so files.
9131
# FIXME: Setting linknames here is a bad hack.
9132
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9133
# The linker will automatically build a .lib file if we build a DLL.
9134
old_archive_from_new_cmds='true'
9135
# FIXME: Should let the user specify the lib program.
9136
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9137
enable_shared_with_static_runtimes=yes
9142
darwin* | rhapsody*)
9145
archive_cmds_need_lc=no
9147
hardcode_automatic=yes
9148
hardcode_shlibpath_var=unsupported
9149
if test "$lt_cv_ld_force_load" = "yes"; then
9150
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\"`'
9152
whole_archive_flag_spec=''
9154
link_all_deplibs=yes
9155
allow_undefined_flag="$_lt_dar_allow_undefined"
9156
case $cc_basename in
9157
ifort*) _lt_dar_can_shared=yes ;;
9158
*) _lt_dar_can_shared=$GCC ;;
9160
if test "$_lt_dar_can_shared" = "yes"; then
9161
output_verbose_link_cmd=func_echo_all
9162
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9163
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9164
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}"
9165
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}"
9174
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9175
hardcode_libdir_flag_spec='-L$libdir'
9176
hardcode_shlibpath_var=no
9183
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9184
# support. Future versions do this automatically, but an explicit c++rt0.o
9185
# does not break anything, and helps significantly (at the cost of a little
9188
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9189
hardcode_libdir_flag_spec='-R$libdir'
9191
hardcode_shlibpath_var=no
9194
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
9196
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9198
hardcode_minus_L=yes
9199
hardcode_shlibpath_var=no
9202
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9203
freebsd* | dragonfly*)
9204
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9205
hardcode_libdir_flag_spec='-R$libdir'
9207
hardcode_shlibpath_var=no
9211
if test "$GCC" = yes; then
9212
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'
9214
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'
9216
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9217
hardcode_libdir_separator=:
9220
# hardcode_minus_L: Not really in the search PATH,
9221
# but as the default location of the library.
9222
hardcode_minus_L=yes
9223
export_dynamic_flag_spec='${wl}-E'
9227
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9228
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9230
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9232
if test "$with_gnu_ld" = no; then
9233
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9234
hardcode_libdir_flag_spec_ld='+b $libdir'
9235
hardcode_libdir_separator=:
9237
hardcode_direct_absolute=yes
9238
export_dynamic_flag_spec='${wl}-E'
9239
# hardcode_minus_L: Not really in the search PATH,
9240
# but as the default location of the library.
9241
hardcode_minus_L=yes
9246
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9249
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9252
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9255
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9261
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9264
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9268
# Older versions of the 11.00 compiler do not understand -b yet
9269
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9270
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9271
$as_echo_n "checking if $CC understands -b... " >&6; }
9272
if ${lt_cv_prog_compiler__b+:} false; then :
9273
$as_echo_n "(cached) " >&6
9275
lt_cv_prog_compiler__b=no
9276
save_LDFLAGS="$LDFLAGS"
9277
LDFLAGS="$LDFLAGS -b"
9278
echo "$lt_simple_link_test_code" > conftest.$ac_ext
9279
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9280
# The linker can only warn and ignore the option if not recognized
9281
# So say no if there are warnings
9282
if test -s conftest.err; then
9283
# Append any errors to the config.log.
9284
cat conftest.err 1>&5
9285
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9286
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9287
if diff conftest.exp conftest.er2 >/dev/null; then
9288
lt_cv_prog_compiler__b=yes
9291
lt_cv_prog_compiler__b=yes
9295
LDFLAGS="$save_LDFLAGS"
9298
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9299
$as_echo "$lt_cv_prog_compiler__b" >&6; }
9301
if test x"$lt_cv_prog_compiler__b" = xyes; then
9302
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9304
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9310
if test "$with_gnu_ld" = no; then
9311
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9312
hardcode_libdir_separator=:
9317
hardcode_shlibpath_var=no
9321
hardcode_direct_absolute=yes
9322
export_dynamic_flag_spec='${wl}-E'
9324
# hardcode_minus_L: Not really in the search PATH,
9325
# but as the default location of the library.
9326
hardcode_minus_L=yes
9332
irix5* | irix6* | nonstopux*)
9333
if test "$GCC" = yes; then
9334
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'
9335
# Try to use the -exported_symbol ld option, if it does not
9336
# work, assume that -exports_file does not work either and
9337
# implicitly export all symbols.
9338
# This should be the same for all languages, so no per-tag cache variable.
9339
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9340
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9341
if ${lt_cv_irix_exported_symbol+:} false; then :
9342
$as_echo_n "(cached) " >&6
9344
save_LDFLAGS="$LDFLAGS"
9345
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9346
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9347
/* end confdefs.h. */
9348
int foo (void) { return 0; }
9350
if ac_fn_c_try_link "$LINENO"; then :
9351
lt_cv_irix_exported_symbol=yes
9353
lt_cv_irix_exported_symbol=no
9355
rm -f core conftest.err conftest.$ac_objext \
9356
conftest$ac_exeext conftest.$ac_ext
9357
LDFLAGS="$save_LDFLAGS"
9359
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9360
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9361
if test "$lt_cv_irix_exported_symbol" = yes; then
9362
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'
9365
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'
9366
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'
9368
archive_cmds_need_lc='no'
9369
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9370
hardcode_libdir_separator=:
9372
link_all_deplibs=yes
9375
netbsd* | netbsdelf*-gnu)
9376
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9377
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9379
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9381
hardcode_libdir_flag_spec='-R$libdir'
9383
hardcode_shlibpath_var=no
9387
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9389
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9390
hardcode_libdir_separator=:
9391
hardcode_shlibpath_var=no
9398
if test -f /usr/libexec/ld.so; then
9400
hardcode_shlibpath_var=no
9401
hardcode_direct_absolute=yes
9402
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9403
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9404
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9405
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9406
export_dynamic_flag_spec='${wl}-E'
9409
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9410
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9411
hardcode_libdir_flag_spec='-R$libdir'
9414
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9415
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9425
hardcode_libdir_flag_spec='-L$libdir'
9426
hardcode_minus_L=yes
9427
allow_undefined_flag=unsupported
9428
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'
9429
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9433
if test "$GCC" = yes; then
9434
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9435
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'
9437
allow_undefined_flag=' -expect_unresolved \*'
9438
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'
9440
archive_cmds_need_lc='no'
9441
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9442
hardcode_libdir_separator=:
9445
osf4* | osf5*) # as osf3* with the addition of -msym flag
9446
if test "$GCC" = yes; then
9447
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9448
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'
9449
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9451
allow_undefined_flag=' -expect_unresolved \*'
9452
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'
9453
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~
9454
$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'
9456
# Both c and cxx compiler support -rpath directly
9457
hardcode_libdir_flag_spec='-rpath $libdir'
9459
archive_cmds_need_lc='no'
9460
hardcode_libdir_separator=:
9464
no_undefined_flag=' -z defs'
9465
if test "$GCC" = yes; then
9467
archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9468
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9469
$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'
9471
case `$CC -V 2>&1` in
9474
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9475
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9476
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9480
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9481
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9482
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9486
hardcode_libdir_flag_spec='-R$libdir'
9487
hardcode_shlibpath_var=no
9489
solaris2.[0-5] | solaris2.[0-5].*) ;;
9491
# The compiler driver will combine and reorder linker options,
9492
# but understands `-z linker_flag'. GCC discards it without `$wl',
9493
# but is careful enough not to reorder.
9494
# Supported since Solaris 2.6 (maybe 2.5.1?)
9495
if test "$GCC" = yes; then
9496
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9498
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9502
link_all_deplibs=yes
9506
if test "x$host_vendor" = xsequent; then
9507
# Use $CC to link under sequent, because it throws in some extra .o
9508
# files that make .init and .fini sections work.
9509
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9511
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9513
hardcode_libdir_flag_spec='-L$libdir'
9515
hardcode_minus_L=yes
9516
hardcode_shlibpath_var=no
9520
case $host_vendor in
9522
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9523
hardcode_direct=yes # is this really true???
9526
## LD is ld it makes a PLAMLIB
9527
## CC just makes a GrossModule.
9528
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9529
reload_cmds='$CC -r -o $output$reload_objs'
9533
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9534
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9537
runpath_var='LD_RUN_PATH'
9538
hardcode_shlibpath_var=no
9542
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9543
hardcode_shlibpath_var=no
9544
export_dynamic_flag_spec='-Bexport'
9548
if test -d /usr/nec; then
9549
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9550
hardcode_shlibpath_var=no
9551
runpath_var=LD_RUN_PATH
9552
hardcode_runpath_var=yes
9557
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9558
no_undefined_flag='${wl}-z,text'
9559
archive_cmds_need_lc=no
9560
hardcode_shlibpath_var=no
9561
runpath_var='LD_RUN_PATH'
9563
if test "$GCC" = yes; then
9564
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9565
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9567
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9568
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9572
sysv5* | sco3.2v5* | sco5v6*)
9573
# Note: We can NOT use -z defs as we might desire, because we do not
9574
# link with -lc, and that would cause any symbols used from libc to
9575
# always be unresolved, which means just about no library would
9576
# ever link correctly. If we're not using GNU ld we use -z text
9577
# though, which does catch some bad symbols but isn't as heavy-handed
9579
no_undefined_flag='${wl}-z,text'
9580
allow_undefined_flag='${wl}-z,nodefs'
9581
archive_cmds_need_lc=no
9582
hardcode_shlibpath_var=no
9583
hardcode_libdir_flag_spec='${wl}-R,$libdir'
9584
hardcode_libdir_separator=':'
9585
link_all_deplibs=yes
9586
export_dynamic_flag_spec='${wl}-Bexport'
9587
runpath_var='LD_RUN_PATH'
9589
if test "$GCC" = yes; then
9590
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9591
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9593
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9594
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9599
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9600
hardcode_libdir_flag_spec='-L$libdir'
9601
hardcode_shlibpath_var=no
9609
if test x$host_vendor = xsni; then
9611
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9612
export_dynamic_flag_spec='${wl}-Blargedynsym'
9618
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9619
$as_echo "$ld_shlibs" >&6; }
9620
test "$ld_shlibs" = no && can_build_shared=no
9622
with_gnu_ld=$with_gnu_ld
9639
# Do we need to explicitly link libc?
9641
case "x$archive_cmds_need_lc" in
9643
# Assume -lc should be added
9644
archive_cmds_need_lc=yes
9646
if test "$enable_shared" = yes && test "$GCC" = yes; then
9647
case $archive_cmds in
9649
# FIXME: we may have to deal with multi-command sequences.
9652
# Test whether the compiler implicitly links with -lc since on some
9653
# systems, -lgcc has to come before -lc. If gcc already passes -lc
9654
# to ld, don't add -lc before -lgcc.
9655
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9656
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9657
if ${lt_cv_archive_cmds_need_lc+:} false; then :
9658
$as_echo_n "(cached) " >&6
9661
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9663
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9664
(eval $ac_compile) 2>&5
9666
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9667
test $ac_status = 0; } 2>conftest.err; then
9670
libobjs=conftest.$ac_objext
9672
wl=$lt_prog_compiler_wl
9673
pic_flag=$lt_prog_compiler_pic
9679
lt_save_allow_undefined_flag=$allow_undefined_flag
9680
allow_undefined_flag=
9681
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9682
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9684
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9685
test $ac_status = 0; }
9687
lt_cv_archive_cmds_need_lc=no
9689
lt_cv_archive_cmds_need_lc=yes
9691
allow_undefined_flag=$lt_save_allow_undefined_flag
9693
cat conftest.err 1>&5
9698
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9699
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9700
archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9863
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9864
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9866
if test "$GCC" = yes; then
9868
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9869
*) lt_awk_arg="/^libraries:/" ;;
9872
mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9873
*) lt_sed_strip_eq="s,=/,/,g" ;;
9875
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9876
case $lt_search_path_spec in
9878
# if the path contains ";" then we assume it to be the separator
9879
# otherwise default to the standard path separator (i.e. ":") - it is
9880
# assumed that no part of a normal pathname contains ";" but that should
9881
# okay in the real world where ";" in dirpaths is itself problematic.
9882
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9885
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9888
# Ok, now we have the path, separated by spaces, we can step through it
9889
# and add multilib dir if necessary.
9890
lt_tmp_lt_search_path_spec=
9891
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9892
for lt_sys_path in $lt_search_path_spec; do
9893
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9894
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9896
test -d "$lt_sys_path" && \
9897
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9900
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9901
BEGIN {RS=" "; FS="/|\n";} {
9904
for (lt_i = NF; lt_i > 0; lt_i--) {
9905
if ($lt_i != "" && $lt_i != ".") {
9906
if ($lt_i == "..") {
9909
if (lt_count == 0) {
9910
lt_foo="/" $lt_i lt_foo;
9917
if (lt_foo != "") { lt_freq[lt_foo]++; }
9918
if (lt_freq[lt_foo] == 1) { print lt_foo; }
9920
# AWK program above erroneously prepends '/' to C:/dos/paths
9923
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9924
$SED 's,/\([A-Za-z]:\),\1,g'` ;;
9926
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9928
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9931
libname_spec='lib$name'
9939
shlibpath_overrides_runpath=unknown
9941
dynamic_linker="$host_os ld.so"
9942
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9943
need_lib_prefix=unknown
9944
hardcode_into_libs=no
9946
# when you set need_version to no, make sure it does not cause -set_version
9947
# flags to be left without arguments
9948
need_version=unknown
9953
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9954
shlibpath_var=LIBPATH
9956
# AIX 3 has no versioning support, so we append a major version to the name.
9957
soname_spec='${libname}${release}${shared_ext}$major'
9964
hardcode_into_libs=yes
9965
if test "$host_cpu" = ia64; then
9966
# AIX 5 supports IA64
9967
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9968
shlibpath_var=LD_LIBRARY_PATH
9970
# With GCC up to 2.95.x, collect2 would create an import file
9971
# for dependence libraries. The import file would start with
9972
# the line `#! .'. This would cause the generated library to
9973
# depend on `.', always an invalid library. This was fixed in
9974
# development snapshots of GCC prior to 3.0.
9976
aix4 | aix4.[01] | aix4.[01].*)
9977
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9979
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9986
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9987
# soname into executable. Probably we can add versioning support to
9988
# collect2, so additional links can be useful in future.
9989
if test "$aix_use_runtimelinking" = yes; then
9990
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
9991
# instead of lib<name>.a to let people know that these are not
9992
# typical AIX shared libraries.
9993
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9995
# We preserve .a as extension for shared libraries through AIX4.2
9996
# and later when we are not doing run time linking.
9997
library_names_spec='${libname}${release}.a $libname.a'
9998
soname_spec='${libname}${release}${shared_ext}$major'
10000
shlibpath_var=LIBPATH
10007
# Since July 2007 AmigaOS4 officially supports .so libraries.
10008
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10009
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10012
library_names_spec='$libname.ixlibrary $libname.a'
10013
# Create ${libname}_ixlibrary.a entries in /sys/libs.
10014
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'
10020
library_names_spec='${libname}${shared_ext}'
10021
dynamic_linker="$host_os ld.so"
10022
shlibpath_var=LIBRARY_PATH
10028
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10029
soname_spec='${libname}${release}${shared_ext}$major'
10030
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10031
shlibpath_var=LD_LIBRARY_PATH
10032
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10033
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10034
# the default ld.so.conf also contains /usr/contrib/lib and
10035
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10036
# libtool to hard-code these into programs
10039
cygwin* | mingw* | pw32* | cegcc*)
10040
version_type=windows
10045
case $GCC,$cc_basename in
10048
library_names_spec='$libname.dll.a'
10049
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10050
postinstall_cmds='base_file=`basename \${file}`~
10051
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10052
dldir=$destdir/`dirname \$dlpath`~
10053
test -d \$dldir || mkdir -p \$dldir~
10054
$install_prog $dir/$dlname \$dldir/$dlname~
10055
chmod a+x \$dldir/$dlname~
10056
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10057
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10059
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10060
dlpath=$dir/\$dldll~
10062
shlibpath_overrides_runpath=yes
10066
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
10067
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10069
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10072
# MinGW DLLs use traditional 'lib' prefix
10073
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10076
# pw32 DLLs use 'pw' prefix rather than 'lib'
10077
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10080
dynamic_linker='Win32 ld.exe'
10085
libname_spec='$name'
10086
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10087
library_names_spec='${libname}.dll.lib'
10091
sys_lib_search_path_spec=
10094
for lt_path in $LIB
10097
# Let DOS variable expansion print the short 8.3 style file name.
10098
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10099
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10102
# Convert to MSYS style.
10103
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10106
# Convert to unix form, then to dos form, then back to unix form
10107
# but this time dos style (no spaces!) so that the unix form looks
10108
# like /cygdrive/c/PROGRA~1:/cygdr...
10109
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10110
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10111
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10114
sys_lib_search_path_spec="$LIB"
10115
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10116
# It is most probably a Windows format PATH.
10117
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10119
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10121
# FIXME: find the short name or the path components, as spaces are
10122
# common. (e.g. "Program Files" -> "PROGRA~1")
10126
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10127
postinstall_cmds='base_file=`basename \${file}`~
10128
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10129
dldir=$destdir/`dirname \$dlpath`~
10130
test -d \$dldir || mkdir -p \$dldir~
10131
$install_prog $dir/$dlname \$dldir/$dlname'
10132
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10133
dlpath=$dir/\$dldll~
10135
shlibpath_overrides_runpath=yes
10136
dynamic_linker='Win32 link.exe'
10140
# Assume MSVC wrapper
10141
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10142
dynamic_linker='Win32 ld.exe'
10145
# FIXME: first we should search . and the directory the executable is in
10149
darwin* | rhapsody*)
10150
dynamic_linker="$host_os dyld"
10151
version_type=darwin
10154
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10155
soname_spec='${libname}${release}${major}$shared_ext'
10156
shlibpath_overrides_runpath=yes
10157
shlibpath_var=DYLD_LIBRARY_PATH
10158
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10160
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10161
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10168
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10169
soname_spec='${libname}${release}${shared_ext}$major'
10170
shlibpath_var=LD_LIBRARY_PATH
10177
freebsd* | dragonfly*)
10178
# DragonFly does not have aout. When/if they implement a new
10179
# versioning mechanism, adjust this.
10180
if test -x /usr/bin/objformat; then
10181
objformat=`/usr/bin/objformat`
10184
freebsd[123]*) objformat=aout ;;
10185
*) objformat=elf ;;
10188
version_type=freebsd-$objformat
10189
case $version_type in
10191
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10196
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10200
shlibpath_var=LD_LIBRARY_PATH
10203
shlibpath_overrides_runpath=yes
10205
freebsd3.[01]* | freebsdelf3.[01]*)
10206
shlibpath_overrides_runpath=yes
10207
hardcode_into_libs=yes
10209
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10210
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10211
shlibpath_overrides_runpath=no
10212
hardcode_into_libs=yes
10214
*) # from 4.6 on, and DragonFly
10215
shlibpath_overrides_runpath=yes
10216
hardcode_into_libs=yes
10225
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10226
soname_spec='${libname}${release}${shared_ext}$major'
10227
shlibpath_var=LD_LIBRARY_PATH
10228
shlibpath_overrides_runpath=no
10229
hardcode_into_libs=yes
10236
dynamic_linker="$host_os runtime_loader"
10237
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10238
soname_spec='${libname}${release}${shared_ext}$major'
10239
shlibpath_var=LIBRARY_PATH
10240
shlibpath_overrides_runpath=yes
10241
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10242
hardcode_into_libs=yes
10245
hpux9* | hpux10* | hpux11*)
10246
# Give a soname corresponding to the major version so that dld.sl refuses to
10247
# link against other versions.
10254
hardcode_into_libs=yes
10255
dynamic_linker="$host_os dld.so"
10256
shlibpath_var=LD_LIBRARY_PATH
10257
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10258
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10259
soname_spec='${libname}${release}${shared_ext}$major'
10260
if test "X$HPUX_IA64_MODE" = X32; then
10261
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10263
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10265
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10269
hardcode_into_libs=yes
10270
dynamic_linker="$host_os dld.sl"
10271
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10272
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10273
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10274
soname_spec='${libname}${release}${shared_ext}$major'
10275
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10276
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10280
dynamic_linker="$host_os dld.sl"
10281
shlibpath_var=SHLIB_PATH
10282
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10283
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10284
soname_spec='${libname}${release}${shared_ext}$major'
10287
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10288
postinstall_cmds='chmod 555 $lib'
10289
# or fails outright, so override atomically:
10290
install_override_mode=555
10297
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10298
soname_spec='${libname}${release}${shared_ext}$major'
10299
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10300
shlibpath_var=LD_LIBRARY_PATH
10301
shlibpath_overrides_runpath=no
10302
hardcode_into_libs=yes
10305
irix5* | irix6* | nonstopux*)
10307
nonstopux*) version_type=nonstopux ;;
10309
if test "$lt_cv_prog_gnu_ld" = yes; then
10317
soname_spec='${libname}${release}${shared_ext}$major'
10318
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10320
irix5* | nonstopux*)
10321
libsuff= shlibsuff=
10324
case $LD in # libtool.m4 will add one of these switches to LD
10325
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10326
libsuff= shlibsuff= libmagic=32-bit;;
10327
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10328
libsuff=32 shlibsuff=N32 libmagic=N32;;
10329
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10330
libsuff=64 shlibsuff=64 libmagic=64-bit;;
10331
*) libsuff= shlibsuff= libmagic=never-match;;
10335
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10336
shlibpath_overrides_runpath=no
10337
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10338
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10339
hardcode_into_libs=yes
10342
# No shared lib support for Linux oldld, aout, or coff.
10343
linux*oldld* | linux*aout* | linux*coff*)
10347
# This must be Linux ELF.
10348
linux* | k*bsd*-gnu | kopensolaris*-gnu)
10352
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10353
soname_spec='${libname}${release}${shared_ext}$major'
10354
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10355
shlibpath_var=LD_LIBRARY_PATH
10356
shlibpath_overrides_runpath=no
10358
# Some binutils ld are patched to set DT_RUNPATH
10359
if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10360
$as_echo_n "(cached) " >&6
10362
lt_cv_shlibpath_overrides_runpath=no
10363
save_LDFLAGS=$LDFLAGS
10364
save_libdir=$libdir
10365
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10366
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10367
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10368
/* end confdefs.h. */
10378
if ac_fn_c_try_link "$LINENO"; then :
10379
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10380
lt_cv_shlibpath_overrides_runpath=yes
10383
rm -f core conftest.err conftest.$ac_objext \
10384
conftest$ac_exeext conftest.$ac_ext
10385
LDFLAGS=$save_LDFLAGS
10386
libdir=$save_libdir
10390
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10392
# This implies no fast_install, which is unacceptable.
10393
# Some rework will be needed to allow for fast_install
10394
# before this can be enabled.
10395
hardcode_into_libs=yes
10397
# Append ld.so.conf contents to the search path
10398
if test -f /etc/ld.so.conf; then
10399
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' ' '`
10400
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10403
# We used to test for /lib/ld.so.1 and disable shared libraries on
10404
# powerpc, because MkLinux only supported shared libraries with the
10405
# GNU dynamic linker. Since this was broken with cross compilers,
10406
# most powerpc-linux boxes support dynamic linking these days and
10407
# people can always --disable-shared, the test was removed, and we
10408
# assume the GNU/Linux dynamic linker is in use.
10409
dynamic_linker='GNU/Linux ld.so'
10416
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10417
soname_spec='${libname}${release}${shared_ext}$major'
10418
shlibpath_var=LD_LIBRARY_PATH
10419
shlibpath_overrides_runpath=no
10420
hardcode_into_libs=yes
10421
dynamic_linker='NetBSD ld.elf_so'
10428
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10429
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10430
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10431
dynamic_linker='NetBSD (a.out) ld.so'
10433
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10434
soname_spec='${libname}${release}${shared_ext}$major'
10435
dynamic_linker='NetBSD ld.elf_so'
10437
shlibpath_var=LD_LIBRARY_PATH
10438
shlibpath_overrides_runpath=yes
10439
hardcode_into_libs=yes
10444
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10445
shlibpath_var=LD_LIBRARY_PATH
10446
shlibpath_overrides_runpath=yes
10453
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10454
soname_spec='${libname}${release}${shared_ext}$major'
10455
shlibpath_var=LD_LIBRARY_PATH
10456
shlibpath_overrides_runpath=no
10457
hardcode_into_libs=yes
10458
dynamic_linker='ldqnx.so'
10463
sys_lib_dlsearch_path_spec="/usr/lib"
10465
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10467
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10468
*) need_version=no ;;
10470
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10471
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10472
shlibpath_var=LD_LIBRARY_PATH
10473
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10475
openbsd2.[89] | openbsd2.[89].*)
10476
shlibpath_overrides_runpath=no
10479
shlibpath_overrides_runpath=yes
10483
shlibpath_overrides_runpath=yes
10488
libname_spec='$name'
10491
library_names_spec='$libname${shared_ext} $libname.a'
10492
dynamic_linker='OS/2 ld.exe'
10493
shlibpath_var=LIBPATH
10496
osf3* | osf4* | osf5*)
10500
soname_spec='${libname}${release}${shared_ext}$major'
10501
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10502
shlibpath_var=LD_LIBRARY_PATH
10503
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10504
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10515
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10516
soname_spec='${libname}${release}${shared_ext}$major'
10517
shlibpath_var=LD_LIBRARY_PATH
10518
shlibpath_overrides_runpath=yes
10519
hardcode_into_libs=yes
10520
# ldd complains unless libraries are executable
10521
postinstall_cmds='chmod +x $lib'
10526
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10527
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10528
shlibpath_var=LD_LIBRARY_PATH
10529
shlibpath_overrides_runpath=yes
10530
if test "$with_gnu_ld" = yes; then
10538
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10539
soname_spec='${libname}${release}${shared_ext}$major'
10540
shlibpath_var=LD_LIBRARY_PATH
10541
case $host_vendor in
10543
shlibpath_overrides_runpath=no
10545
runpath_var=LD_RUN_PATH
10553
shlibpath_overrides_runpath=no
10554
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10560
if test -d /usr/nec ;then
10562
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10563
soname_spec='$libname${shared_ext}.$major'
10564
shlibpath_var=LD_LIBRARY_PATH
10568
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10569
version_type=freebsd-elf
10572
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10573
soname_spec='${libname}${release}${shared_ext}$major'
10574
shlibpath_var=LD_LIBRARY_PATH
10575
shlibpath_overrides_runpath=yes
10576
hardcode_into_libs=yes
10577
if test "$with_gnu_ld" = yes; then
10578
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10580
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10583
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10587
sys_lib_dlsearch_path_spec='/usr/lib'
10591
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10595
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10596
shlibpath_var=LD_LIBRARY_PATH
10597
shlibpath_overrides_runpath=no
10598
hardcode_into_libs=yes
10603
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10604
soname_spec='${libname}${release}${shared_ext}$major'
10605
shlibpath_var=LD_LIBRARY_PATH
10612
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10613
$as_echo "$dynamic_linker" >&6; }
10614
test "$dynamic_linker" = no && can_build_shared=no
10616
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10617
if test "$GCC" = yes; then
10618
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10621
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10622
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10624
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10625
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10719
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10720
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10722
if test -n "$hardcode_libdir_flag_spec" ||
10723
test -n "$runpath_var" ||
10724
test "X$hardcode_automatic" = "Xyes" ; then
10726
# We can hardcode non-existent directories.
10727
if test "$hardcode_direct" != no &&
10728
# If the only mechanism to avoid hardcoding is shlibpath_var, we
10729
# have to relink, otherwise we might link with an installed library
10730
# when we should be linking with a yet-to-be-installed one
10731
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10732
test "$hardcode_minus_L" != no; then
10733
# Linking always hardcodes the temporary library directory.
10734
hardcode_action=relink
10736
# We can link without hardcoding, and we can hardcode nonexisting dirs.
10737
hardcode_action=immediate
10740
# We cannot hardcode anything, or else we can only hardcode existing
10742
hardcode_action=unsupported
10744
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10745
$as_echo "$hardcode_action" >&6; }
10747
if test "$hardcode_action" = relink ||
10748
test "$inherit_rpath" = yes; then
10749
# Fast installation is not supported
10750
enable_fast_install=no
10751
elif test "$shlibpath_overrides_runpath" = yes ||
10752
test "$enable_shared" = no; then
10753
# Fast installation is not necessary
10754
enable_fast_install=needless
10762
if test "x$enable_dlopen" != xyes; then
10763
enable_dlopen=unknown
10764
enable_dlopen_self=unknown
10765
enable_dlopen_self_static=unknown
10772
lt_cv_dlopen="load_add_on"
10774
lt_cv_dlopen_self=yes
10777
mingw* | pw32* | cegcc*)
10778
lt_cv_dlopen="LoadLibrary"
10783
lt_cv_dlopen="dlopen"
10788
# if libdl is installed we need to link against it
10789
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10790
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10791
if ${ac_cv_lib_dl_dlopen+:} false; then :
10792
$as_echo_n "(cached) " >&6
10794
ac_check_lib_save_LIBS=$LIBS
10796
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10797
/* end confdefs.h. */
10799
/* Override any GCC internal prototype to avoid an error.
10800
Use char because int might match the return type of a GCC
10801
builtin and then its argument prototype would still apply. */
10814
if ac_fn_c_try_link "$LINENO"; then :
10815
ac_cv_lib_dl_dlopen=yes
10817
ac_cv_lib_dl_dlopen=no
10819
rm -f core conftest.err conftest.$ac_objext \
10820
conftest$ac_exeext conftest.$ac_ext
10821
LIBS=$ac_check_lib_save_LIBS
10823
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10824
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10825
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10826
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10829
lt_cv_dlopen="dyld"
10831
lt_cv_dlopen_self=yes
10838
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10839
if test "x$ac_cv_func_shl_load" = xyes; then :
10840
lt_cv_dlopen="shl_load"
10842
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10843
$as_echo_n "checking for shl_load in -ldld... " >&6; }
10844
if ${ac_cv_lib_dld_shl_load+:} false; then :
10845
$as_echo_n "(cached) " >&6
10847
ac_check_lib_save_LIBS=$LIBS
10849
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10850
/* end confdefs.h. */
10852
/* Override any GCC internal prototype to avoid an error.
10853
Use char because int might match the return type of a GCC
10854
builtin and then its argument prototype would still apply. */
10862
return shl_load ();
10867
if ac_fn_c_try_link "$LINENO"; then :
10868
ac_cv_lib_dld_shl_load=yes
10870
ac_cv_lib_dld_shl_load=no
10872
rm -f core conftest.err conftest.$ac_objext \
10873
conftest$ac_exeext conftest.$ac_ext
10874
LIBS=$ac_check_lib_save_LIBS
10876
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10877
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10878
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10879
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10881
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10882
if test "x$ac_cv_func_dlopen" = xyes; then :
10883
lt_cv_dlopen="dlopen"
10885
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10886
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10887
if ${ac_cv_lib_dl_dlopen+:} false; then :
10888
$as_echo_n "(cached) " >&6
10890
ac_check_lib_save_LIBS=$LIBS
10892
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10893
/* end confdefs.h. */
10895
/* Override any GCC internal prototype to avoid an error.
10896
Use char because int might match the return type of a GCC
10897
builtin and then its argument prototype would still apply. */
10910
if ac_fn_c_try_link "$LINENO"; then :
10911
ac_cv_lib_dl_dlopen=yes
10913
ac_cv_lib_dl_dlopen=no
10915
rm -f core conftest.err conftest.$ac_objext \
10916
conftest$ac_exeext conftest.$ac_ext
10917
LIBS=$ac_check_lib_save_LIBS
10919
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10920
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10921
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10922
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10924
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10925
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10926
if ${ac_cv_lib_svld_dlopen+:} false; then :
10927
$as_echo_n "(cached) " >&6
10929
ac_check_lib_save_LIBS=$LIBS
10930
LIBS="-lsvld $LIBS"
10931
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10932
/* end confdefs.h. */
10934
/* Override any GCC internal prototype to avoid an error.
10935
Use char because int might match the return type of a GCC
10936
builtin and then its argument prototype would still apply. */
10949
if ac_fn_c_try_link "$LINENO"; then :
10950
ac_cv_lib_svld_dlopen=yes
10952
ac_cv_lib_svld_dlopen=no
10954
rm -f core conftest.err conftest.$ac_objext \
10955
conftest$ac_exeext conftest.$ac_ext
10956
LIBS=$ac_check_lib_save_LIBS
10958
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10959
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10960
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10961
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10963
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10964
$as_echo_n "checking for dld_link in -ldld... " >&6; }
10965
if ${ac_cv_lib_dld_dld_link+:} false; then :
10966
$as_echo_n "(cached) " >&6
10968
ac_check_lib_save_LIBS=$LIBS
10970
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10971
/* end confdefs.h. */
10973
/* Override any GCC internal prototype to avoid an error.
10974
Use char because int might match the return type of a GCC
10975
builtin and then its argument prototype would still apply. */
10983
return dld_link ();
10988
if ac_fn_c_try_link "$LINENO"; then :
10989
ac_cv_lib_dld_dld_link=yes
10991
ac_cv_lib_dld_dld_link=no
10993
rm -f core conftest.err conftest.$ac_objext \
10994
conftest$ac_exeext conftest.$ac_ext
10995
LIBS=$ac_check_lib_save_LIBS
10997
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10998
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10999
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11000
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11021
if test "x$lt_cv_dlopen" != xno; then
11027
case $lt_cv_dlopen in
11029
save_CPPFLAGS="$CPPFLAGS"
11030
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11032
save_LDFLAGS="$LDFLAGS"
11033
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11036
LIBS="$lt_cv_dlopen_libs $LIBS"
11038
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11039
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11040
if ${lt_cv_dlopen_self+:} false; then :
11041
$as_echo_n "(cached) " >&6
11043
if test "$cross_compiling" = yes; then :
11044
lt_cv_dlopen_self=cross
11046
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11047
lt_status=$lt_dlunknown
11048
cat > conftest.$ac_ext <<_LT_EOF
11049
#line $LINENO "configure"
11050
#include "confdefs.h"
11059
# define LT_DLGLOBAL RTLD_GLOBAL
11062
# define LT_DLGLOBAL DL_GLOBAL
11064
# define LT_DLGLOBAL 0
11068
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11069
find out it does not work in some platform. */
11070
#ifndef LT_DLLAZY_OR_NOW
11072
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11075
# define LT_DLLAZY_OR_NOW DL_LAZY
11078
# define LT_DLLAZY_OR_NOW RTLD_NOW
11081
# define LT_DLLAZY_OR_NOW DL_NOW
11083
# define LT_DLLAZY_OR_NOW 0
11090
/* When -fvisbility=hidden is used, assume the code has been annotated
11091
correspondingly for the symbols needed. */
11092
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11093
int fnord () __attribute__((visibility("default")));
11096
int fnord () { return 42; }
11099
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11100
int status = $lt_dlunknown;
11104
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11107
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11108
else puts (dlerror ());
11110
/* dlclose (self); */
11118
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11119
(eval $ac_link) 2>&5
11121
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11122
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11123
(./conftest; exit; ) >&5 2>/dev/null
11125
case x$lt_status in
11126
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11127
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11128
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11131
# compilation failed
11132
lt_cv_dlopen_self=no
11139
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11140
$as_echo "$lt_cv_dlopen_self" >&6; }
11142
if test "x$lt_cv_dlopen_self" = xyes; then
11143
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11144
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11145
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11146
if ${lt_cv_dlopen_self_static+:} false; then :
11147
$as_echo_n "(cached) " >&6
11149
if test "$cross_compiling" = yes; then :
11150
lt_cv_dlopen_self_static=cross
11152
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11153
lt_status=$lt_dlunknown
11154
cat > conftest.$ac_ext <<_LT_EOF
11155
#line $LINENO "configure"
11156
#include "confdefs.h"
11165
# define LT_DLGLOBAL RTLD_GLOBAL
11168
# define LT_DLGLOBAL DL_GLOBAL
11170
# define LT_DLGLOBAL 0
11174
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11175
find out it does not work in some platform. */
11176
#ifndef LT_DLLAZY_OR_NOW
11178
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11181
# define LT_DLLAZY_OR_NOW DL_LAZY
11184
# define LT_DLLAZY_OR_NOW RTLD_NOW
11187
# define LT_DLLAZY_OR_NOW DL_NOW
11189
# define LT_DLLAZY_OR_NOW 0
11196
/* When -fvisbility=hidden is used, assume the code has been annotated
11197
correspondingly for the symbols needed. */
11198
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11199
int fnord () __attribute__((visibility("default")));
11202
int fnord () { return 42; }
11205
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11206
int status = $lt_dlunknown;
11210
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11213
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11214
else puts (dlerror ());
11216
/* dlclose (self); */
11224
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11225
(eval $ac_link) 2>&5
11227
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11228
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11229
(./conftest; exit; ) >&5 2>/dev/null
11231
case x$lt_status in
11232
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11233
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11234
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11237
# compilation failed
11238
lt_cv_dlopen_self_static=no
11245
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11246
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11249
CPPFLAGS="$save_CPPFLAGS"
11250
LDFLAGS="$save_LDFLAGS"
11255
case $lt_cv_dlopen_self in
11256
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11257
*) enable_dlopen_self=unknown ;;
11260
case $lt_cv_dlopen_self_static in
11261
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11262
*) enable_dlopen_self_static=unknown ;;
11284
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11285
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11286
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11287
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11288
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11289
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11290
$as_echo "yes" >&6; }
11292
# FIXME - insert some real tests, host_os isn't really good enough
11295
if test -n "$STRIP" ; then
11296
striplib="$STRIP -x"
11297
old_striplib="$STRIP -S"
11298
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11299
$as_echo "yes" >&6; }
11301
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11302
$as_echo "no" >&6; }
11306
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11307
$as_echo "no" >&6; }
11323
# Report which library types will actually be built
11324
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11325
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11326
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11327
$as_echo "$can_build_shared" >&6; }
11329
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11330
$as_echo_n "checking whether to build shared libraries... " >&6; }
11331
test "$can_build_shared" = "no" && enable_shared=no
11333
# On AIX, shared libraries and static libraries use the same namespace, and
11334
# are all built from PIC.
11337
test "$enable_shared" = yes && enable_static=no
11338
if test -n "$RANLIB"; then
11339
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11340
postinstall_cmds='$RANLIB $lib'
11345
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11346
test "$enable_shared" = yes && enable_static=no
11350
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11351
$as_echo "$enable_shared" >&6; }
11353
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11354
$as_echo_n "checking whether to build static libraries... " >&6; }
11355
# Make sure either enable_shared or enable_static is yes.
11356
test "$enable_shared" = yes || enable_static=yes
11357
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11358
$as_echo "$enable_static" >&6; }
11365
ac_cpp='$CPP $CPPFLAGS'
11366
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11367
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11368
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11384
ac_config_commands="$ac_config_commands libtool"
11389
# Only expand once:
11394
###########################
11396
###########################
11398
GTK_REQUIRED_VERSION=3.0
11399
INDICATOR_REQUIRED_VERSION=0.3.0
11400
UPOWER_REQUIRED_VERSION=0.9.5
11409
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11410
if test -n "$ac_tool_prefix"; then
11411
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11412
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11413
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11414
$as_echo_n "checking for $ac_word... " >&6; }
11415
if ${ac_cv_path_PKG_CONFIG+:} false; then :
11416
$as_echo_n "(cached) " >&6
11418
case $PKG_CONFIG in
11420
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11423
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11424
for as_dir in $PATH
11427
test -z "$as_dir" && as_dir=.
11428
for ac_exec_ext in '' $ac_executable_extensions; do
11429
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11430
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11431
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11441
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11442
if test -n "$PKG_CONFIG"; then
11443
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11444
$as_echo "$PKG_CONFIG" >&6; }
11446
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11447
$as_echo "no" >&6; }
11452
if test -z "$ac_cv_path_PKG_CONFIG"; then
11453
ac_pt_PKG_CONFIG=$PKG_CONFIG
11454
# Extract the first word of "pkg-config", so it can be a program name with args.
11455
set dummy pkg-config; ac_word=$2
11456
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11457
$as_echo_n "checking for $ac_word... " >&6; }
11458
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11459
$as_echo_n "(cached) " >&6
11461
case $ac_pt_PKG_CONFIG in
11463
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11466
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11467
for as_dir in $PATH
11470
test -z "$as_dir" && as_dir=.
11471
for ac_exec_ext in '' $ac_executable_extensions; do
11472
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11473
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11474
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11484
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11485
if test -n "$ac_pt_PKG_CONFIG"; then
11486
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11487
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
11489
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11490
$as_echo "no" >&6; }
11493
if test "x$ac_pt_PKG_CONFIG" = x; then
11496
case $cross_compiling:$ac_tool_warned in
11498
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11499
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11500
ac_tool_warned=yes ;;
11502
PKG_CONFIG=$ac_pt_PKG_CONFIG
11505
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11509
if test -n "$PKG_CONFIG"; then
11510
_pkg_min_version=0.9.0
11511
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11512
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11513
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11514
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11515
$as_echo "yes" >&6; }
11517
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11518
$as_echo "no" >&6; }
11524
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UPOWER" >&5
11525
$as_echo_n "checking for UPOWER... " >&6; }
11527
if test -n "$UPOWER_CFLAGS"; then
11528
pkg_cv_UPOWER_CFLAGS="$UPOWER_CFLAGS"
11529
elif test -n "$PKG_CONFIG"; then
11530
if test -n "$PKG_CONFIG" && \
11531
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"upower-glib >= UPOWER_REQUIRED_VERSION\""; } >&5
11532
($PKG_CONFIG --exists --print-errors "upower-glib >= UPOWER_REQUIRED_VERSION") 2>&5
11534
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11535
test $ac_status = 0; }; then
11536
pkg_cv_UPOWER_CFLAGS=`$PKG_CONFIG --cflags "upower-glib >= UPOWER_REQUIRED_VERSION" 2>/dev/null`
11537
test "x$?" != "x0" && pkg_failed=yes
11544
if test -n "$UPOWER_LIBS"; then
11545
pkg_cv_UPOWER_LIBS="$UPOWER_LIBS"
11546
elif test -n "$PKG_CONFIG"; then
11547
if test -n "$PKG_CONFIG" && \
11548
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"upower-glib >= UPOWER_REQUIRED_VERSION\""; } >&5
11549
($PKG_CONFIG --exists --print-errors "upower-glib >= UPOWER_REQUIRED_VERSION") 2>&5
11551
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11552
test $ac_status = 0; }; then
11553
pkg_cv_UPOWER_LIBS=`$PKG_CONFIG --libs "upower-glib >= UPOWER_REQUIRED_VERSION" 2>/dev/null`
11554
test "x$?" != "x0" && pkg_failed=yes
11564
if test $pkg_failed = yes; then
11565
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11566
$as_echo "no" >&6; }
11568
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11569
_pkg_short_errors_supported=yes
11571
_pkg_short_errors_supported=no
11573
if test $_pkg_short_errors_supported = yes; then
11574
UPOWER_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "upower-glib >= UPOWER_REQUIRED_VERSION" 2>&1`
11576
UPOWER_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "upower-glib >= UPOWER_REQUIRED_VERSION" 2>&1`
11578
# Put the nasty error message in config.log where it belongs
11579
echo "$UPOWER_PKG_ERRORS" >&5
11581
as_fn_error $? "Package requirements (upower-glib >= UPOWER_REQUIRED_VERSION) were not met:
11585
Consider adjusting the PKG_CONFIG_PATH environment variable if you
11586
installed software in a non-standard prefix.
11588
Alternatively, you may set the environment variables UPOWER_CFLAGS
11589
and UPOWER_LIBS to avoid the need to call pkg-config.
11590
See the pkg-config man page for more details." "$LINENO" 5
11591
elif test $pkg_failed = untried; then
11592
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11593
$as_echo "no" >&6; }
11594
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11595
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11596
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11597
is in your PATH or set the PKG_CONFIG environment variable to the full
11598
path to pkg-config.
11600
Alternatively, you may set the environment variables UPOWER_CFLAGS
11601
and UPOWER_LIBS to avoid the need to call pkg-config.
11602
See the pkg-config man page for more details.
11604
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11605
See \`config.log' for more details" "$LINENO" 5; }
11607
UPOWER_CFLAGS=$pkg_cv_UPOWER_CFLAGS
11608
UPOWER_LIBS=$pkg_cv_UPOWER_LIBS
11609
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11610
$as_echo "yes" >&6; }
11615
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for INDICATOR" >&5
11616
$as_echo_n "checking for INDICATOR... " >&6; }
11618
if test -n "$INDICATOR_CFLAGS"; then
11619
pkg_cv_INDICATOR_CFLAGS="$INDICATOR_CFLAGS"
11620
elif test -n "$PKG_CONFIG"; then
11621
if test -n "$PKG_CONFIG" && \
11622
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
11623
gtk+-3.0 >= \$GTK_REQUIRED_VERSION
11624
indicator3 >= \$INDICATOR_REQUIRED_VERSION
11626
($PKG_CONFIG --exists --print-errors "
11627
gtk+-3.0 >= $GTK_REQUIRED_VERSION
11628
indicator3 >= $INDICATOR_REQUIRED_VERSION
11631
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11632
test $ac_status = 0; }; then
11633
pkg_cv_INDICATOR_CFLAGS=`$PKG_CONFIG --cflags "
11634
gtk+-3.0 >= $GTK_REQUIRED_VERSION
11635
indicator3 >= $INDICATOR_REQUIRED_VERSION
11637
test "x$?" != "x0" && pkg_failed=yes
11644
if test -n "$INDICATOR_LIBS"; then
11645
pkg_cv_INDICATOR_LIBS="$INDICATOR_LIBS"
11646
elif test -n "$PKG_CONFIG"; then
11647
if test -n "$PKG_CONFIG" && \
11648
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"
11649
gtk+-3.0 >= \$GTK_REQUIRED_VERSION
11650
indicator3 >= \$INDICATOR_REQUIRED_VERSION
11652
($PKG_CONFIG --exists --print-errors "
11653
gtk+-3.0 >= $GTK_REQUIRED_VERSION
11654
indicator3 >= $INDICATOR_REQUIRED_VERSION
11657
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11658
test $ac_status = 0; }; then
11659
pkg_cv_INDICATOR_LIBS=`$PKG_CONFIG --libs "
11660
gtk+-3.0 >= $GTK_REQUIRED_VERSION
11661
indicator3 >= $INDICATOR_REQUIRED_VERSION
11663
test "x$?" != "x0" && pkg_failed=yes
11673
if test $pkg_failed = yes; then
11674
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11675
$as_echo "no" >&6; }
11677
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11678
_pkg_short_errors_supported=yes
11680
_pkg_short_errors_supported=no
11682
if test $_pkg_short_errors_supported = yes; then
11683
INDICATOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "
11684
gtk+-3.0 >= $GTK_REQUIRED_VERSION
11685
indicator3 >= $INDICATOR_REQUIRED_VERSION
11688
INDICATOR_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "
11689
gtk+-3.0 >= $GTK_REQUIRED_VERSION
11690
indicator3 >= $INDICATOR_REQUIRED_VERSION
11693
# Put the nasty error message in config.log where it belongs
11694
echo "$INDICATOR_PKG_ERRORS" >&5
11696
as_fn_error $? "Package requirements (
11697
gtk+-3.0 >= $GTK_REQUIRED_VERSION
11698
indicator3 >= $INDICATOR_REQUIRED_VERSION
11701
$INDICATOR_PKG_ERRORS
11703
Consider adjusting the PKG_CONFIG_PATH environment variable if you
11704
installed software in a non-standard prefix.
11706
Alternatively, you may set the environment variables INDICATOR_CFLAGS
11707
and INDICATOR_LIBS to avoid the need to call pkg-config.
11708
See the pkg-config man page for more details." "$LINENO" 5
11709
elif test $pkg_failed = untried; then
11710
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11711
$as_echo "no" >&6; }
11712
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11713
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11714
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11715
is in your PATH or set the PKG_CONFIG environment variable to the full
11716
path to pkg-config.
11718
Alternatively, you may set the environment variables INDICATOR_CFLAGS
11719
and INDICATOR_LIBS to avoid the need to call pkg-config.
11720
See the pkg-config man page for more details.
11722
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
11723
See \`config.log' for more details" "$LINENO" 5; }
11725
INDICATOR_CFLAGS=$pkg_cv_INDICATOR_CFLAGS
11726
INDICATOR_LIBS=$pkg_cv_INDICATOR_LIBS
11727
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11728
$as_echo "yes" >&6; }
11732
###########################
11733
# Check to see if we're local
11734
###########################
11736
with_localinstall="no"
11737
# Check whether --enable-localinstall was given.
11738
if test "${enable_localinstall+set}" = set; then :
11739
enableval=$enable_localinstall; with_localinstall=$enableval
11741
with_localinstall=no
11745
###########################
11747
###########################
11749
if test "x$with_localinstall" = "xyes"; then
11750
INDICATORDIR="${libdir}/indicators/3/"
11751
INDICATORICONSDIR="${datadir}/indicator-applet/icons/"
11752
elif test "x$with_gtk" = x2; then
11753
INDICATORDIR=`$PKG_CONFIG --variable=indicatordir indicator`
11754
INDICATORICONSDIR=`$PKG_CONFIG --variable=iconsdir indicator`
11756
INDICATORDIR=`$PKG_CONFIG --variable=indicatordir indicator3`
11757
INDICATORICONSDIR=`$PKG_CONFIG --variable=iconsdir indicator3`
11762
###########################
11763
# DBus Service Info
11764
###########################
11766
if test "x$with_localinstall" = "xyes"; then
11767
DBUSSERVICEDIR="${datadir}/dbus-1/services/"
11769
DBUSSERVICEDIR=`$PKG_CONFIG --variable=session_bus_services_dir dbus-1`
11773
##############################
11775
##############################
11779
###########################
11780
# Internationalization
11781
###########################
11784
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11785
$as_echo_n "checking whether NLS is requested... " >&6; }
11786
# Check whether --enable-nls was given.
11787
if test "${enable_nls+set}" = set; then :
11788
enableval=$enable_nls; USE_NLS=$enableval
11793
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11794
$as_echo "$USE_NLS" >&6; }
11799
case "$am__api_version" in
11801
as_fn_error $? "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
11807
if test -n "0.41.0"; then
11808
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.41.0" >&5
11809
$as_echo_n "checking for intltool >= 0.41.0... " >&6; }
11811
INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.41.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
11812
INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
11813
INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
11815
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
11816
$as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
11817
test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
11818
as_fn_error $? "Your intltool is too old. You need intltool 0.41.0 or later." "$LINENO" 5
11821
# Extract the first word of "intltool-update", so it can be a program name with args.
11822
set dummy intltool-update; ac_word=$2
11823
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11824
$as_echo_n "checking for $ac_word... " >&6; }
11825
if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then :
11826
$as_echo_n "(cached) " >&6
11828
case $INTLTOOL_UPDATE in
11830
ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
11833
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11834
for as_dir in $PATH
11837
test -z "$as_dir" && as_dir=.
11838
for ac_exec_ext in '' $ac_executable_extensions; do
11839
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11840
ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
11841
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11851
INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
11852
if test -n "$INTLTOOL_UPDATE"; then
11853
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
11854
$as_echo "$INTLTOOL_UPDATE" >&6; }
11856
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11857
$as_echo "no" >&6; }
11861
# Extract the first word of "intltool-merge", so it can be a program name with args.
11862
set dummy intltool-merge; ac_word=$2
11863
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11864
$as_echo_n "checking for $ac_word... " >&6; }
11865
if ${ac_cv_path_INTLTOOL_MERGE+:} false; then :
11866
$as_echo_n "(cached) " >&6
11868
case $INTLTOOL_MERGE in
11870
ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
11873
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11874
for as_dir in $PATH
11877
test -z "$as_dir" && as_dir=.
11878
for ac_exec_ext in '' $ac_executable_extensions; do
11879
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11880
ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
11881
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11891
INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
11892
if test -n "$INTLTOOL_MERGE"; then
11893
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
11894
$as_echo "$INTLTOOL_MERGE" >&6; }
11896
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11897
$as_echo "no" >&6; }
11901
# Extract the first word of "intltool-extract", so it can be a program name with args.
11902
set dummy intltool-extract; ac_word=$2
11903
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11904
$as_echo_n "checking for $ac_word... " >&6; }
11905
if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then :
11906
$as_echo_n "(cached) " >&6
11908
case $INTLTOOL_EXTRACT in
11910
ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
11913
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11914
for as_dir in $PATH
11917
test -z "$as_dir" && as_dir=.
11918
for ac_exec_ext in '' $ac_executable_extensions; do
11919
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11920
ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
11921
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11931
INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
11932
if test -n "$INTLTOOL_EXTRACT"; then
11933
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
11934
$as_echo "$INTLTOOL_EXTRACT" >&6; }
11936
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11937
$as_echo "no" >&6; }
11941
if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
11942
as_fn_error $? "The intltool scripts were not found. Please install intltool." "$LINENO" 5
11945
INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11946
INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11947
INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11948
INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11949
INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
11950
INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11951
INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11952
INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11953
INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11954
INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11955
INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11956
INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
11957
INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11958
INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11959
INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11960
INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11961
INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11962
INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11963
INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
12061
# Check the gettext tools to make sure they are GNU
12062
# Extract the first word of "xgettext", so it can be a program name with args.
12063
set dummy xgettext; ac_word=$2
12064
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12065
$as_echo_n "checking for $ac_word... " >&6; }
12066
if ${ac_cv_path_XGETTEXT+:} false; then :
12067
$as_echo_n "(cached) " >&6
12071
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12074
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12075
for as_dir in $PATH
12078
test -z "$as_dir" && as_dir=.
12079
for ac_exec_ext in '' $ac_executable_extensions; do
12080
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12081
ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
12082
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12092
XGETTEXT=$ac_cv_path_XGETTEXT
12093
if test -n "$XGETTEXT"; then
12094
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12095
$as_echo "$XGETTEXT" >&6; }
12097
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12098
$as_echo "no" >&6; }
12102
# Extract the first word of "msgmerge", so it can be a program name with args.
12103
set dummy msgmerge; ac_word=$2
12104
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12105
$as_echo_n "checking for $ac_word... " >&6; }
12106
if ${ac_cv_path_MSGMERGE+:} false; then :
12107
$as_echo_n "(cached) " >&6
12111
ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12114
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12115
for as_dir in $PATH
12118
test -z "$as_dir" && as_dir=.
12119
for ac_exec_ext in '' $ac_executable_extensions; do
12120
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12121
ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
12122
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12132
MSGMERGE=$ac_cv_path_MSGMERGE
12133
if test -n "$MSGMERGE"; then
12134
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12135
$as_echo "$MSGMERGE" >&6; }
12137
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12138
$as_echo "no" >&6; }
12142
# Extract the first word of "msgfmt", so it can be a program name with args.
12143
set dummy msgfmt; ac_word=$2
12144
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12145
$as_echo_n "checking for $ac_word... " >&6; }
12146
if ${ac_cv_path_MSGFMT+:} false; then :
12147
$as_echo_n "(cached) " >&6
12151
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12154
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12155
for as_dir in $PATH
12158
test -z "$as_dir" && as_dir=.
12159
for ac_exec_ext in '' $ac_executable_extensions; do
12160
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12161
ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
12162
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12172
MSGFMT=$ac_cv_path_MSGFMT
12173
if test -n "$MSGFMT"; then
12174
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12175
$as_echo "$MSGFMT" >&6; }
12177
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12178
$as_echo "no" >&6; }
12182
# Extract the first word of "gmsgfmt", so it can be a program name with args.
12183
set dummy gmsgfmt; ac_word=$2
12184
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12185
$as_echo_n "checking for $ac_word... " >&6; }
12186
if ${ac_cv_path_GMSGFMT+:} false; then :
12187
$as_echo_n "(cached) " >&6
12191
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12194
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12195
for as_dir in $PATH
12198
test -z "$as_dir" && as_dir=.
12199
for ac_exec_ext in '' $ac_executable_extensions; do
12200
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12201
ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12202
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12209
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12213
GMSGFMT=$ac_cv_path_GMSGFMT
12214
if test -n "$GMSGFMT"; then
12215
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12216
$as_echo "$GMSGFMT" >&6; }
12218
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12219
$as_echo "no" >&6; }
12223
if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
12224
as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
12226
xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
12227
mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
12228
mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
12229
if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
12230
as_fn_error $? "GNU gettext tools not found; required for intltool" "$LINENO" 5
12233
# Extract the first word of "perl", so it can be a program name with args.
12234
set dummy perl; ac_word=$2
12235
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12236
$as_echo_n "checking for $ac_word... " >&6; }
12237
if ${ac_cv_path_INTLTOOL_PERL+:} false; then :
12238
$as_echo_n "(cached) " >&6
12240
case $INTLTOOL_PERL in
12242
ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
12245
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12246
for as_dir in $PATH
12249
test -z "$as_dir" && as_dir=.
12250
for ac_exec_ext in '' $ac_executable_extensions; do
12251
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12252
ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
12253
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12263
INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
12264
if test -n "$INTLTOOL_PERL"; then
12265
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
12266
$as_echo "$INTLTOOL_PERL" >&6; }
12268
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12269
$as_echo "no" >&6; }
12273
if test -z "$INTLTOOL_PERL"; then
12274
as_fn_error $? "perl not found" "$LINENO" 5
12276
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
12277
$as_echo_n "checking for perl >= 5.8.1... " >&6; }
12278
$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
12279
if test $? -ne 0; then
12280
as_fn_error $? "perl 5.8.1 is required for intltool" "$LINENO" 5
12282
IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
12283
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
12284
$as_echo "$IT_PERL_VERSION" >&6; }
12286
if test "x" != "xno-xml"; then
12287
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
12288
$as_echo_n "checking for XML::Parser... " >&6; }
12289
if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
12290
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12291
$as_echo "ok" >&6; }
12293
as_fn_error $? "XML::Parser perl module is required for intltool" "$LINENO" 5
12297
# Substitute ALL_LINGUAS so we can use it in po/Makefile
12300
# Set DATADIRNAME correctly if it is not set yet
12301
# (copied from glib-gettext.m4)
12302
if test -z "$DATADIRNAME"; then
12303
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12304
/* end confdefs.h. */
12309
extern int _nl_msg_cat_cntr;
12310
return _nl_msg_cat_cntr
12315
if ac_fn_c_try_link "$LINENO"; then :
12320
ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
12321
if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then :
12333
rm -f core conftest.err conftest.$ac_objext \
12334
conftest$ac_exeext conftest.$ac_ext
12344
GETTEXT_MACRO_VERSION=0.17
12349
# Prepare PATH_SEPARATOR.
12350
# The user is always right.
12351
if test "${PATH_SEPARATOR+set}" != set; then
12352
echo "#! /bin/sh" >conf$$.sh
12353
echo "exit 0" >>conf$$.sh
12355
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12363
# Find out how to test for executable files. Don't use a zero-byte file,
12364
# as systems may use methods other than mode bits to determine executability.
12365
cat >conf$$.file <<_ASEOF
12369
chmod +x conf$$.file
12370
if test -x conf$$.file >/dev/null 2>&1; then
12371
ac_executable_p="test -x"
12373
ac_executable_p="test -f"
12377
# Extract the first word of "msgfmt", so it can be a program name with args.
12378
set dummy msgfmt; ac_word=$2
12379
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12380
$as_echo_n "checking for $ac_word... " >&6; }
12381
if ${ac_cv_path_MSGFMT+:} false; then :
12382
$as_echo_n "(cached) " >&6
12386
ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
12389
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12390
for ac_dir in $PATH; do
12392
test -z "$ac_dir" && ac_dir=.
12393
for ac_exec_ext in '' $ac_executable_extensions; do
12394
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12395
echo "$as_me: trying $ac_dir/$ac_word..." >&5
12396
if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
12397
(if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12398
ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
12405
test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
12409
MSGFMT="$ac_cv_path_MSGFMT"
12410
if test "$MSGFMT" != ":"; then
12411
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12412
$as_echo "$MSGFMT" >&6; }
12414
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12415
$as_echo "no" >&6; }
12418
# Extract the first word of "gmsgfmt", so it can be a program name with args.
12419
set dummy gmsgfmt; ac_word=$2
12420
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12421
$as_echo_n "checking for $ac_word... " >&6; }
12422
if ${ac_cv_path_GMSGFMT+:} false; then :
12423
$as_echo_n "(cached) " >&6
12427
ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12430
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12431
for as_dir in $PATH
12434
test -z "$as_dir" && as_dir=.
12435
for ac_exec_ext in '' $ac_executable_extensions; do
12436
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12437
ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12438
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12445
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12449
GMSGFMT=$ac_cv_path_GMSGFMT
12450
if test -n "$GMSGFMT"; then
12451
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12452
$as_echo "$GMSGFMT" >&6; }
12454
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12455
$as_echo "no" >&6; }
12460
case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12461
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
12462
*) MSGFMT_015=$MSGFMT ;;
12465
case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12466
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
12467
*) GMSGFMT_015=$GMSGFMT ;;
12472
# Prepare PATH_SEPARATOR.
12473
# The user is always right.
12474
if test "${PATH_SEPARATOR+set}" != set; then
12475
echo "#! /bin/sh" >conf$$.sh
12476
echo "exit 0" >>conf$$.sh
12478
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12486
# Find out how to test for executable files. Don't use a zero-byte file,
12487
# as systems may use methods other than mode bits to determine executability.
12488
cat >conf$$.file <<_ASEOF
12492
chmod +x conf$$.file
12493
if test -x conf$$.file >/dev/null 2>&1; then
12494
ac_executable_p="test -x"
12496
ac_executable_p="test -f"
12500
# Extract the first word of "xgettext", so it can be a program name with args.
12501
set dummy xgettext; ac_word=$2
12502
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12503
$as_echo_n "checking for $ac_word... " >&6; }
12504
if ${ac_cv_path_XGETTEXT+:} false; then :
12505
$as_echo_n "(cached) " >&6
12507
case "$XGETTEXT" in
12509
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12512
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12513
for ac_dir in $PATH; do
12515
test -z "$ac_dir" && ac_dir=.
12516
for ac_exec_ext in '' $ac_executable_extensions; do
12517
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12518
echo "$as_me: trying $ac_dir/$ac_word..." >&5
12519
if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
12520
(if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
12521
ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
12528
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12532
XGETTEXT="$ac_cv_path_XGETTEXT"
12533
if test "$XGETTEXT" != ":"; then
12534
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12535
$as_echo "$XGETTEXT" >&6; }
12537
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12538
$as_echo "no" >&6; }
12543
case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
12544
'' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
12545
*) XGETTEXT_015=$XGETTEXT ;;
12550
# Prepare PATH_SEPARATOR.
12551
# The user is always right.
12552
if test "${PATH_SEPARATOR+set}" != set; then
12553
echo "#! /bin/sh" >conf$$.sh
12554
echo "exit 0" >>conf$$.sh
12556
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12564
# Find out how to test for executable files. Don't use a zero-byte file,
12565
# as systems may use methods other than mode bits to determine executability.
12566
cat >conf$$.file <<_ASEOF
12570
chmod +x conf$$.file
12571
if test -x conf$$.file >/dev/null 2>&1; then
12572
ac_executable_p="test -x"
12574
ac_executable_p="test -f"
12578
# Extract the first word of "msgmerge", so it can be a program name with args.
12579
set dummy msgmerge; ac_word=$2
12580
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12581
$as_echo_n "checking for $ac_word... " >&6; }
12582
if ${ac_cv_path_MSGMERGE+:} false; then :
12583
$as_echo_n "(cached) " >&6
12585
case "$MSGMERGE" in
12587
ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
12590
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
12591
for ac_dir in $PATH; do
12593
test -z "$ac_dir" && ac_dir=.
12594
for ac_exec_ext in '' $ac_executable_extensions; do
12595
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
12596
echo "$as_me: trying $ac_dir/$ac_word..." >&5
12597
if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
12598
ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
12605
test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
12609
MSGMERGE="$ac_cv_path_MSGMERGE"
12610
if test "$MSGMERGE" != ":"; then
12611
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
12612
$as_echo "$MSGMERGE" >&6; }
12614
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12615
$as_echo "no" >&6; }
12619
test -n "$localedir" || localedir='${datadir}/locale'
12622
test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
12625
ac_config_commands="$ac_config_commands po-directories"
12629
if test "X$prefix" = "XNONE"; then
12630
acl_final_prefix="$ac_default_prefix"
12632
acl_final_prefix="$prefix"
12634
if test "X$exec_prefix" = "XNONE"; then
12635
acl_final_exec_prefix='${prefix}'
12637
acl_final_exec_prefix="$exec_prefix"
12639
acl_save_prefix="$prefix"
12640
prefix="$acl_final_prefix"
12641
eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
12642
prefix="$acl_save_prefix"
12645
# Check whether --with-gnu-ld was given.
12646
if test "${with_gnu_ld+set}" = set; then :
12647
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12652
# Prepare PATH_SEPARATOR.
12653
# The user is always right.
12654
if test "${PATH_SEPARATOR+set}" != set; then
12655
echo "#! /bin/sh" >conf$$.sh
12656
echo "exit 0" >>conf$$.sh
12658
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12666
if test "$GCC" = yes; then
12667
# Check if gcc -print-prog-name=ld gives a path.
12668
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
12669
$as_echo_n "checking for ld used by GCC... " >&6; }
12672
# gcc leaves a trailing carriage return which upsets mingw
12673
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12675
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12678
# Accept absolute paths.
12679
[\\/]* | [A-Za-z]:[\\/]*)
12680
re_direlt='/[^/][^/]*/\.\./'
12681
# Canonicalize the path of ld
12682
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
12683
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
12684
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
12686
test -z "$LD" && LD="$ac_prog"
12689
# If it fails, then pretend we aren't using GCC.
12693
# If it is relative, then search for the first ld in PATH.
12694
with_gnu_ld=unknown
12697
elif test "$with_gnu_ld" = yes; then
12698
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12699
$as_echo_n "checking for GNU ld... " >&6; }
12701
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12702
$as_echo_n "checking for non-GNU ld... " >&6; }
12704
if ${acl_cv_path_LD+:} false; then :
12705
$as_echo_n "(cached) " >&6
12707
if test -z "$LD"; then
12708
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
12709
for ac_dir in $PATH; do
12710
test -z "$ac_dir" && ac_dir=.
12711
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12712
acl_cv_path_LD="$ac_dir/$ac_prog"
12713
# Check to see if the program is GNU ld. I'd rather use --version,
12714
# but apparently some GNU ld's only accept -v.
12715
# Break only if it was the GNU/non-GNU ld that we prefer.
12716
case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
12717
*GNU* | *'with BFD'*)
12718
test "$with_gnu_ld" != no && break ;;
12720
test "$with_gnu_ld" != yes && break ;;
12726
acl_cv_path_LD="$LD" # Let the user override the test with a path.
12730
LD="$acl_cv_path_LD"
12731
if test -n "$LD"; then
12732
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12733
$as_echo "$LD" >&6; }
12735
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12736
$as_echo "no" >&6; }
12738
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12739
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12740
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12741
if ${acl_cv_prog_gnu_ld+:} false; then :
12742
$as_echo_n "(cached) " >&6
12744
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
12745
case `$LD -v 2>&1 </dev/null` in
12746
*GNU* | *'with BFD'*)
12747
acl_cv_prog_gnu_ld=yes ;;
12749
acl_cv_prog_gnu_ld=no ;;
12752
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
12753
$as_echo "$acl_cv_prog_gnu_ld" >&6; }
12754
with_gnu_ld=$acl_cv_prog_gnu_ld
12759
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
12760
$as_echo_n "checking for shared library run path origin... " >&6; }
12761
if ${acl_cv_rpath+:} false; then :
12762
$as_echo_n "(cached) " >&6
12765
CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
12766
${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
12768
rm -f ./conftest.sh
12772
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
12773
$as_echo "$acl_cv_rpath" >&6; }
12775
acl_libext="$acl_cv_libext"
12776
acl_shlibext="$acl_cv_shlibext"
12777
acl_libname_spec="$acl_cv_libname_spec"
12778
acl_library_names_spec="$acl_cv_library_names_spec"
12779
acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
12780
acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
12781
acl_hardcode_direct="$acl_cv_hardcode_direct"
12782
acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
12783
# Check whether --enable-rpath was given.
12784
if test "${enable_rpath+set}" = set; then :
12785
enableval=$enable_rpath; :
12793
searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
12794
if test -n "$searchpath"; then
12795
acl_save_IFS="${IFS= }"; IFS=":"
12796
for searchdir in $searchpath; do
12797
if test -d "$searchdir"; then
12798
case "$searchdir" in
12799
*/lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
12800
*) searchdir=`cd "$searchdir" && pwd`
12801
case "$searchdir" in
12802
*/lib64 ) acl_libdirstem=lib64 ;;
12807
IFS="$acl_save_IFS"
12820
acl_save_prefix="$prefix"
12821
prefix="$acl_final_prefix"
12822
acl_save_exec_prefix="$exec_prefix"
12823
exec_prefix="$acl_final_exec_prefix"
12825
eval additional_includedir=\"$includedir\"
12826
eval additional_libdir=\"$libdir\"
12828
exec_prefix="$acl_save_exec_prefix"
12829
prefix="$acl_save_prefix"
12832
# Check whether --with-libiconv-prefix was given.
12833
if test "${with_libiconv_prefix+set}" = set; then :
12834
withval=$with_libiconv_prefix;
12835
if test "X$withval" = "Xno"; then
12838
if test "X$withval" = "X"; then
12840
acl_save_prefix="$prefix"
12841
prefix="$acl_final_prefix"
12842
acl_save_exec_prefix="$exec_prefix"
12843
exec_prefix="$acl_final_exec_prefix"
12845
eval additional_includedir=\"$includedir\"
12846
eval additional_libdir=\"$libdir\"
12848
exec_prefix="$acl_save_exec_prefix"
12849
prefix="$acl_save_prefix"
12852
additional_includedir="$withval/include"
12853
additional_libdir="$withval/$acl_libdirstem"
12865
names_already_handled=
12866
names_next_round='iconv '
12867
while test -n "$names_next_round"; do
12868
names_this_round="$names_next_round"
12870
for name in $names_this_round; do
12872
for n in $names_already_handled; do
12873
if test "$n" = "$name"; then
12874
already_handled=yes
12878
if test -z "$already_handled"; then
12879
names_already_handled="$names_already_handled $name"
12880
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
12881
eval value=\"\$HAVE_LIB$uppername\"
12882
if test -n "$value"; then
12883
if test "$value" = yes; then
12884
eval value=\"\$LIB$uppername\"
12885
test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
12886
eval value=\"\$LTLIB$uppername\"
12887
test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
12896
eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
12897
if test -n "$acl_shlibext"; then
12898
shrext=".$acl_shlibext" # typically: shrext=.so
12902
if test $use_additional = yes; then
12903
dir="$additional_libdir"
12904
if test -n "$acl_shlibext"; then
12905
if test -f "$dir/$libname$shrext"; then
12907
found_so="$dir/$libname$shrext"
12909
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12910
ver=`(cd "$dir" && \
12911
for f in "$libname$shrext".*; do echo "$f"; done \
12912
| sed -e "s,^$libname$shrext\\\\.,," \
12913
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12914
| sed 1q ) 2>/dev/null`
12915
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12917
found_so="$dir/$libname$shrext.$ver"
12920
eval library_names=\"$acl_library_names_spec\"
12921
for f in $library_names; do
12922
if test -f "$dir/$f"; then
12931
if test "X$found_dir" = "X"; then
12932
if test -f "$dir/$libname.$acl_libext"; then
12934
found_a="$dir/$libname.$acl_libext"
12937
if test "X$found_dir" != "X"; then
12938
if test -f "$dir/$libname.la"; then
12939
found_la="$dir/$libname.la"
12943
if test "X$found_dir" = "X"; then
12944
for x in $LDFLAGS $LTLIBICONV; do
12946
acl_save_prefix="$prefix"
12947
prefix="$acl_final_prefix"
12948
acl_save_exec_prefix="$exec_prefix"
12949
exec_prefix="$acl_final_exec_prefix"
12951
exec_prefix="$acl_save_exec_prefix"
12952
prefix="$acl_save_prefix"
12956
dir=`echo "X$x" | sed -e 's/^X-L//'`
12957
if test -n "$acl_shlibext"; then
12958
if test -f "$dir/$libname$shrext"; then
12960
found_so="$dir/$libname$shrext"
12962
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
12963
ver=`(cd "$dir" && \
12964
for f in "$libname$shrext".*; do echo "$f"; done \
12965
| sed -e "s,^$libname$shrext\\\\.,," \
12966
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
12967
| sed 1q ) 2>/dev/null`
12968
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
12970
found_so="$dir/$libname$shrext.$ver"
12973
eval library_names=\"$acl_library_names_spec\"
12974
for f in $library_names; do
12975
if test -f "$dir/$f"; then
12984
if test "X$found_dir" = "X"; then
12985
if test -f "$dir/$libname.$acl_libext"; then
12987
found_a="$dir/$libname.$acl_libext"
12990
if test "X$found_dir" != "X"; then
12991
if test -f "$dir/$libname.la"; then
12992
found_la="$dir/$libname.la"
12997
if test "X$found_dir" != "X"; then
13002
if test "X$found_dir" != "X"; then
13003
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
13004
if test "X$found_so" != "X"; then
13005
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13006
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13009
for x in $ltrpathdirs; do
13010
if test "X$x" = "X$found_dir"; then
13015
if test -z "$haveit"; then
13016
ltrpathdirs="$ltrpathdirs $found_dir"
13018
if test "$acl_hardcode_direct" = yes; then
13019
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13021
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13022
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13024
for x in $rpathdirs; do
13025
if test "X$x" = "X$found_dir"; then
13030
if test -z "$haveit"; then
13031
rpathdirs="$rpathdirs $found_dir"
13035
for x in $LDFLAGS $LIBICONV; do
13037
acl_save_prefix="$prefix"
13038
prefix="$acl_final_prefix"
13039
acl_save_exec_prefix="$exec_prefix"
13040
exec_prefix="$acl_final_exec_prefix"
13042
exec_prefix="$acl_save_exec_prefix"
13043
prefix="$acl_save_prefix"
13045
if test "X$x" = "X-L$found_dir"; then
13050
if test -z "$haveit"; then
13051
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
13053
if test "$acl_hardcode_minus_L" != no; then
13054
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
13056
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13062
if test "X$found_a" != "X"; then
13063
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
13065
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
13068
additional_includedir=
13069
case "$found_dir" in
13070
*/$acl_libdirstem | */$acl_libdirstem/)
13071
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13072
LIBICONV_PREFIX="$basedir"
13073
additional_includedir="$basedir/include"
13076
if test "X$additional_includedir" != "X"; then
13077
if test "X$additional_includedir" != "X/usr/include"; then
13079
if test "X$additional_includedir" = "X/usr/local/include"; then
13080
if test -n "$GCC"; then
13082
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13086
if test -z "$haveit"; then
13087
for x in $CPPFLAGS $INCICONV; do
13089
acl_save_prefix="$prefix"
13090
prefix="$acl_final_prefix"
13091
acl_save_exec_prefix="$exec_prefix"
13092
exec_prefix="$acl_final_exec_prefix"
13094
exec_prefix="$acl_save_exec_prefix"
13095
prefix="$acl_save_prefix"
13097
if test "X$x" = "X-I$additional_includedir"; then
13102
if test -z "$haveit"; then
13103
if test -d "$additional_includedir"; then
13104
INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
13110
if test -n "$found_la"; then
13111
save_libdir="$libdir"
13112
case "$found_la" in
13113
*/* | *\\*) . "$found_la" ;;
13114
*) . "./$found_la" ;;
13116
libdir="$save_libdir"
13117
for dep in $dependency_libs; do
13120
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13121
if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13123
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13124
if test -n "$GCC"; then
13126
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13130
if test -z "$haveit"; then
13132
for x in $LDFLAGS $LIBICONV; do
13134
acl_save_prefix="$prefix"
13135
prefix="$acl_final_prefix"
13136
acl_save_exec_prefix="$exec_prefix"
13137
exec_prefix="$acl_final_exec_prefix"
13139
exec_prefix="$acl_save_exec_prefix"
13140
prefix="$acl_save_prefix"
13142
if test "X$x" = "X-L$additional_libdir"; then
13147
if test -z "$haveit"; then
13148
if test -d "$additional_libdir"; then
13149
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
13153
for x in $LDFLAGS $LTLIBICONV; do
13155
acl_save_prefix="$prefix"
13156
prefix="$acl_final_prefix"
13157
acl_save_exec_prefix="$exec_prefix"
13158
exec_prefix="$acl_final_exec_prefix"
13160
exec_prefix="$acl_save_exec_prefix"
13161
prefix="$acl_save_prefix"
13163
if test "X$x" = "X-L$additional_libdir"; then
13168
if test -z "$haveit"; then
13169
if test -d "$additional_libdir"; then
13170
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
13177
dir=`echo "X$dep" | sed -e 's/^X-R//'`
13178
if test "$enable_rpath" != no; then
13180
for x in $rpathdirs; do
13181
if test "X$x" = "X$dir"; then
13186
if test -z "$haveit"; then
13187
rpathdirs="$rpathdirs $dir"
13190
for x in $ltrpathdirs; do
13191
if test "X$x" = "X$dir"; then
13196
if test -z "$haveit"; then
13197
ltrpathdirs="$ltrpathdirs $dir"
13202
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
13205
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
13208
LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
13209
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
13215
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
13216
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
13222
if test "X$rpathdirs" != "X"; then
13223
if test -n "$acl_hardcode_libdir_separator"; then
13225
for found_dir in $rpathdirs; do
13226
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
13228
acl_save_libdir="$libdir"
13230
eval flag=\"$acl_hardcode_libdir_flag_spec\"
13231
libdir="$acl_save_libdir"
13232
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13234
for found_dir in $rpathdirs; do
13235
acl_save_libdir="$libdir"
13236
libdir="$found_dir"
13237
eval flag=\"$acl_hardcode_libdir_flag_spec\"
13238
libdir="$acl_save_libdir"
13239
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
13243
if test "X$ltrpathdirs" != "X"; then
13244
for found_dir in $ltrpathdirs; do
13245
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
13273
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
13274
$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
13275
if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
13276
$as_echo_n "(cached) " >&6
13278
gt_save_LIBS="$LIBS"
13279
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13280
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13281
/* end confdefs.h. */
13282
#include <CoreFoundation/CFPreferences.h>
13286
CFPreferencesCopyAppValue(NULL, NULL)
13291
if ac_fn_c_try_link "$LINENO"; then :
13292
gt_cv_func_CFPreferencesCopyAppValue=yes
13294
gt_cv_func_CFPreferencesCopyAppValue=no
13296
rm -f core conftest.err conftest.$ac_objext \
13297
conftest$ac_exeext conftest.$ac_ext
13298
LIBS="$gt_save_LIBS"
13300
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
13301
$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
13302
if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
13304
$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
13307
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
13308
$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
13309
if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
13310
$as_echo_n "(cached) " >&6
13312
gt_save_LIBS="$LIBS"
13313
LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
13314
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13315
/* end confdefs.h. */
13316
#include <CoreFoundation/CFLocale.h>
13320
CFLocaleCopyCurrent();
13325
if ac_fn_c_try_link "$LINENO"; then :
13326
gt_cv_func_CFLocaleCopyCurrent=yes
13328
gt_cv_func_CFLocaleCopyCurrent=no
13330
rm -f core conftest.err conftest.$ac_objext \
13331
conftest$ac_exeext conftest.$ac_ext
13332
LIBS="$gt_save_LIBS"
13334
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
13335
$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
13336
if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13338
$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
13342
if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
13343
INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
13355
case " $gt_needs " in
13356
*" need-formatstring-macros "*) gt_api_version=3 ;;
13357
*" need-ngettext "*) gt_api_version=2 ;;
13358
*) gt_api_version=1 ;;
13360
gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
13361
gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
13363
if test "$USE_NLS" = "yes"; then
13364
gt_use_preinstalled_gnugettext=no
13367
if test $gt_api_version -ge 3; then
13368
gt_revision_test_code='
13369
#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
13370
#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
13372
typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
13375
gt_revision_test_code=
13377
if test $gt_api_version -ge 2; then
13378
gt_expression_test_code=' + * ngettext ("", "", 0)'
13380
gt_expression_test_code=
13383
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
13384
$as_echo_n "checking for GNU gettext in libc... " >&6; }
13385
if eval \${$gt_func_gnugettext_libc+:} false; then :
13386
$as_echo_n "(cached) " >&6
13388
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13389
/* end confdefs.h. */
13390
#include <libintl.h>
13391
$gt_revision_test_code
13392
extern int _nl_msg_cat_cntr;
13393
extern int *_nl_domain_bindings;
13397
bindtextdomain ("", "");
13398
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
13403
if ac_fn_c_try_link "$LINENO"; then :
13404
eval "$gt_func_gnugettext_libc=yes"
13406
eval "$gt_func_gnugettext_libc=no"
13408
rm -f core conftest.err conftest.$ac_objext \
13409
conftest$ac_exeext conftest.$ac_ext
13411
eval ac_res=\$$gt_func_gnugettext_libc
13412
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13413
$as_echo "$ac_res" >&6; }
13415
if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
13421
am_save_CPPFLAGS="$CPPFLAGS"
13423
for element in $INCICONV; do
13425
for x in $CPPFLAGS; do
13427
acl_save_prefix="$prefix"
13428
prefix="$acl_final_prefix"
13429
acl_save_exec_prefix="$exec_prefix"
13430
exec_prefix="$acl_final_exec_prefix"
13432
exec_prefix="$acl_save_exec_prefix"
13433
prefix="$acl_save_prefix"
13435
if test "X$x" = "X$element"; then
13440
if test -z "$haveit"; then
13441
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
13446
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
13447
$as_echo_n "checking for iconv... " >&6; }
13448
if ${am_cv_func_iconv+:} false; then :
13449
$as_echo_n "(cached) " >&6
13452
am_cv_func_iconv="no, consider installing GNU libiconv"
13454
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13455
/* end confdefs.h. */
13456
#include <stdlib.h>
13461
iconv_t cd = iconv_open("","");
13462
iconv(cd,NULL,NULL,NULL,NULL);
13468
if ac_fn_c_try_link "$LINENO"; then :
13469
am_cv_func_iconv=yes
13471
rm -f core conftest.err conftest.$ac_objext \
13472
conftest$ac_exeext conftest.$ac_ext
13473
if test "$am_cv_func_iconv" != yes; then
13474
am_save_LIBS="$LIBS"
13475
LIBS="$LIBS $LIBICONV"
13476
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13477
/* end confdefs.h. */
13478
#include <stdlib.h>
13483
iconv_t cd = iconv_open("","");
13484
iconv(cd,NULL,NULL,NULL,NULL);
13490
if ac_fn_c_try_link "$LINENO"; then :
13491
am_cv_lib_iconv=yes
13492
am_cv_func_iconv=yes
13494
rm -f core conftest.err conftest.$ac_objext \
13495
conftest$ac_exeext conftest.$ac_ext
13496
LIBS="$am_save_LIBS"
13500
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
13501
$as_echo "$am_cv_func_iconv" >&6; }
13502
if test "$am_cv_func_iconv" = yes; then
13503
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
13504
$as_echo_n "checking for working iconv... " >&6; }
13505
if ${am_cv_func_iconv_works+:} false; then :
13506
$as_echo_n "(cached) " >&6
13509
am_save_LIBS="$LIBS"
13510
if test $am_cv_lib_iconv = yes; then
13511
LIBS="$LIBS $LIBICONV"
13513
if test "$cross_compiling" = yes; then :
13515
aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
13516
*) am_cv_func_iconv_works="guessing yes" ;;
13519
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13520
/* end confdefs.h. */
13523
#include <string.h>
13526
/* Test against AIX 5.1 bug: Failures are not distinguishable from successful
13529
iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
13530
if (cd_utf8_to_88591 != (iconv_t)(-1))
13532
static const char input[] = "\342\202\254"; /* EURO SIGN */
13534
const char *inptr = input;
13535
size_t inbytesleft = strlen (input);
13536
char *outptr = buf;
13537
size_t outbytesleft = sizeof (buf);
13538
size_t res = iconv (cd_utf8_to_88591,
13539
(char **) &inptr, &inbytesleft,
13540
&outptr, &outbytesleft);
13545
#if 0 /* This bug could be worked around by the caller. */
13546
/* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
13548
iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
13549
if (cd_88591_to_utf8 != (iconv_t)(-1))
13551
static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
13553
const char *inptr = input;
13554
size_t inbytesleft = strlen (input);
13555
char *outptr = buf;
13556
size_t outbytesleft = sizeof (buf);
13557
size_t res = iconv (cd_88591_to_utf8,
13558
(char **) &inptr, &inbytesleft,
13559
&outptr, &outbytesleft);
13565
/* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
13567
if (/* Try standardized names. */
13568
iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
13569
/* Try IRIX, OSF/1 names. */
13570
&& iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
13571
/* Try AIX names. */
13572
&& iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
13573
/* Try HP-UX names. */
13574
&& iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
13579
if ac_fn_c_try_run "$LINENO"; then :
13580
am_cv_func_iconv_works=yes
13582
am_cv_func_iconv_works=no
13584
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13585
conftest.$ac_objext conftest.beam conftest.$ac_ext
13588
LIBS="$am_save_LIBS"
13591
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
13592
$as_echo "$am_cv_func_iconv_works" >&6; }
13593
case "$am_cv_func_iconv_works" in
13594
*no) am_func_iconv=no am_cv_lib_iconv=no ;;
13595
*) am_func_iconv=yes ;;
13598
am_func_iconv=no am_cv_lib_iconv=no
13600
if test "$am_func_iconv" = yes; then
13602
$as_echo "#define HAVE_ICONV 1" >>confdefs.h
13605
if test "$am_cv_lib_iconv" = yes; then
13606
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
13607
$as_echo_n "checking how to link with libiconv... " >&6; }
13608
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
13609
$as_echo "$LIBICONV" >&6; }
13611
CPPFLAGS="$am_save_CPPFLAGS"
13625
acl_save_prefix="$prefix"
13626
prefix="$acl_final_prefix"
13627
acl_save_exec_prefix="$exec_prefix"
13628
exec_prefix="$acl_final_exec_prefix"
13630
eval additional_includedir=\"$includedir\"
13631
eval additional_libdir=\"$libdir\"
13633
exec_prefix="$acl_save_exec_prefix"
13634
prefix="$acl_save_prefix"
13637
# Check whether --with-libintl-prefix was given.
13638
if test "${with_libintl_prefix+set}" = set; then :
13639
withval=$with_libintl_prefix;
13640
if test "X$withval" = "Xno"; then
13643
if test "X$withval" = "X"; then
13645
acl_save_prefix="$prefix"
13646
prefix="$acl_final_prefix"
13647
acl_save_exec_prefix="$exec_prefix"
13648
exec_prefix="$acl_final_exec_prefix"
13650
eval additional_includedir=\"$includedir\"
13651
eval additional_libdir=\"$libdir\"
13653
exec_prefix="$acl_save_exec_prefix"
13654
prefix="$acl_save_prefix"
13657
additional_includedir="$withval/include"
13658
additional_libdir="$withval/$acl_libdirstem"
13670
names_already_handled=
13671
names_next_round='intl '
13672
while test -n "$names_next_round"; do
13673
names_this_round="$names_next_round"
13675
for name in $names_this_round; do
13677
for n in $names_already_handled; do
13678
if test "$n" = "$name"; then
13679
already_handled=yes
13683
if test -z "$already_handled"; then
13684
names_already_handled="$names_already_handled $name"
13685
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
13686
eval value=\"\$HAVE_LIB$uppername\"
13687
if test -n "$value"; then
13688
if test "$value" = yes; then
13689
eval value=\"\$LIB$uppername\"
13690
test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
13691
eval value=\"\$LTLIB$uppername\"
13692
test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
13701
eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
13702
if test -n "$acl_shlibext"; then
13703
shrext=".$acl_shlibext" # typically: shrext=.so
13707
if test $use_additional = yes; then
13708
dir="$additional_libdir"
13709
if test -n "$acl_shlibext"; then
13710
if test -f "$dir/$libname$shrext"; then
13712
found_so="$dir/$libname$shrext"
13714
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13715
ver=`(cd "$dir" && \
13716
for f in "$libname$shrext".*; do echo "$f"; done \
13717
| sed -e "s,^$libname$shrext\\\\.,," \
13718
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13719
| sed 1q ) 2>/dev/null`
13720
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13722
found_so="$dir/$libname$shrext.$ver"
13725
eval library_names=\"$acl_library_names_spec\"
13726
for f in $library_names; do
13727
if test -f "$dir/$f"; then
13736
if test "X$found_dir" = "X"; then
13737
if test -f "$dir/$libname.$acl_libext"; then
13739
found_a="$dir/$libname.$acl_libext"
13742
if test "X$found_dir" != "X"; then
13743
if test -f "$dir/$libname.la"; then
13744
found_la="$dir/$libname.la"
13748
if test "X$found_dir" = "X"; then
13749
for x in $LDFLAGS $LTLIBINTL; do
13751
acl_save_prefix="$prefix"
13752
prefix="$acl_final_prefix"
13753
acl_save_exec_prefix="$exec_prefix"
13754
exec_prefix="$acl_final_exec_prefix"
13756
exec_prefix="$acl_save_exec_prefix"
13757
prefix="$acl_save_prefix"
13761
dir=`echo "X$x" | sed -e 's/^X-L//'`
13762
if test -n "$acl_shlibext"; then
13763
if test -f "$dir/$libname$shrext"; then
13765
found_so="$dir/$libname$shrext"
13767
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
13768
ver=`(cd "$dir" && \
13769
for f in "$libname$shrext".*; do echo "$f"; done \
13770
| sed -e "s,^$libname$shrext\\\\.,," \
13771
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
13772
| sed 1q ) 2>/dev/null`
13773
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
13775
found_so="$dir/$libname$shrext.$ver"
13778
eval library_names=\"$acl_library_names_spec\"
13779
for f in $library_names; do
13780
if test -f "$dir/$f"; then
13789
if test "X$found_dir" = "X"; then
13790
if test -f "$dir/$libname.$acl_libext"; then
13792
found_a="$dir/$libname.$acl_libext"
13795
if test "X$found_dir" != "X"; then
13796
if test -f "$dir/$libname.la"; then
13797
found_la="$dir/$libname.la"
13802
if test "X$found_dir" != "X"; then
13807
if test "X$found_dir" != "X"; then
13808
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
13809
if test "X$found_so" != "X"; then
13810
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
13811
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13814
for x in $ltrpathdirs; do
13815
if test "X$x" = "X$found_dir"; then
13820
if test -z "$haveit"; then
13821
ltrpathdirs="$ltrpathdirs $found_dir"
13823
if test "$acl_hardcode_direct" = yes; then
13824
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13826
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
13827
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13829
for x in $rpathdirs; do
13830
if test "X$x" = "X$found_dir"; then
13835
if test -z "$haveit"; then
13836
rpathdirs="$rpathdirs $found_dir"
13840
for x in $LDFLAGS $LIBINTL; do
13842
acl_save_prefix="$prefix"
13843
prefix="$acl_final_prefix"
13844
acl_save_exec_prefix="$exec_prefix"
13845
exec_prefix="$acl_final_exec_prefix"
13847
exec_prefix="$acl_save_exec_prefix"
13848
prefix="$acl_save_prefix"
13850
if test "X$x" = "X-L$found_dir"; then
13855
if test -z "$haveit"; then
13856
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
13858
if test "$acl_hardcode_minus_L" != no; then
13859
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
13861
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
13867
if test "X$found_a" != "X"; then
13868
LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
13870
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
13873
additional_includedir=
13874
case "$found_dir" in
13875
*/$acl_libdirstem | */$acl_libdirstem/)
13876
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
13877
LIBINTL_PREFIX="$basedir"
13878
additional_includedir="$basedir/include"
13881
if test "X$additional_includedir" != "X"; then
13882
if test "X$additional_includedir" != "X/usr/include"; then
13884
if test "X$additional_includedir" = "X/usr/local/include"; then
13885
if test -n "$GCC"; then
13887
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13891
if test -z "$haveit"; then
13892
for x in $CPPFLAGS $INCINTL; do
13894
acl_save_prefix="$prefix"
13895
prefix="$acl_final_prefix"
13896
acl_save_exec_prefix="$exec_prefix"
13897
exec_prefix="$acl_final_exec_prefix"
13899
exec_prefix="$acl_save_exec_prefix"
13900
prefix="$acl_save_prefix"
13902
if test "X$x" = "X-I$additional_includedir"; then
13907
if test -z "$haveit"; then
13908
if test -d "$additional_includedir"; then
13909
INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
13915
if test -n "$found_la"; then
13916
save_libdir="$libdir"
13917
case "$found_la" in
13918
*/* | *\\*) . "$found_la" ;;
13919
*) . "./$found_la" ;;
13921
libdir="$save_libdir"
13922
for dep in $dependency_libs; do
13925
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
13926
if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
13928
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
13929
if test -n "$GCC"; then
13931
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
13935
if test -z "$haveit"; then
13937
for x in $LDFLAGS $LIBINTL; do
13939
acl_save_prefix="$prefix"
13940
prefix="$acl_final_prefix"
13941
acl_save_exec_prefix="$exec_prefix"
13942
exec_prefix="$acl_final_exec_prefix"
13944
exec_prefix="$acl_save_exec_prefix"
13945
prefix="$acl_save_prefix"
13947
if test "X$x" = "X-L$additional_libdir"; then
13952
if test -z "$haveit"; then
13953
if test -d "$additional_libdir"; then
13954
LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
13958
for x in $LDFLAGS $LTLIBINTL; do
13960
acl_save_prefix="$prefix"
13961
prefix="$acl_final_prefix"
13962
acl_save_exec_prefix="$exec_prefix"
13963
exec_prefix="$acl_final_exec_prefix"
13965
exec_prefix="$acl_save_exec_prefix"
13966
prefix="$acl_save_prefix"
13968
if test "X$x" = "X-L$additional_libdir"; then
13973
if test -z "$haveit"; then
13974
if test -d "$additional_libdir"; then
13975
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
13982
dir=`echo "X$dep" | sed -e 's/^X-R//'`
13983
if test "$enable_rpath" != no; then
13985
for x in $rpathdirs; do
13986
if test "X$x" = "X$dir"; then
13991
if test -z "$haveit"; then
13992
rpathdirs="$rpathdirs $dir"
13995
for x in $ltrpathdirs; do
13996
if test "X$x" = "X$dir"; then
14001
if test -z "$haveit"; then
14002
ltrpathdirs="$ltrpathdirs $dir"
14007
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
14010
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
14013
LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
14014
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
14020
LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
14021
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
14027
if test "X$rpathdirs" != "X"; then
14028
if test -n "$acl_hardcode_libdir_separator"; then
14030
for found_dir in $rpathdirs; do
14031
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
14033
acl_save_libdir="$libdir"
14035
eval flag=\"$acl_hardcode_libdir_flag_spec\"
14036
libdir="$acl_save_libdir"
14037
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14039
for found_dir in $rpathdirs; do
14040
acl_save_libdir="$libdir"
14041
libdir="$found_dir"
14042
eval flag=\"$acl_hardcode_libdir_flag_spec\"
14043
libdir="$acl_save_libdir"
14044
LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
14048
if test "X$ltrpathdirs" != "X"; then
14049
for found_dir in $ltrpathdirs; do
14050
LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
14054
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
14055
$as_echo_n "checking for GNU gettext in libintl... " >&6; }
14056
if eval \${$gt_func_gnugettext_libintl+:} false; then :
14057
$as_echo_n "(cached) " >&6
14059
gt_save_CPPFLAGS="$CPPFLAGS"
14060
CPPFLAGS="$CPPFLAGS $INCINTL"
14061
gt_save_LIBS="$LIBS"
14062
LIBS="$LIBS $LIBINTL"
14063
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14064
/* end confdefs.h. */
14065
#include <libintl.h>
14066
$gt_revision_test_code
14067
extern int _nl_msg_cat_cntr;
14072
const char *_nl_expand_alias (const char *);
14076
bindtextdomain ("", "");
14077
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14082
if ac_fn_c_try_link "$LINENO"; then :
14083
eval "$gt_func_gnugettext_libintl=yes"
14085
eval "$gt_func_gnugettext_libintl=no"
14087
rm -f core conftest.err conftest.$ac_objext \
14088
conftest$ac_exeext conftest.$ac_ext
14089
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
14090
LIBS="$LIBS $LIBICONV"
14091
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14092
/* end confdefs.h. */
14093
#include <libintl.h>
14094
$gt_revision_test_code
14095
extern int _nl_msg_cat_cntr;
14100
const char *_nl_expand_alias (const char *);
14104
bindtextdomain ("", "");
14105
return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
14110
if ac_fn_c_try_link "$LINENO"; then :
14111
LIBINTL="$LIBINTL $LIBICONV"
14112
LTLIBINTL="$LTLIBINTL $LTLIBICONV"
14113
eval "$gt_func_gnugettext_libintl=yes"
14116
rm -f core conftest.err conftest.$ac_objext \
14117
conftest$ac_exeext conftest.$ac_ext
14119
CPPFLAGS="$gt_save_CPPFLAGS"
14120
LIBS="$gt_save_LIBS"
14122
eval ac_res=\$$gt_func_gnugettext_libintl
14123
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14124
$as_echo "$ac_res" >&6; }
14127
if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
14128
|| { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
14129
&& test "$PACKAGE" != gettext-runtime \
14130
&& test "$PACKAGE" != gettext-tools; }; then
14131
gt_use_preinstalled_gnugettext=yes
14140
if test -n "$INTL_MACOSX_LIBS"; then
14141
if test "$gt_use_preinstalled_gnugettext" = "yes" \
14142
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
14143
LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
14144
LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
14148
if test "$gt_use_preinstalled_gnugettext" = "yes" \
14149
|| test "$nls_cv_use_gnu_gettext" = "yes"; then
14151
$as_echo "#define ENABLE_NLS 1" >>confdefs.h
14158
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
14159
$as_echo_n "checking whether to use NLS... " >&6; }
14160
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
14161
$as_echo "$USE_NLS" >&6; }
14162
if test "$USE_NLS" = "yes"; then
14163
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
14164
$as_echo_n "checking where the gettext function comes from... " >&6; }
14165
if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14166
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14167
gt_source="external libintl"
14172
gt_source="included intl directory"
14174
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
14175
$as_echo "$gt_source" >&6; }
14178
if test "$USE_NLS" = "yes"; then
14180
if test "$gt_use_preinstalled_gnugettext" = "yes"; then
14181
if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
14182
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
14183
$as_echo_n "checking how to link with libintl... " >&6; }
14184
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
14185
$as_echo "$LIBINTL" >&6; }
14187
for element in $INCINTL; do
14189
for x in $CPPFLAGS; do
14191
acl_save_prefix="$prefix"
14192
prefix="$acl_final_prefix"
14193
acl_save_exec_prefix="$exec_prefix"
14194
exec_prefix="$acl_final_exec_prefix"
14196
exec_prefix="$acl_save_exec_prefix"
14197
prefix="$acl_save_prefix"
14199
if test "X$x" = "X$element"; then
14204
if test -z "$haveit"; then
14205
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
14212
$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
14215
$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
14224
INTLLIBS="$LIBINTL"
14233
GETTEXT_PACKAGE=PACKAGE_TARNAME
14236
$as_echo "#define GETTEXT_PACKAGE PACKAGE_TARNAME" >>confdefs.h
14239
###########################
14241
###########################
14243
ac_config_files="$ac_config_files Makefile po/Makefile.in"
14245
cat >confcache <<\_ACEOF
14246
# This file is a shell script that caches the results of configure
14247
# tests run on this system so they can be shared between configure
14248
# scripts and configure runs, see configure's option --config-cache.
14249
# It is not useful on other systems. If it contains results you don't
14250
# want to keep, you may remove or edit it.
14252
# config.status only pays attention to the cache file if you give it
14253
# the --recheck option to rerun configure.
14255
# `ac_cv_env_foo' variables (set or unset) will be overridden when
14256
# loading this file, other *unset* `ac_cv_foo' will be assigned the
14257
# following values.
14261
# The following way of writing the cache mishandles newlines in values,
14262
# but we know of no workaround that is simple, portable, and efficient.
14263
# So, we kill variables containing newlines.
14264
# Ultrix sh set writes to stderr and can't be redirected directly,
14265
# and sets the high bit in the cache file unless we assign to the vars.
14267
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14268
eval ac_val=\$$ac_var
14272
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14273
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14276
_ | IFS | as_nl) ;; #(
14277
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14278
*) { eval $ac_var=; unset $ac_var;} ;;
14284
case $as_nl`(ac_space=' '; set) 2>&1` in #(
14285
*${as_nl}ac_space=\ *)
14286
# `set' does not quote correctly, so add quotes: double-quote
14287
# substitution turns \\\\ into \\, and sed turns \\ into \.
14290
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14293
# `set' quotes correctly as required by POSIX, so do not add quotes.
14294
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14303
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14305
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14307
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14308
if test -w "$cache_file"; then
14309
if test "x$cache_file" != "x/dev/null"; then
14310
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14311
$as_echo "$as_me: updating cache $cache_file" >&6;}
14312
if test ! -f "$cache_file" || test -h "$cache_file"; then
14313
cat confcache >"$cache_file"
14315
case $cache_file in #(
14317
mv -f confcache "$cache_file"$$ &&
14318
mv -f "$cache_file"$$ "$cache_file" ;; #(
14320
mv -f confcache "$cache_file" ;;
14325
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14326
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14331
test "x$prefix" = xNONE && prefix=$ac_default_prefix
14332
# Let make expand exec_prefix.
14333
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14335
DEFS=-DHAVE_CONFIG_H
14340
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14341
# 1. Remove the extension, and $U if already installed.
14342
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14343
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14344
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14345
# will be set to the directory where LIBOBJS objects are built.
14346
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14347
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14349
LIBOBJS=$ac_libobjs
14351
LTLIBOBJS=$ac_ltlibobjs
14354
if test -n "$EXEEXT"; then
14356
am__EXEEXT_FALSE='#'
14358
am__EXEEXT_TRUE='#'
14362
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14363
as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14364
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14366
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14367
as_fn_error $? "conditional \"AMDEP\" was never defined.
14368
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14370
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14371
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14372
Usually this means the macro was only invoked conditionally." "$LINENO" 5
14375
ac_config_commands="$ac_config_commands po/stamp-it"
14379
: "${CONFIG_STATUS=./config.status}"
14381
ac_clean_files_save=$ac_clean_files
14382
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14383
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14384
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14386
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14388
# Generated by $as_me.
14389
# Run this file to recreate the current configuration.
14390
# Compiler output produced by configure, useful for debugging
14391
# configure, is in config.log if it exists.
14394
ac_cs_recheck=false
14397
SHELL=\${CONFIG_SHELL-$SHELL}
14400
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14401
## -------------------- ##
14402
## M4sh Initialization. ##
14403
## -------------------- ##
14405
# Be more Bourne compatible
14406
DUALCASE=1; export DUALCASE # for MKS sh
14407
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14410
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14411
# is contrary to our usage. Disable this feature.
14412
alias -g '${1+"$@"}'='"$@"'
14413
setopt NO_GLOB_SUBST
14415
case `(set -o) 2>/dev/null` in #(
14427
# Printing a long string crashes Solaris 7 /usr/bin/printf.
14428
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14429
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14430
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14431
# Prefer a ksh shell builtin over an external printf program on Solaris,
14432
# but without wasting forks for bash or zsh.
14433
if test -z "$BASH_VERSION$ZSH_VERSION" \
14434
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14435
as_echo='print -r --'
14436
as_echo_n='print -rn --'
14437
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14438
as_echo='printf %s\n'
14439
as_echo_n='printf %s'
14441
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14442
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14443
as_echo_n='/usr/ucb/echo -n'
14445
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14446
as_echo_n_body='eval
14450
expr "X$arg" : "X\\(.*\\)$as_nl";
14451
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14453
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14455
export as_echo_n_body
14456
as_echo_n='sh -c $as_echo_n_body as_echo'
14458
export as_echo_body
14459
as_echo='sh -c $as_echo_body as_echo'
14462
# The user is always right.
14463
if test "${PATH_SEPARATOR+set}" != set; then
14465
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14466
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14473
# We need space, tab and new line, in precisely that order. Quoting is
14474
# there to prevent editors from complaining about space-tab.
14475
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14476
# splitting by setting IFS to empty value.)
14479
# Find who we are. Look in the path if we contain no directory separator.
14482
*[\\/]* ) as_myself=$0 ;;
14483
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14484
for as_dir in $PATH
14487
test -z "$as_dir" && as_dir=.
14488
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14494
# We did not find ourselves, most probably we were run as `sh COMMAND'
14495
# in which case we are not to be found in the path.
14496
if test "x$as_myself" = x; then
14499
if test ! -f "$as_myself"; then
14500
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14504
# Unset variables that we do not need and which cause bugs (e.g. in
14505
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14506
# suppresses any "Segmentation fault" message there. '((' could
14507
# trigger a bug in pdksh 5.2.14.
14508
for as_var in BASH_ENV ENV MAIL MAILPATH
14509
do eval test x\${$as_var+set} = xset \
14510
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14523
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14526
# as_fn_error STATUS ERROR [LINENO LOG_FD]
14527
# ----------------------------------------
14528
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14529
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14530
# script with STATUS, using 1 if that was 0.
14533
as_status=$1; test $as_status -eq 0 && as_status=1
14535
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14536
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14538
$as_echo "$as_me: error: $2" >&2
14539
as_fn_exit $as_status
14543
# as_fn_set_status STATUS
14544
# -----------------------
14545
# Set $? to STATUS, without forking.
14546
as_fn_set_status ()
14549
} # as_fn_set_status
14551
# as_fn_exit STATUS
14552
# -----------------
14553
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14557
as_fn_set_status $1
14563
# Portably unset VAR.
14566
{ eval $1=; unset $1;}
14568
as_unset=as_fn_unset
14569
# as_fn_append VAR VALUE
14570
# ----------------------
14571
# Append the text in VALUE to the end of the definition contained in VAR. Take
14572
# advantage of any shell optimizations that allow amortized linear growth over
14573
# repeated appends, instead of the typical quadratic growth present in naive
14575
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14576
eval 'as_fn_append ()
14587
# as_fn_arith ARG...
14588
# ------------------
14589
# Perform arithmetic evaluation on the ARGs, and store the result in the
14590
# global $as_val. Take advantage of shells that can avoid forks. The arguments
14591
# must be portable across $(()) and expr.
14592
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14593
eval 'as_fn_arith ()
14600
as_val=`expr "$@" || test $? -eq 1`
14605
if expr a : '\(a\)' >/dev/null 2>&1 &&
14606
test "X`expr 00001 : '.*\(...\)'`" = X001; then
14612
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14613
as_basename=basename
14618
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14624
as_me=`$as_basename -- "$0" ||
14625
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14626
X"$0" : 'X\(//\)$' \| \
14627
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14629
sed '/^.*\/\([^/][^/]*\)\/*$/{
14643
# Avoid depending upon Character Ranges.
14644
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14645
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14646
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14647
as_cr_digits='0123456789'
14648
as_cr_alnum=$as_cr_Letters$as_cr_digits
14650
ECHO_C= ECHO_N= ECHO_T=
14651
case `echo -n x` in #(((((
14653
case `echo 'xy\c'` in
14654
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
14656
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14663
rm -f conf$$ conf$$.exe conf$$.file
14664
if test -d conf$$.dir; then
14665
rm -f conf$$.dir/conf$$.file
14668
mkdir conf$$.dir 2>/dev/null
14670
if (echo >conf$$.file) 2>/dev/null; then
14671
if ln -s conf$$.file conf$$ 2>/dev/null; then
14673
# ... but there are two gotchas:
14674
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14675
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14676
# In both cases, we have to default to `cp -p'.
14677
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14679
elif ln conf$$.file conf$$ 2>/dev/null; then
14687
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14688
rmdir conf$$.dir 2>/dev/null
14693
# Create "$as_dir" as a directory, including parents if necessary.
14698
-*) as_dir=./$as_dir;;
14700
test -d "$as_dir" || eval $as_mkdir_p || {
14704
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14705
*) as_qdir=$as_dir;;
14707
as_dirs="'$as_qdir' $as_dirs"
14708
as_dir=`$as_dirname -- "$as_dir" ||
14709
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14710
X"$as_dir" : 'X\(//\)[^/]' \| \
14711
X"$as_dir" : 'X\(//\)$' \| \
14712
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14713
$as_echo X"$as_dir" |
14714
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14718
/^X\(\/\/\)[^/].*/{
14731
test -d "$as_dir" && break
14733
test -z "$as_dirs" || eval "mkdir $as_dirs"
14734
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14738
if mkdir -p . 2>/dev/null; then
14739
as_mkdir_p='mkdir -p "$as_dir"'
14741
test -d ./-p && rmdir ./-p
14745
if test -x / >/dev/null 2>&1; then
14746
as_test_x='test -x'
14748
if ls -dL / >/dev/null 2>&1; then
14755
if test -d "$1"; then
14761
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14762
???[sx]*):;;*)false;;esac;fi
14766
as_executable_p=$as_test_x
14768
# Sed expression to map a string onto a valid CPP name.
14769
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14771
# Sed expression to map a string onto a valid variable name.
14772
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14776
## ----------------------------------- ##
14777
## Main body of $CONFIG_STATUS script. ##
14778
## ----------------------------------- ##
14780
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14782
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14783
# Save the log message, to keep $0 and so on meaningful, and to
14784
# report actual input values of CONFIG_FILES etc. instead of their
14785
# values after options handling.
14787
This file was extended by indicator-power $as_me 0.1, which was
14788
generated by GNU Autoconf 2.68. Invocation command line was
14790
CONFIG_FILES = $CONFIG_FILES
14791
CONFIG_HEADERS = $CONFIG_HEADERS
14792
CONFIG_LINKS = $CONFIG_LINKS
14793
CONFIG_COMMANDS = $CONFIG_COMMANDS
14796
on `(hostname || uname -n) 2>/dev/null | sed 1q`
14801
case $ac_config_files in *"
14802
"*) set x $ac_config_files; shift; ac_config_files=$*;;
14805
case $ac_config_headers in *"
14806
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14810
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14811
# Files that config.status was made for.
14812
config_files="$ac_config_files"
14813
config_headers="$ac_config_headers"
14814
config_commands="$ac_config_commands"
14818
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14820
\`$as_me' instantiates files and other configuration actions
14821
from templates according to the current configuration. Unless the files
14822
and actions are specified as TAGs, all are instantiated by default.
14824
Usage: $0 [OPTION]... [TAG]...
14826
-h, --help print this help, then exit
14827
-V, --version print version number and configuration settings, then exit
14828
--config print configuration, then exit
14829
-q, --quiet, --silent
14830
do not print progress messages
14831
-d, --debug don't remove temporary files
14832
--recheck update $as_me by reconfiguring in the same conditions
14833
--file=FILE[:TEMPLATE]
14834
instantiate the configuration file FILE
14835
--header=FILE[:TEMPLATE]
14836
instantiate the configuration header FILE
14838
Configuration files:
14841
Configuration headers:
14844
Configuration commands:
14847
Report bugs to <http://bugs.launchpad.net/indicator-power>.
14848
indicator-power home page: <http://launchpad.net/indicator-power>."
14851
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14852
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14854
indicator-power config.status 0.1
14855
configured by $0, generated by GNU Autoconf 2.68,
14856
with options \\"\$ac_cs_config\\"
14858
Copyright (C) 2010 Free Software Foundation, Inc.
14859
This config.status script is free software; the Free Software Foundation
14860
gives unlimited permission to copy, distribute and modify it."
14867
test -n "\$AWK" || AWK=awk
14870
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14871
# The default lists apply if the user does not specify any file.
14877
ac_option=`expr "X$1" : 'X\([^=]*\)='`
14878
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14882
ac_option=`expr "X$1" : 'X\([^=]*\)='`
14894
# Handling of the options.
14895
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14897
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14898
$as_echo "$ac_cs_version"; exit ;;
14899
--config | --confi | --conf | --con | --co | --c )
14900
$as_echo "$ac_cs_config"; exit ;;
14901
--debug | --debu | --deb | --de | --d | -d )
14903
--file | --fil | --fi | --f )
14906
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14907
'') as_fn_error $? "missing file argument" ;;
14909
as_fn_append CONFIG_FILES " '$ac_optarg'"
14910
ac_need_defaults=false;;
14911
--header | --heade | --head | --hea )
14914
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14916
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14917
ac_need_defaults=false;;
14919
# Conflict between --help and --header
14920
as_fn_error $? "ambiguous option: \`$1'
14921
Try \`$0 --help' for more information.";;
14922
--help | --hel | -h )
14923
$as_echo "$ac_cs_usage"; exit ;;
14924
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
14925
| -silent | --silent | --silen | --sile | --sil | --si | --s)
14928
# This is an error.
14929
-*) as_fn_error $? "unrecognized option: \`$1'
14930
Try \`$0 --help' for more information." ;;
14932
*) as_fn_append ac_config_targets " $1"
14933
ac_need_defaults=false ;;
14939
ac_configure_extra_args=
14941
if $ac_cs_silent; then
14943
ac_configure_extra_args="$ac_configure_extra_args --silent"
14947
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14948
if \$ac_cs_recheck; then
14949
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14951
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14952
CONFIG_SHELL='$SHELL'
14953
export CONFIG_SHELL
14958
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14962
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14963
## Running $as_me. ##
14969
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14973
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14976
# The HP-UX ksh and POSIX shell print the target directory to stdout
14977
# if CDPATH is set.
14978
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14980
sed_quote_subst='$sed_quote_subst'
14981
double_quote_subst='$double_quote_subst'
14982
delay_variable_subst='$delay_variable_subst'
14983
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14984
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14985
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14986
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14987
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14988
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14989
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14990
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14991
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14992
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14993
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14994
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14995
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14996
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14997
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14998
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14999
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15000
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15001
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15002
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15003
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15004
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15005
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15006
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15007
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15008
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15009
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15010
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15011
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15012
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15013
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15014
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15015
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15016
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15017
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15018
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15019
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15020
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15021
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15022
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15023
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15024
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15025
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15026
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15027
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15028
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15029
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15030
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15031
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15032
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15033
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15034
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15035
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15036
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15037
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15038
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"`'
15039
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15040
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15041
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15042
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15043
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15044
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15045
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15046
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15047
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15048
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15049
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15050
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15051
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15052
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15053
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15054
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15055
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15056
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15057
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15058
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15059
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15060
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15061
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15062
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15063
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15064
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15065
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15066
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15067
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15068
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15069
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15070
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15071
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15072
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15073
hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15074
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15075
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15076
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15077
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15078
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15079
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15080
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15081
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15082
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15083
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15084
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15085
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15086
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15087
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15088
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15089
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15090
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15091
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15092
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15093
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15094
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15095
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15096
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15097
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15098
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15099
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15100
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15101
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15102
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15103
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15104
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15105
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15106
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15107
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15108
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15109
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15110
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15111
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15112
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15115
LTCFLAGS='$LTCFLAGS'
15116
compiler='$compiler_DEFAULT'
15118
# A function that is used when there is no print builtin or printf.
15119
func_fallback_echo ()
15121
eval 'cat <<_LTECHO_EOF
15126
# Quote evaled strings.
15140
deplibs_check_method \
15145
sharedlib_from_linklib_cmd \
15148
archiver_list_spec \
15154
lt_cv_sys_global_symbol_pipe \
15155
lt_cv_sys_global_symbol_to_cdecl \
15156
lt_cv_sys_global_symbol_to_c_name_address \
15157
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15158
nm_file_list_spec \
15159
lt_prog_compiler_no_builtin_flag \
15160
lt_prog_compiler_pic \
15161
lt_prog_compiler_wl \
15162
lt_prog_compiler_static \
15163
lt_cv_prog_compiler_c_o \
15172
export_dynamic_flag_spec \
15173
whole_archive_flag_spec \
15174
compiler_needs_object \
15176
allow_undefined_flag \
15177
no_undefined_flag \
15178
hardcode_libdir_flag_spec \
15179
hardcode_libdir_flag_spec_ld \
15180
hardcode_libdir_separator \
15184
variables_saved_for_relink \
15186
library_names_spec \
15188
install_override_mode \
15192
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15193
*[\\\\\\\`\\"\\\$]*)
15194
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15197
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15202
# Double-quote double-evaled strings.
15203
for var in reload_cmds \
15204
old_postinstall_cmds \
15205
old_postuninstall_cmds \
15207
extract_expsyms_cmds \
15208
old_archive_from_new_cmds \
15209
old_archive_from_expsyms_cmds \
15211
archive_expsym_cmds \
15213
module_expsym_cmds \
15214
export_symbols_cmds \
15218
postuninstall_cmds \
15220
sys_lib_search_path_spec \
15221
sys_lib_dlsearch_path_spec; do
15222
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15223
*[\\\\\\\`\\"\\\$]*)
15224
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15227
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15232
ac_aux_dir='$ac_aux_dir'
15233
xsi_shell='$xsi_shell'
15234
lt_shell_append='$lt_shell_append'
15236
# See if we are running on zsh, and set the options which allow our
15237
# commands through without removal of \ escapes INIT.
15238
if test -n "\${ZSH_VERSION+set}" ; then
15239
setopt NO_GLOB_SUBST
15245
TIMESTAMP='$TIMESTAMP'
15251
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
15252
# POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
15253
# from automake < 1.5.
15254
eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15255
# Capture the value of LINGUAS because we need it to compute CATALOGS.
15256
LINGUAS="${LINGUAS-%UNSET%}"
15261
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15263
# Handling of arguments.
15264
for ac_config_target in $ac_config_targets
15266
case $ac_config_target in
15267
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15268
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15269
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15270
"po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
15271
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15272
"po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
15273
"po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
15275
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15280
# If the user did not use the arguments to specify the items to instantiate,
15281
# then the envvar interface is used. Set only those that are not.
15282
# We use the long form for the default assignment because of an extremely
15283
# bizarre bug on SunOS 4.1.3.
15284
if $ac_need_defaults; then
15285
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15286
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15287
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15290
# Have a temporary directory for convenience. Make it in the build tree
15291
# simply because there is no reason against having it here, and in addition,
15292
# creating and moving files from /tmp can sometimes cause problems.
15293
# Hook for its removal unless debugging.
15294
# Note that there is a small window in which the directory will not be cleaned:
15295
# after its creation but before its name has been assigned to `$tmp'.
15299
trap 'exit_status=$?
15300
: "${ac_tmp:=$tmp}"
15301
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15303
trap 'as_fn_exit 1' 1 2 13 15
15305
# Create a (secure) tmp directory for tmp files.
15308
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15312
tmp=./conf$$-$RANDOM
15313
(umask 077 && mkdir "$tmp")
15314
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15317
# Set up the scripts for CONFIG_FILES section.
15318
# No need to generate them if there are no CONFIG_FILES.
15319
# This happens for instance with `./config.status config.h'.
15320
if test -n "$CONFIG_FILES"; then
15323
ac_cr=`echo X | tr X '\015'`
15324
# On cygwin, bash can eat \r inside `` if the user requested igncr.
15325
# But we know of no other shell where ac_cr would be empty at this
15326
# point, so we can use a bashism as a fallback.
15327
if test "x$ac_cr" = x; then
15328
eval ac_cr=\$\'\\r\'
15330
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15331
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15334
ac_cs_awk_cr=$ac_cr
15337
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15342
echo "cat >conf$$subs.awk <<_ACEOF" &&
15343
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15345
} >conf$$subs.sh ||
15346
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15347
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15349
for ac_last_try in false false false false false :; do
15350
. ./conf$$subs.sh ||
15351
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15353
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15354
if test $ac_delim_n = $ac_delim_num; then
15356
elif $ac_last_try; then
15357
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15359
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15362
rm -f conf$$subs.sh
15364
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15365
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15369
s/^/S["/; s/!.*/"]=/
15379
s/\(.\{148\}\)..*/\1/
15381
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15386
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15393
s/\(.\{148\}\)..*/\1/
15395
s/["\\]/\\&/g; s/^/"/; s/$/"/
15399
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15404
' <conf$$subs.awk | sed '
15409
' >>$CONFIG_STATUS || ac_write_fail=1
15410
rm -f conf$$subs.awk
15411
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15413
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15414
for (key in S) S_is_set[key] = 1
15420
nfields = split(line, field, "@")
15422
len = length(field[1])
15423
for (i = 2; i < nfields; i++) {
15425
keylen = length(key)
15426
if (S_is_set[key]) {
15428
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15429
len += length(value) + length(field[++i])
15440
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15441
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15442
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15445
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15446
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15449
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15450
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15451
# trailing colons and then remove the whole line if VPATH becomes empty
15452
# (actually we leave an empty line to preserve line numbers).
15453
if test "x$srcdir" = x.; then
15454
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15472
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15473
fi # test -n "$CONFIG_FILES"
15475
# Set up the scripts for CONFIG_HEADERS section.
15476
# No need to generate them if there are no CONFIG_HEADERS.
15477
# This happens for instance with `./config.status Makefile'.
15478
if test -n "$CONFIG_HEADERS"; then
15479
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15483
# Transform confdefs.h into an awk script `defines.awk', embedded as
15484
# here-document in config.status, that substitutes the proper values into
15485
# config.h.in to produce config.h.
15487
# Create a delimiter string that does not exist in confdefs.h, to ease
15488
# handling of long lines.
15490
for ac_last_try in false false :; do
15491
ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15492
if test -z "$ac_tt"; then
15494
elif $ac_last_try; then
15495
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15497
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15501
# For the awk script, D is an array of macro values keyed by name,
15502
# likewise P contains macro parameters if any. Preserve backslash
15503
# newline sequences.
15505
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15507
s/.\{148\}/&'"$ac_delim"'/g
15510
s/^[ ]*#[ ]*define[ ][ ]*/ /
15517
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15519
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15523
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15524
D["\1"]=" \3\\\\\\n"\\/p
15526
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15531
s/.\{148\}/&'"$ac_delim"'/g
15536
s/["\\]/\\&/g; s/^/"/; s/$/"/p
15539
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15541
' <confdefs.h | sed '
15542
s/'"$ac_delim"'/"\\\
15543
"/g' >>$CONFIG_STATUS || ac_write_fail=1
15545
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15546
for (key in D) D_is_set[key] = 1
15549
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15551
split(line, arg, " ")
15552
if (arg[1] == "#") {
15556
defundef = substr(arg[1], 2)
15559
split(mac1, mac2, "(") #)
15561
prefix = substr(line, 1, index(line, defundef) - 1)
15562
if (D_is_set[macro]) {
15563
# Preserve the white space surrounding the "#".
15564
print prefix "define", macro P[macro] D[macro]
15567
# Replace #undef with comments. This is necessary, for example,
15568
# in the case of _POSIX_SOURCE, which is predefined and required
15569
# on some systems where configure will not decide to define it.
15570
if (defundef == "undef") {
15571
print "/*", prefix defundef, macro, "*/"
15579
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15580
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15581
fi # test -n "$CONFIG_HEADERS"
15584
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15589
:[FHLC]) ac_mode=$ac_tag; continue;;
15591
case $ac_mode$ac_tag in
15593
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15594
:[FH]-) ac_tag=-:-;;
15595
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15612
-) ac_f="$ac_tmp/stdin";;
15613
*) # Look for the file first in the build tree, then in the source tree
15614
# (if the path is not absolute). The absolute path cannot be DOS-style,
15615
# because $ac_f cannot contain `:'.
15619
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15621
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15623
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15624
as_fn_append ac_file_inputs " '$ac_f'"
15627
# Let's still pretend it is `configure' which instantiates (i.e., don't
15628
# use $as_me), people would be surprised to read:
15629
# /* config.h. Generated by config.status. */
15630
configure_input='Generated from '`
15631
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15633
if test x"$ac_file" != x-; then
15634
configure_input="$ac_file. $configure_input"
15635
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15636
$as_echo "$as_me: creating $ac_file" >&6;}
15638
# Neutralize special characters interpreted by sed in replacement strings.
15639
case $configure_input in #(
15640
*\&* | *\|* | *\\* )
15641
ac_sed_conf_input=`$as_echo "$configure_input" |
15642
sed 's/[\\\\&|]/\\\\&/g'`;; #(
15643
*) ac_sed_conf_input=$configure_input;;
15647
*:-:* | *:-) cat >"$ac_tmp/stdin" \
15648
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15653
ac_dir=`$as_dirname -- "$ac_file" ||
15654
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15655
X"$ac_file" : 'X\(//\)[^/]' \| \
15656
X"$ac_file" : 'X\(//\)$' \| \
15657
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15658
$as_echo X"$ac_file" |
15659
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15663
/^X\(\/\/\)[^/].*/{
15676
as_dir="$ac_dir"; as_fn_mkdir_p
15680
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15682
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15683
# A ".." for each directory in $ac_dir_suffix.
15684
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15685
case $ac_top_builddir_sub in
15686
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15687
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15690
ac_abs_top_builddir=$ac_pwd
15691
ac_abs_builddir=$ac_pwd$ac_dir_suffix
15692
# for backward compatibility:
15693
ac_top_builddir=$ac_top_build_prefix
15696
.) # We are building in place.
15698
ac_top_srcdir=$ac_top_builddir_sub
15699
ac_abs_top_srcdir=$ac_pwd ;;
15700
[\\/]* | ?:[\\/]* ) # Absolute name.
15701
ac_srcdir=$srcdir$ac_dir_suffix;
15702
ac_top_srcdir=$srcdir
15703
ac_abs_top_srcdir=$srcdir ;;
15704
*) # Relative name.
15705
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15706
ac_top_srcdir=$ac_top_build_prefix$srcdir
15707
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15709
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15719
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15720
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15722
ac_MKDIR_P=$MKDIR_P
15724
[\\/$]* | ?:[\\/]* ) ;;
15725
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15729
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15730
# If the template does not know about datarootdir, expand it.
15731
# FIXME: This hack should be removed a few years after 2.60.
15732
ac_datarootdir_hack=; ac_datarootdir_seen=
15743
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15744
*datarootdir*) ac_datarootdir_seen=yes;;
15745
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15746
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15747
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15749
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15750
ac_datarootdir_hack='
15751
s&@datadir@&$datadir&g
15752
s&@docdir@&$docdir&g
15753
s&@infodir@&$infodir&g
15754
s&@localedir@&$localedir&g
15755
s&@mandir@&$mandir&g
15756
s&\\\${datarootdir}&$datarootdir&g' ;;
15760
# Neutralize VPATH when `$srcdir' = `.'.
15761
# Shell code in configure.ac might set extrasub.
15762
# FIXME: do we really want to maintain this feature?
15763
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15764
ac_sed_extra="$ac_vpsub
15767
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15769
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15770
s|@configure_input@|$ac_sed_conf_input|;t t
15771
s&@top_builddir@&$ac_top_builddir_sub&;t t
15772
s&@top_build_prefix@&$ac_top_build_prefix&;t t
15773
s&@srcdir@&$ac_srcdir&;t t
15774
s&@abs_srcdir@&$ac_abs_srcdir&;t t
15775
s&@top_srcdir@&$ac_top_srcdir&;t t
15776
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15777
s&@builddir@&$ac_builddir&;t t
15778
s&@abs_builddir@&$ac_abs_builddir&;t t
15779
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15780
s&@INSTALL@&$ac_INSTALL&;t t
15781
s&@MKDIR_P@&$ac_MKDIR_P&;t t
15782
$ac_datarootdir_hack
15784
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
15785
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15787
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15788
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15789
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15790
"$ac_tmp/out"`; test -z "$ac_out"; } &&
15791
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15792
which seems to be undefined. Please make sure it is defined" >&5
15793
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15794
which seems to be undefined. Please make sure it is defined" >&2;}
15796
rm -f "$ac_tmp/stdin"
15798
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15799
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
15801
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
15807
if test x"$ac_file" != x-; then
15809
$as_echo "/* $configure_input */" \
15810
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15811
} >"$ac_tmp/config.h" \
15812
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
15813
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
15814
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15815
$as_echo "$as_me: $ac_file is unchanged" >&6;}
15818
mv "$ac_tmp/config.h" "$ac_file" \
15819
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
15822
$as_echo "/* $configure_input */" \
15823
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15824
|| as_fn_error $? "could not create -" "$LINENO" 5
15826
# Compute "$ac_file"'s index in $config_headers.
15829
for _am_header in $config_headers :; do
15830
case $_am_header in
15831
$_am_arg | $_am_arg:* )
15834
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
15837
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15838
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15839
X"$_am_arg" : 'X\(//\)[^/]' \| \
15840
X"$_am_arg" : 'X\(//\)$' \| \
15841
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15842
$as_echo X"$_am_arg" |
15843
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15847
/^X\(\/\/\)[^/].*/{
15859
s/.*/./; q'`/stamp-h$_am_stamp_count
15862
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15863
$as_echo "$as_me: executing $ac_file commands" >&6;}
15868
case $ac_file$ac_mode in
15869
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15870
# Autoconf 2.62 quotes --file arguments for eval, but not when files
15871
# are listed without --file. Let's play safe and only enable the eval
15872
# if we detect the quoting.
15873
case $CONFIG_FILES in
15874
*\'*) eval set x "$CONFIG_FILES" ;;
15875
*) set x $CONFIG_FILES ;;
15880
# Strip MF so we end up with the name of the file.
15881
mf=`echo "$mf" | sed -e 's/:.*$//'`
15882
# Check whether this is an Automake generated Makefile or not.
15883
# We used to match only the files named `Makefile.in', but
15884
# some people rename them; so instead we look at the file content.
15885
# Grep'ing the first line is not enough: some people post-process
15886
# each Makefile.in and add a new line on top of each file to say so.
15887
# Grep'ing the whole file is not good either: AIX grep has a line
15888
# limit of 2048, but all sed's we know have understand at least 4000.
15889
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15890
dirpart=`$as_dirname -- "$mf" ||
15891
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15892
X"$mf" : 'X\(//\)[^/]' \| \
15893
X"$mf" : 'X\(//\)$' \| \
15894
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15896
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15900
/^X\(\/\/\)[^/].*/{
15916
# Extract the definition of DEPDIR, am__include, and am__quote
15917
# from the Makefile without running `make'.
15918
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15919
test -z "$DEPDIR" && continue
15920
am__include=`sed -n 's/^am__include = //p' < "$mf"`
15921
test -z "am__include" && continue
15922
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15923
# When using ansi2knr, U may be empty or an underscore; expand it
15924
U=`sed -n 's/^U = //p' < "$mf"`
15925
# Find all dependency output files, they are included files with
15926
# $(DEPDIR) in their names. We invoke sed twice because it is the
15927
# simplest approach to changing $(DEPDIR) to its actual value in the
15929
for file in `sed -n "
15930
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15931
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15932
# Make sure the directory exists.
15933
test -f "$dirpart/$file" && continue
15934
fdir=`$as_dirname -- "$file" ||
15935
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15936
X"$file" : 'X\(//\)[^/]' \| \
15937
X"$file" : 'X\(//\)$' \| \
15938
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15939
$as_echo X"$file" |
15940
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15944
/^X\(\/\/\)[^/].*/{
15957
as_dir=$dirpart/$fdir; as_fn_mkdir_p
15958
# echo "creating $dirpart/$file"
15959
echo '# dummy' > "$dirpart/$file"
15966
# See if we are running on zsh, and set the options which allow our
15967
# commands through without removal of \ escapes.
15968
if test -n "${ZSH_VERSION+set}" ; then
15969
setopt NO_GLOB_SUBST
15972
cfgfile="${ofile}T"
15973
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15976
cat <<_LT_EOF >> "$cfgfile"
15979
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15980
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15981
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15982
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
15984
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15985
# 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
15987
# Written by Gordon Matzigkeit, 1996
15989
# This file is part of GNU Libtool.
15991
# GNU Libtool is free software; you can redistribute it and/or
15992
# modify it under the terms of the GNU General Public License as
15993
# published by the Free Software Foundation; either version 2 of
15994
# the License, or (at your option) any later version.
15996
# As a special exception to the GNU General Public License,
15997
# if you distribute this file as part of a program or library that
15998
# is built using GNU Libtool, you may include this file under the
15999
# same distribution terms that you use for the rest of that program.
16001
# GNU Libtool is distributed in the hope that it will be useful,
16002
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16003
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16004
# GNU General Public License for more details.
16006
# You should have received a copy of the GNU General Public License
16007
# along with GNU Libtool; see the file COPYING. If not, a copy
16008
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16009
# obtained by writing to the Free Software Foundation, Inc.,
16010
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16013
# The names of the tagged configurations supported by this script.
16016
# ### BEGIN LIBTOOL CONFIG
16018
# Which release of libtool.m4 was used?
16019
macro_version=$macro_version
16020
macro_revision=$macro_revision
16022
# Whether or not to build shared libraries.
16023
build_libtool_libs=$enable_shared
16025
# Whether or not to build static libraries.
16026
build_old_libs=$enable_static
16028
# What type of objects to build.
16031
# Whether or not to optimize for fast installation.
16032
fast_install=$enable_fast_install
16034
# Shell to use when invoking shell scripts.
16037
# An echo program that protects backslashes.
16041
host_alias=$host_alias
16045
# The build system.
16046
build_alias=$build_alias
16050
# A sed program that does not truncate output.
16053
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16054
Xsed="\$SED -e 1s/^X//"
16056
# A grep program that handles long lines.
16062
# A literal string matcher.
16065
# A BSD- or MS-compatible name lister.
16068
# Whether we need soft or hard links.
16071
# What is the maximum length of a command?
16072
max_cmd_len=$max_cmd_len
16074
# Object file suffix (normally "o").
16077
# Executable file suffix (normally "").
16080
# whether the shell understands "unset".
16083
# turn spaces into newlines.
16086
# turn newlines into spaces.
16089
# convert \$build file names to \$host format.
16090
to_host_file_cmd=$lt_cv_to_host_file_cmd
16092
# convert \$build files to toolchain format.
16093
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16095
# An object symbol dumper.
16096
OBJDUMP=$lt_OBJDUMP
16098
# Method to check whether dependent libraries are shared objects.
16099
deplibs_check_method=$lt_deplibs_check_method
16101
# Command to use when deplibs_check_method = "file_magic".
16102
file_magic_cmd=$lt_file_magic_cmd
16104
# How to find potential files when deplibs_check_method = "file_magic".
16105
file_magic_glob=$lt_file_magic_glob
16107
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16108
want_nocaseglob=$lt_want_nocaseglob
16110
# DLL creation program.
16111
DLLTOOL=$lt_DLLTOOL
16113
# Command to associate shared and link libraries.
16114
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16119
# Flags to create an archive.
16120
AR_FLAGS=$lt_AR_FLAGS
16122
# How to feed a file listing to the archiver.
16123
archiver_list_spec=$lt_archiver_list_spec
16125
# A symbol stripping program.
16128
# Commands used to install an old-style archive.
16130
old_postinstall_cmds=$lt_old_postinstall_cmds
16131
old_postuninstall_cmds=$lt_old_postuninstall_cmds
16133
# Whether to use a lock for old archive extraction.
16134
lock_old_archive_extraction=$lock_old_archive_extraction
16139
# LTCC compiler flags.
16140
LTCFLAGS=$lt_CFLAGS
16142
# Take the output of nm and produce a listing of raw symbols and C names.
16143
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16145
# Transform the output of nm in a proper C declaration.
16146
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16148
# Transform the output of nm in a C name address pair.
16149
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16151
# Transform the output of nm in a C name address pair when lib prefix is needed.
16152
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16154
# Specify filename containing input files for \$NM.
16155
nm_file_list_spec=$lt_nm_file_list_spec
16157
# The root where to search for dependent libraries,and in which our libraries should be installed.
16158
lt_sysroot=$lt_sysroot
16160
# The name of the directory that contains temporary libtool files.
16163
# Used to examine libraries when file_magic_cmd begins with "file".
16164
MAGIC_CMD=$MAGIC_CMD
16166
# Must we lock files when doing compilation?
16167
need_locks=$lt_need_locks
16170
MANIFEST_TOOL=$lt_MANIFEST_TOOL
16172
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16173
DSYMUTIL=$lt_DSYMUTIL
16175
# Tool to change global to local symbols on Mac OS X.
16178
# Tool to manipulate fat objects and archives on Mac OS X.
16181
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16184
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16185
OTOOL64=$lt_OTOOL64
16187
# Old archive suffix (normally "a").
16190
# Shared library suffix (normally ".so").
16191
shrext_cmds=$lt_shrext_cmds
16193
# The commands to extract the exported symbol list from a shared archive.
16194
extract_expsyms_cmds=$lt_extract_expsyms_cmds
16196
# Variables whose values should be saved in libtool wrapper scripts and
16197
# restored at link time.
16198
variables_saved_for_relink=$lt_variables_saved_for_relink
16200
# Do we need the "lib" prefix for modules?
16201
need_lib_prefix=$need_lib_prefix
16203
# Do we need a version for libraries?
16204
need_version=$need_version
16206
# Library versioning type.
16207
version_type=$version_type
16209
# Shared library runtime path variable.
16210
runpath_var=$runpath_var
16212
# Shared library path variable.
16213
shlibpath_var=$shlibpath_var
16215
# Is shlibpath searched before the hard-coded library search path?
16216
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16218
# Format of library name prefix.
16219
libname_spec=$lt_libname_spec
16221
# List of archive names. First name is the real one, the rest are links.
16222
# The last name is the one that the linker finds with -lNAME
16223
library_names_spec=$lt_library_names_spec
16225
# The coded name of the library, if different from the real name.
16226
soname_spec=$lt_soname_spec
16228
# Permission mode override for installation of shared libraries.
16229
install_override_mode=$lt_install_override_mode
16231
# Command to use after installation of a shared archive.
16232
postinstall_cmds=$lt_postinstall_cmds
16234
# Command to use after uninstallation of a shared archive.
16235
postuninstall_cmds=$lt_postuninstall_cmds
16237
# Commands used to finish a libtool library installation in a directory.
16238
finish_cmds=$lt_finish_cmds
16240
# As "finish_cmds", except a single script fragment to be evaled but
16242
finish_eval=$lt_finish_eval
16244
# Whether we should hardcode library paths into libraries.
16245
hardcode_into_libs=$hardcode_into_libs
16247
# Compile-time system search path for libraries.
16248
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16250
# Run-time system search path for libraries.
16251
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16253
# Whether dlopen is supported.
16254
dlopen_support=$enable_dlopen
16256
# Whether dlopen of programs is supported.
16257
dlopen_self=$enable_dlopen_self
16259
# Whether dlopen of statically linked programs is supported.
16260
dlopen_self_static=$enable_dlopen_self_static
16262
# Commands to strip libraries.
16263
old_striplib=$lt_old_striplib
16264
striplib=$lt_striplib
16267
# The linker used to build libraries.
16270
# How to create reloadable object files.
16271
reload_flag=$lt_reload_flag
16272
reload_cmds=$lt_reload_cmds
16274
# Commands used to build an old-style archive.
16275
old_archive_cmds=$lt_old_archive_cmds
16277
# A language specific compiler.
16280
# Is the compiler the GNU compiler?
16283
# Compiler flag to turn off builtin functions.
16284
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16286
# Additional compiler flags for building library objects.
16287
pic_flag=$lt_lt_prog_compiler_pic
16289
# How to pass a linker flag through the compiler.
16290
wl=$lt_lt_prog_compiler_wl
16292
# Compiler flag to prevent dynamic linking.
16293
link_static_flag=$lt_lt_prog_compiler_static
16295
# Does compiler simultaneously support -c and -o options?
16296
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16298
# Whether or not to add -lc for building shared libraries.
16299
build_libtool_need_lc=$archive_cmds_need_lc
16301
# Whether or not to disallow shared libs when runtime libs are static.
16302
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16304
# Compiler flag to allow reflexive dlopens.
16305
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16307
# Compiler flag to generate shared objects directly from archives.
16308
whole_archive_flag_spec=$lt_whole_archive_flag_spec
16310
# Whether the compiler copes with passing no objects directly.
16311
compiler_needs_object=$lt_compiler_needs_object
16313
# Create an old-style archive from a shared archive.
16314
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16316
# Create a temporary old-style archive to link instead of a shared archive.
16317
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16319
# Commands used to build a shared archive.
16320
archive_cmds=$lt_archive_cmds
16321
archive_expsym_cmds=$lt_archive_expsym_cmds
16323
# Commands used to build a loadable module if different from building
16324
# a shared archive.
16325
module_cmds=$lt_module_cmds
16326
module_expsym_cmds=$lt_module_expsym_cmds
16328
# Whether we are building with GNU ld or not.
16329
with_gnu_ld=$lt_with_gnu_ld
16331
# Flag that allows shared libraries with undefined symbols to be built.
16332
allow_undefined_flag=$lt_allow_undefined_flag
16334
# Flag that enforces no undefined symbols.
16335
no_undefined_flag=$lt_no_undefined_flag
16337
# Flag to hardcode \$libdir into a binary during linking.
16338
# This must work even if \$libdir does not exist
16339
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16341
# If ld is used when linking, flag to hardcode \$libdir into a binary
16342
# during linking. This must work even if \$libdir does not exist.
16343
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16345
# Whether we need a single "-rpath" flag with a separated argument.
16346
hardcode_libdir_separator=$lt_hardcode_libdir_separator
16348
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16349
# DIR into the resulting binary.
16350
hardcode_direct=$hardcode_direct
16352
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16353
# DIR into the resulting binary and the resulting library dependency is
16354
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16355
# library is relocated.
16356
hardcode_direct_absolute=$hardcode_direct_absolute
16358
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16359
# into the resulting binary.
16360
hardcode_minus_L=$hardcode_minus_L
16362
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16363
# into the resulting binary.
16364
hardcode_shlibpath_var=$hardcode_shlibpath_var
16366
# Set to "yes" if building a shared library automatically hardcodes DIR
16367
# into the library and all subsequent libraries and executables linked
16369
hardcode_automatic=$hardcode_automatic
16371
# Set to yes if linker adds runtime paths of dependent libraries
16372
# to runtime path list.
16373
inherit_rpath=$inherit_rpath
16375
# Whether libtool must link a program against all its dependency libraries.
16376
link_all_deplibs=$link_all_deplibs
16378
# Set to "yes" if exported symbols are required.
16379
always_export_symbols=$always_export_symbols
16381
# The commands to list exported symbols.
16382
export_symbols_cmds=$lt_export_symbols_cmds
16384
# Symbols that should not be listed in the preloaded symbols.
16385
exclude_expsyms=$lt_exclude_expsyms
16387
# Symbols that must always be exported.
16388
include_expsyms=$lt_include_expsyms
16390
# Commands necessary for linking programs (against libraries) with templates.
16391
prelink_cmds=$lt_prelink_cmds
16393
# Commands necessary for finishing linking programs.
16394
postlink_cmds=$lt_postlink_cmds
16396
# Specify filename containing input files.
16397
file_list_spec=$lt_file_list_spec
16399
# How to hardcode a shared library path into an executable.
16400
hardcode_action=$hardcode_action
16402
# ### END LIBTOOL CONFIG
16408
cat <<\_LT_EOF >> "$cfgfile"
16409
# AIX sometimes has problems with the GCC collect2 program. For some
16410
# reason, if we set the COLLECT_NAMES environment variable, the problems
16411
# vanish in a puff of smoke.
16412
if test "X${COLLECT_NAMES+set}" != Xset; then
16414
export COLLECT_NAMES
16421
ltmain="$ac_aux_dir/ltmain.sh"
16424
# We use sed instead of cat because bash on DJGPP gets confused if
16425
# if finds mixed CR/LF and LF-only lines. Since sed operates in
16426
# text mode, it properly converts lines to CR/LF. This bash problem
16427
# is reportedly fixed, but why not run on old versions too?
16428
sed '$q' "$ltmain" >> "$cfgfile" \
16429
|| (rm -f "$cfgfile"; exit 1)
16431
if test x"$xsi_shell" = xyes; then
16432
sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16436
\ */*) func_dirname_result="${1%/*}${2}" ;;\
16437
\ * ) func_dirname_result="${3}" ;;\
16439
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16440
&& mv -f "$cfgfile.tmp" "$cfgfile" \
16441
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16442
test 0 -eq $? || _lt_function_replace_fail=:
16445
sed -e '/^func_basename ()$/,/^} # func_basename /c\
16448
\ func_basename_result="${1##*/}"\
16449
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16450
&& mv -f "$cfgfile.tmp" "$cfgfile" \
16451
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16452
test 0 -eq $? || _lt_function_replace_fail=:
16455
sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16456
func_dirname_and_basename ()\
16459
\ */*) func_dirname_result="${1%/*}${2}" ;;\
16460
\ * ) func_dirname_result="${3}" ;;\
16462
\ func_basename_result="${1##*/}"\
16463
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16464
&& mv -f "$cfgfile.tmp" "$cfgfile" \
16465
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16466
test 0 -eq $? || _lt_function_replace_fail=:
16469
sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16472
\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16473
\ # positional parameters, so assign one to ordinary parameter first.\
16474
\ func_stripname_result=${3}\
16475
\ func_stripname_result=${func_stripname_result#"${1}"}\
16476
\ func_stripname_result=${func_stripname_result%"${2}"}\
16477
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16478
&& mv -f "$cfgfile.tmp" "$cfgfile" \
16479
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16480
test 0 -eq $? || _lt_function_replace_fail=:
16483
sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16484
func_split_long_opt ()\
16486
\ func_split_long_opt_name=${1%%=*}\
16487
\ func_split_long_opt_arg=${1#*=}\
16488
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16489
&& mv -f "$cfgfile.tmp" "$cfgfile" \
16490
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16491
test 0 -eq $? || _lt_function_replace_fail=:
16494
sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16495
func_split_short_opt ()\
16497
\ func_split_short_opt_arg=${1#??}\
16498
\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16499
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16500
&& mv -f "$cfgfile.tmp" "$cfgfile" \
16501
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16502
test 0 -eq $? || _lt_function_replace_fail=:
16505
sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16509
\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16510
\ *) func_lo2o_result=${1} ;;\
16512
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16513
&& mv -f "$cfgfile.tmp" "$cfgfile" \
16514
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16515
test 0 -eq $? || _lt_function_replace_fail=:
16518
sed -e '/^func_xform ()$/,/^} # func_xform /c\
16521
func_xform_result=${1%.*}.lo\
16522
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16523
&& mv -f "$cfgfile.tmp" "$cfgfile" \
16524
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16525
test 0 -eq $? || _lt_function_replace_fail=:
16528
sed -e '/^func_arith ()$/,/^} # func_arith /c\
16531
func_arith_result=$(( $* ))\
16532
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16533
&& mv -f "$cfgfile.tmp" "$cfgfile" \
16534
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16535
test 0 -eq $? || _lt_function_replace_fail=:
16538
sed -e '/^func_len ()$/,/^} # func_len /c\
16541
func_len_result=${#1}\
16542
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16543
&& mv -f "$cfgfile.tmp" "$cfgfile" \
16544
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16545
test 0 -eq $? || _lt_function_replace_fail=:
16549
if test x"$lt_shell_append" = xyes; then
16550
sed -e '/^func_append ()$/,/^} # func_append /c\
16553
eval "${1}+=\\${2}"\
16554
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16555
&& mv -f "$cfgfile.tmp" "$cfgfile" \
16556
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16557
test 0 -eq $? || _lt_function_replace_fail=:
16560
sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16561
func_append_quoted ()\
16563
\ func_quote_for_eval "${2}"\
16564
\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16565
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16566
&& mv -f "$cfgfile.tmp" "$cfgfile" \
16567
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16568
test 0 -eq $? || _lt_function_replace_fail=:
16571
# Save a `func_append' function call where possible by direct use of '+='
16572
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16573
&& mv -f "$cfgfile.tmp" "$cfgfile" \
16574
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16575
test 0 -eq $? || _lt_function_replace_fail=:
16577
# Save a `func_append' function call even when '+=' is not available
16578
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16579
&& mv -f "$cfgfile.tmp" "$cfgfile" \
16580
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16581
test 0 -eq $? || _lt_function_replace_fail=:
16584
if test x"$_lt_function_replace_fail" = x":"; then
16585
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16586
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16590
mv -f "$cfgfile" "$ofile" ||
16591
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16595
"po-directories":C)
16596
for ac_file in $CONFIG_FILES; do
16597
# Support "outfile[:infile[:infile...]]"
16599
*:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16601
# PO directories have a Makefile.in generated from Makefile.in.in.
16602
case "$ac_file" in */Makefile.in)
16603
# Adjust a relative srcdir.
16604
ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16605
ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16606
ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16607
# In autoconf-2.13 it is called $ac_given_srcdir.
16608
# In autoconf-2.50 it is called $srcdir.
16609
test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16610
case "$ac_given_srcdir" in
16611
.) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16612
/*) top_srcdir="$ac_given_srcdir" ;;
16613
*) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16615
# Treat a directory as a PO directory if and only if it has a
16616
# POTFILES.in file. This allows packages to have multiple PO
16617
# directories under different names or in different locations.
16618
if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16619
rm -f "$ac_dir/POTFILES"
16620
test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16621
cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
16622
POMAKEFILEDEPS="POTFILES.in"
16623
# ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
16624
# on $ac_dir but don't depend on user-specified configuration
16626
if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16627
# The LINGUAS file contains the set of available languages.
16628
if test -n "$OBSOLETE_ALL_LINGUAS"; then
16629
test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16631
ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16632
# Hide the ALL_LINGUAS assigment from automake < 1.5.
16633
eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
16634
POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16636
# The set of available languages was given in configure.in.
16637
# Hide the ALL_LINGUAS assigment from automake < 1.5.
16638
eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
16641
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16642
# Compute UPDATEPOFILES
16643
# as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16644
# Compute DUMMYPOFILES
16645
# as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16647
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
16648
case "$ac_given_srcdir" in
16650
*) srcdirpre='$(srcdir)/' ;;
16656
for lang in $ALL_LINGUAS; do
16657
POFILES="$POFILES $srcdirpre$lang.po"
16658
UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16659
DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
16660
GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
16662
# CATALOGS depends on both $ac_dir and the user's LINGUAS
16663
# environment variable.
16665
if test -n "$ALL_LINGUAS"; then
16666
for presentlang in $ALL_LINGUAS; do
16668
if test "%UNSET%" != "$LINGUAS"; then
16669
desiredlanguages="$LINGUAS"
16671
desiredlanguages="$ALL_LINGUAS"
16673
for desiredlang in $desiredlanguages; do
16674
# Use the presentlang catalog if desiredlang is
16675
# a. equal to presentlang, or
16676
# b. a variant of presentlang (because in this case,
16677
# presentlang can be used as a fallback for messages
16678
# which are not translated in the desiredlang catalog).
16679
case "$desiredlang" in
16680
"$presentlang"*) useit=yes;;
16683
if test $useit = yes; then
16684
INST_LINGUAS="$INST_LINGUAS $presentlang"
16689
if test -n "$INST_LINGUAS"; then
16690
for lang in $INST_LINGUAS; do
16691
CATALOGS="$CATALOGS $lang.gmo"
16694
test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
16695
sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
16696
for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16697
if test -f "$f"; then
16699
*.orig | *.bak | *~) ;;
16700
*) cat "$f" >> "$ac_dir/Makefile" ;;
16709
if ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
16710
as_fn_error $? "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
16712
rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
16717
'"s|^| $ac_top_srcdir/|" \
16718
"$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
16720
sed '/^POTFILES =/,/[^\\]$/ {
16724
' "po/Makefile.in" >"po/Makefile"
16725
rm -f "po/Makefile.tmp"
16726
mv "po/stamp-it.tmp" "po/stamp-it"
16735
ac_clean_files=$ac_clean_files_save
16737
test $ac_write_fail = 0 ||
16738
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16741
# configure is writing to config.log, and then calls config.status.
16742
# config.status does its own redirection, appending to config.log.
16743
# Unfortunately, on DOS this fails, as config.log is still kept open
16744
# by configure, so config.status won't be able to write to it; its
16745
# output is simply discarded. So we exec the FD to /dev/null,
16746
# effectively closing config.log, so it can be properly (re)opened and
16747
# appended to by config.status. When coming back to configure, we
16748
# need to make the FD available again.
16749
if test "$no_create" != yes; then
16751
ac_config_status_args=
16752
test "$silent" = yes &&
16753
ac_config_status_args="$ac_config_status_args --quiet"
16755
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16757
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
16758
# would make configure fail if this is the last instruction.
16759
$ac_cs_success || as_fn_exit 1
16761
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16762
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16763
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16767
###########################
16769
###########################
16771
{ $as_echo "$as_me:${as_lineno-$LINENO}:
16773
Power Indicator Configuration:
16776
Local Install: $with_localinstall
16780
Power Indicator Configuration:
16783
Local Install: $with_localinstall