2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.53.
5
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6
# Free Software Foundation, Inc.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
10
if expr a : '\(a\)' >/dev/null 2>&1; then
17
## --------------------- ##
18
## M4sh Initialization. ##
19
## --------------------- ##
21
# Be Bourne compatible
22
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30
# Support unset when possible.
31
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
37
(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
38
{ $as_unset LANG || test "${LANG+set}" != set; } ||
39
{ LANG=C; export LANG; }
40
(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
41
{ $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
42
{ LC_ALL=C; export LC_ALL; }
43
(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
44
{ $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
45
{ LC_TIME=C; export LC_TIME; }
46
(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
47
{ $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
48
{ LC_CTYPE=C; export LC_CTYPE; }
49
(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
50
{ $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
51
{ LANGUAGE=C; export LANGUAGE; }
52
(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
53
{ $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
54
{ LC_COLLATE=C; export LC_COLLATE; }
55
(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
56
{ $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
57
{ LC_NUMERIC=C; export LC_NUMERIC; }
58
(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
59
{ $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
60
{ LC_MESSAGES=C; export LC_MESSAGES; }
63
# Name of the executable.
64
as_me=`(basename "$0") 2>/dev/null ||
65
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
66
X"$0" : 'X\(//\)$' \| \
67
X"$0" : 'X\(/\)$' \| \
68
. : '\(.\)' 2>/dev/null ||
70
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
71
/^X\/\(\/\/\)$/{ s//\1/; q; }
72
/^X\/\(\/\).*/{ s//\1/; q; }
75
# PATH needs CR, and LINENO needs CR and PATH.
76
# Avoid depending upon Character Ranges.
77
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
78
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
79
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
80
as_cr_digits='0123456789'
81
as_cr_alnum=$as_cr_Letters$as_cr_digits
83
# The user is always right.
84
if test "${PATH_SEPARATOR+set}" != set; then
85
echo "#! /bin/sh" >conftest.sh
86
echo "exit 0" >>conftest.sh
88
if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
99
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
100
test "x$as_lineno_1" != "x$as_lineno_2" &&
101
test "x$as_lineno_3" = "x$as_lineno_2" || {
102
# Find who we are. Look in the path if we contain no path at all
105
*[\\/]* ) as_myself=$0 ;;
106
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110
test -z "$as_dir" && as_dir=.
111
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116
# We did not find ourselves, most probably we were run as `sh COMMAND'
117
# in which case we are not to be found in the path.
118
if test "x$as_myself" = x; then
121
if test ! -f "$as_myself"; then
122
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
123
{ (exit 1); exit 1; }; }
125
case $CONFIG_SHELL in
127
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
128
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
131
test -z "$as_dir" && as_dir=.
132
for as_base in sh bash ksh sh5; do
135
if ("$as_dir/$as_base" -c '
138
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
139
test "x$as_lineno_1" != "x$as_lineno_2" &&
140
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
141
CONFIG_SHELL=$as_dir/$as_base
143
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
151
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
152
# uniformly replaced by the line number. The first 'sed' inserts a
153
# line-number line before each line; the second 'sed' does the real
154
# work. The second script uses 'N' to pair each line-number line
155
# with the numbered line, and appends trailing '-' during
156
# substitution so that $LINENO is not a special case at line end.
157
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
158
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
159
sed '=' <$as_myself |
164
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
167
s,^['$as_cr_digits']*\n,,
169
chmod +x $as_me.lineno ||
170
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
171
{ (exit 1); exit 1; }; }
173
# Don't try to exec as it changes $[0], causing all sort of problems
174
# (the dirname of $[0] is not the place where we might find the
175
# original and so on. Autoconf is especially sensible to this).
177
# Exit status is that of the last command.
182
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
183
*c*,-n*) ECHO_N= ECHO_C='
185
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
186
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
189
if expr a : '\(a\)' >/dev/null 2>&1; then
195
rm -f conf$$ conf$$.exe conf$$.file
197
if ln -s conf$$.file conf$$ 2>/dev/null; then
198
# We could just check for DJGPP; but this test a) works b) is more generic
199
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
200
if test -f conf$$.exe; then
201
# Don't use ln at all; we don't have any links
206
elif ln conf$$.file conf$$ 2>/dev/null; then
211
rm -f conf$$ conf$$.exe conf$$.file
213
as_executable_p="test -f"
215
# Sed expression to map a string onto a valid CPP name.
216
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
218
# Sed expression to map a string onto a valid variable name.
219
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
223
# We need space, tab and new line, in precisely that order.
229
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
233
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
234
# so uname gets run too.
235
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
242
ac_default_prefix=/usr/local
247
SHELL=${CONFIG_SHELL-/bin/sh}
249
# Maximum number of lines to put in a shell here document.
250
# This variable seems obsolete. It should probably be removed, and
251
# only ac_max_sed_lines should be used.
252
: ${ac_max_here_lines=38}
254
# Identity of this package.
261
ac_unique_file="Makefile.in"
262
# Factoring default headers for most tests.
263
ac_includes_default="\
266
# include <sys/types.h>
269
# include <sys/stat.h>
280
# if !STDC_HEADERS && HAVE_MEMORY_H
286
# include <strings.h>
289
# include <inttypes.h>
300
# Initialize some variables set by options.
302
ac_init_version=false
303
# The variables have the same names as the options, with
304
# dashes changed to underlines.
312
program_transform_name=s,x,x,
320
# Installation directory options.
321
# These are left unexpanded so users can "make install exec_prefix=/foo"
322
# and all the variables that are supposed to be based on exec_prefix
323
# by default will actually change.
324
# Use braces instead of parens because sh, perl, etc. also accept them.
325
bindir='${exec_prefix}/bin'
326
sbindir='${exec_prefix}/sbin'
327
libexecdir='${exec_prefix}/libexec'
328
datadir='${prefix}/share'
329
sysconfdir='${prefix}/etc'
330
sharedstatedir='${prefix}/com'
331
localstatedir='${prefix}/var'
332
libdir='${exec_prefix}/lib'
333
includedir='${prefix}/include'
334
oldincludedir='/usr/include'
335
infodir='${prefix}/info'
336
mandir='${prefix}/man'
341
# If the previous option needs an argument, assign it.
342
if test -n "$ac_prev"; then
343
eval "$ac_prev=\$ac_option"
348
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
350
# Accept the important Cygnus configure options, so we can diagnose typos.
354
-bindir | --bindir | --bindi | --bind | --bin | --bi)
356
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
359
-build | --build | --buil | --bui | --bu)
360
ac_prev=build_alias ;;
361
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
362
build_alias=$ac_optarg ;;
364
-cache-file | --cache-file | --cache-fil | --cache-fi \
365
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
366
ac_prev=cache_file ;;
367
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
368
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
369
cache_file=$ac_optarg ;;
372
cache_file=config.cache ;;
374
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
376
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
378
datadir=$ac_optarg ;;
380
-disable-* | --disable-*)
381
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
382
# Reject names that are not valid shell variable names.
383
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
384
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
385
{ (exit 1); exit 1; }; }
386
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
387
eval "enable_$ac_feature=no" ;;
389
-enable-* | --enable-*)
390
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
391
# Reject names that are not valid shell variable names.
392
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
393
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
394
{ (exit 1); exit 1; }; }
395
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
397
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
400
eval "enable_$ac_feature='$ac_optarg'" ;;
402
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
403
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
404
| --exec | --exe | --ex)
405
ac_prev=exec_prefix ;;
406
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
407
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
408
| --exec=* | --exe=* | --ex=*)
409
exec_prefix=$ac_optarg ;;
411
-gas | --gas | --ga | --g)
412
# Obsolete; use --with-gas.
415
-help | --help | --hel | --he | -h)
417
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
418
ac_init_help=recursive ;;
419
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
420
ac_init_help=short ;;
422
-host | --host | --hos | --ho)
423
ac_prev=host_alias ;;
424
-host=* | --host=* | --hos=* | --ho=*)
425
host_alias=$ac_optarg ;;
427
-includedir | --includedir | --includedi | --included | --include \
428
| --includ | --inclu | --incl | --inc)
429
ac_prev=includedir ;;
430
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
431
| --includ=* | --inclu=* | --incl=* | --inc=*)
432
includedir=$ac_optarg ;;
434
-infodir | --infodir | --infodi | --infod | --info | --inf)
436
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
437
infodir=$ac_optarg ;;
439
-libdir | --libdir | --libdi | --libd)
441
-libdir=* | --libdir=* | --libdi=* | --libd=*)
444
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
445
| --libexe | --libex | --libe)
446
ac_prev=libexecdir ;;
447
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
448
| --libexe=* | --libex=* | --libe=*)
449
libexecdir=$ac_optarg ;;
451
-localstatedir | --localstatedir | --localstatedi | --localstated \
452
| --localstate | --localstat | --localsta | --localst \
453
| --locals | --local | --loca | --loc | --lo)
454
ac_prev=localstatedir ;;
455
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
456
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
457
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
458
localstatedir=$ac_optarg ;;
460
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
462
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
466
# Obsolete; use --without-fp.
469
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
470
| --no-cr | --no-c | -n)
473
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
474
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
477
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
478
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
479
| --oldin | --oldi | --old | --ol | --o)
480
ac_prev=oldincludedir ;;
481
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
482
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
483
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
484
oldincludedir=$ac_optarg ;;
486
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
488
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
491
-program-prefix | --program-prefix | --program-prefi | --program-pref \
492
| --program-pre | --program-pr | --program-p)
493
ac_prev=program_prefix ;;
494
-program-prefix=* | --program-prefix=* | --program-prefi=* \
495
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
496
program_prefix=$ac_optarg ;;
498
-program-suffix | --program-suffix | --program-suffi | --program-suff \
499
| --program-suf | --program-su | --program-s)
500
ac_prev=program_suffix ;;
501
-program-suffix=* | --program-suffix=* | --program-suffi=* \
502
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
503
program_suffix=$ac_optarg ;;
505
-program-transform-name | --program-transform-name \
506
| --program-transform-nam | --program-transform-na \
507
| --program-transform-n | --program-transform- \
508
| --program-transform | --program-transfor \
509
| --program-transfo | --program-transf \
510
| --program-trans | --program-tran \
511
| --progr-tra | --program-tr | --program-t)
512
ac_prev=program_transform_name ;;
513
-program-transform-name=* | --program-transform-name=* \
514
| --program-transform-nam=* | --program-transform-na=* \
515
| --program-transform-n=* | --program-transform-=* \
516
| --program-transform=* | --program-transfor=* \
517
| --program-transfo=* | --program-transf=* \
518
| --program-trans=* | --program-tran=* \
519
| --progr-tra=* | --program-tr=* | --program-t=*)
520
program_transform_name=$ac_optarg ;;
522
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
523
| -silent | --silent | --silen | --sile | --sil)
526
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
528
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
530
sbindir=$ac_optarg ;;
532
-sharedstatedir | --sharedstatedir | --sharedstatedi \
533
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
534
| --sharedst | --shareds | --shared | --share | --shar \
536
ac_prev=sharedstatedir ;;
537
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
538
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
539
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
541
sharedstatedir=$ac_optarg ;;
543
-site | --site | --sit)
545
-site=* | --site=* | --sit=*)
548
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
550
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
553
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
554
| --syscon | --sysco | --sysc | --sys | --sy)
555
ac_prev=sysconfdir ;;
556
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
557
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
558
sysconfdir=$ac_optarg ;;
560
-target | --target | --targe | --targ | --tar | --ta | --t)
561
ac_prev=target_alias ;;
562
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
563
target_alias=$ac_optarg ;;
565
-v | -verbose | --verbose | --verbos | --verbo | --verb)
568
-version | --version | --versio | --versi | --vers | -V)
572
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
573
# Reject names that are not valid shell variable names.
574
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
575
{ echo "$as_me: error: invalid package name: $ac_package" >&2
576
{ (exit 1); exit 1; }; }
577
ac_package=`echo $ac_package| sed 's/-/_/g'`
579
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
582
eval "with_$ac_package='$ac_optarg'" ;;
584
-without-* | --without-*)
585
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
586
# Reject names that are not valid shell variable names.
587
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588
{ echo "$as_me: error: invalid package name: $ac_package" >&2
589
{ (exit 1); exit 1; }; }
590
ac_package=`echo $ac_package | sed 's/-/_/g'`
591
eval "with_$ac_package=no" ;;
594
# Obsolete; use --with-x.
597
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
598
| --x-incl | --x-inc | --x-in | --x-i)
599
ac_prev=x_includes ;;
600
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
601
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
602
x_includes=$ac_optarg ;;
604
-x-libraries | --x-libraries | --x-librarie | --x-librari \
605
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
606
ac_prev=x_libraries ;;
607
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
608
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
609
x_libraries=$ac_optarg ;;
611
-*) { echo "$as_me: error: unrecognized option: $ac_option
612
Try \`$0 --help' for more information." >&2
613
{ (exit 1); exit 1; }; }
617
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
618
# Reject names that are not valid shell variable names.
619
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
620
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
621
{ (exit 1); exit 1; }; }
622
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
623
eval "$ac_envvar='$ac_optarg'"
627
# FIXME: should be removed in autoconf 3.0.
628
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
629
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
630
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
631
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
637
if test -n "$ac_prev"; then
638
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
639
{ echo "$as_me: error: missing argument to $ac_option" >&2
640
{ (exit 1); exit 1; }; }
643
# Be sure to have absolute paths.
644
for ac_var in exec_prefix prefix
646
eval ac_val=$`echo $ac_var`
648
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
649
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
650
{ (exit 1); exit 1; }; };;
654
# Be sure to have absolute paths.
655
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
656
localstatedir libdir includedir oldincludedir infodir mandir
658
eval ac_val=$`echo $ac_var`
660
[\\/$]* | ?:[\\/]* ) ;;
661
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
662
{ (exit 1); exit 1; }; };;
666
# There might be people who depend on the old broken behavior: `$host'
667
# used to hold the argument of --host etc.
668
# FIXME: To remove some day.
673
# FIXME: To remove some day.
674
if test "x$host_alias" != x; then
675
if test "x$build_alias" = x; then
676
cross_compiling=maybe
677
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
678
If a cross compiler is detected then cross compile mode will be used." >&2
679
elif test "x$build_alias" != "x$host_alias"; then
685
test -n "$host_alias" && ac_tool_prefix=$host_alias-
687
test "$silent" = yes && exec 6>/dev/null
690
# Find the source files, if location was not specified.
691
if test -z "$srcdir"; then
692
ac_srcdir_defaulted=yes
693
# Try the directory containing this script, then its parent.
694
ac_confdir=`(dirname "$0") 2>/dev/null ||
695
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
696
X"$0" : 'X\(//\)[^/]' \| \
697
X"$0" : 'X\(//\)$' \| \
698
X"$0" : 'X\(/\)' \| \
699
. : '\(.\)' 2>/dev/null ||
701
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
702
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
703
/^X\(\/\/\)$/{ s//\1/; q; }
704
/^X\(\/\).*/{ s//\1/; q; }
707
if test ! -r $srcdir/$ac_unique_file; then
711
ac_srcdir_defaulted=no
713
if test ! -r $srcdir/$ac_unique_file; then
714
if test "$ac_srcdir_defaulted" = yes; then
715
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
716
{ (exit 1); exit 1; }; }
718
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
719
{ (exit 1); exit 1; }; }
722
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
723
ac_env_build_alias_set=${build_alias+set}
724
ac_env_build_alias_value=$build_alias
725
ac_cv_env_build_alias_set=${build_alias+set}
726
ac_cv_env_build_alias_value=$build_alias
727
ac_env_host_alias_set=${host_alias+set}
728
ac_env_host_alias_value=$host_alias
729
ac_cv_env_host_alias_set=${host_alias+set}
730
ac_cv_env_host_alias_value=$host_alias
731
ac_env_target_alias_set=${target_alias+set}
732
ac_env_target_alias_value=$target_alias
733
ac_cv_env_target_alias_set=${target_alias+set}
734
ac_cv_env_target_alias_value=$target_alias
735
ac_env_CC_set=${CC+set}
737
ac_cv_env_CC_set=${CC+set}
738
ac_cv_env_CC_value=$CC
739
ac_env_CFLAGS_set=${CFLAGS+set}
740
ac_env_CFLAGS_value=$CFLAGS
741
ac_cv_env_CFLAGS_set=${CFLAGS+set}
742
ac_cv_env_CFLAGS_value=$CFLAGS
743
ac_env_LDFLAGS_set=${LDFLAGS+set}
744
ac_env_LDFLAGS_value=$LDFLAGS
745
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
746
ac_cv_env_LDFLAGS_value=$LDFLAGS
747
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
748
ac_env_CPPFLAGS_value=$CPPFLAGS
749
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
750
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
751
ac_env_CXX_set=${CXX+set}
752
ac_env_CXX_value=$CXX
753
ac_cv_env_CXX_set=${CXX+set}
754
ac_cv_env_CXX_value=$CXX
755
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
756
ac_env_CXXFLAGS_value=$CXXFLAGS
757
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
758
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
759
ac_env_CXXCPP_set=${CXXCPP+set}
760
ac_env_CXXCPP_value=$CXXCPP
761
ac_cv_env_CXXCPP_set=${CXXCPP+set}
762
ac_cv_env_CXXCPP_value=$CXXCPP
763
ac_env_CPP_set=${CPP+set}
764
ac_env_CPP_value=$CPP
765
ac_cv_env_CPP_set=${CPP+set}
766
ac_cv_env_CPP_value=$CPP
769
# Report the --help message.
771
if test "$ac_init_help" = "long"; then
772
# Omit some internal or obsolete options to make the list less imposing.
773
# This message is too long to be a string in the A/UX 3.1 sh.
775
\`configure' configures this package to adapt to many kinds of systems.
777
Usage: $0 [OPTION]... [VAR=VALUE]...
779
To assign environment variables (e.g., CC, CFLAGS...), specify them as
780
VAR=VALUE. See below for descriptions of some of the useful variables.
782
Defaults for the options are specified in brackets.
785
-h, --help display this help and exit
786
--help=short display options specific to this package
787
--help=recursive display the short help of all the included packages
788
-V, --version display version information and exit
789
-q, --quiet, --silent do not print \`checking...' messages
790
--cache-file=FILE cache test results in FILE [disabled]
791
-C, --config-cache alias for \`--cache-file=config.cache'
792
-n, --no-create do not create output files
793
--srcdir=DIR find the sources in DIR [configure dir or \`..']
798
Installation directories:
799
--prefix=PREFIX install architecture-independent files in PREFIX
801
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
804
By default, \`make install' will install all the files in
805
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
806
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
807
for instance \`--prefix=\$HOME'.
809
For better control, use the options below.
811
Fine tuning of the installation directories:
812
--bindir=DIR user executables [EPREFIX/bin]
813
--sbindir=DIR system admin executables [EPREFIX/sbin]
814
--libexecdir=DIR program executables [EPREFIX/libexec]
815
--datadir=DIR read-only architecture-independent data [PREFIX/share]
816
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
817
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
818
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
819
--libdir=DIR object code libraries [EPREFIX/lib]
820
--includedir=DIR C header files [PREFIX/include]
821
--oldincludedir=DIR C header files for non-gcc [/usr/include]
822
--infodir=DIR info documentation [PREFIX/info]
823
--mandir=DIR man documentation [PREFIX/man]
829
--x-includes=DIR X include files are in DIR
830
--x-libraries=DIR X library files are in DIR
833
--build=BUILD configure for building on BUILD [guessed]
834
--host=HOST cross-compile to build programs to run on HOST [BUILD]
838
if test -n "$ac_init_help"; then
843
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
844
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
845
--disable-fastalloc omit fast allocator for small objects
846
--enable-debug=ARG install a debugging enable executable -ggdb
847
--enable-optimize=ARG compile with optimizations guessed
850
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
851
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
852
--with-x use the X Window System
853
--with-iconv=DIR where to find iconv system
854
--with-freetype=ARG with freetype support ARG=linked
856
Some influential environment variables:
857
CC C compiler command
858
CFLAGS C compiler flags
859
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
860
nonstandard directory <lib dir>
861
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
862
headers in a nonstandard directory <include dir>
863
CXX C++ compiler command
864
CXXFLAGS C++ compiler flags
865
CXXCPP C++ preprocessor
868
Use these variables to override the choices made by `configure' or to help
869
it to find libraries and programs with nonstandard names/locations.
874
if test "$ac_init_help" = "recursive"; then
875
# If there are subdirs, report their specific --help.
877
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
878
test -d $ac_dir || continue
881
if test "$ac_dir" != .; then
882
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
883
# A "../" for each directory in $ac_dir_suffix.
884
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
886
ac_dir_suffix= ac_top_builddir=
890
.) # No --srcdir option. We are building in place.
892
if test -z "$ac_top_builddir"; then
895
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
897
[\\/]* | ?:[\\/]* ) # Absolute path.
898
ac_srcdir=$srcdir$ac_dir_suffix;
899
ac_top_srcdir=$srcdir ;;
901
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
902
ac_top_srcdir=$ac_top_builddir$srcdir ;;
904
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
906
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
907
ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
908
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
909
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
912
# Check for guested configure; otherwise get Cygnus style configure.
913
if test -f $ac_srcdir/configure.gnu; then
915
$SHELL $ac_srcdir/configure.gnu --help=recursive
916
elif test -f $ac_srcdir/configure; then
918
$SHELL $ac_srcdir/configure --help=recursive
919
elif test -f $ac_srcdir/configure.ac ||
920
test -f $ac_srcdir/configure.in; then
924
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
930
test -n "$ac_init_help" && exit 0
931
if $ac_init_version; then
934
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
935
Free Software Foundation, Inc.
936
This configure script is free software; the Free Software Foundation
937
gives unlimited permission to copy, distribute and modify it.
943
This file contains any messages produced by compilers while
944
running configure, to aid debugging if configure makes a mistake.
946
It was created by $as_me, which was
947
generated by GNU Autoconf 2.53. Invocation command line was
958
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
959
uname -m = `(uname -m) 2>/dev/null || echo unknown`
960
uname -r = `(uname -r) 2>/dev/null || echo unknown`
961
uname -s = `(uname -s) 2>/dev/null || echo unknown`
962
uname -v = `(uname -v) 2>/dev/null || echo unknown`
964
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
965
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
967
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
968
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
969
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
970
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
971
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
972
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
973
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
977
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
981
test -z "$as_dir" && as_dir=.
997
# Keep a trace of the command line.
998
# Strip out --no-create and --no-recursion so they do not pile up.
999
# Also quote any args containing shell meta-characters.
1005
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1006
| --no-cr | --no-c | -n ) continue ;;
1007
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1008
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1010
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1011
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1013
case " $ac_configure_args " in
1014
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1015
*) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1018
# Get rid of the leading space.
1021
# When interrupted or exit'd, cleanup temporary files, and complete
1022
# config.log. We remove comments because anyway the quotes in there
1023
# would cause problems or look ugly.
1024
# WARNING: Be sure not to use single quotes in there, as some shells,
1025
# such as our DU 5.0 friend, will then `close' the trap.
1026
trap 'exit_status=$?
1027
# Save into config.log some information that might help in debugging.
1031
## ---------------- ##
1032
## Cache variables. ##
1033
## ---------------- ##
1036
# The following way of writing the cache mishandles newlines in values,
1039
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1042
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1043
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1047
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1052
if test -s confdefs.h; then
1059
sed "/^$/d" confdefs.h
1062
test "$ac_signal" != 0 &&
1063
echo "$as_me: caught signal $ac_signal"
1064
echo "$as_me: exit $exit_status"
1066
rm -f core core.* *.core &&
1067
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1070
for ac_signal in 1 2 13 15; do
1071
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1075
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1076
rm -rf conftest* confdefs.h
1077
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1080
# Predefined preprocessor variables.
1082
cat >>confdefs.h <<_ACEOF
1083
#define PACKAGE_NAME "$PACKAGE_NAME"
1087
cat >>confdefs.h <<_ACEOF
1088
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1092
cat >>confdefs.h <<_ACEOF
1093
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1097
cat >>confdefs.h <<_ACEOF
1098
#define PACKAGE_STRING "$PACKAGE_STRING"
1102
cat >>confdefs.h <<_ACEOF
1103
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1107
# Let the site file select an alternate cache file if it wants to.
1108
# Prefer explicitly selected file to automatically selected ones.
1109
if test -z "$CONFIG_SITE"; then
1110
if test "x$prefix" != xNONE; then
1111
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1113
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1116
for ac_site_file in $CONFIG_SITE; do
1117
if test -r "$ac_site_file"; then
1118
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1119
echo "$as_me: loading site script $ac_site_file" >&6;}
1120
sed 's/^/| /' "$ac_site_file" >&5
1125
if test -r "$cache_file"; then
1126
# Some versions of bash will fail to source /dev/null (special
1127
# files actually), so we avoid doing that.
1128
if test -f "$cache_file"; then
1129
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1130
echo "$as_me: loading cache $cache_file" >&6;}
1132
[\\/]* | ?:[\\/]* ) . $cache_file;;
1133
*) . ./$cache_file;;
1137
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1138
echo "$as_me: creating cache $cache_file" >&6;}
1142
# Check that the precious variables saved in the cache have kept the same
1144
ac_cache_corrupted=false
1145
for ac_var in `(set) 2>&1 |
1146
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1147
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1148
eval ac_new_set=\$ac_env_${ac_var}_set
1149
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1150
eval ac_new_val="\$ac_env_${ac_var}_value"
1151
case $ac_old_set,$ac_new_set in
1153
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1154
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1155
ac_cache_corrupted=: ;;
1157
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1158
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1159
ac_cache_corrupted=: ;;
1162
if test "x$ac_old_val" != "x$ac_new_val"; then
1163
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1164
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1165
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1166
echo "$as_me: former value: $ac_old_val" >&2;}
1167
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1168
echo "$as_me: current value: $ac_new_val" >&2;}
1169
ac_cache_corrupted=:
1172
# Pass precious variables to config.status.
1173
if test "$ac_new_set" = set; then
1175
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1176
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1177
*) ac_arg=$ac_var=$ac_new_val ;;
1179
case " $ac_configure_args " in
1180
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1181
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1185
if $ac_cache_corrupted; then
1186
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1187
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1188
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1189
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1190
{ (exit 1); exit 1; }; }
1194
ac_cpp='$CPP $CPPFLAGS'
1195
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1196
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1197
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1220
STABLE_VERSION="1.0.3"
1228
#--------------------------------------------------------------------
1229
# Checks for programs
1230
#--------------------------------------------------------------------
1233
ac_cpp='$CPP $CPPFLAGS'
1234
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1235
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1236
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1237
if test -n "$ac_tool_prefix"; then
1238
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1239
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1240
echo "$as_me:$LINENO: checking for $ac_word" >&5
1241
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1242
if test "${ac_cv_prog_CC+set}" = set; then
1243
echo $ECHO_N "(cached) $ECHO_C" >&6
1245
if test -n "$CC"; then
1246
ac_cv_prog_CC="$CC" # Let the user override the test.
1248
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1252
test -z "$as_dir" && as_dir=.
1253
for ac_exec_ext in '' $ac_executable_extensions; do
1254
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1255
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1256
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1265
if test -n "$CC"; then
1266
echo "$as_me:$LINENO: result: $CC" >&5
1267
echo "${ECHO_T}$CC" >&6
1269
echo "$as_me:$LINENO: result: no" >&5
1270
echo "${ECHO_T}no" >&6
1274
if test -z "$ac_cv_prog_CC"; then
1276
# Extract the first word of "gcc", so it can be a program name with args.
1277
set dummy gcc; ac_word=$2
1278
echo "$as_me:$LINENO: checking for $ac_word" >&5
1279
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1280
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1281
echo $ECHO_N "(cached) $ECHO_C" >&6
1283
if test -n "$ac_ct_CC"; then
1284
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1286
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1290
test -z "$as_dir" && as_dir=.
1291
for ac_exec_ext in '' $ac_executable_extensions; do
1292
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1293
ac_cv_prog_ac_ct_CC="gcc"
1294
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1302
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1303
if test -n "$ac_ct_CC"; then
1304
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1305
echo "${ECHO_T}$ac_ct_CC" >&6
1307
echo "$as_me:$LINENO: result: no" >&5
1308
echo "${ECHO_T}no" >&6
1316
if test -z "$CC"; then
1317
if test -n "$ac_tool_prefix"; then
1318
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1319
set dummy ${ac_tool_prefix}cc; ac_word=$2
1320
echo "$as_me:$LINENO: checking for $ac_word" >&5
1321
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1322
if test "${ac_cv_prog_CC+set}" = set; then
1323
echo $ECHO_N "(cached) $ECHO_C" >&6
1325
if test -n "$CC"; then
1326
ac_cv_prog_CC="$CC" # Let the user override the test.
1328
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1332
test -z "$as_dir" && as_dir=.
1333
for ac_exec_ext in '' $ac_executable_extensions; do
1334
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1335
ac_cv_prog_CC="${ac_tool_prefix}cc"
1336
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1345
if test -n "$CC"; then
1346
echo "$as_me:$LINENO: result: $CC" >&5
1347
echo "${ECHO_T}$CC" >&6
1349
echo "$as_me:$LINENO: result: no" >&5
1350
echo "${ECHO_T}no" >&6
1354
if test -z "$ac_cv_prog_CC"; then
1356
# Extract the first word of "cc", so it can be a program name with args.
1357
set dummy cc; ac_word=$2
1358
echo "$as_me:$LINENO: checking for $ac_word" >&5
1359
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1360
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1361
echo $ECHO_N "(cached) $ECHO_C" >&6
1363
if test -n "$ac_ct_CC"; then
1364
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1366
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1370
test -z "$as_dir" && as_dir=.
1371
for ac_exec_ext in '' $ac_executable_extensions; do
1372
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1373
ac_cv_prog_ac_ct_CC="cc"
1374
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1382
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1383
if test -n "$ac_ct_CC"; then
1384
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1385
echo "${ECHO_T}$ac_ct_CC" >&6
1387
echo "$as_me:$LINENO: result: no" >&5
1388
echo "${ECHO_T}no" >&6
1397
if test -z "$CC"; then
1398
# Extract the first word of "cc", so it can be a program name with args.
1399
set dummy cc; ac_word=$2
1400
echo "$as_me:$LINENO: checking for $ac_word" >&5
1401
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1402
if test "${ac_cv_prog_CC+set}" = set; then
1403
echo $ECHO_N "(cached) $ECHO_C" >&6
1405
if test -n "$CC"; then
1406
ac_cv_prog_CC="$CC" # Let the user override the test.
1409
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1413
test -z "$as_dir" && as_dir=.
1414
for ac_exec_ext in '' $ac_executable_extensions; do
1415
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1416
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1417
ac_prog_rejected=yes
1421
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1427
if test $ac_prog_rejected = yes; then
1428
# We found a bogon in the path, so make sure we never use it.
1429
set dummy $ac_cv_prog_CC
1431
if test $# != 0; then
1432
# We chose a different compiler from the bogus one.
1433
# However, it has the same basename, so the bogon will be chosen
1434
# first if we set CC to just the basename; use the full file name.
1436
set dummy "$as_dir/$ac_word" ${1+"$@"}
1444
if test -n "$CC"; then
1445
echo "$as_me:$LINENO: result: $CC" >&5
1446
echo "${ECHO_T}$CC" >&6
1448
echo "$as_me:$LINENO: result: no" >&5
1449
echo "${ECHO_T}no" >&6
1453
if test -z "$CC"; then
1454
if test -n "$ac_tool_prefix"; then
1457
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1458
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1459
echo "$as_me:$LINENO: checking for $ac_word" >&5
1460
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1461
if test "${ac_cv_prog_CC+set}" = set; then
1462
echo $ECHO_N "(cached) $ECHO_C" >&6
1464
if test -n "$CC"; then
1465
ac_cv_prog_CC="$CC" # Let the user override the test.
1467
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1471
test -z "$as_dir" && as_dir=.
1472
for ac_exec_ext in '' $ac_executable_extensions; do
1473
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1474
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1475
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1484
if test -n "$CC"; then
1485
echo "$as_me:$LINENO: result: $CC" >&5
1486
echo "${ECHO_T}$CC" >&6
1488
echo "$as_me:$LINENO: result: no" >&5
1489
echo "${ECHO_T}no" >&6
1492
test -n "$CC" && break
1495
if test -z "$CC"; then
1499
# Extract the first word of "$ac_prog", so it can be a program name with args.
1500
set dummy $ac_prog; ac_word=$2
1501
echo "$as_me:$LINENO: checking for $ac_word" >&5
1502
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1503
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1504
echo $ECHO_N "(cached) $ECHO_C" >&6
1506
if test -n "$ac_ct_CC"; then
1507
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1509
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1513
test -z "$as_dir" && as_dir=.
1514
for ac_exec_ext in '' $ac_executable_extensions; do
1515
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1516
ac_cv_prog_ac_ct_CC="$ac_prog"
1517
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1525
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1526
if test -n "$ac_ct_CC"; then
1527
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1528
echo "${ECHO_T}$ac_ct_CC" >&6
1530
echo "$as_me:$LINENO: result: no" >&5
1531
echo "${ECHO_T}no" >&6
1534
test -n "$ac_ct_CC" && break
1543
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1544
echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1545
{ (exit 1); exit 1; }; }
1547
# Provide some information about the compiler.
1548
echo "$as_me:$LINENO:" \
1549
"checking for C compiler version" >&5
1550
ac_compiler=`set X $ac_compile; echo $2`
1551
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1552
(eval $ac_compiler --version </dev/null >&5) 2>&5
1554
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1555
(exit $ac_status); }
1556
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1557
(eval $ac_compiler -v </dev/null >&5) 2>&5
1559
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1560
(exit $ac_status); }
1561
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1562
(eval $ac_compiler -V </dev/null >&5) 2>&5
1564
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1565
(exit $ac_status); }
1567
cat >conftest.$ac_ext <<_ACEOF
1568
#line $LINENO "configure"
1569
#include "confdefs.h"
1571
#ifdef F77_DUMMY_MAIN
1575
int F77_DUMMY_MAIN() { return 1; }
1585
ac_clean_files_save=$ac_clean_files
1586
ac_clean_files="$ac_clean_files a.out a.exe"
1587
# Try to create an executable without -o first, disregard a.out.
1588
# It will help us diagnose broken compilers, and finding out an intuition
1590
echo "$as_me:$LINENO: checking for C compiler default output" >&5
1591
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1592
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1593
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1594
(eval $ac_link_default) 2>&5
1596
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1597
(exit $ac_status); }; then
1598
# Find the output, starting from the most likely. This scheme is
1599
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1602
# Be careful to initialize this variable, since it used to be cached.
1603
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1605
for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1606
ls a.out conftest 2>/dev/null;
1607
ls a.* conftest.* 2>/dev/null`; do
1609
*.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
1610
a.out ) # We found the default executable, but exeext='' is most
1613
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1614
# FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1621
echo "$as_me: failed program was:" >&5
1622
cat conftest.$ac_ext >&5
1623
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1624
echo "$as_me: error: C compiler cannot create executables" >&2;}
1625
{ (exit 77); exit 77; }; }
1628
ac_exeext=$ac_cv_exeext
1629
echo "$as_me:$LINENO: result: $ac_file" >&5
1630
echo "${ECHO_T}$ac_file" >&6
1632
# Check the compiler produces executables we can run. If not, either
1633
# the compiler is broken, or we cross compile.
1634
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1635
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1636
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1637
# If not cross compiling, check that we can run a simple program.
1638
if test "$cross_compiling" != yes; then
1639
if { ac_try='./$ac_file'
1640
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1643
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1644
(exit $ac_status); }; }; then
1647
if test "$cross_compiling" = maybe; then
1650
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1651
If you meant to cross compile, use \`--host'." >&5
1652
echo "$as_me: error: cannot run C compiled programs.
1653
If you meant to cross compile, use \`--host'." >&2;}
1654
{ (exit 1); exit 1; }; }
1658
echo "$as_me:$LINENO: result: yes" >&5
1659
echo "${ECHO_T}yes" >&6
1661
rm -f a.out a.exe conftest$ac_cv_exeext
1662
ac_clean_files=$ac_clean_files_save
1663
# Check the compiler produces executables we can run. If not, either
1664
# the compiler is broken, or we cross compile.
1665
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1666
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1667
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1668
echo "${ECHO_T}$cross_compiling" >&6
1670
echo "$as_me:$LINENO: checking for suffix of executables" >&5
1671
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1672
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1673
(eval $ac_link) 2>&5
1675
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1676
(exit $ac_status); }; then
1677
# If both `conftest.exe' and `conftest' are `present' (well, observable)
1678
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1679
# work properly (i.e., refer to `conftest.exe'), while it won't with
1681
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1683
*.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1684
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1691
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1692
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1693
{ (exit 1); exit 1; }; }
1696
rm -f conftest$ac_cv_exeext
1697
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1698
echo "${ECHO_T}$ac_cv_exeext" >&6
1700
rm -f conftest.$ac_ext
1701
EXEEXT=$ac_cv_exeext
1703
echo "$as_me:$LINENO: checking for suffix of object files" >&5
1704
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1705
if test "${ac_cv_objext+set}" = set; then
1706
echo $ECHO_N "(cached) $ECHO_C" >&6
1708
cat >conftest.$ac_ext <<_ACEOF
1709
#line $LINENO "configure"
1710
#include "confdefs.h"
1712
#ifdef F77_DUMMY_MAIN
1716
int F77_DUMMY_MAIN() { return 1; }
1726
rm -f conftest.o conftest.obj
1727
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1728
(eval $ac_compile) 2>&5
1730
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1731
(exit $ac_status); }; then
1732
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1734
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1735
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1740
echo "$as_me: failed program was:" >&5
1741
cat conftest.$ac_ext >&5
1742
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1743
echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1744
{ (exit 1); exit 1; }; }
1747
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1749
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1750
echo "${ECHO_T}$ac_cv_objext" >&6
1751
OBJEXT=$ac_cv_objext
1753
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1754
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1755
if test "${ac_cv_c_compiler_gnu+set}" = set; then
1756
echo $ECHO_N "(cached) $ECHO_C" >&6
1758
cat >conftest.$ac_ext <<_ACEOF
1759
#line $LINENO "configure"
1760
#include "confdefs.h"
1762
#ifdef F77_DUMMY_MAIN
1766
int F77_DUMMY_MAIN() { return 1; }
1779
rm -f conftest.$ac_objext
1780
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1781
(eval $ac_compile) 2>&5
1783
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1784
(exit $ac_status); } &&
1785
{ ac_try='test -s conftest.$ac_objext'
1786
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1789
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1790
(exit $ac_status); }; }; then
1793
echo "$as_me: failed program was:" >&5
1794
cat conftest.$ac_ext >&5
1797
rm -f conftest.$ac_objext conftest.$ac_ext
1798
ac_cv_c_compiler_gnu=$ac_compiler_gnu
1801
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1802
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1803
GCC=`test $ac_compiler_gnu = yes && echo yes`
1804
ac_test_CFLAGS=${CFLAGS+set}
1805
ac_save_CFLAGS=$CFLAGS
1807
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1808
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1809
if test "${ac_cv_prog_cc_g+set}" = set; then
1810
echo $ECHO_N "(cached) $ECHO_C" >&6
1812
cat >conftest.$ac_ext <<_ACEOF
1813
#line $LINENO "configure"
1814
#include "confdefs.h"
1816
#ifdef F77_DUMMY_MAIN
1820
int F77_DUMMY_MAIN() { return 1; }
1830
rm -f conftest.$ac_objext
1831
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1832
(eval $ac_compile) 2>&5
1834
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1835
(exit $ac_status); } &&
1836
{ ac_try='test -s conftest.$ac_objext'
1837
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1840
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1841
(exit $ac_status); }; }; then
1844
echo "$as_me: failed program was:" >&5
1845
cat conftest.$ac_ext >&5
1848
rm -f conftest.$ac_objext conftest.$ac_ext
1850
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1851
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1852
if test "$ac_test_CFLAGS" = set; then
1853
CFLAGS=$ac_save_CFLAGS
1854
elif test $ac_cv_prog_cc_g = yes; then
1855
if test "$GCC" = yes; then
1861
if test "$GCC" = yes; then
1867
# Some people use a C++ compiler to compile C. Since we use `exit',
1868
# in C++ we need to declare it. In case someone uses the same compiler
1869
# for both compiling C and C++ we need to have the C++ compiler decide
1870
# the declaration of exit, since it's the most demanding environment.
1871
cat >conftest.$ac_ext <<_ACEOF
1876
rm -f conftest.$ac_objext
1877
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1878
(eval $ac_compile) 2>&5
1880
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1881
(exit $ac_status); } &&
1882
{ ac_try='test -s conftest.$ac_objext'
1883
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1886
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1887
(exit $ac_status); }; }; then
1888
for ac_declaration in \
1890
'#include <stdlib.h>' \
1891
'extern "C" void std::exit (int) throw (); using std::exit;' \
1892
'extern "C" void std::exit (int); using std::exit;' \
1893
'extern "C" void exit (int) throw ();' \
1894
'extern "C" void exit (int);' \
1897
cat >conftest.$ac_ext <<_ACEOF
1898
#line $LINENO "configure"
1899
#include "confdefs.h"
1902
#ifdef F77_DUMMY_MAIN
1906
int F77_DUMMY_MAIN() { return 1; }
1916
rm -f conftest.$ac_objext
1917
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1918
(eval $ac_compile) 2>&5
1920
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1921
(exit $ac_status); } &&
1922
{ ac_try='test -s conftest.$ac_objext'
1923
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1926
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1927
(exit $ac_status); }; }; then
1930
echo "$as_me: failed program was:" >&5
1931
cat conftest.$ac_ext >&5
1934
rm -f conftest.$ac_objext conftest.$ac_ext
1935
cat >conftest.$ac_ext <<_ACEOF
1936
#line $LINENO "configure"
1937
#include "confdefs.h"
1939
#ifdef F77_DUMMY_MAIN
1943
int F77_DUMMY_MAIN() { return 1; }
1953
rm -f conftest.$ac_objext
1954
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1955
(eval $ac_compile) 2>&5
1957
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1958
(exit $ac_status); } &&
1959
{ ac_try='test -s conftest.$ac_objext'
1960
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1963
echo "$as_me:$LINENO: \$? = $ac_status" >&5
1964
(exit $ac_status); }; }; then
1967
echo "$as_me: failed program was:" >&5
1968
cat conftest.$ac_ext >&5
1970
rm -f conftest.$ac_objext conftest.$ac_ext
1973
if test -n "$ac_declaration"; then
1974
echo '#ifdef __cplusplus' >>confdefs.h
1975
echo $ac_declaration >>confdefs.h
1976
echo '#endif' >>confdefs.h
1980
echo "$as_me: failed program was:" >&5
1981
cat conftest.$ac_ext >&5
1983
rm -f conftest.$ac_objext conftest.$ac_ext
1985
ac_cpp='$CPP $CPPFLAGS'
1986
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1987
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1988
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1991
ac_cpp='$CXXCPP $CPPFLAGS'
1992
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1993
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1994
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1995
if test -n "$ac_tool_prefix"; then
1996
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
1998
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1999
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2000
echo "$as_me:$LINENO: checking for $ac_word" >&5
2001
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2002
if test "${ac_cv_prog_CXX+set}" = set; then
2003
echo $ECHO_N "(cached) $ECHO_C" >&6
2005
if test -n "$CXX"; then
2006
ac_cv_prog_CXX="$CXX" # Let the user override the test.
2008
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2012
test -z "$as_dir" && as_dir=.
2013
for ac_exec_ext in '' $ac_executable_extensions; do
2014
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2015
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2016
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025
if test -n "$CXX"; then
2026
echo "$as_me:$LINENO: result: $CXX" >&5
2027
echo "${ECHO_T}$CXX" >&6
2029
echo "$as_me:$LINENO: result: no" >&5
2030
echo "${ECHO_T}no" >&6
2033
test -n "$CXX" && break
2036
if test -z "$CXX"; then
2038
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2040
# Extract the first word of "$ac_prog", so it can be a program name with args.
2041
set dummy $ac_prog; ac_word=$2
2042
echo "$as_me:$LINENO: checking for $ac_word" >&5
2043
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2044
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2045
echo $ECHO_N "(cached) $ECHO_C" >&6
2047
if test -n "$ac_ct_CXX"; then
2048
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2050
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2054
test -z "$as_dir" && as_dir=.
2055
for ac_exec_ext in '' $ac_executable_extensions; do
2056
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2057
ac_cv_prog_ac_ct_CXX="$ac_prog"
2058
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2067
if test -n "$ac_ct_CXX"; then
2068
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2069
echo "${ECHO_T}$ac_ct_CXX" >&6
2071
echo "$as_me:$LINENO: result: no" >&5
2072
echo "${ECHO_T}no" >&6
2075
test -n "$ac_ct_CXX" && break
2077
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2083
# Provide some information about the compiler.
2084
echo "$as_me:$LINENO:" \
2085
"checking for C++ compiler version" >&5
2086
ac_compiler=`set X $ac_compile; echo $2`
2087
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2088
(eval $ac_compiler --version </dev/null >&5) 2>&5
2090
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091
(exit $ac_status); }
2092
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2093
(eval $ac_compiler -v </dev/null >&5) 2>&5
2095
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2096
(exit $ac_status); }
2097
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2098
(eval $ac_compiler -V </dev/null >&5) 2>&5
2100
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101
(exit $ac_status); }
2103
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2104
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2105
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2106
echo $ECHO_N "(cached) $ECHO_C" >&6
2108
cat >conftest.$ac_ext <<_ACEOF
2109
#line $LINENO "configure"
2110
#include "confdefs.h"
2112
#ifdef F77_DUMMY_MAIN
2116
int F77_DUMMY_MAIN() { return 1; }
2129
rm -f conftest.$ac_objext
2130
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2131
(eval $ac_compile) 2>&5
2133
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2134
(exit $ac_status); } &&
2135
{ ac_try='test -s conftest.$ac_objext'
2136
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2139
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140
(exit $ac_status); }; }; then
2143
echo "$as_me: failed program was:" >&5
2144
cat conftest.$ac_ext >&5
2147
rm -f conftest.$ac_objext conftest.$ac_ext
2148
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2151
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2152
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2153
GXX=`test $ac_compiler_gnu = yes && echo yes`
2154
ac_test_CXXFLAGS=${CXXFLAGS+set}
2155
ac_save_CXXFLAGS=$CXXFLAGS
2157
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2158
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2159
if test "${ac_cv_prog_cxx_g+set}" = set; then
2160
echo $ECHO_N "(cached) $ECHO_C" >&6
2162
cat >conftest.$ac_ext <<_ACEOF
2163
#line $LINENO "configure"
2164
#include "confdefs.h"
2166
#ifdef F77_DUMMY_MAIN
2170
int F77_DUMMY_MAIN() { return 1; }
2180
rm -f conftest.$ac_objext
2181
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2182
(eval $ac_compile) 2>&5
2184
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2185
(exit $ac_status); } &&
2186
{ ac_try='test -s conftest.$ac_objext'
2187
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2190
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2191
(exit $ac_status); }; }; then
2192
ac_cv_prog_cxx_g=yes
2194
echo "$as_me: failed program was:" >&5
2195
cat conftest.$ac_ext >&5
2198
rm -f conftest.$ac_objext conftest.$ac_ext
2200
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2201
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2202
if test "$ac_test_CXXFLAGS" = set; then
2203
CXXFLAGS=$ac_save_CXXFLAGS
2204
elif test $ac_cv_prog_cxx_g = yes; then
2205
if test "$GXX" = yes; then
2211
if test "$GXX" = yes; then
2217
for ac_declaration in \
2219
'#include <stdlib.h>' \
2220
'extern "C" void std::exit (int) throw (); using std::exit;' \
2221
'extern "C" void std::exit (int); using std::exit;' \
2222
'extern "C" void exit (int) throw ();' \
2223
'extern "C" void exit (int);' \
2226
cat >conftest.$ac_ext <<_ACEOF
2227
#line $LINENO "configure"
2228
#include "confdefs.h"
2231
#ifdef F77_DUMMY_MAIN
2235
int F77_DUMMY_MAIN() { return 1; }
2245
rm -f conftest.$ac_objext
2246
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2247
(eval $ac_compile) 2>&5
2249
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2250
(exit $ac_status); } &&
2251
{ ac_try='test -s conftest.$ac_objext'
2252
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2255
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256
(exit $ac_status); }; }; then
2259
echo "$as_me: failed program was:" >&5
2260
cat conftest.$ac_ext >&5
2263
rm -f conftest.$ac_objext conftest.$ac_ext
2264
cat >conftest.$ac_ext <<_ACEOF
2265
#line $LINENO "configure"
2266
#include "confdefs.h"
2268
#ifdef F77_DUMMY_MAIN
2272
int F77_DUMMY_MAIN() { return 1; }
2282
rm -f conftest.$ac_objext
2283
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2284
(eval $ac_compile) 2>&5
2286
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287
(exit $ac_status); } &&
2288
{ ac_try='test -s conftest.$ac_objext'
2289
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2292
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2293
(exit $ac_status); }; }; then
2296
echo "$as_me: failed program was:" >&5
2297
cat conftest.$ac_ext >&5
2299
rm -f conftest.$ac_objext conftest.$ac_ext
2302
if test -n "$ac_declaration"; then
2303
echo '#ifdef __cplusplus' >>confdefs.h
2304
echo $ac_declaration >>confdefs.h
2305
echo '#endif' >>confdefs.h
2309
ac_cpp='$CPP $CPPFLAGS'
2310
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2311
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2312
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2315
ac_cpp='$CXXCPP $CPPFLAGS'
2316
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2317
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2318
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2320
echo "$as_me:$LINENO: checking whether GNU C++ compiler is default" >&5
2321
echo $ECHO_N "checking whether GNU C++ compiler is default... $ECHO_C" >&6
2324
GCC_VERSION=`$CC -dumpversion`
2325
GXX_VERSION=`$CXX -dumpversion`
2326
echo "$as_me:$LINENO: result: yes" >&5
2327
echo "${ECHO_T}yes" >&6
2328
echo "$as_me:$LINENO: checking version of gcc" >&5
2329
echo $ECHO_N "checking version of gcc... $ECHO_C" >&6
2330
echo "$as_me:$LINENO: result: $GCC_VERSION" >&5
2331
echo "${ECHO_T}$GCC_VERSION" >&6
2332
echo "$as_me:$LINENO: checking version of g++" >&5
2333
echo $ECHO_N "checking version of g++... $ECHO_C" >&6
2334
echo "$as_me:$LINENO: result: $GXX_VERSION" >&5
2335
echo "${ECHO_T}$GXX_VERSION" >&6
2340
echo "$as_me:$LINENO: result: no" >&5
2341
echo "${ECHO_T}no" >&6
2342
{ echo "$as_me:$LINENO: WARNING: cannot find GNU C++ compiler" >&5
2343
echo "$as_me: WARNING: cannot find GNU C++ compiler" >&2;}
2348
echo "$as_me:$LINENO: checking for C++-compatible X header files" >&5
2349
echo $ECHO_N "checking for C++-compatible X header files... $ECHO_C" >&6
2350
ac_save_cppflags="$CPPFLAGS"
2351
CPPFLAGS="$CPPFLAGS $X_CFLAGS"
2352
cat >conftest.$ac_ext <<_ACEOF
2353
#line $LINENO "configure"
2354
#include "confdefs.h"
2355
#include <X11/Xlib.h>
2356
#include <X11/Xutil.h>
2357
#ifdef F77_DUMMY_MAIN
2361
int F77_DUMMY_MAIN() { return 1; }
2371
rm -f conftest.$ac_objext
2372
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2373
(eval $ac_compile) 2>&5
2375
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376
(exit $ac_status); } &&
2377
{ ac_try='test -s conftest.$ac_objext'
2378
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382
(exit $ac_status); }; }; then
2385
echo "$as_me: failed program was:" >&5
2386
cat conftest.$ac_ext >&5
2391
/usr/X11R6/include \
2392
/usr/X11R5/include \
2393
/usr/X11R4/include \
2396
/usr/include/X11R6 \
2397
/usr/include/X11R5 \
2398
/usr/include/X11R4 \
2400
/usr/local/X11/include \
2401
/usr/local/X11R6/include \
2402
/usr/local/X11R5/include \
2403
/usr/local/X11R4/include \
2405
/usr/local/include/X11 \
2406
/usr/local/include/X11R6 \
2407
/usr/local/include/X11R5 \
2408
/usr/local/include/X11R4 \
2412
/usr/XFree86/include/X11 \
2415
/usr/local/include \
2416
/usr/unsupported/include \
2417
/usr/athena/include \
2418
/usr/local/x11r5/include \
2419
/usr/lpp/Xamples/include \
2421
/usr/openwin/include \
2422
/usr/openwin/share/include \
2425
if test -r "$ac_dir/X11/Xlib.h"; then
2426
tm_x_includes=$ac_dir
2430
sed 's/^extern \(X[a-zA-Z0-9]*(\)/extern int \1/' \
2431
< "$tm_x_includes/X11/Xlib.h" > X11/Xlib.h
2432
sed 's/^extern \(X[a-zA-Z0-9]*(\)/extern int \1/' \
2433
< "$tm_x_includes/X11/Xutil.h" > X11/Xutil.h
2434
X_CFLAGS="-I.. $X_CFLAGS"
2437
rm -f conftest.$ac_objext conftest.$ac_ext
2438
CPPFLAGS="$ac_save_cppflags"
2442
## The GUILE_FLAGS macro.
2443
## First, let's just see if we can find Guile at all.
2444
echo "$as_me:$LINENO: checking for Guile" >&5
2445
echo $ECHO_N "checking for Guile... $ECHO_C" >&6
2446
guile-config link > /dev/null || {
2447
echo "configure: cannot find guile-config; is Guile installed?" 1>&2
2450
GUILE_ORIGINAL_CFLAGS="`guile-config compile`"
2451
GUILE_CFLAGS="$GUILE_ORIGINAL_CFLAGS"
2452
GUILE_VARIANT_CFLAGS="$GUILE_ORIGINAL_CFLAGS $GUILE_ORIGINAL_CFLAGS/guile $GUILE_ORIGINAL_CFLAGS/libguile"
2453
GUILE_LDFLAGS="`guile-config link`"
2454
GUILE_VARIANT_LDFLAGS="-L`guile-config info libdir` -lguile -lreadline -ltermcap"
2457
echo "$as_me:$LINENO: result: yes" >&5
2458
echo "${ECHO_T}yes" >&6
2460
echo "$as_me:$LINENO: checking version of guile" >&5
2461
echo $ECHO_N "checking version of guile... $ECHO_C" >&6
2462
GUILE_VERSION=`guile --version | grep 'Guile \([0-9]\)' | sed 's/Guile \([0-9]*\)/\1/'`
2463
echo "$as_me:$LINENO: result: $GUILE_VERSION" >&5
2464
echo "${ECHO_T}$GUILE_VERSION" >&6
2466
#--------------------------------------------------------------------
2467
# Checks for libraries
2468
#--------------------------------------------------------------------
2471
ac_cpp='$CXXCPP $CPPFLAGS'
2472
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2473
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2474
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2475
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
2476
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
2477
if test -z "$CXXCPP"; then
2478
if test "${ac_cv_prog_CXXCPP+set}" = set; then
2479
echo $ECHO_N "(cached) $ECHO_C" >&6
2481
# Double quotes because CXXCPP needs to be expanded
2482
for CXXCPP in "$CXX -E" "/lib/cpp"
2485
for ac_cxx_preproc_warn_flag in '' yes
2487
# Use a header file that comes with gcc, so configuring glibc
2488
# with a fresh cross-compiler works.
2489
# On the NeXT, cc -E runs the code through the compiler's parser,
2490
# not just through cpp. "Syntax error" is here to catch this case.
2491
cat >conftest.$ac_ext <<_ACEOF
2492
#line $LINENO "configure"
2493
#include "confdefs.h"
2497
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2498
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2500
egrep -v '^ *\+' conftest.er1 >conftest.err
2502
cat conftest.err >&5
2503
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504
(exit $ac_status); } >/dev/null; then
2505
if test -s conftest.err; then
2506
ac_cpp_err=$ac_cxx_preproc_warn_flag
2513
if test -z "$ac_cpp_err"; then
2516
echo "$as_me: failed program was:" >&5
2517
cat conftest.$ac_ext >&5
2518
# Broken: fails on valid input.
2521
rm -f conftest.err conftest.$ac_ext
2523
# OK, works on sane cases. Now check whether non-existent headers
2524
# can be detected and how.
2525
cat >conftest.$ac_ext <<_ACEOF
2526
#line $LINENO "configure"
2527
#include "confdefs.h"
2528
#include <ac_nonexistent.h>
2530
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2531
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2533
egrep -v '^ *\+' conftest.er1 >conftest.err
2535
cat conftest.err >&5
2536
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2537
(exit $ac_status); } >/dev/null; then
2538
if test -s conftest.err; then
2539
ac_cpp_err=$ac_cxx_preproc_warn_flag
2546
if test -z "$ac_cpp_err"; then
2547
# Broken: success on invalid input.
2550
echo "$as_me: failed program was:" >&5
2551
cat conftest.$ac_ext >&5
2552
# Passes both tests.
2556
rm -f conftest.err conftest.$ac_ext
2559
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2560
rm -f conftest.err conftest.$ac_ext
2561
if $ac_preproc_ok; then
2566
ac_cv_prog_CXXCPP=$CXXCPP
2569
CXXCPP=$ac_cv_prog_CXXCPP
2571
ac_cv_prog_CXXCPP=$CXXCPP
2573
echo "$as_me:$LINENO: result: $CXXCPP" >&5
2574
echo "${ECHO_T}$CXXCPP" >&6
2576
for ac_cxx_preproc_warn_flag in '' yes
2578
# Use a header file that comes with gcc, so configuring glibc
2579
# with a fresh cross-compiler works.
2580
# On the NeXT, cc -E runs the code through the compiler's parser,
2581
# not just through cpp. "Syntax error" is here to catch this case.
2582
cat >conftest.$ac_ext <<_ACEOF
2583
#line $LINENO "configure"
2584
#include "confdefs.h"
2588
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2589
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2591
egrep -v '^ *\+' conftest.er1 >conftest.err
2593
cat conftest.err >&5
2594
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595
(exit $ac_status); } >/dev/null; then
2596
if test -s conftest.err; then
2597
ac_cpp_err=$ac_cxx_preproc_warn_flag
2604
if test -z "$ac_cpp_err"; then
2607
echo "$as_me: failed program was:" >&5
2608
cat conftest.$ac_ext >&5
2609
# Broken: fails on valid input.
2612
rm -f conftest.err conftest.$ac_ext
2614
# OK, works on sane cases. Now check whether non-existent headers
2615
# can be detected and how.
2616
cat >conftest.$ac_ext <<_ACEOF
2617
#line $LINENO "configure"
2618
#include "confdefs.h"
2619
#include <ac_nonexistent.h>
2621
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2622
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2624
egrep -v '^ *\+' conftest.er1 >conftest.err
2626
cat conftest.err >&5
2627
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628
(exit $ac_status); } >/dev/null; then
2629
if test -s conftest.err; then
2630
ac_cpp_err=$ac_cxx_preproc_warn_flag
2637
if test -z "$ac_cpp_err"; then
2638
# Broken: success on invalid input.
2641
echo "$as_me: failed program was:" >&5
2642
cat conftest.$ac_ext >&5
2643
# Passes both tests.
2647
rm -f conftest.err conftest.$ac_ext
2650
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2651
rm -f conftest.err conftest.$ac_ext
2652
if $ac_preproc_ok; then
2655
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
2656
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
2657
{ (exit 1); exit 1; }; }
2661
ac_cpp='$CXXCPP $CPPFLAGS'
2662
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2663
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2664
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2667
echo "$as_me:$LINENO: checking for X" >&5
2668
echo $ECHO_N "checking for X... $ECHO_C" >&6
2671
# Check whether --with-x or --without-x was given.
2672
if test "${with_x+set}" = set; then
2676
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2677
if test "x$with_x" = xno; then
2678
# The user explicitly disabled X.
2681
if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2682
# Both variables are already set.
2685
if test "${ac_cv_have_x+set}" = set; then
2686
echo $ECHO_N "(cached) $ECHO_C" >&6
2688
# One or both of the vars are not set, and there is no cached value.
2689
ac_x_includes=no ac_x_libraries=no
2691
if mkdir conftest.dir; then
2693
# Make sure to not put "make" in the Imakefile rules, since we grep it out.
2694
cat >Imakefile <<'_ACEOF'
2696
@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2698
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2699
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2700
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2701
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2702
for ac_extension in a so sl; do
2703
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2704
test -f $ac_im_libdir/libX11.$ac_extension; then
2705
ac_im_usrlibdir=$ac_im_libdir; break
2708
# Screen out bogus values from the imake configuration. They are
2709
# bogus both because they are the default anyway, and because
2710
# using them would break gcc on systems where it needs fixed includes.
2711
case $ac_im_incroot in
2713
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
2715
case $ac_im_usrlibdir in
2717
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
2724
# Standard set of common directories for X headers.
2725
# Check X11 before X11Rn because it is often a symlink to the current release.
2737
/usr/local/X11/include
2738
/usr/local/X11R6/include
2739
/usr/local/X11R5/include
2740
/usr/local/X11R4/include
2742
/usr/local/include/X11
2743
/usr/local/include/X11R6
2744
/usr/local/include/X11R5
2745
/usr/local/include/X11R4
2749
/usr/XFree86/include/X11
2753
/usr/unsupported/include
2755
/usr/local/x11r5/include
2756
/usr/lpp/Xamples/include
2758
/usr/openwin/include
2759
/usr/openwin/share/include'
2761
if test "$ac_x_includes" = no; then
2762
# Guess where to find include files, by looking for Intrinsic.h.
2763
# First, try using that file with no special directory specified.
2764
cat >conftest.$ac_ext <<_ACEOF
2765
#line $LINENO "configure"
2766
#include "confdefs.h"
2767
#include <X11/Intrinsic.h>
2769
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2770
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2772
egrep -v '^ *\+' conftest.er1 >conftest.err
2774
cat conftest.err >&5
2775
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2776
(exit $ac_status); } >/dev/null; then
2777
if test -s conftest.err; then
2778
ac_cpp_err=$ac_cxx_preproc_warn_flag
2785
if test -z "$ac_cpp_err"; then
2786
# We can compile using X headers with no special include directory.
2789
echo "$as_me: failed program was:" >&5
2790
cat conftest.$ac_ext >&5
2791
for ac_dir in $ac_x_header_dirs; do
2792
if test -r "$ac_dir/X11/Intrinsic.h"; then
2793
ac_x_includes=$ac_dir
2798
rm -f conftest.err conftest.$ac_ext
2799
fi # $ac_x_includes = no
2801
if test "$ac_x_libraries" = no; then
2802
# Check for the libraries.
2803
# See if we find them without any special options.
2804
# Don't add to $LIBS permanently.
2807
cat >conftest.$ac_ext <<_ACEOF
2808
#line $LINENO "configure"
2809
#include "confdefs.h"
2810
#include <X11/Intrinsic.h>
2811
#ifdef F77_DUMMY_MAIN
2815
int F77_DUMMY_MAIN() { return 1; }
2825
rm -f conftest.$ac_objext conftest$ac_exeext
2826
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2827
(eval $ac_link) 2>&5
2829
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830
(exit $ac_status); } &&
2831
{ ac_try='test -s conftest$ac_exeext'
2832
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836
(exit $ac_status); }; }; then
2838
# We can link X programs with no special library path.
2841
echo "$as_me: failed program was:" >&5
2842
cat conftest.$ac_ext >&5
2844
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2846
# Don't even attempt the hair of trying to link an X program!
2847
for ac_extension in a so sl; do
2848
if test -r $ac_dir/libXt.$ac_extension; then
2849
ac_x_libraries=$ac_dir
2855
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2856
fi # $ac_x_libraries = no
2858
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
2859
# Didn't find X anywhere. Cache the known absence of X.
2860
ac_cv_have_x="have_x=no"
2862
# Record where we found X for the cache.
2863
ac_cv_have_x="have_x=yes \
2864
ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2869
eval "$ac_cv_have_x"
2872
if test "$have_x" != yes; then
2873
echo "$as_me:$LINENO: result: $have_x" >&5
2874
echo "${ECHO_T}$have_x" >&6
2877
# If each of the values was on the command line, it overrides each guess.
2878
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2879
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2880
# Update the cache value to reflect the command line values.
2881
ac_cv_have_x="have_x=yes \
2882
ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2883
echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
2884
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
2887
if test "$no_x" = yes; then
2888
# Not all programs may use this symbol, but it does not hurt to define it.
2890
cat >>confdefs.h <<\_ACEOF
2891
#define X_DISPLAY_MISSING 1
2894
X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2896
if test -n "$x_includes"; then
2897
X_CFLAGS="$X_CFLAGS -I$x_includes"
2900
# It would also be nice to do this for all -L options, not just this one.
2901
if test -n "$x_libraries"; then
2902
X_LIBS="$X_LIBS -L$x_libraries"
2903
# For Solaris; some versions of Sun CC require a space after -R and
2904
# others require no space. Words are not sufficient . . . .
2905
case `(uname -sr) 2>/dev/null` in
2907
echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
2908
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2909
ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2910
cat >conftest.$ac_ext <<_ACEOF
2911
#line $LINENO "configure"
2912
#include "confdefs.h"
2914
#ifdef F77_DUMMY_MAIN
2918
int F77_DUMMY_MAIN() { return 1; }
2928
rm -f conftest.$ac_objext conftest$ac_exeext
2929
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2930
(eval $ac_link) 2>&5
2932
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933
(exit $ac_status); } &&
2934
{ ac_try='test -s conftest$ac_exeext'
2935
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939
(exit $ac_status); }; }; then
2942
echo "$as_me: failed program was:" >&5
2943
cat conftest.$ac_ext >&5
2946
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2947
if test $ac_R_nospace = yes; then
2948
echo "$as_me:$LINENO: result: no" >&5
2949
echo "${ECHO_T}no" >&6
2950
X_LIBS="$X_LIBS -R$x_libraries"
2952
LIBS="$ac_xsave_LIBS -R $x_libraries"
2953
cat >conftest.$ac_ext <<_ACEOF
2954
#line $LINENO "configure"
2955
#include "confdefs.h"
2957
#ifdef F77_DUMMY_MAIN
2961
int F77_DUMMY_MAIN() { return 1; }
2971
rm -f conftest.$ac_objext conftest$ac_exeext
2972
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2973
(eval $ac_link) 2>&5
2975
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2976
(exit $ac_status); } &&
2977
{ ac_try='test -s conftest$ac_exeext'
2978
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2981
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982
(exit $ac_status); }; }; then
2985
echo "$as_me: failed program was:" >&5
2986
cat conftest.$ac_ext >&5
2989
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2990
if test $ac_R_space = yes; then
2991
echo "$as_me:$LINENO: result: yes" >&5
2992
echo "${ECHO_T}yes" >&6
2993
X_LIBS="$X_LIBS -R $x_libraries"
2995
echo "$as_me:$LINENO: result: neither works" >&5
2996
echo "${ECHO_T}neither works" >&6
3003
# Check for system-dependent libraries X programs must link with.
3004
# Do this before checking for the system-independent R6 libraries
3005
# (-lICE), since we may need -lsocket or whatever for X linking.
3007
if test "$ISC" = yes; then
3008
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3010
# Martyn Johnson says this is needed for Ultrix, if the X
3011
# libraries were built with DECnet support. And Karl Berry says
3012
# the Alpha needs dnet_stub (dnet does not exist).
3013
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3014
cat >conftest.$ac_ext <<_ACEOF
3015
#line $LINENO "configure"
3016
#include "confdefs.h"
3018
/* Override any gcc2 internal prototype to avoid an error. */
3022
/* We use char because int might match the return type of a gcc2
3023
builtin and then its argument prototype would still apply. */
3024
char XOpenDisplay ();
3025
#ifdef F77_DUMMY_MAIN
3029
int F77_DUMMY_MAIN() { return 1; }
3039
rm -f conftest.$ac_objext conftest$ac_exeext
3040
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3041
(eval $ac_link) 2>&5
3043
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3044
(exit $ac_status); } &&
3045
{ ac_try='test -s conftest$ac_exeext'
3046
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3049
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050
(exit $ac_status); }; }; then
3053
echo "$as_me: failed program was:" >&5
3054
cat conftest.$ac_ext >&5
3055
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
3056
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3057
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3058
echo $ECHO_N "(cached) $ECHO_C" >&6
3060
ac_check_lib_save_LIBS=$LIBS
3062
cat >conftest.$ac_ext <<_ACEOF
3063
#line $LINENO "configure"
3064
#include "confdefs.h"
3066
/* Override any gcc2 internal prototype to avoid an error. */
3070
/* We use char because int might match the return type of a gcc2
3071
builtin and then its argument prototype would still apply. */
3073
#ifdef F77_DUMMY_MAIN
3077
int F77_DUMMY_MAIN() { return 1; }
3087
rm -f conftest.$ac_objext conftest$ac_exeext
3088
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3089
(eval $ac_link) 2>&5
3091
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092
(exit $ac_status); } &&
3093
{ ac_try='test -s conftest$ac_exeext'
3094
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3097
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3098
(exit $ac_status); }; }; then
3099
ac_cv_lib_dnet_dnet_ntoa=yes
3101
echo "$as_me: failed program was:" >&5
3102
cat conftest.$ac_ext >&5
3103
ac_cv_lib_dnet_dnet_ntoa=no
3105
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3106
LIBS=$ac_check_lib_save_LIBS
3108
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
3109
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3110
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
3111
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3114
if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3115
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
3116
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3117
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3118
echo $ECHO_N "(cached) $ECHO_C" >&6
3120
ac_check_lib_save_LIBS=$LIBS
3121
LIBS="-ldnet_stub $LIBS"
3122
cat >conftest.$ac_ext <<_ACEOF
3123
#line $LINENO "configure"
3124
#include "confdefs.h"
3126
/* Override any gcc2 internal prototype to avoid an error. */
3130
/* We use char because int might match the return type of a gcc2
3131
builtin and then its argument prototype would still apply. */
3133
#ifdef F77_DUMMY_MAIN
3137
int F77_DUMMY_MAIN() { return 1; }
3147
rm -f conftest.$ac_objext conftest$ac_exeext
3148
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3149
(eval $ac_link) 2>&5
3151
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152
(exit $ac_status); } &&
3153
{ ac_try='test -s conftest$ac_exeext'
3154
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3157
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158
(exit $ac_status); }; }; then
3159
ac_cv_lib_dnet_stub_dnet_ntoa=yes
3161
echo "$as_me: failed program was:" >&5
3162
cat conftest.$ac_ext >&5
3163
ac_cv_lib_dnet_stub_dnet_ntoa=no
3165
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3166
LIBS=$ac_check_lib_save_LIBS
3168
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
3169
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3170
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
3171
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3176
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3177
LIBS="$ac_xsave_LIBS"
3179
# msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3180
# to get the SysV transport functions.
3181
# Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
3183
# The nsl library prevents programs from opening the X display
3184
# on Irix 5.2, according to T.E. Dickey.
3185
# The functions gethostbyname, getservbyname, and inet_addr are
3186
# in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
3187
echo "$as_me:$LINENO: checking for gethostbyname" >&5
3188
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3189
if test "${ac_cv_func_gethostbyname+set}" = set; then
3190
echo $ECHO_N "(cached) $ECHO_C" >&6
3192
cat >conftest.$ac_ext <<_ACEOF
3193
#line $LINENO "configure"
3194
#include "confdefs.h"
3195
/* System header to define __stub macros and hopefully few prototypes,
3196
which can conflict with char gethostbyname (); below. */
3198
/* Override any gcc2 internal prototype to avoid an error. */
3202
/* We use char because int might match the return type of a gcc2
3203
builtin and then its argument prototype would still apply. */
3204
char gethostbyname ();
3207
#ifdef F77_DUMMY_MAIN
3211
int F77_DUMMY_MAIN() { return 1; }
3216
/* The GNU C library defines this for functions which it implements
3217
to always fail with ENOSYS. Some functions are actually named
3218
something starting with __ and the normal name is an alias. */
3219
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3229
rm -f conftest.$ac_objext conftest$ac_exeext
3230
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3231
(eval $ac_link) 2>&5
3233
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234
(exit $ac_status); } &&
3235
{ ac_try='test -s conftest$ac_exeext'
3236
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3239
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240
(exit $ac_status); }; }; then
3241
ac_cv_func_gethostbyname=yes
3243
echo "$as_me: failed program was:" >&5
3244
cat conftest.$ac_ext >&5
3245
ac_cv_func_gethostbyname=no
3247
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3249
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3250
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3252
if test $ac_cv_func_gethostbyname = no; then
3253
echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3254
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3255
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3256
echo $ECHO_N "(cached) $ECHO_C" >&6
3258
ac_check_lib_save_LIBS=$LIBS
3260
cat >conftest.$ac_ext <<_ACEOF
3261
#line $LINENO "configure"
3262
#include "confdefs.h"
3264
/* Override any gcc2 internal prototype to avoid an error. */
3268
/* We use char because int might match the return type of a gcc2
3269
builtin and then its argument prototype would still apply. */
3270
char gethostbyname ();
3271
#ifdef F77_DUMMY_MAIN
3275
int F77_DUMMY_MAIN() { return 1; }
3285
rm -f conftest.$ac_objext conftest$ac_exeext
3286
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3287
(eval $ac_link) 2>&5
3289
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3290
(exit $ac_status); } &&
3291
{ ac_try='test -s conftest$ac_exeext'
3292
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3295
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296
(exit $ac_status); }; }; then
3297
ac_cv_lib_nsl_gethostbyname=yes
3299
echo "$as_me: failed program was:" >&5
3300
cat conftest.$ac_ext >&5
3301
ac_cv_lib_nsl_gethostbyname=no
3303
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3304
LIBS=$ac_check_lib_save_LIBS
3306
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3307
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3308
if test $ac_cv_lib_nsl_gethostbyname = yes; then
3309
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3312
if test $ac_cv_lib_nsl_gethostbyname = no; then
3313
echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
3314
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3315
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3316
echo $ECHO_N "(cached) $ECHO_C" >&6
3318
ac_check_lib_save_LIBS=$LIBS
3320
cat >conftest.$ac_ext <<_ACEOF
3321
#line $LINENO "configure"
3322
#include "confdefs.h"
3324
/* Override any gcc2 internal prototype to avoid an error. */
3328
/* We use char because int might match the return type of a gcc2
3329
builtin and then its argument prototype would still apply. */
3330
char gethostbyname ();
3331
#ifdef F77_DUMMY_MAIN
3335
int F77_DUMMY_MAIN() { return 1; }
3345
rm -f conftest.$ac_objext conftest$ac_exeext
3346
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3347
(eval $ac_link) 2>&5
3349
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350
(exit $ac_status); } &&
3351
{ ac_try='test -s conftest$ac_exeext'
3352
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3355
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356
(exit $ac_status); }; }; then
3357
ac_cv_lib_bsd_gethostbyname=yes
3359
echo "$as_me: failed program was:" >&5
3360
cat conftest.$ac_ext >&5
3361
ac_cv_lib_bsd_gethostbyname=no
3363
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3364
LIBS=$ac_check_lib_save_LIBS
3366
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
3367
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3368
if test $ac_cv_lib_bsd_gethostbyname = yes; then
3369
X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3375
# lieder@skyler.mavd.honeywell.com says without -lsocket,
3376
# socket/setsockopt and other routines are undefined under SCO ODT
3377
# 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3378
# on later versions), says Simon Leinen: it contains gethostby*
3379
# variants that don't use the nameserver (or something). -lsocket
3380
# must be given before -lnsl if both are needed. We assume that
3381
# if connect needs -lnsl, so does gethostbyname.
3382
echo "$as_me:$LINENO: checking for connect" >&5
3383
echo $ECHO_N "checking for connect... $ECHO_C" >&6
3384
if test "${ac_cv_func_connect+set}" = set; then
3385
echo $ECHO_N "(cached) $ECHO_C" >&6
3387
cat >conftest.$ac_ext <<_ACEOF
3388
#line $LINENO "configure"
3389
#include "confdefs.h"
3390
/* System header to define __stub macros and hopefully few prototypes,
3391
which can conflict with char connect (); below. */
3393
/* Override any gcc2 internal prototype to avoid an error. */
3397
/* We use char because int might match the return type of a gcc2
3398
builtin and then its argument prototype would still apply. */
3402
#ifdef F77_DUMMY_MAIN
3406
int F77_DUMMY_MAIN() { return 1; }
3411
/* The GNU C library defines this for functions which it implements
3412
to always fail with ENOSYS. Some functions are actually named
3413
something starting with __ and the normal name is an alias. */
3414
#if defined (__stub_connect) || defined (__stub___connect)
3424
rm -f conftest.$ac_objext conftest$ac_exeext
3425
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3426
(eval $ac_link) 2>&5
3428
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429
(exit $ac_status); } &&
3430
{ ac_try='test -s conftest$ac_exeext'
3431
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3434
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3435
(exit $ac_status); }; }; then
3436
ac_cv_func_connect=yes
3438
echo "$as_me: failed program was:" >&5
3439
cat conftest.$ac_ext >&5
3440
ac_cv_func_connect=no
3442
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3444
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
3445
echo "${ECHO_T}$ac_cv_func_connect" >&6
3447
if test $ac_cv_func_connect = no; then
3448
echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
3449
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3450
if test "${ac_cv_lib_socket_connect+set}" = set; then
3451
echo $ECHO_N "(cached) $ECHO_C" >&6
3453
ac_check_lib_save_LIBS=$LIBS
3454
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3455
cat >conftest.$ac_ext <<_ACEOF
3456
#line $LINENO "configure"
3457
#include "confdefs.h"
3459
/* Override any gcc2 internal prototype to avoid an error. */
3463
/* We use char because int might match the return type of a gcc2
3464
builtin and then its argument prototype would still apply. */
3466
#ifdef F77_DUMMY_MAIN
3470
int F77_DUMMY_MAIN() { return 1; }
3480
rm -f conftest.$ac_objext conftest$ac_exeext
3481
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3482
(eval $ac_link) 2>&5
3484
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485
(exit $ac_status); } &&
3486
{ ac_try='test -s conftest$ac_exeext'
3487
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3490
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491
(exit $ac_status); }; }; then
3492
ac_cv_lib_socket_connect=yes
3494
echo "$as_me: failed program was:" >&5
3495
cat conftest.$ac_ext >&5
3496
ac_cv_lib_socket_connect=no
3498
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3499
LIBS=$ac_check_lib_save_LIBS
3501
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
3502
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3503
if test $ac_cv_lib_socket_connect = yes; then
3504
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3509
# Guillermo Gomez says -lposix is necessary on A/UX.
3510
echo "$as_me:$LINENO: checking for remove" >&5
3511
echo $ECHO_N "checking for remove... $ECHO_C" >&6
3512
if test "${ac_cv_func_remove+set}" = set; then
3513
echo $ECHO_N "(cached) $ECHO_C" >&6
3515
cat >conftest.$ac_ext <<_ACEOF
3516
#line $LINENO "configure"
3517
#include "confdefs.h"
3518
/* System header to define __stub macros and hopefully few prototypes,
3519
which can conflict with char remove (); below. */
3521
/* Override any gcc2 internal prototype to avoid an error. */
3525
/* We use char because int might match the return type of a gcc2
3526
builtin and then its argument prototype would still apply. */
3530
#ifdef F77_DUMMY_MAIN
3534
int F77_DUMMY_MAIN() { return 1; }
3539
/* The GNU C library defines this for functions which it implements
3540
to always fail with ENOSYS. Some functions are actually named
3541
something starting with __ and the normal name is an alias. */
3542
#if defined (__stub_remove) || defined (__stub___remove)
3552
rm -f conftest.$ac_objext conftest$ac_exeext
3553
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3554
(eval $ac_link) 2>&5
3556
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557
(exit $ac_status); } &&
3558
{ ac_try='test -s conftest$ac_exeext'
3559
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3562
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3563
(exit $ac_status); }; }; then
3564
ac_cv_func_remove=yes
3566
echo "$as_me: failed program was:" >&5
3567
cat conftest.$ac_ext >&5
3568
ac_cv_func_remove=no
3570
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3572
echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
3573
echo "${ECHO_T}$ac_cv_func_remove" >&6
3575
if test $ac_cv_func_remove = no; then
3576
echo "$as_me:$LINENO: checking for remove in -lposix" >&5
3577
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3578
if test "${ac_cv_lib_posix_remove+set}" = set; then
3579
echo $ECHO_N "(cached) $ECHO_C" >&6
3581
ac_check_lib_save_LIBS=$LIBS
3582
LIBS="-lposix $LIBS"
3583
cat >conftest.$ac_ext <<_ACEOF
3584
#line $LINENO "configure"
3585
#include "confdefs.h"
3587
/* Override any gcc2 internal prototype to avoid an error. */
3591
/* We use char because int might match the return type of a gcc2
3592
builtin and then its argument prototype would still apply. */
3594
#ifdef F77_DUMMY_MAIN
3598
int F77_DUMMY_MAIN() { return 1; }
3608
rm -f conftest.$ac_objext conftest$ac_exeext
3609
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3610
(eval $ac_link) 2>&5
3612
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613
(exit $ac_status); } &&
3614
{ ac_try='test -s conftest$ac_exeext'
3615
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3618
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3619
(exit $ac_status); }; }; then
3620
ac_cv_lib_posix_remove=yes
3622
echo "$as_me: failed program was:" >&5
3623
cat conftest.$ac_ext >&5
3624
ac_cv_lib_posix_remove=no
3626
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3627
LIBS=$ac_check_lib_save_LIBS
3629
echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
3630
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3631
if test $ac_cv_lib_posix_remove = yes; then
3632
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3637
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3638
echo "$as_me:$LINENO: checking for shmat" >&5
3639
echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3640
if test "${ac_cv_func_shmat+set}" = set; then
3641
echo $ECHO_N "(cached) $ECHO_C" >&6
3643
cat >conftest.$ac_ext <<_ACEOF
3644
#line $LINENO "configure"
3645
#include "confdefs.h"
3646
/* System header to define __stub macros and hopefully few prototypes,
3647
which can conflict with char shmat (); below. */
3649
/* Override any gcc2 internal prototype to avoid an error. */
3653
/* We use char because int might match the return type of a gcc2
3654
builtin and then its argument prototype would still apply. */
3658
#ifdef F77_DUMMY_MAIN
3662
int F77_DUMMY_MAIN() { return 1; }
3667
/* The GNU C library defines this for functions which it implements
3668
to always fail with ENOSYS. Some functions are actually named
3669
something starting with __ and the normal name is an alias. */
3670
#if defined (__stub_shmat) || defined (__stub___shmat)
3680
rm -f conftest.$ac_objext conftest$ac_exeext
3681
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3682
(eval $ac_link) 2>&5
3684
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685
(exit $ac_status); } &&
3686
{ ac_try='test -s conftest$ac_exeext'
3687
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3690
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691
(exit $ac_status); }; }; then
3692
ac_cv_func_shmat=yes
3694
echo "$as_me: failed program was:" >&5
3695
cat conftest.$ac_ext >&5
3698
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3700
echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
3701
echo "${ECHO_T}$ac_cv_func_shmat" >&6
3703
if test $ac_cv_func_shmat = no; then
3704
echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
3705
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3706
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3707
echo $ECHO_N "(cached) $ECHO_C" >&6
3709
ac_check_lib_save_LIBS=$LIBS
3711
cat >conftest.$ac_ext <<_ACEOF
3712
#line $LINENO "configure"
3713
#include "confdefs.h"
3715
/* Override any gcc2 internal prototype to avoid an error. */
3719
/* We use char because int might match the return type of a gcc2
3720
builtin and then its argument prototype would still apply. */
3722
#ifdef F77_DUMMY_MAIN
3726
int F77_DUMMY_MAIN() { return 1; }
3736
rm -f conftest.$ac_objext conftest$ac_exeext
3737
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3738
(eval $ac_link) 2>&5
3740
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741
(exit $ac_status); } &&
3742
{ ac_try='test -s conftest$ac_exeext'
3743
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3746
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747
(exit $ac_status); }; }; then
3748
ac_cv_lib_ipc_shmat=yes
3750
echo "$as_me: failed program was:" >&5
3751
cat conftest.$ac_ext >&5
3752
ac_cv_lib_ipc_shmat=no
3754
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3755
LIBS=$ac_check_lib_save_LIBS
3757
echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
3758
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3759
if test $ac_cv_lib_ipc_shmat = yes; then
3760
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3766
# Check for libraries that X11R6 Xt/Xaw programs need.
3767
ac_save_LDFLAGS=$LDFLAGS
3768
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3769
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3770
# check for ICE first), but we must link in the order -lSM -lICE or
3771
# we get undefined symbols. So assume we have SM if we have ICE.
3772
# These have to be linked with before -lX11, unlike the other
3773
# libraries we check for below, so use a different variable.
3774
# John Interrante, Karl Berry
3775
echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
3776
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3777
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3778
echo $ECHO_N "(cached) $ECHO_C" >&6
3780
ac_check_lib_save_LIBS=$LIBS
3781
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3782
cat >conftest.$ac_ext <<_ACEOF
3783
#line $LINENO "configure"
3784
#include "confdefs.h"
3786
/* Override any gcc2 internal prototype to avoid an error. */
3790
/* We use char because int might match the return type of a gcc2
3791
builtin and then its argument prototype would still apply. */
3792
char IceConnectionNumber ();
3793
#ifdef F77_DUMMY_MAIN
3797
int F77_DUMMY_MAIN() { return 1; }
3802
IceConnectionNumber ();
3807
rm -f conftest.$ac_objext conftest$ac_exeext
3808
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3809
(eval $ac_link) 2>&5
3811
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812
(exit $ac_status); } &&
3813
{ ac_try='test -s conftest$ac_exeext'
3814
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3817
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818
(exit $ac_status); }; }; then
3819
ac_cv_lib_ICE_IceConnectionNumber=yes
3821
echo "$as_me: failed program was:" >&5
3822
cat conftest.$ac_ext >&5
3823
ac_cv_lib_ICE_IceConnectionNumber=no
3825
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3826
LIBS=$ac_check_lib_save_LIBS
3828
echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
3829
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3830
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
3831
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3834
LDFLAGS=$ac_save_LDFLAGS
3839
echo "$as_me:$LINENO: checking for dlopen" >&5
3840
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
3841
if test "${ac_cv_func_dlopen+set}" = set; then
3842
echo $ECHO_N "(cached) $ECHO_C" >&6
3844
cat >conftest.$ac_ext <<_ACEOF
3845
#line $LINENO "configure"
3846
#include "confdefs.h"
3847
/* System header to define __stub macros and hopefully few prototypes,
3848
which can conflict with char dlopen (); below. */
3850
/* Override any gcc2 internal prototype to avoid an error. */
3854
/* We use char because int might match the return type of a gcc2
3855
builtin and then its argument prototype would still apply. */
3859
#ifdef F77_DUMMY_MAIN
3863
int F77_DUMMY_MAIN() { return 1; }
3868
/* The GNU C library defines this for functions which it implements
3869
to always fail with ENOSYS. Some functions are actually named
3870
something starting with __ and the normal name is an alias. */
3871
#if defined (__stub_dlopen) || defined (__stub___dlopen)
3881
rm -f conftest.$ac_objext conftest$ac_exeext
3882
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3883
(eval $ac_link) 2>&5
3885
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886
(exit $ac_status); } &&
3887
{ ac_try='test -s conftest$ac_exeext'
3888
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3891
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892
(exit $ac_status); }; }; then
3893
ac_cv_func_dlopen=yes
3895
echo "$as_me: failed program was:" >&5
3896
cat conftest.$ac_ext >&5
3897
ac_cv_func_dlopen=no
3899
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3901
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
3902
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
3904
if test "$ac_cv_func_dl" = "yes"; then
3905
CONFIG_DYNAMIC_LINKING="#define DYNAMIC_LINKING 1"
3908
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
3909
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
3910
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
3911
echo $ECHO_N "(cached) $ECHO_C" >&6
3913
ac_check_lib_save_LIBS=$LIBS
3915
cat >conftest.$ac_ext <<_ACEOF
3916
#line $LINENO "configure"
3917
#include "confdefs.h"
3919
/* Override any gcc2 internal prototype to avoid an error. */
3923
/* We use char because int might match the return type of a gcc2
3924
builtin and then its argument prototype would still apply. */
3926
#ifdef F77_DUMMY_MAIN
3930
int F77_DUMMY_MAIN() { return 1; }
3940
rm -f conftest.$ac_objext conftest$ac_exeext
3941
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3942
(eval $ac_link) 2>&5
3944
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3945
(exit $ac_status); } &&
3946
{ ac_try='test -s conftest$ac_exeext'
3947
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3950
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951
(exit $ac_status); }; }; then
3952
ac_cv_lib_dl_dlopen=yes
3954
echo "$as_me: failed program was:" >&5
3955
cat conftest.$ac_ext >&5
3956
ac_cv_lib_dl_dlopen=no
3958
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3959
LIBS=$ac_check_lib_save_LIBS
3961
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
3962
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
3963
if test $ac_cv_lib_dl_dlopen = yes; then
3964
cat >>confdefs.h <<_ACEOF
3965
#define HAVE_LIBDL 1
3972
if test "$ac_cv_lib_dl_dlopen" = "yes"; then
3974
for ac_func in dlopen
3976
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
3977
echo "$as_me:$LINENO: checking for $ac_func" >&5
3978
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
3979
if eval "test \"\${$as_ac_var+set}\" = set"; then
3980
echo $ECHO_N "(cached) $ECHO_C" >&6
3982
cat >conftest.$ac_ext <<_ACEOF
3983
#line $LINENO "configure"
3984
#include "confdefs.h"
3985
/* System header to define __stub macros and hopefully few prototypes,
3986
which can conflict with char $ac_func (); below. */
3988
/* Override any gcc2 internal prototype to avoid an error. */
3992
/* We use char because int might match the return type of a gcc2
3993
builtin and then its argument prototype would still apply. */
3997
#ifdef F77_DUMMY_MAIN
4001
int F77_DUMMY_MAIN() { return 1; }
4006
/* The GNU C library defines this for functions which it implements
4007
to always fail with ENOSYS. Some functions are actually named
4008
something starting with __ and the normal name is an alias. */
4009
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4019
rm -f conftest.$ac_objext conftest$ac_exeext
4020
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4021
(eval $ac_link) 2>&5
4023
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024
(exit $ac_status); } &&
4025
{ ac_try='test -s conftest$ac_exeext'
4026
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4029
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4030
(exit $ac_status); }; }; then
4031
eval "$as_ac_var=yes"
4033
echo "$as_me: failed program was:" >&5
4034
cat conftest.$ac_ext >&5
4035
eval "$as_ac_var=no"
4037
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4039
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4040
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4041
if test `eval echo '${'$as_ac_var'}'` = yes; then
4042
cat >>confdefs.h <<_ACEOF
4043
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4051
CONFIG_DYNAMIC_LINKING="#define DYNAMIC_LINKING 1"
4054
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
4055
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
4056
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
4057
echo $ECHO_N "(cached) $ECHO_C" >&6
4059
ac_check_lib_save_LIBS=$LIBS
4061
cat >conftest.$ac_ext <<_ACEOF
4062
#line $LINENO "configure"
4063
#include "confdefs.h"
4065
/* Override any gcc2 internal prototype to avoid an error. */
4069
/* We use char because int might match the return type of a gcc2
4070
builtin and then its argument prototype would still apply. */
4072
#ifdef F77_DUMMY_MAIN
4076
int F77_DUMMY_MAIN() { return 1; }
4086
rm -f conftest.$ac_objext conftest$ac_exeext
4087
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4088
(eval $ac_link) 2>&5
4090
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4091
(exit $ac_status); } &&
4092
{ ac_try='test -s conftest$ac_exeext'
4093
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4096
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097
(exit $ac_status); }; }; then
4098
ac_cv_lib_dld_dld_link=yes
4100
echo "$as_me: failed program was:" >&5
4101
cat conftest.$ac_ext >&5
4102
ac_cv_lib_dld_dld_link=no
4104
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4105
LIBS=$ac_check_lib_save_LIBS
4107
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
4108
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
4109
if test $ac_cv_lib_dld_dld_link = yes; then
4110
cat >>confdefs.h <<_ACEOF
4111
#define HAVE_LIBDLD 1
4118
if test "$ac_cv_lib_dld_dld_link" = "yes"; then
4121
CONFIG_DYNAMIC_LINKING="#define DYNAMIC_LINKING 1"
4124
for ac_func in shl_load
4126
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4127
echo "$as_me:$LINENO: checking for $ac_func" >&5
4128
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4129
if eval "test \"\${$as_ac_var+set}\" = set"; then
4130
echo $ECHO_N "(cached) $ECHO_C" >&6
4132
cat >conftest.$ac_ext <<_ACEOF
4133
#line $LINENO "configure"
4134
#include "confdefs.h"
4135
/* System header to define __stub macros and hopefully few prototypes,
4136
which can conflict with char $ac_func (); below. */
4138
/* Override any gcc2 internal prototype to avoid an error. */
4142
/* We use char because int might match the return type of a gcc2
4143
builtin and then its argument prototype would still apply. */
4147
#ifdef F77_DUMMY_MAIN
4151
int F77_DUMMY_MAIN() { return 1; }
4156
/* The GNU C library defines this for functions which it implements
4157
to always fail with ENOSYS. Some functions are actually named
4158
something starting with __ and the normal name is an alias. */
4159
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4169
rm -f conftest.$ac_objext conftest$ac_exeext
4170
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4171
(eval $ac_link) 2>&5
4173
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4174
(exit $ac_status); } &&
4175
{ ac_try='test -s conftest$ac_exeext'
4176
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4179
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180
(exit $ac_status); }; }; then
4181
eval "$as_ac_var=yes"
4183
echo "$as_me: failed program was:" >&5
4184
cat conftest.$ac_ext >&5
4185
eval "$as_ac_var=no"
4187
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4189
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4190
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4191
if test `eval echo '${'$as_ac_var'}'` = yes; then
4192
cat >>confdefs.h <<_ACEOF
4193
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4199
if test "$ac_cv_func_shl_load" = "yes"; then
4202
CONFIG_DYNAMIC_LINKING="#define DYNAMIC_LINKING 1"
4205
for ac_func in dlopen
4207
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4208
echo "$as_me:$LINENO: checking for $ac_func" >&5
4209
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4210
if eval "test \"\${$as_ac_var+set}\" = set"; then
4211
echo $ECHO_N "(cached) $ECHO_C" >&6
4213
cat >conftest.$ac_ext <<_ACEOF
4214
#line $LINENO "configure"
4215
#include "confdefs.h"
4216
/* System header to define __stub macros and hopefully few prototypes,
4217
which can conflict with char $ac_func (); below. */
4219
/* Override any gcc2 internal prototype to avoid an error. */
4223
/* We use char because int might match the return type of a gcc2
4224
builtin and then its argument prototype would still apply. */
4228
#ifdef F77_DUMMY_MAIN
4232
int F77_DUMMY_MAIN() { return 1; }
4237
/* The GNU C library defines this for functions which it implements
4238
to always fail with ENOSYS. Some functions are actually named
4239
something starting with __ and the normal name is an alias. */
4240
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4250
rm -f conftest.$ac_objext conftest$ac_exeext
4251
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4252
(eval $ac_link) 2>&5
4254
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255
(exit $ac_status); } &&
4256
{ ac_try='test -s conftest$ac_exeext'
4257
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4260
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261
(exit $ac_status); }; }; then
4262
eval "$as_ac_var=yes"
4264
echo "$as_me: failed program was:" >&5
4265
cat conftest.$ac_ext >&5
4266
eval "$as_ac_var=no"
4268
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4270
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4271
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4272
if test `eval echo '${'$as_ac_var'}'` = yes; then
4273
cat >>confdefs.h <<_ACEOF
4274
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4280
if test "$ac_cv_func_dlopen" = "yes"; then
4281
CONFIG_DYNAMIC_LINKING="#define DYNAMIC_LINKING 1"
4291
#--------------------------------------------------------------------
4293
#--------------------------------------------------------------------
4296
# Check whether --with-iconv or --without-iconv was given.
4297
if test "${with_iconv+set}" = set; then
4298
withval="$with_iconv"
4303
# Modified from GNOME's libxml2 configure.in
4307
ac_cpp='$CPP $CPPFLAGS'
4308
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4309
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4310
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4311
# compile C to avoid the 'const char**' problem
4312
SAVE_CPPFLAGS="$CPPFLAGS"
4313
SAVE_LDFLAGS="$LDFLAGS"
4316
if test "$with_iconv" = "no" ; then
4317
echo "$as_me:$LINENO: result: disabling iconv support" >&5
4318
echo "${ECHO_T}disabling iconv support" >&6
4320
if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then
4321
CPPFLAGS="-I$with_iconv/include" # for AC_TRY_LINK
4322
ICONV_CFLAGS="-I$with_iconv/include"
4323
ICONV_LDFLAGS="-L$with_iconv/lib"
4327
ac_cpp='$CPP $CPPFLAGS'
4328
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4329
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4330
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4331
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4332
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4333
# On Suns, sometimes $CPP names a directory.
4334
if test -n "$CPP" && test -d "$CPP"; then
4337
if test -z "$CPP"; then
4338
if test "${ac_cv_prog_CPP+set}" = set; then
4339
echo $ECHO_N "(cached) $ECHO_C" >&6
4341
# Double quotes because CPP needs to be expanded
4342
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4345
for ac_c_preproc_warn_flag in '' yes
4347
# Use a header file that comes with gcc, so configuring glibc
4348
# with a fresh cross-compiler works.
4349
# On the NeXT, cc -E runs the code through the compiler's parser,
4350
# not just through cpp. "Syntax error" is here to catch this case.
4351
cat >conftest.$ac_ext <<_ACEOF
4352
#line $LINENO "configure"
4353
#include "confdefs.h"
4357
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4358
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4360
egrep -v '^ *\+' conftest.er1 >conftest.err
4362
cat conftest.err >&5
4363
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364
(exit $ac_status); } >/dev/null; then
4365
if test -s conftest.err; then
4366
ac_cpp_err=$ac_c_preproc_warn_flag
4373
if test -z "$ac_cpp_err"; then
4376
echo "$as_me: failed program was:" >&5
4377
cat conftest.$ac_ext >&5
4378
# Broken: fails on valid input.
4381
rm -f conftest.err conftest.$ac_ext
4383
# OK, works on sane cases. Now check whether non-existent headers
4384
# can be detected and how.
4385
cat >conftest.$ac_ext <<_ACEOF
4386
#line $LINENO "configure"
4387
#include "confdefs.h"
4388
#include <ac_nonexistent.h>
4390
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4391
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4393
egrep -v '^ *\+' conftest.er1 >conftest.err
4395
cat conftest.err >&5
4396
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4397
(exit $ac_status); } >/dev/null; then
4398
if test -s conftest.err; then
4399
ac_cpp_err=$ac_c_preproc_warn_flag
4406
if test -z "$ac_cpp_err"; then
4407
# Broken: success on invalid input.
4410
echo "$as_me: failed program was:" >&5
4411
cat conftest.$ac_ext >&5
4412
# Passes both tests.
4416
rm -f conftest.err conftest.$ac_ext
4419
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4420
rm -f conftest.err conftest.$ac_ext
4421
if $ac_preproc_ok; then
4433
echo "$as_me:$LINENO: result: $CPP" >&5
4434
echo "${ECHO_T}$CPP" >&6
4436
for ac_c_preproc_warn_flag in '' yes
4438
# Use a header file that comes with gcc, so configuring glibc
4439
# with a fresh cross-compiler works.
4440
# On the NeXT, cc -E runs the code through the compiler's parser,
4441
# not just through cpp. "Syntax error" is here to catch this case.
4442
cat >conftest.$ac_ext <<_ACEOF
4443
#line $LINENO "configure"
4444
#include "confdefs.h"
4448
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4449
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4451
egrep -v '^ *\+' conftest.er1 >conftest.err
4453
cat conftest.err >&5
4454
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455
(exit $ac_status); } >/dev/null; then
4456
if test -s conftest.err; then
4457
ac_cpp_err=$ac_c_preproc_warn_flag
4464
if test -z "$ac_cpp_err"; then
4467
echo "$as_me: failed program was:" >&5
4468
cat conftest.$ac_ext >&5
4469
# Broken: fails on valid input.
4472
rm -f conftest.err conftest.$ac_ext
4474
# OK, works on sane cases. Now check whether non-existent headers
4475
# can be detected and how.
4476
cat >conftest.$ac_ext <<_ACEOF
4477
#line $LINENO "configure"
4478
#include "confdefs.h"
4479
#include <ac_nonexistent.h>
4481
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4482
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4484
egrep -v '^ *\+' conftest.er1 >conftest.err
4486
cat conftest.err >&5
4487
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488
(exit $ac_status); } >/dev/null; then
4489
if test -s conftest.err; then
4490
ac_cpp_err=$ac_c_preproc_warn_flag
4497
if test -z "$ac_cpp_err"; then
4498
# Broken: success on invalid input.
4501
echo "$as_me: failed program was:" >&5
4502
cat conftest.$ac_ext >&5
4503
# Passes both tests.
4507
rm -f conftest.err conftest.$ac_ext
4510
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4511
rm -f conftest.err conftest.$ac_ext
4512
if $ac_preproc_ok; then
4515
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
4516
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
4517
{ (exit 1); exit 1; }; }
4521
ac_cpp='$CPP $CPPFLAGS'
4522
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4523
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4524
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4527
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4528
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4529
if test "${ac_cv_header_stdc+set}" = set; then
4530
echo $ECHO_N "(cached) $ECHO_C" >&6
4532
cat >conftest.$ac_ext <<_ACEOF
4533
#line $LINENO "configure"
4534
#include "confdefs.h"
4541
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4542
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4544
egrep -v '^ *\+' conftest.er1 >conftest.err
4546
cat conftest.err >&5
4547
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548
(exit $ac_status); } >/dev/null; then
4549
if test -s conftest.err; then
4550
ac_cpp_err=$ac_c_preproc_warn_flag
4557
if test -z "$ac_cpp_err"; then
4558
ac_cv_header_stdc=yes
4560
echo "$as_me: failed program was:" >&5
4561
cat conftest.$ac_ext >&5
4562
ac_cv_header_stdc=no
4564
rm -f conftest.err conftest.$ac_ext
4566
if test $ac_cv_header_stdc = yes; then
4567
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4568
cat >conftest.$ac_ext <<_ACEOF
4569
#line $LINENO "configure"
4570
#include "confdefs.h"
4574
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4575
egrep "memchr" >/dev/null 2>&1; then
4578
ac_cv_header_stdc=no
4584
if test $ac_cv_header_stdc = yes; then
4585
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4586
cat >conftest.$ac_ext <<_ACEOF
4587
#line $LINENO "configure"
4588
#include "confdefs.h"
4592
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4593
egrep "free" >/dev/null 2>&1; then
4596
ac_cv_header_stdc=no
4602
if test $ac_cv_header_stdc = yes; then
4603
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4604
if test "$cross_compiling" = yes; then
4607
cat >conftest.$ac_ext <<_ACEOF
4608
#line $LINENO "configure"
4609
#include "confdefs.h"
4611
#if ((' ' & 0x0FF) == 0x020)
4612
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4613
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4615
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4616
|| ('j' <= (c) && (c) <= 'r') \
4617
|| ('s' <= (c) && (c) <= 'z'))
4618
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4621
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4626
for (i = 0; i < 256; i++)
4627
if (XOR (islower (i), ISLOWER (i))
4628
|| toupper (i) != TOUPPER (i))
4633
rm -f conftest$ac_exeext
4634
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4635
(eval $ac_link) 2>&5
4637
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4638
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4639
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4642
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643
(exit $ac_status); }; }; then
4646
echo "$as_me: program exited with status $ac_status" >&5
4647
echo "$as_me: failed program was:" >&5
4648
cat conftest.$ac_ext >&5
4650
ac_cv_header_stdc=no
4652
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4656
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4657
echo "${ECHO_T}$ac_cv_header_stdc" >&6
4658
if test $ac_cv_header_stdc = yes; then
4660
cat >>confdefs.h <<\_ACEOF
4661
#define STDC_HEADERS 1
4666
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4676
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4677
inttypes.h stdint.h unistd.h
4679
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4680
echo "$as_me:$LINENO: checking for $ac_header" >&5
4681
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4682
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4683
echo $ECHO_N "(cached) $ECHO_C" >&6
4685
cat >conftest.$ac_ext <<_ACEOF
4686
#line $LINENO "configure"
4687
#include "confdefs.h"
4688
$ac_includes_default
4690
#include <$ac_header>
4692
rm -f conftest.$ac_objext
4693
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4694
(eval $ac_compile) 2>&5
4696
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697
(exit $ac_status); } &&
4698
{ ac_try='test -s conftest.$ac_objext'
4699
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703
(exit $ac_status); }; }; then
4704
eval "$as_ac_Header=yes"
4706
echo "$as_me: failed program was:" >&5
4707
cat conftest.$ac_ext >&5
4708
eval "$as_ac_Header=no"
4710
rm -f conftest.$ac_objext conftest.$ac_ext
4712
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4713
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4714
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4715
cat >>confdefs.h <<_ACEOF
4716
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4724
if test "${ac_cv_header_iconv_h+set}" = set; then
4725
echo "$as_me:$LINENO: checking for iconv.h" >&5
4726
echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
4727
if test "${ac_cv_header_iconv_h+set}" = set; then
4728
echo $ECHO_N "(cached) $ECHO_C" >&6
4730
echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
4731
echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
4733
# Is the header compilable?
4734
echo "$as_me:$LINENO: checking iconv.h usability" >&5
4735
echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
4736
cat >conftest.$ac_ext <<_ACEOF
4737
#line $LINENO "configure"
4738
#include "confdefs.h"
4739
$ac_includes_default
4742
rm -f conftest.$ac_objext
4743
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4744
(eval $ac_compile) 2>&5
4746
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747
(exit $ac_status); } &&
4748
{ ac_try='test -s conftest.$ac_objext'
4749
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753
(exit $ac_status); }; }; then
4754
ac_header_compiler=yes
4756
echo "$as_me: failed program was:" >&5
4757
cat conftest.$ac_ext >&5
4758
ac_header_compiler=no
4760
rm -f conftest.$ac_objext conftest.$ac_ext
4761
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4762
echo "${ECHO_T}$ac_header_compiler" >&6
4764
# Is the header present?
4765
echo "$as_me:$LINENO: checking iconv.h presence" >&5
4766
echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
4767
cat >conftest.$ac_ext <<_ACEOF
4768
#line $LINENO "configure"
4769
#include "confdefs.h"
4772
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4773
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4775
egrep -v '^ *\+' conftest.er1 >conftest.err
4777
cat conftest.err >&5
4778
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779
(exit $ac_status); } >/dev/null; then
4780
if test -s conftest.err; then
4781
ac_cpp_err=$ac_c_preproc_warn_flag
4788
if test -z "$ac_cpp_err"; then
4789
ac_header_preproc=yes
4791
echo "$as_me: failed program was:" >&5
4792
cat conftest.$ac_ext >&5
4793
ac_header_preproc=no
4795
rm -f conftest.err conftest.$ac_ext
4796
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4797
echo "${ECHO_T}$ac_header_preproc" >&6
4799
# So? What about this header?
4800
case $ac_header_compiler:$ac_header_preproc in
4802
{ echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
4803
echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4804
{ echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
4805
echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;};;
4807
{ echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
4808
echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
4809
{ echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
4810
echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
4811
{ echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
4812
echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;};;
4814
echo "$as_me:$LINENO: checking for iconv.h" >&5
4815
echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
4816
if test "${ac_cv_header_iconv_h+set}" = set; then
4817
echo $ECHO_N "(cached) $ECHO_C" >&6
4819
ac_cv_header_iconv_h=$ac_header_preproc
4821
echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
4822
echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
4825
if test $ac_cv_header_iconv_h = yes; then
4826
echo "$as_me:$LINENO: checking for iconv" >&5
4827
echo $ECHO_N "checking for iconv... $ECHO_C" >&6
4829
cat >conftest.$ac_ext <<_ACEOF
4830
#line $LINENO "configure"
4831
#include "confdefs.h"
4836
#ifdef F77_DUMMY_MAIN
4840
int F77_DUMMY_MAIN() { return 1; }
4846
iconv_t cd = iconv_open ("","");
4847
iconv (cd, NULL, NULL, NULL, NULL);
4853
rm -f conftest.$ac_objext conftest$ac_exeext
4854
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4855
(eval $ac_link) 2>&5
4857
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858
(exit $ac_status); } &&
4859
{ ac_try='test -s conftest$ac_exeext'
4860
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4863
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4864
(exit $ac_status); }; }; then
4866
echo "$as_me:$LINENO: result: yes" >&5
4867
echo "${ECHO_T}yes" >&6
4868
CONFIG_USE_ICONV="#define USE_ICONV"
4871
echo "$as_me: failed program was:" >&5
4872
cat conftest.$ac_ext >&5
4874
echo "$as_me:$LINENO: result: no" >&5
4875
echo "${ECHO_T}no" >&6
4876
echo "$as_me:$LINENO: checking for iconv in -liconv" >&5
4877
echo $ECHO_N "checking for iconv in -liconv... $ECHO_C" >&6
4878
LDFLAGS="${ICONV_LDFLAGS}" # for AC_TRY_LINK
4879
LIBS="-liconv" # for AC_TRY_LINK
4880
cat >conftest.$ac_ext <<_ACEOF
4881
#line $LINENO "configure"
4882
#include "confdefs.h"
4887
#ifdef F77_DUMMY_MAIN
4891
int F77_DUMMY_MAIN() { return 1; }
4897
iconv_t cd = iconv_open ("","");
4898
iconv (cd, NULL, NULL, NULL, NULL);
4904
rm -f conftest.$ac_objext conftest$ac_exeext
4905
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4906
(eval $ac_link) 2>&5
4908
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909
(exit $ac_status); } &&
4910
{ ac_try='test -s conftest$ac_exeext'
4911
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4914
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4915
(exit $ac_status); }; }; then
4917
echo "$as_me:$LINENO: result: yes" >&5
4918
echo "${ECHO_T}yes" >&6
4919
CONFIG_USE_ICONV="#define USE_ICONV"
4920
ICONV_LDFLAGS="${ICONV_LDFLAGS} -liconv"
4923
echo "$as_me: failed program was:" >&5
4924
cat conftest.$ac_ext >&5
4926
echo "$as_me:$LINENO: result: no" >&5
4927
echo "${ECHO_T}no" >&6
4929
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4931
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4937
if test "$CONFIG_USE_ICONV" = "" ; then
4938
{ echo "$as_me:$LINENO: WARNING: iconv was not found, HTML import may crash" >&5
4939
echo "$as_me: WARNING: iconv was not found, HTML import may crash" >&2;}
4941
CPPFLAGS="$SAVE_CPPFLAGS"
4942
LDFLAGS="$SAVE_LDFLAGS"
4945
ac_cpp='$CXXCPP $CPPFLAGS'
4946
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4947
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4948
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4949
# restore C++ language
4955
#--------------------------------------------------------------------
4956
# Checks for freetype
4957
#--------------------------------------------------------------------
4960
# Check whether --with-freetype or --without-freetype was given.
4961
if test "${with_freetype+set}" = set; then
4962
withval="$with_freetype"
4966
SAVE_CPPFLAGS="$CPPFLAGS"
4967
SAVE_LDFLAGS="$LDFLAGS"
4969
CONFIG_USE_FREETYPE=""
4970
if test "$with_freetype" = "no" ; then
4971
echo "$as_me:$LINENO: result: disabling freetype support" >&5
4972
echo "${ECHO_T}disabling freetype support" >&6
4974
CPPFLAGS=`freetype-config --cflags`
4975
LIBS=`freetype-config --libs`
4976
if test "${ac_cv_header_ft2build_h+set}" = set; then
4977
echo "$as_me:$LINENO: checking for ft2build.h" >&5
4978
echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6
4979
if test "${ac_cv_header_ft2build_h+set}" = set; then
4980
echo $ECHO_N "(cached) $ECHO_C" >&6
4982
echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
4983
echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6
4985
# Is the header compilable?
4986
echo "$as_me:$LINENO: checking ft2build.h usability" >&5
4987
echo $ECHO_N "checking ft2build.h usability... $ECHO_C" >&6
4988
cat >conftest.$ac_ext <<_ACEOF
4989
#line $LINENO "configure"
4990
#include "confdefs.h"
4991
$ac_includes_default
4992
#include <ft2build.h>
4994
rm -f conftest.$ac_objext
4995
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4996
(eval $ac_compile) 2>&5
4998
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4999
(exit $ac_status); } &&
5000
{ ac_try='test -s conftest.$ac_objext'
5001
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5004
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5005
(exit $ac_status); }; }; then
5006
ac_header_compiler=yes
5008
echo "$as_me: failed program was:" >&5
5009
cat conftest.$ac_ext >&5
5010
ac_header_compiler=no
5012
rm -f conftest.$ac_objext conftest.$ac_ext
5013
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5014
echo "${ECHO_T}$ac_header_compiler" >&6
5016
# Is the header present?
5017
echo "$as_me:$LINENO: checking ft2build.h presence" >&5
5018
echo $ECHO_N "checking ft2build.h presence... $ECHO_C" >&6
5019
cat >conftest.$ac_ext <<_ACEOF
5020
#line $LINENO "configure"
5021
#include "confdefs.h"
5022
#include <ft2build.h>
5024
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5025
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5027
egrep -v '^ *\+' conftest.er1 >conftest.err
5029
cat conftest.err >&5
5030
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031
(exit $ac_status); } >/dev/null; then
5032
if test -s conftest.err; then
5033
ac_cpp_err=$ac_cxx_preproc_warn_flag
5040
if test -z "$ac_cpp_err"; then
5041
ac_header_preproc=yes
5043
echo "$as_me: failed program was:" >&5
5044
cat conftest.$ac_ext >&5
5045
ac_header_preproc=no
5047
rm -f conftest.err conftest.$ac_ext
5048
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5049
echo "${ECHO_T}$ac_header_preproc" >&6
5051
# So? What about this header?
5052
case $ac_header_compiler:$ac_header_preproc in
5054
{ echo "$as_me:$LINENO: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&5
5055
echo "$as_me: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5056
{ echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5
5057
echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;};;
5059
{ echo "$as_me:$LINENO: WARNING: ft2build.h: present but cannot be compiled" >&5
5060
echo "$as_me: WARNING: ft2build.h: present but cannot be compiled" >&2;}
5061
{ echo "$as_me:$LINENO: WARNING: ft2build.h: check for missing prerequisite headers?" >&5
5062
echo "$as_me: WARNING: ft2build.h: check for missing prerequisite headers?" >&2;}
5063
{ echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5
5064
echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;};;
5066
echo "$as_me:$LINENO: checking for ft2build.h" >&5
5067
echo $ECHO_N "checking for ft2build.h... $ECHO_C" >&6
5068
if test "${ac_cv_header_ft2build_h+set}" = set; then
5069
echo $ECHO_N "(cached) $ECHO_C" >&6
5071
ac_cv_header_ft2build_h=$ac_header_preproc
5073
echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
5074
echo "${ECHO_T}$ac_cv_header_ft2build_h" >&6
5077
if test $ac_cv_header_ft2build_h = yes; then
5078
echo "$as_me:$LINENO: checking for freetype" >&5
5079
echo $ECHO_N "checking for freetype... $ECHO_C" >&6
5080
cat >conftest.$ac_ext <<_ACEOF
5081
#line $LINENO "configure"
5082
#include "confdefs.h"
5084
#include <ft2build.h>
5085
#include FT_FREETYPE_H
5087
#ifdef F77_DUMMY_MAIN
5091
int F77_DUMMY_MAIN() { return 1; }
5097
FT_Library ft_library;
5098
(void) FT_Init_FreeType (&ft_library);
5104
rm -f conftest.$ac_objext conftest$ac_exeext
5105
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5106
(eval $ac_link) 2>&5
5108
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5109
(exit $ac_status); } &&
5110
{ ac_try='test -s conftest$ac_exeext'
5111
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5114
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115
(exit $ac_status); }; }; then
5117
echo "$as_me:$LINENO: result: yes" >&5
5118
echo "${ECHO_T}yes" >&6
5119
CONFIG_USE_FREETYPE="#define USE_FREETYPE"
5120
FREETYPE_CFLAGS="$CPPFLAGS"
5121
if test "$with_freetype" = "linked" -o "$with_freetype" = "" ; then
5122
FREETYPE_LDFLAGS="$LIBS"
5123
CONFIG_LINKED_FREETYPE="#define LINKED_FREETYPE"
5127
echo "$as_me: failed program was:" >&5
5128
cat conftest.$ac_ext >&5
5130
echo "$as_me:$LINENO: result: no" >&5
5131
echo "${ECHO_T}no" >&6
5133
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5139
CPPFLAGS="$SAVE_CPPFLAGS"
5140
LDFLAGS="$SAVE_LDFLAGS"
5148
#--------------------------------------------------------------------
5149
# Checks for library functions
5150
#--------------------------------------------------------------------
5153
for ac_func in gettimeofday
5155
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5156
echo "$as_me:$LINENO: checking for $ac_func" >&5
5157
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5158
if eval "test \"\${$as_ac_var+set}\" = set"; then
5159
echo $ECHO_N "(cached) $ECHO_C" >&6
5161
cat >conftest.$ac_ext <<_ACEOF
5162
#line $LINENO "configure"
5163
#include "confdefs.h"
5164
/* System header to define __stub macros and hopefully few prototypes,
5165
which can conflict with char $ac_func (); below. */
5167
/* Override any gcc2 internal prototype to avoid an error. */
5171
/* We use char because int might match the return type of a gcc2
5172
builtin and then its argument prototype would still apply. */
5176
#ifdef F77_DUMMY_MAIN
5180
int F77_DUMMY_MAIN() { return 1; }
5185
/* The GNU C library defines this for functions which it implements
5186
to always fail with ENOSYS. Some functions are actually named
5187
something starting with __ and the normal name is an alias. */
5188
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5198
rm -f conftest.$ac_objext conftest$ac_exeext
5199
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5200
(eval $ac_link) 2>&5
5202
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5203
(exit $ac_status); } &&
5204
{ ac_try='test -s conftest$ac_exeext'
5205
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5208
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209
(exit $ac_status); }; }; then
5210
eval "$as_ac_var=yes"
5212
echo "$as_me: failed program was:" >&5
5213
cat conftest.$ac_ext >&5
5214
eval "$as_ac_var=no"
5216
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5218
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
5219
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5220
if test `eval echo '${'$as_ac_var'}'` = yes; then
5221
cat >>confdefs.h <<_ACEOF
5222
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5225
CONFIG_GET_TIME_OF_DAY="#define USE_GET_TIME_OF_DAY 1"
5232
#--------------------------------------------------------------------
5233
# Fixes for erroneous behaviour of gcc/g++ and guile on some systems
5234
#--------------------------------------------------------------------
5236
echo "$as_me:$LINENO: checking whether ... arguments behave correctly" >&5
5237
echo $ECHO_N "checking whether ... arguments behave correctly... $ECHO_C" >&6
5238
cat >conftest.$ac_ext <<_ACEOF
5239
#line $LINENO "configure"
5240
#include "confdefs.h"
5242
void gh_enter (void (*call_back) (int, char**));
5243
void install_guile (void (*call_back) (int, char**)) {
5244
gh_enter ((void (*)(...)) ((void*) call_back)); }
5246
#ifdef F77_DUMMY_MAIN
5250
int F77_DUMMY_MAIN() { return 1; }
5261
rm -f conftest.$ac_objext
5262
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5263
(eval $ac_compile) 2>&5
5265
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5266
(exit $ac_status); } &&
5267
{ ac_try='test -s conftest.$ac_objext'
5268
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5271
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5272
(exit $ac_status); }; }; then
5274
CONFIG_DOTS="#define DOTS_OK 1"
5275
echo "$as_me:$LINENO: result: yes" >&5
5276
echo "${ECHO_T}yes" >&6
5279
echo "$as_me: failed program was:" >&5
5280
cat conftest.$ac_ext >&5
5282
echo "$as_me:$LINENO: result: no" >&5
5283
echo "${ECHO_T}no" >&6
5286
rm -f conftest.$ac_objext conftest.$ac_ext
5289
echo "$as_me:$LINENO: checking the size_t of guile strings" >&5
5290
echo $ECHO_N "checking the size_t of guile strings... $ECHO_C" >&6
5291
CXXFLAGS="`guile-config compile`"
5292
cat >conftest.$ac_ext <<_ACEOF
5293
#line $LINENO "configure"
5294
#include "confdefs.h"
5296
#include <guile/gh.h>
5297
#include <libguile.h>
5298
void print_string (SCM s) {
5300
char* r= gh_scm2newstr (s, &len_r); }
5302
#ifdef F77_DUMMY_MAIN
5306
int F77_DUMMY_MAIN() { return 1; }
5317
rm -f conftest.$ac_objext
5318
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5319
(eval $ac_compile) 2>&5
5321
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322
(exit $ac_status); } &&
5323
{ ac_try='test -s conftest.$ac_objext'
5324
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328
(exit $ac_status); }; }; then
5330
CONFIG_GUILE_STR_SIZE_T="#define guile_str_size_t int"
5331
echo "$as_me:$LINENO: result: int" >&5
5332
echo "${ECHO_T}int" >&6
5335
echo "$as_me: failed program was:" >&5
5336
cat conftest.$ac_ext >&5
5338
CONFIG_GUILE_STR_SIZE_T="#define guile_str_size_t size_t"
5339
echo "$as_me:$LINENO: result: size_t" >&5
5340
echo "${ECHO_T}size_t" >&6
5343
rm -f conftest.$ac_objext conftest.$ac_ext
5347
echo "$as_me:$LINENO: checking if compiler supports -fno-rtti -fno-exceptions" >&5
5348
echo $ECHO_N "checking if compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5349
CXXFLAGS="-fno-rtti -fno-exceptions"
5350
cat >conftest.$ac_ext <<_ACEOF
5351
#line $LINENO "configure"
5352
#include "confdefs.h"
5354
int some_variable = 0;
5356
#ifdef F77_DUMMY_MAIN
5360
int F77_DUMMY_MAIN() { return 1; }
5371
rm -f conftest.$ac_objext
5372
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5373
(eval $ac_compile) 2>&5
5375
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376
(exit $ac_status); } &&
5377
{ ac_try='test -s conftest.$ac_objext'
5378
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5381
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382
(exit $ac_status); }; }; then
5384
CONFIG_CXXDIALECT="-fno-rtti -fno-exceptions"
5385
echo "$as_me:$LINENO: result: yes" >&5
5386
echo "${ECHO_T}yes" >&6
5389
echo "$as_me: failed program was:" >&5
5390
cat conftest.$ac_ext >&5
5392
CONFIG_CXXDIALECT=""
5393
echo "$as_me:$LINENO: result: no" >&5
5394
echo "${ECHO_T}no" >&6
5397
rm -f conftest.$ac_objext conftest.$ac_ext
5401
echo "$as_me:$LINENO: checking if statically linking with guile work" >&5
5402
echo $ECHO_N "checking if statically linking with guile work... $ECHO_C" >&6
5403
CONFIG_GUILE_LTDL=""
5404
CPPFLAGS="$GUILE_CFLAGS"
5406
LIBS="$GUILE_LDFLAGS"
5407
cat >conftest.$ac_ext <<_ACEOF
5408
#line $LINENO "configure"
5409
#include "confdefs.h"
5411
#include <guile/gh.h>
5414
#ifdef F77_DUMMY_MAIN
5418
int F77_DUMMY_MAIN() { return 1; }
5425
static void my_main (int argc, char** argv) {}
5426
static void install_guile () {
5428
gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
5430
gh_enter (0, NULL, my_main);
5434
dummy::install_guile ();
5440
rm -f conftest.$ac_objext conftest$ac_exeext
5441
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5442
(eval $ac_link) 2>&5
5444
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445
(exit $ac_status); } &&
5446
{ ac_try='test -s conftest$ac_exeext'
5447
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5450
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451
(exit $ac_status); }; }; then
5452
tm_link_guile_static="yes"
5454
echo "$as_me: failed program was:" >&5
5455
cat conftest.$ac_ext >&5
5456
tm_link_guile_static="no"
5458
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5460
echo "$as_me:$LINENO: result: \"$tm_link_guile_static\"" >&5
5461
echo "${ECHO_T}\"$tm_link_guile_static\"" >&6
5462
if test "$tm_link_guile_static" = "no" ; then
5463
echo "$as_me:$LINENO: checking if it works with -lltdl" >&5
5464
echo $ECHO_N "checking if it works with -lltdl... $ECHO_C" >&6
5465
LIBS="$GUILE_LDFLAGS -lltdl"
5466
cat >conftest.$ac_ext <<_ACEOF
5467
#line $LINENO "configure"
5468
#include "confdefs.h"
5470
#include <guile/gh.h>
5473
#ifdef F77_DUMMY_MAIN
5477
int F77_DUMMY_MAIN() { return 1; }
5484
static void my_main (int argc, char** argv) {}
5485
static void install_guile () {
5487
gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
5489
gh_enter (0, NULL, my_main);
5493
dummy::install_guile ();
5499
rm -f conftest.$ac_objext conftest$ac_exeext
5500
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5501
(eval $ac_link) 2>&5
5503
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504
(exit $ac_status); } &&
5505
{ ac_try='test -s conftest$ac_exeext'
5506
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5509
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510
(exit $ac_status); }; }; then
5511
tm_link_guile_static_ltdl="yes"
5513
echo "$as_me: failed program was:" >&5
5514
cat conftest.$ac_ext >&5
5515
tm_link_guile_static_ltdl="no"
5517
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5519
echo "$as_me:$LINENO: result: \"$tm_link_guile_static_ltdl\"" >&5
5520
echo "${ECHO_T}\"$tm_link_guile_static_ltdl\"" >&6
5521
if test "$tm_link_guile_static_ltdl" = "yes" ; then
5522
GUILE_LDFLAGS="$GUILE_LDFLAGS -lltdl"
5524
echo "$as_me:$LINENO: checking if it works with -lltdl -ldl" >&5
5525
echo $ECHO_N "checking if it works with -lltdl -ldl... $ECHO_C" >&6
5526
LIBS="$GUILE_LDFLAGS -lltdl -ldl"
5527
cat >conftest.$ac_ext <<_ACEOF
5528
#line $LINENO "configure"
5529
#include "confdefs.h"
5531
#include <guile/gh.h>
5534
#ifdef F77_DUMMY_MAIN
5538
int F77_DUMMY_MAIN() { return 1; }
5545
static void my_main (int argc, char** argv) {}
5546
static void install_guile () {
5548
gh_enter (0, NULL, (void (*)(...)) ((void*) my_main));
5550
gh_enter (0, NULL, my_main);
5554
dummy::install_guile ();
5560
rm -f conftest.$ac_objext conftest$ac_exeext
5561
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5562
(eval $ac_link) 2>&5
5564
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565
(exit $ac_status); } &&
5566
{ ac_try='test -s conftest$ac_exeext'
5567
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5570
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571
(exit $ac_status); }; }; then
5572
tm_link_guile_static_ltdl_ldl="yes"
5574
echo "$as_me: failed program was:" >&5
5575
cat conftest.$ac_ext >&5
5576
tm_link_guile_static_ltdl_ldl="no"
5578
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5580
echo "$as_me:$LINENO: result: \"$tm_link_guile_static_ltdl_ldl\"" >&5
5581
echo "${ECHO_T}\"$tm_link_guile_static_ltdl_ldl\"" >&6
5582
if test "$tm_link_guile_static_ltdl_ldl" = "yes" ; then
5583
GUILE_LDFLAGS="$GUILE_LDFLAGS -lltdl -ldl"
5585
{ echo "$as_me:$LINENO: WARNING: unable to link statically with guile" >&5
5586
echo "$as_me: WARNING: unable to link statically with guile" >&2;}
5594
#--------------------------------------------------------------------
5595
# Disable customized allocator
5596
#--------------------------------------------------------------------
5598
# Check whether --enable-fastalloc or --disable-fastalloc was given.
5599
if test "${enable_fastalloc+set}" = set; then
5600
enableval="$enable_fastalloc"
5603
enable_fastalloc="yes"
5605
case "$enable_fastalloc" in
5607
CONFIG_NO_FAST_ALLOC="" ;;
5609
CONFIG_NO_FAST_ALLOC="#define NO_FAST_ALLOC"
5610
echo "$as_me:$LINENO: result: disabling fast allocator for small objects" >&5
5611
echo "${ECHO_T}disabling fast allocator for small objects" >&6 ;;
5613
{ { echo "$as_me:$LINENO: error: bad option --enable-fastalloc=$enable_fastalloc" >&5
5614
echo "$as_me: error: bad option --enable-fastalloc=$enable_fastalloc" >&2;}
5615
{ (exit 1); exit 1; }; } ;;
5619
#--------------------------------------------------------------------
5620
# Handle different systems case by case
5621
#--------------------------------------------------------------------
5624
CONFIG_CXXWARNING="-Wall -Wno-return-type"
5625
CONFIG_CXXTEMPLATE=""
5626
CONFIG_STD_SETENV="#define STD_SETENV"
5628
CONFIG_LIB_PATH="LD_LIBRARY_PATH"
5629
CONFIG_CHMOD="chmod -f"
5630
CONFIG_DASH_I_DASH="-I-"
5632
case "$GUILE_VERSION" in
5633
1.0* | 1.1* | 1.2* | 1.3* | 1.4* | 1.5*)
5634
CONFIG_GUILE_SERIAL="A"
5637
CONFIG_GUILE_SERIAL="B"
5642
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
5643
if test -f $ac_dir/install-sh; then
5645
ac_install_sh="$ac_aux_dir/install-sh -c"
5647
elif test -f $ac_dir/install.sh; then
5649
ac_install_sh="$ac_aux_dir/install.sh -c"
5651
elif test -f $ac_dir/shtool; then
5653
ac_install_sh="$ac_aux_dir/shtool install -c"
5657
if test -z "$ac_aux_dir"; then
5658
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
5659
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
5660
{ (exit 1); exit 1; }; }
5662
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
5663
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
5664
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
5666
# Make sure we can run config.sub.
5667
$ac_config_sub sun4 >/dev/null 2>&1 ||
5668
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
5669
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
5670
{ (exit 1); exit 1; }; }
5672
echo "$as_me:$LINENO: checking build system type" >&5
5673
echo $ECHO_N "checking build system type... $ECHO_C" >&6
5674
if test "${ac_cv_build+set}" = set; then
5675
echo $ECHO_N "(cached) $ECHO_C" >&6
5677
ac_cv_build_alias=$build_alias
5678
test -z "$ac_cv_build_alias" &&
5679
ac_cv_build_alias=`$ac_config_guess`
5680
test -z "$ac_cv_build_alias" &&
5681
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5682
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5683
{ (exit 1); exit 1; }; }
5684
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
5685
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
5686
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
5687
{ (exit 1); exit 1; }; }
5690
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5691
echo "${ECHO_T}$ac_cv_build" >&6
5693
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5694
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5695
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5698
echo "$as_me:$LINENO: checking host system type" >&5
5699
echo $ECHO_N "checking host system type... $ECHO_C" >&6
5700
if test "${ac_cv_host+set}" = set; then
5701
echo $ECHO_N "(cached) $ECHO_C" >&6
5703
ac_cv_host_alias=$host_alias
5704
test -z "$ac_cv_host_alias" &&
5705
ac_cv_host_alias=$ac_cv_build_alias
5706
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5707
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5708
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5709
{ (exit 1); exit 1; }; }
5712
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5713
echo "${ECHO_T}$ac_cv_host" >&6
5715
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5716
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5717
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5721
i*86-*-linux-gnu* | i*86-*-freebsd*)
5722
echo "$as_me:$LINENO: result: final setup for an Intel/GNU-linux host" >&5
5723
echo "${ECHO_T}final setup for an Intel/GNU-linux host" >&6
5724
CONFIG_OS="GNU_LINUX"
5725
CONFIG_OS_SUFFIX="gnu-linux"
5726
CONFIG_CX="$X_CFLAGS"
5727
CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
5729
CONFIG_LSTATIC="-static"
5730
CONFIG_LSHARED="-shared"
5731
CONFIG_LPATH="-Wl,-rpath,"
5732
CONFIG_LX="$X_LIBS -lXext -lX11"
5734
CONFIG_BSTATIC="-Wl,-Bstatic"
5735
CONFIG_BSHARED="-Wl,-Bdynamic"
5736
CONFIG_BPATH="-Wl,-rpath,"
5737
CONFIG_BX="$X_LIBS -lXext -lX11"
5738
CONFIG_WORD_LENGTH="4"
5739
CONFIG_WORD_LENGTH_INC="3"
5740
CONFIG_WORD_MASK="0xfffffffc"
5741
CONFIG_MAX_FAST="260 // WORD_LENGTH more than power of 2"
5744
echo "$as_me:$LINENO: result: final setup for a Mips/GNU-linux host" >&5
5745
echo "${ECHO_T}final setup for a Mips/GNU-linux host" >&6
5746
CONFIG_OS="MIPS_GNU_LINUX"
5747
CONFIG_OS_SUFFIX="mips-gnu-linux"
5748
CONFIG_CX="$X_CFLAGS"
5749
CONFIG_CXXOPTIMIZE="-O2"
5751
CONFIG_LSTATIC="-static"
5752
CONFIG_LSHARED="-shared"
5753
CONFIG_LPATH="-Wl,-rpath,"
5754
CONFIG_LX="$X_LIBS -lXext -lX11"
5756
CONFIG_BSTATIC="-Wl,-Bstatic"
5757
CONFIG_BSHARED="-Wl,-Bdynamic"
5758
CONFIG_BPATH="-Wl,-rpath,"
5759
CONFIG_BX="$X_LIBS -lXext -lX11"
5760
CONFIG_WORD_LENGTH="4"
5761
CONFIG_WORD_LENGTH_INC="3"
5762
CONFIG_WORD_MASK="0xfffffffc"
5763
CONFIG_MAX_FAST="260 // WORD_LENGTH more than power of 2"
5766
echo "$as_me:$LINENO: result: final setup for a MipsEL/GNU-linux host" >&5
5767
echo "${ECHO_T}final setup for a MipsEL/GNU-linux host" >&6
5768
CONFIG_OS="MIPSEL_GNU_LINUX"
5769
CONFIG_OS_SUFFIX="mipsel-gnu-linux"
5770
CONFIG_CX="$X_CFLAGS"
5771
CONFIG_CXXOPTIMIZE="-O2"
5773
CONFIG_LSTATIC="-static"
5774
CONFIG_LSHARED="-shared"
5775
CONFIG_LPATH="-Wl,-rpath,"
5776
CONFIG_LX="$X_LIBS -lXext -lX11"
5778
CONFIG_BSTATIC="-Wl,-Bstatic"
5779
CONFIG_BSHARED="-Wl,-Bdynamic"
5780
CONFIG_BPATH="-Wl,-rpath,"
5781
CONFIG_BX="$X_LIBS -lXext -lX11"
5782
CONFIG_WORD_LENGTH="4"
5783
CONFIG_WORD_LENGTH_INC="3"
5784
CONFIG_WORD_MASK="0xfffffffc"
5785
CONFIG_MAX_FAST="260 // WORD_LENGTH more than power of 2"
5788
echo "$as_me:$LINENO: result: final setup for an Arm/GNU-linux host" >&5
5789
echo "${ECHO_T}final setup for an Arm/GNU-linux host" >&6
5790
CONFIG_OS="ARM_GNU_LINUX"
5791
CONFIG_OS_SUFFIX="arm-gnu-linux"
5792
CONFIG_CX="$X_CFLAGS"
5793
CONFIG_CXXOPTIMIZE="-O2"
5795
CONFIG_LSTATIC="-static"
5796
CONFIG_LSHARED="-shared"
5797
CONFIG_LPATH="-Wl,-rpath,"
5798
CONFIG_LX="$X_LIBS -lXext -lX11"
5800
CONFIG_BSTATIC="-Wl,-Bstatic"
5801
CONFIG_BSHARED="-Wl,-Bdynamic"
5802
CONFIG_BPATH="-Wl,-rpath,"
5803
CONFIG_BX="$X_LIBS -lXext -lX11"
5804
CONFIG_WORD_LENGTH="4"
5805
CONFIG_WORD_LENGTH_INC="3"
5806
CONFIG_WORD_MASK="0xfffffffc"
5807
CONFIG_MAX_FAST="260 // WORD_LENGTH more than power of 2"
5809
powerpc-*-linux-gnu*)
5810
echo "$as_me:$LINENO: result: final setup for a PowerPC/GNU-linux host" >&5
5811
echo "${ECHO_T}final setup for a PowerPC/GNU-linux host" >&6
5812
CONFIG_OS="POWERPC_GNU_LINUX"
5813
CONFIG_OS_SUFFIX="powerpc-gnu-linux"
5814
CONFIG_CX="$X_CFLAGS"
5815
CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
5817
CONFIG_LSTATIC="-static"
5818
CONFIG_LSHARED="-shared"
5819
CONFIG_LPATH="-Wl,-rpath,"
5820
CONFIG_LX="$X_LIBS -lXext -lX11"
5822
CONFIG_BSTATIC="-Wl,-Bstatic"
5823
CONFIG_BSHARED="-Wl,-Bdynamic"
5824
CONFIG_BPATH="-Wl,-rpath,"
5825
CONFIG_BX="$X_LIBS -lXext -lX11"
5826
CONFIG_WORD_LENGTH="4"
5827
CONFIG_WORD_LENGTH_INC="3"
5828
CONFIG_WORD_MASK="0xfffffffc"
5829
CONFIG_MAX_FAST="260 // WORD_LENGTH more than power of 2"
5832
echo "$as_me:$LINENO: result: final setup for a SUN/solaris host" >&5
5833
echo "${ECHO_T}final setup for a SUN/solaris host" >&6
5835
CONFIG_OS_SUFFIX="sun"
5836
CONFIG_CX="$X_CFLAGS"
5837
CONFIG_CXXOPTIMIZE="-O2"
5841
CONFIG_LPATH="-Wl,-R,"
5842
CONFIG_LX="$X_LIBS -lXext -lX11"
5846
CONFIG_BPATH="-Wl,-R,"
5847
CONFIG_BX="$X_LIBS -lXext -lX11 -lsocket"
5848
CONFIG_WORD_LENGTH="8"
5849
CONFIG_WORD_LENGTH_INC="7"
5850
CONFIG_WORD_MASK="0xfffffff8"
5851
CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
5852
CONFIG_STD_SETENV=""
5855
echo "$as_me:$LINENO: result: final setup for a Sparc host running GNU/Linux" >&5
5856
echo "${ECHO_T}final setup for a Sparc host running GNU/Linux" >&6
5857
CONFIG_OS="SPARC_GNU_LINUX"
5858
CONFIG_OS_SUFFIX="sparc-gnu-linux"
5859
CONFIG_CX="$X_CFLAGS"
5860
CONFIG_CXXOPTIMIZE="-O3 -fexpensive-optimizations"
5862
CONFIG_LSTATIC="-static"
5863
CONFIG_LSHARED="-shared"
5864
CONFIG_LPATH="-Wl,-rpath,"
5865
CONFIG_LX="$X_LIBS -lXext -lX11"
5867
CONFIG_BSTATIC="-Wl,-Bstatic"
5868
CONFIG_BSHARED="-Wl,-Bdynamic"
5869
CONFIG_BPATH="-Wl,-rpath,"
5870
CONFIG_BX="$X_LIBS -lXext -lX11"
5871
CONFIG_WORD_LENGTH="8"
5872
CONFIG_WORD_LENGTH_INC="7"
5873
CONFIG_WORD_MASK="0xfffffff8"
5874
CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
5875
CONFIG_STD_SETENV=""
5878
echo "$as_me:$LINENO: result: final setup for a DEC/alpha host" >&5
5879
echo "${ECHO_T}final setup for a DEC/alpha host" >&6
5881
CONFIG_OS_SUFFIX="dec"
5882
CONFIG_CX="$X_CFLAGS"
5883
CONFIG_CXXOPTIMIZE="-O2"
5886
CONFIG_LSHARED="-shared"
5887
CONFIG_LPATH="-Wl,-rpath,"
5888
CONFIG_LX="$X_LIBS -lXext -lX11"
5891
CONFIG_BSHARED="-shared"
5892
CONFIG_BPATH="-Wl,-rpath,"
5893
CONFIG_BX="$X_LIBS -lXext -lX11"
5894
CONFIG_WORD_LENGTH="8"
5895
CONFIG_WORD_LENGTH_INC="7"
5896
CONFIG_WORD_MASK="0xfffffffffffffff8"
5897
CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
5898
CONFIG_STD_SETENV=""
5900
*alpha*-*-linux-gnu*)
5901
echo "$as_me:$LINENO: result: final setup for an Alpha/GNU-Linux host" >&5
5902
echo "${ECHO_T}final setup for an Alpha/GNU-Linux host" >&6
5903
CONFIG_OS="ALPHA_GNU_LINUX"
5904
CONFIG_OS_SUFFIX="alpha-gnu-linux"
5905
CONFIG_CX="$X_CFLAGS"
5906
CONFIG_CXXOPTIMIZE="-O2"
5907
CONFIG_LSTATIC="-static"
5908
CONFIG_LSHARED="-shared"
5909
CONFIG_LPATH="-Wl,-rpath,"
5910
CONFIG_LX="$X_LIBS -lXext -lX11"
5912
CONFIG_BSHARED="-shared"
5913
CONFIG_BPATH="-Wl,-rpath,"
5914
CONFIG_BX="$X_LIBS -lXext -lX11"
5915
CONFIG_WORD_LENGTH="8"
5916
CONFIG_WORD_LENGTH_INC="7"
5917
CONFIG_WORD_MASK="0xfffffffffffffff8"
5918
CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
5921
echo "$as_me:$LINENO: result: final setup for an IBM S/390 GNU-Linux host" >&5
5922
echo "${ECHO_T}final setup for an IBM S/390 GNU-Linux host" >&6
5924
CONFIG_OS_SUFFIX="s390"
5925
CONFIG_CX="$X_CFLAGS"
5926
CONFIG_CXXOPTIMIZE="-O2"
5928
CONFIG_LSTATIC="-static"
5929
CONFIG_LSHARED="-shared"
5930
CONFIG_LPATH="-Wl,-rpath,"
5931
CONFIG_LX="$X_LIBS -lXext -lX11"
5933
CONFIG_BSTATIC="-Wl,-Bstatic"
5934
CONFIG_BSHARED="-Wl,-Bdynamic"
5935
CONFIG_BPATH="-Wl,-rpath,"
5936
CONFIG_BX="$X_LIBS -lXext -lX11"
5937
CONFIG_WORD_LENGTH="4"
5938
CONFIG_WORD_LENGTH_INC="3"
5939
CONFIG_WORD_MASK="0xfffffffc"
5940
CONFIG_MAX_FAST="260 // WORD_LENGTH more than power of 2"
5941
CONFIG_STD_SETENV=""
5944
echo "$as_me:$LINENO: result: final setup for cygwin" >&5
5945
echo "${ECHO_T}final setup for cygwin" >&6
5947
CONFIG_OS_SUFFIX="cygwin"
5948
CONFIG_CX="$X_CFLAGS"
5949
CONFIG_CXXOPTIMIZE="-O2"
5950
CONFIG_LFLAGS="-Wl,-stack,8388608"
5951
CONFIG_LSTATIC="-static"
5952
CONFIG_LSHARED="-shared"
5953
CONFIG_LPATH="-Wl,-rpath,"
5954
CONFIG_LX="$X_LIBS -lXext -lX11"
5955
CONFIG_BFLAGS="-Wl,-stack,8388608"
5956
CONFIG_BSTATIC="-Wl,-Bstatic"
5957
CONFIG_BSHARED="-Wl,-Bdynamic"
5958
CONFIG_BPATH="-Wl,-rpath,"
5959
CONFIG_BX="$X_LIBS -lXext -lX11"
5960
CONFIG_WORD_LENGTH="4"
5961
CONFIG_WORD_LENGTH_INC="3"
5962
CONFIG_WORD_MASK="0xfffffffc"
5963
CONFIG_MAX_FAST="260 // WORD_LENGTH more than power of 2"
5964
# CXX="export CYGWIN=check_case:strict; $CXX"
5968
echo "$ac_t""final setup for a PowerPC/Darwin host" 1>&6
5969
CONFIG_OS="POWERPC_APPLE_DARWIN"
5970
CONFIG_OS_SUFFIX="powerpc-apple-darwin"
5971
CONFIG_CX="$X_CFLAGS"
5972
CONFIG_CXXFLAGS="-I${prefix}/include"
5973
CONFIG_CXXOPTIMIZE="-O2"
5974
CONFIG_LSTATIC="-static"
5975
CONFIG_LSHARED="-dynamiclib -undefined suppress -flat_namespace"
5977
CONFIG_LX="$X_LIBS -lXext -lX11"
5978
CONFIG_LDL="-L${prefix}/lib -ldl"
5981
CONFIG_BX="$X_LIBS -lXext -lX11"
5982
CONFIG_WORD_LENGTH="4"
5983
CONFIG_WORD_LENGTH_INC="3"
5984
CONFIG_WORD_MASK="0xfffffffc"
5985
CONFIG_MAX_FAST="260 // WORD_LENGTH more than power of 2"
5987
CONFIG_LIB_PATH="DYLD_LIBRARY_PATH"
5990
echo "$as_me:$LINENO: result: final setup for an Itanium/GNU-Linux host" >&5
5991
echo "${ECHO_T}final setup for an Itanium/GNU-Linux host" >&6
5992
CONFIG_OS="IA64_GNU_LINUX"
5993
CONFIG_OS_SUFFIX="ia64-gnu-linux"
5994
CONFIG_CX="$X_CFLAGS"
5995
CONFIG_CXXOPTIMIZE="-O2"
5996
CONFIG_LSTATIC="-static"
5997
CONFIG_LSHARED="-shared"
5998
CONFIG_LPATH="-Wl,-rpath,"
5999
CONFIG_LX="$X_LIBS -lXext -lX11"
6001
CONFIG_BSHARED="-shared"
6002
CONFIG_BPATH="-Wl,-rpath,"
6003
CONFIG_BX="$X_LIBS -lXext -lX11"
6004
CONFIG_WORD_LENGTH="8"
6005
CONFIG_WORD_LENGTH_INC="7"
6006
CONFIG_WORD_MASK="0xfffffffffffffff8"
6007
CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
6009
hppa64-*-linux-gnu*)
6010
echo "$as_me:$LINENO: result: final setup for an HP PA_RISC/GNU-Linux host" >&5
6011
echo "${ECHO_T}final setup for an HP PA_RISC/GNU-Linux host" >&6
6012
CONFIG_OS="HPPA64_GNU_LINUX"
6013
CONFIG_OS_SUFFIX="hppa64-gnu-linux"
6014
CONFIG_CX="$X_CFLAGS"
6015
CONFIG_CXXFLAGS="$CONFIG_CXXFLAGS -fPIC"
6016
CONFIG_CXXOPTIMIZE="-O2"
6017
CONFIG_LSTATIC="-static"
6018
CONFIG_LSHARED="-shared"
6019
CONFIG_LPATH="-Wl,-rpath,"
6020
CONFIG_LX="$X_LIBS -lXext -lX11"
6022
CONFIG_BSHARED="-shared"
6023
CONFIG_BPATH="-Wl,-rpath,"
6024
CONFIG_BX="$X_LIBS -lXext -lX11"
6025
CONFIG_WORD_LENGTH="8"
6026
CONFIG_WORD_LENGTH_INC="7"
6027
CONFIG_WORD_MASK="0xfffffffffffffff8"
6028
CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
6031
echo "$as_me:$LINENO: result: final setup for a Motorola 68xxx host" >&5
6032
echo "${ECHO_T}final setup for a Motorola 68xxx host" >&6
6034
CONFIG_OS_SUFFIX="m68k"
6035
CONFIG_CX="$X_CFLAGS"
6036
CONFIG_CXXOPTIMIZE="-O2"
6038
CONFIG_LSTATIC="-static"
6039
CONFIG_LSHARED="-shared"
6040
CONFIG_LPATH="-Wl,-rpath,"
6041
CONFIG_LX="$X_LIBS -lXext -lX11"
6043
CONFIG_BSTATIC="-Wl,-Bstatic"
6044
CONFIG_BSHARED="-Wl,-Bdynamic"
6045
CONFIG_BPATH="-Wl,-rpath,"
6046
CONFIG_BX="$X_LIBS -lXext -lX11"
6047
CONFIG_WORD_LENGTH="4"
6048
CONFIG_WORD_LENGTH_INC="3"
6049
CONFIG_WORD_MASK="0xfffffffc"
6050
CONFIG_MAX_FAST="260 // WORD_LENGTH more than power of 2"
6053
echo "$as_me:$LINENO: result: final setup for an unknown host running GNU/Linux" >&5
6054
echo "${ECHO_T}final setup for an unknown host running GNU/Linux" >&6
6055
CONFIG_OS="GNU_LINUX"
6056
CONFIG_OS_SUFFIX="gnu-linux"
6057
CONFIG_CX="$X_CFLAGS"
6059
CONFIG_LSTATIC="-static"
6060
CONFIG_LSHARED="-shared"
6061
CONFIG_LPATH="-Wl,-rpath,"
6062
CONFIG_LX="$X_LIBS -lXext -lX11"
6064
CONFIG_BSTATIC="-Wl,-Bstatic"
6065
CONFIG_BSHARED="-Wl,-Bdynamic"
6066
CONFIG_BPATH="-Wl,-rpath,"
6067
CONFIG_BX="$X_LIBS -lXext -lX11"
6068
CONFIG_WORD_LENGTH="4"
6069
CONFIG_WORD_LENGTH_INC="3"
6070
CONFIG_WORD_MASK="0xfffffffc"
6071
CONFIG_MAX_FAST="260 // WORD_LENGTH more than power of 2"
6074
echo "$ac_t""final setup for a SGI/Irix host" 1>&6
6076
CONFIG_OS_SUFFIX="irix"
6077
CONFIG_CX="$X_CFLAGS"
6078
CONFIG_CXXOPTIMIZE="-O2"
6081
CONFIG_LSTATIC="-static"
6082
CONFIG_LSHARED="-shared"
6085
CONFIG_LX="$X_LIBS -lXext -lX11"
6090
CONFIG_BX="$X_LIBS -lX11"
6091
CONFIG_WORD_LENGTH="8"
6092
CONFIG_WORD_LENGTH_INC="7"
6093
CONFIG_WORD_MASK="0xfffffff8"
6094
CONFIG_MAX_FAST="264 // WORD_LENGTH more than power of 2"
6095
CONFIG_STD_SETENV=""
6096
CONFIG_CHMOD="chmod"
6097
CONFIG_DASH_I_DASH=""
6098
CONFIG_LIB_PATH="LD_LIBRARYN32_PATH"
6101
echo "$as_me:$LINENO: result: final setup for an unsupported host" >&5
6102
echo "${ECHO_T}final setup for an unsupported host" >&6
6104
CONFIG_OS_SUFFIX="unknown"
6105
CONFIG_CX="$X_CFLAGS"
6106
CONFIG_CXXOPTIMIZE="-O2"
6108
CONFIG_LSTATIC="-static"
6109
CONFIG_LSHARED="-shared"
6110
CONFIG_LPATH="-Wl,-rpath,"
6111
CONFIG_LX="$X_LIBS -lXext -lX11"
6113
CONFIG_BSTATIC="-Wl,-Bstatic"
6114
CONFIG_BSHARED="-Wl,-Bdynamic"
6115
CONFIG_BPATH="-Wl,-rpath,"
6116
CONFIG_BX="$X_LIBS -lXext -lX11"
6117
CONFIG_WORD_LENGTH="4"
6118
CONFIG_WORD_LENGTH_INC="3"
6119
CONFIG_WORD_MASK="0xfffffffc"
6120
CONFIG_MAX_FAST="260 // WORD_LENGTH more than power of 2"
6124
#--------------------------------------------------------------------
6125
# Temporary fix for link problem
6126
#--------------------------------------------------------------------
6128
case "$GXX_VERSION" in
6130
CONFIG_BSTATIC="-static"
6131
CONFIG_BSHARED="-dynamic"
6135
#--------------------------------------------------------------------
6136
# Enable debug and optimizations
6137
#--------------------------------------------------------------------
6139
optimize_default="yes"
6141
case "$GXX_VERSION" in
6142
2.96 | 3.0 | 3.0.* | 3.1 | 3.1.* | 3.2 | 3.2.* | 3.3 | 3.3.*)
6144
i*86-*-linux-gnu* | i*86-*-freebsd*)
6145
{ echo "$as_me:$LINENO: WARNING: using g++ 3.*, optimize without inline by default" >&5
6146
echo "$as_me: WARNING: using g++ 3.*, optimize without inline by default" >&2;}
6147
optimize_default="no-inline"
6150
{ echo "$as_me:$LINENO: WARNING: using g++ 3.*, optimize without inline by default" >&5
6151
echo "$as_me: WARNING: using g++ 3.*, optimize without inline by default" >&2;}
6152
optimize_default="no-inline"
6158
# Check whether --enable-debug or --disable-debug was given.
6159
if test "${enable_debug+set}" = set; then
6160
enableval="$enable_debug"
6166
if test "$enable_debug" = "yes"; then
6167
if test "$GXX" = "yes"; then
6168
enable_debug="-ggdb"
6173
if test "$enable_debug" = "no"; then
6174
echo "$as_me:$LINENO: result: disabling debugging" >&5
6175
echo "${ECHO_T}disabling debugging" >&6
6176
CONFIG_STRIP="strip"
6179
echo "$as_me:$LINENO: result: enabling debugging, $enable_debug" >&5
6180
echo "${ECHO_T}enabling debugging, $enable_debug" >&6
6182
CONFIG_CXXDEBUG="$enable_debug"
6183
optimize_default="no"
6186
# Check whether --enable-optimize or --disable-optimize was given.
6187
if test "${enable_optimize+set}" = set; then
6188
enableval="$enable_optimize"
6191
enable_optimize="$optimize_default"
6194
case "$enable_optimize" in
6196
# keep optimization options
6197
echo "$as_me:$LINENO: result: enabling optimizations, $CONFIG_CXXOPTIMIZE" >&5
6198
echo "${ECHO_T}enabling optimizations, $CONFIG_CXXOPTIMIZE" >&6 ;;
6200
optimize_no_inline="-fno-default-inline -fno-inline"
6201
CONFIG_CXXOPTIMIZE="$CONFIG_CXXOPTIMIZE $optimize_no_inline"
6202
echo "$as_me:$LINENO: result: enabling optimizations, $CONFIG_CXXOPTIMIZE" >&5
6203
echo "${ECHO_T}enabling optimizations, $CONFIG_CXXOPTIMIZE" >&6 ;;
6205
CONFIG_CXXOPTIMIZE=""
6206
echo "$as_me:$LINENO: result: disabling optimizations" >&5
6207
echo "${ECHO_T}disabling optimizations" >&6 ;;
6209
CONFIG_CXXOPTIMIZE="$enable_optimize"
6210
echo "$as_me:$LINENO: result: customizing optimizations, $enable_optimize" >&5
6211
echo "${ECHO_T}customizing optimizations, $enable_optimize" >&6 ;;
6214
#--------------------------------------------------------------------
6215
# Substitute TeXmacs specific configuration parameters
6216
#--------------------------------------------------------------------
6248
#--------------------------------------------------------------------
6249
# Default paths for installation
6250
#--------------------------------------------------------------------
6252
if test "$prefix" = ""; then
6255
if test "$prefix" = "NONE"; then
6258
if test "$exec_prefix" = ""; then
6259
exec_prefix=${prefix}
6261
if test "$exec_prefix" = "NONE"; then
6262
exec_prefix=${prefix}
6264
if test "$exec_prefix" = '${prefix}'; then
6265
exec_prefix=${prefix}
6267
if test "$includedir" = ""; then
6268
includedir=${prefix}/include
6270
if test "$includedir" = "NONE"; then
6271
includedir=${prefix}/include
6273
if test "$includedir" = '${prefix}/include'; then
6274
includedir=${prefix}/include
6276
if test "$libdir" = ""; then
6277
libdir=${exec_prefix}/lib
6279
if test "$libdir" = "NONE"; then
6280
libdir=${exec_prefix}/lib
6282
if test "$libdir" = '${exec_prefix}/lib'; then
6283
libdir=${exec_prefix}/lib
6285
if test "$bindir" = ""; then
6286
bindir=${exec_prefix}/bin
6288
if test "$bindir" = "NONE"; then
6289
bindir=${exec_prefix}/bin
6291
if test "$bindir" = '${exec_prefix}/bin'; then
6292
bindir=${exec_prefix}/bin
6294
if test "$datadir" = ""; then
6295
datadir=${prefix}/share
6297
if test "$datadir" = "NONE"; then
6298
datadir=${prefix}/share
6300
if test "$datadir" = '${prefix}/share'; then
6301
datadir=${prefix}/share
6303
if test "$mandir" = ""; then
6304
mandir=${prefix}/man
6306
if test "$mandir" = "NONE"; then
6307
mandir=${prefix}/man
6309
if test "$mandir" = '${prefix}/man'; then
6310
mandir=${prefix}/man
6312
if test "$libexecdir" = ""; then
6313
libexecdir=${exec_prefix}/libexec
6315
if test "$libexecdir" = "NONE"; then
6316
libexecdir=${exec_prefix}/libexec
6318
if test "$libexecdir" = '${exec_prefix}/libexec'; then
6319
libexecdir=${exec_prefix}/libexec
6325
tmsrc=${curdir}/${tmdir}
6326
tmbin=${libexecdir}/${tmdir}
6327
tmdata=${datadir}/${tmdir}
6334
if test "$RELEASE" = "1"; then
6335
tmtgz=${PACKAGE}-${VERSION}
6337
tmtgz=${PACKAGE}-${VERSION}-R${RELEASE}
6339
tmrpm=${PACKAGE}-${VERSION}-${RELEASE}
6340
if test "$STABLE_RELEASE" = "1"; then
6341
tmstgz=${PACKAGE}-${STABLE_VERSION}
6343
tmstgz=${PACKAGE}-${STABLE_VERSION}-R${STABLE_RELEASE}
6345
tmsrpm=${PACKAGE}-${STABLE_VERSION}-${STABLE_RELEASE}
6351
#--------------------------------------------------------------------
6353
#--------------------------------------------------------------------
6355
ac_config_files="$ac_config_files Makefile:Makefile.in src/common.makefile:src/common.makefile.in src/System/tm_configure.hpp:src/System/tm_configure.in misc/admin/admin.makefile:misc/admin/admin.makefile.in misc/doxygen/Doxyfile:misc/doxygen/Doxyfile.in misc/man/texmacs.1:misc/man/texmacs.1.in misc/rpm/TeXmacs.spec:misc/rpm/TeXmacs.spec.in misc/scripts/fig2ps:misc/scripts/fig2ps.in misc/scripts/texmacs:misc/scripts/texmacs.in TeXmacs/examples/plugins/dynlink/Makefile:TeXmacs/examples/plugins/dynlink/Makefile.in"
6356
cat >confcache <<\_ACEOF
6357
# This file is a shell script that caches the results of configure
6358
# tests run on this system so they can be shared between configure
6359
# scripts and configure runs, see configure's option --config-cache.
6360
# It is not useful on other systems. If it contains results you don't
6361
# want to keep, you may remove or edit it.
6363
# config.status only pays attention to the cache file if you give it
6364
# the --recheck option to rerun configure.
6366
# `ac_cv_env_foo' variables (set or unset) will be overriden when
6367
# loading this file, other *unset* `ac_cv_foo' will be assigned the
6372
# The following way of writing the cache mishandles newlines in values,
6373
# but we know of no workaround that is simple, portable, and efficient.
6374
# So, don't put newlines in cache variables' values.
6375
# Ultrix sh set writes to stderr and can't be redirected directly,
6376
# and sets the high bit in the cache file unless we assign to the vars.
6379
case `(ac_space=' '; set | grep ac_space) 2>&1` in
6381
# `set' does not quote correctly, so add quotes (double-quote
6382
# substitution turns \\\\ into \\, and sed turns \\ into \).
6385
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6388
# `set' quotes correctly as required by POSIX, so do not add quotes.
6390
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
6397
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6399
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6401
if cmp -s $cache_file confcache; then :; else
6402
if test -w $cache_file; then
6403
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
6404
cat confcache >$cache_file
6406
echo "not updating unwritable cache $cache_file"
6411
test "x$prefix" = xNONE && prefix=$ac_default_prefix
6412
# Let make expand exec_prefix.
6413
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6415
# VPATH may cause trouble with some makes, so we remove $(srcdir),
6416
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6417
# trailing colons and then remove the whole line if VPATH becomes empty
6418
# (actually we leave an empty line to preserve line numbers).
6419
if test "x$srcdir" = x.; then
6420
ac_vpsub='/^[ ]*VPATH[ ]*=/{
6421
s/:*\$(srcdir):*/:/;
6422
s/:*\${srcdir}:*/:/;
6424
s/^\([^=]*=[ ]*\):*/\1/;
6430
# Transform confdefs.h into DEFS.
6431
# Protect against shell expansion while executing Makefile rules.
6432
# Protect against Makefile macro expansion.
6434
# If the first sed substitution is executed (which looks for macros that
6435
# take arguments), then we branch to the quote section. Otherwise,
6436
# look for a macro that doesn't take arguments.
6437
cat >confdef2opt.sed <<\_ACEOF
6440
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
6442
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
6446
s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
6452
# We use echo to avoid assuming a particular line-breaking character.
6453
# The extra dot is to prevent the shell from consuming trailing
6454
# line-breaks from the sub-command output. A line-break within
6455
# single-quotes doesn't work because, if this script is created in a
6456
# platform that uses two characters for line-breaks (e.g., DOS), tr
6458
ac_LF_and_DOT=`echo; echo .`
6459
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
6460
rm -f confdef2opt.sed
6464
: ${CONFIG_STATUS=./config.status}
6465
ac_clean_files_save=$ac_clean_files
6466
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6467
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
6468
echo "$as_me: creating $CONFIG_STATUS" >&6;}
6469
cat >$CONFIG_STATUS <<_ACEOF
6471
# Generated by $as_me.
6472
# Run this file to recreate the current configuration.
6473
# Compiler output produced by configure, useful for debugging
6474
# configure, is in config.log if it exists.
6477
SHELL=\${CONFIG_SHELL-$SHELL}
6480
cat >>$CONFIG_STATUS <<\_ACEOF
6482
## --------------------- ##
6483
## M4sh Initialization. ##
6484
## --------------------- ##
6486
# Be Bourne compatible
6487
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
6490
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
6495
# Support unset when possible.
6496
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
6502
(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
6503
{ $as_unset LANG || test "${LANG+set}" != set; } ||
6504
{ LANG=C; export LANG; }
6505
(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
6506
{ $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
6507
{ LC_ALL=C; export LC_ALL; }
6508
(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
6509
{ $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
6510
{ LC_TIME=C; export LC_TIME; }
6511
(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
6512
{ $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
6513
{ LC_CTYPE=C; export LC_CTYPE; }
6514
(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
6515
{ $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
6516
{ LANGUAGE=C; export LANGUAGE; }
6517
(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
6518
{ $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
6519
{ LC_COLLATE=C; export LC_COLLATE; }
6520
(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
6521
{ $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
6522
{ LC_NUMERIC=C; export LC_NUMERIC; }
6523
(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
6524
{ $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
6525
{ LC_MESSAGES=C; export LC_MESSAGES; }
6528
# Name of the executable.
6529
as_me=`(basename "$0") 2>/dev/null ||
6530
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6531
X"$0" : 'X\(//\)$' \| \
6532
X"$0" : 'X\(/\)$' \| \
6533
. : '\(.\)' 2>/dev/null ||
6535
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
6536
/^X\/\(\/\/\)$/{ s//\1/; q; }
6537
/^X\/\(\/\).*/{ s//\1/; q; }
6540
# PATH needs CR, and LINENO needs CR and PATH.
6541
# Avoid depending upon Character Ranges.
6542
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6543
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6544
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6545
as_cr_digits='0123456789'
6546
as_cr_alnum=$as_cr_Letters$as_cr_digits
6548
# The user is always right.
6549
if test "${PATH_SEPARATOR+set}" != set; then
6550
echo "#! /bin/sh" >conftest.sh
6551
echo "exit 0" >>conftest.sh
6552
chmod +x conftest.sh
6553
if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
6564
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6565
test "x$as_lineno_1" != "x$as_lineno_2" &&
6566
test "x$as_lineno_3" = "x$as_lineno_2" || {
6567
# Find who we are. Look in the path if we contain no path at all
6570
*[\\/]* ) as_myself=$0 ;;
6571
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575
test -z "$as_dir" && as_dir=.
6576
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6581
# We did not find ourselves, most probably we were run as `sh COMMAND'
6582
# in which case we are not to be found in the path.
6583
if test "x$as_myself" = x; then
6586
if test ! -f "$as_myself"; then
6587
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
6588
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
6589
{ (exit 1); exit 1; }; }
6591
case $CONFIG_SHELL in
6593
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
6597
test -z "$as_dir" && as_dir=.
6598
for as_base in sh bash ksh sh5; do
6601
if ("$as_dir/$as_base" -c '
6604
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
6605
test "x$as_lineno_1" != "x$as_lineno_2" &&
6606
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
6607
CONFIG_SHELL=$as_dir/$as_base
6609
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
6617
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
6618
# uniformly replaced by the line number. The first 'sed' inserts a
6619
# line-number line before each line; the second 'sed' does the real
6620
# work. The second script uses 'N' to pair each line-number line
6621
# with the numbered line, and appends trailing '-' during
6622
# substitution so that $LINENO is not a special case at line end.
6623
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
6624
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
6625
sed '=' <$as_myself |
6630
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
6633
s,^['$as_cr_digits']*\n,,
6635
chmod +x $as_me.lineno ||
6636
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
6637
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
6638
{ (exit 1); exit 1; }; }
6640
# Don't try to exec as it changes $[0], causing all sort of problems
6641
# (the dirname of $[0] is not the place where we might find the
6642
# original and so on. Autoconf is especially sensible to this).
6644
# Exit status is that of the last command.
6649
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
6650
*c*,-n*) ECHO_N= ECHO_C='
6652
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
6653
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
6656
if expr a : '\(a\)' >/dev/null 2>&1; then
6662
rm -f conf$$ conf$$.exe conf$$.file
6664
if ln -s conf$$.file conf$$ 2>/dev/null; then
6665
# We could just check for DJGPP; but this test a) works b) is more generic
6666
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
6667
if test -f conf$$.exe; then
6668
# Don't use ln at all; we don't have any links
6673
elif ln conf$$.file conf$$ 2>/dev/null; then
6678
rm -f conf$$ conf$$.exe conf$$.file
6680
as_executable_p="test -f"
6682
# Sed expression to map a string onto a valid CPP name.
6683
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
6685
# Sed expression to map a string onto a valid variable name.
6686
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
6690
# We need space, tab and new line, in precisely that order.
6696
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
6700
# Open the log real soon, to keep \$[0] and so on meaningful, and to
6701
# report actual input values of CONFIG_FILES etc. instead of their
6702
# values after options handling. Logging --version etc. is OK.
6706
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6707
## Running $as_me. ##
6712
This file was extended by $as_me, which was
6713
generated by GNU Autoconf 2.53. Invocation command line was
6715
CONFIG_FILES = $CONFIG_FILES
6716
CONFIG_HEADERS = $CONFIG_HEADERS
6717
CONFIG_LINKS = $CONFIG_LINKS
6718
CONFIG_COMMANDS = $CONFIG_COMMANDS
6722
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
6726
# Files that config.status was made for.
6727
if test -n "$ac_config_files"; then
6728
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
6731
if test -n "$ac_config_headers"; then
6732
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
6735
if test -n "$ac_config_links"; then
6736
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
6739
if test -n "$ac_config_commands"; then
6740
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
6743
cat >>$CONFIG_STATUS <<\_ACEOF
6746
\`$as_me' instantiates files from templates according to the
6747
current configuration.
6749
Usage: $0 [OPTIONS] [FILE]...
6751
-h, --help print this help, then exit
6752
-V, --version print version number, then exit
6753
-d, --debug don't remove temporary files
6754
--recheck update $as_me by reconfiguring in the same conditions
6755
--file=FILE[:TEMPLATE]
6756
instantiate the configuration file FILE
6758
Configuration files:
6761
Report bugs to <bug-autoconf@gnu.org>."
6764
cat >>$CONFIG_STATUS <<_ACEOF
6767
configured by $0, generated by GNU Autoconf 2.53,
6768
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
6770
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6771
Free Software Foundation, Inc.
6772
This config.status script is free software; the Free Software Foundation
6773
gives unlimited permission to copy, distribute and modify it."
6777
cat >>$CONFIG_STATUS <<\_ACEOF
6778
# If no file are specified by the user, then we need to provide default
6779
# value. By we need to know if files were specified by the user.
6785
ac_option=`expr "x$1" : 'x\([^=]*\)='`
6786
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
6788
set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
6792
*) # This is not an option, so the user has probably given explicit
6794
ac_need_defaults=false;;
6798
# Handling of the options.
6800
cat >>$CONFIG_STATUS <<_ACEOF
6801
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6802
echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
6803
exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
6805
cat >>$CONFIG_STATUS <<\_ACEOF
6806
--version | --vers* | -V )
6807
echo "$ac_cs_version"; exit 0 ;;
6809
# Conflict between --help and --header
6810
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
6811
Try \`$0 --help' for more information." >&5
6812
echo "$as_me: error: ambiguous option: $1
6813
Try \`$0 --help' for more information." >&2;}
6814
{ (exit 1); exit 1; }; };;
6815
--help | --hel | -h )
6816
echo "$ac_cs_usage"; exit 0 ;;
6817
--debug | --d* | -d )
6819
--file | --fil | --fi | --f )
6821
CONFIG_FILES="$CONFIG_FILES $1"
6822
ac_need_defaults=false;;
6823
--header | --heade | --head | --hea )
6825
CONFIG_HEADERS="$CONFIG_HEADERS $1"
6826
ac_need_defaults=false;;
6829
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
6830
Try \`$0 --help' for more information." >&5
6831
echo "$as_me: error: unrecognized option: $1
6832
Try \`$0 --help' for more information." >&2;}
6833
{ (exit 1); exit 1; }; } ;;
6835
*) ac_config_targets="$ac_config_targets $1" ;;
6847
cat >>$CONFIG_STATUS <<\_ACEOF
6848
for ac_config_target in $ac_config_targets
6850
case "$ac_config_target" in
6851
# Handling of arguments.
6852
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.in" ;;
6853
"src/common.makefile" ) CONFIG_FILES="$CONFIG_FILES src/common.makefile:src/common.makefile.in" ;;
6854
"src/System/tm_configure.hpp" ) CONFIG_FILES="$CONFIG_FILES src/System/tm_configure.hpp:src/System/tm_configure.in" ;;
6855
"misc/admin/admin.makefile" ) CONFIG_FILES="$CONFIG_FILES misc/admin/admin.makefile:misc/admin/admin.makefile.in" ;;
6856
"misc/doxygen/Doxyfile" ) CONFIG_FILES="$CONFIG_FILES misc/doxygen/Doxyfile:misc/doxygen/Doxyfile.in" ;;
6857
"misc/man/texmacs.1" ) CONFIG_FILES="$CONFIG_FILES misc/man/texmacs.1:misc/man/texmacs.1.in" ;;
6858
"misc/rpm/TeXmacs.spec" ) CONFIG_FILES="$CONFIG_FILES misc/rpm/TeXmacs.spec:misc/rpm/TeXmacs.spec.in" ;;
6859
"misc/scripts/fig2ps" ) CONFIG_FILES="$CONFIG_FILES misc/scripts/fig2ps:misc/scripts/fig2ps.in" ;;
6860
"misc/scripts/texmacs" ) CONFIG_FILES="$CONFIG_FILES misc/scripts/texmacs:misc/scripts/texmacs.in" ;;
6861
"TeXmacs/examples/plugins/dynlink/Makefile" ) CONFIG_FILES="$CONFIG_FILES TeXmacs/examples/plugins/dynlink/Makefile:TeXmacs/examples/plugins/dynlink/Makefile.in" ;;
6862
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6863
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6864
{ (exit 1); exit 1; }; };;
6868
# If the user did not use the arguments to specify the items to instantiate,
6869
# then the envvar interface is used. Set only those that are not.
6870
# We use the long form for the default assignment because of an extremely
6871
# bizarre bug on SunOS 4.1.3.
6872
if $ac_need_defaults; then
6873
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6876
# Create a temporary directory, and hook for its removal unless debugging.
6879
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
6880
trap '{ (exit 1); exit 1; }' 1 2 13 15
6883
# Create a (secure) tmp directory for tmp files.
6886
tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
6887
test -n "$tmp" && test -d "$tmp"
6890
tmp=$TMPDIR/cs$$-$RANDOM
6891
(umask 077 && mkdir $tmp)
6894
echo "$me: cannot create a temporary directory in $TMPDIR" >&2
6895
{ (exit 1); exit 1; }
6900
cat >>$CONFIG_STATUS <<_ACEOF
6903
# CONFIG_FILES section.
6906
# No need to generate the scripts if there are no CONFIG_FILES.
6907
# This happens for instance when ./config.status config.h
6908
if test -n "\$CONFIG_FILES"; then
6909
# Protect against being on the right side of a sed subst in config.status.
6910
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
6911
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
6912
s,@SHELL@,$SHELL,;t t
6913
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
6914
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
6915
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
6916
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
6917
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
6918
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
6919
s,@exec_prefix@,$exec_prefix,;t t
6920
s,@prefix@,$prefix,;t t
6921
s,@program_transform_name@,$program_transform_name,;t t
6922
s,@bindir@,$bindir,;t t
6923
s,@sbindir@,$sbindir,;t t
6924
s,@libexecdir@,$libexecdir,;t t
6925
s,@datadir@,$datadir,;t t
6926
s,@sysconfdir@,$sysconfdir,;t t
6927
s,@sharedstatedir@,$sharedstatedir,;t t
6928
s,@localstatedir@,$localstatedir,;t t
6929
s,@libdir@,$libdir,;t t
6930
s,@includedir@,$includedir,;t t
6931
s,@oldincludedir@,$oldincludedir,;t t
6932
s,@infodir@,$infodir,;t t
6933
s,@mandir@,$mandir,;t t
6934
s,@build_alias@,$build_alias,;t t
6935
s,@host_alias@,$host_alias,;t t
6936
s,@target_alias@,$target_alias,;t t
6938
s,@ECHO_C@,$ECHO_C,;t t
6939
s,@ECHO_N@,$ECHO_N,;t t
6940
s,@ECHO_T@,$ECHO_T,;t t
6942
s,@PACKAGE@,$PACKAGE,;t t
6943
s,@VERSION@,$VERSION,;t t
6944
s,@RELEASE@,$RELEASE,;t t
6945
s,@STABLE_VERSION@,$STABLE_VERSION,;t t
6946
s,@STABLE_RELEASE@,$STABLE_RELEASE,;t t
6948
s,@CFLAGS@,$CFLAGS,;t t
6949
s,@LDFLAGS@,$LDFLAGS,;t t
6950
s,@CPPFLAGS@,$CPPFLAGS,;t t
6951
s,@ac_ct_CC@,$ac_ct_CC,;t t
6952
s,@EXEEXT@,$EXEEXT,;t t
6953
s,@OBJEXT@,$OBJEXT,;t t
6955
s,@CXXFLAGS@,$CXXFLAGS,;t t
6956
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
6957
s,@GUILE_CFLAGS@,$GUILE_CFLAGS,;t t
6958
s,@GUILE_LDFLAGS@,$GUILE_LDFLAGS,;t t
6959
s,@CXXCPP@,$CXXCPP,;t t
6960
s,@X_CFLAGS@,$X_CFLAGS,;t t
6961
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
6962
s,@X_LIBS@,$X_LIBS,;t t
6963
s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
6964
s,@CONFIG_LDL@,$CONFIG_LDL,;t t
6965
s,@CONFIG_BDL@,$CONFIG_BDL,;t t
6966
s,@CONFIG_DYNAMIC_LINKING@,$CONFIG_DYNAMIC_LINKING,;t t
6968
s,@CONFIG_USE_ICONV@,$CONFIG_USE_ICONV,;t t
6969
s,@ICONV_CFLAGS@,$ICONV_CFLAGS,;t t
6970
s,@ICONV_LDFLAGS@,$ICONV_LDFLAGS,;t t
6971
s,@CONFIG_USE_FREETYPE@,$CONFIG_USE_FREETYPE,;t t
6972
s,@CONFIG_LINKED_FREETYPE@,$CONFIG_LINKED_FREETYPE,;t t
6973
s,@FREETYPE_CFLAGS@,$FREETYPE_CFLAGS,;t t
6974
s,@FREETYPE_LDFLAGS@,$FREETYPE_LDFLAGS,;t t
6975
s,@CONFIG_GET_TIME_OF_DAY@,$CONFIG_GET_TIME_OF_DAY,;t t
6976
s,@CONFIG_DOTS@,$CONFIG_DOTS,;t t
6977
s,@CONFIG_GUILE_STR_SIZE_T@,$CONFIG_GUILE_STR_SIZE_T,;t t
6978
s,@CONFIG_CXXDIALECT@,$CONFIG_CXXDIALECT,;t t
6979
s,@CONFIG_NO_FAST_ALLOC@,$CONFIG_NO_FAST_ALLOC,;t t
6980
s,@build@,$build,;t t
6981
s,@build_cpu@,$build_cpu,;t t
6982
s,@build_vendor@,$build_vendor,;t t
6983
s,@build_os@,$build_os,;t t
6985
s,@host_cpu@,$host_cpu,;t t
6986
s,@host_vendor@,$host_vendor,;t t
6987
s,@host_os@,$host_os,;t t
6988
s,@CONFIG_OS@,$CONFIG_OS,;t t
6989
s,@CONFIG_OS_SUFFIX@,$CONFIG_OS_SUFFIX,;t t
6990
s,@CONFIG_CX@,$CONFIG_CX,;t t
6991
s,@CONFIG_CXXWARNING@,$CONFIG_CXXWARNING,;t t
6992
s,@CONFIG_CXXTEMPLATE@,$CONFIG_CXXTEMPLATE,;t t
6993
s,@CONFIG_CXXOPTIMIZE@,$CONFIG_CXXOPTIMIZE,;t t
6994
s,@CONFIG_CXXDEBUG@,$CONFIG_CXXDEBUG,;t t
6995
s,@CONFIG_LFLAGS@,$CONFIG_LFLAGS,;t t
6996
s,@CONFIG_LSTATIC@,$CONFIG_LSTATIC,;t t
6997
s,@CONFIG_LSHARED@,$CONFIG_LSHARED,;t t
6998
s,@CONFIG_LPATH@,$CONFIG_LPATH,;t t
6999
s,@CONFIG_LX@,$CONFIG_LX,;t t
7000
s,@CONFIG_BFLAGS@,$CONFIG_BFLAGS,;t t
7001
s,@CONFIG_BSTATIC@,$CONFIG_BSTATIC,;t t
7002
s,@CONFIG_BSHARED@,$CONFIG_BSHARED,;t t
7003
s,@CONFIG_BPATH@,$CONFIG_BPATH,;t t
7004
s,@CONFIG_BX@,$CONFIG_BX,;t t
7005
s,@CONFIG_WORD_LENGTH@,$CONFIG_WORD_LENGTH,;t t
7006
s,@CONFIG_WORD_LENGTH_INC@,$CONFIG_WORD_LENGTH_INC,;t t
7007
s,@CONFIG_WORD_MASK@,$CONFIG_WORD_MASK,;t t
7008
s,@CONFIG_MAX_FAST@,$CONFIG_MAX_FAST,;t t
7009
s,@CONFIG_CXXFLAGS@,$CONFIG_CXXFLAGS,;t t
7010
s,@CONFIG_STD_SETENV@,$CONFIG_STD_SETENV,;t t
7011
s,@CONFIG_SO@,$CONFIG_SO,;t t
7012
s,@CONFIG_LIB_PATH@,$CONFIG_LIB_PATH,;t t
7013
s,@CONFIG_STRIP@,$CONFIG_STRIP,;t t
7014
s,@CONFIG_CHMOD@,$CONFIG_CHMOD,;t t
7015
s,@CONFIG_DASH_I_DASH@,$CONFIG_DASH_I_DASH,;t t
7016
s,@CONFIG_GUILE_SERIAL@,$CONFIG_GUILE_SERIAL,;t t
7017
s,@tmorig@,$tmorig,;t t
7018
s,@tmdir@,$tmdir,;t t
7019
s,@tmsrc@,$tmsrc,;t t
7020
s,@tmbin@,$tmbin,;t t
7021
s,@tmdata@,$tmdata,;t t
7022
s,@tmtgz@,$tmtgz,;t t
7023
s,@tmrpm@,$tmrpm,;t t
7024
s,@tmstgz@,$tmstgz,;t t
7025
s,@tmsrpm@,$tmsrpm,;t t
7030
cat >>$CONFIG_STATUS <<\_ACEOF
7031
# Split the substitutions into bite-sized pieces for seds with
7032
# small command number limits, like on Digital OSF/1 and HP-UX.
7034
ac_sed_frag=1 # Number of current file.
7035
ac_beg=1 # First line for current file.
7036
ac_end=$ac_max_sed_lines # Line after last line for current file.
7039
while $ac_more_lines; do
7040
if test $ac_beg -gt 1; then
7041
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7043
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
7045
if test ! -s $tmp/subs.frag; then
7048
# The purpose of the label and of the branching condition is to
7049
# speed up the sed processing (if there are no `@' at all, there
7050
# is no need to browse any of the substitutions).
7051
# These are the two extra sed commands mentioned above.
7053
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
7054
if test -z "$ac_sed_cmds"; then
7055
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
7057
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
7059
ac_sed_frag=`expr $ac_sed_frag + 1`
7061
ac_end=`expr $ac_end + $ac_max_sed_lines`
7064
if test -z "$ac_sed_cmds"; then
7067
fi # test -n "$CONFIG_FILES"
7070
cat >>$CONFIG_STATUS <<\_ACEOF
7071
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
7072
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
7074
- | *:- | *:-:* ) # input from stdin
7076
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7077
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7078
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
7079
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
7080
* ) ac_file_in=$ac_file.in ;;
7083
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
7084
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
7085
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7086
X"$ac_file" : 'X\(//\)[^/]' \| \
7087
X"$ac_file" : 'X\(//\)$' \| \
7088
X"$ac_file" : 'X\(/\)' \| \
7089
. : '\(.\)' 2>/dev/null ||
7091
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
7092
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
7093
/^X\(\/\/\)$/{ s//\1/; q; }
7094
/^X\(\/\).*/{ s//\1/; q; }
7097
[\\/]* | ?:[\\/]* ) as_incr_dir=;;
7101
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
7102
case $as_mkdir_dir in
7103
# Skip DOS drivespec
7104
?:) as_incr_dir=$as_mkdir_dir ;;
7106
as_incr_dir=$as_incr_dir/$as_mkdir_dir
7107
test -d "$as_incr_dir" ||
7108
mkdir "$as_incr_dir" ||
7109
{ { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
7110
echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
7111
{ (exit 1); exit 1; }; }
7118
if test "$ac_dir" != .; then
7119
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
7120
# A "../" for each directory in $ac_dir_suffix.
7121
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
7123
ac_dir_suffix= ac_top_builddir=
7127
.) # No --srcdir option. We are building in place.
7129
if test -z "$ac_top_builddir"; then
7132
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
7134
[\\/]* | ?:[\\/]* ) # Absolute path.
7135
ac_srcdir=$srcdir$ac_dir_suffix;
7136
ac_top_srcdir=$srcdir ;;
7138
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
7139
ac_top_srcdir=$ac_top_builddir$srcdir ;;
7141
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
7143
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
7144
ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
7145
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
7146
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
7150
if test x"$ac_file" != x-; then
7151
{ echo "$as_me:$LINENO: creating $ac_file" >&5
7152
echo "$as_me: creating $ac_file" >&6;}
7155
# Let's still pretend it is `configure' which instantiates (i.e., don't
7156
# use $as_me), people would be surprised to read:
7157
# /* config.h. Generated by config.status. */
7158
if test x"$ac_file" = x-; then
7161
configure_input="$ac_file. "
7163
configure_input=$configure_input"Generated from `echo $ac_file_in |
7164
sed 's,.*/,,'` by configure."
7166
# First look for the input files in the build tree, otherwise in the
7168
ac_file_inputs=`IFS=:
7169
for f in $ac_file_in; do
7171
-) echo $tmp/stdin ;;
7173
# Absolute (can't be DOS-style, as IFS=:)
7174
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7175
echo "$as_me: error: cannot find input file: $f" >&2;}
7176
{ (exit 1); exit 1; }; }
7179
if test -f "$f"; then
7182
elif test -f "$srcdir/$f"; then
7187
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
7188
echo "$as_me: error: cannot find input file: $f" >&2;}
7189
{ (exit 1); exit 1; }; }
7192
done` || { (exit 1); exit 1; }
7194
cat >>$CONFIG_STATUS <<_ACEOF
7198
cat >>$CONFIG_STATUS <<\_ACEOF
7200
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7201
s,@configure_input@,$configure_input,;t t
7202
s,@srcdir@,$ac_srcdir,;t t
7203
s,@abs_srcdir@,$ac_abs_srcdir,;t t
7204
s,@top_srcdir@,$ac_top_srcdir,;t t
7205
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
7206
s,@builddir@,$ac_builddir,;t t
7207
s,@abs_builddir@,$ac_abs_builddir,;t t
7208
s,@top_builddir@,$ac_top_builddir,;t t
7209
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
7210
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
7212
if test x"$ac_file" != x-; then
7213
mv $tmp/out $ac_file
7222
cat >>$CONFIG_STATUS <<\_ACEOF
7224
{ (exit 0); exit 0; }
7226
chmod +x $CONFIG_STATUS
7227
ac_clean_files=$ac_clean_files_save
7230
# configure is writing to config.log, and then calls config.status.
7231
# config.status does its own redirection, appending to config.log.
7232
# Unfortunately, on DOS this fails, as config.log is still kept open
7233
# by configure, so config.status won't be able to write to it; its
7234
# output is simply discarded. So we exec the FD to /dev/null,
7235
# effectively closing config.log, so it can be properly (re)opened and
7236
# appended to by config.status. When coming back to configure, we
7237
# need to make the FD available again.
7238
if test "$no_create" != yes; then
7241
$SHELL $CONFIG_STATUS || ac_cs_success=false
7243
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
7244
# would make configure fail if this is the last instruction.
7245
$ac_cs_success || { (exit 1); exit 1; }