2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.61 for pinentry-x2go 0.7.5.0.
5
# Report bugs to <bugs@x2go.org>.
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11
## --------------------- ##
12
## M4sh Initialization. ##
13
## --------------------- ##
15
# Be more Bourne compatible
16
DUALCASE=1; export DUALCASE # for MKS sh
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21
# is contrary to our usage. Disable this feature.
22
alias -g '${1+"$@"}'='"$@"'
25
case `(set -o) 2>/dev/null` in
26
*posix*) set -o posix ;;
35
# Avoid depending upon Character Ranges.
36
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39
as_cr_digits='0123456789'
40
as_cr_alnum=$as_cr_Letters$as_cr_digits
42
# The user is always right.
43
if test "${PATH_SEPARATOR+set}" != set; then
44
echo "#! /bin/sh" >conf$$.sh
45
echo "exit 0" >>conf$$.sh
47
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55
# Support unset when possible.
56
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64
# We need space, tab and new line, in precisely that order. Quoting is
65
# there to prevent editors from complaining about space-tab.
66
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67
# splitting by setting IFS to empty value.)
72
# Find who we are. Look in the path if we contain no directory separator.
74
*[\\/]* ) as_myself=$0 ;;
75
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79
test -z "$as_dir" && as_dir=.
80
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86
# We did not find ourselves, most probably we were run as `sh COMMAND'
87
# in which case we are not to be found in the path.
88
if test "x$as_myself" = x; then
91
if test ! -f "$as_myself"; then
92
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96
# Work around bugs in pre-3.0 UWIN ksh.
97
for as_var in ENV MAIL MAILPATH
98
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111
eval $as_var=C; export $as_var
113
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117
# Required to use basename.
118
if expr a : '\(a\)' >/dev/null 2>&1 &&
119
test "X`expr 00001 : '.*\(...\)'`" = X001; then
125
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132
# Name of the executable.
133
as_me=`$as_basename -- "$0" ||
134
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135
X"$0" : 'X\(//\)$' \| \
136
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138
sed '/^.*\/\([^/][^/]*\)\/*$/{
156
if test "x$CONFIG_SHELL" = x; then
157
if (eval ":") 2>/dev/null; then
163
if test $as_have_required = yes && (eval ":
173
as_func_ret_success () {
176
as_func_ret_failure () {
181
if as_func_success; then
185
echo as_func_success failed.
188
if as_func_failure; then
190
echo as_func_failure succeeded.
193
if as_func_ret_success; then
197
echo as_func_ret_success failed.
200
if as_func_ret_failure; then
202
echo as_func_ret_failure succeeded.
205
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209
echo positional parameters were not saved.
212
test \$exitcode = 0) || { (exit 1); exit 1; }
217
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219
") 2> /dev/null; then
223
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227
test -z "$as_dir" && as_dir=.
230
for as_base in sh bash ksh sh5; do
231
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238
for as_shell in $as_candidate_shells $SHELL; do
239
# Try only shells that exist, to save several forks.
240
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241
{ ("$as_shell") 2> /dev/null <<\_ASEOF
242
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246
# is contrary to our usage. Disable this feature.
247
alias -g '${1+"$@"}'='"$@"'
250
case `(set -o) 2>/dev/null` in
251
*posix*) set -o posix ;;
260
CONFIG_SHELL=$as_shell
262
if { "$as_shell" 2> /dev/null <<\_ASEOF
263
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267
# is contrary to our usage. Disable this feature.
268
alias -g '${1+"$@"}'='"$@"'
271
case `(set -o) 2>/dev/null` in
272
*posix*) set -o posix ;;
288
as_func_ret_success () {
291
as_func_ret_failure () {
296
if as_func_success; then
300
echo as_func_success failed.
303
if as_func_failure; then
305
echo as_func_failure succeeded.
308
if as_func_ret_success; then
312
echo as_func_ret_success failed.
315
if as_func_ret_failure; then
317
echo as_func_ret_failure succeeded.
320
if ( set x; as_func_ret_success y && test x = "$1" ); then
324
echo positional parameters were not saved.
327
test $exitcode = 0) || { (exit 1); exit 1; }
332
test "x$as_lineno_1" != "x$as_lineno_2" &&
333
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344
if test "x$CONFIG_SHELL" != x; then
345
for as_var in BASH_ENV ENV
346
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353
if test $as_have_required = no; then
354
echo This script requires a shell more modern than all the
355
echo shells that I found on your system. Please install a
356
echo modern shell, or manually run the script under such a
357
echo shell if you do have one.
358
{ (exit 1); exit 1; }
368
(eval "as_func_return () {
377
as_func_ret_success () {
380
as_func_ret_failure () {
385
if as_func_success; then
389
echo as_func_success failed.
392
if as_func_failure; then
394
echo as_func_failure succeeded.
397
if as_func_ret_success; then
401
echo as_func_ret_success failed.
404
if as_func_ret_failure; then
406
echo as_func_ret_failure succeeded.
409
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413
echo positional parameters were not saved.
416
test \$exitcode = 0") || {
417
echo No shell found that supports shell functions.
418
echo Please tell autoconf@gnu.org about your system,
419
echo including any error possibly output before this
427
test "x$as_lineno_1" != "x$as_lineno_2" &&
428
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431
# uniformly replaced by the line number. The first 'sed' inserts a
432
# line-number line after each line using $LINENO; the second 'sed'
433
# does the real work. The second script uses 'N' to pair each
434
# line-number line with the line containing $LINENO, and appends
435
# trailing '-' during substitution so that $LINENO is not a special
437
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438
# scripts with optimization help from Paolo Bonzini. Blame Lee
439
# E. McMahon (1931-1989) for sed's syntax. :-)
451
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455
chmod +x "$as_me.lineno" ||
456
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457
{ (exit 1); exit 1; }; }
459
# Don't try to exec as it changes $[0], causing all sort of problems
460
# (the dirname of $[0] is not the place where we might find the
461
# original and so on. Autoconf is especially sensitive to this).
463
# Exit status is that of the last command.
468
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474
ECHO_C= ECHO_N= ECHO_T=
478
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
485
if expr a : '\(a\)' >/dev/null 2>&1 &&
486
test "X`expr 00001 : '.*\(...\)'`" = X001; then
492
rm -f conf$$ conf$$.exe conf$$.file
493
if test -d conf$$.dir; then
494
rm -f conf$$.dir/conf$$.file
500
if ln -s conf$$.file conf$$ 2>/dev/null; then
502
# ... but there are two gotchas:
503
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505
# In both cases, we have to default to `cp -p'.
506
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508
elif ln conf$$.file conf$$ 2>/dev/null; then
513
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514
rmdir conf$$.dir 2>/dev/null
516
if mkdir -p . 2>/dev/null; then
519
test -d ./-p && rmdir ./-p
523
if test -x / >/dev/null 2>&1; then
526
if ls -dL / >/dev/null 2>&1; then
533
if test -d "$1"; then
539
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540
???[sx]*):;;*)false;;esac;fi
544
as_executable_p=$as_test_x
546
# Sed expression to map a string onto a valid CPP name.
547
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
# Sed expression to map a string onto a valid variable name.
550
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
554
exec 7<&0 </dev/null 6>&1
557
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558
# so uname gets run too.
559
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
ac_default_prefix=/usr/local
566
ac_config_libobj_dir=.
572
SHELL=${CONFIG_SHELL-/bin/sh}
574
# Identity of this package.
575
PACKAGE_NAME='pinentry-x2go'
576
PACKAGE_TARNAME='pinentry-x2go'
577
PACKAGE_VERSION='0.7.5.0'
578
PACKAGE_STRING='pinentry-x2go 0.7.5.0'
579
PACKAGE_BUGREPORT='bugs@x2go.org'
581
ac_unique_file="pinentry/pinentry.h"
582
# Factoring default headers for most tests.
583
ac_includes_default="\
585
#ifdef HAVE_SYS_TYPES_H
586
# include <sys/types.h>
588
#ifdef HAVE_SYS_STAT_H
589
# include <sys/stat.h>
595
# ifdef HAVE_STDLIB_H
600
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605
#ifdef HAVE_STRINGS_H
606
# include <strings.h>
608
#ifdef HAVE_INTTYPES_H
609
# include <inttypes.h>
627
program_transform_name
669
INSTALL_STRIP_PROGRAM
678
MAINTAINER_MODE_FALSE
714
HAVE_DOSISH_SYSTEM_TRUE
715
HAVE_DOSISH_SYSTEM_FALSE
717
HAVE_W32_SYSTEM_FALSE
726
BUILD_LIBPINENTRY_CURSES_TRUE
727
BUILD_LIBPINENTRY_CURSES_FALSE
728
BUILD_PINENTRY_CURSES_TRUE
729
BUILD_PINENTRY_CURSES_FALSE
731
FALLBACK_CURSES_FALSE
738
BUILD_PINENTRY_GTK_TRUE
739
BUILD_PINENTRY_GTK_FALSE
745
BUILD_PINENTRY_GTK_2_TRUE
746
BUILD_PINENTRY_GTK_2_FALSE
768
BUILD_PINENTRY_QT_TRUE
769
BUILD_PINENTRY_QT_FALSE
770
BUILD_PINENTRY_W32_TRUE
771
BUILD_PINENTRY_W32_FALSE
776
ac_precious_vars='build_alias
792
# Initialize some variables set by options.
794
ac_init_version=false
795
# The variables have the same names as the options, with
796
# dashes changed to underlines.
804
program_transform_name=s,x,x,
812
# Installation directory options.
813
# These are left unexpanded so users can "make install exec_prefix=/foo"
814
# and all the variables that are supposed to be based on exec_prefix
815
# by default will actually change.
816
# Use braces instead of parens because sh, perl, etc. also accept them.
817
# (The list follows the same order as the GNU Coding Standards.)
818
bindir='${exec_prefix}/bin'
819
sbindir='${exec_prefix}/sbin'
820
libexecdir='${exec_prefix}/libexec'
821
datarootdir='${prefix}/share'
822
datadir='${datarootdir}'
823
sysconfdir='${prefix}/etc'
824
sharedstatedir='${prefix}/com'
825
localstatedir='${prefix}/var'
826
includedir='${prefix}/include'
827
oldincludedir='/usr/include'
828
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
829
infodir='${datarootdir}/info'
834
libdir='${exec_prefix}/lib'
835
localedir='${datarootdir}/locale'
836
mandir='${datarootdir}/man'
842
# If the previous option needs an argument, assign it.
843
if test -n "$ac_prev"; then
844
eval $ac_prev=\$ac_option
850
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
854
# Accept the important Cygnus configure options, so we can diagnose typos.
856
case $ac_dashdash$ac_option in
860
-bindir | --bindir | --bindi | --bind | --bin | --bi)
862
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
865
-build | --build | --buil | --bui | --bu)
866
ac_prev=build_alias ;;
867
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
868
build_alias=$ac_optarg ;;
870
-cache-file | --cache-file | --cache-fil | --cache-fi \
871
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
872
ac_prev=cache_file ;;
873
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
874
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
875
cache_file=$ac_optarg ;;
878
cache_file=config.cache ;;
880
-datadir | --datadir | --datadi | --datad)
882
-datadir=* | --datadir=* | --datadi=* | --datad=*)
883
datadir=$ac_optarg ;;
885
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
886
| --dataroo | --dataro | --datar)
887
ac_prev=datarootdir ;;
888
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
889
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
890
datarootdir=$ac_optarg ;;
892
-disable-* | --disable-*)
893
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
894
# Reject names that are not valid shell variable names.
895
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
896
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
897
{ (exit 1); exit 1; }; }
898
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
899
eval enable_$ac_feature=no ;;
901
-docdir | --docdir | --docdi | --doc | --do)
903
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
906
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
908
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
911
-enable-* | --enable-*)
912
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
913
# Reject names that are not valid shell variable names.
914
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
915
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
916
{ (exit 1); exit 1; }; }
917
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
918
eval enable_$ac_feature=\$ac_optarg ;;
920
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
921
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
922
| --exec | --exe | --ex)
923
ac_prev=exec_prefix ;;
924
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
925
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
926
| --exec=* | --exe=* | --ex=*)
927
exec_prefix=$ac_optarg ;;
929
-gas | --gas | --ga | --g)
930
# Obsolete; use --with-gas.
933
-help | --help | --hel | --he | -h)
935
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
936
ac_init_help=recursive ;;
937
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
938
ac_init_help=short ;;
940
-host | --host | --hos | --ho)
941
ac_prev=host_alias ;;
942
-host=* | --host=* | --hos=* | --ho=*)
943
host_alias=$ac_optarg ;;
945
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
947
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
949
htmldir=$ac_optarg ;;
951
-includedir | --includedir | --includedi | --included | --include \
952
| --includ | --inclu | --incl | --inc)
953
ac_prev=includedir ;;
954
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
955
| --includ=* | --inclu=* | --incl=* | --inc=*)
956
includedir=$ac_optarg ;;
958
-infodir | --infodir | --infodi | --infod | --info | --inf)
960
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
961
infodir=$ac_optarg ;;
963
-libdir | --libdir | --libdi | --libd)
965
-libdir=* | --libdir=* | --libdi=* | --libd=*)
968
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
969
| --libexe | --libex | --libe)
970
ac_prev=libexecdir ;;
971
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
972
| --libexe=* | --libex=* | --libe=*)
973
libexecdir=$ac_optarg ;;
975
-localedir | --localedir | --localedi | --localed | --locale)
977
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
978
localedir=$ac_optarg ;;
980
-localstatedir | --localstatedir | --localstatedi | --localstated \
981
| --localstate | --localstat | --localsta | --localst | --locals)
982
ac_prev=localstatedir ;;
983
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
984
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
985
localstatedir=$ac_optarg ;;
987
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
989
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
993
# Obsolete; use --without-fp.
996
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
997
| --no-cr | --no-c | -n)
1000
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1001
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1004
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1005
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1006
| --oldin | --oldi | --old | --ol | --o)
1007
ac_prev=oldincludedir ;;
1008
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1009
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1010
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1011
oldincludedir=$ac_optarg ;;
1013
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1015
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1016
prefix=$ac_optarg ;;
1018
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1019
| --program-pre | --program-pr | --program-p)
1020
ac_prev=program_prefix ;;
1021
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1022
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1023
program_prefix=$ac_optarg ;;
1025
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1026
| --program-suf | --program-su | --program-s)
1027
ac_prev=program_suffix ;;
1028
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1029
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1030
program_suffix=$ac_optarg ;;
1032
-program-transform-name | --program-transform-name \
1033
| --program-transform-nam | --program-transform-na \
1034
| --program-transform-n | --program-transform- \
1035
| --program-transform | --program-transfor \
1036
| --program-transfo | --program-transf \
1037
| --program-trans | --program-tran \
1038
| --progr-tra | --program-tr | --program-t)
1039
ac_prev=program_transform_name ;;
1040
-program-transform-name=* | --program-transform-name=* \
1041
| --program-transform-nam=* | --program-transform-na=* \
1042
| --program-transform-n=* | --program-transform-=* \
1043
| --program-transform=* | --program-transfor=* \
1044
| --program-transfo=* | --program-transf=* \
1045
| --program-trans=* | --program-tran=* \
1046
| --progr-tra=* | --program-tr=* | --program-t=*)
1047
program_transform_name=$ac_optarg ;;
1049
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1051
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1052
pdfdir=$ac_optarg ;;
1054
-psdir | --psdir | --psdi | --psd | --ps)
1056
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1059
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1060
| -silent | --silent | --silen | --sile | --sil)
1063
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1065
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1067
sbindir=$ac_optarg ;;
1069
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1070
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1071
| --sharedst | --shareds | --shared | --share | --shar \
1073
ac_prev=sharedstatedir ;;
1074
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1075
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1076
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1078
sharedstatedir=$ac_optarg ;;
1080
-site | --site | --sit)
1082
-site=* | --site=* | --sit=*)
1085
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1087
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1088
srcdir=$ac_optarg ;;
1090
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1091
| --syscon | --sysco | --sysc | --sys | --sy)
1092
ac_prev=sysconfdir ;;
1093
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1094
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1095
sysconfdir=$ac_optarg ;;
1097
-target | --target | --targe | --targ | --tar | --ta | --t)
1098
ac_prev=target_alias ;;
1099
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1100
target_alias=$ac_optarg ;;
1102
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1105
-version | --version | --versio | --versi | --vers | -V)
1106
ac_init_version=: ;;
1109
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1110
# Reject names that are not valid shell variable names.
1111
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1112
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1113
{ (exit 1); exit 1; }; }
1114
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1115
eval with_$ac_package=\$ac_optarg ;;
1117
-without-* | --without-*)
1118
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1119
# Reject names that are not valid shell variable names.
1120
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1121
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1122
{ (exit 1); exit 1; }; }
1123
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1124
eval with_$ac_package=no ;;
1127
# Obsolete; use --with-x.
1130
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1131
| --x-incl | --x-inc | --x-in | --x-i)
1132
ac_prev=x_includes ;;
1133
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1134
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1135
x_includes=$ac_optarg ;;
1137
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1138
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1139
ac_prev=x_libraries ;;
1140
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1141
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1142
x_libraries=$ac_optarg ;;
1144
-*) { echo "$as_me: error: unrecognized option: $ac_option
1145
Try \`$0 --help' for more information." >&2
1146
{ (exit 1); exit 1; }; }
1150
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1151
# Reject names that are not valid shell variable names.
1152
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1153
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1154
{ (exit 1); exit 1; }; }
1155
eval $ac_envvar=\$ac_optarg
1156
export $ac_envvar ;;
1159
# FIXME: should be removed in autoconf 3.0.
1160
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1161
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1162
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1163
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1169
if test -n "$ac_prev"; then
1170
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1171
{ echo "$as_me: error: missing argument to $ac_option" >&2
1172
{ (exit 1); exit 1; }; }
1175
# Be sure to have absolute directory names.
1176
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1177
datadir sysconfdir sharedstatedir localstatedir includedir \
1178
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1179
libdir localedir mandir
1181
eval ac_val=\$$ac_var
1183
[\\/$]* | ?:[\\/]* ) continue;;
1184
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1186
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1187
{ (exit 1); exit 1; }; }
1190
# There might be people who depend on the old broken behavior: `$host'
1191
# used to hold the argument of --host etc.
1192
# FIXME: To remove some day.
1195
target=$target_alias
1197
# FIXME: To remove some day.
1198
if test "x$host_alias" != x; then
1199
if test "x$build_alias" = x; then
1200
cross_compiling=maybe
1201
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1202
If a cross compiler is detected then cross compile mode will be used." >&2
1203
elif test "x$build_alias" != "x$host_alias"; then
1209
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1211
test "$silent" = yes && exec 6>/dev/null
1214
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1215
ac_ls_di=`ls -di .` &&
1216
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1217
{ echo "$as_me: error: Working directory cannot be determined" >&2
1218
{ (exit 1); exit 1; }; }
1219
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1220
{ echo "$as_me: error: pwd does not report name of working directory" >&2
1221
{ (exit 1); exit 1; }; }
1224
# Find the source files, if location was not specified.
1225
if test -z "$srcdir"; then
1226
ac_srcdir_defaulted=yes
1227
# Try the directory containing this script, then the parent directory.
1228
ac_confdir=`$as_dirname -- "$0" ||
1229
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1230
X"$0" : 'X\(//\)[^/]' \| \
1231
X"$0" : 'X\(//\)$' \| \
1232
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1234
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1252
if test ! -r "$srcdir/$ac_unique_file"; then
1256
ac_srcdir_defaulted=no
1258
if test ! -r "$srcdir/$ac_unique_file"; then
1259
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1260
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1261
{ (exit 1); exit 1; }; }
1263
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1265
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1266
{ (exit 1); exit 1; }; }
1268
# When building in place, set srcdir=.
1269
if test "$ac_abs_confdir" = "$ac_pwd"; then
1272
# Remove unnecessary trailing slashes from srcdir.
1273
# Double slashes in file names in object file debugging info
1274
# mess up M-x gdb in Emacs.
1276
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1278
for ac_var in $ac_precious_vars; do
1279
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1280
eval ac_env_${ac_var}_value=\$${ac_var}
1281
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1282
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1286
# Report the --help message.
1288
if test "$ac_init_help" = "long"; then
1289
# Omit some internal or obsolete options to make the list less imposing.
1290
# This message is too long to be a string in the A/UX 3.1 sh.
1292
\`configure' configures pinentry-x2go 0.7.5.0 to adapt to many kinds of systems.
1294
Usage: $0 [OPTION]... [VAR=VALUE]...
1296
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1297
VAR=VALUE. See below for descriptions of some of the useful variables.
1299
Defaults for the options are specified in brackets.
1302
-h, --help display this help and exit
1303
--help=short display options specific to this package
1304
--help=recursive display the short help of all the included packages
1305
-V, --version display version information and exit
1306
-q, --quiet, --silent do not print \`checking...' messages
1307
--cache-file=FILE cache test results in FILE [disabled]
1308
-C, --config-cache alias for \`--cache-file=config.cache'
1309
-n, --no-create do not create output files
1310
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1312
Installation directories:
1313
--prefix=PREFIX install architecture-independent files in PREFIX
1314
[$ac_default_prefix]
1315
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1318
By default, \`make install' will install all the files in
1319
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1320
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1321
for instance \`--prefix=\$HOME'.
1323
For better control, use the options below.
1325
Fine tuning of the installation directories:
1326
--bindir=DIR user executables [EPREFIX/bin]
1327
--sbindir=DIR system admin executables [EPREFIX/sbin]
1328
--libexecdir=DIR program executables [EPREFIX/libexec]
1329
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1330
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1331
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1332
--libdir=DIR object code libraries [EPREFIX/lib]
1333
--includedir=DIR C header files [PREFIX/include]
1334
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1335
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1336
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1337
--infodir=DIR info documentation [DATAROOTDIR/info]
1338
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1339
--mandir=DIR man documentation [DATAROOTDIR/man]
1340
--docdir=DIR documentation root [DATAROOTDIR/doc/pinentry]
1341
--htmldir=DIR html documentation [DOCDIR]
1342
--dvidir=DIR dvi documentation [DOCDIR]
1343
--pdfdir=DIR pdf documentation [DOCDIR]
1344
--psdir=DIR ps documentation [DOCDIR]
1350
--program-prefix=PREFIX prepend PREFIX to installed program names
1351
--program-suffix=SUFFIX append SUFFIX to installed program names
1352
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1355
--x-includes=DIR X include files are in DIR
1356
--x-libraries=DIR X library files are in DIR
1359
--build=BUILD configure for building on BUILD [guessed]
1360
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1364
if test -n "$ac_init_help"; then
1365
case $ac_init_help in
1366
short | recursive ) echo "Configuration of pinentry-x2go 0.7.5.0:";;
1371
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1372
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1373
--enable-maintainer-mode enable make rules and dependencies not useful
1374
(and sometimes confusing) to the casual installer
1375
--disable-dependency-tracking speeds up one-time build
1376
--enable-dependency-tracking do not reject slow dependency extractors
1377
--enable-pinentry-curses
1378
build curses pinentry
1379
--enable-fallback-curses
1380
include curses fallback
1381
--disable-ncurses don't prefer -lncurses over -lcurses
1382
--enable-pinentry-gtk build GTK+ pinentry
1383
--disable-glibtest Do not try to compile and run a test GLIB program
1384
--disable-gtktest Do not try to compile and run a test GTK program
1385
--disable-rpath do not hardcode runtime library paths
1386
--enable-pinentry-gtk2 build GTK+-2 pinentry
1387
--enable-pinentry-qt build Qt pinentry
1388
--enable-embedded link to Qt-embedded, don't use X
1389
--enable-palmtop link to Qt-embedded, don't use X, link to the Qt Palmtop Environment
1390
--disable-mt link to non-threaded Qt (deprecated)
1391
--enable-kernel-threads Enable the use of the LinuxThreads port on FreeBSD/i386 only.
1392
--disable-threading disables threading even if libpthread found
1393
--disable-rpath do not use the rpath feature of ld
1396
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1397
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1398
--without-libcap Disable support for capabilities library
1399
--with-ncurses-include-dir=DIR
1400
Set directory containing the include files for
1401
use with -lncurses, when it isn't installed as
1402
the default curses library. If DIR is "none",
1403
then no special ncurses include files are used.
1404
--without-ncurses-include-dir
1405
Equivalent to --with-ncurses-include-dir=none
1406
--with-glib-prefix=PFX Prefix where GLIB is installed (optional)
1407
--with-glib-exec-prefix=PFX Exec prefix where GLIB is installed (optional)
1408
--with-gtk-prefix=PFX Prefix where GTK is installed (optional)
1409
--with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1410
--with-gnu-ld assume the C compiler uses GNU ld default=no
1411
--with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1412
--without-libiconv-prefix don't search for libiconv in includedir and libdir
1413
--with-x use the X Window System
1414
--with-qt-dir=DIR where the root of Qt is installed
1415
--with-qt-includes=DIR where the Qt includes are.
1416
--with-qt-libraries=DIR where the Qt library is installed.
1418
Some influential environment variables:
1419
CC C compiler command
1420
CFLAGS C compiler flags
1421
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1422
nonstandard directory <lib dir>
1423
LIBS libraries to pass to the linker, e.g. -l<library>
1424
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1425
you have headers in a nonstandard directory <include dir>
1427
CXX C++ compiler command
1428
CXXFLAGS C++ compiler flags
1429
CXXCPP C++ preprocessor
1430
XMKMF Path to xmkmf, Makefile generator for X Window System
1432
Use these variables to override the choices made by `configure' or to help
1433
it to find libraries and programs with nonstandard names/locations.
1435
Report bugs to <bugs@x2go.org>.
1440
if test "$ac_init_help" = "recursive"; then
1441
# If there are subdirs, report their specific --help.
1442
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1443
test -d "$ac_dir" || continue
1447
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1449
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1450
# A ".." for each directory in $ac_dir_suffix.
1451
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1452
case $ac_top_builddir_sub in
1453
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1454
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1457
ac_abs_top_builddir=$ac_pwd
1458
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1459
# for backward compatibility:
1460
ac_top_builddir=$ac_top_build_prefix
1463
.) # We are building in place.
1465
ac_top_srcdir=$ac_top_builddir_sub
1466
ac_abs_top_srcdir=$ac_pwd ;;
1467
[\\/]* | ?:[\\/]* ) # Absolute name.
1468
ac_srcdir=$srcdir$ac_dir_suffix;
1469
ac_top_srcdir=$srcdir
1470
ac_abs_top_srcdir=$srcdir ;;
1472
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1473
ac_top_srcdir=$ac_top_build_prefix$srcdir
1474
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1476
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1478
cd "$ac_dir" || { ac_status=$?; continue; }
1479
# Check for guested configure.
1480
if test -f "$ac_srcdir/configure.gnu"; then
1482
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1483
elif test -f "$ac_srcdir/configure"; then
1485
$SHELL "$ac_srcdir/configure" --help=recursive
1487
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1489
cd "$ac_pwd" || { ac_status=$?; break; }
1493
test -n "$ac_init_help" && exit $ac_status
1494
if $ac_init_version; then
1496
pinentry-x2go configure 0.7.5.0
1497
generated by GNU Autoconf 2.61
1499
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1500
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1501
This configure script is free software; the Free Software Foundation
1502
gives unlimited permission to copy, distribute and modify it.
1506
cat >config.log <<_ACEOF
1507
This file contains any messages produced by compilers while
1508
running configure, to aid debugging if configure makes a mistake.
1510
It was created by pinentry-x2go $as_me 0.7.5.0, which was
1511
generated by GNU Autoconf 2.61. Invocation command line was
1523
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1524
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1525
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1526
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1527
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1529
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1530
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1532
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1533
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1534
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1535
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1536
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1537
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1538
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1542
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1546
test -z "$as_dir" && as_dir=.
1547
echo "PATH: $as_dir"
1563
# Keep a trace of the command line.
1564
# Strip out --no-create and --no-recursion so they do not pile up.
1565
# Strip out --silent because we don't want to record it for future runs.
1566
# Also quote any args containing shell meta-characters.
1567
# Make two passes to allow for proper duplicate-argument suppression.
1571
ac_must_keep_next=false
1577
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1578
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1579
| -silent | --silent | --silen | --sile | --sil)
1582
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1585
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1587
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1588
if test $ac_must_keep_next = true; then
1589
ac_must_keep_next=false # Got value, back to normal.
1592
*=* | --config-cache | -C | -disable-* | --disable-* \
1593
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1594
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1595
| -with-* | --with-* | -without-* | --without-* | --x)
1596
case "$ac_configure_args0 " in
1597
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1600
-* ) ac_must_keep_next=true ;;
1603
ac_configure_args="$ac_configure_args '$ac_arg'"
1608
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1609
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1611
# When interrupted or exit'd, cleanup temporary files, and complete
1612
# config.log. We remove comments because anyway the quotes in there
1613
# would cause problems or look ugly.
1614
# WARNING: Use '\'' to represent an apostrophe within the trap.
1615
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1616
trap 'exit_status=$?
1617
# Save into config.log some information that might help in debugging.
1622
## ---------------- ##
1623
## Cache variables. ##
1624
## ---------------- ##
1627
# The following way of writing the cache mishandles newlines in values,
1629
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1630
eval ac_val=\$$ac_var
1634
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1635
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1638
_ | IFS | as_nl) ;; #(
1639
*) $as_unset $ac_var ;;
1644
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1645
*${as_nl}ac_space=\ *)
1647
"s/'\''/'\''\\\\'\'''\''/g;
1648
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1651
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1659
## ----------------- ##
1660
## Output variables. ##
1661
## ----------------- ##
1664
for ac_var in $ac_subst_vars
1666
eval ac_val=\$$ac_var
1668
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1670
echo "$ac_var='\''$ac_val'\''"
1674
if test -n "$ac_subst_files"; then
1676
## ------------------- ##
1677
## File substitutions. ##
1678
## ------------------- ##
1681
for ac_var in $ac_subst_files
1683
eval ac_val=\$$ac_var
1685
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1687
echo "$ac_var='\''$ac_val'\''"
1692
if test -s confdefs.h; then
1702
test "$ac_signal" != 0 &&
1703
echo "$as_me: caught signal $ac_signal"
1704
echo "$as_me: exit $exit_status"
1706
rm -f core *.core core.conftest.* &&
1707
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1710
for ac_signal in 1 2 13 15; do
1711
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1715
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1716
rm -f -r conftest* confdefs.h
1718
# Predefined preprocessor variables.
1720
cat >>confdefs.h <<_ACEOF
1721
#define PACKAGE_NAME "$PACKAGE_NAME"
1725
cat >>confdefs.h <<_ACEOF
1726
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1730
cat >>confdefs.h <<_ACEOF
1731
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1735
cat >>confdefs.h <<_ACEOF
1736
#define PACKAGE_STRING "$PACKAGE_STRING"
1740
cat >>confdefs.h <<_ACEOF
1741
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1745
# Let the site file select an alternate cache file if it wants to.
1746
# Prefer explicitly selected file to automatically selected ones.
1747
if test -n "$CONFIG_SITE"; then
1748
set x "$CONFIG_SITE"
1749
elif test "x$prefix" != xNONE; then
1750
set x "$prefix/share/config.site" "$prefix/etc/config.site"
1752
set x "$ac_default_prefix/share/config.site" \
1753
"$ac_default_prefix/etc/config.site"
1758
if test -r "$ac_site_file"; then
1759
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1760
echo "$as_me: loading site script $ac_site_file" >&6;}
1761
sed 's/^/| /' "$ac_site_file" >&5
1766
if test -r "$cache_file"; then
1767
# Some versions of bash will fail to source /dev/null (special
1768
# files actually), so we avoid doing that.
1769
if test -f "$cache_file"; then
1770
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1771
echo "$as_me: loading cache $cache_file" >&6;}
1773
[\\/]* | ?:[\\/]* ) . "$cache_file";;
1774
*) . "./$cache_file";;
1778
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1779
echo "$as_me: creating cache $cache_file" >&6;}
1783
# Check that the precious variables saved in the cache have kept the same
1785
ac_cache_corrupted=false
1786
for ac_var in $ac_precious_vars; do
1787
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1788
eval ac_new_set=\$ac_env_${ac_var}_set
1789
eval ac_old_val=\$ac_cv_env_${ac_var}_value
1790
eval ac_new_val=\$ac_env_${ac_var}_value
1791
case $ac_old_set,$ac_new_set in
1793
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1794
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1795
ac_cache_corrupted=: ;;
1797
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1798
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1799
ac_cache_corrupted=: ;;
1802
if test "x$ac_old_val" != "x$ac_new_val"; then
1803
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1804
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1805
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1806
echo "$as_me: former value: $ac_old_val" >&2;}
1807
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1808
echo "$as_me: current value: $ac_new_val" >&2;}
1809
ac_cache_corrupted=:
1812
# Pass precious variables to config.status.
1813
if test "$ac_new_set" = set; then
1815
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1816
*) ac_arg=$ac_var=$ac_new_val ;;
1818
case " $ac_configure_args " in
1819
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1820
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1824
if $ac_cache_corrupted; then
1825
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1826
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1827
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1828
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1829
{ (exit 1); exit 1; }; }
1857
ac_cpp='$CPP $CPPFLAGS'
1858
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1859
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1860
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1863
ac_config_headers="$ac_config_headers config.h"
1866
am__api_version='1.10'
1869
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1870
if test -f "$ac_dir/install-sh"; then
1872
ac_install_sh="$ac_aux_dir/install-sh -c"
1874
elif test -f "$ac_dir/install.sh"; then
1876
ac_install_sh="$ac_aux_dir/install.sh -c"
1878
elif test -f "$ac_dir/shtool"; then
1880
ac_install_sh="$ac_aux_dir/shtool install -c"
1884
if test -z "$ac_aux_dir"; then
1885
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1886
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1887
{ (exit 1); exit 1; }; }
1890
# These three variables are undocumented and unsupported,
1891
# and are intended to be withdrawn in a future Autoconf release.
1892
# They can cause serious problems if a builder's source tree is in a directory
1893
# whose full name contains unusual characters.
1894
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1895
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1896
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1899
# Find a good install program. We prefer a C program (faster),
1900
# so one script is as good as another. But avoid the broken or
1901
# incompatible versions:
1902
# SysV /etc/install, /usr/sbin/install
1903
# SunOS /usr/etc/install
1904
# IRIX /sbin/install
1906
# AmigaOS /C/install, which installs bootblocks on floppy discs
1907
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1908
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1909
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1910
# OS/2's system install, which has a completely different semantic
1911
# ./install, which can be erroneously created by make from ./install.sh.
1912
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1913
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1914
if test -z "$INSTALL"; then
1915
if test "${ac_cv_path_install+set}" = set; then
1916
echo $ECHO_N "(cached) $ECHO_C" >&6
1918
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1922
test -z "$as_dir" && as_dir=.
1923
# Account for people who put trailing slashes in PATH elements.
1925
./ | .// | /cC/* | \
1926
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1927
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1930
# OSF1 and SCO ODT 3.0 have their own names for install.
1931
# Don't use installbsd from OSF since it installs stuff as root
1933
for ac_prog in ginstall scoinst install; do
1934
for ac_exec_ext in '' $ac_executable_extensions; do
1935
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1936
if test $ac_prog = install &&
1937
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1938
# AIX install. It has an incompatible calling convention.
1940
elif test $ac_prog = install &&
1941
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1942
# program-specific install script used by HP pwplus--don't use.
1945
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1958
if test "${ac_cv_path_install+set}" = set; then
1959
INSTALL=$ac_cv_path_install
1961
# As a last resort, use the slow shell script. Don't cache a
1962
# value for INSTALL within a source directory, because that will
1963
# break other packages using the cache if that directory is
1964
# removed, or if the value is a relative name.
1965
INSTALL=$ac_install_sh
1968
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
1969
echo "${ECHO_T}$INSTALL" >&6; }
1971
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1972
# It thinks the first close brace ends the variable substitution.
1973
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1975
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1977
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1979
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1980
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1983
echo timestamp > conftest.file
1984
# Do `set' in a subshell so we don't clobber the current shell's
1985
# arguments. Must try -L first in case configure is actually a
1986
# symlink; some systems play weird games with the mod time of symlinks
1987
# (eg FreeBSD returns the mod time of the symlink's containing
1990
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1991
if test "$*" = "X"; then
1993
set X `ls -t $srcdir/configure conftest.file`
1996
if test "$*" != "X $srcdir/configure conftest.file" \
1997
&& test "$*" != "X conftest.file $srcdir/configure"; then
1999
# If neither matched, then we have a broken ls. This can happen
2000
# if, for instance, CONFIG_SHELL is bash and it inherits a
2001
# broken ls alias from the environment. This has actually
2002
# happened. Such a system could not be considered "sane".
2003
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2004
alias in your environment" >&5
2005
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2006
alias in your environment" >&2;}
2007
{ (exit 1); exit 1; }; }
2010
test "$2" = conftest.file
2016
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2017
Check your system clock" >&5
2018
echo "$as_me: error: newly created file is older than distributed files!
2019
Check your system clock" >&2;}
2020
{ (exit 1); exit 1; }; }
2022
{ echo "$as_me:$LINENO: result: yes" >&5
2023
echo "${ECHO_T}yes" >&6; }
2024
test "$program_prefix" != NONE &&
2025
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2026
# Use a double $ so make ignores it.
2027
test "$program_suffix" != NONE &&
2028
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2029
# Double any \ or $. echo might interpret backslashes.
2030
# By default was `s,x,x', remove it if useless.
2031
cat <<\_ACEOF >conftest.sed
2032
s/[\\$]/&&/g;s/;s,x,x,$//
2034
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2037
# expand $ac_aux_dir to an absolute path
2038
am_aux_dir=`cd $ac_aux_dir && pwd`
2040
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2041
# Use eval to expand $SHELL
2042
if eval "$MISSING --run true"; then
2043
am_missing_run="$MISSING --run "
2046
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2047
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2050
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2051
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2052
if test -z "$MKDIR_P"; then
2053
if test "${ac_cv_path_mkdir+set}" = set; then
2054
echo $ECHO_N "(cached) $ECHO_C" >&6
2056
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2060
test -z "$as_dir" && as_dir=.
2061
for ac_prog in mkdir gmkdir; do
2062
for ac_exec_ext in '' $ac_executable_extensions; do
2063
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2064
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2065
'mkdir (GNU coreutils) '* | \
2066
'mkdir (coreutils) '* | \
2067
'mkdir (fileutils) '4.1*)
2068
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2078
if test "${ac_cv_path_mkdir+set}" = set; then
2079
MKDIR_P="$ac_cv_path_mkdir -p"
2081
# As a last resort, use the slow shell script. Don't cache a
2082
# value for MKDIR_P within a source directory, because that will
2083
# break other packages using the cache if that directory is
2084
# removed, or if the value is a relative name.
2085
test -d ./--version && rmdir ./--version
2086
MKDIR_P="$ac_install_sh -d"
2089
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2090
echo "${ECHO_T}$MKDIR_P" >&6; }
2094
[\\/$]* | ?:[\\/]*) ;;
2095
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2098
for ac_prog in gawk mawk nawk awk
2100
# Extract the first word of "$ac_prog", so it can be a program name with args.
2101
set dummy $ac_prog; ac_word=$2
2102
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2103
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2104
if test "${ac_cv_prog_AWK+set}" = set; then
2105
echo $ECHO_N "(cached) $ECHO_C" >&6
2107
if test -n "$AWK"; then
2108
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2110
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2114
test -z "$as_dir" && as_dir=.
2115
for ac_exec_ext in '' $ac_executable_extensions; do
2116
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2117
ac_cv_prog_AWK="$ac_prog"
2118
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2128
if test -n "$AWK"; then
2129
{ echo "$as_me:$LINENO: result: $AWK" >&5
2130
echo "${ECHO_T}$AWK" >&6; }
2132
{ echo "$as_me:$LINENO: result: no" >&5
2133
echo "${ECHO_T}no" >&6; }
2137
test -n "$AWK" && break
2140
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2141
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2142
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2143
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2144
echo $ECHO_N "(cached) $ECHO_C" >&6
2146
cat >conftest.make <<\_ACEOF
2149
@echo '@@@%%%=$(MAKE)=@@@%%%'
2151
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2152
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2154
eval ac_cv_prog_make_${ac_make}_set=yes;;
2156
eval ac_cv_prog_make_${ac_make}_set=no;;
2160
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2161
{ echo "$as_me:$LINENO: result: yes" >&5
2162
echo "${ECHO_T}yes" >&6; }
2165
{ echo "$as_me:$LINENO: result: no" >&5
2166
echo "${ECHO_T}no" >&6; }
2167
SET_MAKE="MAKE=${MAKE-make}"
2170
rm -rf .tst 2>/dev/null
2171
mkdir .tst 2>/dev/null
2172
if test -d .tst; then
2177
rmdir .tst 2>/dev/null
2179
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2180
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2181
# is not polluted with repeated "-I."
2182
am__isrc=' -I$(srcdir)'
2183
# test to see if srcdir already configured
2184
if test -f $srcdir/config.status; then
2185
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2186
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2187
{ (exit 1); exit 1; }; }
2191
# test whether we have cygpath
2192
if test -z "$CYGPATH_W"; then
2193
if (cygpath --version) >/dev/null 2>/dev/null; then
2194
CYGPATH_W='cygpath -w'
2201
# Define the identity of the package.
2202
PACKAGE=$PACKAGE_NAME
2203
VERSION=$PACKAGE_VERSION
2206
cat >>confdefs.h <<_ACEOF
2207
#define PACKAGE "$PACKAGE"
2211
cat >>confdefs.h <<_ACEOF
2212
#define VERSION "$VERSION"
2215
# Some tools Automake needs.
2217
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2220
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2223
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2226
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2229
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2231
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2233
# Installed binaries are usually stripped using `strip' when the user
2234
# run `make install-strip'. However `strip' might not be the right
2235
# tool to use in cross-compilation environments, therefore Automake
2236
# will honor the `STRIP' environment variable to overrule this program.
2237
if test "$cross_compiling" != no; then
2238
if test -n "$ac_tool_prefix"; then
2239
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2240
set dummy ${ac_tool_prefix}strip; ac_word=$2
2241
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2242
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2243
if test "${ac_cv_prog_STRIP+set}" = set; then
2244
echo $ECHO_N "(cached) $ECHO_C" >&6
2246
if test -n "$STRIP"; then
2247
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2249
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2253
test -z "$as_dir" && as_dir=.
2254
for ac_exec_ext in '' $ac_executable_extensions; do
2255
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2256
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2257
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2266
STRIP=$ac_cv_prog_STRIP
2267
if test -n "$STRIP"; then
2268
{ echo "$as_me:$LINENO: result: $STRIP" >&5
2269
echo "${ECHO_T}$STRIP" >&6; }
2271
{ echo "$as_me:$LINENO: result: no" >&5
2272
echo "${ECHO_T}no" >&6; }
2277
if test -z "$ac_cv_prog_STRIP"; then
2279
# Extract the first word of "strip", so it can be a program name with args.
2280
set dummy strip; ac_word=$2
2281
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2282
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2283
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2284
echo $ECHO_N "(cached) $ECHO_C" >&6
2286
if test -n "$ac_ct_STRIP"; then
2287
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2289
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2293
test -z "$as_dir" && as_dir=.
2294
for ac_exec_ext in '' $ac_executable_extensions; do
2295
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2296
ac_cv_prog_ac_ct_STRIP="strip"
2297
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2306
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2307
if test -n "$ac_ct_STRIP"; then
2308
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2309
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2311
{ echo "$as_me:$LINENO: result: no" >&5
2312
echo "${ECHO_T}no" >&6; }
2315
if test "x$ac_ct_STRIP" = x; then
2318
case $cross_compiling:$ac_tool_warned in
2320
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2321
whose name does not start with the host triplet. If you think this
2322
configuration is useful to you, please write to autoconf@gnu.org." >&5
2323
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2324
whose name does not start with the host triplet. If you think this
2325
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2326
ac_tool_warned=yes ;;
2331
STRIP="$ac_cv_prog_STRIP"
2335
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2337
# We need awk for the "check" target. The system "awk" is bad on
2339
# Always define AMTAR for backward compatibility.
2341
AMTAR=${AMTAR-"${am_missing_run}tar"}
2343
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2351
cat >>confdefs.h <<\_ACEOF
2352
#define _GNU_SOURCE 1
2357
{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2358
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2359
# Check whether --enable-maintainer-mode was given.
2360
if test "${enable_maintainer_mode+set}" = set; then
2361
enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2363
USE_MAINTAINER_MODE=no
2366
{ echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2367
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2368
if test $USE_MAINTAINER_MODE = yes; then
2369
MAINTAINER_MODE_TRUE=
2370
MAINTAINER_MODE_FALSE='#'
2372
MAINTAINER_MODE_TRUE='#'
2373
MAINTAINER_MODE_FALSE=
2376
MAINT=$MAINTAINER_MODE_TRUE
2380
# Make sure we can run config.sub.
2381
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2382
{ { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2383
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2384
{ (exit 1); exit 1; }; }
2386
{ echo "$as_me:$LINENO: checking build system type" >&5
2387
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2388
if test "${ac_cv_build+set}" = set; then
2389
echo $ECHO_N "(cached) $ECHO_C" >&6
2391
ac_build_alias=$build_alias
2392
test "x$ac_build_alias" = x &&
2393
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2394
test "x$ac_build_alias" = x &&
2395
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2396
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2397
{ (exit 1); exit 1; }; }
2398
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2399
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2400
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2401
{ (exit 1); exit 1; }; }
2404
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2405
echo "${ECHO_T}$ac_cv_build" >&6; }
2406
case $ac_cv_build in
2408
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2409
echo "$as_me: error: invalid value of canonical build" >&2;}
2410
{ (exit 1); exit 1; }; };;
2413
ac_save_IFS=$IFS; IFS='-'
2419
# Remember, the first character of IFS is used to create $*,
2420
# except with old shells:
2423
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2426
{ echo "$as_me:$LINENO: checking host system type" >&5
2427
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2428
if test "${ac_cv_host+set}" = set; then
2429
echo $ECHO_N "(cached) $ECHO_C" >&6
2431
if test "x$host_alias" = x; then
2432
ac_cv_host=$ac_cv_build
2434
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2435
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2436
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2437
{ (exit 1); exit 1; }; }
2441
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2442
echo "${ECHO_T}$ac_cv_host" >&6; }
2445
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2446
echo "$as_me: error: invalid value of canonical host" >&2;}
2447
{ (exit 1); exit 1; }; };;
2450
ac_save_IFS=$IFS; IFS='-'
2456
# Remember, the first character of IFS is used to create $*,
2457
# except with old shells:
2460
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2464
missing_dir=`cd $ac_aux_dir && pwd`
2466
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
2469
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2472
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
2475
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2478
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2481
ac_cpp='$CPP $CPPFLAGS'
2482
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2483
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2484
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2485
if test -n "$ac_tool_prefix"; then
2486
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2487
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2488
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2489
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2490
if test "${ac_cv_prog_CC+set}" = set; then
2491
echo $ECHO_N "(cached) $ECHO_C" >&6
2493
if test -n "$CC"; then
2494
ac_cv_prog_CC="$CC" # Let the user override the test.
2496
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500
test -z "$as_dir" && as_dir=.
2501
for ac_exec_ext in '' $ac_executable_extensions; do
2502
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2503
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2504
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2514
if test -n "$CC"; then
2515
{ echo "$as_me:$LINENO: result: $CC" >&5
2516
echo "${ECHO_T}$CC" >&6; }
2518
{ echo "$as_me:$LINENO: result: no" >&5
2519
echo "${ECHO_T}no" >&6; }
2524
if test -z "$ac_cv_prog_CC"; then
2526
# Extract the first word of "gcc", so it can be a program name with args.
2527
set dummy gcc; ac_word=$2
2528
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2529
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2530
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2531
echo $ECHO_N "(cached) $ECHO_C" >&6
2533
if test -n "$ac_ct_CC"; then
2534
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2536
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2540
test -z "$as_dir" && as_dir=.
2541
for ac_exec_ext in '' $ac_executable_extensions; do
2542
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2543
ac_cv_prog_ac_ct_CC="gcc"
2544
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2553
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2554
if test -n "$ac_ct_CC"; then
2555
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2556
echo "${ECHO_T}$ac_ct_CC" >&6; }
2558
{ echo "$as_me:$LINENO: result: no" >&5
2559
echo "${ECHO_T}no" >&6; }
2562
if test "x$ac_ct_CC" = x; then
2565
case $cross_compiling:$ac_tool_warned in
2567
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2568
whose name does not start with the host triplet. If you think this
2569
configuration is useful to you, please write to autoconf@gnu.org." >&5
2570
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2571
whose name does not start with the host triplet. If you think this
2572
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2573
ac_tool_warned=yes ;;
2581
if test -z "$CC"; then
2582
if test -n "$ac_tool_prefix"; then
2583
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2584
set dummy ${ac_tool_prefix}cc; ac_word=$2
2585
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2586
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2587
if test "${ac_cv_prog_CC+set}" = set; then
2588
echo $ECHO_N "(cached) $ECHO_C" >&6
2590
if test -n "$CC"; then
2591
ac_cv_prog_CC="$CC" # Let the user override the test.
2593
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2597
test -z "$as_dir" && as_dir=.
2598
for ac_exec_ext in '' $ac_executable_extensions; do
2599
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2600
ac_cv_prog_CC="${ac_tool_prefix}cc"
2601
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2611
if test -n "$CC"; then
2612
{ echo "$as_me:$LINENO: result: $CC" >&5
2613
echo "${ECHO_T}$CC" >&6; }
2615
{ echo "$as_me:$LINENO: result: no" >&5
2616
echo "${ECHO_T}no" >&6; }
2622
if test -z "$CC"; then
2623
# Extract the first word of "cc", so it can be a program name with args.
2624
set dummy cc; ac_word=$2
2625
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2626
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2627
if test "${ac_cv_prog_CC+set}" = set; then
2628
echo $ECHO_N "(cached) $ECHO_C" >&6
2630
if test -n "$CC"; then
2631
ac_cv_prog_CC="$CC" # Let the user override the test.
2634
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2638
test -z "$as_dir" && as_dir=.
2639
for ac_exec_ext in '' $ac_executable_extensions; do
2640
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2641
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2642
ac_prog_rejected=yes
2646
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2653
if test $ac_prog_rejected = yes; then
2654
# We found a bogon in the path, so make sure we never use it.
2655
set dummy $ac_cv_prog_CC
2657
if test $# != 0; then
2658
# We chose a different compiler from the bogus one.
2659
# However, it has the same basename, so the bogon will be chosen
2660
# first if we set CC to just the basename; use the full file name.
2662
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2668
if test -n "$CC"; then
2669
{ echo "$as_me:$LINENO: result: $CC" >&5
2670
echo "${ECHO_T}$CC" >&6; }
2672
{ echo "$as_me:$LINENO: result: no" >&5
2673
echo "${ECHO_T}no" >&6; }
2678
if test -z "$CC"; then
2679
if test -n "$ac_tool_prefix"; then
2680
for ac_prog in cl.exe
2682
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2683
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2684
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2685
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2686
if test "${ac_cv_prog_CC+set}" = set; then
2687
echo $ECHO_N "(cached) $ECHO_C" >&6
2689
if test -n "$CC"; then
2690
ac_cv_prog_CC="$CC" # Let the user override the test.
2692
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2696
test -z "$as_dir" && as_dir=.
2697
for ac_exec_ext in '' $ac_executable_extensions; do
2698
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2699
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2700
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2710
if test -n "$CC"; then
2711
{ echo "$as_me:$LINENO: result: $CC" >&5
2712
echo "${ECHO_T}$CC" >&6; }
2714
{ echo "$as_me:$LINENO: result: no" >&5
2715
echo "${ECHO_T}no" >&6; }
2719
test -n "$CC" && break
2722
if test -z "$CC"; then
2724
for ac_prog in cl.exe
2726
# Extract the first word of "$ac_prog", so it can be a program name with args.
2727
set dummy $ac_prog; ac_word=$2
2728
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2729
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2730
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2731
echo $ECHO_N "(cached) $ECHO_C" >&6
2733
if test -n "$ac_ct_CC"; then
2734
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2736
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740
test -z "$as_dir" && as_dir=.
2741
for ac_exec_ext in '' $ac_executable_extensions; do
2742
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2743
ac_cv_prog_ac_ct_CC="$ac_prog"
2744
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2753
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2754
if test -n "$ac_ct_CC"; then
2755
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2756
echo "${ECHO_T}$ac_ct_CC" >&6; }
2758
{ echo "$as_me:$LINENO: result: no" >&5
2759
echo "${ECHO_T}no" >&6; }
2763
test -n "$ac_ct_CC" && break
2766
if test "x$ac_ct_CC" = x; then
2769
case $cross_compiling:$ac_tool_warned in
2771
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2772
whose name does not start with the host triplet. If you think this
2773
configuration is useful to you, please write to autoconf@gnu.org." >&5
2774
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2775
whose name does not start with the host triplet. If you think this
2776
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2777
ac_tool_warned=yes ;;
2786
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2787
See \`config.log' for more details." >&5
2788
echo "$as_me: error: no acceptable C compiler found in \$PATH
2789
See \`config.log' for more details." >&2;}
2790
{ (exit 1); exit 1; }; }
2792
# Provide some information about the compiler.
2793
echo "$as_me:$LINENO: checking for C compiler version" >&5
2794
ac_compiler=`set X $ac_compile; echo $2`
2795
{ (ac_try="$ac_compiler --version >&5"
2797
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2798
*) ac_try_echo=$ac_try;;
2800
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2801
(eval "$ac_compiler --version >&5") 2>&5
2803
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2804
(exit $ac_status); }
2805
{ (ac_try="$ac_compiler -v >&5"
2807
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2808
*) ac_try_echo=$ac_try;;
2810
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2811
(eval "$ac_compiler -v >&5") 2>&5
2813
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814
(exit $ac_status); }
2815
{ (ac_try="$ac_compiler -V >&5"
2817
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818
*) ac_try_echo=$ac_try;;
2820
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2821
(eval "$ac_compiler -V >&5") 2>&5
2823
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824
(exit $ac_status); }
2826
cat >conftest.$ac_ext <<_ACEOF
2829
cat confdefs.h >>conftest.$ac_ext
2830
cat >>conftest.$ac_ext <<_ACEOF
2831
/* end confdefs.h. */
2841
ac_clean_files_save=$ac_clean_files
2842
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2843
# Try to create an executable without -o first, disregard a.out.
2844
# It will help us diagnose broken compilers, and finding out an intuition
2846
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2847
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2848
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2850
# List of possible output files, starting from the most likely.
2851
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2852
# only as a last resort. b.out is created by i960 compilers.
2853
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2855
# The IRIX 6 linker writes into existing files which may not be
2856
# executable, retaining their permissions. Remove them first so a
2857
# subsequent execution test works.
2859
for ac_file in $ac_files
2862
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2863
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
2868
if { (ac_try="$ac_link_default"
2870
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2871
*) ac_try_echo=$ac_try;;
2873
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2874
(eval "$ac_link_default") 2>&5
2876
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877
(exit $ac_status); }; then
2878
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2879
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2880
# in a Makefile. We should not override ac_cv_exeext if it was cached,
2881
# so that the user can short-circuit this test for compilers unknown to
2883
for ac_file in $ac_files ''
2885
test -f "$ac_file" || continue
2887
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2890
# We found the default executable, but exeext='' is most
2894
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2896
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2898
# We set ac_cv_exeext here because the later test for it is not
2899
# safe: cross compilers may not add the suffix if given an `-o'
2900
# argument, so we may need to know it at that point already.
2901
# Even if this section looks crufty: it has the advantage of
2908
test "$ac_cv_exeext" = no && ac_cv_exeext=
2914
{ echo "$as_me:$LINENO: result: $ac_file" >&5
2915
echo "${ECHO_T}$ac_file" >&6; }
2916
if test -z "$ac_file"; then
2917
echo "$as_me: failed program was:" >&5
2918
sed 's/^/| /' conftest.$ac_ext >&5
2920
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2921
See \`config.log' for more details." >&5
2922
echo "$as_me: error: C compiler cannot create executables
2923
See \`config.log' for more details." >&2;}
2924
{ (exit 77); exit 77; }; }
2927
ac_exeext=$ac_cv_exeext
2929
# Check that the compiler produces executables we can run. If not, either
2930
# the compiler is broken, or we cross compile.
2931
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2932
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2933
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2934
# If not cross compiling, check that we can run a simple program.
2935
if test "$cross_compiling" != yes; then
2936
if { ac_try='./$ac_file'
2937
{ (case "(($ac_try" in
2938
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939
*) ac_try_echo=$ac_try;;
2941
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942
(eval "$ac_try") 2>&5
2944
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945
(exit $ac_status); }; }; then
2948
if test "$cross_compiling" = maybe; then
2951
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2952
If you meant to cross compile, use \`--host'.
2953
See \`config.log' for more details." >&5
2954
echo "$as_me: error: cannot run C compiled programs.
2955
If you meant to cross compile, use \`--host'.
2956
See \`config.log' for more details." >&2;}
2957
{ (exit 1); exit 1; }; }
2961
{ echo "$as_me:$LINENO: result: yes" >&5
2962
echo "${ECHO_T}yes" >&6; }
2964
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2965
ac_clean_files=$ac_clean_files_save
2966
# Check that the compiler produces executables we can run. If not, either
2967
# the compiler is broken, or we cross compile.
2968
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2969
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2970
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2971
echo "${ECHO_T}$cross_compiling" >&6; }
2973
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2974
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2975
if { (ac_try="$ac_link"
2977
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978
*) ac_try_echo=$ac_try;;
2980
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2981
(eval "$ac_link") 2>&5
2983
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2984
(exit $ac_status); }; then
2985
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2986
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2987
# work properly (i.e., refer to `conftest.exe'), while it won't with
2989
for ac_file in conftest.exe conftest conftest.*; do
2990
test -f "$ac_file" || continue
2992
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2993
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2999
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3000
See \`config.log' for more details." >&5
3001
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3002
See \`config.log' for more details." >&2;}
3003
{ (exit 1); exit 1; }; }
3006
rm -f conftest$ac_cv_exeext
3007
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3008
echo "${ECHO_T}$ac_cv_exeext" >&6; }
3010
rm -f conftest.$ac_ext
3011
EXEEXT=$ac_cv_exeext
3013
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3014
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3015
if test "${ac_cv_objext+set}" = set; then
3016
echo $ECHO_N "(cached) $ECHO_C" >&6
3018
cat >conftest.$ac_ext <<_ACEOF
3021
cat confdefs.h >>conftest.$ac_ext
3022
cat >>conftest.$ac_ext <<_ACEOF
3023
/* end confdefs.h. */
3033
rm -f conftest.o conftest.obj
3034
if { (ac_try="$ac_compile"
3036
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037
*) ac_try_echo=$ac_try;;
3039
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3040
(eval "$ac_compile") 2>&5
3042
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043
(exit $ac_status); }; then
3044
for ac_file in conftest.o conftest.obj conftest.*; do
3045
test -f "$ac_file" || continue;
3047
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3048
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3053
echo "$as_me: failed program was:" >&5
3054
sed 's/^/| /' conftest.$ac_ext >&5
3056
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3057
See \`config.log' for more details." >&5
3058
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3059
See \`config.log' for more details." >&2;}
3060
{ (exit 1); exit 1; }; }
3063
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3065
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3066
echo "${ECHO_T}$ac_cv_objext" >&6; }
3067
OBJEXT=$ac_cv_objext
3069
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3070
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3071
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3072
echo $ECHO_N "(cached) $ECHO_C" >&6
3074
cat >conftest.$ac_ext <<_ACEOF
3077
cat confdefs.h >>conftest.$ac_ext
3078
cat >>conftest.$ac_ext <<_ACEOF
3079
/* end confdefs.h. */
3092
rm -f conftest.$ac_objext
3093
if { (ac_try="$ac_compile"
3095
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096
*) ac_try_echo=$ac_try;;
3098
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099
(eval "$ac_compile") 2>conftest.er1
3101
grep -v '^ *+' conftest.er1 >conftest.err
3103
cat conftest.err >&5
3104
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105
(exit $ac_status); } && {
3106
test -z "$ac_c_werror_flag" ||
3107
test ! -s conftest.err
3108
} && test -s conftest.$ac_objext; then
3111
echo "$as_me: failed program was:" >&5
3112
sed 's/^/| /' conftest.$ac_ext >&5
3117
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3118
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3121
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3122
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3123
GCC=`test $ac_compiler_gnu = yes && echo yes`
3124
ac_test_CFLAGS=${CFLAGS+set}
3125
ac_save_CFLAGS=$CFLAGS
3126
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3127
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3128
if test "${ac_cv_prog_cc_g+set}" = set; then
3129
echo $ECHO_N "(cached) $ECHO_C" >&6
3131
ac_save_c_werror_flag=$ac_c_werror_flag
3132
ac_c_werror_flag=yes
3135
cat >conftest.$ac_ext <<_ACEOF
3138
cat confdefs.h >>conftest.$ac_ext
3139
cat >>conftest.$ac_ext <<_ACEOF
3140
/* end confdefs.h. */
3150
rm -f conftest.$ac_objext
3151
if { (ac_try="$ac_compile"
3153
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154
*) ac_try_echo=$ac_try;;
3156
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157
(eval "$ac_compile") 2>conftest.er1
3159
grep -v '^ *+' conftest.er1 >conftest.err
3161
cat conftest.err >&5
3162
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3163
(exit $ac_status); } && {
3164
test -z "$ac_c_werror_flag" ||
3165
test ! -s conftest.err
3166
} && test -s conftest.$ac_objext; then
3169
echo "$as_me: failed program was:" >&5
3170
sed 's/^/| /' conftest.$ac_ext >&5
3173
cat >conftest.$ac_ext <<_ACEOF
3176
cat confdefs.h >>conftest.$ac_ext
3177
cat >>conftest.$ac_ext <<_ACEOF
3178
/* end confdefs.h. */
3188
rm -f conftest.$ac_objext
3189
if { (ac_try="$ac_compile"
3191
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192
*) ac_try_echo=$ac_try;;
3194
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3195
(eval "$ac_compile") 2>conftest.er1
3197
grep -v '^ *+' conftest.er1 >conftest.err
3199
cat conftest.err >&5
3200
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201
(exit $ac_status); } && {
3202
test -z "$ac_c_werror_flag" ||
3203
test ! -s conftest.err
3204
} && test -s conftest.$ac_objext; then
3207
echo "$as_me: failed program was:" >&5
3208
sed 's/^/| /' conftest.$ac_ext >&5
3210
ac_c_werror_flag=$ac_save_c_werror_flag
3212
cat >conftest.$ac_ext <<_ACEOF
3215
cat confdefs.h >>conftest.$ac_ext
3216
cat >>conftest.$ac_ext <<_ACEOF
3217
/* end confdefs.h. */
3227
rm -f conftest.$ac_objext
3228
if { (ac_try="$ac_compile"
3230
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3231
*) ac_try_echo=$ac_try;;
3233
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3234
(eval "$ac_compile") 2>conftest.er1
3236
grep -v '^ *+' conftest.er1 >conftest.err
3238
cat conftest.err >&5
3239
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240
(exit $ac_status); } && {
3241
test -z "$ac_c_werror_flag" ||
3242
test ! -s conftest.err
3243
} && test -s conftest.$ac_objext; then
3246
echo "$as_me: failed program was:" >&5
3247
sed 's/^/| /' conftest.$ac_ext >&5
3252
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3255
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3258
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3259
ac_c_werror_flag=$ac_save_c_werror_flag
3261
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3262
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3263
if test "$ac_test_CFLAGS" = set; then
3264
CFLAGS=$ac_save_CFLAGS
3265
elif test $ac_cv_prog_cc_g = yes; then
3266
if test "$GCC" = yes; then
3272
if test "$GCC" = yes; then
3278
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3279
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3280
if test "${ac_cv_prog_cc_c89+set}" = set; then
3281
echo $ECHO_N "(cached) $ECHO_C" >&6
3283
ac_cv_prog_cc_c89=no
3285
cat >conftest.$ac_ext <<_ACEOF
3288
cat confdefs.h >>conftest.$ac_ext
3289
cat >>conftest.$ac_ext <<_ACEOF
3290
/* end confdefs.h. */
3293
#include <sys/types.h>
3294
#include <sys/stat.h>
3295
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3296
struct buf { int x; };
3297
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3298
static char *e (p, i)
3304
static char *f (char * (*g) (char **, int), char **p, ...)
3309
s = g (p, va_arg (v,int));
3314
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3315
function prototypes and stuff, but not '\xHH' hex character constants.
3316
These don't provoke an error unfortunately, instead are silently treated
3317
as 'x'. The following induces an error, until -std is added to get
3318
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3319
array size at least. It's necessary to write '\x00'==0 to get something
3320
that's true only with -std. */
3321
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3323
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3324
inside strings and character constants. */
3326
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3328
int test (int i, double x);
3329
struct s1 {int (*f) (int a);};
3330
struct s2 {int (*f) (double a);};
3331
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3337
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3342
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3343
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3345
CC="$ac_save_CC $ac_arg"
3346
rm -f conftest.$ac_objext
3347
if { (ac_try="$ac_compile"
3349
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350
*) ac_try_echo=$ac_try;;
3352
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3353
(eval "$ac_compile") 2>conftest.er1
3355
grep -v '^ *+' conftest.er1 >conftest.err
3357
cat conftest.err >&5
3358
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359
(exit $ac_status); } && {
3360
test -z "$ac_c_werror_flag" ||
3361
test ! -s conftest.err
3362
} && test -s conftest.$ac_objext; then
3363
ac_cv_prog_cc_c89=$ac_arg
3365
echo "$as_me: failed program was:" >&5
3366
sed 's/^/| /' conftest.$ac_ext >&5
3371
rm -f core conftest.err conftest.$ac_objext
3372
test "x$ac_cv_prog_cc_c89" != "xno" && break
3374
rm -f conftest.$ac_ext
3379
case "x$ac_cv_prog_cc_c89" in
3381
{ echo "$as_me:$LINENO: result: none needed" >&5
3382
echo "${ECHO_T}none needed" >&6; } ;;
3384
{ echo "$as_me:$LINENO: result: unsupported" >&5
3385
echo "${ECHO_T}unsupported" >&6; } ;;
3387
CC="$CC $ac_cv_prog_cc_c89"
3388
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3389
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3394
ac_cpp='$CPP $CPPFLAGS'
3395
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3396
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3397
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3398
DEPDIR="${am__leading_dot}deps"
3400
ac_config_commands="$ac_config_commands depfiles"
3403
am_make=${MAKE-make}
3404
cat > confinc << 'END'
3409
# If we don't find an include directive, just comment out the code.
3410
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3411
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3415
# First try GNU make style include.
3416
echo "include confinc" > confmf
3417
# We grep out `Entering directory' and `Leaving directory'
3418
# messages which can occur if `w' ends up in MAKEFLAGS.
3419
# In particular we don't look at `^make:' because GNU make might
3420
# be invoked under some other name (usually "gmake"), in which
3421
# case it prints its new name instead of `make'.
3422
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3427
# Now try BSD make style include.
3428
if test "$am__include" = "#"; then
3429
echo '.include "confinc"' > confmf
3430
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3431
am__include=.include
3438
{ echo "$as_me:$LINENO: result: $_am_result" >&5
3439
echo "${ECHO_T}$_am_result" >&6; }
3440
rm -f confinc confmf
3442
# Check whether --enable-dependency-tracking was given.
3443
if test "${enable_dependency_tracking+set}" = set; then
3444
enableval=$enable_dependency_tracking;
3447
if test "x$enable_dependency_tracking" != xno; then
3448
am_depcomp="$ac_aux_dir/depcomp"
3451
if test "x$enable_dependency_tracking" != xno; then
3461
depcc="$CC" am_compiler_list=
3463
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3464
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3465
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3466
echo $ECHO_N "(cached) $ECHO_C" >&6
3468
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3469
# We make a subdir and do the tests there. Otherwise we can end up
3470
# making bogus files that we don't know about and never remove. For
3471
# instance it was reported that on HP-UX the gcc test will end up
3472
# making a dummy file named `D' -- because `-MD' means `put the output
3475
# Copy depcomp to subdir because otherwise we won't find it if we're
3476
# using a relative directory.
3477
cp "$am_depcomp" conftest.dir
3479
# We will build objects and dependencies in a subdirectory because
3480
# it helps to detect inapplicable dependency modes. For instance
3481
# both Tru64's cc and ICC support -MD to output dependencies as a
3482
# side effect of compilation, but ICC will put the dependencies in
3483
# the current directory while Tru64 will put them in the object
3487
am_cv_CC_dependencies_compiler_type=none
3488
if test "$am_compiler_list" = ""; then
3489
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3491
for depmode in $am_compiler_list; do
3492
# Setup a source with many dependencies, because some compilers
3493
# like to wrap large dependency lists on column 80 (with \), and
3494
# we should not choose a depcomp mode which is confused by this.
3496
# We need to recreate these files for each test, as the compiler may
3497
# overwrite some of them when testing with obscure command lines.
3498
# This happens at least with the AIX C compiler.
3500
for i in 1 2 3 4 5 6; do
3501
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3502
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3503
# Solaris 8's {/usr,}/bin/sh.
3504
touch sub/conftst$i.h
3506
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3510
# after this tag, mechanisms are not by side-effect, so they'll
3511
# only be used when explicitly requested
3512
if test "x$enable_dependency_tracking" = xyes; then
3520
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3521
# mode. It turns out that the SunPro C++ compiler does not properly
3522
# handle `-M -o', and we need to detect this.
3523
if depmode=$depmode \
3524
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3525
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3526
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3527
>/dev/null 2>conftest.err &&
3528
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3529
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3530
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3531
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3532
# icc doesn't choke on unknown options, it will just issue warnings
3533
# or remarks (even with -Werror). So we grep stderr for any message
3534
# that says an option was ignored or not supported.
3535
# When given -MP, icc 7.0 and 7.1 complain thusly:
3536
# icc: Command line warning: ignoring option '-M'; no argument required
3537
# The diagnosis changed in icc 8.0:
3538
# icc: Command line remark: option '-MP' not supported
3539
if (grep 'ignoring option' conftest.err ||
3540
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3541
am_cv_CC_dependencies_compiler_type=$depmode
3550
am_cv_CC_dependencies_compiler_type=none
3554
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3555
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3556
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3559
test "x$enable_dependency_tracking" != xno \
3560
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3562
am__fastdepCC_FALSE='#'
3564
am__fastdepCC_TRUE='#'
3565
am__fastdepCC_FALSE=
3570
ac_cpp='$CPP $CPPFLAGS'
3571
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3572
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3573
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3574
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3575
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3576
# On Suns, sometimes $CPP names a directory.
3577
if test -n "$CPP" && test -d "$CPP"; then
3580
if test -z "$CPP"; then
3581
if test "${ac_cv_prog_CPP+set}" = set; then
3582
echo $ECHO_N "(cached) $ECHO_C" >&6
3584
# Double quotes because CPP needs to be expanded
3585
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3588
for ac_c_preproc_warn_flag in '' yes
3590
# Use a header file that comes with gcc, so configuring glibc
3591
# with a fresh cross-compiler works.
3592
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3593
# <limits.h> exists even on freestanding compilers.
3594
# On the NeXT, cc -E runs the code through the compiler's parser,
3595
# not just through cpp. "Syntax error" is here to catch this case.
3596
cat >conftest.$ac_ext <<_ACEOF
3599
cat confdefs.h >>conftest.$ac_ext
3600
cat >>conftest.$ac_ext <<_ACEOF
3601
/* end confdefs.h. */
3603
# include <limits.h>
3605
# include <assert.h>
3609
if { (ac_try="$ac_cpp conftest.$ac_ext"
3611
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3612
*) ac_try_echo=$ac_try;;
3614
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3615
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3617
grep -v '^ *+' conftest.er1 >conftest.err
3619
cat conftest.err >&5
3620
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621
(exit $ac_status); } >/dev/null && {
3622
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3623
test ! -s conftest.err
3627
echo "$as_me: failed program was:" >&5
3628
sed 's/^/| /' conftest.$ac_ext >&5
3630
# Broken: fails on valid input.
3634
rm -f conftest.err conftest.$ac_ext
3636
# OK, works on sane cases. Now check whether nonexistent headers
3637
# can be detected and how.
3638
cat >conftest.$ac_ext <<_ACEOF
3641
cat confdefs.h >>conftest.$ac_ext
3642
cat >>conftest.$ac_ext <<_ACEOF
3643
/* end confdefs.h. */
3644
#include <ac_nonexistent.h>
3646
if { (ac_try="$ac_cpp conftest.$ac_ext"
3648
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649
*) ac_try_echo=$ac_try;;
3651
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3652
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3654
grep -v '^ *+' conftest.er1 >conftest.err
3656
cat conftest.err >&5
3657
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658
(exit $ac_status); } >/dev/null && {
3659
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3660
test ! -s conftest.err
3662
# Broken: success on invalid input.
3665
echo "$as_me: failed program was:" >&5
3666
sed 's/^/| /' conftest.$ac_ext >&5
3668
# Passes both tests.
3673
rm -f conftest.err conftest.$ac_ext
3676
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3677
rm -f conftest.err conftest.$ac_ext
3678
if $ac_preproc_ok; then
3690
{ echo "$as_me:$LINENO: result: $CPP" >&5
3691
echo "${ECHO_T}$CPP" >&6; }
3693
for ac_c_preproc_warn_flag in '' yes
3695
# Use a header file that comes with gcc, so configuring glibc
3696
# with a fresh cross-compiler works.
3697
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3698
# <limits.h> exists even on freestanding compilers.
3699
# On the NeXT, cc -E runs the code through the compiler's parser,
3700
# not just through cpp. "Syntax error" is here to catch this case.
3701
cat >conftest.$ac_ext <<_ACEOF
3704
cat confdefs.h >>conftest.$ac_ext
3705
cat >>conftest.$ac_ext <<_ACEOF
3706
/* end confdefs.h. */
3708
# include <limits.h>
3710
# include <assert.h>
3714
if { (ac_try="$ac_cpp conftest.$ac_ext"
3716
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717
*) ac_try_echo=$ac_try;;
3719
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3720
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3722
grep -v '^ *+' conftest.er1 >conftest.err
3724
cat conftest.err >&5
3725
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3726
(exit $ac_status); } >/dev/null && {
3727
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3728
test ! -s conftest.err
3732
echo "$as_me: failed program was:" >&5
3733
sed 's/^/| /' conftest.$ac_ext >&5
3735
# Broken: fails on valid input.
3739
rm -f conftest.err conftest.$ac_ext
3741
# OK, works on sane cases. Now check whether nonexistent headers
3742
# can be detected and how.
3743
cat >conftest.$ac_ext <<_ACEOF
3746
cat confdefs.h >>conftest.$ac_ext
3747
cat >>conftest.$ac_ext <<_ACEOF
3748
/* end confdefs.h. */
3749
#include <ac_nonexistent.h>
3751
if { (ac_try="$ac_cpp conftest.$ac_ext"
3753
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3754
*) ac_try_echo=$ac_try;;
3756
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3757
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3759
grep -v '^ *+' conftest.er1 >conftest.err
3761
cat conftest.err >&5
3762
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3763
(exit $ac_status); } >/dev/null && {
3764
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3765
test ! -s conftest.err
3767
# Broken: success on invalid input.
3770
echo "$as_me: failed program was:" >&5
3771
sed 's/^/| /' conftest.$ac_ext >&5
3773
# Passes both tests.
3778
rm -f conftest.err conftest.$ac_ext
3781
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3782
rm -f conftest.err conftest.$ac_ext
3783
if $ac_preproc_ok; then
3786
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3787
See \`config.log' for more details." >&5
3788
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3789
See \`config.log' for more details." >&2;}
3790
{ (exit 1); exit 1; }; }
3794
ac_cpp='$CPP $CPPFLAGS'
3795
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3796
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3797
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3799
# Find a good install program. We prefer a C program (faster),
3800
# so one script is as good as another. But avoid the broken or
3801
# incompatible versions:
3802
# SysV /etc/install, /usr/sbin/install
3803
# SunOS /usr/etc/install
3804
# IRIX /sbin/install
3806
# AmigaOS /C/install, which installs bootblocks on floppy discs
3807
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3808
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3809
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3810
# OS/2's system install, which has a completely different semantic
3811
# ./install, which can be erroneously created by make from ./install.sh.
3812
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3813
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3814
if test -z "$INSTALL"; then
3815
if test "${ac_cv_path_install+set}" = set; then
3816
echo $ECHO_N "(cached) $ECHO_C" >&6
3818
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822
test -z "$as_dir" && as_dir=.
3823
# Account for people who put trailing slashes in PATH elements.
3825
./ | .// | /cC/* | \
3826
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3827
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3830
# OSF1 and SCO ODT 3.0 have their own names for install.
3831
# Don't use installbsd from OSF since it installs stuff as root
3833
for ac_prog in ginstall scoinst install; do
3834
for ac_exec_ext in '' $ac_executable_extensions; do
3835
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3836
if test $ac_prog = install &&
3837
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3838
# AIX install. It has an incompatible calling convention.
3840
elif test $ac_prog = install &&
3841
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3842
# program-specific install script used by HP pwplus--don't use.
3845
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3858
if test "${ac_cv_path_install+set}" = set; then
3859
INSTALL=$ac_cv_path_install
3861
# As a last resort, use the slow shell script. Don't cache a
3862
# value for INSTALL within a source directory, because that will
3863
# break other packages using the cache if that directory is
3864
# removed, or if the value is a relative name.
3865
INSTALL=$ac_install_sh
3868
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3869
echo "${ECHO_T}$INSTALL" >&6; }
3871
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3872
# It thinks the first close brace ends the variable substitution.
3873
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3875
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3877
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3879
if test -n "$ac_tool_prefix"; then
3880
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3881
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3882
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3883
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3884
if test "${ac_cv_prog_RANLIB+set}" = set; then
3885
echo $ECHO_N "(cached) $ECHO_C" >&6
3887
if test -n "$RANLIB"; then
3888
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3890
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3894
test -z "$as_dir" && as_dir=.
3895
for ac_exec_ext in '' $ac_executable_extensions; do
3896
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3897
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3898
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3907
RANLIB=$ac_cv_prog_RANLIB
3908
if test -n "$RANLIB"; then
3909
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
3910
echo "${ECHO_T}$RANLIB" >&6; }
3912
{ echo "$as_me:$LINENO: result: no" >&5
3913
echo "${ECHO_T}no" >&6; }
3918
if test -z "$ac_cv_prog_RANLIB"; then
3919
ac_ct_RANLIB=$RANLIB
3920
# Extract the first word of "ranlib", so it can be a program name with args.
3921
set dummy ranlib; ac_word=$2
3922
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3923
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3924
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3925
echo $ECHO_N "(cached) $ECHO_C" >&6
3927
if test -n "$ac_ct_RANLIB"; then
3928
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3930
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934
test -z "$as_dir" && as_dir=.
3935
for ac_exec_ext in '' $ac_executable_extensions; do
3936
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3937
ac_cv_prog_ac_ct_RANLIB="ranlib"
3938
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3947
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3948
if test -n "$ac_ct_RANLIB"; then
3949
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3950
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
3952
{ echo "$as_me:$LINENO: result: no" >&5
3953
echo "${ECHO_T}no" >&6; }
3956
if test "x$ac_ct_RANLIB" = x; then
3959
case $cross_compiling:$ac_tool_warned in
3961
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3962
whose name does not start with the host triplet. If you think this
3963
configuration is useful to you, please write to autoconf@gnu.org." >&5
3964
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3965
whose name does not start with the host triplet. If you think this
3966
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3967
ac_tool_warned=yes ;;
3969
RANLIB=$ac_ct_RANLIB
3972
RANLIB="$ac_cv_prog_RANLIB"
3975
# We need to check for cplusplus here becuase we may not do the test
3976
# for Qt and autoconf does does not allow that.
3978
ac_cpp='$CXXCPP $CPPFLAGS'
3979
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3980
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3981
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3982
if test -z "$CXX"; then
3983
if test -n "$CCC"; then
3986
if test -n "$ac_tool_prefix"; then
3987
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3989
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3990
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3991
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3992
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3993
if test "${ac_cv_prog_CXX+set}" = set; then
3994
echo $ECHO_N "(cached) $ECHO_C" >&6
3996
if test -n "$CXX"; then
3997
ac_cv_prog_CXX="$CXX" # Let the user override the test.
3999
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003
test -z "$as_dir" && as_dir=.
4004
for ac_exec_ext in '' $ac_executable_extensions; do
4005
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4006
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4007
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4017
if test -n "$CXX"; then
4018
{ echo "$as_me:$LINENO: result: $CXX" >&5
4019
echo "${ECHO_T}$CXX" >&6; }
4021
{ echo "$as_me:$LINENO: result: no" >&5
4022
echo "${ECHO_T}no" >&6; }
4026
test -n "$CXX" && break
4029
if test -z "$CXX"; then
4031
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4033
# Extract the first word of "$ac_prog", so it can be a program name with args.
4034
set dummy $ac_prog; ac_word=$2
4035
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4036
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4037
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4038
echo $ECHO_N "(cached) $ECHO_C" >&6
4040
if test -n "$ac_ct_CXX"; then
4041
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4043
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4047
test -z "$as_dir" && as_dir=.
4048
for ac_exec_ext in '' $ac_executable_extensions; do
4049
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4050
ac_cv_prog_ac_ct_CXX="$ac_prog"
4051
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4060
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4061
if test -n "$ac_ct_CXX"; then
4062
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4063
echo "${ECHO_T}$ac_ct_CXX" >&6; }
4065
{ echo "$as_me:$LINENO: result: no" >&5
4066
echo "${ECHO_T}no" >&6; }
4070
test -n "$ac_ct_CXX" && break
4073
if test "x$ac_ct_CXX" = x; then
4076
case $cross_compiling:$ac_tool_warned in
4078
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4079
whose name does not start with the host triplet. If you think this
4080
configuration is useful to you, please write to autoconf@gnu.org." >&5
4081
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4082
whose name does not start with the host triplet. If you think this
4083
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4084
ac_tool_warned=yes ;;
4092
# Provide some information about the compiler.
4093
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
4094
ac_compiler=`set X $ac_compile; echo $2`
4095
{ (ac_try="$ac_compiler --version >&5"
4097
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4098
*) ac_try_echo=$ac_try;;
4100
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4101
(eval "$ac_compiler --version >&5") 2>&5
4103
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104
(exit $ac_status); }
4105
{ (ac_try="$ac_compiler -v >&5"
4107
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4108
*) ac_try_echo=$ac_try;;
4110
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4111
(eval "$ac_compiler -v >&5") 2>&5
4113
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114
(exit $ac_status); }
4115
{ (ac_try="$ac_compiler -V >&5"
4117
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4118
*) ac_try_echo=$ac_try;;
4120
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4121
(eval "$ac_compiler -V >&5") 2>&5
4123
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124
(exit $ac_status); }
4126
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4127
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
4128
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4129
echo $ECHO_N "(cached) $ECHO_C" >&6
4131
cat >conftest.$ac_ext <<_ACEOF
4134
cat confdefs.h >>conftest.$ac_ext
4135
cat >>conftest.$ac_ext <<_ACEOF
4136
/* end confdefs.h. */
4149
rm -f conftest.$ac_objext
4150
if { (ac_try="$ac_compile"
4152
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4153
*) ac_try_echo=$ac_try;;
4155
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4156
(eval "$ac_compile") 2>conftest.er1
4158
grep -v '^ *+' conftest.er1 >conftest.err
4160
cat conftest.err >&5
4161
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162
(exit $ac_status); } && {
4163
test -z "$ac_cxx_werror_flag" ||
4164
test ! -s conftest.err
4165
} && test -s conftest.$ac_objext; then
4168
echo "$as_me: failed program was:" >&5
4169
sed 's/^/| /' conftest.$ac_ext >&5
4174
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4175
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4178
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4179
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
4180
GXX=`test $ac_compiler_gnu = yes && echo yes`
4181
ac_test_CXXFLAGS=${CXXFLAGS+set}
4182
ac_save_CXXFLAGS=$CXXFLAGS
4183
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4184
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
4185
if test "${ac_cv_prog_cxx_g+set}" = set; then
4186
echo $ECHO_N "(cached) $ECHO_C" >&6
4188
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4189
ac_cxx_werror_flag=yes
4192
cat >conftest.$ac_ext <<_ACEOF
4195
cat confdefs.h >>conftest.$ac_ext
4196
cat >>conftest.$ac_ext <<_ACEOF
4197
/* end confdefs.h. */
4207
rm -f conftest.$ac_objext
4208
if { (ac_try="$ac_compile"
4210
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211
*) ac_try_echo=$ac_try;;
4213
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4214
(eval "$ac_compile") 2>conftest.er1
4216
grep -v '^ *+' conftest.er1 >conftest.err
4218
cat conftest.err >&5
4219
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4220
(exit $ac_status); } && {
4221
test -z "$ac_cxx_werror_flag" ||
4222
test ! -s conftest.err
4223
} && test -s conftest.$ac_objext; then
4224
ac_cv_prog_cxx_g=yes
4226
echo "$as_me: failed program was:" >&5
4227
sed 's/^/| /' conftest.$ac_ext >&5
4230
cat >conftest.$ac_ext <<_ACEOF
4233
cat confdefs.h >>conftest.$ac_ext
4234
cat >>conftest.$ac_ext <<_ACEOF
4235
/* end confdefs.h. */
4245
rm -f conftest.$ac_objext
4246
if { (ac_try="$ac_compile"
4248
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249
*) ac_try_echo=$ac_try;;
4251
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4252
(eval "$ac_compile") 2>conftest.er1
4254
grep -v '^ *+' conftest.er1 >conftest.err
4256
cat conftest.err >&5
4257
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258
(exit $ac_status); } && {
4259
test -z "$ac_cxx_werror_flag" ||
4260
test ! -s conftest.err
4261
} && test -s conftest.$ac_objext; then
4264
echo "$as_me: failed program was:" >&5
4265
sed 's/^/| /' conftest.$ac_ext >&5
4267
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4269
cat >conftest.$ac_ext <<_ACEOF
4272
cat confdefs.h >>conftest.$ac_ext
4273
cat >>conftest.$ac_ext <<_ACEOF
4274
/* end confdefs.h. */
4284
rm -f conftest.$ac_objext
4285
if { (ac_try="$ac_compile"
4287
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288
*) ac_try_echo=$ac_try;;
4290
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4291
(eval "$ac_compile") 2>conftest.er1
4293
grep -v '^ *+' conftest.er1 >conftest.err
4295
cat conftest.err >&5
4296
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297
(exit $ac_status); } && {
4298
test -z "$ac_cxx_werror_flag" ||
4299
test ! -s conftest.err
4300
} && test -s conftest.$ac_objext; then
4301
ac_cv_prog_cxx_g=yes
4303
echo "$as_me: failed program was:" >&5
4304
sed 's/^/| /' conftest.$ac_ext >&5
4309
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4316
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4318
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4319
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
4320
if test "$ac_test_CXXFLAGS" = set; then
4321
CXXFLAGS=$ac_save_CXXFLAGS
4322
elif test $ac_cv_prog_cxx_g = yes; then
4323
if test "$GXX" = yes; then
4329
if test "$GXX" = yes; then
4336
ac_cpp='$CPP $CPPFLAGS'
4337
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4338
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4339
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4341
depcc="$CXX" am_compiler_list=
4343
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4344
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
4345
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4346
echo $ECHO_N "(cached) $ECHO_C" >&6
4348
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4349
# We make a subdir and do the tests there. Otherwise we can end up
4350
# making bogus files that we don't know about and never remove. For
4351
# instance it was reported that on HP-UX the gcc test will end up
4352
# making a dummy file named `D' -- because `-MD' means `put the output
4355
# Copy depcomp to subdir because otherwise we won't find it if we're
4356
# using a relative directory.
4357
cp "$am_depcomp" conftest.dir
4359
# We will build objects and dependencies in a subdirectory because
4360
# it helps to detect inapplicable dependency modes. For instance
4361
# both Tru64's cc and ICC support -MD to output dependencies as a
4362
# side effect of compilation, but ICC will put the dependencies in
4363
# the current directory while Tru64 will put them in the object
4367
am_cv_CXX_dependencies_compiler_type=none
4368
if test "$am_compiler_list" = ""; then
4369
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4371
for depmode in $am_compiler_list; do
4372
# Setup a source with many dependencies, because some compilers
4373
# like to wrap large dependency lists on column 80 (with \), and
4374
# we should not choose a depcomp mode which is confused by this.
4376
# We need to recreate these files for each test, as the compiler may
4377
# overwrite some of them when testing with obscure command lines.
4378
# This happens at least with the AIX C compiler.
4380
for i in 1 2 3 4 5 6; do
4381
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4382
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4383
# Solaris 8's {/usr,}/bin/sh.
4384
touch sub/conftst$i.h
4386
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4390
# after this tag, mechanisms are not by side-effect, so they'll
4391
# only be used when explicitly requested
4392
if test "x$enable_dependency_tracking" = xyes; then
4400
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4401
# mode. It turns out that the SunPro C++ compiler does not properly
4402
# handle `-M -o', and we need to detect this.
4403
if depmode=$depmode \
4404
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4405
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4406
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4407
>/dev/null 2>conftest.err &&
4408
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4409
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4410
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4411
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4412
# icc doesn't choke on unknown options, it will just issue warnings
4413
# or remarks (even with -Werror). So we grep stderr for any message
4414
# that says an option was ignored or not supported.
4415
# When given -MP, icc 7.0 and 7.1 complain thusly:
4416
# icc: Command line warning: ignoring option '-M'; no argument required
4417
# The diagnosis changed in icc 8.0:
4418
# icc: Command line remark: option '-MP' not supported
4419
if (grep 'ignoring option' conftest.err ||
4420
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4421
am_cv_CXX_dependencies_compiler_type=$depmode
4430
am_cv_CXX_dependencies_compiler_type=none
4434
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4435
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
4436
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4439
test "x$enable_dependency_tracking" != xno \
4440
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4441
am__fastdepCXX_TRUE=
4442
am__fastdepCXX_FALSE='#'
4444
am__fastdepCXX_TRUE='#'
4445
am__fastdepCXX_FALSE=
4449
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4450
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4452
if test "$LN_S" = "ln -s"; then
4453
{ echo "$as_me:$LINENO: result: yes" >&5
4454
echo "${ECHO_T}yes" >&6; }
4456
{ echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4457
echo "${ECHO_T}no, using $LN_S" >&6; }
4460
if test -n "$ac_tool_prefix"; then
4461
# Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4462
set dummy ${ac_tool_prefix}windres; ac_word=$2
4463
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4464
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4465
if test "${ac_cv_prog_WINDRES+set}" = set; then
4466
echo $ECHO_N "(cached) $ECHO_C" >&6
4468
if test -n "$WINDRES"; then
4469
ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4471
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475
test -z "$as_dir" && as_dir=.
4476
for ac_exec_ext in '' $ac_executable_extensions; do
4477
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4478
ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4479
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4488
WINDRES=$ac_cv_prog_WINDRES
4489
if test -n "$WINDRES"; then
4490
{ echo "$as_me:$LINENO: result: $WINDRES" >&5
4491
echo "${ECHO_T}$WINDRES" >&6; }
4493
{ echo "$as_me:$LINENO: result: no" >&5
4494
echo "${ECHO_T}no" >&6; }
4499
if test -z "$ac_cv_prog_WINDRES"; then
4500
ac_ct_WINDRES=$WINDRES
4501
# Extract the first word of "windres", so it can be a program name with args.
4502
set dummy windres; ac_word=$2
4503
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4504
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4505
if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4506
echo $ECHO_N "(cached) $ECHO_C" >&6
4508
if test -n "$ac_ct_WINDRES"; then
4509
ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4511
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515
test -z "$as_dir" && as_dir=.
4516
for ac_exec_ext in '' $ac_executable_extensions; do
4517
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4518
ac_cv_prog_ac_ct_WINDRES="windres"
4519
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4528
ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4529
if test -n "$ac_ct_WINDRES"; then
4530
{ echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4531
echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
4533
{ echo "$as_me:$LINENO: result: no" >&5
4534
echo "${ECHO_T}no" >&6; }
4537
if test "x$ac_ct_WINDRES" = x; then
4540
case $cross_compiling:$ac_tool_warned in
4542
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4543
whose name does not start with the host triplet. If you think this
4544
configuration is useful to you, please write to autoconf@gnu.org." >&5
4545
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4546
whose name does not start with the host triplet. If you think this
4547
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4548
ac_tool_warned=yes ;;
4550
WINDRES=$ac_ct_WINDRES
4553
WINDRES="$ac_cv_prog_WINDRES"
4558
have_dosish_system=no
4563
cat >>confdefs.h <<\_ACEOF
4564
#define USE_ONLY_8DOT3 1
4568
cat >>confdefs.h <<\_ACEOF
4569
#define HAVE_DRIVE_LETTERS 1
4572
have_dosish_system=yes
4575
i?86-emx-os2 | i?86-*-os2*emx )
4576
# OS/2 with the EMX environment
4577
cat >>confdefs.h <<\_ACEOF
4578
#define HAVE_DRIVE_LETTERS 1
4581
have_dosish_system=yes
4585
# DOS with the DJGPP environment
4586
cat >>confdefs.h <<\_ACEOF
4587
#define HAVE_DRIVE_LETTERS 1
4590
have_dosish_system=yes
4594
if test "$have_dosish_system" = yes; then
4596
cat >>confdefs.h <<\_ACEOF
4597
#define HAVE_DOSISH_SYSTEM 1
4601
if test "$have_dosish_system" = yes; then
4602
HAVE_DOSISH_SYSTEM_TRUE=
4603
HAVE_DOSISH_SYSTEM_FALSE='#'
4605
HAVE_DOSISH_SYSTEM_TRUE='#'
4606
HAVE_DOSISH_SYSTEM_FALSE=
4610
if test "$have_w32_system" = yes; then
4612
cat >>confdefs.h <<\_ACEOF
4613
#define HAVE_W32_SYSTEM 1
4617
if test "$have_w32_system" = yes; then
4618
HAVE_W32_SYSTEM_TRUE=
4619
HAVE_W32_SYSTEM_FALSE='#'
4621
HAVE_W32_SYSTEM_TRUE='#'
4622
HAVE_W32_SYSTEM_FALSE=
4629
if test "$GCC" = yes; then
4630
CFLAGS="$CFLAGS -Wall -Wcast-align -Wshadow -Wstrict-prototypes"
4631
CPPFLAGS="$CPPFLAGS -Wall"
4633
{ echo "$as_me:$LINENO: checking if gcc supports -Wno-pointer-sign" >&5
4634
echo $ECHO_N "checking if gcc supports -Wno-pointer-sign... $ECHO_C" >&6; }
4635
_gcc_cflags_save=$CFLAGS
4636
CFLAGS="-Wno-pointer-sign"
4638
cat >conftest.$ac_ext <<_ACEOF
4641
cat confdefs.h >>conftest.$ac_ext
4642
cat >>conftest.$ac_ext <<_ACEOF
4643
/* end confdefs.h. */
4653
rm -f conftest.$ac_objext
4654
if { (ac_try="$ac_compile"
4656
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4657
*) ac_try_echo=$ac_try;;
4659
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4660
(eval "$ac_compile") 2>conftest.er1
4662
grep -v '^ *+' conftest.er1 >conftest.err
4664
cat conftest.err >&5
4665
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666
(exit $ac_status); } && {
4667
test -z "$ac_c_werror_flag" ||
4668
test ! -s conftest.err
4669
} && test -s conftest.$ac_objext; then
4672
echo "$as_me: failed program was:" >&5
4673
sed 's/^/| /' conftest.$ac_ext >&5
4678
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4679
{ echo "$as_me:$LINENO: result: $_gcc_psign" >&5
4680
echo "${ECHO_T}$_gcc_psign" >&6; }
4681
CFLAGS=$_gcc_cflags_save;
4682
if test x"$_gcc_psign" = xyes ; then
4683
CFLAGS="$CFLAGS -Wno-pointer-sign"
4688
# Checks for header files.
4690
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4691
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4692
if test "${ac_cv_path_GREP+set}" = set; then
4693
echo $ECHO_N "(cached) $ECHO_C" >&6
4695
# Extract the first word of "grep ggrep" to use in msg output
4696
if test -z "$GREP"; then
4697
set dummy grep ggrep; ac_prog_name=$2
4698
if test "${ac_cv_path_GREP+set}" = set; then
4699
echo $ECHO_N "(cached) $ECHO_C" >&6
4701
ac_path_GREP_found=false
4702
# Loop through the user's path and test for each of PROGNAME-LIST
4703
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4707
test -z "$as_dir" && as_dir=.
4708
for ac_prog in grep ggrep; do
4709
for ac_exec_ext in '' $ac_executable_extensions; do
4710
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4711
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4712
# Check for GNU ac_path_GREP and select it if it is found.
4713
# Check for GNU $ac_path_GREP
4714
case `"$ac_path_GREP" --version 2>&1` in
4716
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4719
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4722
cat "conftest.in" "conftest.in" >"conftest.tmp"
4723
mv "conftest.tmp" "conftest.in"
4724
cp "conftest.in" "conftest.nl"
4725
echo 'GREP' >> "conftest.nl"
4726
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4727
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4728
ac_count=`expr $ac_count + 1`
4729
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4730
# Best one so far, save it but keep looking for a better one
4731
ac_cv_path_GREP="$ac_path_GREP"
4732
ac_path_GREP_max=$ac_count
4734
# 10*(2^10) chars as input seems more than enough
4735
test $ac_count -gt 10 && break
4737
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4741
$ac_path_GREP_found && break 3
4751
GREP="$ac_cv_path_GREP"
4752
if test -z "$GREP"; then
4753
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4754
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4755
{ (exit 1); exit 1; }; }
4759
ac_cv_path_GREP=$GREP
4764
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4765
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4766
GREP="$ac_cv_path_GREP"
4769
{ echo "$as_me:$LINENO: checking for egrep" >&5
4770
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4771
if test "${ac_cv_path_EGREP+set}" = set; then
4772
echo $ECHO_N "(cached) $ECHO_C" >&6
4774
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4775
then ac_cv_path_EGREP="$GREP -E"
4777
# Extract the first word of "egrep" to use in msg output
4778
if test -z "$EGREP"; then
4779
set dummy egrep; ac_prog_name=$2
4780
if test "${ac_cv_path_EGREP+set}" = set; then
4781
echo $ECHO_N "(cached) $ECHO_C" >&6
4783
ac_path_EGREP_found=false
4784
# Loop through the user's path and test for each of PROGNAME-LIST
4785
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4789
test -z "$as_dir" && as_dir=.
4790
for ac_prog in egrep; do
4791
for ac_exec_ext in '' $ac_executable_extensions; do
4792
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4793
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4794
# Check for GNU ac_path_EGREP and select it if it is found.
4795
# Check for GNU $ac_path_EGREP
4796
case `"$ac_path_EGREP" --version 2>&1` in
4798
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4801
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4804
cat "conftest.in" "conftest.in" >"conftest.tmp"
4805
mv "conftest.tmp" "conftest.in"
4806
cp "conftest.in" "conftest.nl"
4807
echo 'EGREP' >> "conftest.nl"
4808
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4809
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4810
ac_count=`expr $ac_count + 1`
4811
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4812
# Best one so far, save it but keep looking for a better one
4813
ac_cv_path_EGREP="$ac_path_EGREP"
4814
ac_path_EGREP_max=$ac_count
4816
# 10*(2^10) chars as input seems more than enough
4817
test $ac_count -gt 10 && break
4819
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4823
$ac_path_EGREP_found && break 3
4833
EGREP="$ac_cv_path_EGREP"
4834
if test -z "$EGREP"; then
4835
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4836
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4837
{ (exit 1); exit 1; }; }
4841
ac_cv_path_EGREP=$EGREP
4847
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4848
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4849
EGREP="$ac_cv_path_EGREP"
4852
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4853
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4854
if test "${ac_cv_header_stdc+set}" = set; then
4855
echo $ECHO_N "(cached) $ECHO_C" >&6
4857
cat >conftest.$ac_ext <<_ACEOF
4860
cat confdefs.h >>conftest.$ac_ext
4861
cat >>conftest.$ac_ext <<_ACEOF
4862
/* end confdefs.h. */
4876
rm -f conftest.$ac_objext
4877
if { (ac_try="$ac_compile"
4879
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4880
*) ac_try_echo=$ac_try;;
4882
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4883
(eval "$ac_compile") 2>conftest.er1
4885
grep -v '^ *+' conftest.er1 >conftest.err
4887
cat conftest.err >&5
4888
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889
(exit $ac_status); } && {
4890
test -z "$ac_c_werror_flag" ||
4891
test ! -s conftest.err
4892
} && test -s conftest.$ac_objext; then
4893
ac_cv_header_stdc=yes
4895
echo "$as_me: failed program was:" >&5
4896
sed 's/^/| /' conftest.$ac_ext >&5
4898
ac_cv_header_stdc=no
4901
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4903
if test $ac_cv_header_stdc = yes; then
4904
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4905
cat >conftest.$ac_ext <<_ACEOF
4908
cat confdefs.h >>conftest.$ac_ext
4909
cat >>conftest.$ac_ext <<_ACEOF
4910
/* end confdefs.h. */
4914
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4915
$EGREP "memchr" >/dev/null 2>&1; then
4918
ac_cv_header_stdc=no
4924
if test $ac_cv_header_stdc = yes; then
4925
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4926
cat >conftest.$ac_ext <<_ACEOF
4929
cat confdefs.h >>conftest.$ac_ext
4930
cat >>conftest.$ac_ext <<_ACEOF
4931
/* end confdefs.h. */
4935
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4936
$EGREP "free" >/dev/null 2>&1; then
4939
ac_cv_header_stdc=no
4945
if test $ac_cv_header_stdc = yes; then
4946
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4947
if test "$cross_compiling" = yes; then
4950
cat >conftest.$ac_ext <<_ACEOF
4953
cat confdefs.h >>conftest.$ac_ext
4954
cat >>conftest.$ac_ext <<_ACEOF
4955
/* end confdefs.h. */
4958
#if ((' ' & 0x0FF) == 0x020)
4959
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4960
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4962
# define ISLOWER(c) \
4963
(('a' <= (c) && (c) <= 'i') \
4964
|| ('j' <= (c) && (c) <= 'r') \
4965
|| ('s' <= (c) && (c) <= 'z'))
4966
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4969
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4974
for (i = 0; i < 256; i++)
4975
if (XOR (islower (i), ISLOWER (i))
4976
|| toupper (i) != TOUPPER (i))
4981
rm -f conftest$ac_exeext
4982
if { (ac_try="$ac_link"
4984
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4985
*) ac_try_echo=$ac_try;;
4987
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4988
(eval "$ac_link") 2>&5
4990
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4992
{ (case "(($ac_try" in
4993
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4994
*) ac_try_echo=$ac_try;;
4996
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4997
(eval "$ac_try") 2>&5
4999
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000
(exit $ac_status); }; }; then
5003
echo "$as_me: program exited with status $ac_status" >&5
5004
echo "$as_me: failed program was:" >&5
5005
sed 's/^/| /' conftest.$ac_ext >&5
5008
ac_cv_header_stdc=no
5010
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5016
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5017
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5018
if test $ac_cv_header_stdc = yes; then
5020
cat >>confdefs.h <<\_ACEOF
5021
#define STDC_HEADERS 1
5026
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5036
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5037
inttypes.h stdint.h unistd.h
5039
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5040
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5041
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5042
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5043
echo $ECHO_N "(cached) $ECHO_C" >&6
5045
cat >conftest.$ac_ext <<_ACEOF
5048
cat confdefs.h >>conftest.$ac_ext
5049
cat >>conftest.$ac_ext <<_ACEOF
5050
/* end confdefs.h. */
5051
$ac_includes_default
5053
#include <$ac_header>
5055
rm -f conftest.$ac_objext
5056
if { (ac_try="$ac_compile"
5058
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5059
*) ac_try_echo=$ac_try;;
5061
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5062
(eval "$ac_compile") 2>conftest.er1
5064
grep -v '^ *+' conftest.er1 >conftest.err
5066
cat conftest.err >&5
5067
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068
(exit $ac_status); } && {
5069
test -z "$ac_c_werror_flag" ||
5070
test ! -s conftest.err
5071
} && test -s conftest.$ac_objext; then
5072
eval "$as_ac_Header=yes"
5074
echo "$as_me: failed program was:" >&5
5075
sed 's/^/| /' conftest.$ac_ext >&5
5077
eval "$as_ac_Header=no"
5080
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5082
ac_res=`eval echo '${'$as_ac_Header'}'`
5083
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5084
echo "${ECHO_T}$ac_res" >&6; }
5085
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5086
cat >>confdefs.h <<_ACEOF
5087
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5101
for ac_header in string.h unistd.h langinfo.h termio.h locale.h utime.h
5103
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5104
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5105
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5106
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5107
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5108
echo $ECHO_N "(cached) $ECHO_C" >&6
5110
ac_res=`eval echo '${'$as_ac_Header'}'`
5111
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5112
echo "${ECHO_T}$ac_res" >&6; }
5114
# Is the header compilable?
5115
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5116
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5117
cat >conftest.$ac_ext <<_ACEOF
5120
cat confdefs.h >>conftest.$ac_ext
5121
cat >>conftest.$ac_ext <<_ACEOF
5122
/* end confdefs.h. */
5123
$ac_includes_default
5124
#include <$ac_header>
5126
rm -f conftest.$ac_objext
5127
if { (ac_try="$ac_compile"
5129
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5130
*) ac_try_echo=$ac_try;;
5132
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5133
(eval "$ac_compile") 2>conftest.er1
5135
grep -v '^ *+' conftest.er1 >conftest.err
5137
cat conftest.err >&5
5138
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5139
(exit $ac_status); } && {
5140
test -z "$ac_c_werror_flag" ||
5141
test ! -s conftest.err
5142
} && test -s conftest.$ac_objext; then
5143
ac_header_compiler=yes
5145
echo "$as_me: failed program was:" >&5
5146
sed 's/^/| /' conftest.$ac_ext >&5
5148
ac_header_compiler=no
5151
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5152
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5153
echo "${ECHO_T}$ac_header_compiler" >&6; }
5155
# Is the header present?
5156
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5157
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5158
cat >conftest.$ac_ext <<_ACEOF
5161
cat confdefs.h >>conftest.$ac_ext
5162
cat >>conftest.$ac_ext <<_ACEOF
5163
/* end confdefs.h. */
5164
#include <$ac_header>
5166
if { (ac_try="$ac_cpp conftest.$ac_ext"
5168
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5169
*) ac_try_echo=$ac_try;;
5171
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5172
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5174
grep -v '^ *+' conftest.er1 >conftest.err
5176
cat conftest.err >&5
5177
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5178
(exit $ac_status); } >/dev/null && {
5179
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5180
test ! -s conftest.err
5182
ac_header_preproc=yes
5184
echo "$as_me: failed program was:" >&5
5185
sed 's/^/| /' conftest.$ac_ext >&5
5187
ac_header_preproc=no
5190
rm -f conftest.err conftest.$ac_ext
5191
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5192
echo "${ECHO_T}$ac_header_preproc" >&6; }
5194
# So? What about this header?
5195
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5197
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5198
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5199
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5200
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5201
ac_header_preproc=yes
5204
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5205
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5206
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5207
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5208
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5209
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5210
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5211
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5212
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5213
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5214
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5215
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5217
## ------------------------------------ ##
5218
## Report this to bugs@x2go.org ##
5219
## ------------------------------------ ##
5221
) | sed "s/^/$as_me: WARNING: /" >&2
5224
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5225
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5226
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5227
echo $ECHO_N "(cached) $ECHO_C" >&6
5229
eval "$as_ac_Header=\$ac_header_preproc"
5231
ac_res=`eval echo '${'$as_ac_Header'}'`
5232
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5233
echo "${ECHO_T}$ac_res" >&6; }
5236
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5237
cat >>confdefs.h <<_ACEOF
5238
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5249
for ac_func in seteuid stpcpy mmap
5251
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5252
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5253
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5254
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5255
echo $ECHO_N "(cached) $ECHO_C" >&6
5257
cat >conftest.$ac_ext <<_ACEOF
5260
cat confdefs.h >>conftest.$ac_ext
5261
cat >>conftest.$ac_ext <<_ACEOF
5262
/* end confdefs.h. */
5263
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5264
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5265
#define $ac_func innocuous_$ac_func
5267
/* System header to define __stub macros and hopefully few prototypes,
5268
which can conflict with char $ac_func (); below.
5269
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5270
<limits.h> exists even on freestanding compilers. */
5273
# include <limits.h>
5275
# include <assert.h>
5280
/* Override any GCC internal prototype to avoid an error.
5281
Use char because int might match the return type of a GCC
5282
builtin and then its argument prototype would still apply. */
5287
/* The GNU C library defines this for functions which it implements
5288
to always fail with ENOSYS. Some functions are actually named
5289
something starting with __ and the normal name is an alias. */
5290
#if defined __stub_$ac_func || defined __stub___$ac_func
5302
rm -f conftest.$ac_objext conftest$ac_exeext
5303
if { (ac_try="$ac_link"
5305
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5306
*) ac_try_echo=$ac_try;;
5308
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5309
(eval "$ac_link") 2>conftest.er1
5311
grep -v '^ *+' conftest.er1 >conftest.err
5313
cat conftest.err >&5
5314
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5315
(exit $ac_status); } && {
5316
test -z "$ac_c_werror_flag" ||
5317
test ! -s conftest.err
5318
} && test -s conftest$ac_exeext &&
5319
$as_test_x conftest$ac_exeext; then
5320
eval "$as_ac_var=yes"
5322
echo "$as_me: failed program was:" >&5
5323
sed 's/^/| /' conftest.$ac_ext >&5
5325
eval "$as_ac_var=no"
5328
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5329
conftest$ac_exeext conftest.$ac_ext
5331
ac_res=`eval echo '${'$as_ac_var'}'`
5332
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5333
echo "${ECHO_T}$ac_res" >&6; }
5334
if test `eval echo '${'$as_ac_var'}'` = yes; then
5335
cat >>confdefs.h <<_ACEOF
5336
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5343
for ac_func in mlock
5345
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5346
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5347
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5348
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5349
echo $ECHO_N "(cached) $ECHO_C" >&6
5351
cat >conftest.$ac_ext <<_ACEOF
5354
cat confdefs.h >>conftest.$ac_ext
5355
cat >>conftest.$ac_ext <<_ACEOF
5356
/* end confdefs.h. */
5357
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5358
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5359
#define $ac_func innocuous_$ac_func
5361
/* System header to define __stub macros and hopefully few prototypes,
5362
which can conflict with char $ac_func (); below.
5363
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5364
<limits.h> exists even on freestanding compilers. */
5367
# include <limits.h>
5369
# include <assert.h>
5374
/* Override any GCC internal prototype to avoid an error.
5375
Use char because int might match the return type of a GCC
5376
builtin and then its argument prototype would still apply. */
5381
/* The GNU C library defines this for functions which it implements
5382
to always fail with ENOSYS. Some functions are actually named
5383
something starting with __ and the normal name is an alias. */
5384
#if defined __stub_$ac_func || defined __stub___$ac_func
5396
rm -f conftest.$ac_objext conftest$ac_exeext
5397
if { (ac_try="$ac_link"
5399
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5400
*) ac_try_echo=$ac_try;;
5402
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5403
(eval "$ac_link") 2>conftest.er1
5405
grep -v '^ *+' conftest.er1 >conftest.err
5407
cat conftest.err >&5
5408
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5409
(exit $ac_status); } && {
5410
test -z "$ac_c_werror_flag" ||
5411
test ! -s conftest.err
5412
} && test -s conftest$ac_exeext &&
5413
$as_test_x conftest$ac_exeext; then
5414
eval "$as_ac_var=yes"
5416
echo "$as_me: failed program was:" >&5
5417
sed 's/^/| /' conftest.$ac_ext >&5
5419
eval "$as_ac_var=no"
5422
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5423
conftest$ac_exeext conftest.$ac_ext
5425
ac_res=`eval echo '${'$as_ac_var'}'`
5426
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5427
echo "${ECHO_T}$ac_res" >&6; }
5428
if test `eval echo '${'$as_ac_var'}'` = yes; then
5429
cat >>confdefs.h <<_ACEOF
5430
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5436
if test "$ac_cv_func_mlock" = "no"; then
5438
for ac_header in sys/mman.h
5440
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5441
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5442
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5443
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5444
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5445
echo $ECHO_N "(cached) $ECHO_C" >&6
5447
ac_res=`eval echo '${'$as_ac_Header'}'`
5448
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5449
echo "${ECHO_T}$ac_res" >&6; }
5451
# Is the header compilable?
5452
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5453
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5454
cat >conftest.$ac_ext <<_ACEOF
5457
cat confdefs.h >>conftest.$ac_ext
5458
cat >>conftest.$ac_ext <<_ACEOF
5459
/* end confdefs.h. */
5460
$ac_includes_default
5461
#include <$ac_header>
5463
rm -f conftest.$ac_objext
5464
if { (ac_try="$ac_compile"
5466
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5467
*) ac_try_echo=$ac_try;;
5469
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5470
(eval "$ac_compile") 2>conftest.er1
5472
grep -v '^ *+' conftest.er1 >conftest.err
5474
cat conftest.err >&5
5475
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476
(exit $ac_status); } && {
5477
test -z "$ac_c_werror_flag" ||
5478
test ! -s conftest.err
5479
} && test -s conftest.$ac_objext; then
5480
ac_header_compiler=yes
5482
echo "$as_me: failed program was:" >&5
5483
sed 's/^/| /' conftest.$ac_ext >&5
5485
ac_header_compiler=no
5488
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5489
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5490
echo "${ECHO_T}$ac_header_compiler" >&6; }
5492
# Is the header present?
5493
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5494
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5495
cat >conftest.$ac_ext <<_ACEOF
5498
cat confdefs.h >>conftest.$ac_ext
5499
cat >>conftest.$ac_ext <<_ACEOF
5500
/* end confdefs.h. */
5501
#include <$ac_header>
5503
if { (ac_try="$ac_cpp conftest.$ac_ext"
5505
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5506
*) ac_try_echo=$ac_try;;
5508
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5509
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5511
grep -v '^ *+' conftest.er1 >conftest.err
5513
cat conftest.err >&5
5514
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515
(exit $ac_status); } >/dev/null && {
5516
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5517
test ! -s conftest.err
5519
ac_header_preproc=yes
5521
echo "$as_me: failed program was:" >&5
5522
sed 's/^/| /' conftest.$ac_ext >&5
5524
ac_header_preproc=no
5527
rm -f conftest.err conftest.$ac_ext
5528
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5529
echo "${ECHO_T}$ac_header_preproc" >&6; }
5531
# So? What about this header?
5532
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5534
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5535
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5536
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5537
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5538
ac_header_preproc=yes
5541
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5542
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5543
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5544
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5545
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5546
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5547
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5548
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5549
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5550
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5551
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5552
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5554
## ------------------------------------ ##
5555
## Report this to bugs@x2go.org ##
5556
## ------------------------------------ ##
5558
) | sed "s/^/$as_me: WARNING: /" >&2
5561
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5562
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5563
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5564
echo $ECHO_N "(cached) $ECHO_C" >&6
5566
eval "$as_ac_Header=\$ac_header_preproc"
5568
ac_res=`eval echo '${'$as_ac_Header'}'`
5569
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5570
echo "${ECHO_T}$ac_res" >&6; }
5573
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5574
cat >>confdefs.h <<_ACEOF
5575
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5582
if test "$ac_cv_header_sys_mman_h" = "yes"; then
5583
# Add librt to LIBS:
5585
{ echo "$as_me:$LINENO: checking for memlk in -lrt" >&5
5586
echo $ECHO_N "checking for memlk in -lrt... $ECHO_C" >&6; }
5587
if test "${ac_cv_lib_rt_memlk+set}" = set; then
5588
echo $ECHO_N "(cached) $ECHO_C" >&6
5590
ac_check_lib_save_LIBS=$LIBS
5592
cat >conftest.$ac_ext <<_ACEOF
5595
cat confdefs.h >>conftest.$ac_ext
5596
cat >>conftest.$ac_ext <<_ACEOF
5597
/* end confdefs.h. */
5599
/* Override any GCC internal prototype to avoid an error.
5600
Use char because int might match the return type of a GCC
5601
builtin and then its argument prototype would still apply. */
5614
rm -f conftest.$ac_objext conftest$ac_exeext
5615
if { (ac_try="$ac_link"
5617
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5618
*) ac_try_echo=$ac_try;;
5620
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5621
(eval "$ac_link") 2>conftest.er1
5623
grep -v '^ *+' conftest.er1 >conftest.err
5625
cat conftest.err >&5
5626
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627
(exit $ac_status); } && {
5628
test -z "$ac_c_werror_flag" ||
5629
test ! -s conftest.err
5630
} && test -s conftest$ac_exeext &&
5631
$as_test_x conftest$ac_exeext; then
5632
ac_cv_lib_rt_memlk=yes
5634
echo "$as_me: failed program was:" >&5
5635
sed 's/^/| /' conftest.$ac_ext >&5
5637
ac_cv_lib_rt_memlk=no
5640
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5641
conftest$ac_exeext conftest.$ac_ext
5642
LIBS=$ac_check_lib_save_LIBS
5644
{ echo "$as_me:$LINENO: result: $ac_cv_lib_rt_memlk" >&5
5645
echo "${ECHO_T}$ac_cv_lib_rt_memlk" >&6; }
5646
if test $ac_cv_lib_rt_memlk = yes; then
5647
cat >>confdefs.h <<_ACEOF
5648
#define HAVE_LIBRT 1
5655
{ echo "$as_me:$LINENO: checking whether mlock is in sys/mman.h" >&5
5656
echo $ECHO_N "checking whether mlock is in sys/mman.h... $ECHO_C" >&6; }
5657
if test "${gnupg_cv_mlock_is_in_sys_mman+set}" = set; then
5658
echo $ECHO_N "(cached) $ECHO_C" >&6
5660
cat >conftest.$ac_ext <<_ACEOF
5663
cat confdefs.h >>conftest.$ac_ext
5664
cat >>conftest.$ac_ext <<_ACEOF
5665
/* end confdefs.h. */
5668
#ifdef HAVE_SYS_MMAN_H
5669
#include <sys/mman.h>
5678
/* glibc defines this for functions which it implements
5679
* to always fail with ENOSYS. Some functions are actually
5680
* named something starting with __ and the normal name
5682
#if defined (__stub_mlock) || defined (__stub___mlock)
5693
rm -f conftest.$ac_objext conftest$ac_exeext
5694
if { (ac_try="$ac_link"
5696
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5697
*) ac_try_echo=$ac_try;;
5699
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5700
(eval "$ac_link") 2>conftest.er1
5702
grep -v '^ *+' conftest.er1 >conftest.err
5704
cat conftest.err >&5
5705
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706
(exit $ac_status); } && {
5707
test -z "$ac_c_werror_flag" ||
5708
test ! -s conftest.err
5709
} && test -s conftest$ac_exeext &&
5710
$as_test_x conftest$ac_exeext; then
5711
gnupg_cv_mlock_is_in_sys_mman=yes
5713
echo "$as_me: failed program was:" >&5
5714
sed 's/^/| /' conftest.$ac_ext >&5
5716
gnupg_cv_mlock_is_in_sys_mman=no
5719
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5720
conftest$ac_exeext conftest.$ac_ext
5722
{ echo "$as_me:$LINENO: result: $gnupg_cv_mlock_is_in_sys_mman" >&5
5723
echo "${ECHO_T}$gnupg_cv_mlock_is_in_sys_mman" >&6; }
5724
if test "$gnupg_cv_mlock_is_in_sys_mman" = "yes"; then
5726
cat >>confdefs.h <<\_ACEOF
5727
#define HAVE_MLOCK 1
5733
if test "$ac_cv_func_mlock" = "yes"; then
5734
{ echo "$as_me:$LINENO: checking whether mlock is broken" >&5
5735
echo $ECHO_N "checking whether mlock is broken... $ECHO_C" >&6; }
5736
if test "${gnupg_cv_have_broken_mlock+set}" = set; then
5737
echo $ECHO_N "(cached) $ECHO_C" >&6
5739
if test "$cross_compiling" = yes; then
5740
gnupg_cv_have_broken_mlock="assume-no"
5743
cat >conftest.$ac_ext <<_ACEOF
5746
cat confdefs.h >>conftest.$ac_ext
5747
cat >>conftest.$ac_ext <<_ACEOF
5748
/* end confdefs.h. */
5753
#include <sys/mman.h>
5754
#include <sys/types.h>
5761
long int pgsize = getpagesize();
5763
pool = malloc( 4096 + pgsize );
5766
pool += (pgsize - ((long int)pool % pgsize));
5768
err = mlock( pool, 4096 );
5769
if( !err || errno == EPERM )
5770
return 0; /* okay */
5772
return 1; /* hmmm */
5777
rm -f conftest$ac_exeext
5778
if { (ac_try="$ac_link"
5780
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5781
*) ac_try_echo=$ac_try;;
5783
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5784
(eval "$ac_link") 2>&5
5786
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5787
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5788
{ (case "(($ac_try" in
5789
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5790
*) ac_try_echo=$ac_try;;
5792
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5793
(eval "$ac_try") 2>&5
5795
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796
(exit $ac_status); }; }; then
5797
gnupg_cv_have_broken_mlock="no"
5799
echo "$as_me: program exited with status $ac_status" >&5
5800
echo "$as_me: failed program was:" >&5
5801
sed 's/^/| /' conftest.$ac_ext >&5
5804
gnupg_cv_have_broken_mlock="yes"
5806
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5813
if test "$gnupg_cv_have_broken_mlock" = "yes"; then
5815
cat >>confdefs.h <<\_ACEOF
5816
#define HAVE_BROKEN_MLOCK 1
5819
{ echo "$as_me:$LINENO: result: yes" >&5
5820
echo "${ECHO_T}yes" >&6; }
5822
for ac_func in plock
5824
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5825
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5826
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5827
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5828
echo $ECHO_N "(cached) $ECHO_C" >&6
5830
cat >conftest.$ac_ext <<_ACEOF
5833
cat confdefs.h >>conftest.$ac_ext
5834
cat >>conftest.$ac_ext <<_ACEOF
5835
/* end confdefs.h. */
5836
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5837
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5838
#define $ac_func innocuous_$ac_func
5840
/* System header to define __stub macros and hopefully few prototypes,
5841
which can conflict with char $ac_func (); below.
5842
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5843
<limits.h> exists even on freestanding compilers. */
5846
# include <limits.h>
5848
# include <assert.h>
5853
/* Override any GCC internal prototype to avoid an error.
5854
Use char because int might match the return type of a GCC
5855
builtin and then its argument prototype would still apply. */
5860
/* The GNU C library defines this for functions which it implements
5861
to always fail with ENOSYS. Some functions are actually named
5862
something starting with __ and the normal name is an alias. */
5863
#if defined __stub_$ac_func || defined __stub___$ac_func
5875
rm -f conftest.$ac_objext conftest$ac_exeext
5876
if { (ac_try="$ac_link"
5878
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5879
*) ac_try_echo=$ac_try;;
5881
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5882
(eval "$ac_link") 2>conftest.er1
5884
grep -v '^ *+' conftest.er1 >conftest.err
5886
cat conftest.err >&5
5887
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888
(exit $ac_status); } && {
5889
test -z "$ac_c_werror_flag" ||
5890
test ! -s conftest.err
5891
} && test -s conftest$ac_exeext &&
5892
$as_test_x conftest$ac_exeext; then
5893
eval "$as_ac_var=yes"
5895
echo "$as_me: failed program was:" >&5
5896
sed 's/^/| /' conftest.$ac_ext >&5
5898
eval "$as_ac_var=no"
5901
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5902
conftest$ac_exeext conftest.$ac_ext
5904
ac_res=`eval echo '${'$as_ac_var'}'`
5905
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5906
echo "${ECHO_T}$ac_res" >&6; }
5907
if test `eval echo '${'$as_ac_var'}'` = yes; then
5908
cat >>confdefs.h <<_ACEOF
5909
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5916
if test "$gnupg_cv_have_broken_mlock" = "no"; then
5917
{ echo "$as_me:$LINENO: result: no" >&5
5918
echo "${ECHO_T}no" >&6; }
5920
{ echo "$as_me:$LINENO: result: assuming no" >&5
5921
echo "${ECHO_T}assuming no" >&6; }
5929
{ echo "$as_me:$LINENO: checking for byte typedef" >&5
5930
echo $ECHO_N "checking for byte typedef... $ECHO_C" >&6; }
5931
if test "${gnupg_cv_typedef_byte+set}" = set; then
5932
echo $ECHO_N "(cached) $ECHO_C" >&6
5934
cat >conftest.$ac_ext <<_ACEOF
5937
cat confdefs.h >>conftest.$ac_ext
5938
cat >>conftest.$ac_ext <<_ACEOF
5939
/* end confdefs.h. */
5940
#define _GNU_SOURCE 1
5942
#include <sys/types.h>
5948
int a = sizeof(byte);
5954
rm -f conftest.$ac_objext
5955
if { (ac_try="$ac_compile"
5957
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5958
*) ac_try_echo=$ac_try;;
5960
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5961
(eval "$ac_compile") 2>conftest.er1
5963
grep -v '^ *+' conftest.er1 >conftest.err
5965
cat conftest.err >&5
5966
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967
(exit $ac_status); } && {
5968
test -z "$ac_c_werror_flag" ||
5969
test ! -s conftest.err
5970
} && test -s conftest.$ac_objext; then
5971
gnupg_cv_typedef_byte=yes
5973
echo "$as_me: failed program was:" >&5
5974
sed 's/^/| /' conftest.$ac_ext >&5
5976
gnupg_cv_typedef_byte=no
5979
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5982
{ echo "$as_me:$LINENO: result: $gnupg_cv_typedef_byte" >&5
5983
echo "${ECHO_T}$gnupg_cv_typedef_byte" >&6; }
5984
if test "$gnupg_cv_typedef_byte" = yes; then
5986
cat >>confdefs.h <<\_ACEOF
5987
#define HAVE_BYTE_TYPEDEF 1
5992
{ echo "$as_me:$LINENO: checking for ulong typedef" >&5
5993
echo $ECHO_N "checking for ulong typedef... $ECHO_C" >&6; }
5994
if test "${gnupg_cv_typedef_ulong+set}" = set; then
5995
echo $ECHO_N "(cached) $ECHO_C" >&6
5997
cat >conftest.$ac_ext <<_ACEOF
6000
cat confdefs.h >>conftest.$ac_ext
6001
cat >>conftest.$ac_ext <<_ACEOF
6002
/* end confdefs.h. */
6003
#define _GNU_SOURCE 1
6005
#include <sys/types.h>
6011
int a = sizeof(ulong);
6017
rm -f conftest.$ac_objext
6018
if { (ac_try="$ac_compile"
6020
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6021
*) ac_try_echo=$ac_try;;
6023
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6024
(eval "$ac_compile") 2>conftest.er1
6026
grep -v '^ *+' conftest.er1 >conftest.err
6028
cat conftest.err >&5
6029
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6030
(exit $ac_status); } && {
6031
test -z "$ac_c_werror_flag" ||
6032
test ! -s conftest.err
6033
} && test -s conftest.$ac_objext; then
6034
gnupg_cv_typedef_ulong=yes
6036
echo "$as_me: failed program was:" >&5
6037
sed 's/^/| /' conftest.$ac_ext >&5
6039
gnupg_cv_typedef_ulong=no
6042
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6045
{ echo "$as_me:$LINENO: result: $gnupg_cv_typedef_ulong" >&5
6046
echo "${ECHO_T}$gnupg_cv_typedef_ulong" >&6; }
6047
if test "$gnupg_cv_typedef_ulong" = yes; then
6049
cat >>confdefs.h <<\_ACEOF
6050
#define HAVE_ULONG_TYPEDEF 1
6057
# Check whether --with-libcap was given.
6058
if test "${with_libcap+set}" = set; then
6059
withval=$with_libcap;
6063
if test "x$with_libcap" != "xno"; then
6064
# Extract the first word of "setcap", so it can be a program name with args.
6065
set dummy setcap; ac_word=$2
6066
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6067
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6068
if test "${ac_cv_path_SETCAP+set}" = set; then
6069
echo $ECHO_N "(cached) $ECHO_C" >&6
6073
ac_cv_path_SETCAP="$SETCAP" # Let the user override the test with a path.
6076
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6077
as_dummy=""$PATH:/sbin:/usr/sbin""
6078
for as_dir in $as_dummy
6081
test -z "$as_dir" && as_dir=.
6082
for ac_exec_ext in '' $ac_executable_extensions; do
6083
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6084
ac_cv_path_SETCAP="$as_dir/$ac_word$ac_exec_ext"
6085
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6092
test -z "$ac_cv_path_SETCAP" && ac_cv_path_SETCAP=":"
6096
SETCAP=$ac_cv_path_SETCAP
6097
if test -n "$SETCAP"; then
6098
{ echo "$as_me:$LINENO: result: $SETCAP" >&5
6099
echo "${ECHO_T}$SETCAP" >&6; }
6101
{ echo "$as_me:$LINENO: result: no" >&5
6102
echo "${ECHO_T}no" >&6; }
6106
{ echo "$as_me:$LINENO: checking for cap_set_proc in -lcap" >&5
6107
echo $ECHO_N "checking for cap_set_proc in -lcap... $ECHO_C" >&6; }
6108
if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then
6109
echo $ECHO_N "(cached) $ECHO_C" >&6
6111
ac_check_lib_save_LIBS=$LIBS
6113
cat >conftest.$ac_ext <<_ACEOF
6116
cat confdefs.h >>conftest.$ac_ext
6117
cat >>conftest.$ac_ext <<_ACEOF
6118
/* end confdefs.h. */
6120
/* Override any GCC internal prototype to avoid an error.
6121
Use char because int might match the return type of a GCC
6122
builtin and then its argument prototype would still apply. */
6126
char cap_set_proc ();
6130
return cap_set_proc ();
6135
rm -f conftest.$ac_objext conftest$ac_exeext
6136
if { (ac_try="$ac_link"
6138
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6139
*) ac_try_echo=$ac_try;;
6141
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6142
(eval "$ac_link") 2>conftest.er1
6144
grep -v '^ *+' conftest.er1 >conftest.err
6146
cat conftest.err >&5
6147
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148
(exit $ac_status); } && {
6149
test -z "$ac_c_werror_flag" ||
6150
test ! -s conftest.err
6151
} && test -s conftest$ac_exeext &&
6152
$as_test_x conftest$ac_exeext; then
6153
ac_cv_lib_cap_cap_set_proc=yes
6155
echo "$as_me: failed program was:" >&5
6156
sed 's/^/| /' conftest.$ac_ext >&5
6158
ac_cv_lib_cap_cap_set_proc=no
6161
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6162
conftest$ac_exeext conftest.$ac_ext
6163
LIBS=$ac_check_lib_save_LIBS
6165
{ echo "$as_me:$LINENO: result: $ac_cv_lib_cap_cap_set_proc" >&5
6166
echo "${ECHO_T}$ac_cv_lib_cap_cap_set_proc" >&6; }
6167
if test $ac_cv_lib_cap_cap_set_proc = yes; then
6170
cat >>confdefs.h <<\_ACEOF
6171
#define USE_CAPABILITIES 1
6181
# Check whether --enable-pinentry-curses was given.
6182
if test "${enable_pinentry_curses+set}" = set; then
6183
enableval=$enable_pinentry_curses; pinentry_curses=$enableval
6185
pinentry_curses=maybe
6188
# Check whether --enable-fallback-curses was given.
6189
if test "${enable_fallback_curses+set}" = set; then
6190
enableval=$enable_fallback_curses; fallback_curses=$enableval
6192
fallback_curses=maybe
6196
if test "$pinentry_curses" != "no" -o "$fallback_curses" != "no"; then
6198
# Check whether --enable-ncurses was given.
6199
if test "${enable_ncurses+set}" = set; then
6200
enableval=$enable_ncurses;
6205
if test "$enable_ncurses" = yes; then
6206
{ echo "$as_me:$LINENO: checking for initscr in -lncurses" >&5
6207
echo $ECHO_N "checking for initscr in -lncurses... $ECHO_C" >&6; }
6208
if test "${ac_cv_lib_ncurses_initscr+set}" = set; then
6209
echo $ECHO_N "(cached) $ECHO_C" >&6
6211
ac_check_lib_save_LIBS=$LIBS
6212
LIBS="-lncurses $LIBS"
6213
cat >conftest.$ac_ext <<_ACEOF
6216
cat confdefs.h >>conftest.$ac_ext
6217
cat >>conftest.$ac_ext <<_ACEOF
6218
/* end confdefs.h. */
6220
/* Override any GCC internal prototype to avoid an error.
6221
Use char because int might match the return type of a GCC
6222
builtin and then its argument prototype would still apply. */
6235
rm -f conftest.$ac_objext conftest$ac_exeext
6236
if { (ac_try="$ac_link"
6238
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6239
*) ac_try_echo=$ac_try;;
6241
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6242
(eval "$ac_link") 2>conftest.er1
6244
grep -v '^ *+' conftest.er1 >conftest.err
6246
cat conftest.err >&5
6247
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6248
(exit $ac_status); } && {
6249
test -z "$ac_c_werror_flag" ||
6250
test ! -s conftest.err
6251
} && test -s conftest$ac_exeext &&
6252
$as_test_x conftest$ac_exeext; then
6253
ac_cv_lib_ncurses_initscr=yes
6255
echo "$as_me: failed program was:" >&5
6256
sed 's/^/| /' conftest.$ac_ext >&5
6258
ac_cv_lib_ncurses_initscr=no
6261
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6262
conftest$ac_exeext conftest.$ac_ext
6263
LIBS=$ac_check_lib_save_LIBS
6265
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_initscr" >&5
6266
echo "${ECHO_T}$ac_cv_lib_ncurses_initscr" >&6; }
6267
if test $ac_cv_lib_ncurses_initscr = yes; then
6268
LIBNCURSES="-lncurses"
6271
if test "$LIBNCURSES"; then
6272
# Use ncurses header files instead of the ordinary ones, if possible;
6273
# is there a better way of doing this, that avoids looking in specific
6276
# Check whether --with-ncurses-include-dir was given.
6277
if test "${with_ncurses_include_dir+set}" = set; then
6278
withval=$with_ncurses_include_dir;
6280
if test "${with_ncurses_include_dir+set}" = set; then
6281
{ echo "$as_me:$LINENO: checking for ncurses include dir" >&5
6282
echo $ECHO_N "checking for ncurses include dir... $ECHO_C" >&6; }
6283
case "$with_ncurses_include_dir" in
6285
inetutils_cv_includedir_ncurses=none;;
6287
inetutils_cv_includedir_ncurses="$with_ncurses_include_dir";;
6289
{ echo "$as_me:$LINENO: result: $inetutils_cv_includedir_ncurses" >&5
6290
echo "${ECHO_T}$inetutils_cv_includedir_ncurses" >&6; }
6292
{ echo "$as_me:$LINENO: checking for ncurses include dir" >&5
6293
echo $ECHO_N "checking for ncurses include dir... $ECHO_C" >&6; }
6294
if test "${inetutils_cv_includedir_ncurses+set}" = set; then
6295
echo $ECHO_N "(cached) $ECHO_C" >&6
6297
for D in $includedir $prefix/include /local/include /usr/local/include /include /usr/include; do
6298
if test -d $D/ncurses; then
6299
inetutils_cv_includedir_ncurses="$D/ncurses"
6302
test "$inetutils_cv_includedir_ncurses" \
6303
|| inetutils_cv_includedir_ncurses=none
6306
{ echo "$as_me:$LINENO: result: $inetutils_cv_includedir_ncurses" >&5
6307
echo "${ECHO_T}$inetutils_cv_includedir_ncurses" >&6; }
6309
if test "$inetutils_cv_includedir_ncurses" = none; then
6312
NCURSES_INCLUDE="-I$inetutils_cv_includedir_ncurses"
6320
if test "$LIBNCURSES"; then
6321
LIBTERMCAP="$LIBNCURSES"
6323
{ echo "$as_me:$LINENO: checking for tgetent in -lcurses" >&5
6324
echo $ECHO_N "checking for tgetent in -lcurses... $ECHO_C" >&6; }
6325
if test "${ac_cv_lib_curses_tgetent+set}" = set; then
6326
echo $ECHO_N "(cached) $ECHO_C" >&6
6328
ac_check_lib_save_LIBS=$LIBS
6329
LIBS="-lcurses $LIBS"
6330
cat >conftest.$ac_ext <<_ACEOF
6333
cat confdefs.h >>conftest.$ac_ext
6334
cat >>conftest.$ac_ext <<_ACEOF
6335
/* end confdefs.h. */
6337
/* Override any GCC internal prototype to avoid an error.
6338
Use char because int might match the return type of a GCC
6339
builtin and then its argument prototype would still apply. */
6352
rm -f conftest.$ac_objext conftest$ac_exeext
6353
if { (ac_try="$ac_link"
6355
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6356
*) ac_try_echo=$ac_try;;
6358
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6359
(eval "$ac_link") 2>conftest.er1
6361
grep -v '^ *+' conftest.er1 >conftest.err
6363
cat conftest.err >&5
6364
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365
(exit $ac_status); } && {
6366
test -z "$ac_c_werror_flag" ||
6367
test ! -s conftest.err
6368
} && test -s conftest$ac_exeext &&
6369
$as_test_x conftest$ac_exeext; then
6370
ac_cv_lib_curses_tgetent=yes
6372
echo "$as_me: failed program was:" >&5
6373
sed 's/^/| /' conftest.$ac_ext >&5
6375
ac_cv_lib_curses_tgetent=no
6378
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6379
conftest$ac_exeext conftest.$ac_ext
6380
LIBS=$ac_check_lib_save_LIBS
6382
{ echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tgetent" >&5
6383
echo "${ECHO_T}$ac_cv_lib_curses_tgetent" >&6; }
6384
if test $ac_cv_lib_curses_tgetent = yes; then
6388
if test "$ac_cv_lib_curses_tgetent" = no; then
6389
{ echo "$as_me:$LINENO: checking for tgetent in -ltermcap" >&5
6390
echo $ECHO_N "checking for tgetent in -ltermcap... $ECHO_C" >&6; }
6391
if test "${ac_cv_lib_termcap_tgetent+set}" = set; then
6392
echo $ECHO_N "(cached) $ECHO_C" >&6
6394
ac_check_lib_save_LIBS=$LIBS
6395
LIBS="-ltermcap $LIBS"
6396
cat >conftest.$ac_ext <<_ACEOF
6399
cat confdefs.h >>conftest.$ac_ext
6400
cat >>conftest.$ac_ext <<_ACEOF
6401
/* end confdefs.h. */
6403
/* Override any GCC internal prototype to avoid an error.
6404
Use char because int might match the return type of a GCC
6405
builtin and then its argument prototype would still apply. */
6418
rm -f conftest.$ac_objext conftest$ac_exeext
6419
if { (ac_try="$ac_link"
6421
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6422
*) ac_try_echo=$ac_try;;
6424
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6425
(eval "$ac_link") 2>conftest.er1
6427
grep -v '^ *+' conftest.er1 >conftest.err
6429
cat conftest.err >&5
6430
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431
(exit $ac_status); } && {
6432
test -z "$ac_c_werror_flag" ||
6433
test ! -s conftest.err
6434
} && test -s conftest$ac_exeext &&
6435
$as_test_x conftest$ac_exeext; then
6436
ac_cv_lib_termcap_tgetent=yes
6438
echo "$as_me: failed program was:" >&5
6439
sed 's/^/| /' conftest.$ac_ext >&5
6441
ac_cv_lib_termcap_tgetent=no
6444
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6445
conftest$ac_exeext conftest.$ac_ext
6446
LIBS=$ac_check_lib_save_LIBS
6448
{ echo "$as_me:$LINENO: result: $ac_cv_lib_termcap_tgetent" >&5
6449
echo "${ECHO_T}$ac_cv_lib_termcap_tgetent" >&6; }
6450
if test $ac_cv_lib_termcap_tgetent = yes; then
6451
LIBTERMCAP=-ltermcap
6455
if test "$ac_cv_lib_termcap_tgetent" = no; then
6456
{ echo "$as_me:$LINENO: checking for tgetent in -ltermlib" >&5
6457
echo $ECHO_N "checking for tgetent in -ltermlib... $ECHO_C" >&6; }
6458
if test "${ac_cv_lib_termlib_tgetent+set}" = set; then
6459
echo $ECHO_N "(cached) $ECHO_C" >&6
6461
ac_check_lib_save_LIBS=$LIBS
6462
LIBS="-ltermlib $LIBS"
6463
cat >conftest.$ac_ext <<_ACEOF
6466
cat confdefs.h >>conftest.$ac_ext
6467
cat >>conftest.$ac_ext <<_ACEOF
6468
/* end confdefs.h. */
6470
/* Override any GCC internal prototype to avoid an error.
6471
Use char because int might match the return type of a GCC
6472
builtin and then its argument prototype would still apply. */
6485
rm -f conftest.$ac_objext conftest$ac_exeext
6486
if { (ac_try="$ac_link"
6488
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6489
*) ac_try_echo=$ac_try;;
6491
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6492
(eval "$ac_link") 2>conftest.er1
6494
grep -v '^ *+' conftest.er1 >conftest.err
6496
cat conftest.err >&5
6497
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498
(exit $ac_status); } && {
6499
test -z "$ac_c_werror_flag" ||
6500
test ! -s conftest.err
6501
} && test -s conftest$ac_exeext &&
6502
$as_test_x conftest$ac_exeext; then
6503
ac_cv_lib_termlib_tgetent=yes
6505
echo "$as_me: failed program was:" >&5
6506
sed 's/^/| /' conftest.$ac_ext >&5
6508
ac_cv_lib_termlib_tgetent=no
6511
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6512
conftest$ac_exeext conftest.$ac_ext
6513
LIBS=$ac_check_lib_save_LIBS
6515
{ echo "$as_me:$LINENO: result: $ac_cv_lib_termlib_tgetent" >&5
6516
echo "${ECHO_T}$ac_cv_lib_termlib_tgetent" >&6; }
6517
if test $ac_cv_lib_termlib_tgetent = yes; then
6518
LIBTERMCAP=-ltermlib
6527
if test "$LIBNCURSES"; then
6528
LIBCURSES="$LIBNCURSES" # ncurses doesn't require termcap
6530
_IU_SAVE_LIBS="$LIBS"
6532
{ echo "$as_me:$LINENO: checking for initscr in -lcurses" >&5
6533
echo $ECHO_N "checking for initscr in -lcurses... $ECHO_C" >&6; }
6534
if test "${ac_cv_lib_curses_initscr+set}" = set; then
6535
echo $ECHO_N "(cached) $ECHO_C" >&6
6537
ac_check_lib_save_LIBS=$LIBS
6538
LIBS="-lcurses $LIBS"
6539
cat >conftest.$ac_ext <<_ACEOF
6542
cat confdefs.h >>conftest.$ac_ext
6543
cat >>conftest.$ac_ext <<_ACEOF
6544
/* end confdefs.h. */
6546
/* Override any GCC internal prototype to avoid an error.
6547
Use char because int might match the return type of a GCC
6548
builtin and then its argument prototype would still apply. */
6561
rm -f conftest.$ac_objext conftest$ac_exeext
6562
if { (ac_try="$ac_link"
6564
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6565
*) ac_try_echo=$ac_try;;
6567
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6568
(eval "$ac_link") 2>conftest.er1
6570
grep -v '^ *+' conftest.er1 >conftest.err
6572
cat conftest.err >&5
6573
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574
(exit $ac_status); } && {
6575
test -z "$ac_c_werror_flag" ||
6576
test ! -s conftest.err
6577
} && test -s conftest$ac_exeext &&
6578
$as_test_x conftest$ac_exeext; then
6579
ac_cv_lib_curses_initscr=yes
6581
echo "$as_me: failed program was:" >&5
6582
sed 's/^/| /' conftest.$ac_ext >&5
6584
ac_cv_lib_curses_initscr=no
6587
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6588
conftest$ac_exeext conftest.$ac_ext
6589
LIBS=$ac_check_lib_save_LIBS
6591
{ echo "$as_me:$LINENO: result: $ac_cv_lib_curses_initscr" >&5
6592
echo "${ECHO_T}$ac_cv_lib_curses_initscr" >&6; }
6593
if test $ac_cv_lib_curses_initscr = yes; then
6594
LIBCURSES="-lcurses"
6597
if test "$LIBCURSES" -a "$LIBTERMCAP" -a "$LIBCURSES" != "$LIBTERMCAP"; then
6598
{ echo "$as_me:$LINENO: checking whether curses needs $LIBTERMCAP" >&5
6599
echo $ECHO_N "checking whether curses needs $LIBTERMCAP... $ECHO_C" >&6; }
6600
if test "${inetutils_cv_curses_needs_termcap+set}" = set; then
6601
echo $ECHO_N "(cached) $ECHO_C" >&6
6604
cat >conftest.$ac_ext <<_ACEOF
6607
cat confdefs.h >>conftest.$ac_ext
6608
cat >>conftest.$ac_ext <<_ACEOF
6609
/* end confdefs.h. */
6619
rm -f conftest.$ac_objext conftest$ac_exeext
6620
if { (ac_try="$ac_link"
6622
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6623
*) ac_try_echo=$ac_try;;
6625
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6626
(eval "$ac_link") 2>conftest.er1
6628
grep -v '^ *+' conftest.er1 >conftest.err
6630
cat conftest.err >&5
6631
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6632
(exit $ac_status); } && {
6633
test -z "$ac_c_werror_flag" ||
6634
test ! -s conftest.err
6635
} && test -s conftest$ac_exeext &&
6636
$as_test_x conftest$ac_exeext; then
6637
inetutils_cv_curses_needs_termcap=no
6639
echo "$as_me: failed program was:" >&5
6640
sed 's/^/| /' conftest.$ac_ext >&5
6642
inetutils_cv_curses_needs_termcap=yes
6645
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6646
conftest$ac_exeext conftest.$ac_ext
6648
{ echo "$as_me:$LINENO: result: $inetutils_cv_curses_needs_termcap" >&5
6649
echo "${ECHO_T}$inetutils_cv_curses_needs_termcap" >&6; }
6650
if test $inetutils_cv_curses_needs_termcap = yes; then
6651
LIBCURSES="$LIBCURSES $LIBTERMCAP"
6654
LIBS="$_IU_SAVE_LIBS"
6658
if test "$LIBCURSES"; then
6659
if test "$pinentry_curses" != "no"; then
6662
if test "$fallback_curses" != "no"; then
6665
cat >>confdefs.h <<\_ACEOF
6666
#define FALLBACK_CURSES 1
6671
if test "$pinentry_curses" = "yes" -o "$fallback_curses" = "yes"; then
6672
{ { echo "$as_me:$LINENO: error:
6674
*** The curses library is required. The latest version of
6675
*** ncurses is always available from ftp://ftp.gnu.org/gnu/ncurses/.
6677
echo "$as_me: error:
6679
*** The curses library is required. The latest version of
6680
*** ncurses is always available from ftp://ftp.gnu.org/gnu/ncurses/.
6682
{ (exit 1); exit 1; }; }
6687
if test "$pinentry_curses" = "yes" -o "$fallback_curses" = "yes"; then
6688
BUILD_LIBPINENTRY_CURSES_TRUE=
6689
BUILD_LIBPINENTRY_CURSES_FALSE='#'
6691
BUILD_LIBPINENTRY_CURSES_TRUE='#'
6692
BUILD_LIBPINENTRY_CURSES_FALSE=
6695
if test "$pinentry_curses" = "yes"; then
6696
BUILD_PINENTRY_CURSES_TRUE=
6697
BUILD_PINENTRY_CURSES_FALSE='#'
6699
BUILD_PINENTRY_CURSES_TRUE='#'
6700
BUILD_PINENTRY_CURSES_FALSE=
6703
if test "$fallback_curses" = "yes"; then
6704
FALLBACK_CURSES_TRUE=
6705
FALLBACK_CURSES_FALSE='#'
6707
FALLBACK_CURSES_TRUE='#'
6708
FALLBACK_CURSES_FALSE=
6712
if test "$pinentry_curses" = "yes"; then
6714
cat >>confdefs.h <<\_ACEOF
6715
#define PINENTRY_CURSES 1
6721
# Check whether --enable-pinentry-gtk was given.
6722
if test "${enable_pinentry_gtk+set}" = set; then
6723
enableval=$enable_pinentry_gtk; pinentry_gtk=$enableval
6729
if test "$pinentry_gtk" != "no"; then
6731
# Check whether --with-glib-prefix was given.
6732
if test "${with_glib_prefix+set}" = set; then
6733
withval=$with_glib_prefix; glib_config_prefix="$withval"
6735
glib_config_prefix=""
6739
# Check whether --with-glib-exec-prefix was given.
6740
if test "${with_glib_exec_prefix+set}" = set; then
6741
withval=$with_glib_exec_prefix; glib_config_exec_prefix="$withval"
6743
glib_config_exec_prefix=""
6746
# Check whether --enable-glibtest was given.
6747
if test "${enable_glibtest+set}" = set; then
6748
enableval=$enable_glibtest;
6754
if test x$glib_config_exec_prefix != x ; then
6755
glib_config_args="$glib_config_args --exec-prefix=$glib_config_exec_prefix"
6756
if test x${GLIB_CONFIG+set} != xset ; then
6757
GLIB_CONFIG=$glib_config_exec_prefix/bin/glib-config
6760
if test x$glib_config_prefix != x ; then
6761
glib_config_args="$glib_config_args --prefix=$glib_config_prefix"
6762
if test x${GLIB_CONFIG+set} != xset ; then
6763
GLIB_CONFIG=$glib_config_prefix/bin/glib-config
6771
glib_config_args="$glib_config_args gmodule"
6774
glib_config_args="$glib_config_args gthread"
6779
# Extract the first word of "glib-config", so it can be a program name with args.
6780
set dummy glib-config; ac_word=$2
6781
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6782
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6783
if test "${ac_cv_path_GLIB_CONFIG+set}" = set; then
6784
echo $ECHO_N "(cached) $ECHO_C" >&6
6786
case $GLIB_CONFIG in
6788
ac_cv_path_GLIB_CONFIG="$GLIB_CONFIG" # Let the user override the test with a path.
6791
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6795
test -z "$as_dir" && as_dir=.
6796
for ac_exec_ext in '' $ac_executable_extensions; do
6797
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6798
ac_cv_path_GLIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6799
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6806
test -z "$ac_cv_path_GLIB_CONFIG" && ac_cv_path_GLIB_CONFIG="no"
6810
GLIB_CONFIG=$ac_cv_path_GLIB_CONFIG
6811
if test -n "$GLIB_CONFIG"; then
6812
{ echo "$as_me:$LINENO: result: $GLIB_CONFIG" >&5
6813
echo "${ECHO_T}$GLIB_CONFIG" >&6; }
6815
{ echo "$as_me:$LINENO: result: no" >&5
6816
echo "${ECHO_T}no" >&6; }
6820
min_glib_version=1.2.0
6821
{ echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5
6822
echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6; }
6824
if test "$GLIB_CONFIG" = "no" ; then
6827
GLIB_CFLAGS=`$GLIB_CONFIG $glib_config_args --cflags`
6828
GLIB_LIBS=`$GLIB_CONFIG $glib_config_args --libs`
6829
glib_config_major_version=`$GLIB_CONFIG $glib_config_args --version | \
6830
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
6831
glib_config_minor_version=`$GLIB_CONFIG $glib_config_args --version | \
6832
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
6833
glib_config_micro_version=`$GLIB_CONFIG $glib_config_args --version | \
6834
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
6835
if test "x$enable_glibtest" = "xyes" ; then
6836
ac_save_CFLAGS="$CFLAGS"
6837
ac_save_LIBS="$LIBS"
6838
CFLAGS="$CFLAGS $GLIB_CFLAGS"
6839
LIBS="$GLIB_LIBS $LIBS"
6841
if test "$cross_compiling" = yes; then
6842
echo $ac_n "cross compiling; assumed OK... $ac_c"
6844
cat >conftest.$ac_ext <<_ACEOF
6847
cat confdefs.h >>conftest.$ac_ext
6848
cat >>conftest.$ac_ext <<_ACEOF
6849
/* end confdefs.h. */
6858
int major, minor, micro;
6861
system ("touch conf.glibtest");
6863
/* HP/UX 9 (%@#!) writes to sscanf strings */
6864
tmp_version = g_strdup("$min_glib_version");
6865
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
6866
printf("%s, bad version string\n", "$min_glib_version");
6870
if ((glib_major_version != $glib_config_major_version) ||
6871
(glib_minor_version != $glib_config_minor_version) ||
6872
(glib_micro_version != $glib_config_micro_version))
6874
printf("\n*** 'glib-config --version' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
6875
$glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
6876
glib_major_version, glib_minor_version, glib_micro_version);
6877
printf ("*** was found! If glib-config was correct, then it is best\n");
6878
printf ("*** to remove the old version of GLIB. You may also be able to fix the error\n");
6879
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
6880
printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
6881
printf("*** required on your system.\n");
6882
printf("*** If glib-config was wrong, set the environment variable GLIB_CONFIG\n");
6883
printf("*** to point to the correct copy of glib-config, and remove the file config.cache\n");
6884
printf("*** before re-running configure\n");
6886
else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
6887
(glib_minor_version != GLIB_MINOR_VERSION) ||
6888
(glib_micro_version != GLIB_MICRO_VERSION))
6890
printf("*** GLIB header files (version %d.%d.%d) do not match\n",
6891
GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
6892
printf("*** library (version %d.%d.%d)\n",
6893
glib_major_version, glib_minor_version, glib_micro_version);
6897
if ((glib_major_version > major) ||
6898
((glib_major_version == major) && (glib_minor_version > minor)) ||
6899
((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
6905
printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n",
6906
glib_major_version, glib_minor_version, glib_micro_version);
6907
printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n",
6908
major, minor, micro);
6909
printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
6911
printf("*** If you have already installed a sufficiently new version, this error\n");
6912
printf("*** probably means that the wrong copy of the glib-config shell script is\n");
6913
printf("*** being found. The easiest way to fix this is to remove the old version\n");
6914
printf("*** of GLIB, but you can also set the GLIB_CONFIG environment to point to the\n");
6915
printf("*** correct copy of glib-config. (In this case, you will have to\n");
6916
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
6917
printf("*** so that the correct libraries are found at run-time))\n");
6924
rm -f conftest$ac_exeext
6925
if { (ac_try="$ac_link"
6927
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6928
*) ac_try_echo=$ac_try;;
6930
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6931
(eval "$ac_link") 2>&5
6933
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6935
{ (case "(($ac_try" in
6936
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6937
*) ac_try_echo=$ac_try;;
6939
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6940
(eval "$ac_try") 2>&5
6942
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943
(exit $ac_status); }; }; then
6946
echo "$as_me: program exited with status $ac_status" >&5
6947
echo "$as_me: failed program was:" >&5
6948
sed 's/^/| /' conftest.$ac_ext >&5
6953
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6957
CFLAGS="$ac_save_CFLAGS"
6958
LIBS="$ac_save_LIBS"
6961
if test "x$no_glib" = x ; then
6962
{ echo "$as_me:$LINENO: result: yes" >&5
6963
echo "${ECHO_T}yes" >&6; }
6966
{ echo "$as_me:$LINENO: result: no" >&5
6967
echo "${ECHO_T}no" >&6; }
6968
if test "$GLIB_CONFIG" = "no" ; then
6969
echo "*** The glib-config script installed by GLIB could not be found"
6970
echo "*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in"
6971
echo "*** your path, or set the GLIB_CONFIG environment variable to the"
6972
echo "*** full path to glib-config."
6974
if test -f conf.glibtest ; then
6977
echo "*** Could not run GLIB test program, checking why..."
6978
CFLAGS="$CFLAGS $GLIB_CFLAGS"
6979
LIBS="$LIBS $GLIB_LIBS"
6980
cat >conftest.$ac_ext <<_ACEOF
6983
cat confdefs.h >>conftest.$ac_ext
6984
cat >>conftest.$ac_ext <<_ACEOF
6985
/* end confdefs.h. */
6993
return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
6998
rm -f conftest.$ac_objext conftest$ac_exeext
6999
if { (ac_try="$ac_link"
7001
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7002
*) ac_try_echo=$ac_try;;
7004
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7005
(eval "$ac_link") 2>conftest.er1
7007
grep -v '^ *+' conftest.er1 >conftest.err
7009
cat conftest.err >&5
7010
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7011
(exit $ac_status); } && {
7012
test -z "$ac_c_werror_flag" ||
7013
test ! -s conftest.err
7014
} && test -s conftest$ac_exeext &&
7015
$as_test_x conftest$ac_exeext; then
7016
echo "*** The test program compiled, but did not run. This usually means"
7017
echo "*** that the run-time linker is not finding GLIB or finding the wrong"
7018
echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
7019
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7020
echo "*** to the installed location Also, make sure you have run ldconfig if that"
7021
echo "*** is required on your system"
7023
echo "*** If you have an old version installed, it is best to remove it, although"
7024
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7026
echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
7027
echo "*** came with the system with the command"
7029
echo "*** rpm --erase --nodeps gtk gtk-devel"
7031
echo "$as_me: failed program was:" >&5
7032
sed 's/^/| /' conftest.$ac_ext >&5
7034
echo "*** The test program failed to compile or link. See the file config.log for the"
7035
echo "*** exact error that occured. This usually means GLIB was incorrectly installed"
7036
echo "*** or that you have moved GLIB since it was installed. In the latter case, you"
7037
echo "*** may want to edit the glib-config script: $GLIB_CONFIG"
7040
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7041
conftest$ac_exeext conftest.$ac_ext
7042
CFLAGS="$ac_save_CFLAGS"
7043
LIBS="$ac_save_LIBS"
7048
if test "$pinentry_gtk" = "yes"; then
7049
{ { echo "$as_me:$LINENO: error:
7051
*** GLIB 1.2.0 or newer is required. The latest version of GLIB
7052
*** is always available from ftp://ftp.gtk.org/.
7054
echo "$as_me: error:
7056
*** GLIB 1.2.0 or newer is required. The latest version of GLIB
7057
*** is always available from ftp://ftp.gtk.org/.
7059
{ (exit 1); exit 1; }; }
7070
if test "$pinentry_gtk" != "no"; then
7072
# Check whether --with-gtk-prefix was given.
7073
if test "${with_gtk_prefix+set}" = set; then
7074
withval=$with_gtk_prefix; gtk_config_prefix="$withval"
7076
gtk_config_prefix=""
7080
# Check whether --with-gtk-exec-prefix was given.
7081
if test "${with_gtk_exec_prefix+set}" = set; then
7082
withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
7084
gtk_config_exec_prefix=""
7087
# Check whether --enable-gtktest was given.
7088
if test "${enable_gtktest+set}" = set; then
7089
enableval=$enable_gtktest;
7099
gtk_config_args="$gtk_config_args gthread"
7104
if test x$gtk_config_exec_prefix != x ; then
7105
gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
7106
if test x${GTK_CONFIG+set} != xset ; then
7107
GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
7110
if test x$gtk_config_prefix != x ; then
7111
gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
7112
if test x${GTK_CONFIG+set} != xset ; then
7113
GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
7117
# Extract the first word of "gtk-config", so it can be a program name with args.
7118
set dummy gtk-config; ac_word=$2
7119
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
7120
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7121
if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
7122
echo $ECHO_N "(cached) $ECHO_C" >&6
7126
ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
7129
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7133
test -z "$as_dir" && as_dir=.
7134
for ac_exec_ext in '' $ac_executable_extensions; do
7135
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7136
ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7137
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7144
test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
7148
GTK_CONFIG=$ac_cv_path_GTK_CONFIG
7149
if test -n "$GTK_CONFIG"; then
7150
{ echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
7151
echo "${ECHO_T}$GTK_CONFIG" >&6; }
7153
{ echo "$as_me:$LINENO: result: no" >&5
7154
echo "${ECHO_T}no" >&6; }
7158
min_gtk_version=1.2.0
7159
{ echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
7160
echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
7162
if test "$GTK_CONFIG" = "no" ; then
7165
GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
7166
GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
7167
gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
7168
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7169
gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
7170
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7171
gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
7172
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7173
if test "x$enable_gtktest" = "xyes" ; then
7174
ac_save_CFLAGS="$CFLAGS"
7175
ac_save_LIBS="$LIBS"
7176
CFLAGS="$CFLAGS $GTK_CFLAGS"
7177
LIBS="$GTK_LIBS $LIBS"
7179
if test "$cross_compiling" = yes; then
7180
echo $ac_n "cross compiling; assumed OK... $ac_c"
7182
cat >conftest.$ac_ext <<_ACEOF
7185
cat confdefs.h >>conftest.$ac_ext
7186
cat >>conftest.$ac_ext <<_ACEOF
7187
/* end confdefs.h. */
7189
#include <gtk/gtk.h>
7196
int major, minor, micro;
7199
system ("touch conf.gtktest");
7201
/* HP/UX 9 (%@#!) writes to sscanf strings */
7202
tmp_version = g_strdup("$min_gtk_version");
7203
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
7204
printf("%s, bad version string\n", "$min_gtk_version");
7208
if ((gtk_major_version != $gtk_config_major_version) ||
7209
(gtk_minor_version != $gtk_config_minor_version) ||
7210
(gtk_micro_version != $gtk_config_micro_version))
7212
printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
7213
$gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
7214
gtk_major_version, gtk_minor_version, gtk_micro_version);
7215
printf ("*** was found! If gtk-config was correct, then it is best\n");
7216
printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
7217
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
7218
printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
7219
printf("*** required on your system.\n");
7220
printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
7221
printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
7222
printf("*** before re-running configure\n");
7224
#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
7225
else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
7226
(gtk_minor_version != GTK_MINOR_VERSION) ||
7227
(gtk_micro_version != GTK_MICRO_VERSION))
7229
printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
7230
GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
7231
printf("*** library (version %d.%d.%d)\n",
7232
gtk_major_version, gtk_minor_version, gtk_micro_version);
7234
#endif /* defined (GTK_MAJOR_VERSION) ... */
7237
if ((gtk_major_version > major) ||
7238
((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7239
((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
7245
printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
7246
gtk_major_version, gtk_minor_version, gtk_micro_version);
7247
printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
7248
major, minor, micro);
7249
printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
7251
printf("*** If you have already installed a sufficiently new version, this error\n");
7252
printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
7253
printf("*** being found. The easiest way to fix this is to remove the old version\n");
7254
printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
7255
printf("*** correct copy of gtk-config. (In this case, you will have to\n");
7256
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
7257
printf("*** so that the correct libraries are found at run-time))\n");
7264
rm -f conftest$ac_exeext
7265
if { (ac_try="$ac_link"
7267
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7268
*) ac_try_echo=$ac_try;;
7270
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7271
(eval "$ac_link") 2>&5
7273
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7275
{ (case "(($ac_try" in
7276
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7277
*) ac_try_echo=$ac_try;;
7279
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7280
(eval "$ac_try") 2>&5
7282
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7283
(exit $ac_status); }; }; then
7286
echo "$as_me: program exited with status $ac_status" >&5
7287
echo "$as_me: failed program was:" >&5
7288
sed 's/^/| /' conftest.$ac_ext >&5
7293
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7297
CFLAGS="$ac_save_CFLAGS"
7298
LIBS="$ac_save_LIBS"
7301
if test "x$no_gtk" = x ; then
7302
{ echo "$as_me:$LINENO: result: yes" >&5
7303
echo "${ECHO_T}yes" >&6; }
7305
cat >>confdefs.h <<\_ACEOF
7310
{ echo "$as_me:$LINENO: result: no" >&5
7311
echo "${ECHO_T}no" >&6; }
7312
if test "$GTK_CONFIG" = "no" ; then
7313
echo "*** The gtk-config script installed by GTK could not be found"
7314
echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
7315
echo "*** your path, or set the GTK_CONFIG environment variable to the"
7316
echo "*** full path to gtk-config."
7318
if test -f conf.gtktest ; then
7321
echo "*** Could not run GTK test program, checking why..."
7322
CFLAGS="$CFLAGS $GTK_CFLAGS"
7323
LIBS="$LIBS $GTK_LIBS"
7324
cat >conftest.$ac_ext <<_ACEOF
7327
cat confdefs.h >>conftest.$ac_ext
7328
cat >>conftest.$ac_ext <<_ACEOF
7329
/* end confdefs.h. */
7331
#include <gtk/gtk.h>
7337
return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
7342
rm -f conftest.$ac_objext conftest$ac_exeext
7343
if { (ac_try="$ac_link"
7345
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7346
*) ac_try_echo=$ac_try;;
7348
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7349
(eval "$ac_link") 2>conftest.er1
7351
grep -v '^ *+' conftest.er1 >conftest.err
7353
cat conftest.err >&5
7354
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355
(exit $ac_status); } && {
7356
test -z "$ac_c_werror_flag" ||
7357
test ! -s conftest.err
7358
} && test -s conftest$ac_exeext &&
7359
$as_test_x conftest$ac_exeext; then
7360
echo "*** The test program compiled, but did not run. This usually means"
7361
echo "*** that the run-time linker is not finding GTK or finding the wrong"
7362
echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
7363
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7364
echo "*** to the installed location Also, make sure you have run ldconfig if that"
7365
echo "*** is required on your system"
7367
echo "*** If you have an old version installed, it is best to remove it, although"
7368
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7370
echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
7371
echo "*** came with the system with the command"
7373
echo "*** rpm --erase --nodeps gtk gtk-devel"
7375
echo "$as_me: failed program was:" >&5
7376
sed 's/^/| /' conftest.$ac_ext >&5
7378
echo "*** The test program failed to compile or link. See the file config.log for the"
7379
echo "*** exact error that occured. This usually means GTK was incorrectly installed"
7380
echo "*** or that you have moved GTK since it was installed. In the latter case, you"
7381
echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
7384
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7385
conftest$ac_exeext conftest.$ac_ext
7386
CFLAGS="$ac_save_CFLAGS"
7387
LIBS="$ac_save_LIBS"
7392
if test "$pinentry_gtk" = "yes"; then
7393
{ { echo "$as_me:$LINENO: error:
7395
*** GTK+ 1.2.0 or newer is required. The latest version of GTK+
7396
*** is always available form ftp://ftp.gtk.org/.
7398
echo "$as_me: error:
7400
*** GTK+ 1.2.0 or newer is required. The latest version of GTK+
7401
*** is always available form ftp://ftp.gtk.org/.
7403
{ (exit 1); exit 1; }; }
7414
if test "$pinentry_gtk" != "no"; then
7417
if test "$pinentry_gtk" = "yes"; then
7418
BUILD_PINENTRY_GTK_TRUE=
7419
BUILD_PINENTRY_GTK_FALSE='#'
7421
BUILD_PINENTRY_GTK_TRUE='#'
7422
BUILD_PINENTRY_GTK_FALSE=
7425
if test "$pinentry_gtk" = "yes"; then
7427
cat >>confdefs.h <<\_ACEOF
7428
#define PINENTRY_GTK 1
7433
if test "$pinentry_curses" = "yes" \
7434
-o "$fallback_curses" = "yes" \
7435
-o "$pinentry_gtk" = "yes"; then
7437
if test "X$prefix" = "XNONE"; then
7438
acl_final_prefix="$ac_default_prefix"
7440
acl_final_prefix="$prefix"
7442
if test "X$exec_prefix" = "XNONE"; then
7443
acl_final_exec_prefix='${prefix}'
7445
acl_final_exec_prefix="$exec_prefix"
7447
acl_save_prefix="$prefix"
7448
prefix="$acl_final_prefix"
7449
eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7450
prefix="$acl_save_prefix"
7453
# Check whether --with-gnu-ld was given.
7454
if test "${with_gnu_ld+set}" = set; then
7455
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7460
# Prepare PATH_SEPARATOR.
7461
# The user is always right.
7462
if test "${PATH_SEPARATOR+set}" != set; then
7463
echo "#! /bin/sh" >conf$$.sh
7464
echo "exit 0" >>conf$$.sh
7466
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
7474
if test "$GCC" = yes; then
7475
# Check if gcc -print-prog-name=ld gives a path.
7476
{ echo "$as_me:$LINENO: checking for ld used by GCC" >&5
7477
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
7480
# gcc leaves a trailing carriage return which upsets mingw
7481
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7483
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7486
# Accept absolute paths.
7487
[\\/]* | [A-Za-z]:[\\/]*)
7488
re_direlt='/[^/][^/]*/\.\./'
7489
# Canonicalize the path of ld
7490
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
7491
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
7492
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7494
test -z "$LD" && LD="$ac_prog"
7497
# If it fails, then pretend we aren't using GCC.
7501
# If it is relative, then search for the first ld in PATH.
7505
elif test "$with_gnu_ld" = yes; then
7506
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
7507
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
7509
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
7510
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
7512
if test "${acl_cv_path_LD+set}" = set; then
7513
echo $ECHO_N "(cached) $ECHO_C" >&6
7515
if test -z "$LD"; then
7516
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
7517
for ac_dir in $PATH; do
7518
test -z "$ac_dir" && ac_dir=.
7519
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7520
acl_cv_path_LD="$ac_dir/$ac_prog"
7521
# Check to see if the program is GNU ld. I'd rather use --version,
7522
# but apparently some GNU ld's only accept -v.
7523
# Break only if it was the GNU/non-GNU ld that we prefer.
7524
case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
7525
*GNU* | *'with BFD'*)
7526
test "$with_gnu_ld" != no && break ;;
7528
test "$with_gnu_ld" != yes && break ;;
7534
acl_cv_path_LD="$LD" # Let the user override the test with a path.
7538
LD="$acl_cv_path_LD"
7539
if test -n "$LD"; then
7540
{ echo "$as_me:$LINENO: result: $LD" >&5
7541
echo "${ECHO_T}$LD" >&6; }
7543
{ echo "$as_me:$LINENO: result: no" >&5
7544
echo "${ECHO_T}no" >&6; }
7546
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
7547
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
7548
{ (exit 1); exit 1; }; }
7549
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
7550
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
7551
if test "${acl_cv_prog_gnu_ld+set}" = set; then
7552
echo $ECHO_N "(cached) $ECHO_C" >&6
7554
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
7555
case `$LD -v 2>&1 </dev/null` in
7556
*GNU* | *'with BFD'*)
7557
acl_cv_prog_gnu_ld=yes ;;
7559
acl_cv_prog_gnu_ld=no ;;
7562
{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
7563
echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
7564
with_gnu_ld=$acl_cv_prog_gnu_ld
7569
{ echo "$as_me:$LINENO: checking for shared library run path origin" >&5
7570
echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
7571
if test "${acl_cv_rpath+set}" = set; then
7572
echo $ECHO_N "(cached) $ECHO_C" >&6
7575
CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7576
${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7582
{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
7583
echo "${ECHO_T}$acl_cv_rpath" >&6; }
7585
acl_libext="$acl_cv_libext"
7586
acl_shlibext="$acl_cv_shlibext"
7587
acl_libname_spec="$acl_cv_libname_spec"
7588
acl_library_names_spec="$acl_cv_library_names_spec"
7589
acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7590
acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7591
acl_hardcode_direct="$acl_cv_hardcode_direct"
7592
acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7593
# Check whether --enable-rpath was given.
7594
if test "${enable_rpath+set}" = set; then
7595
enableval=$enable_rpath; :
7603
searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7604
if test -n "$searchpath"; then
7605
acl_save_IFS="${IFS= }"; IFS=":"
7606
for searchdir in $searchpath; do
7607
if test -d "$searchdir"; then
7608
case "$searchdir" in
7609
*/lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7610
*) searchdir=`cd "$searchdir" && pwd`
7611
case "$searchdir" in
7612
*/lib64 ) acl_libdirstem=lib64 ;;
7630
acl_save_prefix="$prefix"
7631
prefix="$acl_final_prefix"
7632
acl_save_exec_prefix="$exec_prefix"
7633
exec_prefix="$acl_final_exec_prefix"
7635
eval additional_includedir=\"$includedir\"
7636
eval additional_libdir=\"$libdir\"
7638
exec_prefix="$acl_save_exec_prefix"
7639
prefix="$acl_save_prefix"
7642
# Check whether --with-libiconv-prefix was given.
7643
if test "${with_libiconv_prefix+set}" = set; then
7644
withval=$with_libiconv_prefix;
7645
if test "X$withval" = "Xno"; then
7648
if test "X$withval" = "X"; then
7650
acl_save_prefix="$prefix"
7651
prefix="$acl_final_prefix"
7652
acl_save_exec_prefix="$exec_prefix"
7653
exec_prefix="$acl_final_exec_prefix"
7655
eval additional_includedir=\"$includedir\"
7656
eval additional_libdir=\"$libdir\"
7658
exec_prefix="$acl_save_exec_prefix"
7659
prefix="$acl_save_prefix"
7662
additional_includedir="$withval/include"
7663
additional_libdir="$withval/$acl_libdirstem"
7675
names_already_handled=
7676
names_next_round='iconv '
7677
while test -n "$names_next_round"; do
7678
names_this_round="$names_next_round"
7680
for name in $names_this_round; do
7682
for n in $names_already_handled; do
7683
if test "$n" = "$name"; then
7688
if test -z "$already_handled"; then
7689
names_already_handled="$names_already_handled $name"
7690
uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
7691
eval value=\"\$HAVE_LIB$uppername\"
7692
if test -n "$value"; then
7693
if test "$value" = yes; then
7694
eval value=\"\$LIB$uppername\"
7695
test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
7696
eval value=\"\$LTLIB$uppername\"
7697
test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
7706
eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
7707
if test -n "$acl_shlibext"; then
7708
shrext=".$acl_shlibext" # typically: shrext=.so
7712
if test $use_additional = yes; then
7713
dir="$additional_libdir"
7714
if test -n "$acl_shlibext"; then
7715
if test -f "$dir/$libname$shrext"; then
7717
found_so="$dir/$libname$shrext"
7719
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7720
ver=`(cd "$dir" && \
7721
for f in "$libname$shrext".*; do echo "$f"; done \
7722
| sed -e "s,^$libname$shrext\\\\.,," \
7723
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7724
| sed 1q ) 2>/dev/null`
7725
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7727
found_so="$dir/$libname$shrext.$ver"
7730
eval library_names=\"$acl_library_names_spec\"
7731
for f in $library_names; do
7732
if test -f "$dir/$f"; then
7741
if test "X$found_dir" = "X"; then
7742
if test -f "$dir/$libname.$acl_libext"; then
7744
found_a="$dir/$libname.$acl_libext"
7747
if test "X$found_dir" != "X"; then
7748
if test -f "$dir/$libname.la"; then
7749
found_la="$dir/$libname.la"
7753
if test "X$found_dir" = "X"; then
7754
for x in $LDFLAGS $LTLIBICONV; do
7756
acl_save_prefix="$prefix"
7757
prefix="$acl_final_prefix"
7758
acl_save_exec_prefix="$exec_prefix"
7759
exec_prefix="$acl_final_exec_prefix"
7761
exec_prefix="$acl_save_exec_prefix"
7762
prefix="$acl_save_prefix"
7766
dir=`echo "X$x" | sed -e 's/^X-L//'`
7767
if test -n "$acl_shlibext"; then
7768
if test -f "$dir/$libname$shrext"; then
7770
found_so="$dir/$libname$shrext"
7772
if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
7773
ver=`(cd "$dir" && \
7774
for f in "$libname$shrext".*; do echo "$f"; done \
7775
| sed -e "s,^$libname$shrext\\\\.,," \
7776
| sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
7777
| sed 1q ) 2>/dev/null`
7778
if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
7780
found_so="$dir/$libname$shrext.$ver"
7783
eval library_names=\"$acl_library_names_spec\"
7784
for f in $library_names; do
7785
if test -f "$dir/$f"; then
7794
if test "X$found_dir" = "X"; then
7795
if test -f "$dir/$libname.$acl_libext"; then
7797
found_a="$dir/$libname.$acl_libext"
7800
if test "X$found_dir" != "X"; then
7801
if test -f "$dir/$libname.la"; then
7802
found_la="$dir/$libname.la"
7807
if test "X$found_dir" != "X"; then
7812
if test "X$found_dir" != "X"; then
7813
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
7814
if test "X$found_so" != "X"; then
7815
if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
7816
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7819
for x in $ltrpathdirs; do
7820
if test "X$x" = "X$found_dir"; then
7825
if test -z "$haveit"; then
7826
ltrpathdirs="$ltrpathdirs $found_dir"
7828
if test "$acl_hardcode_direct" = yes; then
7829
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7831
if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
7832
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7834
for x in $rpathdirs; do
7835
if test "X$x" = "X$found_dir"; then
7840
if test -z "$haveit"; then
7841
rpathdirs="$rpathdirs $found_dir"
7845
for x in $LDFLAGS $LIBICONV; do
7847
acl_save_prefix="$prefix"
7848
prefix="$acl_final_prefix"
7849
acl_save_exec_prefix="$exec_prefix"
7850
exec_prefix="$acl_final_exec_prefix"
7852
exec_prefix="$acl_save_exec_prefix"
7853
prefix="$acl_save_prefix"
7855
if test "X$x" = "X-L$found_dir"; then
7860
if test -z "$haveit"; then
7861
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
7863
if test "$acl_hardcode_minus_L" != no; then
7864
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
7866
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
7872
if test "X$found_a" != "X"; then
7873
LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
7875
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
7878
additional_includedir=
7879
case "$found_dir" in
7880
*/$acl_libdirstem | */$acl_libdirstem/)
7881
basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
7882
LIBICONV_PREFIX="$basedir"
7883
additional_includedir="$basedir/include"
7886
if test "X$additional_includedir" != "X"; then
7887
if test "X$additional_includedir" != "X/usr/include"; then
7889
if test "X$additional_includedir" = "X/usr/local/include"; then
7890
if test -n "$GCC"; then
7892
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7896
if test -z "$haveit"; then
7897
for x in $CPPFLAGS $INCICONV; do
7899
acl_save_prefix="$prefix"
7900
prefix="$acl_final_prefix"
7901
acl_save_exec_prefix="$exec_prefix"
7902
exec_prefix="$acl_final_exec_prefix"
7904
exec_prefix="$acl_save_exec_prefix"
7905
prefix="$acl_save_prefix"
7907
if test "X$x" = "X-I$additional_includedir"; then
7912
if test -z "$haveit"; then
7913
if test -d "$additional_includedir"; then
7914
INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
7920
if test -n "$found_la"; then
7921
save_libdir="$libdir"
7923
*/* | *\\*) . "$found_la" ;;
7924
*) . "./$found_la" ;;
7926
libdir="$save_libdir"
7927
for dep in $dependency_libs; do
7930
additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
7931
if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
7933
if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
7934
if test -n "$GCC"; then
7936
linux* | gnu* | k*bsd*-gnu) haveit=yes;;
7940
if test -z "$haveit"; then
7942
for x in $LDFLAGS $LIBICONV; do
7944
acl_save_prefix="$prefix"
7945
prefix="$acl_final_prefix"
7946
acl_save_exec_prefix="$exec_prefix"
7947
exec_prefix="$acl_final_exec_prefix"
7949
exec_prefix="$acl_save_exec_prefix"
7950
prefix="$acl_save_prefix"
7952
if test "X$x" = "X-L$additional_libdir"; then
7957
if test -z "$haveit"; then
7958
if test -d "$additional_libdir"; then
7959
LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
7963
for x in $LDFLAGS $LTLIBICONV; do
7965
acl_save_prefix="$prefix"
7966
prefix="$acl_final_prefix"
7967
acl_save_exec_prefix="$exec_prefix"
7968
exec_prefix="$acl_final_exec_prefix"
7970
exec_prefix="$acl_save_exec_prefix"
7971
prefix="$acl_save_prefix"
7973
if test "X$x" = "X-L$additional_libdir"; then
7978
if test -z "$haveit"; then
7979
if test -d "$additional_libdir"; then
7980
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
7987
dir=`echo "X$dep" | sed -e 's/^X-R//'`
7988
if test "$enable_rpath" != no; then
7990
for x in $rpathdirs; do
7991
if test "X$x" = "X$dir"; then
7996
if test -z "$haveit"; then
7997
rpathdirs="$rpathdirs $dir"
8000
for x in $ltrpathdirs; do
8001
if test "X$x" = "X$dir"; then
8006
if test -z "$haveit"; then
8007
ltrpathdirs="$ltrpathdirs $dir"
8012
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8015
names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8018
LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8019
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8025
LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8026
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8032
if test "X$rpathdirs" != "X"; then
8033
if test -n "$acl_hardcode_libdir_separator"; then
8035
for found_dir in $rpathdirs; do
8036
alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8038
acl_save_libdir="$libdir"
8040
eval flag=\"$acl_hardcode_libdir_flag_spec\"
8041
libdir="$acl_save_libdir"
8042
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8044
for found_dir in $rpathdirs; do
8045
acl_save_libdir="$libdir"
8047
eval flag=\"$acl_hardcode_libdir_flag_spec\"
8048
libdir="$acl_save_libdir"
8049
LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8053
if test "X$ltrpathdirs" != "X"; then
8054
for found_dir in $ltrpathdirs; do
8055
LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8065
am_save_CPPFLAGS="$CPPFLAGS"
8067
for element in $INCICONV; do
8069
for x in $CPPFLAGS; do
8071
acl_save_prefix="$prefix"
8072
prefix="$acl_final_prefix"
8073
acl_save_exec_prefix="$exec_prefix"
8074
exec_prefix="$acl_final_exec_prefix"
8076
exec_prefix="$acl_save_exec_prefix"
8077
prefix="$acl_save_prefix"
8079
if test "X$x" = "X$element"; then
8084
if test -z "$haveit"; then
8085
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8090
{ echo "$as_me:$LINENO: checking for iconv" >&5
8091
echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
8092
if test "${am_cv_func_iconv+set}" = set; then
8093
echo $ECHO_N "(cached) $ECHO_C" >&6
8096
am_cv_func_iconv="no, consider installing GNU libiconv"
8098
cat >conftest.$ac_ext <<_ACEOF
8101
cat confdefs.h >>conftest.$ac_ext
8102
cat >>conftest.$ac_ext <<_ACEOF
8103
/* end confdefs.h. */
8109
iconv_t cd = iconv_open("","");
8110
iconv(cd,NULL,NULL,NULL,NULL);
8116
rm -f conftest.$ac_objext conftest$ac_exeext
8117
if { (ac_try="$ac_link"
8119
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8120
*) ac_try_echo=$ac_try;;
8122
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8123
(eval "$ac_link") 2>conftest.er1
8125
grep -v '^ *+' conftest.er1 >conftest.err
8127
cat conftest.err >&5
8128
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129
(exit $ac_status); } && {
8130
test -z "$ac_c_werror_flag" ||
8131
test ! -s conftest.err
8132
} && test -s conftest$ac_exeext &&
8133
$as_test_x conftest$ac_exeext; then
8134
am_cv_func_iconv=yes
8136
echo "$as_me: failed program was:" >&5
8137
sed 's/^/| /' conftest.$ac_ext >&5
8142
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8143
conftest$ac_exeext conftest.$ac_ext
8144
if test "$am_cv_func_iconv" != yes; then
8145
am_save_LIBS="$LIBS"
8146
LIBS="$LIBS $LIBICONV"
8147
cat >conftest.$ac_ext <<_ACEOF
8150
cat confdefs.h >>conftest.$ac_ext
8151
cat >>conftest.$ac_ext <<_ACEOF
8152
/* end confdefs.h. */
8158
iconv_t cd = iconv_open("","");
8159
iconv(cd,NULL,NULL,NULL,NULL);
8165
rm -f conftest.$ac_objext conftest$ac_exeext
8166
if { (ac_try="$ac_link"
8168
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8169
*) ac_try_echo=$ac_try;;
8171
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8172
(eval "$ac_link") 2>conftest.er1
8174
grep -v '^ *+' conftest.er1 >conftest.err
8176
cat conftest.err >&5
8177
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178
(exit $ac_status); } && {
8179
test -z "$ac_c_werror_flag" ||
8180
test ! -s conftest.err
8181
} && test -s conftest$ac_exeext &&
8182
$as_test_x conftest$ac_exeext; then
8184
am_cv_func_iconv=yes
8186
echo "$as_me: failed program was:" >&5
8187
sed 's/^/| /' conftest.$ac_ext >&5
8192
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8193
conftest$ac_exeext conftest.$ac_ext
8194
LIBS="$am_save_LIBS"
8198
{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
8199
echo "${ECHO_T}$am_cv_func_iconv" >&6; }
8200
if test "$am_cv_func_iconv" = yes; then
8202
cat >>confdefs.h <<\_ACEOF
8203
#define HAVE_ICONV 1
8207
if test "$am_cv_lib_iconv" = yes; then
8208
{ echo "$as_me:$LINENO: checking how to link with libiconv" >&5
8209
echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
8210
{ echo "$as_me:$LINENO: result: $LIBICONV" >&5
8211
echo "${ECHO_T}$LIBICONV" >&6; }
8213
CPPFLAGS="$am_save_CPPFLAGS"
8220
if test "$am_cv_func_iconv" = yes; then
8221
{ echo "$as_me:$LINENO: checking for iconv declaration" >&5
8222
echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
8223
if test "${am_cv_proto_iconv+set}" = set; then
8224
echo $ECHO_N "(cached) $ECHO_C" >&6
8227
cat >conftest.$ac_ext <<_ACEOF
8230
cat confdefs.h >>conftest.$ac_ext
8231
cat >>conftest.$ac_ext <<_ACEOF
8232
/* end confdefs.h. */
8240
#if defined(__STDC__) || defined(__cplusplus)
8241
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
8254
rm -f conftest.$ac_objext
8255
if { (ac_try="$ac_compile"
8257
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8258
*) ac_try_echo=$ac_try;;
8260
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8261
(eval "$ac_compile") 2>conftest.er1
8263
grep -v '^ *+' conftest.er1 >conftest.err
8265
cat conftest.err >&5
8266
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267
(exit $ac_status); } && {
8268
test -z "$ac_c_werror_flag" ||
8269
test ! -s conftest.err
8270
} && test -s conftest.$ac_objext; then
8271
am_cv_proto_iconv_arg1=""
8273
echo "$as_me: failed program was:" >&5
8274
sed 's/^/| /' conftest.$ac_ext >&5
8276
am_cv_proto_iconv_arg1="const"
8279
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8280
am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
8283
am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
8284
{ echo "$as_me:$LINENO: result: ${ac_t:-
8285
}$am_cv_proto_iconv" >&5
8286
echo "${ECHO_T}${ac_t:-
8287
}$am_cv_proto_iconv" >&6; }
8289
cat >>confdefs.h <<_ACEOF
8290
#define ICONV_CONST $am_cv_proto_iconv_arg1
8295
if test "$am_cv_func_iconv" != "yes"; then
8296
{ { echo "$as_me:$LINENO: error:
8298
*** The iconv function is required. You can specify its location
8299
*** using the --with-libiconv-prefix=PREFIX option to configure.
8301
echo "$as_me: error:
8303
*** The iconv function is required. You can specify its location
8304
*** using the --with-libiconv-prefix=PREFIX option to configure.
8306
{ (exit 1); exit 1; }; }
8312
# Check whether --enable-pinentry-gtk2 was given.
8313
if test "${enable_pinentry_gtk2+set}" = set; then
8314
enableval=$enable_pinentry_gtk2; pinentry_gtk_2=$enableval
8316
pinentry_gtk_2=maybe
8320
if test "$pinentry_gtk_2" != "no"; then
8321
# Extract the first word of "pkg-config", so it can be a program name with args.
8322
set dummy pkg-config; ac_word=$2
8323
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8324
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8325
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8326
echo $ECHO_N "(cached) $ECHO_C" >&6
8330
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8333
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8337
test -z "$as_dir" && as_dir=.
8338
for ac_exec_ext in '' $ac_executable_extensions; do
8339
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8340
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8341
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8348
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8352
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8353
if test -n "$PKG_CONFIG"; then
8354
{ echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8355
echo "${ECHO_T}$PKG_CONFIG" >&6; }
8357
{ echo "$as_me:$LINENO: result: no" >&5
8358
echo "${ECHO_T}no" >&6; }
8362
if test x"${PKG_CONFIG}" = xno ; then
8367
if test "$pinentry_gtk_2" != "no"; then
8368
{ echo "$as_me:$LINENO: checking for gtk+-2" >&5
8369
echo $ECHO_N "checking for gtk+-2... $ECHO_C" >&6; }
8370
"${PKG_CONFIG}" --exists gtk+-2.0
8371
if test $? -ne 0 ; then
8372
{ echo "$as_me:$LINENO: result: no" >&5
8373
echo "${ECHO_T}no" >&6; }
8374
{ echo "$as_me:$LINENO: WARNING: pkg-config could not find the module gtk+-2.0" >&5
8375
echo "$as_me: WARNING: pkg-config could not find the module gtk+-2.0" >&2;}
8378
{ echo "$as_me:$LINENO: result: yes" >&5
8379
echo "${ECHO_T}yes" >&6; }
8380
{ echo "$as_me:$LINENO: checking gtk+-2 version >= 2.4.0" >&5
8381
echo $ECHO_N "checking gtk+-2 version >= 2.4.0... $ECHO_C" >&6; }
8382
modvers=`"${PKG_CONFIG}" --modversion gtk+-2.0`
8383
{ echo "$as_me:$LINENO: result: $modvers" >&5
8384
echo "${ECHO_T}$modvers" >&6; }
8385
"${PKG_CONFIG}" --atleast-version=2.4.0 gtk+-2.0
8386
if test $? -ne 0 ; then
8387
{ echo "$as_me:$LINENO: WARNING: building GTK+-2 pinentry disabled" >&5
8388
echo "$as_me: WARNING: building GTK+-2 pinentry disabled" >&2;}
8391
GTK2CFLAGS=`"${PKG_CONFIG}" --cflags gtk+-2.0`
8392
GTK2LIBS=`"${PKG_CONFIG}" --libs gtk+-2.0`
8399
if test "$pinentry_gtk_2" = "yes"; then
8400
BUILD_PINENTRY_GTK_2_TRUE=
8401
BUILD_PINENTRY_GTK_2_FALSE='#'
8403
BUILD_PINENTRY_GTK_2_TRUE='#'
8404
BUILD_PINENTRY_GTK_2_FALSE=
8409
# Check whether --enable-pinentry-qt was given.
8410
if test "${enable_pinentry_qt+set}" = set; then
8411
enableval=$enable_pinentry_qt; pinentry_qt=$enableval
8416
if test "$pinentry_qt" != "no"; then
8420
ac_cpp='$CXXCPP $CPPFLAGS'
8421
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8422
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8423
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8424
if test -z "$CXX"; then
8425
if test -n "$CCC"; then
8428
if test -n "$ac_tool_prefix"; then
8429
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8431
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8432
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8433
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8434
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8435
if test "${ac_cv_prog_CXX+set}" = set; then
8436
echo $ECHO_N "(cached) $ECHO_C" >&6
8438
if test -n "$CXX"; then
8439
ac_cv_prog_CXX="$CXX" # Let the user override the test.
8441
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8445
test -z "$as_dir" && as_dir=.
8446
for ac_exec_ext in '' $ac_executable_extensions; do
8447
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8448
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8449
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8459
if test -n "$CXX"; then
8460
{ echo "$as_me:$LINENO: result: $CXX" >&5
8461
echo "${ECHO_T}$CXX" >&6; }
8463
{ echo "$as_me:$LINENO: result: no" >&5
8464
echo "${ECHO_T}no" >&6; }
8468
test -n "$CXX" && break
8471
if test -z "$CXX"; then
8473
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8475
# Extract the first word of "$ac_prog", so it can be a program name with args.
8476
set dummy $ac_prog; ac_word=$2
8477
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
8478
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8479
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8480
echo $ECHO_N "(cached) $ECHO_C" >&6
8482
if test -n "$ac_ct_CXX"; then
8483
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8485
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8489
test -z "$as_dir" && as_dir=.
8490
for ac_exec_ext in '' $ac_executable_extensions; do
8491
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8492
ac_cv_prog_ac_ct_CXX="$ac_prog"
8493
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8502
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8503
if test -n "$ac_ct_CXX"; then
8504
{ echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8505
echo "${ECHO_T}$ac_ct_CXX" >&6; }
8507
{ echo "$as_me:$LINENO: result: no" >&5
8508
echo "${ECHO_T}no" >&6; }
8512
test -n "$ac_ct_CXX" && break
8515
if test "x$ac_ct_CXX" = x; then
8518
case $cross_compiling:$ac_tool_warned in
8520
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8521
whose name does not start with the host triplet. If you think this
8522
configuration is useful to you, please write to autoconf@gnu.org." >&5
8523
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8524
whose name does not start with the host triplet. If you think this
8525
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8526
ac_tool_warned=yes ;;
8534
# Provide some information about the compiler.
8535
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
8536
ac_compiler=`set X $ac_compile; echo $2`
8537
{ (ac_try="$ac_compiler --version >&5"
8539
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8540
*) ac_try_echo=$ac_try;;
8542
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8543
(eval "$ac_compiler --version >&5") 2>&5
8545
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546
(exit $ac_status); }
8547
{ (ac_try="$ac_compiler -v >&5"
8549
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8550
*) ac_try_echo=$ac_try;;
8552
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8553
(eval "$ac_compiler -v >&5") 2>&5
8555
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556
(exit $ac_status); }
8557
{ (ac_try="$ac_compiler -V >&5"
8559
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8560
*) ac_try_echo=$ac_try;;
8562
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8563
(eval "$ac_compiler -V >&5") 2>&5
8565
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566
(exit $ac_status); }
8568
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8569
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
8570
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8571
echo $ECHO_N "(cached) $ECHO_C" >&6
8573
cat >conftest.$ac_ext <<_ACEOF
8576
cat confdefs.h >>conftest.$ac_ext
8577
cat >>conftest.$ac_ext <<_ACEOF
8578
/* end confdefs.h. */
8591
rm -f conftest.$ac_objext
8592
if { (ac_try="$ac_compile"
8594
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8595
*) ac_try_echo=$ac_try;;
8597
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8598
(eval "$ac_compile") 2>conftest.er1
8600
grep -v '^ *+' conftest.er1 >conftest.err
8602
cat conftest.err >&5
8603
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604
(exit $ac_status); } && {
8605
test -z "$ac_cxx_werror_flag" ||
8606
test ! -s conftest.err
8607
} && test -s conftest.$ac_objext; then
8610
echo "$as_me: failed program was:" >&5
8611
sed 's/^/| /' conftest.$ac_ext >&5
8616
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8617
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8620
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8621
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
8622
GXX=`test $ac_compiler_gnu = yes && echo yes`
8623
ac_test_CXXFLAGS=${CXXFLAGS+set}
8624
ac_save_CXXFLAGS=$CXXFLAGS
8625
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8626
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
8627
if test "${ac_cv_prog_cxx_g+set}" = set; then
8628
echo $ECHO_N "(cached) $ECHO_C" >&6
8630
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8631
ac_cxx_werror_flag=yes
8634
cat >conftest.$ac_ext <<_ACEOF
8637
cat confdefs.h >>conftest.$ac_ext
8638
cat >>conftest.$ac_ext <<_ACEOF
8639
/* end confdefs.h. */
8649
rm -f conftest.$ac_objext
8650
if { (ac_try="$ac_compile"
8652
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8653
*) ac_try_echo=$ac_try;;
8655
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8656
(eval "$ac_compile") 2>conftest.er1
8658
grep -v '^ *+' conftest.er1 >conftest.err
8660
cat conftest.err >&5
8661
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662
(exit $ac_status); } && {
8663
test -z "$ac_cxx_werror_flag" ||
8664
test ! -s conftest.err
8665
} && test -s conftest.$ac_objext; then
8666
ac_cv_prog_cxx_g=yes
8668
echo "$as_me: failed program was:" >&5
8669
sed 's/^/| /' conftest.$ac_ext >&5
8672
cat >conftest.$ac_ext <<_ACEOF
8675
cat confdefs.h >>conftest.$ac_ext
8676
cat >>conftest.$ac_ext <<_ACEOF
8677
/* end confdefs.h. */
8687
rm -f conftest.$ac_objext
8688
if { (ac_try="$ac_compile"
8690
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8691
*) ac_try_echo=$ac_try;;
8693
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8694
(eval "$ac_compile") 2>conftest.er1
8696
grep -v '^ *+' conftest.er1 >conftest.err
8698
cat conftest.err >&5
8699
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700
(exit $ac_status); } && {
8701
test -z "$ac_cxx_werror_flag" ||
8702
test ! -s conftest.err
8703
} && test -s conftest.$ac_objext; then
8706
echo "$as_me: failed program was:" >&5
8707
sed 's/^/| /' conftest.$ac_ext >&5
8709
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8711
cat >conftest.$ac_ext <<_ACEOF
8714
cat confdefs.h >>conftest.$ac_ext
8715
cat >>conftest.$ac_ext <<_ACEOF
8716
/* end confdefs.h. */
8726
rm -f conftest.$ac_objext
8727
if { (ac_try="$ac_compile"
8729
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8730
*) ac_try_echo=$ac_try;;
8732
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8733
(eval "$ac_compile") 2>conftest.er1
8735
grep -v '^ *+' conftest.er1 >conftest.err
8737
cat conftest.err >&5
8738
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739
(exit $ac_status); } && {
8740
test -z "$ac_cxx_werror_flag" ||
8741
test ! -s conftest.err
8742
} && test -s conftest.$ac_objext; then
8743
ac_cv_prog_cxx_g=yes
8745
echo "$as_me: failed program was:" >&5
8746
sed 's/^/| /' conftest.$ac_ext >&5
8751
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8754
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8757
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8758
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8760
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8761
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
8762
if test "$ac_test_CXXFLAGS" = set; then
8763
CXXFLAGS=$ac_save_CXXFLAGS
8764
elif test $ac_cv_prog_cxx_g = yes; then
8765
if test "$GXX" = yes; then
8771
if test "$GXX" = yes; then
8778
ac_cpp='$CPP $CPPFLAGS'
8779
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8780
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8781
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8783
depcc="$CXX" am_compiler_list=
8785
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
8786
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
8787
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
8788
echo $ECHO_N "(cached) $ECHO_C" >&6
8790
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
8791
# We make a subdir and do the tests there. Otherwise we can end up
8792
# making bogus files that we don't know about and never remove. For
8793
# instance it was reported that on HP-UX the gcc test will end up
8794
# making a dummy file named `D' -- because `-MD' means `put the output
8797
# Copy depcomp to subdir because otherwise we won't find it if we're
8798
# using a relative directory.
8799
cp "$am_depcomp" conftest.dir
8801
# We will build objects and dependencies in a subdirectory because
8802
# it helps to detect inapplicable dependency modes. For instance
8803
# both Tru64's cc and ICC support -MD to output dependencies as a
8804
# side effect of compilation, but ICC will put the dependencies in
8805
# the current directory while Tru64 will put them in the object
8809
am_cv_CXX_dependencies_compiler_type=none
8810
if test "$am_compiler_list" = ""; then
8811
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
8813
for depmode in $am_compiler_list; do
8814
# Setup a source with many dependencies, because some compilers
8815
# like to wrap large dependency lists on column 80 (with \), and
8816
# we should not choose a depcomp mode which is confused by this.
8818
# We need to recreate these files for each test, as the compiler may
8819
# overwrite some of them when testing with obscure command lines.
8820
# This happens at least with the AIX C compiler.
8822
for i in 1 2 3 4 5 6; do
8823
echo '#include "conftst'$i'.h"' >> sub/conftest.c
8824
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
8825
# Solaris 8's {/usr,}/bin/sh.
8826
touch sub/conftst$i.h
8828
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
8832
# after this tag, mechanisms are not by side-effect, so they'll
8833
# only be used when explicitly requested
8834
if test "x$enable_dependency_tracking" = xyes; then
8842
# We check with `-c' and `-o' for the sake of the "dashmstdout"
8843
# mode. It turns out that the SunPro C++ compiler does not properly
8844
# handle `-M -o', and we need to detect this.
8845
if depmode=$depmode \
8846
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
8847
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
8848
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
8849
>/dev/null 2>conftest.err &&
8850
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8851
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
8852
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
8853
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
8854
# icc doesn't choke on unknown options, it will just issue warnings
8855
# or remarks (even with -Werror). So we grep stderr for any message
8856
# that says an option was ignored or not supported.
8857
# When given -MP, icc 7.0 and 7.1 complain thusly:
8858
# icc: Command line warning: ignoring option '-M'; no argument required
8859
# The diagnosis changed in icc 8.0:
8860
# icc: Command line remark: option '-MP' not supported
8861
if (grep 'ignoring option' conftest.err ||
8862
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
8863
am_cv_CXX_dependencies_compiler_type=$depmode
8872
am_cv_CXX_dependencies_compiler_type=none
8876
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
8877
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
8878
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
8881
test "x$enable_dependency_tracking" != xno \
8882
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
8883
am__fastdepCXX_TRUE=
8884
am__fastdepCXX_FALSE='#'
8886
am__fastdepCXX_TRUE='#'
8887
am__fastdepCXX_FALSE=
8893
{ echo "$as_me:$LINENO: checking whether $CXX supports -fexceptions" >&5
8894
echo $ECHO_N "checking whether $CXX supports -fexceptions... $ECHO_C" >&6; }
8895
kde_cache=`echo fexceptions | sed 'y% .=/+-%____p_%'`
8896
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
8897
echo $ECHO_N "(cached) $ECHO_C" >&6
8901
ac_cpp='$CXXCPP $CPPFLAGS'
8902
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8903
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8904
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8906
save_CXXFLAGS="$CXXFLAGS"
8907
CXXFLAGS="$CXXFLAGS -fexceptions"
8908
cat >conftest.$ac_ext <<_ACEOF
8911
cat confdefs.h >>conftest.$ac_ext
8912
cat >>conftest.$ac_ext <<_ACEOF
8913
/* end confdefs.h. */
8923
rm -f conftest.$ac_objext conftest$ac_exeext
8924
if { (ac_try="$ac_link"
8926
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8927
*) ac_try_echo=$ac_try;;
8929
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8930
(eval "$ac_link") 2>conftest.er1
8932
grep -v '^ *+' conftest.er1 >conftest.err
8934
cat conftest.err >&5
8935
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936
(exit $ac_status); } && {
8937
test -z "$ac_cxx_werror_flag" ||
8938
test ! -s conftest.err
8939
} && test -s conftest$ac_exeext &&
8940
$as_test_x conftest$ac_exeext; then
8941
eval "kde_cv_prog_cxx_$kde_cache=yes"
8943
echo "$as_me: failed program was:" >&5
8944
sed 's/^/| /' conftest.$ac_ext >&5
8949
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8950
conftest$ac_exeext conftest.$ac_ext
8951
CXXFLAGS="$save_CXXFLAGS"
8953
ac_cpp='$CPP $CPPFLAGS'
8954
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8955
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8956
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8961
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
8962
{ echo "$as_me:$LINENO: result: yes" >&5
8963
echo "${ECHO_T}yes" >&6; }
8965
QT_CXXFLAGS="$QT_CXXFLAGS -fexceptions"
8967
{ echo "$as_me:$LINENO: result: no" >&5
8968
echo "${ECHO_T}no" >&6; }
8975
*-*-irix*) test "$GXX" = yes && QT_CXXFLAGS="-D_LANGUAGE_C_PLUS_PLUS -D__LANGUAGE_C_PLUS_PLUS $QT_CXXFLAGS" ;;
8976
*-*-sysv4.2uw*) QT_CXXFLAGS="-D_UNIXWARE $QT_CXXFLAGS";;
8977
*-*-sysv5uw7*) QT_CXXFLAGS="-D_UNIXWARE7 $QT_CXXFLAGS";;
8979
if test "$GXX" = yes; then
8980
libstdcpp=`$CXX -print-file-name=libstdc++.so`
8981
if test ! -f $libstdcpp; then
8982
{ { echo "$as_me:$LINENO: error: You've compiled gcc without --enable-shared. This doesn't work with the Qt pinentry. Please recompile gcc with --enable-shared to receive a libstdc++.so" >&5
8983
echo "$as_me: error: You've compiled gcc without --enable-shared. This doesn't work with the Qt pinentry. Please recompile gcc with --enable-shared to receive a libstdc++.so" >&2;}
8984
{ (exit 1); exit 1; }; }
8990
if test "x$qt_use_emb" != "xyes"; then
8992
__forbid=" -fno-rtti -rpath "
8993
if test -n "$__val"; then
8999
*" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5
9000
echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;;
9001
*) # Careful to not add spaces, where there were none, because otherwise
9002
# libtool gets confused, if we change e.g. CXX
9003
if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
9011
__forbid=" -fno-rtti -rpath "
9012
if test -n "$__val"; then
9018
*" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5
9019
echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;;
9020
*) # Careful to not add spaces, where there were none, because otherwise
9021
# libtool gets confused, if we change e.g. CXX
9022
if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
9032
if test -n "$__val"; then
9038
*" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXX, removing it" >&5
9039
echo "$as_me: WARNING: found forbidden $i in CXX, removing it" >&2;} ;;
9040
*) # Careful to not add spaces, where there were none, because otherwise
9041
# libtool gets confused, if we change e.g. CXX
9042
if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
9051
if test -n "$__val"; then
9057
*" $i "*) { echo "$as_me:$LINENO: WARNING: found forbidden $i in CXXFLAGS, removing it" >&5
9058
echo "$as_me: WARNING: found forbidden $i in CXXFLAGS, removing it" >&2;} ;;
9059
*) # Careful to not add spaces, where there were none, because otherwise
9060
# libtool gets confused, if we change e.g. CXX
9061
if test -z "$__new" ; then __new=$i ; else __new="$__new $i" ; fi ;;
9072
ac_cpp='$CXXCPP $CPPFLAGS'
9073
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9074
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9075
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9076
{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
9077
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
9078
if test -z "$CXXCPP"; then
9079
if test "${ac_cv_prog_CXXCPP+set}" = set; then
9080
echo $ECHO_N "(cached) $ECHO_C" >&6
9082
# Double quotes because CXXCPP needs to be expanded
9083
for CXXCPP in "$CXX -E" "/lib/cpp"
9086
for ac_cxx_preproc_warn_flag in '' yes
9088
# Use a header file that comes with gcc, so configuring glibc
9089
# with a fresh cross-compiler works.
9090
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9091
# <limits.h> exists even on freestanding compilers.
9092
# On the NeXT, cc -E runs the code through the compiler's parser,
9093
# not just through cpp. "Syntax error" is here to catch this case.
9094
cat >conftest.$ac_ext <<_ACEOF
9097
cat confdefs.h >>conftest.$ac_ext
9098
cat >>conftest.$ac_ext <<_ACEOF
9099
/* end confdefs.h. */
9101
# include <limits.h>
9103
# include <assert.h>
9107
if { (ac_try="$ac_cpp conftest.$ac_ext"
9109
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9110
*) ac_try_echo=$ac_try;;
9112
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9113
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9115
grep -v '^ *+' conftest.er1 >conftest.err
9117
cat conftest.err >&5
9118
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119
(exit $ac_status); } >/dev/null && {
9120
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9121
test ! -s conftest.err
9125
echo "$as_me: failed program was:" >&5
9126
sed 's/^/| /' conftest.$ac_ext >&5
9128
# Broken: fails on valid input.
9132
rm -f conftest.err conftest.$ac_ext
9134
# OK, works on sane cases. Now check whether nonexistent headers
9135
# can be detected and how.
9136
cat >conftest.$ac_ext <<_ACEOF
9139
cat confdefs.h >>conftest.$ac_ext
9140
cat >>conftest.$ac_ext <<_ACEOF
9141
/* end confdefs.h. */
9142
#include <ac_nonexistent.h>
9144
if { (ac_try="$ac_cpp conftest.$ac_ext"
9146
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9147
*) ac_try_echo=$ac_try;;
9149
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9150
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9152
grep -v '^ *+' conftest.er1 >conftest.err
9154
cat conftest.err >&5
9155
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156
(exit $ac_status); } >/dev/null && {
9157
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9158
test ! -s conftest.err
9160
# Broken: success on invalid input.
9163
echo "$as_me: failed program was:" >&5
9164
sed 's/^/| /' conftest.$ac_ext >&5
9166
# Passes both tests.
9171
rm -f conftest.err conftest.$ac_ext
9174
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9175
rm -f conftest.err conftest.$ac_ext
9176
if $ac_preproc_ok; then
9181
ac_cv_prog_CXXCPP=$CXXCPP
9184
CXXCPP=$ac_cv_prog_CXXCPP
9186
ac_cv_prog_CXXCPP=$CXXCPP
9188
{ echo "$as_me:$LINENO: result: $CXXCPP" >&5
9189
echo "${ECHO_T}$CXXCPP" >&6; }
9191
for ac_cxx_preproc_warn_flag in '' yes
9193
# Use a header file that comes with gcc, so configuring glibc
9194
# with a fresh cross-compiler works.
9195
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9196
# <limits.h> exists even on freestanding compilers.
9197
# On the NeXT, cc -E runs the code through the compiler's parser,
9198
# not just through cpp. "Syntax error" is here to catch this case.
9199
cat >conftest.$ac_ext <<_ACEOF
9202
cat confdefs.h >>conftest.$ac_ext
9203
cat >>conftest.$ac_ext <<_ACEOF
9204
/* end confdefs.h. */
9206
# include <limits.h>
9208
# include <assert.h>
9212
if { (ac_try="$ac_cpp conftest.$ac_ext"
9214
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9215
*) ac_try_echo=$ac_try;;
9217
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9218
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9220
grep -v '^ *+' conftest.er1 >conftest.err
9222
cat conftest.err >&5
9223
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224
(exit $ac_status); } >/dev/null && {
9225
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9226
test ! -s conftest.err
9230
echo "$as_me: failed program was:" >&5
9231
sed 's/^/| /' conftest.$ac_ext >&5
9233
# Broken: fails on valid input.
9237
rm -f conftest.err conftest.$ac_ext
9239
# OK, works on sane cases. Now check whether nonexistent headers
9240
# can be detected and how.
9241
cat >conftest.$ac_ext <<_ACEOF
9244
cat confdefs.h >>conftest.$ac_ext
9245
cat >>conftest.$ac_ext <<_ACEOF
9246
/* end confdefs.h. */
9247
#include <ac_nonexistent.h>
9249
if { (ac_try="$ac_cpp conftest.$ac_ext"
9251
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9252
*) ac_try_echo=$ac_try;;
9254
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9255
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9257
grep -v '^ *+' conftest.er1 >conftest.err
9259
cat conftest.err >&5
9260
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261
(exit $ac_status); } >/dev/null && {
9262
test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
9263
test ! -s conftest.err
9265
# Broken: success on invalid input.
9268
echo "$as_me: failed program was:" >&5
9269
sed 's/^/| /' conftest.$ac_ext >&5
9271
# Passes both tests.
9276
rm -f conftest.err conftest.$ac_ext
9279
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9280
rm -f conftest.err conftest.$ac_ext
9281
if $ac_preproc_ok; then
9284
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
9285
See \`config.log' for more details." >&5
9286
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
9287
See \`config.log' for more details." >&2;}
9288
{ (exit 1); exit 1; }; }
9292
ac_cpp='$CPP $CPPFLAGS'
9293
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9294
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9295
ac_compiler_gnu=$ac_cv_c_compiler_gnu
9299
# Check whether --enable-embedded was given.
9300
if test "${enable_embedded+set}" = set; then
9301
enableval=$enable_embedded; qt_use_emb=$enableval
9308
# Check whether --enable-palmtop was given.
9309
if test "${enable_palmtop+set}" = set; then
9310
enableval=$enable_palmtop; qt_use_emb_palm=$enableval
9317
if test "$qt_use_emb" = "no"; then
9318
{ echo "$as_me:$LINENO: checking for X" >&5
9319
echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9322
# Check whether --with-x was given.
9323
if test "${with_x+set}" = set; then
9327
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9328
if test "x$with_x" = xno; then
9329
# The user explicitly disabled X.
9332
case $x_includes,$x_libraries in #(
9333
*\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9334
echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9335
{ (exit 1); exit 1; }; };; #(
9336
*,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9337
echo $ECHO_N "(cached) $ECHO_C" >&6
9339
# One or both of the vars are not set, and there is no cached value.
9340
ac_x_includes=no ac_x_libraries=no
9341
rm -f -r conftest.dir
9342
if mkdir conftest.dir; then
9344
cat >Imakefile <<'_ACEOF'
9346
@echo incroot='${INCROOT}'
9348
@echo usrlibdir='${USRLIBDIR}'
9350
@echo libdir='${LIBDIR}'
9352
if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9353
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9354
for ac_var in incroot usrlibdir libdir; do
9355
eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9357
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9358
for ac_extension in a so sl; do
9359
if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9360
test -f "$ac_im_libdir/libX11.$ac_extension"; then
9361
ac_im_usrlibdir=$ac_im_libdir; break
9364
# Screen out bogus values from the imake configuration. They are
9365
# bogus both because they are the default anyway, and because
9366
# using them would break gcc on systems where it needs fixed includes.
9367
case $ac_im_incroot in
9368
/usr/include) ac_x_includes= ;;
9369
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9371
case $ac_im_usrlibdir in
9373
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9377
rm -f -r conftest.dir
9380
# Standard set of common directories for X headers.
9381
# Check X11 before X11Rn because it is often a symlink to the current release.
9393
/usr/local/X11/include
9394
/usr/local/X11R6/include
9395
/usr/local/X11R5/include
9396
/usr/local/X11R4/include
9398
/usr/local/include/X11
9399
/usr/local/include/X11R6
9400
/usr/local/include/X11R5
9401
/usr/local/include/X11R4
9405
/usr/XFree86/include/X11
9409
/usr/unsupported/include
9411
/usr/local/x11r5/include
9412
/usr/lpp/Xamples/include
9414
/usr/openwin/include
9415
/usr/openwin/share/include'
9417
if test "$ac_x_includes" = no; then
9418
# Guess where to find include files, by looking for Xlib.h.
9419
# First, try using that file with no special directory specified.
9420
cat >conftest.$ac_ext <<_ACEOF
9423
cat confdefs.h >>conftest.$ac_ext
9424
cat >>conftest.$ac_ext <<_ACEOF
9425
/* end confdefs.h. */
9426
#include <X11/Xlib.h>
9428
if { (ac_try="$ac_cpp conftest.$ac_ext"
9430
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9431
*) ac_try_echo=$ac_try;;
9433
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9434
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9436
grep -v '^ *+' conftest.er1 >conftest.err
9438
cat conftest.err >&5
9439
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9440
(exit $ac_status); } >/dev/null && {
9441
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9442
test ! -s conftest.err
9444
# We can compile using X headers with no special include directory.
9447
echo "$as_me: failed program was:" >&5
9448
sed 's/^/| /' conftest.$ac_ext >&5
9450
for ac_dir in $ac_x_header_dirs; do
9451
if test -r "$ac_dir/X11/Xlib.h"; then
9452
ac_x_includes=$ac_dir
9458
rm -f conftest.err conftest.$ac_ext
9459
fi # $ac_x_includes = no
9461
if test "$ac_x_libraries" = no; then
9462
# Check for the libraries.
9463
# See if we find them without any special options.
9464
# Don't add to $LIBS permanently.
9467
cat >conftest.$ac_ext <<_ACEOF
9470
cat confdefs.h >>conftest.$ac_ext
9471
cat >>conftest.$ac_ext <<_ACEOF
9472
/* end confdefs.h. */
9473
#include <X11/Xlib.h>
9482
rm -f conftest.$ac_objext conftest$ac_exeext
9483
if { (ac_try="$ac_link"
9485
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9486
*) ac_try_echo=$ac_try;;
9488
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9489
(eval "$ac_link") 2>conftest.er1
9491
grep -v '^ *+' conftest.er1 >conftest.err
9493
cat conftest.err >&5
9494
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495
(exit $ac_status); } && {
9496
test -z "$ac_c_werror_flag" ||
9497
test ! -s conftest.err
9498
} && test -s conftest$ac_exeext &&
9499
$as_test_x conftest$ac_exeext; then
9501
# We can link X programs with no special library path.
9504
echo "$as_me: failed program was:" >&5
9505
sed 's/^/| /' conftest.$ac_ext >&5
9508
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9510
# Don't even attempt the hair of trying to link an X program!
9511
for ac_extension in a so sl; do
9512
if test -r "$ac_dir/libX11.$ac_extension"; then
9513
ac_x_libraries=$ac_dir
9520
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9521
conftest$ac_exeext conftest.$ac_ext
9522
fi # $ac_x_libraries = no
9524
case $ac_x_includes,$ac_x_libraries in #(
9526
# Didn't find X, or a directory has "'" in its name.
9527
ac_cv_have_x="have_x=no";; #(
9529
# Record where we found X for the cache.
9530
ac_cv_have_x="have_x=yes\
9531
ac_x_includes='$ac_x_includes'\
9532
ac_x_libraries='$ac_x_libraries'"
9538
eval "$ac_cv_have_x"
9541
if test "$have_x" != yes; then
9542
{ echo "$as_me:$LINENO: result: $have_x" >&5
9543
echo "${ECHO_T}$have_x" >&6; }
9546
# If each of the values was on the command line, it overrides each guess.
9547
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9548
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9549
# Update the cache value to reflect the command line values.
9550
ac_cv_have_x="have_x=yes\
9551
ac_x_includes='$x_includes'\
9552
ac_x_libraries='$x_libraries'"
9553
{ echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9554
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9557
if test "$no_x" = yes; then
9558
# Not all programs may use this symbol, but it does not hurt to define it.
9560
cat >>confdefs.h <<\_ACEOF
9561
#define X_DISPLAY_MISSING 1
9564
X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9566
if test -n "$x_includes"; then
9567
X_CFLAGS="$X_CFLAGS -I$x_includes"
9570
# It would also be nice to do this for all -L options, not just this one.
9571
if test -n "$x_libraries"; then
9572
X_LIBS="$X_LIBS -L$x_libraries"
9573
# For Solaris; some versions of Sun CC require a space after -R and
9574
# others require no space. Words are not sufficient . . . .
9575
{ echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9576
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
9577
ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9578
ac_xsave_c_werror_flag=$ac_c_werror_flag
9579
ac_c_werror_flag=yes
9580
cat >conftest.$ac_ext <<_ACEOF
9583
cat confdefs.h >>conftest.$ac_ext
9584
cat >>conftest.$ac_ext <<_ACEOF
9585
/* end confdefs.h. */
9595
rm -f conftest.$ac_objext conftest$ac_exeext
9596
if { (ac_try="$ac_link"
9598
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9599
*) ac_try_echo=$ac_try;;
9601
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9602
(eval "$ac_link") 2>conftest.er1
9604
grep -v '^ *+' conftest.er1 >conftest.err
9606
cat conftest.err >&5
9607
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608
(exit $ac_status); } && {
9609
test -z "$ac_c_werror_flag" ||
9610
test ! -s conftest.err
9611
} && test -s conftest$ac_exeext &&
9612
$as_test_x conftest$ac_exeext; then
9613
{ echo "$as_me:$LINENO: result: no" >&5
9614
echo "${ECHO_T}no" >&6; }
9615
X_LIBS="$X_LIBS -R$x_libraries"
9617
echo "$as_me: failed program was:" >&5
9618
sed 's/^/| /' conftest.$ac_ext >&5
9620
LIBS="$ac_xsave_LIBS -R $x_libraries"
9621
cat >conftest.$ac_ext <<_ACEOF
9624
cat confdefs.h >>conftest.$ac_ext
9625
cat >>conftest.$ac_ext <<_ACEOF
9626
/* end confdefs.h. */
9636
rm -f conftest.$ac_objext conftest$ac_exeext
9637
if { (ac_try="$ac_link"
9639
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9640
*) ac_try_echo=$ac_try;;
9642
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9643
(eval "$ac_link") 2>conftest.er1
9645
grep -v '^ *+' conftest.er1 >conftest.err
9647
cat conftest.err >&5
9648
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649
(exit $ac_status); } && {
9650
test -z "$ac_c_werror_flag" ||
9651
test ! -s conftest.err
9652
} && test -s conftest$ac_exeext &&
9653
$as_test_x conftest$ac_exeext; then
9654
{ echo "$as_me:$LINENO: result: yes" >&5
9655
echo "${ECHO_T}yes" >&6; }
9656
X_LIBS="$X_LIBS -R $x_libraries"
9658
echo "$as_me: failed program was:" >&5
9659
sed 's/^/| /' conftest.$ac_ext >&5
9661
{ echo "$as_me:$LINENO: result: neither works" >&5
9662
echo "${ECHO_T}neither works" >&6; }
9665
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9666
conftest$ac_exeext conftest.$ac_ext
9669
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9670
conftest$ac_exeext conftest.$ac_ext
9671
ac_c_werror_flag=$ac_xsave_c_werror_flag
9675
# Check for system-dependent libraries X programs must link with.
9676
# Do this before checking for the system-independent R6 libraries
9677
# (-lICE), since we may need -lsocket or whatever for X linking.
9679
if test "$ISC" = yes; then
9680
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9682
# Martyn Johnson says this is needed for Ultrix, if the X
9683
# libraries were built with DECnet support. And Karl Berry says
9684
# the Alpha needs dnet_stub (dnet does not exist).
9685
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9686
cat >conftest.$ac_ext <<_ACEOF
9689
cat confdefs.h >>conftest.$ac_ext
9690
cat >>conftest.$ac_ext <<_ACEOF
9691
/* end confdefs.h. */
9693
/* Override any GCC internal prototype to avoid an error.
9694
Use char because int might match the return type of a GCC
9695
builtin and then its argument prototype would still apply. */
9699
char XOpenDisplay ();
9703
return XOpenDisplay ();
9708
rm -f conftest.$ac_objext conftest$ac_exeext
9709
if { (ac_try="$ac_link"
9711
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9712
*) ac_try_echo=$ac_try;;
9714
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9715
(eval "$ac_link") 2>conftest.er1
9717
grep -v '^ *+' conftest.er1 >conftest.err
9719
cat conftest.err >&5
9720
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9721
(exit $ac_status); } && {
9722
test -z "$ac_c_werror_flag" ||
9723
test ! -s conftest.err
9724
} && test -s conftest$ac_exeext &&
9725
$as_test_x conftest$ac_exeext; then
9728
echo "$as_me: failed program was:" >&5
9729
sed 's/^/| /' conftest.$ac_ext >&5
9731
{ echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9732
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
9733
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9734
echo $ECHO_N "(cached) $ECHO_C" >&6
9736
ac_check_lib_save_LIBS=$LIBS
9738
cat >conftest.$ac_ext <<_ACEOF
9741
cat confdefs.h >>conftest.$ac_ext
9742
cat >>conftest.$ac_ext <<_ACEOF
9743
/* end confdefs.h. */
9745
/* Override any GCC internal prototype to avoid an error.
9746
Use char because int might match the return type of a GCC
9747
builtin and then its argument prototype would still apply. */
9755
return dnet_ntoa ();
9760
rm -f conftest.$ac_objext conftest$ac_exeext
9761
if { (ac_try="$ac_link"
9763
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9764
*) ac_try_echo=$ac_try;;
9766
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9767
(eval "$ac_link") 2>conftest.er1
9769
grep -v '^ *+' conftest.er1 >conftest.err
9771
cat conftest.err >&5
9772
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9773
(exit $ac_status); } && {
9774
test -z "$ac_c_werror_flag" ||
9775
test ! -s conftest.err
9776
} && test -s conftest$ac_exeext &&
9777
$as_test_x conftest$ac_exeext; then
9778
ac_cv_lib_dnet_dnet_ntoa=yes
9780
echo "$as_me: failed program was:" >&5
9781
sed 's/^/| /' conftest.$ac_ext >&5
9783
ac_cv_lib_dnet_dnet_ntoa=no
9786
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9787
conftest$ac_exeext conftest.$ac_ext
9788
LIBS=$ac_check_lib_save_LIBS
9790
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9791
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
9792
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9793
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9796
if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9797
{ echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
9798
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
9799
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9800
echo $ECHO_N "(cached) $ECHO_C" >&6
9802
ac_check_lib_save_LIBS=$LIBS
9803
LIBS="-ldnet_stub $LIBS"
9804
cat >conftest.$ac_ext <<_ACEOF
9807
cat confdefs.h >>conftest.$ac_ext
9808
cat >>conftest.$ac_ext <<_ACEOF
9809
/* end confdefs.h. */
9811
/* Override any GCC internal prototype to avoid an error.
9812
Use char because int might match the return type of a GCC
9813
builtin and then its argument prototype would still apply. */
9821
return dnet_ntoa ();
9826
rm -f conftest.$ac_objext conftest$ac_exeext
9827
if { (ac_try="$ac_link"
9829
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830
*) ac_try_echo=$ac_try;;
9832
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9833
(eval "$ac_link") 2>conftest.er1
9835
grep -v '^ *+' conftest.er1 >conftest.err
9837
cat conftest.err >&5
9838
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839
(exit $ac_status); } && {
9840
test -z "$ac_c_werror_flag" ||
9841
test ! -s conftest.err
9842
} && test -s conftest$ac_exeext &&
9843
$as_test_x conftest$ac_exeext; then
9844
ac_cv_lib_dnet_stub_dnet_ntoa=yes
9846
echo "$as_me: failed program was:" >&5
9847
sed 's/^/| /' conftest.$ac_ext >&5
9849
ac_cv_lib_dnet_stub_dnet_ntoa=no
9852
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9853
conftest$ac_exeext conftest.$ac_ext
9854
LIBS=$ac_check_lib_save_LIBS
9856
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9857
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
9858
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9859
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9865
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9866
conftest$ac_exeext conftest.$ac_ext
9867
LIBS="$ac_xsave_LIBS"
9869
# msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9870
# to get the SysV transport functions.
9871
# Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9873
# The nsl library prevents programs from opening the X display
9874
# on Irix 5.2, according to T.E. Dickey.
9875
# The functions gethostbyname, getservbyname, and inet_addr are
9876
# in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9877
{ echo "$as_me:$LINENO: checking for gethostbyname" >&5
9878
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
9879
if test "${ac_cv_func_gethostbyname+set}" = set; then
9880
echo $ECHO_N "(cached) $ECHO_C" >&6
9882
cat >conftest.$ac_ext <<_ACEOF
9885
cat confdefs.h >>conftest.$ac_ext
9886
cat >>conftest.$ac_ext <<_ACEOF
9887
/* end confdefs.h. */
9888
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
9889
For example, HP-UX 11i <limits.h> declares gettimeofday. */
9890
#define gethostbyname innocuous_gethostbyname
9892
/* System header to define __stub macros and hopefully few prototypes,
9893
which can conflict with char gethostbyname (); below.
9894
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9895
<limits.h> exists even on freestanding compilers. */
9898
# include <limits.h>
9900
# include <assert.h>
9903
#undef gethostbyname
9905
/* Override any GCC internal prototype to avoid an error.
9906
Use char because int might match the return type of a GCC
9907
builtin and then its argument prototype would still apply. */
9911
char gethostbyname ();
9912
/* The GNU C library defines this for functions which it implements
9913
to always fail with ENOSYS. Some functions are actually named
9914
something starting with __ and the normal name is an alias. */
9915
#if defined __stub_gethostbyname || defined __stub___gethostbyname
9922
return gethostbyname ();
9927
rm -f conftest.$ac_objext conftest$ac_exeext
9928
if { (ac_try="$ac_link"
9930
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9931
*) ac_try_echo=$ac_try;;
9933
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9934
(eval "$ac_link") 2>conftest.er1
9936
grep -v '^ *+' conftest.er1 >conftest.err
9938
cat conftest.err >&5
9939
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940
(exit $ac_status); } && {
9941
test -z "$ac_c_werror_flag" ||
9942
test ! -s conftest.err
9943
} && test -s conftest$ac_exeext &&
9944
$as_test_x conftest$ac_exeext; then
9945
ac_cv_func_gethostbyname=yes
9947
echo "$as_me: failed program was:" >&5
9948
sed 's/^/| /' conftest.$ac_ext >&5
9950
ac_cv_func_gethostbyname=no
9953
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9954
conftest$ac_exeext conftest.$ac_ext
9956
{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9957
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
9959
if test $ac_cv_func_gethostbyname = no; then
9960
{ echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9961
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
9962
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9963
echo $ECHO_N "(cached) $ECHO_C" >&6
9965
ac_check_lib_save_LIBS=$LIBS
9967
cat >conftest.$ac_ext <<_ACEOF
9970
cat confdefs.h >>conftest.$ac_ext
9971
cat >>conftest.$ac_ext <<_ACEOF
9972
/* end confdefs.h. */
9974
/* Override any GCC internal prototype to avoid an error.
9975
Use char because int might match the return type of a GCC
9976
builtin and then its argument prototype would still apply. */
9980
char gethostbyname ();
9984
return gethostbyname ();
9989
rm -f conftest.$ac_objext conftest$ac_exeext
9990
if { (ac_try="$ac_link"
9992
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9993
*) ac_try_echo=$ac_try;;
9995
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9996
(eval "$ac_link") 2>conftest.er1
9998
grep -v '^ *+' conftest.er1 >conftest.err
10000
cat conftest.err >&5
10001
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002
(exit $ac_status); } && {
10003
test -z "$ac_c_werror_flag" ||
10004
test ! -s conftest.err
10005
} && test -s conftest$ac_exeext &&
10006
$as_test_x conftest$ac_exeext; then
10007
ac_cv_lib_nsl_gethostbyname=yes
10009
echo "$as_me: failed program was:" >&5
10010
sed 's/^/| /' conftest.$ac_ext >&5
10012
ac_cv_lib_nsl_gethostbyname=no
10015
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10016
conftest$ac_exeext conftest.$ac_ext
10017
LIBS=$ac_check_lib_save_LIBS
10019
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
10020
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
10021
if test $ac_cv_lib_nsl_gethostbyname = yes; then
10022
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
10025
if test $ac_cv_lib_nsl_gethostbyname = no; then
10026
{ echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
10027
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
10028
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
10029
echo $ECHO_N "(cached) $ECHO_C" >&6
10031
ac_check_lib_save_LIBS=$LIBS
10033
cat >conftest.$ac_ext <<_ACEOF
10036
cat confdefs.h >>conftest.$ac_ext
10037
cat >>conftest.$ac_ext <<_ACEOF
10038
/* end confdefs.h. */
10040
/* Override any GCC internal prototype to avoid an error.
10041
Use char because int might match the return type of a GCC
10042
builtin and then its argument prototype would still apply. */
10046
char gethostbyname ();
10050
return gethostbyname ();
10055
rm -f conftest.$ac_objext conftest$ac_exeext
10056
if { (ac_try="$ac_link"
10057
case "(($ac_try" in
10058
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10059
*) ac_try_echo=$ac_try;;
10061
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10062
(eval "$ac_link") 2>conftest.er1
10064
grep -v '^ *+' conftest.er1 >conftest.err
10066
cat conftest.err >&5
10067
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10068
(exit $ac_status); } && {
10069
test -z "$ac_c_werror_flag" ||
10070
test ! -s conftest.err
10071
} && test -s conftest$ac_exeext &&
10072
$as_test_x conftest$ac_exeext; then
10073
ac_cv_lib_bsd_gethostbyname=yes
10075
echo "$as_me: failed program was:" >&5
10076
sed 's/^/| /' conftest.$ac_ext >&5
10078
ac_cv_lib_bsd_gethostbyname=no
10081
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10082
conftest$ac_exeext conftest.$ac_ext
10083
LIBS=$ac_check_lib_save_LIBS
10085
{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
10086
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
10087
if test $ac_cv_lib_bsd_gethostbyname = yes; then
10088
X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
10094
# lieder@skyler.mavd.honeywell.com says without -lsocket,
10095
# socket/setsockopt and other routines are undefined under SCO ODT
10096
# 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
10097
# on later versions), says Simon Leinen: it contains gethostby*
10098
# variants that don't use the name server (or something). -lsocket
10099
# must be given before -lnsl if both are needed. We assume that
10100
# if connect needs -lnsl, so does gethostbyname.
10101
{ echo "$as_me:$LINENO: checking for connect" >&5
10102
echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
10103
if test "${ac_cv_func_connect+set}" = set; then
10104
echo $ECHO_N "(cached) $ECHO_C" >&6
10106
cat >conftest.$ac_ext <<_ACEOF
10109
cat confdefs.h >>conftest.$ac_ext
10110
cat >>conftest.$ac_ext <<_ACEOF
10111
/* end confdefs.h. */
10112
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
10113
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10114
#define connect innocuous_connect
10116
/* System header to define __stub macros and hopefully few prototypes,
10117
which can conflict with char connect (); below.
10118
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10119
<limits.h> exists even on freestanding compilers. */
10122
# include <limits.h>
10124
# include <assert.h>
10129
/* Override any GCC internal prototype to avoid an error.
10130
Use char because int might match the return type of a GCC
10131
builtin and then its argument prototype would still apply. */
10136
/* The GNU C library defines this for functions which it implements
10137
to always fail with ENOSYS. Some functions are actually named
10138
something starting with __ and the normal name is an alias. */
10139
#if defined __stub_connect || defined __stub___connect
10151
rm -f conftest.$ac_objext conftest$ac_exeext
10152
if { (ac_try="$ac_link"
10153
case "(($ac_try" in
10154
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10155
*) ac_try_echo=$ac_try;;
10157
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10158
(eval "$ac_link") 2>conftest.er1
10160
grep -v '^ *+' conftest.er1 >conftest.err
10162
cat conftest.err >&5
10163
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164
(exit $ac_status); } && {
10165
test -z "$ac_c_werror_flag" ||
10166
test ! -s conftest.err
10167
} && test -s conftest$ac_exeext &&
10168
$as_test_x conftest$ac_exeext; then
10169
ac_cv_func_connect=yes
10171
echo "$as_me: failed program was:" >&5
10172
sed 's/^/| /' conftest.$ac_ext >&5
10174
ac_cv_func_connect=no
10177
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10178
conftest$ac_exeext conftest.$ac_ext
10180
{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
10181
echo "${ECHO_T}$ac_cv_func_connect" >&6; }
10183
if test $ac_cv_func_connect = no; then
10184
{ echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
10185
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
10186
if test "${ac_cv_lib_socket_connect+set}" = set; then
10187
echo $ECHO_N "(cached) $ECHO_C" >&6
10189
ac_check_lib_save_LIBS=$LIBS
10190
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
10191
cat >conftest.$ac_ext <<_ACEOF
10194
cat confdefs.h >>conftest.$ac_ext
10195
cat >>conftest.$ac_ext <<_ACEOF
10196
/* end confdefs.h. */
10198
/* Override any GCC internal prototype to avoid an error.
10199
Use char because int might match the return type of a GCC
10200
builtin and then its argument prototype would still apply. */
10213
rm -f conftest.$ac_objext conftest$ac_exeext
10214
if { (ac_try="$ac_link"
10215
case "(($ac_try" in
10216
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10217
*) ac_try_echo=$ac_try;;
10219
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10220
(eval "$ac_link") 2>conftest.er1
10222
grep -v '^ *+' conftest.er1 >conftest.err
10224
cat conftest.err >&5
10225
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226
(exit $ac_status); } && {
10227
test -z "$ac_c_werror_flag" ||
10228
test ! -s conftest.err
10229
} && test -s conftest$ac_exeext &&
10230
$as_test_x conftest$ac_exeext; then
10231
ac_cv_lib_socket_connect=yes
10233
echo "$as_me: failed program was:" >&5
10234
sed 's/^/| /' conftest.$ac_ext >&5
10236
ac_cv_lib_socket_connect=no
10239
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10240
conftest$ac_exeext conftest.$ac_ext
10241
LIBS=$ac_check_lib_save_LIBS
10243
{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
10244
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
10245
if test $ac_cv_lib_socket_connect = yes; then
10246
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
10251
# Guillermo Gomez says -lposix is necessary on A/UX.
10252
{ echo "$as_me:$LINENO: checking for remove" >&5
10253
echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
10254
if test "${ac_cv_func_remove+set}" = set; then
10255
echo $ECHO_N "(cached) $ECHO_C" >&6
10257
cat >conftest.$ac_ext <<_ACEOF
10260
cat confdefs.h >>conftest.$ac_ext
10261
cat >>conftest.$ac_ext <<_ACEOF
10262
/* end confdefs.h. */
10263
/* Define remove to an innocuous variant, in case <limits.h> declares remove.
10264
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10265
#define remove innocuous_remove
10267
/* System header to define __stub macros and hopefully few prototypes,
10268
which can conflict with char remove (); below.
10269
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10270
<limits.h> exists even on freestanding compilers. */
10273
# include <limits.h>
10275
# include <assert.h>
10280
/* Override any GCC internal prototype to avoid an error.
10281
Use char because int might match the return type of a GCC
10282
builtin and then its argument prototype would still apply. */
10287
/* The GNU C library defines this for functions which it implements
10288
to always fail with ENOSYS. Some functions are actually named
10289
something starting with __ and the normal name is an alias. */
10290
#if defined __stub_remove || defined __stub___remove
10302
rm -f conftest.$ac_objext conftest$ac_exeext
10303
if { (ac_try="$ac_link"
10304
case "(($ac_try" in
10305
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10306
*) ac_try_echo=$ac_try;;
10308
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10309
(eval "$ac_link") 2>conftest.er1
10311
grep -v '^ *+' conftest.er1 >conftest.err
10313
cat conftest.err >&5
10314
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315
(exit $ac_status); } && {
10316
test -z "$ac_c_werror_flag" ||
10317
test ! -s conftest.err
10318
} && test -s conftest$ac_exeext &&
10319
$as_test_x conftest$ac_exeext; then
10320
ac_cv_func_remove=yes
10322
echo "$as_me: failed program was:" >&5
10323
sed 's/^/| /' conftest.$ac_ext >&5
10325
ac_cv_func_remove=no
10328
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10329
conftest$ac_exeext conftest.$ac_ext
10331
{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
10332
echo "${ECHO_T}$ac_cv_func_remove" >&6; }
10334
if test $ac_cv_func_remove = no; then
10335
{ echo "$as_me:$LINENO: checking for remove in -lposix" >&5
10336
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
10337
if test "${ac_cv_lib_posix_remove+set}" = set; then
10338
echo $ECHO_N "(cached) $ECHO_C" >&6
10340
ac_check_lib_save_LIBS=$LIBS
10341
LIBS="-lposix $LIBS"
10342
cat >conftest.$ac_ext <<_ACEOF
10345
cat confdefs.h >>conftest.$ac_ext
10346
cat >>conftest.$ac_ext <<_ACEOF
10347
/* end confdefs.h. */
10349
/* Override any GCC internal prototype to avoid an error.
10350
Use char because int might match the return type of a GCC
10351
builtin and then its argument prototype would still apply. */
10364
rm -f conftest.$ac_objext conftest$ac_exeext
10365
if { (ac_try="$ac_link"
10366
case "(($ac_try" in
10367
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10368
*) ac_try_echo=$ac_try;;
10370
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10371
(eval "$ac_link") 2>conftest.er1
10373
grep -v '^ *+' conftest.er1 >conftest.err
10375
cat conftest.err >&5
10376
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377
(exit $ac_status); } && {
10378
test -z "$ac_c_werror_flag" ||
10379
test ! -s conftest.err
10380
} && test -s conftest$ac_exeext &&
10381
$as_test_x conftest$ac_exeext; then
10382
ac_cv_lib_posix_remove=yes
10384
echo "$as_me: failed program was:" >&5
10385
sed 's/^/| /' conftest.$ac_ext >&5
10387
ac_cv_lib_posix_remove=no
10390
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10391
conftest$ac_exeext conftest.$ac_ext
10392
LIBS=$ac_check_lib_save_LIBS
10394
{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
10395
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
10396
if test $ac_cv_lib_posix_remove = yes; then
10397
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
10402
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
10403
{ echo "$as_me:$LINENO: checking for shmat" >&5
10404
echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
10405
if test "${ac_cv_func_shmat+set}" = set; then
10406
echo $ECHO_N "(cached) $ECHO_C" >&6
10408
cat >conftest.$ac_ext <<_ACEOF
10411
cat confdefs.h >>conftest.$ac_ext
10412
cat >>conftest.$ac_ext <<_ACEOF
10413
/* end confdefs.h. */
10414
/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
10415
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10416
#define shmat innocuous_shmat
10418
/* System header to define __stub macros and hopefully few prototypes,
10419
which can conflict with char shmat (); below.
10420
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10421
<limits.h> exists even on freestanding compilers. */
10424
# include <limits.h>
10426
# include <assert.h>
10431
/* Override any GCC internal prototype to avoid an error.
10432
Use char because int might match the return type of a GCC
10433
builtin and then its argument prototype would still apply. */
10438
/* The GNU C library defines this for functions which it implements
10439
to always fail with ENOSYS. Some functions are actually named
10440
something starting with __ and the normal name is an alias. */
10441
#if defined __stub_shmat || defined __stub___shmat
10453
rm -f conftest.$ac_objext conftest$ac_exeext
10454
if { (ac_try="$ac_link"
10455
case "(($ac_try" in
10456
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10457
*) ac_try_echo=$ac_try;;
10459
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10460
(eval "$ac_link") 2>conftest.er1
10462
grep -v '^ *+' conftest.er1 >conftest.err
10464
cat conftest.err >&5
10465
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466
(exit $ac_status); } && {
10467
test -z "$ac_c_werror_flag" ||
10468
test ! -s conftest.err
10469
} && test -s conftest$ac_exeext &&
10470
$as_test_x conftest$ac_exeext; then
10471
ac_cv_func_shmat=yes
10473
echo "$as_me: failed program was:" >&5
10474
sed 's/^/| /' conftest.$ac_ext >&5
10476
ac_cv_func_shmat=no
10479
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10480
conftest$ac_exeext conftest.$ac_ext
10482
{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10483
echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
10485
if test $ac_cv_func_shmat = no; then
10486
{ echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10487
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
10488
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10489
echo $ECHO_N "(cached) $ECHO_C" >&6
10491
ac_check_lib_save_LIBS=$LIBS
10493
cat >conftest.$ac_ext <<_ACEOF
10496
cat confdefs.h >>conftest.$ac_ext
10497
cat >>conftest.$ac_ext <<_ACEOF
10498
/* end confdefs.h. */
10500
/* Override any GCC internal prototype to avoid an error.
10501
Use char because int might match the return type of a GCC
10502
builtin and then its argument prototype would still apply. */
10515
rm -f conftest.$ac_objext conftest$ac_exeext
10516
if { (ac_try="$ac_link"
10517
case "(($ac_try" in
10518
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10519
*) ac_try_echo=$ac_try;;
10521
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10522
(eval "$ac_link") 2>conftest.er1
10524
grep -v '^ *+' conftest.er1 >conftest.err
10526
cat conftest.err >&5
10527
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10528
(exit $ac_status); } && {
10529
test -z "$ac_c_werror_flag" ||
10530
test ! -s conftest.err
10531
} && test -s conftest$ac_exeext &&
10532
$as_test_x conftest$ac_exeext; then
10533
ac_cv_lib_ipc_shmat=yes
10535
echo "$as_me: failed program was:" >&5
10536
sed 's/^/| /' conftest.$ac_ext >&5
10538
ac_cv_lib_ipc_shmat=no
10541
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10542
conftest$ac_exeext conftest.$ac_ext
10543
LIBS=$ac_check_lib_save_LIBS
10545
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10546
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
10547
if test $ac_cv_lib_ipc_shmat = yes; then
10548
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10554
# Check for libraries that X11R6 Xt/Xaw programs need.
10555
ac_save_LDFLAGS=$LDFLAGS
10556
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10557
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10558
# check for ICE first), but we must link in the order -lSM -lICE or
10559
# we get undefined symbols. So assume we have SM if we have ICE.
10560
# These have to be linked with before -lX11, unlike the other
10561
# libraries we check for below, so use a different variable.
10562
# John Interrante, Karl Berry
10563
{ echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10564
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
10565
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10566
echo $ECHO_N "(cached) $ECHO_C" >&6
10568
ac_check_lib_save_LIBS=$LIBS
10569
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10570
cat >conftest.$ac_ext <<_ACEOF
10573
cat confdefs.h >>conftest.$ac_ext
10574
cat >>conftest.$ac_ext <<_ACEOF
10575
/* end confdefs.h. */
10577
/* Override any GCC internal prototype to avoid an error.
10578
Use char because int might match the return type of a GCC
10579
builtin and then its argument prototype would still apply. */
10583
char IceConnectionNumber ();
10587
return IceConnectionNumber ();
10592
rm -f conftest.$ac_objext conftest$ac_exeext
10593
if { (ac_try="$ac_link"
10594
case "(($ac_try" in
10595
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10596
*) ac_try_echo=$ac_try;;
10598
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10599
(eval "$ac_link") 2>conftest.er1
10601
grep -v '^ *+' conftest.er1 >conftest.err
10603
cat conftest.err >&5
10604
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605
(exit $ac_status); } && {
10606
test -z "$ac_c_werror_flag" ||
10607
test ! -s conftest.err
10608
} && test -s conftest$ac_exeext &&
10609
$as_test_x conftest$ac_exeext; then
10610
ac_cv_lib_ICE_IceConnectionNumber=yes
10612
echo "$as_me: failed program was:" >&5
10613
sed 's/^/| /' conftest.$ac_ext >&5
10615
ac_cv_lib_ICE_IceConnectionNumber=no
10618
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10619
conftest$ac_exeext conftest.$ac_ext
10620
LIBS=$ac_check_lib_save_LIBS
10622
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10623
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
10624
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10625
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10628
LDFLAGS=$ac_save_LDFLAGS
10632
if test "$no_x" = yes; then
10633
{ { echo "$as_me:$LINENO: error: Can't find X. Please check your installation and add the correct paths!" >&5
10634
echo "$as_me: error: Can't find X. Please check your installation and add the correct paths!" >&2;}
10635
{ (exit 1); exit 1; }; }
10637
QT_CXXFLAGS="$X_CFLAGS"
10638
QT_LDFLAGS="$X_LIBS"
10639
QT_LIBS="$X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS"
10642
QT_CXXFLAGS="-fno-rtti -DQWS"
10645
QTE_NORTTI="-fno-rtti -DQWS"
10653
if test -z ""; then
10657
qt_subver=`echo "" | sed -e 's#[0-9][0-9]*\.\([0-9][0-9]*\).*#\1#'`
10658
# following is the check if subversion isn�t found in passed argument
10659
if test "$qt_subver" = ""; then
10662
qt_ver=`echo "" | sed -e 's#^\([0-9][0-9]*\)\..*#\1#'`
10663
if test "$qt_ver" = "1"; then
10668
if test -z ""; then
10669
if test "$qt_ver" = "2"; then
10670
if test $qt_subver -gt 0; then
10671
qt_minversion=">= Qt 2.2.2"
10673
qt_minversion=">= Qt 2.0.2"
10676
if test "$qt_ver" = "3"; then
10677
qt_minversion=">= Qt 3.0.1"
10679
if test "$qt_ver" = "1"; then
10680
qt_minversion=">= 1.42 and < 2.0"
10686
if test -z ""; then
10687
if test $qt_ver = 3; then
10688
qt_verstring="QT_VERSION >= 301"
10690
if test $qt_ver = 2; then
10691
if test $qt_subver -gt 0; then
10692
qt_verstring="QT_VERSION >= 222"
10694
qt_verstring="QT_VERSION >= 200"
10697
if test $qt_ver = 1; then
10698
qt_verstring="QT_VERSION >= 142 && QT_VERSION < 200"
10704
if test $qt_ver = 3; then
10705
qt_dirs="$QTDIR /usr/lib/qt3 /usr/lib/qt"
10707
if test $qt_ver = 2; then
10708
qt_dirs="$QTDIR /usr/lib/qt2 /usr/lib/qt"
10710
if test $qt_ver = 1; then
10711
qt_dirs="$QTDIR /usr/lib/qt"
10715
{ echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
10716
echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; }
10717
if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
10718
echo $ECHO_N "(cached) $ECHO_C" >&6
10720
ac_check_lib_save_LIBS=$LIBS
10721
LIBS="-lpthread $LIBS"
10722
cat >conftest.$ac_ext <<_ACEOF
10725
cat confdefs.h >>conftest.$ac_ext
10726
cat >>conftest.$ac_ext <<_ACEOF
10727
/* end confdefs.h. */
10729
/* Override any GCC internal prototype to avoid an error.
10730
Use char because int might match the return type of a GCC
10731
builtin and then its argument prototype would still apply. */
10735
char pthread_create ();
10739
return pthread_create ();
10744
rm -f conftest.$ac_objext conftest$ac_exeext
10745
if { (ac_try="$ac_link"
10746
case "(($ac_try" in
10747
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10748
*) ac_try_echo=$ac_try;;
10750
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10751
(eval "$ac_link") 2>conftest.er1
10753
grep -v '^ *+' conftest.er1 >conftest.err
10755
cat conftest.err >&5
10756
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757
(exit $ac_status); } && {
10758
test -z "$ac_c_werror_flag" ||
10759
test ! -s conftest.err
10760
} && test -s conftest$ac_exeext &&
10761
$as_test_x conftest$ac_exeext; then
10762
ac_cv_lib_pthread_pthread_create=yes
10764
echo "$as_me: failed program was:" >&5
10765
sed 's/^/| /' conftest.$ac_ext >&5
10767
ac_cv_lib_pthread_pthread_create=no
10770
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10771
conftest$ac_exeext conftest.$ac_ext
10772
LIBS=$ac_check_lib_save_LIBS
10774
{ echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
10775
echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; }
10776
if test $ac_cv_lib_pthread_pthread_create = yes; then
10777
LIBPTHREAD="-lpthread"
10783
# Check whether --enable-kernel-threads was given.
10784
if test "${enable_kernel_threads+set}" = set; then
10785
enableval=$enable_kernel_threads; kde_use_kernthreads=$enableval
10787
kde_use_kernthreads=no
10791
if test "$kde_use_kernthreads" = "yes"; then
10792
ac_save_CXXFLAGS="$CXXFLAGS"
10793
ac_save_CFLAGS="$CXXFLAGS"
10794
CXXFLAGS="-I/usr/local/include/pthread/linuxthreads $CXXFLAGS"
10795
CFLAGS="-I/usr/local/include/pthread/linuxthreads $CFLAGS"
10797
for ac_header in pthread/linuxthreads/pthread.h
10799
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10800
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10801
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10802
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10803
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10804
echo $ECHO_N "(cached) $ECHO_C" >&6
10806
ac_res=`eval echo '${'$as_ac_Header'}'`
10807
{ echo "$as_me:$LINENO: result: $ac_res" >&5
10808
echo "${ECHO_T}$ac_res" >&6; }
10810
# Is the header compilable?
10811
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10812
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10813
cat >conftest.$ac_ext <<_ACEOF
10816
cat confdefs.h >>conftest.$ac_ext
10817
cat >>conftest.$ac_ext <<_ACEOF
10818
/* end confdefs.h. */
10819
$ac_includes_default
10820
#include <$ac_header>
10822
rm -f conftest.$ac_objext
10823
if { (ac_try="$ac_compile"
10824
case "(($ac_try" in
10825
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10826
*) ac_try_echo=$ac_try;;
10828
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10829
(eval "$ac_compile") 2>conftest.er1
10831
grep -v '^ *+' conftest.er1 >conftest.err
10833
cat conftest.err >&5
10834
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835
(exit $ac_status); } && {
10836
test -z "$ac_c_werror_flag" ||
10837
test ! -s conftest.err
10838
} && test -s conftest.$ac_objext; then
10839
ac_header_compiler=yes
10841
echo "$as_me: failed program was:" >&5
10842
sed 's/^/| /' conftest.$ac_ext >&5
10844
ac_header_compiler=no
10847
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10848
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10849
echo "${ECHO_T}$ac_header_compiler" >&6; }
10851
# Is the header present?
10852
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10853
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10854
cat >conftest.$ac_ext <<_ACEOF
10857
cat confdefs.h >>conftest.$ac_ext
10858
cat >>conftest.$ac_ext <<_ACEOF
10859
/* end confdefs.h. */
10860
#include <$ac_header>
10862
if { (ac_try="$ac_cpp conftest.$ac_ext"
10863
case "(($ac_try" in
10864
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10865
*) ac_try_echo=$ac_try;;
10867
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10868
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10870
grep -v '^ *+' conftest.er1 >conftest.err
10872
cat conftest.err >&5
10873
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874
(exit $ac_status); } >/dev/null && {
10875
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10876
test ! -s conftest.err
10878
ac_header_preproc=yes
10880
echo "$as_me: failed program was:" >&5
10881
sed 's/^/| /' conftest.$ac_ext >&5
10883
ac_header_preproc=no
10886
rm -f conftest.err conftest.$ac_ext
10887
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10888
echo "${ECHO_T}$ac_header_preproc" >&6; }
10890
# So? What about this header?
10891
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10893
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10894
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10895
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10896
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10897
ac_header_preproc=yes
10900
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10901
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10902
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10903
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10904
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10905
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10906
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10907
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10908
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10909
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10910
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10911
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10913
## ------------------------------------ ##
10914
## Report this to bugs@x2go.org ##
10915
## ------------------------------------ ##
10917
) | sed "s/^/$as_me: WARNING: /" >&2
10920
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10921
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10922
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10923
echo $ECHO_N "(cached) $ECHO_C" >&6
10925
eval "$as_ac_Header=\$ac_header_preproc"
10927
ac_res=`eval echo '${'$as_ac_Header'}'`
10928
{ echo "$as_me:$LINENO: result: $ac_res" >&5
10929
echo "${ECHO_T}$ac_res" >&6; }
10932
if test `eval echo '${'$as_ac_Header'}'` = yes; then
10933
cat >>confdefs.h <<_ACEOF
10934
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10941
CXXFLAGS="$ac_save_CXXFLAGS"
10942
CFLAGS="$ac_save_CFLAGS"
10943
if test "$ac_cv_header_pthread_linuxthreads_pthread_h" = "no"; then
10944
kde_use_kernthreads=no
10946
{ echo "$as_me:$LINENO: checking for pthread_join in -llthread" >&5
10947
echo $ECHO_N "checking for pthread_join in -llthread... $ECHO_C" >&6; }
10948
if test "${ac_cv_lib_lthread_pthread_join+set}" = set; then
10949
echo $ECHO_N "(cached) $ECHO_C" >&6
10951
ac_check_lib_save_LIBS=$LIBS
10952
LIBS="-llthread $LIBS"
10953
cat >conftest.$ac_ext <<_ACEOF
10956
cat confdefs.h >>conftest.$ac_ext
10957
cat >>conftest.$ac_ext <<_ACEOF
10958
/* end confdefs.h. */
10960
/* Override any GCC internal prototype to avoid an error.
10961
Use char because int might match the return type of a GCC
10962
builtin and then its argument prototype would still apply. */
10966
char pthread_join ();
10970
return pthread_join ();
10975
rm -f conftest.$ac_objext conftest$ac_exeext
10976
if { (ac_try="$ac_link"
10977
case "(($ac_try" in
10978
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10979
*) ac_try_echo=$ac_try;;
10981
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10982
(eval "$ac_link") 2>conftest.er1
10984
grep -v '^ *+' conftest.er1 >conftest.err
10986
cat conftest.err >&5
10987
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988
(exit $ac_status); } && {
10989
test -z "$ac_c_werror_flag" ||
10990
test ! -s conftest.err
10991
} && test -s conftest$ac_exeext &&
10992
$as_test_x conftest$ac_exeext; then
10993
ac_cv_lib_lthread_pthread_join=yes
10995
echo "$as_me: failed program was:" >&5
10996
sed 's/^/| /' conftest.$ac_ext >&5
10998
ac_cv_lib_lthread_pthread_join=no
11001
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11002
conftest$ac_exeext conftest.$ac_ext
11003
LIBS=$ac_check_lib_save_LIBS
11005
{ echo "$as_me:$LINENO: result: $ac_cv_lib_lthread_pthread_join" >&5
11006
echo "${ECHO_T}$ac_cv_lib_lthread_pthread_join" >&6; }
11007
if test $ac_cv_lib_lthread_pthread_join = yes; then
11008
LIBPTHREAD="-llthread -llgcc_r"
11010
if test "x$LIBPTHREAD" = "x"; then
11011
kde_use_kernthreads=no
11013
USE_THREADS="-D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads"
11018
if test -z "$LIBPTHREAD"; then
11020
{ echo "$as_me:$LINENO: checking whether $CXX supports -pthread" >&5
11021
echo $ECHO_N "checking whether $CXX supports -pthread... $ECHO_C" >&6; }
11022
kde_cache=`echo pthread | sed 'y% .=/+-%____p_%'`
11023
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
11024
echo $ECHO_N "(cached) $ECHO_C" >&6
11028
ac_cpp='$CXXCPP $CPPFLAGS'
11029
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11030
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11031
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11033
save_CXXFLAGS="$CXXFLAGS"
11034
CXXFLAGS="$CXXFLAGS -pthread"
11035
cat >conftest.$ac_ext <<_ACEOF
11038
cat confdefs.h >>conftest.$ac_ext
11039
cat >>conftest.$ac_ext <<_ACEOF
11040
/* end confdefs.h. */
11050
rm -f conftest.$ac_objext conftest$ac_exeext
11051
if { (ac_try="$ac_link"
11052
case "(($ac_try" in
11053
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054
*) ac_try_echo=$ac_try;;
11056
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11057
(eval "$ac_link") 2>conftest.er1
11059
grep -v '^ *+' conftest.er1 >conftest.err
11061
cat conftest.err >&5
11062
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11063
(exit $ac_status); } && {
11064
test -z "$ac_cxx_werror_flag" ||
11065
test ! -s conftest.err
11066
} && test -s conftest$ac_exeext &&
11067
$as_test_x conftest$ac_exeext; then
11068
eval "kde_cv_prog_cxx_$kde_cache=yes"
11070
echo "$as_me: failed program was:" >&5
11071
sed 's/^/| /' conftest.$ac_ext >&5
11076
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11077
conftest$ac_exeext conftest.$ac_ext
11078
CXXFLAGS="$save_CXXFLAGS"
11080
ac_cpp='$CPP $CPPFLAGS'
11081
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11082
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11083
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11088
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
11089
{ echo "$as_me:$LINENO: result: yes" >&5
11090
echo "${ECHO_T}yes" >&6; }
11092
USE_THREADS="-pthread"
11094
{ echo "$as_me:$LINENO: result: no" >&5
11095
echo "${ECHO_T}no" >&6; }
11106
{ echo "$as_me:$LINENO: checking whether $CXX supports -mt" >&5
11107
echo $ECHO_N "checking whether $CXX supports -mt... $ECHO_C" >&6; }
11108
kde_cache=`echo mt | sed 'y% .=/+-%____p_%'`
11109
if { as_var=kde_cv_prog_cxx_$kde_cache; eval "test \"\${$as_var+set}\" = set"; }; then
11110
echo $ECHO_N "(cached) $ECHO_C" >&6
11114
ac_cpp='$CXXCPP $CPPFLAGS'
11115
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11116
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11117
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11119
save_CXXFLAGS="$CXXFLAGS"
11120
CXXFLAGS="$CXXFLAGS -mt"
11121
cat >conftest.$ac_ext <<_ACEOF
11124
cat confdefs.h >>conftest.$ac_ext
11125
cat >>conftest.$ac_ext <<_ACEOF
11126
/* end confdefs.h. */
11136
rm -f conftest.$ac_objext conftest$ac_exeext
11137
if { (ac_try="$ac_link"
11138
case "(($ac_try" in
11139
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11140
*) ac_try_echo=$ac_try;;
11142
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11143
(eval "$ac_link") 2>conftest.er1
11145
grep -v '^ *+' conftest.er1 >conftest.err
11147
cat conftest.err >&5
11148
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11149
(exit $ac_status); } && {
11150
test -z "$ac_cxx_werror_flag" ||
11151
test ! -s conftest.err
11152
} && test -s conftest$ac_exeext &&
11153
$as_test_x conftest$ac_exeext; then
11154
eval "kde_cv_prog_cxx_$kde_cache=yes"
11156
echo "$as_me: failed program was:" >&5
11157
sed 's/^/| /' conftest.$ac_ext >&5
11162
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11163
conftest$ac_exeext conftest.$ac_ext
11164
CXXFLAGS="$save_CXXFLAGS"
11166
ac_cpp='$CPP $CPPFLAGS'
11167
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11168
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11169
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11174
if eval "test \"`echo '$kde_cv_prog_cxx_'$kde_cache`\" = yes"; then
11175
{ echo "$as_me:$LINENO: result: yes" >&5
11176
echo "${ECHO_T}yes" >&6; }
11180
{ echo "$as_me:$LINENO: result: no" >&5
11181
echo "${ECHO_T}no" >&6; }
11186
QT_CXXFLAGS="$QT_CXXFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4"
11189
QT_CXXFLAGS="$QT_CXXFLAGS -D_THREAD_SAFE"
11192
QT_CXXFLAGS="$QT_CXXFLAGS -D_THREAD_SAFE"
11193
LIBPTHREAD="$LIBPTHREAD -lc_r"
11195
linux*) QT_CXXFLAGS="$QT_CXXFLAGS -D_REENTRANT"
11196
if test "$CXX" = "KCC"; then
11197
QT_CXXFLAGS="$QT_CXXFLAGS --thread_safe"
11212
# Check whether --enable-mt was given.
11213
if test "${enable_mt+set}" = set; then
11214
enableval=$enable_mt; qt_use_mt=$enableval
11217
if test $qt_ver = 3; then
11232
if test "x$qt_use_mt" = "xyes"; then
11236
if test -z "$LIBPTHREAD"; then
11237
if test -z "$USE_THREADS"; then
11238
kde_check_threading_default=no
11240
kde_check_threading_default=yes
11243
kde_check_threading_default=yes
11245
# Check whether --enable-threading was given.
11246
if test "${enable_threading+set}" = set; then
11247
enableval=$enable_threading; qt_use_threading=$enableval
11249
qt_use_threading=$kde_check_threading_default
11252
if test "x$qt_use_threading" = "xyes"; then
11254
cat >>confdefs.h <<\_ACEOF
11255
#define HAVE_LIBPTHREAD 1
11260
if test "x$qt_use_threading" = "xyes"; then
11261
QT_CXXFLAGS="$USE_THREADS -DQT_THREAD_SUPPORT $QT_CXXFLAGS"
11262
QT_MT_LDFLAGS="$USE_THREADS"
11263
QT_MT_LIBS="$LIBPTHREAD"
11271
if test -z "$LIBQT_GLOB"; then
11272
if test "x$qt_use_emb" = "xyes"; then
11273
LIBQT_GLOB="libqte.*"
11275
LIBQT_GLOB="libqt.*"
11279
if test -z "$LIBQT"; then
11280
if test "x$qt_use_emb" = "xyes"; then
11287
if test -z "$LIBQPE"; then
11288
if test "x$qt_use_emb" = "xyes"; then
11289
if test "x$qt_use_emb_palm" = "xyes"; then
11300
if test "x$qt_use_mt" = "xyes"; then
11301
if test -z "$LIBQT"; then
11302
LIBQT="-l$qtlib-mt"
11306
LIBQT_GLOB="lib$qtlib-mt.*"
11307
USING_QT_MT="using -mt"
11312
{ echo "$as_me:$LINENO: checking for Qt" >&5
11313
echo $ECHO_N "checking for Qt... $ECHO_C" >&6; }
11315
QT_LIBS="$LIBQT $QT_LIBS"
11316
test -z "$QT_MT_LIBS" || QT_LIBS="$QT_LIBS $QT_MT_LIBS"
11318
ac_qt_includes=NO ac_qt_libraries=NO ac_qt_bindir=NO
11322
# Check whether --with-qt-dir was given.
11323
if test "${with_qt_dir+set}" = set; then
11324
withval=$with_qt_dir; ac_qt_includes="$withval"/include
11325
ac_qt_libraries="$withval"/lib
11326
ac_qt_bindir="$withval"/bin
11332
# Check whether --with-qt-includes was given.
11333
if test "${with_qt_includes+set}" = set; then
11334
withval=$with_qt_includes;
11335
ac_qt_includes="$withval"
11340
kde_qt_libs_given=no
11343
# Check whether --with-qt-libraries was given.
11344
if test "${with_qt_libraries+set}" = set; then
11345
withval=$with_qt_libraries; ac_qt_libraries="$withval"
11346
kde_qt_libs_given=yes
11351
if test "${ac_cv_have_qt+set}" = set; then
11352
echo $ECHO_N "(cached) $ECHO_C" >&6
11354
#try to guess Qt locations
11357
for dir in $qt_dirs; do
11358
qt_incdirs="$qt_incdirs $dir/include $dir"
11360
qt_incdirs="$QTINC $qt_incdirs /usr/local/qt/include /usr/include /usr/X11R6/include/X11/qt /usr/X11R6/include/qt /usr/X11R6/include/qt2 /usr/include/qt3 $x_includes"
11361
if test ! "$ac_qt_includes" = "NO"; then
11362
qt_incdirs="$ac_qt_includes $qt_incdirs"
11365
if test "$qt_ver" != "1"; then
11366
kde_qt_header=qstyle.h
11368
kde_qt_header=qglobal.h
11373
for i in $qt_incdirs;
11375
for j in $kde_qt_header;
11377
echo "configure: 11377: $i/$j" >&5
11378
if test -r "$i/$j"; then
11379
echo "taking that" >&5
11386
ac_qt_includes="$qt_incdir"
11389
for dir in $qt_dirs; do
11390
qt_libdirs="$qt_libdirs $dir/lib $dir"
11392
qt_libdirs="$QTLIB $qt_libdirs /usr/X11R6/lib /usr/lib /usr/local/qt/lib $x_libraries"
11393
if test ! "$ac_qt_libraries" = "NO"; then
11394
qt_libdir=$ac_qt_libraries
11396
qt_libdirs="$ac_qt_libraries $qt_libdirs"
11397
# if the Qt was given, the chance is too big that libqt.* doesn't exist
11399
for dir in $qt_libdirs; do
11400
try="ls -1 $dir/${LIBQT_GLOB}"
11401
if test -n "`$try 2> /dev/null`"; then qt_libdir=$dir; break; else echo "tried $dir" >&5; fi
11405
ac_qt_libraries="$qt_libdir"
11408
ac_cpp='$CXXCPP $CPPFLAGS'
11409
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11410
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11411
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11414
ac_cxxflags_safe="$CXXFLAGS"
11415
ac_ldflags_safe="$LDFLAGS"
11416
ac_libs_safe="$LIBS"
11418
CXXFLAGS="$CXXFLAGS -I$qt_incdir $QT_CXXFLAGS"
11419
LDFLAGS="$LDFLAGS -L$qt_libdir $QT_LDFLAGS"
11420
LIBS="$LIBS $QT_LIBS"
11424
cat > conftest.$ac_ext <<EOF
11425
#include "confdefs.h"
11426
#include <qglobal.h>
11427
#include <qapplication.h>
11429
if test "$qt_ver" = "2"; then
11430
cat >> conftest.$ac_ext <<EOF
11431
#include <qevent.h>
11432
#include <qstring.h>
11433
#include <qstyle.h>
11436
if test $qt_subver -gt 0; then
11437
cat >> conftest.$ac_ext <<EOF
11438
#include <qiconview.h>
11443
if test "$qt_ver" = "3"; then
11444
cat >> conftest.$ac_ext <<EOF
11445
#include <qcursor.h>
11446
#include <qstylefactory.h>
11447
#include <private/qucomextra_p.h>
11451
echo "#if ! ($qt_verstring)" >> conftest.$ac_ext
11452
cat >> conftest.$ac_ext <<EOF
11458
if test "$qt_ver" = "2"; then
11459
cat >> conftest.$ac_ext <<EOF
11460
QStringList *t = new QStringList();
11463
if test $qt_subver -gt 0; then
11464
cat >> conftest.$ac_ext <<EOF
11466
iv.setWordWrapIconText(false);
11468
s.setLatin1("Elvis is alive", 14);
11472
if test "$qt_ver" = "3"; then
11473
cat >> conftest.$ac_ext <<EOF
11474
(void)QStyleFactory::create(QString::null);
11475
QCursor c(Qt::WhatsThisCursor);
11478
cat >> conftest.$ac_ext <<EOF
11484
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11485
(eval $ac_link) 2>&5
11487
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11488
(exit $ac_status); } && test -s conftest; then
11491
echo "configure: failed program was:" >&5
11492
cat conftest.$ac_ext >&5
11493
ac_qt_libraries="NO"
11496
CXXFLAGS="$ac_cxxflags_safe"
11497
LDFLAGS="$ac_ldflags_safe"
11498
LIBS="$ac_libs_safe"
11501
ac_cpp='$CPP $CPPFLAGS'
11502
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11503
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11504
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11506
if test "$ac_qt_includes" = NO || test "$ac_qt_libraries" = NO; then
11507
ac_cv_have_qt="have_qt=no"
11510
if test "$ac_qt_includes" = NO; then
11511
if test "$ac_qt_libraries" = NO; then
11512
ac_qt_notfound="(headers and libraries)";
11514
ac_qt_notfound="(headers)";
11517
if test "x$qt_use_mt" = "xyes"; then
11519
Make sure that you have compiled Qt with thread support!"
11520
ac_qt_notfound="(library $qtlib-mt)";
11522
ac_qt_notfound="(library $qtlib)";
11526
#AC_MSG_ERROR([Qt ($qt_minversion) $ac_qt_notfound not found. Please check your installation!
11527
#For more details about this problem, look at the end of config.log.$missing_qt_mt])
11536
eval "$ac_cv_have_qt"
11538
if test "$have_qt" != yes; then
11539
{ echo "$as_me:$LINENO: result: $have_qt" >&5
11540
echo "${ECHO_T}$have_qt" >&6; };
11542
ac_cv_have_qt="have_qt=yes \
11543
ac_qt_includes=$ac_qt_includes ac_qt_libraries=$ac_qt_libraries"
11544
{ echo "$as_me:$LINENO: result: libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" >&5
11545
echo "${ECHO_T}libraries $ac_qt_libraries, headers $ac_qt_includes $USING_QT_MT" >&6; }
11547
qt_libraries="$ac_qt_libraries"
11548
qt_includes="$ac_qt_includes"
11554
if test "$qt_includes" = "$x_includes" || test -z "$qt_includes"; then
11557
QT_INCLUDES="-I$qt_includes"
11560
if test "$qt_libraries" != "$x_libraries" && test -n "$qt_libraries"; then
11561
QT_LDFLAGS="$QT_LDFLAGS -L$qt_libraries"
11563
test -z "$QT_MT_LDFLAGS" || QT_LDFLAGS="$QT_LDFLAGS $QT_MT_LDFLAGS"
11568
for dir in $qt_dirs; do
11569
qt_bindirs="$qt_bindirs:$dir/bin:$dir/src/moc"
11571
qt_bindirs="$qt_bindirs:/usr/bin:/usr/X11R6/bin:/usr/local/qt/bin"
11572
if test ! "$ac_qt_bindir" = "NO"; then
11573
qt_bindirs="$ac_qt_bindir:$qt_bindirs"
11576
# Extract the first word of "moc", so it can be a program name with args.
11577
set dummy moc; ac_word=$2
11578
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11579
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11580
if test "${ac_cv_path_MOC+set}" = set; then
11581
echo $ECHO_N "(cached) $ECHO_C" >&6
11585
ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
11588
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11589
for as_dir in $qt_bindirs
11592
test -z "$as_dir" && as_dir=.
11593
for ac_exec_ext in '' $ac_executable_extensions; do
11594
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11595
ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
11596
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11603
test -z "$ac_cv_path_MOC" && ac_cv_path_MOC="no"
11607
MOC=$ac_cv_path_MOC
11608
if test -n "$MOC"; then
11609
{ echo "$as_me:$LINENO: result: $MOC" >&5
11610
echo "${ECHO_T}$MOC" >&6; }
11612
{ echo "$as_me:$LINENO: result: no" >&5
11613
echo "${ECHO_T}no" >&6; }
11617
if test "$MOC" = no; then
11618
#AC_MSG_ERROR([No Qt meta object compiler (moc) found!
11619
#Please check whether you installed Qt correctly.
11620
#You need to have a running moc binary.
11621
#configure tried to run $ac_cv_path_moc and the test didn't
11622
#succeed. If configure shouldn't have tried this one, set
11623
#the environment variable MOC to the right one before running
11637
{ echo "$as_me:$LINENO: checking for rpath" >&5
11638
echo $ECHO_N "checking for rpath... $ECHO_C" >&6; }
11639
# Check whether --enable-rpath was given.
11640
if test "${enable_rpath+set}" = set; then
11641
enableval=$enable_rpath; USE_RPATH=$enableval
11647
if test -z "$QT_RPATH" && test "$USE_RPATH" = "yes"; then
11650
if test -n "$qt_libraries"; then
11651
QT_RPATH="$QT_RPATH -Wl,--rpath -Wl,\$(qt_libraries)"
11653
if test -n "$X_LIBS"; then
11654
QT_RPATH="$QT_RPATH -Wl,--rpath -Wl,\$(x_libraries)"
11659
{ echo "$as_me:$LINENO: result: $USE_RPATH" >&5
11660
echo "${ECHO_T}$USE_RPATH" >&6; }
11663
if test $have_qt = "no"; then
11664
if test $pinentry_qt = "yes"; then
11665
{ { echo "$as_me:$LINENO: error:
11667
*** Qt ($qt_minversion) $ac_qt_notfound not found. Please check your
11668
*** installation! For more details about this problem, look at the
11669
*** end of config.log.$missing_qt_mt
11671
echo "$as_me: error:
11673
*** Qt ($qt_minversion) $ac_qt_notfound not found. Please check your
11674
*** installation! For more details about this problem, look at the
11675
*** end of config.log.$missing_qt_mt
11677
{ (exit 1); exit 1; }; }
11682
if test $have_moc = "no"; then
11683
if test $pinentry_qt = "yes"; then
11684
{ { echo "$as_me:$LINENO: error:
11686
*** No Qt meta object compiler (moc) found!
11687
*** Please check whether you installed Qt correctly.
11688
*** You need to have a running moc binary.
11689
*** configure tried to run $ac_cv_path_moc and the test didn't
11690
*** succeed. If configure shouldn't have tried this one, set
11691
*** the environment variable MOC to the right one before running
11694
echo "$as_me: error:
11696
*** No Qt meta object compiler (moc) found!
11697
*** Please check whether you installed Qt correctly.
11698
*** You need to have a running moc binary.
11699
*** configure tried to run $ac_cv_path_moc and the test didn't
11700
*** succeed. If configure shouldn't have tried this one, set
11701
*** the environment variable MOC to the right one before running
11704
{ (exit 1); exit 1; }; }
11711
if test "$pinentry_qt" != "no"; then
11714
if test "$pinentry_qt" = "yes"; then
11715
BUILD_PINENTRY_QT_TRUE=
11716
BUILD_PINENTRY_QT_FALSE='#'
11718
BUILD_PINENTRY_QT_TRUE='#'
11719
BUILD_PINENTRY_QT_FALSE=
11723
if test "$pinentry_qt" = "yes"; then
11725
cat >>confdefs.h <<\_ACEOF
11726
#define PINENTRY_QT 1
11734
# Check whether we should build the W32 pinentry. This is actually
11735
# the simplest check as we do this only for that platform.
11738
test $have_w32_system = yes && pinentry_w32=yes
11739
if test "$pinentry_w32" = "yes"; then
11740
BUILD_PINENTRY_W32_TRUE=
11741
BUILD_PINENTRY_W32_FALSE='#'
11743
BUILD_PINENTRY_W32_TRUE='#'
11744
BUILD_PINENTRY_W32_FALSE=
11750
# Figure out the default pinentry
11752
if test "$pinentry_gtk" = "yes"; then
11753
PINENTRY_DEFAULT=pinentry-gtk
11755
if test "$pinentry_gtk_2" = "yes"; then
11756
PINENTRY_DEFAULT=pinentry-gtk-2
11758
if test "$pinentry_qt" = "yes"; then
11759
PINENTRY_DEFAULT=pinentry-qt
11761
if test "$pinentry_curses" = "yes"; then
11762
PINENTRY_DEFAULT=pinentry-curses
11764
if test "$pinentry_w32" = "yes"; then
11765
PINENTRY_DEFAULT=pinentry-w32
11767
{ { echo "$as_me:$LINENO: error: No pinentry enabled." >&5
11768
echo "$as_me: error: No pinentry enabled." >&2;}
11769
{ (exit 1); exit 1; }; }
11778
ac_config_files="$ac_config_files assuan/Makefile secmem/Makefile pinentry/Makefile curses/Makefile gtk/Makefile gtk+-2/Makefile qt/Makefile w32/Makefile doc/Makefile Makefile"
11781
cat >confcache <<\_ACEOF
11782
# This file is a shell script that caches the results of configure
11783
# tests run on this system so they can be shared between configure
11784
# scripts and configure runs, see configure's option --config-cache.
11785
# It is not useful on other systems. If it contains results you don't
11786
# want to keep, you may remove or edit it.
11788
# config.status only pays attention to the cache file if you give it
11789
# the --recheck option to rerun configure.
11791
# `ac_cv_env_foo' variables (set or unset) will be overridden when
11792
# loading this file, other *unset* `ac_cv_foo' will be assigned the
11793
# following values.
11797
# The following way of writing the cache mishandles newlines in values,
11798
# but we know of no workaround that is simple, portable, and efficient.
11799
# So, we kill variables containing newlines.
11800
# Ultrix sh set writes to stderr and can't be redirected directly,
11801
# and sets the high bit in the cache file unless we assign to the vars.
11803
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11804
eval ac_val=\$$ac_var
11808
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11809
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11812
_ | IFS | as_nl) ;; #(
11813
*) $as_unset $ac_var ;;
11819
case $as_nl`(ac_space=' '; set) 2>&1` in #(
11820
*${as_nl}ac_space=\ *)
11821
# `set' does not quote correctly, so add quotes (double-quote
11822
# substitution turns \\\\ into \\, and sed turns \\ into \).
11825
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11828
# `set' quotes correctly as required by POSIX, so do not add quotes.
11829
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11838
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11840
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11842
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11843
if test -w "$cache_file"; then
11844
test "x$cache_file" != "x/dev/null" &&
11845
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
11846
echo "$as_me: updating cache $cache_file" >&6;}
11847
cat confcache >$cache_file
11849
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11850
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11855
test "x$prefix" = xNONE && prefix=$ac_default_prefix
11856
# Let make expand exec_prefix.
11857
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11859
DEFS=-DHAVE_CONFIG_H
11863
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11864
# 1. Remove the extension, and $U if already installed.
11865
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11866
ac_i=`echo "$ac_i" | sed "$ac_script"`
11867
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11868
# will be set to the directory where LIBOBJS objects are built.
11869
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11870
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11872
LIBOBJS=$ac_libobjs
11874
LTLIBOBJS=$ac_ltlibobjs
11877
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11878
{ { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
11879
Usually this means the macro was only invoked conditionally." >&5
11880
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
11881
Usually this means the macro was only invoked conditionally." >&2;}
11882
{ (exit 1); exit 1; }; }
11884
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11885
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
11886
Usually this means the macro was only invoked conditionally." >&5
11887
echo "$as_me: error: conditional \"AMDEP\" was never defined.
11888
Usually this means the macro was only invoked conditionally." >&2;}
11889
{ (exit 1); exit 1; }; }
11891
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11892
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
11893
Usually this means the macro was only invoked conditionally." >&5
11894
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
11895
Usually this means the macro was only invoked conditionally." >&2;}
11896
{ (exit 1); exit 1; }; }
11898
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
11899
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
11900
Usually this means the macro was only invoked conditionally." >&5
11901
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
11902
Usually this means the macro was only invoked conditionally." >&2;}
11903
{ (exit 1); exit 1; }; }
11905
if test -z "${HAVE_DOSISH_SYSTEM_TRUE}" && test -z "${HAVE_DOSISH_SYSTEM_FALSE}"; then
11906
{ { echo "$as_me:$LINENO: error: conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
11907
Usually this means the macro was only invoked conditionally." >&5
11908
echo "$as_me: error: conditional \"HAVE_DOSISH_SYSTEM\" was never defined.
11909
Usually this means the macro was only invoked conditionally." >&2;}
11910
{ (exit 1); exit 1; }; }
11912
if test -z "${HAVE_W32_SYSTEM_TRUE}" && test -z "${HAVE_W32_SYSTEM_FALSE}"; then
11913
{ { echo "$as_me:$LINENO: error: conditional \"HAVE_W32_SYSTEM\" was never defined.
11914
Usually this means the macro was only invoked conditionally." >&5
11915
echo "$as_me: error: conditional \"HAVE_W32_SYSTEM\" was never defined.
11916
Usually this means the macro was only invoked conditionally." >&2;}
11917
{ (exit 1); exit 1; }; }
11919
if test -z "${BUILD_LIBPINENTRY_CURSES_TRUE}" && test -z "${BUILD_LIBPINENTRY_CURSES_FALSE}"; then
11920
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_LIBPINENTRY_CURSES\" was never defined.
11921
Usually this means the macro was only invoked conditionally." >&5
11922
echo "$as_me: error: conditional \"BUILD_LIBPINENTRY_CURSES\" was never defined.
11923
Usually this means the macro was only invoked conditionally." >&2;}
11924
{ (exit 1); exit 1; }; }
11926
if test -z "${BUILD_PINENTRY_CURSES_TRUE}" && test -z "${BUILD_PINENTRY_CURSES_FALSE}"; then
11927
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_PINENTRY_CURSES\" was never defined.
11928
Usually this means the macro was only invoked conditionally." >&5
11929
echo "$as_me: error: conditional \"BUILD_PINENTRY_CURSES\" was never defined.
11930
Usually this means the macro was only invoked conditionally." >&2;}
11931
{ (exit 1); exit 1; }; }
11933
if test -z "${FALLBACK_CURSES_TRUE}" && test -z "${FALLBACK_CURSES_FALSE}"; then
11934
{ { echo "$as_me:$LINENO: error: conditional \"FALLBACK_CURSES\" was never defined.
11935
Usually this means the macro was only invoked conditionally." >&5
11936
echo "$as_me: error: conditional \"FALLBACK_CURSES\" was never defined.
11937
Usually this means the macro was only invoked conditionally." >&2;}
11938
{ (exit 1); exit 1; }; }
11940
if test -z "${BUILD_PINENTRY_GTK_TRUE}" && test -z "${BUILD_PINENTRY_GTK_FALSE}"; then
11941
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_PINENTRY_GTK\" was never defined.
11942
Usually this means the macro was only invoked conditionally." >&5
11943
echo "$as_me: error: conditional \"BUILD_PINENTRY_GTK\" was never defined.
11944
Usually this means the macro was only invoked conditionally." >&2;}
11945
{ (exit 1); exit 1; }; }
11947
if test -z "${BUILD_PINENTRY_GTK_2_TRUE}" && test -z "${BUILD_PINENTRY_GTK_2_FALSE}"; then
11948
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_PINENTRY_GTK_2\" was never defined.
11949
Usually this means the macro was only invoked conditionally." >&5
11950
echo "$as_me: error: conditional \"BUILD_PINENTRY_GTK_2\" was never defined.
11951
Usually this means the macro was only invoked conditionally." >&2;}
11952
{ (exit 1); exit 1; }; }
11954
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
11955
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
11956
Usually this means the macro was only invoked conditionally." >&5
11957
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
11958
Usually this means the macro was only invoked conditionally." >&2;}
11959
{ (exit 1); exit 1; }; }
11961
if test -z "${BUILD_PINENTRY_QT_TRUE}" && test -z "${BUILD_PINENTRY_QT_FALSE}"; then
11962
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_PINENTRY_QT\" was never defined.
11963
Usually this means the macro was only invoked conditionally." >&5
11964
echo "$as_me: error: conditional \"BUILD_PINENTRY_QT\" was never defined.
11965
Usually this means the macro was only invoked conditionally." >&2;}
11966
{ (exit 1); exit 1; }; }
11968
if test -z "${BUILD_PINENTRY_W32_TRUE}" && test -z "${BUILD_PINENTRY_W32_FALSE}"; then
11969
{ { echo "$as_me:$LINENO: error: conditional \"BUILD_PINENTRY_W32\" was never defined.
11970
Usually this means the macro was only invoked conditionally." >&5
11971
echo "$as_me: error: conditional \"BUILD_PINENTRY_W32\" was never defined.
11972
Usually this means the macro was only invoked conditionally." >&2;}
11973
{ (exit 1); exit 1; }; }
11976
: ${CONFIG_STATUS=./config.status}
11977
ac_clean_files_save=$ac_clean_files
11978
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11979
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11980
echo "$as_me: creating $CONFIG_STATUS" >&6;}
11981
cat >$CONFIG_STATUS <<_ACEOF
11983
# Generated by $as_me.
11984
# Run this file to recreate the current configuration.
11985
# Compiler output produced by configure, useful for debugging
11986
# configure, is in config.log if it exists.
11989
ac_cs_recheck=false
11991
SHELL=\${CONFIG_SHELL-$SHELL}
11994
cat >>$CONFIG_STATUS <<\_ACEOF
11995
## --------------------- ##
11996
## M4sh Initialization. ##
11997
## --------------------- ##
11999
# Be more Bourne compatible
12000
DUALCASE=1; export DUALCASE # for MKS sh
12001
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12004
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12005
# is contrary to our usage. Disable this feature.
12006
alias -g '${1+"$@"}'='"$@"'
12007
setopt NO_GLOB_SUBST
12009
case `(set -o) 2>/dev/null` in
12010
*posix*) set -o posix ;;
12019
# Avoid depending upon Character Ranges.
12020
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12021
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12022
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12023
as_cr_digits='0123456789'
12024
as_cr_alnum=$as_cr_Letters$as_cr_digits
12026
# The user is always right.
12027
if test "${PATH_SEPARATOR+set}" != set; then
12028
echo "#! /bin/sh" >conf$$.sh
12029
echo "exit 0" >>conf$$.sh
12031
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12039
# Support unset when possible.
12040
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12048
# We need space, tab and new line, in precisely that order. Quoting is
12049
# there to prevent editors from complaining about space-tab.
12050
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12051
# splitting by setting IFS to empty value.)
12056
# Find who we are. Look in the path if we contain no directory separator.
12058
*[\\/]* ) as_myself=$0 ;;
12059
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12060
for as_dir in $PATH
12063
test -z "$as_dir" && as_dir=.
12064
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12070
# We did not find ourselves, most probably we were run as `sh COMMAND'
12071
# in which case we are not to be found in the path.
12072
if test "x$as_myself" = x; then
12075
if test ! -f "$as_myself"; then
12076
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12077
{ (exit 1); exit 1; }
12080
# Work around bugs in pre-3.0 UWIN ksh.
12081
for as_var in ENV MAIL MAILPATH
12082
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12090
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12091
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12092
LC_TELEPHONE LC_TIME
12094
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12095
eval $as_var=C; export $as_var
12097
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12101
# Required to use basename.
12102
if expr a : '\(a\)' >/dev/null 2>&1 &&
12103
test "X`expr 00001 : '.*\(...\)'`" = X001; then
12109
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12110
as_basename=basename
12116
# Name of the executable.
12117
as_me=`$as_basename -- "$0" ||
12118
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12119
X"$0" : 'X\(//\)$' \| \
12120
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12122
sed '/^.*\/\([^/][^/]*\)\/*$/{
12141
as_lineno_1=$LINENO
12142
as_lineno_2=$LINENO
12143
test "x$as_lineno_1" != "x$as_lineno_2" &&
12144
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12146
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12147
# uniformly replaced by the line number. The first 'sed' inserts a
12148
# line-number line after each line using $LINENO; the second 'sed'
12149
# does the real work. The second script uses 'N' to pair each
12150
# line-number line with the line containing $LINENO, and appends
12151
# trailing '-' during substitution so that $LINENO is not a special
12152
# case at line end.
12153
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12154
# scripts with optimization help from Paolo Bonzini. Blame Lee
12155
# E. McMahon (1931-1989) for sed's syntax. :-)
12167
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12170
' >$as_me.lineno &&
12171
chmod +x "$as_me.lineno" ||
12172
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12173
{ (exit 1); exit 1; }; }
12175
# Don't try to exec as it changes $[0], causing all sort of problems
12176
# (the dirname of $[0] is not the place where we might find the
12177
# original and so on. Autoconf is especially sensitive to this).
12178
. "./$as_me.lineno"
12179
# Exit status is that of the last command.
12184
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12190
ECHO_C= ECHO_N= ECHO_T=
12191
case `echo -n x` in
12193
case `echo 'x\c'` in
12194
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
12201
if expr a : '\(a\)' >/dev/null 2>&1 &&
12202
test "X`expr 00001 : '.*\(...\)'`" = X001; then
12208
rm -f conf$$ conf$$.exe conf$$.file
12209
if test -d conf$$.dir; then
12210
rm -f conf$$.dir/conf$$.file
12216
if ln -s conf$$.file conf$$ 2>/dev/null; then
12218
# ... but there are two gotchas:
12219
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12220
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12221
# In both cases, we have to default to `cp -p'.
12222
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12224
elif ln conf$$.file conf$$ 2>/dev/null; then
12229
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12230
rmdir conf$$.dir 2>/dev/null
12232
if mkdir -p . 2>/dev/null; then
12235
test -d ./-p && rmdir ./-p
12239
if test -x / >/dev/null 2>&1; then
12240
as_test_x='test -x'
12242
if ls -dL / >/dev/null 2>&1; then
12249
if test -d "$1"; then
12255
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12256
???[sx]*):;;*)false;;esac;fi
12260
as_executable_p=$as_test_x
12262
# Sed expression to map a string onto a valid CPP name.
12263
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12265
# Sed expression to map a string onto a valid variable name.
12266
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12271
# Save the log message, to keep $[0] and so on meaningful, and to
12272
# report actual input values of CONFIG_FILES etc. instead of their
12273
# values after options handling.
12275
This file was extended by pinentry-x2go $as_me 0.7.5.0, which was
12276
generated by GNU Autoconf 2.61. Invocation command line was
12278
CONFIG_FILES = $CONFIG_FILES
12279
CONFIG_HEADERS = $CONFIG_HEADERS
12280
CONFIG_LINKS = $CONFIG_LINKS
12281
CONFIG_COMMANDS = $CONFIG_COMMANDS
12284
on `(hostname || uname -n) 2>/dev/null | sed 1q`
12289
cat >>$CONFIG_STATUS <<_ACEOF
12290
# Files that config.status was made for.
12291
config_files="$ac_config_files"
12292
config_headers="$ac_config_headers"
12293
config_commands="$ac_config_commands"
12297
cat >>$CONFIG_STATUS <<\_ACEOF
12299
\`$as_me' instantiates files from templates according to the
12300
current configuration.
12302
Usage: $0 [OPTIONS] [FILE]...
12304
-h, --help print this help, then exit
12305
-V, --version print version number and configuration settings, then exit
12306
-q, --quiet do not print progress messages
12307
-d, --debug don't remove temporary files
12308
--recheck update $as_me by reconfiguring in the same conditions
12309
--file=FILE[:TEMPLATE]
12310
instantiate the configuration file FILE
12311
--header=FILE[:TEMPLATE]
12312
instantiate the configuration header FILE
12314
Configuration files:
12317
Configuration headers:
12320
Configuration commands:
12323
Report bugs to <bug-autoconf@gnu.org>."
12326
cat >>$CONFIG_STATUS <<_ACEOF
12328
pinentry-x2go config.status 0.7.5.0
12329
configured by $0, generated by GNU Autoconf 2.61,
12330
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12332
Copyright (C) 2006 Free Software Foundation, Inc.
12333
This config.status script is free software; the Free Software Foundation
12334
gives unlimited permission to copy, distribute and modify it."
12342
cat >>$CONFIG_STATUS <<\_ACEOF
12343
# If no file are specified by the user, then we need to provide default
12344
# value. By we need to know if files were specified by the user.
12350
ac_option=`expr "X$1" : 'X\([^=]*\)='`
12351
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12362
# Handling of the options.
12363
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12365
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12366
echo "$ac_cs_version"; exit ;;
12367
--debug | --debu | --deb | --de | --d | -d )
12369
--file | --fil | --fi | --f )
12371
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
12372
ac_need_defaults=false;;
12373
--header | --heade | --head | --hea )
12375
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
12376
ac_need_defaults=false;;
12378
# Conflict between --help and --header
12379
{ echo "$as_me: error: ambiguous option: $1
12380
Try \`$0 --help' for more information." >&2
12381
{ (exit 1); exit 1; }; };;
12382
--help | --hel | -h )
12383
echo "$ac_cs_usage"; exit ;;
12384
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
12385
| -silent | --silent | --silen | --sile | --sil | --si | --s)
12388
# This is an error.
12389
-*) { echo "$as_me: error: unrecognized option: $1
12390
Try \`$0 --help' for more information." >&2
12391
{ (exit 1); exit 1; }; } ;;
12393
*) ac_config_targets="$ac_config_targets $1"
12394
ac_need_defaults=false ;;
12400
ac_configure_extra_args=
12402
if $ac_cs_silent; then
12404
ac_configure_extra_args="$ac_configure_extra_args --silent"
12408
cat >>$CONFIG_STATUS <<_ACEOF
12409
if \$ac_cs_recheck; then
12410
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
12411
CONFIG_SHELL=$SHELL
12412
export CONFIG_SHELL
12413
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12417
cat >>$CONFIG_STATUS <<\_ACEOF
12421
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12422
## Running $as_me. ##
12428
cat >>$CONFIG_STATUS <<_ACEOF
12432
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12436
cat >>$CONFIG_STATUS <<\_ACEOF
12438
# Handling of arguments.
12439
for ac_config_target in $ac_config_targets
12441
case $ac_config_target in
12442
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12443
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12444
"assuan/Makefile") CONFIG_FILES="$CONFIG_FILES assuan/Makefile" ;;
12445
"secmem/Makefile") CONFIG_FILES="$CONFIG_FILES secmem/Makefile" ;;
12446
"pinentry/Makefile") CONFIG_FILES="$CONFIG_FILES pinentry/Makefile" ;;
12447
"curses/Makefile") CONFIG_FILES="$CONFIG_FILES curses/Makefile" ;;
12448
"gtk/Makefile") CONFIG_FILES="$CONFIG_FILES gtk/Makefile" ;;
12449
"gtk+-2/Makefile") CONFIG_FILES="$CONFIG_FILES gtk+-2/Makefile" ;;
12450
"qt/Makefile") CONFIG_FILES="$CONFIG_FILES qt/Makefile" ;;
12451
"w32/Makefile") CONFIG_FILES="$CONFIG_FILES w32/Makefile" ;;
12452
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12453
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12455
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
12456
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
12457
{ (exit 1); exit 1; }; };;
12462
# If the user did not use the arguments to specify the items to instantiate,
12463
# then the envvar interface is used. Set only those that are not.
12464
# We use the long form for the default assignment because of an extremely
12465
# bizarre bug on SunOS 4.1.3.
12466
if $ac_need_defaults; then
12467
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12468
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12469
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12472
# Have a temporary directory for convenience. Make it in the build tree
12473
# simply because there is no reason against having it here, and in addition,
12474
# creating and moving files from /tmp can sometimes cause problems.
12475
# Hook for its removal unless debugging.
12476
# Note that there is a small window in which the directory will not be cleaned:
12477
# after its creation but before its name has been assigned to `$tmp'.
12481
trap 'exit_status=$?
12482
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12484
trap '{ (exit 1); exit 1; }' 1 2 13 15
12486
# Create a (secure) tmp directory for tmp files.
12489
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12490
test -n "$tmp" && test -d "$tmp"
12493
tmp=./conf$$-$RANDOM
12494
(umask 077 && mkdir "$tmp")
12497
echo "$me: cannot create a temporary directory in ." >&2
12498
{ (exit 1); exit 1; }
12502
# Set up the sed scripts for CONFIG_FILES section.
12505
# No need to generate the scripts if there are no CONFIG_FILES.
12506
# This happens for instance when ./config.status config.h
12507
if test -n "$CONFIG_FILES"; then
12514
for ac_last_try in false false false false false :; do
12515
cat >conf$$subs.sed <<_ACEOF
12516
SHELL!$SHELL$ac_delim
12517
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
12518
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
12519
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
12520
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
12521
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
12522
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
12523
exec_prefix!$exec_prefix$ac_delim
12524
prefix!$prefix$ac_delim
12525
program_transform_name!$program_transform_name$ac_delim
12526
bindir!$bindir$ac_delim
12527
sbindir!$sbindir$ac_delim
12528
libexecdir!$libexecdir$ac_delim
12529
datarootdir!$datarootdir$ac_delim
12530
datadir!$datadir$ac_delim
12531
sysconfdir!$sysconfdir$ac_delim
12532
sharedstatedir!$sharedstatedir$ac_delim
12533
localstatedir!$localstatedir$ac_delim
12534
includedir!$includedir$ac_delim
12535
oldincludedir!$oldincludedir$ac_delim
12536
docdir!$docdir$ac_delim
12537
infodir!$infodir$ac_delim
12538
htmldir!$htmldir$ac_delim
12539
dvidir!$dvidir$ac_delim
12540
pdfdir!$pdfdir$ac_delim
12541
psdir!$psdir$ac_delim
12542
libdir!$libdir$ac_delim
12543
localedir!$localedir$ac_delim
12544
mandir!$mandir$ac_delim
12545
DEFS!$DEFS$ac_delim
12546
ECHO_C!$ECHO_C$ac_delim
12547
ECHO_N!$ECHO_N$ac_delim
12548
ECHO_T!$ECHO_T$ac_delim
12549
LIBS!$LIBS$ac_delim
12550
build_alias!$build_alias$ac_delim
12551
host_alias!$host_alias$ac_delim
12552
target_alias!$target_alias$ac_delim
12553
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
12554
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
12555
INSTALL_DATA!$INSTALL_DATA$ac_delim
12556
am__isrc!$am__isrc$ac_delim
12557
CYGPATH_W!$CYGPATH_W$ac_delim
12558
PACKAGE!$PACKAGE$ac_delim
12559
VERSION!$VERSION$ac_delim
12560
ACLOCAL!$ACLOCAL$ac_delim
12561
AUTOCONF!$AUTOCONF$ac_delim
12562
AUTOMAKE!$AUTOMAKE$ac_delim
12563
AUTOHEADER!$AUTOHEADER$ac_delim
12564
MAKEINFO!$MAKEINFO$ac_delim
12565
install_sh!$install_sh$ac_delim
12566
STRIP!$STRIP$ac_delim
12567
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
12568
mkdir_p!$mkdir_p$ac_delim
12570
SET_MAKE!$SET_MAKE$ac_delim
12571
am__leading_dot!$am__leading_dot$ac_delim
12572
AMTAR!$AMTAR$ac_delim
12573
am__tar!$am__tar$ac_delim
12574
am__untar!$am__untar$ac_delim
12575
MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
12576
MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
12577
MAINT!$MAINT$ac_delim
12578
build!$build$ac_delim
12579
build_cpu!$build_cpu$ac_delim
12580
build_vendor!$build_vendor$ac_delim
12581
build_os!$build_os$ac_delim
12582
host!$host$ac_delim
12583
host_cpu!$host_cpu$ac_delim
12584
host_vendor!$host_vendor$ac_delim
12585
host_os!$host_os$ac_delim
12587
CFLAGS!$CFLAGS$ac_delim
12588
LDFLAGS!$LDFLAGS$ac_delim
12589
CPPFLAGS!$CPPFLAGS$ac_delim
12590
ac_ct_CC!$ac_ct_CC$ac_delim
12591
EXEEXT!$EXEEXT$ac_delim
12592
OBJEXT!$OBJEXT$ac_delim
12593
DEPDIR!$DEPDIR$ac_delim
12594
am__include!$am__include$ac_delim
12595
am__quote!$am__quote$ac_delim
12596
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
12597
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
12598
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
12599
CCDEPMODE!$CCDEPMODE$ac_delim
12600
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
12601
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
12603
RANLIB!$RANLIB$ac_delim
12605
CXXFLAGS!$CXXFLAGS$ac_delim
12606
ac_ct_CXX!$ac_ct_CXX$ac_delim
12607
CXXDEPMODE!$CXXDEPMODE$ac_delim
12608
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
12609
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
12610
LN_S!$LN_S$ac_delim
12611
WINDRES!$WINDRES$ac_delim
12612
HAVE_DOSISH_SYSTEM_TRUE!$HAVE_DOSISH_SYSTEM_TRUE$ac_delim
12615
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12617
elif $ac_last_try; then
12618
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12619
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12620
{ (exit 1); exit 1; }; }
12622
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12626
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12627
if test -n "$ac_eof"; then
12628
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12629
ac_eof=`expr $ac_eof + 1`
12632
cat >>$CONFIG_STATUS <<_ACEOF
12633
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12634
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12637
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12638
s/^/s,@/; s/!/@,|#_!!_#|/
12641
s/'"$ac_delim"'$/,g/; t
12643
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12644
' >>$CONFIG_STATUS <conf$$subs.sed
12645
rm -f conf$$subs.sed
12646
cat >>$CONFIG_STATUS <<_ACEOF
12652
for ac_last_try in false false false false false :; do
12653
cat >conf$$subs.sed <<_ACEOF
12654
HAVE_DOSISH_SYSTEM_FALSE!$HAVE_DOSISH_SYSTEM_FALSE$ac_delim
12655
HAVE_W32_SYSTEM_TRUE!$HAVE_W32_SYSTEM_TRUE$ac_delim
12656
HAVE_W32_SYSTEM_FALSE!$HAVE_W32_SYSTEM_FALSE$ac_delim
12657
GREP!$GREP$ac_delim
12658
EGREP!$EGREP$ac_delim
12659
SETCAP!$SETCAP$ac_delim
12660
LIBCAP!$LIBCAP$ac_delim
12661
NCURSES_INCLUDE!$NCURSES_INCLUDE$ac_delim
12662
LIBNCURSES!$LIBNCURSES$ac_delim
12663
LIBTERMCAP!$LIBTERMCAP$ac_delim
12664
LIBCURSES!$LIBCURSES$ac_delim
12665
BUILD_LIBPINENTRY_CURSES_TRUE!$BUILD_LIBPINENTRY_CURSES_TRUE$ac_delim
12666
BUILD_LIBPINENTRY_CURSES_FALSE!$BUILD_LIBPINENTRY_CURSES_FALSE$ac_delim
12667
BUILD_PINENTRY_CURSES_TRUE!$BUILD_PINENTRY_CURSES_TRUE$ac_delim
12668
BUILD_PINENTRY_CURSES_FALSE!$BUILD_PINENTRY_CURSES_FALSE$ac_delim
12669
FALLBACK_CURSES_TRUE!$FALLBACK_CURSES_TRUE$ac_delim
12670
FALLBACK_CURSES_FALSE!$FALLBACK_CURSES_FALSE$ac_delim
12671
GLIB_CONFIG!$GLIB_CONFIG$ac_delim
12672
GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim
12673
GLIB_LIBS!$GLIB_LIBS$ac_delim
12674
GTK_CONFIG!$GTK_CONFIG$ac_delim
12675
GTK_CFLAGS!$GTK_CFLAGS$ac_delim
12676
GTK_LIBS!$GTK_LIBS$ac_delim
12677
BUILD_PINENTRY_GTK_TRUE!$BUILD_PINENTRY_GTK_TRUE$ac_delim
12678
BUILD_PINENTRY_GTK_FALSE!$BUILD_PINENTRY_GTK_FALSE$ac_delim
12679
LIBICONV!$LIBICONV$ac_delim
12680
LTLIBICONV!$LTLIBICONV$ac_delim
12681
PKG_CONFIG!$PKG_CONFIG$ac_delim
12682
GTK2CFLAGS!$GTK2CFLAGS$ac_delim
12683
GTK2LIBS!$GTK2LIBS$ac_delim
12684
BUILD_PINENTRY_GTK_2_TRUE!$BUILD_PINENTRY_GTK_2_TRUE$ac_delim
12685
BUILD_PINENTRY_GTK_2_FALSE!$BUILD_PINENTRY_GTK_2_FALSE$ac_delim
12686
CXXCPP!$CXXCPP$ac_delim
12687
XMKMF!$XMKMF$ac_delim
12688
X_CFLAGS!$X_CFLAGS$ac_delim
12689
X_PRE_LIBS!$X_PRE_LIBS$ac_delim
12690
X_LIBS!$X_LIBS$ac_delim
12691
X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
12692
QT_CXXFLAGS!$QT_CXXFLAGS$ac_delim
12693
QT_LDFLAGS!$QT_LDFLAGS$ac_delim
12694
QT_LIBS!$QT_LIBS$ac_delim
12695
QTE_NORTTI!$QTE_NORTTI$ac_delim
12696
LIBPTHREAD!$LIBPTHREAD$ac_delim
12697
USE_THREADS!$USE_THREADS$ac_delim
12698
QT_MT_LDFLAGS!$QT_MT_LDFLAGS$ac_delim
12699
QT_MT_LIBS!$QT_MT_LIBS$ac_delim
12700
qt_libraries!$qt_libraries$ac_delim
12701
qt_includes!$qt_includes$ac_delim
12702
QT_INCLUDES!$QT_INCLUDES$ac_delim
12704
LIB_QPE!$LIB_QPE$ac_delim
12705
x_libraries!$x_libraries$ac_delim
12706
QT_RPATH!$QT_RPATH$ac_delim
12707
BUILD_PINENTRY_QT_TRUE!$BUILD_PINENTRY_QT_TRUE$ac_delim
12708
BUILD_PINENTRY_QT_FALSE!$BUILD_PINENTRY_QT_FALSE$ac_delim
12709
BUILD_PINENTRY_W32_TRUE!$BUILD_PINENTRY_W32_TRUE$ac_delim
12710
BUILD_PINENTRY_W32_FALSE!$BUILD_PINENTRY_W32_FALSE$ac_delim
12711
PINENTRY_DEFAULT!$PINENTRY_DEFAULT$ac_delim
12712
LIBOBJS!$LIBOBJS$ac_delim
12713
LTLIBOBJS!$LTLIBOBJS$ac_delim
12716
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 60; then
12718
elif $ac_last_try; then
12719
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12720
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12721
{ (exit 1); exit 1; }; }
12723
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12727
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12728
if test -n "$ac_eof"; then
12729
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12730
ac_eof=`expr $ac_eof + 1`
12733
cat >>$CONFIG_STATUS <<_ACEOF
12734
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12735
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12738
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12739
s/^/s,@/; s/!/@,|#_!!_#|/
12742
s/'"$ac_delim"'$/,g/; t
12744
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12745
' >>$CONFIG_STATUS <conf$$subs.sed
12746
rm -f conf$$subs.sed
12747
cat >>$CONFIG_STATUS <<_ACEOF
12754
# VPATH may cause trouble with some makes, so we remove $(srcdir),
12755
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12756
# trailing colons and then remove the whole line if VPATH becomes empty
12757
# (actually we leave an empty line to preserve line numbers).
12758
if test "x$srcdir" = x.; then
12759
ac_vpsub='/^[ ]*VPATH[ ]*=/{
12760
s/:*\$(srcdir):*/:/
12761
s/:*\${srcdir}:*/:/
12763
s/^\([^=]*=[ ]*\):*/\1/
12769
cat >>$CONFIG_STATUS <<\_ACEOF
12770
fi # test -n "$CONFIG_FILES"
12773
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
12776
:[FHLC]) ac_mode=$ac_tag; continue;;
12778
case $ac_mode$ac_tag in
12780
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12781
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12782
{ (exit 1); exit 1; }; };;
12783
:[FH]-) ac_tag=-:-;;
12784
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12801
-) ac_f="$tmp/stdin";;
12802
*) # Look for the file first in the build tree, then in the source tree
12803
# (if the path is not absolute). The absolute path cannot be DOS-style,
12804
# because $ac_f cannot contain `:'.
12808
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12810
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12811
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12812
{ (exit 1); exit 1; }; };;
12814
ac_file_inputs="$ac_file_inputs $ac_f"
12817
# Let's still pretend it is `configure' which instantiates (i.e., don't
12818
# use $as_me), people would be surprised to read:
12819
# /* config.h. Generated by config.status. */
12820
configure_input="Generated from "`IFS=:
12821
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12822
if test x"$ac_file" != x-; then
12823
configure_input="$ac_file. $configure_input"
12824
{ echo "$as_me:$LINENO: creating $ac_file" >&5
12825
echo "$as_me: creating $ac_file" >&6;}
12829
*:-:* | *:-) cat >"$tmp/stdin";;
12834
ac_dir=`$as_dirname -- "$ac_file" ||
12835
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12836
X"$ac_file" : 'X\(//\)[^/]' \| \
12837
X"$ac_file" : 'X\(//\)$' \| \
12838
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12840
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12844
/^X\(\/\/\)[^/].*/{
12859
-*) as_dir=./$as_dir;;
12861
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12865
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12866
*) as_qdir=$as_dir;;
12868
as_dirs="'$as_qdir' $as_dirs"
12869
as_dir=`$as_dirname -- "$as_dir" ||
12870
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12871
X"$as_dir" : 'X\(//\)[^/]' \| \
12872
X"$as_dir" : 'X\(//\)$' \| \
12873
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12875
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12879
/^X\(\/\/\)[^/].*/{
12892
test -d "$as_dir" && break
12894
test -z "$as_dirs" || eval "mkdir $as_dirs"
12895
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12896
echo "$as_me: error: cannot create directory $as_dir" >&2;}
12897
{ (exit 1); exit 1; }; }; }
12901
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12903
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12904
# A ".." for each directory in $ac_dir_suffix.
12905
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12906
case $ac_top_builddir_sub in
12907
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12908
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12911
ac_abs_top_builddir=$ac_pwd
12912
ac_abs_builddir=$ac_pwd$ac_dir_suffix
12913
# for backward compatibility:
12914
ac_top_builddir=$ac_top_build_prefix
12917
.) # We are building in place.
12919
ac_top_srcdir=$ac_top_builddir_sub
12920
ac_abs_top_srcdir=$ac_pwd ;;
12921
[\\/]* | ?:[\\/]* ) # Absolute name.
12922
ac_srcdir=$srcdir$ac_dir_suffix;
12923
ac_top_srcdir=$srcdir
12924
ac_abs_top_srcdir=$srcdir ;;
12925
*) # Relative name.
12926
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12927
ac_top_srcdir=$ac_top_build_prefix$srcdir
12928
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12930
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12940
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12941
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12943
ac_MKDIR_P=$MKDIR_P
12945
[\\/$]* | ?:[\\/]* ) ;;
12946
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12950
cat >>$CONFIG_STATUS <<\_ACEOF
12951
# If the template does not know about datarootdir, expand it.
12952
# FIXME: This hack should be removed a few years after 2.60.
12953
ac_datarootdir_hack=; ac_datarootdir_seen=
12955
case `sed -n '/datarootdir/ {
12964
' $ac_file_inputs` in
12965
*datarootdir*) ac_datarootdir_seen=yes;;
12966
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12967
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12968
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12970
cat >>$CONFIG_STATUS <<_ACEOF
12971
ac_datarootdir_hack='
12972
s&@datadir@&$datadir&g
12973
s&@docdir@&$docdir&g
12974
s&@infodir@&$infodir&g
12975
s&@localedir@&$localedir&g
12976
s&@mandir@&$mandir&g
12977
s&\\\${datarootdir}&$datarootdir&g' ;;
12981
# Neutralize VPATH when `$srcdir' = `.'.
12982
# Shell code in configure.ac might set extrasub.
12983
# FIXME: do we really want to maintain this feature?
12984
cat >>$CONFIG_STATUS <<_ACEOF
12988
cat >>$CONFIG_STATUS <<\_ACEOF
12990
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12991
s&@configure_input@&$configure_input&;t t
12992
s&@top_builddir@&$ac_top_builddir_sub&;t t
12993
s&@srcdir@&$ac_srcdir&;t t
12994
s&@abs_srcdir@&$ac_abs_srcdir&;t t
12995
s&@top_srcdir@&$ac_top_srcdir&;t t
12996
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12997
s&@builddir@&$ac_builddir&;t t
12998
s&@abs_builddir@&$ac_abs_builddir&;t t
12999
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13000
s&@INSTALL@&$ac_INSTALL&;t t
13001
s&@MKDIR_P@&$ac_MKDIR_P&;t t
13002
$ac_datarootdir_hack
13003
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
13005
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13006
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13007
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13008
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13009
which seems to be undefined. Please make sure it is defined." >&5
13010
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13011
which seems to be undefined. Please make sure it is defined." >&2;}
13015
-) cat "$tmp/out"; rm -f "$tmp/out";;
13016
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13025
# Transform confdefs.h into a sed script `conftest.defines', that
13026
# substitutes the proper values into config.h.in to produce config.h.
13027
rm -f conftest.defines conftest.tail
13028
# First, append a space to every undef/define line, to ease matching.
13029
echo 's/$/ /' >conftest.defines
13030
# Then, protect against being on the right side of a sed subst, or in
13031
# an unquoted here document, in config.status. If some macros were
13032
# called several times there might be several #defines for the same
13033
# symbol, which is useless. But do not sort them, since the last
13034
# AC_DEFINE must be honored.
13035
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13036
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13037
# NAME is the cpp macro being defined, VALUE is the value it is being given.
13038
# PARAMS is the parameter list in the macro definition--in most cases, it's
13039
# just an empty string.
13040
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
13041
ac_dB='\\)[ (].*,\\1define\\2'
13049
s/^[ ]*#[ ]*define[ ][ ]*//
13054
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13055
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13056
' >>conftest.defines
13058
# Remove the space that was appended to ease matching.
13059
# Then replace #undef with comments. This is necessary, for
13060
# example, in the case of _POSIX_SOURCE, which is predefined and required
13061
# on some systems where configure will not decide to define it.
13062
# (The regexp can be short, since the line contains either #define or #undef.)
13064
s,^[ #]*u.*,/* & */,' >>conftest.defines
13066
# Break up conftest.defines:
13067
ac_max_sed_lines=50
13069
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13070
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13071
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13073
ac_in='$ac_file_inputs'
13074
ac_out='"$tmp/out1"'
13075
ac_nxt='"$tmp/out2"'
13079
# Write a here document:
13080
cat >>$CONFIG_STATUS <<_ACEOF
13081
# First, check the format of the line:
13082
cat >"\$tmp/defines.sed" <<\\CEOF
13083
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
13084
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
13088
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
13090
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13091
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
13092
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
13093
grep . conftest.tail >/dev/null || break
13094
rm -f conftest.defines
13095
mv conftest.tail conftest.defines
13097
rm -f conftest.defines conftest.tail
13099
echo "ac_result=$ac_in" >>$CONFIG_STATUS
13100
cat >>$CONFIG_STATUS <<\_ACEOF
13101
if test x"$ac_file" != x-; then
13102
echo "/* $configure_input */" >"$tmp/config.h"
13103
cat "$ac_result" >>"$tmp/config.h"
13104
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
13105
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13106
echo "$as_me: $ac_file is unchanged" >&6;}
13109
mv "$tmp/config.h" $ac_file
13112
echo "/* $configure_input */"
13116
# Compute $ac_file's index in $config_headers.
13118
for _am_header in $config_headers :; do
13119
case $_am_header in
13120
$ac_file | $ac_file:* )
13123
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
13126
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
13127
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13128
X$ac_file : 'X\(//\)[^/]' \| \
13129
X$ac_file : 'X\(//\)$' \| \
13130
X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
13132
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13136
/^X\(\/\/\)[^/].*/{
13148
s/.*/./; q'`/stamp-h$_am_stamp_count
13151
:C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
13152
echo "$as_me: executing $ac_file commands" >&6;}
13157
case $ac_file$ac_mode in
13158
"depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
13159
# Strip MF so we end up with the name of the file.
13160
mf=`echo "$mf" | sed -e 's/:.*$//'`
13161
# Check whether this is an Automake generated Makefile or not.
13162
# We used to match only the files named `Makefile.in', but
13163
# some people rename them; so instead we look at the file content.
13164
# Grep'ing the first line is not enough: some people post-process
13165
# each Makefile.in and add a new line on top of each file to say so.
13166
# Grep'ing the whole file is not good either: AIX grep has a line
13167
# limit of 2048, but all sed's we know have understand at least 4000.
13168
if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
13169
dirpart=`$as_dirname -- "$mf" ||
13170
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13171
X"$mf" : 'X\(//\)[^/]' \| \
13172
X"$mf" : 'X\(//\)$' \| \
13173
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13175
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13179
/^X\(\/\/\)[^/].*/{
13195
# Extract the definition of DEPDIR, am__include, and am__quote
13196
# from the Makefile without running `make'.
13197
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13198
test -z "$DEPDIR" && continue
13199
am__include=`sed -n 's/^am__include = //p' < "$mf"`
13200
test -z "am__include" && continue
13201
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13202
# When using ansi2knr, U may be empty or an underscore; expand it
13203
U=`sed -n 's/^U = //p' < "$mf"`
13204
# Find all dependency output files, they are included files with
13205
# $(DEPDIR) in their names. We invoke sed twice because it is the
13206
# simplest approach to changing $(DEPDIR) to its actual value in the
13208
for file in `sed -n "
13209
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13210
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13211
# Make sure the directory exists.
13212
test -f "$dirpart/$file" && continue
13213
fdir=`$as_dirname -- "$file" ||
13214
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13215
X"$file" : 'X\(//\)[^/]' \| \
13216
X"$file" : 'X\(//\)$' \| \
13217
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13219
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13223
/^X\(\/\/\)[^/].*/{
13236
{ as_dir=$dirpart/$fdir
13238
-*) as_dir=./$as_dir;;
13240
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13244
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13245
*) as_qdir=$as_dir;;
13247
as_dirs="'$as_qdir' $as_dirs"
13248
as_dir=`$as_dirname -- "$as_dir" ||
13249
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13250
X"$as_dir" : 'X\(//\)[^/]' \| \
13251
X"$as_dir" : 'X\(//\)$' \| \
13252
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13254
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13258
/^X\(\/\/\)[^/].*/{
13271
test -d "$as_dir" && break
13273
test -z "$as_dirs" || eval "mkdir $as_dirs"
13274
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13275
echo "$as_me: error: cannot create directory $as_dir" >&2;}
13276
{ (exit 1); exit 1; }; }; }
13277
# echo "creating $dirpart/$file"
13278
echo '# dummy' > "$dirpart/$file"
13287
{ (exit 0); exit 0; }
13289
chmod +x $CONFIG_STATUS
13290
ac_clean_files=$ac_clean_files_save
13293
# configure is writing to config.log, and then calls config.status.
13294
# config.status does its own redirection, appending to config.log.
13295
# Unfortunately, on DOS this fails, as config.log is still kept open
13296
# by configure, so config.status won't be able to write to it; its
13297
# output is simply discarded. So we exec the FD to /dev/null,
13298
# effectively closing config.log, so it can be properly (re)opened and
13299
# appended to by config.status. When coming back to configure, we
13300
# need to make the FD available again.
13301
if test "$no_create" != yes; then
13303
ac_config_status_args=
13304
test "$silent" = yes &&
13305
ac_config_status_args="$ac_config_status_args --quiet"
13307
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13309
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
13310
# would make configure fail if this is the last instruction.
13311
$ac_cs_success || { (exit 1); exit 1; }
13315
{ echo "$as_me:$LINENO:
13316
Pinentry v${VERSION} has been configured as follows:
13318
Curses Pinentry: $pinentry_curses
13319
GTK+ Pinentry: $pinentry_gtk
13320
GTK+-2 Pinentry: $pinentry_gtk_2
13321
Qt Pinentry: $pinentry_qt
13322
W32 Pinentry: $pinentry_w32
13324
Fallback to Curses: $fallback_curses
13326
Default Pinentry: $PINENTRY_DEFAULT
13329
BPinentry v${VERSION} has been configured as follows:
13331
Curses Pinentry: $pinentry_curses
13332
GTK+ Pinentry: $pinentry_gtk
13333
GTK+-2 Pinentry: $pinentry_gtk_2
13334
Qt Pinentry: $pinentry_qt
13335
W32 Pinentry: $pinentry_w32
13337
Fallback to Curses: $fallback_curses
13339
Default Pinentry: $PINENTRY_DEFAULT