2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.53 for SoQt 1.0.2.
5
# Report bugs to <coin-support@coin3d.org>.
7
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
8
# Free Software Foundation, Inc.
9
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
12
# Find the correct PATH separator. Usually this is `:', but
13
# DJGPP uses `;' like DOS.
14
if test "X${PATH_SEPARATOR+set}" != Xset; then
15
UNAME=${UNAME-`uname 2>/dev/null`}
17
*-DOS) lt_cv_sys_path_separator=';' ;;
18
*) lt_cv_sys_path_separator=':' ;;
20
PATH_SEPARATOR=$lt_cv_sys_path_separator
24
# Check that we are running under the correct shell.
25
SHELL=${CONFIG_SHELL-/bin/sh}
29
# Remove one level of quotation (which was required for Make).
30
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
35
if test "X$1" = X--no-reexec; then
36
# Discard the --no-reexec flag, and continue.
38
elif test "X$1" = X--fallback-echo; then
39
# Avoid inline document here, it may be left over
41
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
42
# Yippee, $echo works!
45
# Restart under the correct shell.
46
exec $SHELL "$0" --no-reexec ${1+"$@"}
49
if test "X$1" = X--fallback-echo; then
50
# used as fallback echo
58
# The HP-UX ksh and POSIX shell print the target directory to stdout
60
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
62
if test -z "$ECHO"; then
63
if test "X${echo_test_string+set}" != Xset; then
64
# find a string as large as possible, as long as the shell can cope with it
65
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
66
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
67
if (echo_test_string="`eval $cmd`") 2>/dev/null &&
68
echo_test_string="`eval $cmd`" &&
69
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
76
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
77
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
78
test "X$echo_testing_string" = "X$echo_test_string"; then
81
# The Solaris, AIX, and Digital Unix default echo programs unquote
82
# backslashes. This makes it impossible to quote backslashes using
83
# echo "$something" | sed 's/\\/\\\\/g'
85
# So, first we look for a working echo in the user's PATH.
87
IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
88
for dir in $PATH /usr/ucb; do
89
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
90
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
91
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
92
test "X$echo_testing_string" = "X$echo_test_string"; then
99
if test "X$echo" = Xecho; then
100
# We didn't find a better echo, so look for alternatives.
101
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
102
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
103
test "X$echo_testing_string" = "X$echo_test_string"; then
104
# This shell has a builtin print -r that does the trick.
106
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
107
test "X$CONFIG_SHELL" != X/bin/ksh; then
108
# If we have ksh, try running configure again with it.
109
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
110
export ORIGINAL_CONFIG_SHELL
111
CONFIG_SHELL=/bin/ksh
113
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
117
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
118
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
119
test "X$echo_testing_string" = "X$echo_test_string"; then
122
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
123
test "X$echo_testing_string" = 'X\t' &&
124
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
125
test "X$echo_testing_string" = "X$echo_test_string"; then
126
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
128
SHELL="$CONFIG_SHELL"
130
echo="$CONFIG_SHELL $0 --fallback-echo"
131
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
132
test "X$echo_testing_string" = 'X\t' &&
133
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
134
test "X$echo_testing_string" = "X$echo_test_string"; then
135
echo="$CONFIG_SHELL $0 --fallback-echo"
137
# maybe with a smaller string...
140
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
141
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
148
if test "$prev" != 'sed 50q "$0"'; then
149
echo_test_string=`eval $prev`
150
export echo_test_string
151
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
153
# Oops. We lost completely, so just stick with echo.
162
# Copy echo and quote the copy suitably for passing to libtool from
163
# the Makefile, instead of quoting the original, which is used later.
165
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
166
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
171
if expr a : '\(a\)' >/dev/null 2>&1; then
178
## --------------------- ##
179
## M4sh Initialization. ##
180
## --------------------- ##
182
# Be Bourne compatible
183
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
186
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
191
# Support unset when possible.
192
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
198
(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
199
{ $as_unset LANG || test "${LANG+set}" != set; } ||
200
{ LANG=C; export LANG; }
201
(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
202
{ $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
203
{ LC_ALL=C; export LC_ALL; }
204
(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
205
{ $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
206
{ LC_TIME=C; export LC_TIME; }
207
(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
208
{ $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
209
{ LC_CTYPE=C; export LC_CTYPE; }
210
(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
211
{ $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
212
{ LANGUAGE=C; export LANGUAGE; }
213
(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
214
{ $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
215
{ LC_COLLATE=C; export LC_COLLATE; }
216
(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
217
{ $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
218
{ LC_NUMERIC=C; export LC_NUMERIC; }
219
(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
220
{ $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
221
{ LC_MESSAGES=C; export LC_MESSAGES; }
224
# Name of the executable.
225
as_me=`(basename "$0") 2>/dev/null ||
226
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
227
X"$0" : 'X\(//\)$' \| \
228
X"$0" : 'X\(/\)$' \| \
229
. : '\(.\)' 2>/dev/null ||
231
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
232
/^X\/\(\/\/\)$/{ s//\1/; q; }
233
/^X\/\(\/\).*/{ s//\1/; q; }
236
# PATH needs CR, and LINENO needs CR and PATH.
237
# Avoid depending upon Character Ranges.
238
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
239
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
240
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
241
as_cr_digits='0123456789'
242
as_cr_alnum=$as_cr_Letters$as_cr_digits
244
# The user is always right.
245
if test "${PATH_SEPARATOR+set}" != set; then
246
echo "#! /bin/sh" >conftest.sh
247
echo "exit 0" >>conftest.sh
249
if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
260
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
261
test "x$as_lineno_1" != "x$as_lineno_2" &&
262
test "x$as_lineno_3" = "x$as_lineno_2" || {
263
# Find who we are. Look in the path if we contain no path at all
266
*[\\/]* ) as_myself=$0 ;;
267
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
271
test -z "$as_dir" && as_dir=.
272
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
277
# We did not find ourselves, most probably we were run as `sh COMMAND'
278
# in which case we are not to be found in the path.
279
if test "x$as_myself" = x; then
282
if test ! -f "$as_myself"; then
283
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
284
{ (exit 1); exit 1; }; }
286
case $CONFIG_SHELL in
288
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
289
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
292
test -z "$as_dir" && as_dir=.
293
for as_base in sh bash ksh sh5; do
296
if ("$as_dir/$as_base" -c '
299
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
300
test "x$as_lineno_1" != "x$as_lineno_2" &&
301
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
302
CONFIG_SHELL=$as_dir/$as_base
304
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
312
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
313
# uniformly replaced by the line number. The first 'sed' inserts a
314
# line-number line before each line; the second 'sed' does the real
315
# work. The second script uses 'N' to pair each line-number line
316
# with the numbered line, and appends trailing '-' during
317
# substitution so that $LINENO is not a special case at line end.
318
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
319
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
320
sed '=' <$as_myself |
325
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
328
s,^['$as_cr_digits']*\n,,
330
chmod +x $as_me.lineno ||
331
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
332
{ (exit 1); exit 1; }; }
334
# Don't try to exec as it changes $[0], causing all sort of problems
335
# (the dirname of $[0] is not the place where we might find the
336
# original and so on. Autoconf is especially sensible to this).
338
# Exit status is that of the last command.
343
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
344
*c*,-n*) ECHO_N= ECHO_C='
346
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
347
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
350
if expr a : '\(a\)' >/dev/null 2>&1; then
356
rm -f conf$$ conf$$.exe conf$$.file
358
if ln -s conf$$.file conf$$ 2>/dev/null; then
359
# We could just check for DJGPP; but this test a) works b) is more generic
360
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
361
if test -f conf$$.exe; then
362
# Don't use ln at all; we don't have any links
367
elif ln conf$$.file conf$$ 2>/dev/null; then
372
rm -f conf$$ conf$$.exe conf$$.file
374
as_executable_p="test -f"
376
# Sed expression to map a string onto a valid CPP name.
377
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
379
# Sed expression to map a string onto a valid variable name.
380
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
384
# We need space, tab and new line, in precisely that order.
390
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
394
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
395
# so uname gets run too.
396
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403
ac_default_prefix=/usr/local
408
SHELL=${CONFIG_SHELL-/bin/sh}
410
# Maximum number of lines to put in a shell here document.
411
# This variable seems obsolete. It should probably be removed, and
412
# only ac_max_sed_lines should be used.
413
: ${ac_max_here_lines=38}
415
# Identity of this package.
417
PACKAGE_TARNAME='soqt'
418
PACKAGE_VERSION='1.0.2'
419
PACKAGE_STRING='SoQt 1.0.2'
420
PACKAGE_BUGREPORT='coin-support@coin3d.org'
422
ac_unique_file="src/Inventor/Qt/SoQt.cpp"
423
# Factoring default headers for most tests.
424
ac_includes_default="\
427
# include <sys/types.h>
430
# include <sys/stat.h>
441
# if !STDC_HEADERS && HAVE_MEMORY_H
447
# include <strings.h>
450
# include <inttypes.h>
461
# Initialize some variables set by options.
463
ac_init_version=false
464
# The variables have the same names as the options, with
465
# dashes changed to underlines.
473
program_transform_name=s,x,x,
481
# Installation directory options.
482
# These are left unexpanded so users can "make install exec_prefix=/foo"
483
# and all the variables that are supposed to be based on exec_prefix
484
# by default will actually change.
485
# Use braces instead of parens because sh, perl, etc. also accept them.
486
bindir='${exec_prefix}/bin'
487
sbindir='${exec_prefix}/sbin'
488
libexecdir='${exec_prefix}/libexec'
489
datadir='${prefix}/share'
490
sysconfdir='${prefix}/etc'
491
sharedstatedir='${prefix}/com'
492
localstatedir='${prefix}/var'
493
libdir='${exec_prefix}/lib'
494
includedir='${prefix}/include'
495
oldincludedir='/usr/include'
496
infodir='${prefix}/info'
497
mandir='${prefix}/man'
502
# If the previous option needs an argument, assign it.
503
if test -n "$ac_prev"; then
504
eval "$ac_prev=\$ac_option"
509
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
511
# Accept the important Cygnus configure options, so we can diagnose typos.
515
-bindir | --bindir | --bindi | --bind | --bin | --bi)
517
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
520
-build | --build | --buil | --bui | --bu)
521
ac_prev=build_alias ;;
522
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
523
build_alias=$ac_optarg ;;
525
-cache-file | --cache-file | --cache-fil | --cache-fi \
526
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
527
ac_prev=cache_file ;;
528
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
529
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
530
cache_file=$ac_optarg ;;
533
cache_file=config.cache ;;
535
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
537
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
539
datadir=$ac_optarg ;;
541
-disable-* | --disable-*)
542
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
543
# Reject names that are not valid shell variable names.
544
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
545
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
546
{ (exit 1); exit 1; }; }
547
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
548
eval "enable_$ac_feature=no" ;;
550
-enable-* | --enable-*)
551
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
552
# Reject names that are not valid shell variable names.
553
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
555
{ (exit 1); exit 1; }; }
556
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
561
eval "enable_$ac_feature='$ac_optarg'" ;;
563
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
564
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
565
| --exec | --exe | --ex)
566
ac_prev=exec_prefix ;;
567
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
568
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
569
| --exec=* | --exe=* | --ex=*)
570
exec_prefix=$ac_optarg ;;
572
-gas | --gas | --ga | --g)
573
# Obsolete; use --with-gas.
576
-help | --help | --hel | --he | -h)
578
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
579
ac_init_help=recursive ;;
580
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
581
ac_init_help=short ;;
583
-host | --host | --hos | --ho)
584
ac_prev=host_alias ;;
585
-host=* | --host=* | --hos=* | --ho=*)
586
host_alias=$ac_optarg ;;
588
-includedir | --includedir | --includedi | --included | --include \
589
| --includ | --inclu | --incl | --inc)
590
ac_prev=includedir ;;
591
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
592
| --includ=* | --inclu=* | --incl=* | --inc=*)
593
includedir=$ac_optarg ;;
595
-infodir | --infodir | --infodi | --infod | --info | --inf)
597
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
598
infodir=$ac_optarg ;;
600
-libdir | --libdir | --libdi | --libd)
602
-libdir=* | --libdir=* | --libdi=* | --libd=*)
605
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
606
| --libexe | --libex | --libe)
607
ac_prev=libexecdir ;;
608
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
609
| --libexe=* | --libex=* | --libe=*)
610
libexecdir=$ac_optarg ;;
612
-localstatedir | --localstatedir | --localstatedi | --localstated \
613
| --localstate | --localstat | --localsta | --localst \
614
| --locals | --local | --loca | --loc | --lo)
615
ac_prev=localstatedir ;;
616
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
617
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
618
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
619
localstatedir=$ac_optarg ;;
621
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
623
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
627
# Obsolete; use --without-fp.
630
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
631
| --no-cr | --no-c | -n)
634
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
635
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
638
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
639
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
640
| --oldin | --oldi | --old | --ol | --o)
641
ac_prev=oldincludedir ;;
642
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
643
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
644
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
645
oldincludedir=$ac_optarg ;;
647
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
649
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
652
-program-prefix | --program-prefix | --program-prefi | --program-pref \
653
| --program-pre | --program-pr | --program-p)
654
ac_prev=program_prefix ;;
655
-program-prefix=* | --program-prefix=* | --program-prefi=* \
656
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
657
program_prefix=$ac_optarg ;;
659
-program-suffix | --program-suffix | --program-suffi | --program-suff \
660
| --program-suf | --program-su | --program-s)
661
ac_prev=program_suffix ;;
662
-program-suffix=* | --program-suffix=* | --program-suffi=* \
663
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
664
program_suffix=$ac_optarg ;;
666
-program-transform-name | --program-transform-name \
667
| --program-transform-nam | --program-transform-na \
668
| --program-transform-n | --program-transform- \
669
| --program-transform | --program-transfor \
670
| --program-transfo | --program-transf \
671
| --program-trans | --program-tran \
672
| --progr-tra | --program-tr | --program-t)
673
ac_prev=program_transform_name ;;
674
-program-transform-name=* | --program-transform-name=* \
675
| --program-transform-nam=* | --program-transform-na=* \
676
| --program-transform-n=* | --program-transform-=* \
677
| --program-transform=* | --program-transfor=* \
678
| --program-transfo=* | --program-transf=* \
679
| --program-trans=* | --program-tran=* \
680
| --progr-tra=* | --program-tr=* | --program-t=*)
681
program_transform_name=$ac_optarg ;;
683
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
684
| -silent | --silent | --silen | --sile | --sil)
687
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
689
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
691
sbindir=$ac_optarg ;;
693
-sharedstatedir | --sharedstatedir | --sharedstatedi \
694
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
695
| --sharedst | --shareds | --shared | --share | --shar \
697
ac_prev=sharedstatedir ;;
698
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
699
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
700
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
702
sharedstatedir=$ac_optarg ;;
704
-site | --site | --sit)
706
-site=* | --site=* | --sit=*)
709
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
711
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
714
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
715
| --syscon | --sysco | --sysc | --sys | --sy)
716
ac_prev=sysconfdir ;;
717
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
718
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
719
sysconfdir=$ac_optarg ;;
721
-target | --target | --targe | --targ | --tar | --ta | --t)
722
ac_prev=target_alias ;;
723
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
724
target_alias=$ac_optarg ;;
726
-v | -verbose | --verbose | --verbos | --verbo | --verb)
729
-version | --version | --versio | --versi | --vers | -V)
733
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
734
# Reject names that are not valid shell variable names.
735
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
736
{ echo "$as_me: error: invalid package name: $ac_package" >&2
737
{ (exit 1); exit 1; }; }
738
ac_package=`echo $ac_package| sed 's/-/_/g'`
740
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
743
eval "with_$ac_package='$ac_optarg'" ;;
745
-without-* | --without-*)
746
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
747
# Reject names that are not valid shell variable names.
748
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
749
{ echo "$as_me: error: invalid package name: $ac_package" >&2
750
{ (exit 1); exit 1; }; }
751
ac_package=`echo $ac_package | sed 's/-/_/g'`
752
eval "with_$ac_package=no" ;;
755
# Obsolete; use --with-x.
758
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
759
| --x-incl | --x-inc | --x-in | --x-i)
760
ac_prev=x_includes ;;
761
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
762
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
763
x_includes=$ac_optarg ;;
765
-x-libraries | --x-libraries | --x-librarie | --x-librari \
766
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
767
ac_prev=x_libraries ;;
768
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
769
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
770
x_libraries=$ac_optarg ;;
772
-*) { echo "$as_me: error: unrecognized option: $ac_option
773
Try \`$0 --help' for more information." >&2
774
{ (exit 1); exit 1; }; }
778
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
779
# Reject names that are not valid shell variable names.
780
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
781
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
782
{ (exit 1); exit 1; }; }
783
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
784
eval "$ac_envvar='$ac_optarg'"
788
# FIXME: should be removed in autoconf 3.0.
789
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
790
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
791
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
792
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
798
if test -n "$ac_prev"; then
799
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
800
{ echo "$as_me: error: missing argument to $ac_option" >&2
801
{ (exit 1); exit 1; }; }
804
# Be sure to have absolute paths.
805
for ac_var in exec_prefix prefix
807
eval ac_val=$`echo $ac_var`
809
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
810
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
811
{ (exit 1); exit 1; }; };;
815
# Be sure to have absolute paths.
816
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
817
localstatedir libdir includedir oldincludedir infodir mandir
819
eval ac_val=$`echo $ac_var`
821
[\\/$]* | ?:[\\/]* ) ;;
822
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823
{ (exit 1); exit 1; }; };;
827
# There might be people who depend on the old broken behavior: `$host'
828
# used to hold the argument of --host etc.
829
# FIXME: To remove some day.
834
# FIXME: To remove some day.
835
if test "x$host_alias" != x; then
836
if test "x$build_alias" = x; then
837
cross_compiling=maybe
838
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
839
If a cross compiler is detected then cross compile mode will be used." >&2
840
elif test "x$build_alias" != "x$host_alias"; then
846
test -n "$host_alias" && ac_tool_prefix=$host_alias-
848
test "$silent" = yes && exec 6>/dev/null
851
# Find the source files, if location was not specified.
852
if test -z "$srcdir"; then
853
ac_srcdir_defaulted=yes
854
# Try the directory containing this script, then its parent.
855
ac_confdir=`(dirname "$0") 2>/dev/null ||
856
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
857
X"$0" : 'X\(//\)[^/]' \| \
858
X"$0" : 'X\(//\)$' \| \
859
X"$0" : 'X\(/\)' \| \
860
. : '\(.\)' 2>/dev/null ||
862
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
863
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
864
/^X\(\/\/\)$/{ s//\1/; q; }
865
/^X\(\/\).*/{ s//\1/; q; }
868
if test ! -r $srcdir/$ac_unique_file; then
872
ac_srcdir_defaulted=no
874
if test ! -r $srcdir/$ac_unique_file; then
875
if test "$ac_srcdir_defaulted" = yes; then
876
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
877
{ (exit 1); exit 1; }; }
879
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
880
{ (exit 1); exit 1; }; }
883
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
884
ac_env_build_alias_set=${build_alias+set}
885
ac_env_build_alias_value=$build_alias
886
ac_cv_env_build_alias_set=${build_alias+set}
887
ac_cv_env_build_alias_value=$build_alias
888
ac_env_host_alias_set=${host_alias+set}
889
ac_env_host_alias_value=$host_alias
890
ac_cv_env_host_alias_set=${host_alias+set}
891
ac_cv_env_host_alias_value=$host_alias
892
ac_env_target_alias_set=${target_alias+set}
893
ac_env_target_alias_value=$target_alias
894
ac_cv_env_target_alias_set=${target_alias+set}
895
ac_cv_env_target_alias_value=$target_alias
896
ac_env_CC_set=${CC+set}
898
ac_cv_env_CC_set=${CC+set}
899
ac_cv_env_CC_value=$CC
900
ac_env_CFLAGS_set=${CFLAGS+set}
901
ac_env_CFLAGS_value=$CFLAGS
902
ac_cv_env_CFLAGS_set=${CFLAGS+set}
903
ac_cv_env_CFLAGS_value=$CFLAGS
904
ac_env_LDFLAGS_set=${LDFLAGS+set}
905
ac_env_LDFLAGS_value=$LDFLAGS
906
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
907
ac_cv_env_LDFLAGS_value=$LDFLAGS
908
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
909
ac_env_CPPFLAGS_value=$CPPFLAGS
910
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
911
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
912
ac_env_CPP_set=${CPP+set}
913
ac_env_CPP_value=$CPP
914
ac_cv_env_CPP_set=${CPP+set}
915
ac_cv_env_CPP_value=$CPP
916
ac_env_CXX_set=${CXX+set}
917
ac_env_CXX_value=$CXX
918
ac_cv_env_CXX_set=${CXX+set}
919
ac_cv_env_CXX_value=$CXX
920
ac_env_CXXFLAGS_set=${CXXFLAGS+set}
921
ac_env_CXXFLAGS_value=$CXXFLAGS
922
ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
923
ac_cv_env_CXXFLAGS_value=$CXXFLAGS
924
ac_env_CXXCPP_set=${CXXCPP+set}
925
ac_env_CXXCPP_value=$CXXCPP
926
ac_cv_env_CXXCPP_set=${CXXCPP+set}
927
ac_cv_env_CXXCPP_value=$CXXCPP
928
ac_env_htmldir_set=${htmldir+set}
929
ac_env_htmldir_value=$htmldir
930
ac_cv_env_htmldir_set=${htmldir+set}
931
ac_cv_env_htmldir_value=$htmldir
934
# Report the --help message.
936
if test "$ac_init_help" = "long"; then
937
# Omit some internal or obsolete options to make the list less imposing.
938
# This message is too long to be a string in the A/UX 3.1 sh.
940
\`configure' configures SoQt 1.0.2 to adapt to many kinds of systems.
942
Usage: $0 [OPTION]... [VAR=VALUE]...
944
To assign environment variables (e.g., CC, CFLAGS...), specify them as
945
VAR=VALUE. See below for descriptions of some of the useful variables.
947
Defaults for the options are specified in brackets.
950
-h, --help display this help and exit
951
--help=short display options specific to this package
952
--help=recursive display the short help of all the included packages
953
-V, --version display version information and exit
954
-q, --quiet, --silent do not print \`checking...' messages
955
--cache-file=FILE cache test results in FILE [disabled]
956
-C, --config-cache alias for \`--cache-file=config.cache'
957
-n, --no-create do not create output files
958
--srcdir=DIR find the sources in DIR [configure dir or \`..']
963
Installation directories:
964
--prefix=PREFIX install architecture-independent files in PREFIX
966
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
969
By default, \`make install' will install all the files in
970
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
971
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
972
for instance \`--prefix=\$HOME'.
974
For better control, use the options below.
976
Fine tuning of the installation directories:
977
--bindir=DIR user executables [EPREFIX/bin]
978
--sbindir=DIR system admin executables [EPREFIX/sbin]
979
--libexecdir=DIR program executables [EPREFIX/libexec]
980
--datadir=DIR read-only architecture-independent data [PREFIX/share]
981
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
982
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
983
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
984
--libdir=DIR object code libraries [EPREFIX/lib]
985
--includedir=DIR C header files [PREFIX/include]
986
--oldincludedir=DIR C header files for non-gcc [/usr/include]
987
--infodir=DIR info documentation [PREFIX/info]
988
--mandir=DIR man documentation [PREFIX/man]
994
--program-prefix=PREFIX prepend PREFIX to installed program names
995
--program-suffix=SUFFIX append SUFFIX to installed program names
996
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
999
--x-includes=DIR X include files are in DIR
1000
--x-libraries=DIR X library files are in DIR
1003
--build=BUILD configure for building on BUILD [guessed]
1004
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1005
--target=TARGET configure for building compilers for TARGET [HOST]
1009
if test -n "$ac_init_help"; then
1010
case $ac_init_help in
1011
short | recursive ) echo "Configuration of SoQt 1.0.2:";;
1016
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1017
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1018
--enable-msvcdsp build .dsp, not library
1019
--disable-msvc don't require MS Visual C++ on Cygwin
1020
--disable-dependency-tracking Speeds up one-time builds
1021
--enable-dependency-tracking Do not reject slow dependency extractors
1022
--enable-static=PKGS build static libraries default=no
1023
--enable-maintainer-mode enable make rules and dependencies not useful
1024
(and sometimes confusing) to the casual installer
1025
--enable-shared=PKGS build shared libraries default=yes
1026
--enable-fast-install=PKGS optimize for fast installation default=yes
1027
--disable-libtool-lock avoid locking (might break parallel builds)
1028
--disable-build disable configuring for library build
1029
--enable-html build and install SoQt HTML documentation
1030
--enable-man build and install SoQt man pages
1031
--disable-loadlibrary don't use run-time link bindings under Win32
1032
--enable-inventor-debug use debug version of TGS inventor
1033
--enable-qt-debug win32: link with debug versions of Qt libraries
1034
--enable-debug compile in debug mode [default=yes]
1035
--enable-symbols include symbol debug information [default=yes]
1036
--enable-rtti (g++ only) compile with RTTI [default=yes]
1037
--enable-exceptions (g++ only) compile with exceptions [default=no]
1038
--enable-profile (GCC only) turn on inclusion of profiling code
1040
--enable-warnings turn on warnings when compiling [default=yes]
1041
--disable-static-defaults
1042
Disable defaults from being statically linked in
1045
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1046
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1047
--with-msvcrt=<crt> set which C run-time library to build against
1048
--with-gnu-ld assume the C compiler uses GNU ld default=no
1049
--with-pic try to use only PIC/non-PIC objects default=use both
1050
--with-alternate=string specify name of alternate configuration
1051
--with-suffix=string specify library name suffix (e.g. "_g")
1052
--with-doxygen=DIR DIR is the directory where the doxygen executable
1054
--with-x use the X Window System
1055
--with-dl=DIR include support for the dynamic link loader library
1057
--with-mesa prefer MesaGL (if found) over OpenGL [default=yes]
1058
--with-opengl=DIR OpenGL/Mesa installation directory
1059
--with-pthread=DIR pthread installation directory
1060
--with-glu=DIR use the OpenGL utility library [default=yes]
1061
--with-inventor use another Open Inventor than Coin [default=no],
1063
--with-inventor=PATH specify where Open Inventor and InventorXt resides
1064
--with-coin enable use of Coin [default=yes]
1065
--with-coin=DIR give prefix location of Coin
1066
--with-iv-extensions=extensions
1067
enable extra open inventor extensions
1068
--with-qt=DIR specify location of Qt library default=yes
1069
--with-framework Do Mac OS X-like framework installation
1070
--without-framework Do regular installation on Mac OS X
1071
--with-framework-prefix=<path> (default: "/Library/Frameworks")
1073
Some influential environment variables:
1074
CC C compiler command
1075
CFLAGS C compiler flags
1076
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1077
nonstandard directory <lib dir>
1078
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1079
headers in a nonstandard directory <include dir>
1081
CXX C++ compiler command
1082
CXXFLAGS C++ compiler flags
1083
CXXCPP C++ preprocessor
1084
htmldir destination for HTML docs (default ${datadir}/SoQt/html)
1086
Use these variables to override the choices made by `configure' or to help
1087
it to find libraries and programs with nonstandard names/locations.
1089
Report bugs to <coin-support@coin3d.org>.
1093
if test "$ac_init_help" = "recursive"; then
1094
# If there are subdirs, report their specific --help.
1096
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1097
test -d $ac_dir || continue
1100
if test "$ac_dir" != .; then
1101
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1102
# A "../" for each directory in $ac_dir_suffix.
1103
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1105
ac_dir_suffix= ac_top_builddir=
1109
.) # No --srcdir option. We are building in place.
1111
if test -z "$ac_top_builddir"; then
1114
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1116
[\\/]* | ?:[\\/]* ) # Absolute path.
1117
ac_srcdir=$srcdir$ac_dir_suffix;
1118
ac_top_srcdir=$srcdir ;;
1120
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1121
ac_top_srcdir=$ac_top_builddir$srcdir ;;
1123
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1125
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1126
ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1127
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1128
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1131
# Check for guested configure; otherwise get Cygnus style configure.
1132
if test -f $ac_srcdir/configure.gnu; then
1134
$SHELL $ac_srcdir/configure.gnu --help=recursive
1135
elif test -f $ac_srcdir/configure; then
1137
$SHELL $ac_srcdir/configure --help=recursive
1138
elif test -f $ac_srcdir/configure.ac ||
1139
test -f $ac_srcdir/configure.in; then
1141
$ac_configure --help
1143
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1149
test -n "$ac_init_help" && exit 0
1150
if $ac_init_version; then
1152
SoQt configure 1.0.2
1153
generated by GNU Autoconf 2.53
1155
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1156
Free Software Foundation, Inc.
1157
This configure script is free software; the Free Software Foundation
1158
gives unlimited permission to copy, distribute and modify it.
1164
This file contains any messages produced by compilers while
1165
running configure, to aid debugging if configure makes a mistake.
1167
It was created by SoQt $as_me 1.0.2, which was
1168
generated by GNU Autoconf 2.53. Invocation command line was
1179
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1180
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1181
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1182
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1183
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1185
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1186
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1188
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1189
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1190
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1191
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1192
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1193
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1194
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1198
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1202
test -z "$as_dir" && as_dir=.
1203
echo "PATH: $as_dir"
1218
# Keep a trace of the command line.
1219
# Strip out --no-create and --no-recursion so they do not pile up.
1220
# Also quote any args containing shell meta-characters.
1226
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1227
| --no-cr | --no-c | -n ) continue ;;
1228
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1229
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1231
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1232
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1234
case " $ac_configure_args " in
1235
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1236
*) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1239
# Get rid of the leading space.
1242
# When interrupted or exit'd, cleanup temporary files, and complete
1243
# config.log. We remove comments because anyway the quotes in there
1244
# would cause problems or look ugly.
1245
# WARNING: Be sure not to use single quotes in there, as some shells,
1246
# such as our DU 5.0 friend, will then `close' the trap.
1247
trap 'exit_status=$?
1248
# Save into config.log some information that might help in debugging.
1252
## ---------------- ##
1253
## Cache variables. ##
1254
## ---------------- ##
1257
# The following way of writing the cache mishandles newlines in values,
1260
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1263
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1264
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1268
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1273
if test -s confdefs.h; then
1280
sed "/^$/d" confdefs.h
1283
test "$ac_signal" != 0 &&
1284
echo "$as_me: caught signal $ac_signal"
1285
echo "$as_me: exit $exit_status"
1287
rm -f core core.* *.core &&
1288
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1291
for ac_signal in 1 2 13 15; do
1292
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1296
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1297
rm -rf conftest* confdefs.h
1298
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1301
# Predefined preprocessor variables.
1303
cat >>confdefs.h <<_ACEOF
1304
#define PACKAGE_NAME "$PACKAGE_NAME"
1308
cat >>confdefs.h <<_ACEOF
1309
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1313
cat >>confdefs.h <<_ACEOF
1314
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1318
cat >>confdefs.h <<_ACEOF
1319
#define PACKAGE_STRING "$PACKAGE_STRING"
1323
cat >>confdefs.h <<_ACEOF
1324
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1328
# Let the site file select an alternate cache file if it wants to.
1329
# Prefer explicitly selected file to automatically selected ones.
1330
if test -z "$CONFIG_SITE"; then
1331
if test "x$prefix" != xNONE; then
1332
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1334
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1337
for ac_site_file in $CONFIG_SITE; do
1338
if test -r "$ac_site_file"; then
1339
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1340
echo "$as_me: loading site script $ac_site_file" >&6;}
1341
sed 's/^/| /' "$ac_site_file" >&5
1346
if test -r "$cache_file"; then
1347
# Some versions of bash will fail to source /dev/null (special
1348
# files actually), so we avoid doing that.
1349
if test -f "$cache_file"; then
1350
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1351
echo "$as_me: loading cache $cache_file" >&6;}
1353
[\\/]* | ?:[\\/]* ) . $cache_file;;
1354
*) . ./$cache_file;;
1358
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1359
echo "$as_me: creating cache $cache_file" >&6;}
1363
# Check that the precious variables saved in the cache have kept the same
1365
ac_cache_corrupted=false
1366
for ac_var in `(set) 2>&1 |
1367
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1368
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1369
eval ac_new_set=\$ac_env_${ac_var}_set
1370
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1371
eval ac_new_val="\$ac_env_${ac_var}_value"
1372
case $ac_old_set,$ac_new_set in
1374
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1375
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1376
ac_cache_corrupted=: ;;
1378
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1379
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1380
ac_cache_corrupted=: ;;
1383
if test "x$ac_old_val" != "x$ac_new_val"; then
1384
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1385
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1386
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1387
echo "$as_me: former value: $ac_old_val" >&2;}
1388
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1389
echo "$as_me: current value: $ac_new_val" >&2;}
1390
ac_cache_corrupted=:
1393
# Pass precious variables to config.status.
1394
if test "$ac_new_set" = set; then
1396
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1397
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1398
*) ac_arg=$ac_var=$ac_new_val ;;
1400
case " $ac_configure_args " in
1401
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1402
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1406
if $ac_cache_corrupted; then
1407
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1408
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1409
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1410
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1411
{ (exit 1); exit 1; }; }
1415
ac_cpp='$CPP $CPPFLAGS'
1416
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1417
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1418
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1447
for ac_dir in cfg $srcdir/cfg; do
1448
if test -f $ac_dir/install-sh; then
1450
ac_install_sh="$ac_aux_dir/install-sh -c"
1452
elif test -f $ac_dir/install.sh; then
1454
ac_install_sh="$ac_aux_dir/install.sh -c"
1456
elif test -f $ac_dir/shtool; then
1458
ac_install_sh="$ac_aux_dir/shtool install -c"
1462
if test -z "$ac_aux_dir"; then
1463
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in cfg $srcdir/cfg" >&5
1464
echo "$as_me: error: cannot find install-sh or install.sh in cfg $srcdir/cfg" >&2;}
1465
{ (exit 1); exit 1; }; }
1467
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1468
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1469
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1476
# **************************************************************************
1478
# Make sure we can run config.sub.
1479
$ac_config_sub sun4 >/dev/null 2>&1 ||
1480
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1481
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1482
{ (exit 1); exit 1; }; }
1484
echo "$as_me:$LINENO: checking build system type" >&5
1485
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1486
if test "${ac_cv_build+set}" = set; then
1487
echo $ECHO_N "(cached) $ECHO_C" >&6
1489
ac_cv_build_alias=$build_alias
1490
test -z "$ac_cv_build_alias" &&
1491
ac_cv_build_alias=`$ac_config_guess`
1492
test -z "$ac_cv_build_alias" &&
1493
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1494
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1495
{ (exit 1); exit 1; }; }
1496
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1497
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1498
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1499
{ (exit 1); exit 1; }; }
1502
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1503
echo "${ECHO_T}$ac_cv_build" >&6
1505
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1506
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1507
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1510
echo "$as_me:$LINENO: checking host system type" >&5
1511
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1512
if test "${ac_cv_host+set}" = set; then
1513
echo $ECHO_N "(cached) $ECHO_C" >&6
1515
ac_cv_host_alias=$host_alias
1516
test -z "$ac_cv_host_alias" &&
1517
ac_cv_host_alias=$ac_cv_build_alias
1518
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1519
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1520
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1521
{ (exit 1); exit 1; }; }
1524
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1525
echo "${ECHO_T}$ac_cv_host" >&6
1527
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1528
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1529
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1532
echo "$as_me:$LINENO: checking target system type" >&5
1533
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1534
if test "${ac_cv_target+set}" = set; then
1535
echo $ECHO_N "(cached) $ECHO_C" >&6
1537
ac_cv_target_alias=$target_alias
1538
test "x$ac_cv_target_alias" = "x" &&
1539
ac_cv_target_alias=$ac_cv_host_alias
1540
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1541
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1542
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1543
{ (exit 1); exit 1; }; }
1546
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1547
echo "${ECHO_T}$ac_cv_target" >&6
1548
target=$ac_cv_target
1549
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1550
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1551
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1554
# The aliases save the names the user supplied, while $host etc.
1555
# will get canonicalized.
1556
test -n "$target_alias" &&
1557
test "$program_prefix$program_suffix$program_transform_name" = \
1559
program_prefix=${target_alias}-
1562
# Check whether --enable-msvcdsp or --disable-msvcdsp was given.
1563
if test "${enable_msvcdsp+set}" = set; then
1564
enableval="$enable_msvcdsp"
1566
no | false) sim_ac_make_dsp=false ;;
1567
*) sim_ac_make_dsp=true ;;
1570
sim_ac_make_dsp=false
1573
if $sim_ac_make_dsp; then
1574
enable_dependency_tracking=no
1575
enable_libtool_lock=no
1579
# Check whether --enable-msvc or --disable-msvc was given.
1580
if test "${enable_msvc+set}" = set; then
1581
enableval="$enable_msvc"
1583
no | false) sim_ac_try_msvc=false ;;
1584
*) sim_ac_try_msvc=true ;;
1587
sim_ac_try_msvc=true
1590
if $sim_ac_try_msvc; then
1591
# **************************************************************************
1592
# If the Microsoft Visual C++ cl.exe compiler is available, set us up for
1593
# compiling with it and to generate an MSWindows .dll file.
1595
: ${BUILD_WITH_MSVC=false}
1596
sim_ac_wrapmsvc=`cd $srcdir; pwd`/cfg/m4/wrapmsvc.exe
1597
if test -z "$CC" -a -z "$CXX" && $sim_ac_wrapmsvc >/dev/null 2>&1; then
1601
CXX=$sim_ac_wrapmsvc
1603
BUILD_WITH_MSVC=true
1609
BUILD_WITH_MSVC=true
1613
BUILD_WITH_MSVC=false
1620
: ${sim_ac_message_file=$ac_aux_dir/m4/errors.txt}
1621
if test -f $sim_ac_message_file; then
1622
sim_ac_message="`sed -n -e '/^!no-msvc++$/,/^!/ { /^!/ d; p; }' <$sim_ac_message_file`"
1623
if test x"$sim_ac_message" = x""; then
1624
{ { echo "$as_me:$LINENO: error: no message named 'no-msvc++' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" >&5
1625
echo "$as_me: error: no message named 'no-msvc++' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" >&2;}
1626
{ (exit 1); exit 1; }; }
1628
eval "echo >&2 \"$sim_ac_message\""
1631
{ { echo "$as_me:$LINENO: error: file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" >&5
1632
echo "$as_me: error: file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" >&2;}
1633
{ (exit 1); exit 1; }; }
1639
{ { echo "$as_me:$LINENO: error: aborting" >&5
1640
echo "$as_me: error: aborting" >&2;}
1641
{ (exit 1); exit 1; }; }
1650
# **************************************************************************
1651
# Library versioning. For information about our versioning strategy, see the
1652
# document ``HACKING'' in the Coin CVS module.
1654
SOQT_MAJOR_VERSION=1
1656
SOQT_MINOR_VERSION=0
1658
SOQT_MICRO_VERSION=2
1662
SOQT_VERSION=$SOQT_MAJOR_VERSION.$SOQT_MINOR_VERSION.$SOQT_MICRO_VERSION$SOQT_BETA_VERSION
1665
VERSION=$SOQT_VERSION
1667
# Libtool versioning
1679
cat >>confdefs.h <<_ACEOF
1680
#define SOQT_MAJOR_VERSION $SOQT_MAJOR_VERSION
1684
cat >>confdefs.h <<_ACEOF
1685
#define SOQT_MINOR_VERSION $SOQT_MINOR_VERSION
1689
cat >>confdefs.h <<_ACEOF
1690
#define SOQT_MICRO_VERSION $SOQT_MICRO_VERSION
1694
cat >>confdefs.h <<_ACEOF
1695
#define SOQT_VERSION "$SOQT_VERSION"
1699
# **************************************************************************
1701
soqt_build_dir=`pwd`
1702
soqt_src_dir=`cd "$srcdir"; pwd`
1703
soqt_w32_build_dir=`cygpath -w "$soqt_build_dir" 2>/dev/null || echo "$soqt_build_dir"`
1704
soqt_w32_src_dir=`cygpath -w "$soqt_src_dir" 2>/dev/null || echo "$soqt_src_dir"`
1706
# **************************************************************************
1707
# Miscellaneous options and initializations.
1709
# Find a good install program. We prefer a C program (faster),
1710
# so one script is as good as another. But avoid the broken or
1711
# incompatible versions:
1712
# SysV /etc/install, /usr/sbin/install
1713
# SunOS /usr/etc/install
1714
# IRIX /sbin/install
1716
# AmigaOS /C/install, which installs bootblocks on floppy discs
1717
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1718
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1719
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1720
# ./install, which can be erroneously created by make from ./install.sh.
1721
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1722
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1723
if test -z "$INSTALL"; then
1724
if test "${ac_cv_path_install+set}" = set; then
1725
echo $ECHO_N "(cached) $ECHO_C" >&6
1727
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731
test -z "$as_dir" && as_dir=.
1732
# Account for people who put trailing slashes in PATH elements.
1734
./ | .// | /cC/* | \
1735
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1738
# OSF1 and SCO ODT 3.0 have their own names for install.
1739
# Don't use installbsd from OSF since it installs stuff as root
1741
for ac_prog in ginstall scoinst install; do
1742
for ac_exec_ext in '' $ac_executable_extensions; do
1743
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1744
if test $ac_prog = install &&
1745
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1746
# AIX install. It has an incompatible calling convention.
1748
elif test $ac_prog = install &&
1749
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1750
# program-specific install script used by HP pwplus--don't use.
1753
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1765
if test "${ac_cv_path_install+set}" = set; then
1766
INSTALL=$ac_cv_path_install
1768
# As a last resort, use the slow shell script. We don't cache a
1769
# path for INSTALL within a source directory, because that will
1770
# break other packages using the cache if that directory is
1771
# removed, or if the path is relative.
1772
INSTALL=$ac_install_sh
1775
echo "$as_me:$LINENO: result: $INSTALL" >&5
1776
echo "${ECHO_T}$INSTALL" >&6
1778
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1779
# It thinks the first close brace ends the variable substitution.
1780
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1782
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1784
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1786
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1787
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1790
echo timestamp > conftest.file
1791
# Do `set' in a subshell so we don't clobber the current shell's
1792
# arguments. Must try -L first in case configure is actually a
1793
# symlink; some systems play weird games with the mod time of symlinks
1794
# (eg FreeBSD returns the mod time of the symlink's containing
1797
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1798
if test "$*" = "X"; then
1800
set X `ls -t $srcdir/configure conftest.file`
1803
if test "$*" != "X $srcdir/configure conftest.file" \
1804
&& test "$*" != "X conftest.file $srcdir/configure"; then
1806
# If neither matched, then we have a broken ls. This can happen
1807
# if, for instance, CONFIG_SHELL is bash and it inherits a
1808
# broken ls alias from the environment. This has actually
1809
# happened. Such a system could not be considered "sane".
1810
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1811
alias in your environment" >&5
1812
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1813
alias in your environment" >&2;}
1814
{ (exit 1); exit 1; }; }
1817
test "$2" = conftest.file
1823
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1824
Check your system clock" >&5
1825
echo "$as_me: error: newly created file is older than distributed files!
1826
Check your system clock" >&2;}
1827
{ (exit 1); exit 1; }; }
1829
echo "$as_me:$LINENO: result: yes" >&5
1830
echo "${ECHO_T}yes" >&6
1831
test "$program_prefix" != NONE &&
1832
program_transform_name="s,^,$program_prefix,;$program_transform_name"
1833
# Use a double $ so make ignores it.
1834
test "$program_suffix" != NONE &&
1835
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1836
# Double any \ or $. echo might interpret backslashes.
1837
# By default was `s,x,x', remove it if useless.
1838
cat <<\_ACEOF >conftest.sed
1839
s/[\\$]/&&/g;s/;s,x,x,$//
1841
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1845
# expand $ac_aux_dir to an absolute path
1846
if test "${CDPATH+set}" = set; then
1847
CDPATH=${ZSH_VERSION+.}: # as recommended in autoconf.texi
1849
am_aux_dir=`cd $ac_aux_dir && pwd`
1851
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1852
# Use eval to expand $SHELL
1853
if eval "$MISSING --run true"; then
1854
am_missing_run="$MISSING --run "
1858
{ echo "$as_me:$LINENO: WARNING: ${am_backtick}missing' script is too old or missing" >&5
1859
echo "$as_me: WARNING: ${am_backtick}missing' script is too old or missing" >&2;}
1862
for ac_prog in gawk mawk nawk awk
1864
# Extract the first word of "$ac_prog", so it can be a program name with args.
1865
set dummy $ac_prog; ac_word=$2
1866
echo "$as_me:$LINENO: checking for $ac_word" >&5
1867
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1868
if test "${ac_cv_prog_AWK+set}" = set; then
1869
echo $ECHO_N "(cached) $ECHO_C" >&6
1871
if test -n "$AWK"; then
1872
ac_cv_prog_AWK="$AWK" # Let the user override the test.
1874
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1878
test -z "$as_dir" && as_dir=.
1879
for ac_exec_ext in '' $ac_executable_extensions; do
1880
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1881
ac_cv_prog_AWK="$ac_prog"
1882
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1891
if test -n "$AWK"; then
1892
echo "$as_me:$LINENO: result: $AWK" >&5
1893
echo "${ECHO_T}$AWK" >&6
1895
echo "$as_me:$LINENO: result: no" >&5
1896
echo "${ECHO_T}no" >&6
1899
test -n "$AWK" && break
1902
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1903
echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1904
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1905
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1906
echo $ECHO_N "(cached) $ECHO_C" >&6
1908
cat >conftest.make <<\_ACEOF
1910
@echo 'ac_maketemp="${MAKE}"'
1912
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1913
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1914
if test -n "$ac_maketemp"; then
1915
eval ac_cv_prog_make_${ac_make}_set=yes
1917
eval ac_cv_prog_make_${ac_make}_set=no
1921
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1922
echo "$as_me:$LINENO: result: yes" >&5
1923
echo "${ECHO_T}yes" >&6
1926
echo "$as_me:$LINENO: result: no" >&5
1927
echo "${ECHO_T}no" >&6
1928
SET_MAKE="MAKE=${MAKE-make}"
1931
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
1932
if test "${enable_dependency_tracking+set}" = set; then
1933
enableval="$enable_dependency_tracking"
1936
if test "x$enable_dependency_tracking" != xno; then
1937
am_depcomp="$ac_aux_dir/depcomp"
1942
if test "x$enable_dependency_tracking" != xno; then
1953
rm -f .deps 2>/dev/null
1954
mkdir .deps 2>/dev/null
1955
if test -d .deps; then
1958
# MS-DOS does not allow filenames that begin with a dot.
1961
rmdir .deps 2>/dev/null
1964
# test to see if srcdir already configured
1965
if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" &&
1966
test -f $srcdir/config.status; then
1967
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1968
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1969
{ (exit 1); exit 1; }; }
1972
# Define the identity of the package.
1976
cat >>confdefs.h <<_ACEOF
1977
#define PACKAGE "$PACKAGE"
1981
cat >>confdefs.h <<_ACEOF
1982
#define VERSION "$VERSION"
1986
# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow
1987
# the ones we care about.
1989
# Autoconf 2.50 always computes EXEEXT. However we need to be
1990
# compatible with 2.13, for now. So we always define EXEEXT, but we
1993
# Similar for OBJEXT -- only we only use OBJEXT if the user actually
1994
# requests that it be used. This is a bit dumb.
1998
# Some tools Automake needs.
2000
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
2003
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2006
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
2009
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2012
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2015
AMTAR=${AMTAR-"${am_missing_run}tar"}
2017
install_sh=${install_sh-"$am_aux_dir/install-sh"}
2019
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2021
# We need awk for the "check" target. The system "awk" is bad on
2025
# File to cram results from the configure tests into.
2026
# we pit this in src/ to avoid having to add extra INCLUDES directives in
2031
ac_config_headers="$ac_config_headers src/config.h"
2034
# Default to not building a static library.
2035
# Can be overridden by the user with --enable-static.
2036
# Check whether --enable-static or --disable-static was given.
2037
if test "${enable_static+set}" = set; then
2038
enableval="$enable_static"
2039
p=${PACKAGE-default}
2041
yes) enable_static=yes ;;
2042
no) enable_static=no ;;
2045
# Look at the argument we got. We use all the common list separators.
2046
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2047
for pkg in $enableval; do
2048
if test "X$pkg" = "X$p"; then
2059
# Turn off default maintainer make-rules -- use ./bootstrap instead.
2060
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2061
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2062
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2063
if test "${enable_maintainer_mode+set}" = set; then
2064
enableval="$enable_maintainer_mode"
2065
USE_MAINTAINER_MODE=$enableval
2067
USE_MAINTAINER_MODE=no
2069
echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2070
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2073
if test $USE_MAINTAINER_MODE = yes; then
2074
MAINTAINER_MODE_TRUE=
2075
MAINTAINER_MODE_FALSE='#'
2077
MAINTAINER_MODE_TRUE='#'
2078
MAINTAINER_MODE_FALSE=
2080
MAINT=$MAINTAINER_MODE_TRUE
2084
# Use C++ for configure tests and Libtool.
2086
ac_cpp='$CPP $CPPFLAGS'
2087
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2088
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2089
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2090
if test -n "$ac_tool_prefix"; then
2091
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2092
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2093
echo "$as_me:$LINENO: checking for $ac_word" >&5
2094
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2095
if test "${ac_cv_prog_CC+set}" = set; then
2096
echo $ECHO_N "(cached) $ECHO_C" >&6
2098
if test -n "$CC"; then
2099
ac_cv_prog_CC="$CC" # Let the user override the test.
2101
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105
test -z "$as_dir" && as_dir=.
2106
for ac_exec_ext in '' $ac_executable_extensions; do
2107
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2108
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2109
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2118
if test -n "$CC"; then
2119
echo "$as_me:$LINENO: result: $CC" >&5
2120
echo "${ECHO_T}$CC" >&6
2122
echo "$as_me:$LINENO: result: no" >&5
2123
echo "${ECHO_T}no" >&6
2127
if test -z "$ac_cv_prog_CC"; then
2129
# Extract the first word of "gcc", so it can be a program name with args.
2130
set dummy gcc; ac_word=$2
2131
echo "$as_me:$LINENO: checking for $ac_word" >&5
2132
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2133
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2134
echo $ECHO_N "(cached) $ECHO_C" >&6
2136
if test -n "$ac_ct_CC"; then
2137
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2139
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143
test -z "$as_dir" && as_dir=.
2144
for ac_exec_ext in '' $ac_executable_extensions; do
2145
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2146
ac_cv_prog_ac_ct_CC="gcc"
2147
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2155
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2156
if test -n "$ac_ct_CC"; then
2157
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2158
echo "${ECHO_T}$ac_ct_CC" >&6
2160
echo "$as_me:$LINENO: result: no" >&5
2161
echo "${ECHO_T}no" >&6
2169
if test -z "$CC"; then
2170
if test -n "$ac_tool_prefix"; then
2171
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2172
set dummy ${ac_tool_prefix}cc; ac_word=$2
2173
echo "$as_me:$LINENO: checking for $ac_word" >&5
2174
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2175
if test "${ac_cv_prog_CC+set}" = set; then
2176
echo $ECHO_N "(cached) $ECHO_C" >&6
2178
if test -n "$CC"; then
2179
ac_cv_prog_CC="$CC" # Let the user override the test.
2181
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2185
test -z "$as_dir" && as_dir=.
2186
for ac_exec_ext in '' $ac_executable_extensions; do
2187
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2188
ac_cv_prog_CC="${ac_tool_prefix}cc"
2189
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2198
if test -n "$CC"; then
2199
echo "$as_me:$LINENO: result: $CC" >&5
2200
echo "${ECHO_T}$CC" >&6
2202
echo "$as_me:$LINENO: result: no" >&5
2203
echo "${ECHO_T}no" >&6
2207
if test -z "$ac_cv_prog_CC"; then
2209
# Extract the first word of "cc", so it can be a program name with args.
2210
set dummy cc; ac_word=$2
2211
echo "$as_me:$LINENO: checking for $ac_word" >&5
2212
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2213
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2214
echo $ECHO_N "(cached) $ECHO_C" >&6
2216
if test -n "$ac_ct_CC"; then
2217
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2219
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2223
test -z "$as_dir" && as_dir=.
2224
for ac_exec_ext in '' $ac_executable_extensions; do
2225
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2226
ac_cv_prog_ac_ct_CC="cc"
2227
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2235
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2236
if test -n "$ac_ct_CC"; then
2237
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2238
echo "${ECHO_T}$ac_ct_CC" >&6
2240
echo "$as_me:$LINENO: result: no" >&5
2241
echo "${ECHO_T}no" >&6
2250
if test -z "$CC"; then
2251
# Extract the first word of "cc", so it can be a program name with args.
2252
set dummy cc; ac_word=$2
2253
echo "$as_me:$LINENO: checking for $ac_word" >&5
2254
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2255
if test "${ac_cv_prog_CC+set}" = set; then
2256
echo $ECHO_N "(cached) $ECHO_C" >&6
2258
if test -n "$CC"; then
2259
ac_cv_prog_CC="$CC" # Let the user override the test.
2262
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266
test -z "$as_dir" && as_dir=.
2267
for ac_exec_ext in '' $ac_executable_extensions; do
2268
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2269
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2270
ac_prog_rejected=yes
2274
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2280
if test $ac_prog_rejected = yes; then
2281
# We found a bogon in the path, so make sure we never use it.
2282
set dummy $ac_cv_prog_CC
2284
if test $# != 0; then
2285
# We chose a different compiler from the bogus one.
2286
# However, it has the same basename, so the bogon will be chosen
2287
# first if we set CC to just the basename; use the full file name.
2289
set dummy "$as_dir/$ac_word" ${1+"$@"}
2297
if test -n "$CC"; then
2298
echo "$as_me:$LINENO: result: $CC" >&5
2299
echo "${ECHO_T}$CC" >&6
2301
echo "$as_me:$LINENO: result: no" >&5
2302
echo "${ECHO_T}no" >&6
2306
if test -z "$CC"; then
2307
if test -n "$ac_tool_prefix"; then
2310
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2311
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2312
echo "$as_me:$LINENO: checking for $ac_word" >&5
2313
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2314
if test "${ac_cv_prog_CC+set}" = set; then
2315
echo $ECHO_N "(cached) $ECHO_C" >&6
2317
if test -n "$CC"; then
2318
ac_cv_prog_CC="$CC" # Let the user override the test.
2320
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324
test -z "$as_dir" && as_dir=.
2325
for ac_exec_ext in '' $ac_executable_extensions; do
2326
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2327
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2328
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2337
if test -n "$CC"; then
2338
echo "$as_me:$LINENO: result: $CC" >&5
2339
echo "${ECHO_T}$CC" >&6
2341
echo "$as_me:$LINENO: result: no" >&5
2342
echo "${ECHO_T}no" >&6
2345
test -n "$CC" && break
2348
if test -z "$CC"; then
2352
# Extract the first word of "$ac_prog", so it can be a program name with args.
2353
set dummy $ac_prog; ac_word=$2
2354
echo "$as_me:$LINENO: checking for $ac_word" >&5
2355
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2356
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2357
echo $ECHO_N "(cached) $ECHO_C" >&6
2359
if test -n "$ac_ct_CC"; then
2360
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2362
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2366
test -z "$as_dir" && as_dir=.
2367
for ac_exec_ext in '' $ac_executable_extensions; do
2368
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2369
ac_cv_prog_ac_ct_CC="$ac_prog"
2370
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2378
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2379
if test -n "$ac_ct_CC"; then
2380
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2381
echo "${ECHO_T}$ac_ct_CC" >&6
2383
echo "$as_me:$LINENO: result: no" >&5
2384
echo "${ECHO_T}no" >&6
2387
test -n "$ac_ct_CC" && break
2396
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2397
echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2398
{ (exit 1); exit 1; }; }
2400
# Provide some information about the compiler.
2401
echo "$as_me:$LINENO:" \
2402
"checking for C compiler version" >&5
2403
ac_compiler=`set X $ac_compile; echo $2`
2404
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2405
(eval $ac_compiler --version </dev/null >&5) 2>&5
2407
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408
(exit $ac_status); }
2409
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2410
(eval $ac_compiler -v </dev/null >&5) 2>&5
2412
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2413
(exit $ac_status); }
2414
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2415
(eval $ac_compiler -V </dev/null >&5) 2>&5
2417
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2418
(exit $ac_status); }
2420
cat >conftest.$ac_ext <<_ACEOF
2421
#line $LINENO "configure"
2422
#include "confdefs.h"
2424
#ifdef F77_DUMMY_MAIN
2428
int F77_DUMMY_MAIN() { return 1; }
2438
ac_clean_files_save=$ac_clean_files
2439
ac_clean_files="$ac_clean_files a.out a.exe"
2440
# Try to create an executable without -o first, disregard a.out.
2441
# It will help us diagnose broken compilers, and finding out an intuition
2443
echo "$as_me:$LINENO: checking for C compiler default output" >&5
2444
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2445
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2446
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2447
(eval $ac_link_default) 2>&5
2449
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450
(exit $ac_status); }; then
2451
# Find the output, starting from the most likely. This scheme is
2452
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2455
# Be careful to initialize this variable, since it used to be cached.
2456
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2458
for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2459
ls a.out conftest 2>/dev/null;
2460
ls a.* conftest.* 2>/dev/null`; do
2462
*.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2463
a.out ) # We found the default executable, but exeext='' is most
2466
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2467
# FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2474
echo "$as_me: failed program was:" >&5
2475
cat conftest.$ac_ext >&5
2476
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2477
echo "$as_me: error: C compiler cannot create executables" >&2;}
2478
{ (exit 77); exit 77; }; }
2481
ac_exeext=$ac_cv_exeext
2482
echo "$as_me:$LINENO: result: $ac_file" >&5
2483
echo "${ECHO_T}$ac_file" >&6
2485
# Check the compiler produces executables we can run. If not, either
2486
# the compiler is broken, or we cross compile.
2487
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2488
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2489
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2490
# If not cross compiling, check that we can run a simple program.
2491
if test "$cross_compiling" != yes; then
2492
if { ac_try='./$ac_file'
2493
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2496
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497
(exit $ac_status); }; }; then
2500
if test "$cross_compiling" = maybe; then
2503
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2504
If you meant to cross compile, use \`--host'." >&5
2505
echo "$as_me: error: cannot run C compiled programs.
2506
If you meant to cross compile, use \`--host'." >&2;}
2507
{ (exit 1); exit 1; }; }
2511
echo "$as_me:$LINENO: result: yes" >&5
2512
echo "${ECHO_T}yes" >&6
2514
rm -f a.out a.exe conftest$ac_cv_exeext
2515
ac_clean_files=$ac_clean_files_save
2516
# Check the compiler produces executables we can run. If not, either
2517
# the compiler is broken, or we cross compile.
2518
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2519
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2520
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2521
echo "${ECHO_T}$cross_compiling" >&6
2523
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2524
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2525
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2526
(eval $ac_link) 2>&5
2528
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529
(exit $ac_status); }; then
2530
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2531
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2532
# work properly (i.e., refer to `conftest.exe'), while it won't with
2534
for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2536
*.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2537
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2544
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2545
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2546
{ (exit 1); exit 1; }; }
2549
rm -f conftest$ac_cv_exeext
2550
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2551
echo "${ECHO_T}$ac_cv_exeext" >&6
2553
rm -f conftest.$ac_ext
2554
EXEEXT=$ac_cv_exeext
2556
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2557
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2558
if test "${ac_cv_objext+set}" = set; then
2559
echo $ECHO_N "(cached) $ECHO_C" >&6
2561
cat >conftest.$ac_ext <<_ACEOF
2562
#line $LINENO "configure"
2563
#include "confdefs.h"
2565
#ifdef F77_DUMMY_MAIN
2569
int F77_DUMMY_MAIN() { return 1; }
2579
rm -f conftest.o conftest.obj
2580
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2581
(eval $ac_compile) 2>&5
2583
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584
(exit $ac_status); }; then
2585
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2587
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2588
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2593
echo "$as_me: failed program was:" >&5
2594
cat conftest.$ac_ext >&5
2595
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2596
echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2597
{ (exit 1); exit 1; }; }
2600
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2602
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2603
echo "${ECHO_T}$ac_cv_objext" >&6
2604
OBJEXT=$ac_cv_objext
2606
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2607
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2608
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2609
echo $ECHO_N "(cached) $ECHO_C" >&6
2611
cat >conftest.$ac_ext <<_ACEOF
2612
#line $LINENO "configure"
2613
#include "confdefs.h"
2615
#ifdef F77_DUMMY_MAIN
2619
int F77_DUMMY_MAIN() { return 1; }
2632
rm -f conftest.$ac_objext
2633
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2634
(eval $ac_compile) 2>&5
2636
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637
(exit $ac_status); } &&
2638
{ ac_try='test -s conftest.$ac_objext'
2639
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2642
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643
(exit $ac_status); }; }; then
2646
echo "$as_me: failed program was:" >&5
2647
cat conftest.$ac_ext >&5
2650
rm -f conftest.$ac_objext conftest.$ac_ext
2651
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2654
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2655
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2656
GCC=`test $ac_compiler_gnu = yes && echo yes`
2657
ac_test_CFLAGS=${CFLAGS+set}
2658
ac_save_CFLAGS=$CFLAGS
2660
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2661
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2662
if test "${ac_cv_prog_cc_g+set}" = set; then
2663
echo $ECHO_N "(cached) $ECHO_C" >&6
2665
cat >conftest.$ac_ext <<_ACEOF
2666
#line $LINENO "configure"
2667
#include "confdefs.h"
2669
#ifdef F77_DUMMY_MAIN
2673
int F77_DUMMY_MAIN() { return 1; }
2683
rm -f conftest.$ac_objext
2684
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2685
(eval $ac_compile) 2>&5
2687
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688
(exit $ac_status); } &&
2689
{ ac_try='test -s conftest.$ac_objext'
2690
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2693
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2694
(exit $ac_status); }; }; then
2697
echo "$as_me: failed program was:" >&5
2698
cat conftest.$ac_ext >&5
2701
rm -f conftest.$ac_objext conftest.$ac_ext
2703
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2704
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2705
if test "$ac_test_CFLAGS" = set; then
2706
CFLAGS=$ac_save_CFLAGS
2707
elif test $ac_cv_prog_cc_g = yes; then
2708
if test "$GCC" = yes; then
2714
if test "$GCC" = yes; then
2720
# Some people use a C++ compiler to compile C. Since we use `exit',
2721
# in C++ we need to declare it. In case someone uses the same compiler
2722
# for both compiling C and C++ we need to have the C++ compiler decide
2723
# the declaration of exit, since it's the most demanding environment.
2724
cat >conftest.$ac_ext <<_ACEOF
2729
rm -f conftest.$ac_objext
2730
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2731
(eval $ac_compile) 2>&5
2733
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2734
(exit $ac_status); } &&
2735
{ ac_try='test -s conftest.$ac_objext'
2736
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2740
(exit $ac_status); }; }; then
2741
for ac_declaration in \
2743
'#include <stdlib.h>' \
2744
'extern "C" void std::exit (int) throw (); using std::exit;' \
2745
'extern "C" void std::exit (int); using std::exit;' \
2746
'extern "C" void exit (int) throw ();' \
2747
'extern "C" void exit (int);' \
2750
cat >conftest.$ac_ext <<_ACEOF
2751
#line $LINENO "configure"
2752
#include "confdefs.h"
2755
#ifdef F77_DUMMY_MAIN
2759
int F77_DUMMY_MAIN() { return 1; }
2769
rm -f conftest.$ac_objext
2770
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2771
(eval $ac_compile) 2>&5
2773
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774
(exit $ac_status); } &&
2775
{ ac_try='test -s conftest.$ac_objext'
2776
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2779
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780
(exit $ac_status); }; }; then
2783
echo "$as_me: failed program was:" >&5
2784
cat conftest.$ac_ext >&5
2787
rm -f conftest.$ac_objext conftest.$ac_ext
2788
cat >conftest.$ac_ext <<_ACEOF
2789
#line $LINENO "configure"
2790
#include "confdefs.h"
2792
#ifdef F77_DUMMY_MAIN
2796
int F77_DUMMY_MAIN() { return 1; }
2806
rm -f conftest.$ac_objext
2807
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2808
(eval $ac_compile) 2>&5
2810
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811
(exit $ac_status); } &&
2812
{ ac_try='test -s conftest.$ac_objext'
2813
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2816
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817
(exit $ac_status); }; }; then
2820
echo "$as_me: failed program was:" >&5
2821
cat conftest.$ac_ext >&5
2823
rm -f conftest.$ac_objext conftest.$ac_ext
2826
if test -n "$ac_declaration"; then
2827
echo '#ifdef __cplusplus' >>confdefs.h
2828
echo $ac_declaration >>confdefs.h
2829
echo '#endif' >>confdefs.h
2833
echo "$as_me: failed program was:" >&5
2834
cat conftest.$ac_ext >&5
2836
rm -f conftest.$ac_objext conftest.$ac_ext
2838
ac_cpp='$CPP $CPPFLAGS'
2839
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2840
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2841
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2843
ac_config_commands="$ac_config_commands default-1"
2845
am_make=${MAKE-make}
2846
cat > confinc << 'END'
2850
# If we don't find an include directive, just comment out the code.
2851
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2852
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2856
# First try GNU make style include.
2857
echo "include confinc" > confmf
2858
# We grep out `Entering directory' and `Leaving directory'
2859
# messages which can occur if `w' ends up in MAKEFLAGS.
2860
# In particular we don't look at `^make:' because GNU make might
2861
# be invoked under some other name (usually "gmake"), in which
2862
# case it prints its new name instead of `make'.
2863
if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2868
# Now try BSD make style include.
2869
if test "$am__include" = "#"; then
2870
echo '.include "confinc"' > confmf
2871
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2872
am__include=.include
2879
echo "$as_me:$LINENO: result: $_am_result" >&5
2880
echo "${ECHO_T}$_am_result" >&6
2881
rm -f confinc confmf
2884
depcc="$CC" am_compiler_list=
2886
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2887
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2888
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2889
echo $ECHO_N "(cached) $ECHO_C" >&6
2891
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2892
# We make a subdir and do the tests there. Otherwise we can end up
2893
# making bogus files that we don't know about and never remove. For
2894
# instance it was reported that on HP-UX the gcc test will end up
2895
# making a dummy file named `D' -- because `-MD' means `put the output
2898
# Copy depcomp to subdir because otherwise we won't find it if we're
2899
# using a relative directory.
2900
cp "$am_depcomp" conftest.dir
2903
am_cv_CC_dependencies_compiler_type=none
2904
if test "$am_compiler_list" = ""; then
2905
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2907
for depmode in $am_compiler_list; do
2908
# We need to recreate these files for each test, as the compiler may
2909
# overwrite some of them when testing with obscure command lines.
2910
# This happens at least with the AIX C compiler.
2911
echo '#include "conftest.h"' > conftest.c
2912
echo 'int i;' > conftest.h
2913
echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2917
# after this tag, mechanisms are not by side-effect, so they'll
2918
# only be used when explicitly requested
2919
if test "x$enable_dependency_tracking" = xyes; then
2927
# We check with `-c' and `-o' for the sake of the "dashmstdout"
2928
# mode. It turns out that the SunPro C++ compiler does not properly
2929
# handle `-M -o', and we need to detect this.
2930
if depmode=$depmode \
2931
source=conftest.c object=conftest.o \
2932
depfile=conftest.Po tmpdepfile=conftest.TPo \
2933
$SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2934
grep conftest.h conftest.Po > /dev/null 2>&1 &&
2935
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2936
am_cv_CC_dependencies_compiler_type=$depmode
2944
am_cv_CC_dependencies_compiler_type=none
2948
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2949
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2950
CCDEPMODE="depmode=$am_cv_CC_dependencies_compiler_type"
2954
ac_cpp='$CPP $CPPFLAGS'
2955
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2956
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2957
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2958
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2959
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2960
# On Suns, sometimes $CPP names a directory.
2961
if test -n "$CPP" && test -d "$CPP"; then
2964
if test -z "$CPP"; then
2965
if test "${ac_cv_prog_CPP+set}" = set; then
2966
echo $ECHO_N "(cached) $ECHO_C" >&6
2968
# Double quotes because CPP needs to be expanded
2969
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2972
for ac_c_preproc_warn_flag in '' yes
2974
# Use a header file that comes with gcc, so configuring glibc
2975
# with a fresh cross-compiler works.
2976
# On the NeXT, cc -E runs the code through the compiler's parser,
2977
# not just through cpp. "Syntax error" is here to catch this case.
2978
cat >conftest.$ac_ext <<_ACEOF
2979
#line $LINENO "configure"
2980
#include "confdefs.h"
2984
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2985
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2987
egrep -v '^ *\+' conftest.er1 >conftest.err
2989
cat conftest.err >&5
2990
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991
(exit $ac_status); } >/dev/null; then
2992
if test -s conftest.err; then
2993
ac_cpp_err=$ac_c_preproc_warn_flag
3000
if test -z "$ac_cpp_err"; then
3003
echo "$as_me: failed program was:" >&5
3004
cat conftest.$ac_ext >&5
3005
# Broken: fails on valid input.
3008
rm -f conftest.err conftest.$ac_ext
3010
# OK, works on sane cases. Now check whether non-existent headers
3011
# can be detected and how.
3012
cat >conftest.$ac_ext <<_ACEOF
3013
#line $LINENO "configure"
3014
#include "confdefs.h"
3015
#include <ac_nonexistent.h>
3017
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3018
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3020
egrep -v '^ *\+' conftest.er1 >conftest.err
3022
cat conftest.err >&5
3023
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024
(exit $ac_status); } >/dev/null; then
3025
if test -s conftest.err; then
3026
ac_cpp_err=$ac_c_preproc_warn_flag
3033
if test -z "$ac_cpp_err"; then
3034
# Broken: success on invalid input.
3037
echo "$as_me: failed program was:" >&5
3038
cat conftest.$ac_ext >&5
3039
# Passes both tests.
3043
rm -f conftest.err conftest.$ac_ext
3046
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3047
rm -f conftest.err conftest.$ac_ext
3048
if $ac_preproc_ok; then
3060
echo "$as_me:$LINENO: result: $CPP" >&5
3061
echo "${ECHO_T}$CPP" >&6
3063
for ac_c_preproc_warn_flag in '' yes
3065
# Use a header file that comes with gcc, so configuring glibc
3066
# with a fresh cross-compiler works.
3067
# On the NeXT, cc -E runs the code through the compiler's parser,
3068
# not just through cpp. "Syntax error" is here to catch this case.
3069
cat >conftest.$ac_ext <<_ACEOF
3070
#line $LINENO "configure"
3071
#include "confdefs.h"
3075
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3076
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3078
egrep -v '^ *\+' conftest.er1 >conftest.err
3080
cat conftest.err >&5
3081
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082
(exit $ac_status); } >/dev/null; then
3083
if test -s conftest.err; then
3084
ac_cpp_err=$ac_c_preproc_warn_flag
3091
if test -z "$ac_cpp_err"; then
3094
echo "$as_me: failed program was:" >&5
3095
cat conftest.$ac_ext >&5
3096
# Broken: fails on valid input.
3099
rm -f conftest.err conftest.$ac_ext
3101
# OK, works on sane cases. Now check whether non-existent headers
3102
# can be detected and how.
3103
cat >conftest.$ac_ext <<_ACEOF
3104
#line $LINENO "configure"
3105
#include "confdefs.h"
3106
#include <ac_nonexistent.h>
3108
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3109
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3111
egrep -v '^ *\+' conftest.er1 >conftest.err
3113
cat conftest.err >&5
3114
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3115
(exit $ac_status); } >/dev/null; then
3116
if test -s conftest.err; then
3117
ac_cpp_err=$ac_c_preproc_warn_flag
3124
if test -z "$ac_cpp_err"; then
3125
# Broken: success on invalid input.
3128
echo "$as_me: failed program was:" >&5
3129
cat conftest.$ac_ext >&5
3130
# Passes both tests.
3134
rm -f conftest.err conftest.$ac_ext
3137
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3138
rm -f conftest.err conftest.$ac_ext
3139
if $ac_preproc_ok; then
3142
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
3143
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
3144
{ (exit 1); exit 1; }; }
3148
ac_cpp='$CPP $CPPFLAGS'
3149
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3150
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3151
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3154
ac_cpp='$CXXCPP $CPPFLAGS'
3155
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3156
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3157
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3158
if test -n "$ac_tool_prefix"; then
3159
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3161
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3162
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3163
echo "$as_me:$LINENO: checking for $ac_word" >&5
3164
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3165
if test "${ac_cv_prog_CXX+set}" = set; then
3166
echo $ECHO_N "(cached) $ECHO_C" >&6
3168
if test -n "$CXX"; then
3169
ac_cv_prog_CXX="$CXX" # Let the user override the test.
3171
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175
test -z "$as_dir" && as_dir=.
3176
for ac_exec_ext in '' $ac_executable_extensions; do
3177
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3178
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3179
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3188
if test -n "$CXX"; then
3189
echo "$as_me:$LINENO: result: $CXX" >&5
3190
echo "${ECHO_T}$CXX" >&6
3192
echo "$as_me:$LINENO: result: no" >&5
3193
echo "${ECHO_T}no" >&6
3196
test -n "$CXX" && break
3199
if test -z "$CXX"; then
3201
for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3203
# Extract the first word of "$ac_prog", so it can be a program name with args.
3204
set dummy $ac_prog; ac_word=$2
3205
echo "$as_me:$LINENO: checking for $ac_word" >&5
3206
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3207
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3208
echo $ECHO_N "(cached) $ECHO_C" >&6
3210
if test -n "$ac_ct_CXX"; then
3211
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3213
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217
test -z "$as_dir" && as_dir=.
3218
for ac_exec_ext in '' $ac_executable_extensions; do
3219
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3220
ac_cv_prog_ac_ct_CXX="$ac_prog"
3221
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3229
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3230
if test -n "$ac_ct_CXX"; then
3231
echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3232
echo "${ECHO_T}$ac_ct_CXX" >&6
3234
echo "$as_me:$LINENO: result: no" >&5
3235
echo "${ECHO_T}no" >&6
3238
test -n "$ac_ct_CXX" && break
3240
test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3246
# Provide some information about the compiler.
3247
echo "$as_me:$LINENO:" \
3248
"checking for C++ compiler version" >&5
3249
ac_compiler=`set X $ac_compile; echo $2`
3250
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3251
(eval $ac_compiler --version </dev/null >&5) 2>&5
3253
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254
(exit $ac_status); }
3255
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3256
(eval $ac_compiler -v </dev/null >&5) 2>&5
3258
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3259
(exit $ac_status); }
3260
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3261
(eval $ac_compiler -V </dev/null >&5) 2>&5
3263
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264
(exit $ac_status); }
3266
echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3267
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3268
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3269
echo $ECHO_N "(cached) $ECHO_C" >&6
3271
cat >conftest.$ac_ext <<_ACEOF
3272
#line $LINENO "configure"
3273
#include "confdefs.h"
3275
#ifdef F77_DUMMY_MAIN
3279
int F77_DUMMY_MAIN() { return 1; }
3292
rm -f conftest.$ac_objext
3293
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3294
(eval $ac_compile) 2>&5
3296
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297
(exit $ac_status); } &&
3298
{ ac_try='test -s conftest.$ac_objext'
3299
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3302
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3303
(exit $ac_status); }; }; then
3306
echo "$as_me: failed program was:" >&5
3307
cat conftest.$ac_ext >&5
3310
rm -f conftest.$ac_objext conftest.$ac_ext
3311
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3314
echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3315
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3316
GXX=`test $ac_compiler_gnu = yes && echo yes`
3317
ac_test_CXXFLAGS=${CXXFLAGS+set}
3318
ac_save_CXXFLAGS=$CXXFLAGS
3320
echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3321
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3322
if test "${ac_cv_prog_cxx_g+set}" = set; then
3323
echo $ECHO_N "(cached) $ECHO_C" >&6
3325
cat >conftest.$ac_ext <<_ACEOF
3326
#line $LINENO "configure"
3327
#include "confdefs.h"
3329
#ifdef F77_DUMMY_MAIN
3333
int F77_DUMMY_MAIN() { return 1; }
3343
rm -f conftest.$ac_objext
3344
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3345
(eval $ac_compile) 2>&5
3347
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348
(exit $ac_status); } &&
3349
{ ac_try='test -s conftest.$ac_objext'
3350
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3353
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354
(exit $ac_status); }; }; then
3355
ac_cv_prog_cxx_g=yes
3357
echo "$as_me: failed program was:" >&5
3358
cat conftest.$ac_ext >&5
3361
rm -f conftest.$ac_objext conftest.$ac_ext
3363
echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3364
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3365
if test "$ac_test_CXXFLAGS" = set; then
3366
CXXFLAGS=$ac_save_CXXFLAGS
3367
elif test $ac_cv_prog_cxx_g = yes; then
3368
if test "$GXX" = yes; then
3374
if test "$GXX" = yes; then
3380
for ac_declaration in \
3382
'#include <stdlib.h>' \
3383
'extern "C" void std::exit (int) throw (); using std::exit;' \
3384
'extern "C" void std::exit (int); using std::exit;' \
3385
'extern "C" void exit (int) throw ();' \
3386
'extern "C" void exit (int);' \
3389
cat >conftest.$ac_ext <<_ACEOF
3390
#line $LINENO "configure"
3391
#include "confdefs.h"
3394
#ifdef F77_DUMMY_MAIN
3398
int F77_DUMMY_MAIN() { return 1; }
3408
rm -f conftest.$ac_objext
3409
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3410
(eval $ac_compile) 2>&5
3412
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413
(exit $ac_status); } &&
3414
{ ac_try='test -s conftest.$ac_objext'
3415
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3418
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3419
(exit $ac_status); }; }; then
3422
echo "$as_me: failed program was:" >&5
3423
cat conftest.$ac_ext >&5
3426
rm -f conftest.$ac_objext conftest.$ac_ext
3427
cat >conftest.$ac_ext <<_ACEOF
3428
#line $LINENO "configure"
3429
#include "confdefs.h"
3431
#ifdef F77_DUMMY_MAIN
3435
int F77_DUMMY_MAIN() { return 1; }
3445
rm -f conftest.$ac_objext
3446
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3447
(eval $ac_compile) 2>&5
3449
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450
(exit $ac_status); } &&
3451
{ ac_try='test -s conftest.$ac_objext'
3452
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456
(exit $ac_status); }; }; then
3459
echo "$as_me: failed program was:" >&5
3460
cat conftest.$ac_ext >&5
3462
rm -f conftest.$ac_objext conftest.$ac_ext
3465
if test -n "$ac_declaration"; then
3466
echo '#ifdef __cplusplus' >>confdefs.h
3467
echo $ac_declaration >>confdefs.h
3468
echo '#endif' >>confdefs.h
3472
ac_cpp='$CPP $CPPFLAGS'
3473
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3474
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3475
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3477
depcc="$CXX" am_compiler_list=
3479
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3480
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3481
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3482
echo $ECHO_N "(cached) $ECHO_C" >&6
3484
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3485
# We make a subdir and do the tests there. Otherwise we can end up
3486
# making bogus files that we don't know about and never remove. For
3487
# instance it was reported that on HP-UX the gcc test will end up
3488
# making a dummy file named `D' -- because `-MD' means `put the output
3491
# Copy depcomp to subdir because otherwise we won't find it if we're
3492
# using a relative directory.
3493
cp "$am_depcomp" conftest.dir
3496
am_cv_CXX_dependencies_compiler_type=none
3497
if test "$am_compiler_list" = ""; then
3498
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3500
for depmode in $am_compiler_list; do
3501
# We need to recreate these files for each test, as the compiler may
3502
# overwrite some of them when testing with obscure command lines.
3503
# This happens at least with the AIX C compiler.
3504
echo '#include "conftest.h"' > conftest.c
3505
echo 'int i;' > conftest.h
3506
echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
3510
# after this tag, mechanisms are not by side-effect, so they'll
3511
# only be used when explicitly requested
3512
if test "x$enable_dependency_tracking" = xyes; then
3520
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3521
# mode. It turns out that the SunPro C++ compiler does not properly
3522
# handle `-M -o', and we need to detect this.
3523
if depmode=$depmode \
3524
source=conftest.c object=conftest.o \
3525
depfile=conftest.Po tmpdepfile=conftest.TPo \
3526
$SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
3527
grep conftest.h conftest.Po > /dev/null 2>&1 &&
3528
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3529
am_cv_CXX_dependencies_compiler_type=$depmode
3537
am_cv_CXX_dependencies_compiler_type=none
3541
echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3542
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3543
CXXDEPMODE="depmode=$am_cv_CXX_dependencies_compiler_type"
3547
ac_cpp='$CXXCPP $CPPFLAGS'
3548
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3549
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3550
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3551
echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
3552
echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
3553
if test -z "$CXXCPP"; then
3554
if test "${ac_cv_prog_CXXCPP+set}" = set; then
3555
echo $ECHO_N "(cached) $ECHO_C" >&6
3557
# Double quotes because CXXCPP needs to be expanded
3558
for CXXCPP in "$CXX -E" "/lib/cpp"
3561
for ac_cxx_preproc_warn_flag in '' yes
3563
# Use a header file that comes with gcc, so configuring glibc
3564
# with a fresh cross-compiler works.
3565
# On the NeXT, cc -E runs the code through the compiler's parser,
3566
# not just through cpp. "Syntax error" is here to catch this case.
3567
cat >conftest.$ac_ext <<_ACEOF
3568
#line $LINENO "configure"
3569
#include "confdefs.h"
3573
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3574
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3576
egrep -v '^ *\+' conftest.er1 >conftest.err
3578
cat conftest.err >&5
3579
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3580
(exit $ac_status); } >/dev/null; then
3581
if test -s conftest.err; then
3582
ac_cpp_err=$ac_cxx_preproc_warn_flag
3589
if test -z "$ac_cpp_err"; then
3592
echo "$as_me: failed program was:" >&5
3593
cat conftest.$ac_ext >&5
3594
# Broken: fails on valid input.
3597
rm -f conftest.err conftest.$ac_ext
3599
# OK, works on sane cases. Now check whether non-existent headers
3600
# can be detected and how.
3601
cat >conftest.$ac_ext <<_ACEOF
3602
#line $LINENO "configure"
3603
#include "confdefs.h"
3604
#include <ac_nonexistent.h>
3606
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3607
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3609
egrep -v '^ *\+' conftest.er1 >conftest.err
3611
cat conftest.err >&5
3612
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613
(exit $ac_status); } >/dev/null; then
3614
if test -s conftest.err; then
3615
ac_cpp_err=$ac_cxx_preproc_warn_flag
3622
if test -z "$ac_cpp_err"; then
3623
# Broken: success on invalid input.
3626
echo "$as_me: failed program was:" >&5
3627
cat conftest.$ac_ext >&5
3628
# Passes both tests.
3632
rm -f conftest.err conftest.$ac_ext
3635
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3636
rm -f conftest.err conftest.$ac_ext
3637
if $ac_preproc_ok; then
3642
ac_cv_prog_CXXCPP=$CXXCPP
3645
CXXCPP=$ac_cv_prog_CXXCPP
3647
ac_cv_prog_CXXCPP=$CXXCPP
3649
echo "$as_me:$LINENO: result: $CXXCPP" >&5
3650
echo "${ECHO_T}$CXXCPP" >&6
3652
for ac_cxx_preproc_warn_flag in '' yes
3654
# Use a header file that comes with gcc, so configuring glibc
3655
# with a fresh cross-compiler works.
3656
# On the NeXT, cc -E runs the code through the compiler's parser,
3657
# not just through cpp. "Syntax error" is here to catch this case.
3658
cat >conftest.$ac_ext <<_ACEOF
3659
#line $LINENO "configure"
3660
#include "confdefs.h"
3664
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3665
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3667
egrep -v '^ *\+' conftest.er1 >conftest.err
3669
cat conftest.err >&5
3670
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3671
(exit $ac_status); } >/dev/null; then
3672
if test -s conftest.err; then
3673
ac_cpp_err=$ac_cxx_preproc_warn_flag
3680
if test -z "$ac_cpp_err"; then
3683
echo "$as_me: failed program was:" >&5
3684
cat conftest.$ac_ext >&5
3685
# Broken: fails on valid input.
3688
rm -f conftest.err conftest.$ac_ext
3690
# OK, works on sane cases. Now check whether non-existent headers
3691
# can be detected and how.
3692
cat >conftest.$ac_ext <<_ACEOF
3693
#line $LINENO "configure"
3694
#include "confdefs.h"
3695
#include <ac_nonexistent.h>
3697
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3698
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3700
egrep -v '^ *\+' conftest.er1 >conftest.err
3702
cat conftest.err >&5
3703
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704
(exit $ac_status); } >/dev/null; then
3705
if test -s conftest.err; then
3706
ac_cpp_err=$ac_cxx_preproc_warn_flag
3713
if test -z "$ac_cpp_err"; then
3714
# Broken: success on invalid input.
3717
echo "$as_me: failed program was:" >&5
3718
cat conftest.$ac_ext >&5
3719
# Passes both tests.
3723
rm -f conftest.err conftest.$ac_ext
3726
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3727
rm -f conftest.err conftest.$ac_ext
3728
if $ac_preproc_ok; then
3731
{ { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&5
3732
echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check" >&2;}
3733
{ (exit 1); exit 1; }; }
3737
ac_cpp='$CPP $CPPFLAGS'
3738
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3739
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3740
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3743
ac_cpp='$CXXCPP $CPPFLAGS'
3744
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3745
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3746
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3752
# moved below AC_PROG_CC so -g is preserved in $C[XX]FLAGS - 20020110 larsa
3753
if $BUILD_WITH_MSVC; then
3754
sim_ac_msvcrt_LDFLAGS=""
3755
sim_ac_msvcrt_LIBS=""
3758
# Check whether --with-msvcrt or --without-msvcrt was given.
3759
if test "${with_msvcrt+set}" = set; then
3760
withval="$with_msvcrt"
3761
case `echo "$withval" | tr "A-Z" "a-z"` in
3762
default | singlethread-static | ml | /ml | libc | libc\.lib )
3763
sim_ac_msvcrt=singlethread-static
3764
sim_ac_msvcrt_CFLAGS="/ML"
3765
sim_ac_msvcrt_CXXFLAGS="/ML"
3767
default-debug | singlethread-static-debug | mld | /mld | libcd | libcd\.lib )
3768
sim_ac_msvcrt=singlethread-static-debug
3769
sim_ac_msvcrt_CFLAGS="/MLd"
3770
sim_ac_msvcrt_CXXFLAGS="/MLd"
3772
multithread-static | mt | /mt | libcmt | libcmt\.lib )
3773
sim_ac_msvcrt=multithread-static
3774
sim_ac_msvcrt_CFLAGS="/MT"
3775
sim_ac_msvcrt_CXXFLAGS="/MT"
3777
multithread-static-debug | mtd | /mtd | libcmtd | libcmtd\.lib )
3778
sim_ac_msvcrt=multithread-static-debug
3779
sim_ac_msvcrt_CFLAGS="/MTd"
3780
sim_ac_msvcrt_CXXFLAGS="/MTd"
3782
multithread-dynamic | md | /md | msvcrt | msvcrt\.lib )
3783
sim_ac_msvcrt=multithread-dynamic
3784
sim_ac_msvcrt_CFLAGS="/MD"
3785
sim_ac_msvcrt_CXXFLAGS="/MD"
3787
multithread-dynamic-debug | mdd | /mdd | msvcrtd | msvcrtd\.lib )
3788
sim_ac_msvcrt=multithread-dynamic-debug
3789
sim_ac_msvcrt_CFLAGS="/MDd"
3790
sim_ac_msvcrt_CXXFLAGS="/MDd"
3797
: ${sim_ac_message_file=$ac_aux_dir/m4/errors.txt}
3798
if test -f $sim_ac_message_file; then
3799
sim_ac_message="`sed -n -e '/^!invalid-msvcrt$/,/^!/ { /^!/ d; p; }' <$sim_ac_message_file`"
3800
if test x"$sim_ac_message" = x""; then
3801
{ { echo "$as_me:$LINENO: error: no message named 'invalid-msvcrt' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" >&5
3802
echo "$as_me: error: no message named 'invalid-msvcrt' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" >&2;}
3803
{ (exit 1); exit 1; }; }
3805
eval "echo >&2 \"$sim_ac_message\""
3808
{ { echo "$as_me:$LINENO: error: file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" >&5
3809
echo "$as_me: error: file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" >&2;}
3810
{ (exit 1); exit 1; }; }
3816
{ { echo "$as_me:$LINENO: error: aborting" >&5
3817
echo "$as_me: error: aborting" >&2;}
3818
{ (exit 1); exit 1; }; }
3823
sim_ac_msvcrt=singlethread-static
3826
echo "$as_me:$LINENO: checking MSVC++ C library choice" >&5
3827
echo $ECHO_N "checking MSVC++ C library choice... $ECHO_C" >&6
3828
echo "$as_me:$LINENO: result: $sim_ac_msvcrt" >&5
3829
echo "${ECHO_T}$sim_ac_msvcrt" >&6
3832
CPPFLAGS="$CPPFLAGS $sim_ac_msvcrt_CPPFLAGS"
3833
CFLAGS="$CFLAGS $sim_ac_msvcrt_CFLAGS"
3834
CXXFLAGS="$CXXFLAGS $sim_ac_msvcrt_CXXFLAGS"
3835
LDFLAGS="$LDFLAGS $sim_ac_msvcrt_LDFLAGS"
3836
LIBS="$LIBS $sim_ac_msvcrt_LIBS"
3837
# sim_ac_msvcrt_LIBLIBS is set up at the end
3838
# sim_ac_msvcrt_LIBLDFLAGS is set up at the end
3839
LDFLAGS="$LDFLAGS $sim_ac_msvcrt_LIBLDFLAGS"
3840
LIBS="$LIBS $sim_ac_msvcrt_LIBLIBS"
3841
SOGUI_MSVC_LIBC=$sim_ac_msvcrt
3847
# Initialize libtool
3848
if $BUILD_WITH_MSVC; then
3856
if test x"$GCC" = x"yes"; then
3857
# FIXME: create a SIM_AC_CPP_OPTION macro
3862
ac_cpp='$CPP $CPPFLAGS'
3863
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3864
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3865
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3867
echo "$as_me:$LINENO: checking whether $CC accepts -no-cpp-precomp" >&5
3868
echo $ECHO_N "checking whether $CC accepts -no-cpp-precomp... $ECHO_C" >&6
3870
sim_ac_save_cppflags=$CPPFLAGS
3871
CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
3872
cat >conftest.$ac_ext <<_ACEOF
3873
#line $LINENO "configure"
3874
#include "confdefs.h"
3876
#ifdef F77_DUMMY_MAIN
3880
int F77_DUMMY_MAIN() { return 1; }
3890
rm -f conftest.$ac_objext
3891
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3892
(eval $ac_compile) 2>&5
3894
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895
(exit $ac_status); } &&
3896
{ ac_try='test -s conftest.$ac_objext'
3897
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3900
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3901
(exit $ac_status); }; }; then
3902
sim_ac_accept_result=yes
3904
echo "$as_me: failed program was:" >&5
3905
cat conftest.$ac_ext >&5
3906
sim_ac_accept_result=no
3908
rm -f conftest.$ac_objext conftest.$ac_ext
3909
echo "$as_me:$LINENO: result: $sim_ac_accept_result" >&5
3910
echo "${ECHO_T}$sim_ac_accept_result" >&6
3911
CPPFLAGS=$sim_ac_save_cppflags
3912
# This need to go last, in case CPPFLAGS is modified in CPPFLAGS="$CPPFLAGS -no-cpp-precomp" or .
3913
if test $sim_ac_accept_result = yes; then
3914
CPPFLAGS="$CPPFLAGS -no-cpp-precomp"
3920
ac_cpp='$CXXCPP $CPPFLAGS'
3921
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3922
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3923
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3931
# Check whether --enable-shared or --disable-shared was given.
3932
if test "${enable_shared+set}" = set; then
3933
enableval="$enable_shared"
3934
p=${PACKAGE-default}
3936
yes) enable_shared=yes ;;
3937
no) enable_shared=no ;;
3940
# Look at the argument we got. We use all the common list separators.
3941
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3942
for pkg in $enableval; do
3943
if test "X$pkg" = "X$p"; then
3953
# Check whether --enable-fast-install or --disable-fast-install was given.
3954
if test "${enable_fast_install+set}" = set; then
3955
enableval="$enable_fast_install"
3956
p=${PACKAGE-default}
3958
yes) enable_fast_install=yes ;;
3959
no) enable_fast_install=no ;;
3961
enable_fast_install=no
3962
# Look at the argument we got. We use all the common list separators.
3963
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3964
for pkg in $enableval; do
3965
if test "X$pkg" = "X$p"; then
3966
enable_fast_install=yes
3973
enable_fast_install=yes
3975
# Find the correct PATH separator. Usually this is `:', but
3976
# DJGPP uses `;' like DOS.
3977
if test "X${PATH_SEPARATOR+set}" != Xset; then
3978
UNAME=${UNAME-`uname 2>/dev/null`}
3980
*-DOS) lt_cv_sys_path_separator=';' ;;
3981
*) lt_cv_sys_path_separator=':' ;;
3983
PATH_SEPARATOR=$lt_cv_sys_path_separator
3987
# Check whether --with-gnu-ld or --without-gnu-ld was given.
3988
if test "${with_gnu_ld+set}" = set; then
3989
withval="$with_gnu_ld"
3990
test "$withval" = no || with_gnu_ld=yes
3995
if test "$GCC" = yes; then
3996
# Check if gcc -print-prog-name=ld gives a path.
3997
echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3998
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
4001
# gcc leaves a trailing carriage return which upsets mingw
4002
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4004
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4007
# Accept absolute paths.
4008
[\\/]* | [A-Za-z]:[\\/]*)
4009
re_direlt='/[^/][^/]*/\.\./'
4010
# Canonicalize the path of ld
4011
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
4012
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4013
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
4015
test -z "$LD" && LD="$ac_prog"
4018
# If it fails, then pretend we aren't using GCC.
4022
# If it is relative, then search for the first ld in PATH.
4026
elif test "$with_gnu_ld" = yes; then
4027
echo "$as_me:$LINENO: checking for GNU ld" >&5
4028
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4030
echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4031
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4033
if test "${lt_cv_path_LD+set}" = set; then
4034
echo $ECHO_N "(cached) $ECHO_C" >&6
4036
if test -z "$LD"; then
4037
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4038
for ac_dir in $PATH; do
4039
test -z "$ac_dir" && ac_dir=.
4040
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4041
lt_cv_path_LD="$ac_dir/$ac_prog"
4042
# Check to see if the program is GNU ld. I'd rather use --version,
4043
# but apparently some GNU ld's only accept -v.
4044
# Break only if it was the GNU/non-GNU ld that we prefer.
4045
if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
4046
test "$with_gnu_ld" != no && break
4048
test "$with_gnu_ld" != yes && break
4054
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4059
if test -n "$LD"; then
4060
echo "$as_me:$LINENO: result: $LD" >&5
4061
echo "${ECHO_T}$LD" >&6
4063
echo "$as_me:$LINENO: result: no" >&5
4064
echo "${ECHO_T}no" >&6
4066
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4067
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4068
{ (exit 1); exit 1; }; }
4069
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4070
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4071
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4072
echo $ECHO_N "(cached) $ECHO_C" >&6
4074
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
4075
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
4076
lt_cv_prog_gnu_ld=yes
4078
lt_cv_prog_gnu_ld=no
4081
echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4082
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4083
with_gnu_ld=$lt_cv_prog_gnu_ld
4086
echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4087
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4088
if test "${lt_cv_ld_reload_flag+set}" = set; then
4089
echo $ECHO_N "(cached) $ECHO_C" >&6
4091
lt_cv_ld_reload_flag='-r'
4093
echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4094
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4095
reload_flag=$lt_cv_ld_reload_flag
4096
test -n "$reload_flag" && reload_flag=" $reload_flag"
4098
echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4099
echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4100
if test "${lt_cv_path_NM+set}" = set; then
4101
echo $ECHO_N "(cached) $ECHO_C" >&6
4103
if test -n "$NM"; then
4104
# Let the user override the test.
4107
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4108
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4109
test -z "$ac_dir" && ac_dir=.
4110
tmp_nm=$ac_dir/${ac_tool_prefix}nm
4111
if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
4112
# Check to see if the nm accepts a BSD-compat flag.
4113
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4114
# nm: unknown option "B" ignored
4115
# Tru64's nm complains that /dev/null is an invalid object file
4116
if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
4117
lt_cv_path_NM="$tmp_nm -B"
4119
elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
4120
lt_cv_path_NM="$tmp_nm -p"
4123
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4124
continue # so that we can try to find one that supports BSD flags
4129
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4134
echo "$as_me:$LINENO: result: $NM" >&5
4135
echo "${ECHO_T}$NM" >&6
4137
echo "$as_me:$LINENO: checking whether ln -s works" >&5
4138
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4140
if test "$LN_S" = "ln -s"; then
4141
echo "$as_me:$LINENO: result: yes" >&5
4142
echo "${ECHO_T}yes" >&6
4144
echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4145
echo "${ECHO_T}no, using $LN_S" >&6
4148
echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
4149
echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
4150
if test "${lt_cv_deplibs_check_method+set}" = set; then
4151
echo $ECHO_N "(cached) $ECHO_C" >&6
4153
lt_cv_file_magic_cmd='$MAGIC_CMD'
4154
lt_cv_file_magic_test_file=
4155
lt_cv_deplibs_check_method='unknown'
4156
# Need to set the preceding variable on all platforms that support
4157
# interlibrary dependencies.
4158
# 'none' -- dependencies not supported.
4159
# `unknown' -- same as none, but documents that we really don't know.
4160
# 'pass_all' -- all dependencies passed with no checks.
4161
# 'test_compile' -- check by making test program.
4162
# 'file_magic [[regex]]' -- check by looking for files in library path
4163
# which responds to the $file_magic_cmd with a given egrep regex.
4164
# If you have `file' or equivalent on your system and you're not sure
4165
# whether `pass_all' will *always* work, you probably want this one.
4169
lt_cv_deplibs_check_method=pass_all
4173
lt_cv_deplibs_check_method=pass_all
4177
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4178
lt_cv_file_magic_cmd='/usr/bin/file -L'
4179
lt_cv_file_magic_test_file=/shlib/libc.so
4182
cygwin* | mingw* | pw32*)
4183
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4184
lt_cv_file_magic_cmd='$OBJDUMP -f'
4187
darwin* | rhapsody*)
4188
lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4189
lt_cv_file_magic_cmd='/usr/bin/file -L'
4191
rhapsody* | darwin1.[012])
4192
lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
4195
lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4201
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4204
# Not sure whether the presence of OpenBSD here was a mistake.
4205
# Let's accept both of them until this is cleared up.
4206
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4207
lt_cv_file_magic_cmd=/usr/bin/file
4208
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4212
lt_cv_deplibs_check_method=pass_all
4217
lt_cv_deplibs_check_method=pass_all
4221
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4222
lt_cv_file_magic_cmd=/usr/bin/file
4223
lt_cv_file_magic_test_file=/usr/lib/libc.sl
4229
# this will be overridden with pass_all, but let us keep it just in case
4230
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4234
*-32|*"-32 ") libmagic=32-bit;;
4235
*-n32|*"-n32 ") libmagic=N32;;
4236
*-64|*"-64 ") libmagic=64-bit;;
4237
*) libmagic=never-match;;
4239
# this will be overridden with pass_all, but let us keep it just in case
4240
lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4243
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4244
lt_cv_deplibs_check_method=pass_all
4247
# This must be Linux ELF.
4250
alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
4251
lt_cv_deplibs_check_method=pass_all ;;
4253
# glibc up to 2.1.1 does not perform some relocations on ARM
4254
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4256
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4260
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4261
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
4263
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
4268
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4269
lt_cv_file_magic_cmd=/usr/bin/file
4270
lt_cv_file_magic_test_file=/usr/lib/libnls.so
4274
lt_cv_file_magic_cmd=/usr/bin/file
4275
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4276
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4277
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4279
lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4283
osf3* | osf4* | osf5*)
4284
# this will be overridden with pass_all, but let us keep it just in case
4285
lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4286
lt_cv_file_magic_test_file=/shlib/libc.so
4287
lt_cv_deplibs_check_method=pass_all
4291
lt_cv_deplibs_check_method=pass_all
4295
lt_cv_deplibs_check_method=pass_all
4296
lt_cv_file_magic_test_file=/lib/libc.so
4299
sysv5uw[78]* | sysv4*uw2*)
4300
lt_cv_deplibs_check_method=pass_all
4303
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4304
case $host_vendor in
4306
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
4307
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4310
lt_cv_deplibs_check_method=pass_all
4313
lt_cv_file_magic_cmd='/bin/file'
4314
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4317
lt_cv_file_magic_cmd='/bin/file'
4318
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4319
lt_cv_file_magic_test_file=/lib/libc.so
4326
echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4327
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4328
file_magic_cmd=$lt_cv_file_magic_cmd
4329
deplibs_check_method=$lt_cv_deplibs_check_method
4335
# Check for command to grab the raw symbol name followed by C symbol from nm.
4336
echo "$as_me:$LINENO: checking command to parse $NM output" >&5
4337
echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
4338
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4339
echo $ECHO_N "(cached) $ECHO_C" >&6
4342
# These are sane defaults that work on at least a few old systems.
4343
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
4345
# Character class describing NM global symbol codes.
4346
symcode='[BCDEGRST]'
4348
# Regexp to match symbols that can be accessed directly from C.
4349
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4351
# Transform the above into a raw symbol and a C symbol.
4352
symxfrm='\1 \2\3 \3'
4354
# Transform an extracted symbol line into a proper C declaration
4355
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
4357
# Transform an extracted symbol line into symbol name and symbol address
4358
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4360
# Define system-specific variables.
4365
cygwin* | mingw* | pw32*)
4366
symcode='[ABCDGISTW]'
4368
hpux*) # Its linker distinguishes data from code symbols
4369
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4370
lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4373
symcode='[BCDEGRST]'
4383
# Handle CRLF in mingw tool chain
4387
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4391
# If we're using GNU nm, then use its standard symbol codes.
4392
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
4393
symcode='[ABCDGISTW]'
4396
# Try without a prefix undercore, then with it.
4397
for ac_symprfx in "" "_"; do
4399
# Write the raw and C identifiers.
4400
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4402
# Check to see that the pipe works correctly.
4405
cat > conftest.$ac_ext <<EOF
4410
void nm_test_func(){}
4414
int main(){nm_test_var='a';nm_test_func();return(0);}
4417
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4418
(eval $ac_compile) 2>&5
4420
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421
(exit $ac_status); }; then
4422
# Now try to grab the symbols.
4424
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4425
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4427
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428
(exit $ac_status); } && test -s "$nlist"; then
4429
# Try sorting and uniquifying the output.
4430
if sort "$nlist" | uniq > "$nlist"T; then
4431
mv -f "$nlist"T "$nlist"
4436
# Make sure that we snagged all the symbols we need.
4437
if egrep ' nm_test_var$' "$nlist" >/dev/null; then
4438
if egrep ' nm_test_func$' "$nlist" >/dev/null; then
4439
cat <<EOF > conftest.$ac_ext
4445
# Now generate the symbol file.
4446
eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4448
cat <<EOF >> conftest.$ac_ext
4449
#if defined (__STDC__) && __STDC__
4450
# define lt_ptr void *
4452
# define lt_ptr char *
4456
/* The mapping between symbol names and symbols. */
4461
lt_preloaded_symbols[] =
4464
sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4465
cat <<\EOF >> conftest.$ac_ext
4473
# Now try linking the two files.
4474
mv conftest.$ac_objext conftstm.$ac_objext
4476
save_CFLAGS="$CFLAGS"
4477
LIBS="conftstm.$ac_objext"
4478
CFLAGS="$CFLAGS$no_builtin_flag"
4479
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4480
(eval $ac_link) 2>&5
4482
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483
(exit $ac_status); } && test -s conftest; then
4487
CFLAGS="$save_CFLAGS"
4489
echo "cannot find nm_test_func in $nlist" >&5
4492
echo "cannot find nm_test_var in $nlist" >&5
4495
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4498
echo "$progname: failed program was:" >&5
4499
cat conftest.$ac_ext >&5
4501
rm -f conftest* conftst*
4503
# Do not use the global_symbol_pipe unless it works.
4504
if test "$pipe_works" = yes; then
4507
lt_cv_sys_global_symbol_pipe=
4513
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4514
if test -z "$lt_cv_sys_global_symbol_pipe"; then
4515
global_symbol_to_cdecl=
4516
global_symbol_to_c_name_address=
4518
global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4519
global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4521
if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4523
echo "$as_me:$LINENO: result: failed" >&5
4524
echo "${ECHO_T}failed" >&6
4526
echo "$as_me:$LINENO: result: ok" >&5
4527
echo "${ECHO_T}ok" >&6
4532
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4533
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4534
if test "${ac_cv_header_stdc+set}" = set; then
4535
echo $ECHO_N "(cached) $ECHO_C" >&6
4537
cat >conftest.$ac_ext <<_ACEOF
4538
#line $LINENO "configure"
4539
#include "confdefs.h"
4546
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4547
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4549
egrep -v '^ *\+' conftest.er1 >conftest.err
4551
cat conftest.err >&5
4552
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553
(exit $ac_status); } >/dev/null; then
4554
if test -s conftest.err; then
4555
ac_cpp_err=$ac_cxx_preproc_warn_flag
4562
if test -z "$ac_cpp_err"; then
4563
ac_cv_header_stdc=yes
4565
echo "$as_me: failed program was:" >&5
4566
cat conftest.$ac_ext >&5
4567
ac_cv_header_stdc=no
4569
rm -f conftest.err conftest.$ac_ext
4571
if test $ac_cv_header_stdc = yes; then
4572
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4573
cat >conftest.$ac_ext <<_ACEOF
4574
#line $LINENO "configure"
4575
#include "confdefs.h"
4579
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4580
egrep "memchr" >/dev/null 2>&1; then
4583
ac_cv_header_stdc=no
4589
if test $ac_cv_header_stdc = yes; then
4590
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4591
cat >conftest.$ac_ext <<_ACEOF
4592
#line $LINENO "configure"
4593
#include "confdefs.h"
4597
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4598
egrep "free" >/dev/null 2>&1; then
4601
ac_cv_header_stdc=no
4607
if test $ac_cv_header_stdc = yes; then
4608
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4609
if test "$cross_compiling" = yes; then
4612
cat >conftest.$ac_ext <<_ACEOF
4613
#line $LINENO "configure"
4614
#include "confdefs.h"
4616
#if ((' ' & 0x0FF) == 0x020)
4617
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4618
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4620
# define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
4621
|| ('j' <= (c) && (c) <= 'r') \
4622
|| ('s' <= (c) && (c) <= 'z'))
4623
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4626
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4631
for (i = 0; i < 256; i++)
4632
if (XOR (islower (i), ISLOWER (i))
4633
|| toupper (i) != TOUPPER (i))
4638
rm -f conftest$ac_exeext
4639
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4640
(eval $ac_link) 2>&5
4642
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4644
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4647
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648
(exit $ac_status); }; }; then
4651
echo "$as_me: program exited with status $ac_status" >&5
4652
echo "$as_me: failed program was:" >&5
4653
cat conftest.$ac_ext >&5
4655
ac_cv_header_stdc=no
4657
rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4661
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4662
echo "${ECHO_T}$ac_cv_header_stdc" >&6
4663
if test $ac_cv_header_stdc = yes; then
4665
cat >>confdefs.h <<\_ACEOF
4666
#define STDC_HEADERS 1
4671
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4681
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4682
inttypes.h stdint.h unistd.h
4684
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4685
echo "$as_me:$LINENO: checking for $ac_header" >&5
4686
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4687
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4688
echo $ECHO_N "(cached) $ECHO_C" >&6
4690
cat >conftest.$ac_ext <<_ACEOF
4691
#line $LINENO "configure"
4692
#include "confdefs.h"
4693
$ac_includes_default
4695
#include <$ac_header>
4697
rm -f conftest.$ac_objext
4698
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4699
(eval $ac_compile) 2>&5
4701
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4702
(exit $ac_status); } &&
4703
{ ac_try='test -s conftest.$ac_objext'
4704
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4707
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708
(exit $ac_status); }; }; then
4709
eval "$as_ac_Header=yes"
4711
echo "$as_me: failed program was:" >&5
4712
cat conftest.$ac_ext >&5
4713
eval "$as_ac_Header=no"
4715
rm -f conftest.$ac_objext conftest.$ac_ext
4717
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4718
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4719
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4720
cat >>confdefs.h <<_ACEOF
4721
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4730
for ac_header in dlfcn.h
4732
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4733
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4734
echo "$as_me:$LINENO: checking for $ac_header" >&5
4735
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4736
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4737
echo $ECHO_N "(cached) $ECHO_C" >&6
4739
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4740
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4742
# Is the header compilable?
4743
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4744
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4745
cat >conftest.$ac_ext <<_ACEOF
4746
#line $LINENO "configure"
4747
#include "confdefs.h"
4748
$ac_includes_default
4749
#include <$ac_header>
4751
rm -f conftest.$ac_objext
4752
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4753
(eval $ac_compile) 2>&5
4755
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756
(exit $ac_status); } &&
4757
{ ac_try='test -s conftest.$ac_objext'
4758
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4761
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762
(exit $ac_status); }; }; then
4763
ac_header_compiler=yes
4765
echo "$as_me: failed program was:" >&5
4766
cat conftest.$ac_ext >&5
4767
ac_header_compiler=no
4769
rm -f conftest.$ac_objext conftest.$ac_ext
4770
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4771
echo "${ECHO_T}$ac_header_compiler" >&6
4773
# Is the header present?
4774
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4775
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4776
cat >conftest.$ac_ext <<_ACEOF
4777
#line $LINENO "configure"
4778
#include "confdefs.h"
4779
#include <$ac_header>
4781
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4782
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4784
egrep -v '^ *\+' conftest.er1 >conftest.err
4786
cat conftest.err >&5
4787
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788
(exit $ac_status); } >/dev/null; then
4789
if test -s conftest.err; then
4790
ac_cpp_err=$ac_cxx_preproc_warn_flag
4797
if test -z "$ac_cpp_err"; then
4798
ac_header_preproc=yes
4800
echo "$as_me: failed program was:" >&5
4801
cat conftest.$ac_ext >&5
4802
ac_header_preproc=no
4804
rm -f conftest.err conftest.$ac_ext
4805
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4806
echo "${ECHO_T}$ac_header_preproc" >&6
4808
# So? What about this header?
4809
case $ac_header_compiler:$ac_header_preproc in
4811
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4812
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4813
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4814
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4816
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4817
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4818
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4819
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4820
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4821
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4823
echo "$as_me:$LINENO: checking for $ac_header" >&5
4824
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4825
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4826
echo $ECHO_N "(cached) $ECHO_C" >&6
4828
eval "$as_ac_Header=$ac_header_preproc"
4830
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4831
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4834
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4835
cat >>confdefs.h <<_ACEOF
4836
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4847
# Only perform the check for file, if the check method requires it
4848
case $deplibs_check_method in
4850
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4851
echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4852
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4853
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4854
echo $ECHO_N "(cached) $ECHO_C" >&6
4858
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4861
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4864
ac_save_MAGIC_CMD="$MAGIC_CMD"
4865
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4866
ac_dummy="/usr/bin:$PATH"
4867
for ac_dir in $ac_dummy; do
4868
test -z "$ac_dir" && ac_dir=.
4869
if test -f $ac_dir/${ac_tool_prefix}file; then
4870
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4871
if test -n "$file_magic_test_file"; then
4872
case $deplibs_check_method in
4874
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4875
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4876
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4877
egrep "$file_magic_regex" > /dev/null; then
4882
*** Warning: the command libtool uses to detect shared libraries,
4883
*** $file_magic_cmd, produces output that libtool cannot recognize.
4884
*** The result is that libtool may fail to recognize shared libraries
4885
*** as such. This will affect the creation of libtool libraries that
4886
*** depend on shared libraries, but programs linked with such libtool
4887
*** libraries will work regardless of this problem. Nevertheless, you
4888
*** may want to report the problem to your system manager and/or to
4889
*** bug-libtool@gnu.org
4899
MAGIC_CMD="$ac_save_MAGIC_CMD"
4904
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4905
if test -n "$MAGIC_CMD"; then
4906
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4907
echo "${ECHO_T}$MAGIC_CMD" >&6
4909
echo "$as_me:$LINENO: result: no" >&5
4910
echo "${ECHO_T}no" >&6
4913
if test -z "$lt_cv_path_MAGIC_CMD"; then
4914
if test -n "$ac_tool_prefix"; then
4915
echo "$as_me:$LINENO: checking for file" >&5
4916
echo $ECHO_N "checking for file... $ECHO_C" >&6
4917
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4918
echo $ECHO_N "(cached) $ECHO_C" >&6
4922
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4925
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4928
ac_save_MAGIC_CMD="$MAGIC_CMD"
4929
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4930
ac_dummy="/usr/bin:$PATH"
4931
for ac_dir in $ac_dummy; do
4932
test -z "$ac_dir" && ac_dir=.
4933
if test -f $ac_dir/file; then
4934
lt_cv_path_MAGIC_CMD="$ac_dir/file"
4935
if test -n "$file_magic_test_file"; then
4936
case $deplibs_check_method in
4938
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4939
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4940
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4941
egrep "$file_magic_regex" > /dev/null; then
4946
*** Warning: the command libtool uses to detect shared libraries,
4947
*** $file_magic_cmd, produces output that libtool cannot recognize.
4948
*** The result is that libtool may fail to recognize shared libraries
4949
*** as such. This will affect the creation of libtool libraries that
4950
*** depend on shared libraries, but programs linked with such libtool
4951
*** libraries will work regardless of this problem. Nevertheless, you
4952
*** may want to report the problem to your system manager and/or to
4953
*** bug-libtool@gnu.org
4963
MAGIC_CMD="$ac_save_MAGIC_CMD"
4968
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4969
if test -n "$MAGIC_CMD"; then
4970
echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4971
echo "${ECHO_T}$MAGIC_CMD" >&6
4973
echo "$as_me:$LINENO: result: no" >&5
4974
echo "${ECHO_T}no" >&6
4986
if test -n "$ac_tool_prefix"; then
4987
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4988
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4989
echo "$as_me:$LINENO: checking for $ac_word" >&5
4990
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4991
if test "${ac_cv_prog_RANLIB+set}" = set; then
4992
echo $ECHO_N "(cached) $ECHO_C" >&6
4994
if test -n "$RANLIB"; then
4995
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4997
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5001
test -z "$as_dir" && as_dir=.
5002
for ac_exec_ext in '' $ac_executable_extensions; do
5003
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5004
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5005
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5013
RANLIB=$ac_cv_prog_RANLIB
5014
if test -n "$RANLIB"; then
5015
echo "$as_me:$LINENO: result: $RANLIB" >&5
5016
echo "${ECHO_T}$RANLIB" >&6
5018
echo "$as_me:$LINENO: result: no" >&5
5019
echo "${ECHO_T}no" >&6
5023
if test -z "$ac_cv_prog_RANLIB"; then
5024
ac_ct_RANLIB=$RANLIB
5025
# Extract the first word of "ranlib", so it can be a program name with args.
5026
set dummy ranlib; ac_word=$2
5027
echo "$as_me:$LINENO: checking for $ac_word" >&5
5028
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5029
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5030
echo $ECHO_N "(cached) $ECHO_C" >&6
5032
if test -n "$ac_ct_RANLIB"; then
5033
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5035
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039
test -z "$as_dir" && as_dir=.
5040
for ac_exec_ext in '' $ac_executable_extensions; do
5041
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5042
ac_cv_prog_ac_ct_RANLIB="ranlib"
5043
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5049
test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5052
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5053
if test -n "$ac_ct_RANLIB"; then
5054
echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5055
echo "${ECHO_T}$ac_ct_RANLIB" >&6
5057
echo "$as_me:$LINENO: result: no" >&5
5058
echo "${ECHO_T}no" >&6
5061
RANLIB=$ac_ct_RANLIB
5063
RANLIB="$ac_cv_prog_RANLIB"
5066
if test -n "$ac_tool_prefix"; then
5067
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5068
set dummy ${ac_tool_prefix}strip; ac_word=$2
5069
echo "$as_me:$LINENO: checking for $ac_word" >&5
5070
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5071
if test "${ac_cv_prog_STRIP+set}" = set; then
5072
echo $ECHO_N "(cached) $ECHO_C" >&6
5074
if test -n "$STRIP"; then
5075
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5077
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081
test -z "$as_dir" && as_dir=.
5082
for ac_exec_ext in '' $ac_executable_extensions; do
5083
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5084
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5085
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5093
STRIP=$ac_cv_prog_STRIP
5094
if test -n "$STRIP"; then
5095
echo "$as_me:$LINENO: result: $STRIP" >&5
5096
echo "${ECHO_T}$STRIP" >&6
5098
echo "$as_me:$LINENO: result: no" >&5
5099
echo "${ECHO_T}no" >&6
5103
if test -z "$ac_cv_prog_STRIP"; then
5105
# Extract the first word of "strip", so it can be a program name with args.
5106
set dummy strip; ac_word=$2
5107
echo "$as_me:$LINENO: checking for $ac_word" >&5
5108
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5109
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5110
echo $ECHO_N "(cached) $ECHO_C" >&6
5112
if test -n "$ac_ct_STRIP"; then
5113
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5115
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119
test -z "$as_dir" && as_dir=.
5120
for ac_exec_ext in '' $ac_executable_extensions; do
5121
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5122
ac_cv_prog_ac_ct_STRIP="strip"
5123
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5129
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5132
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5133
if test -n "$ac_ct_STRIP"; then
5134
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5135
echo "${ECHO_T}$ac_ct_STRIP" >&6
5137
echo "$as_me:$LINENO: result: no" >&5
5138
echo "${ECHO_T}no" >&6
5143
STRIP="$ac_cv_prog_STRIP"
5150
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5151
if test "${enable_libtool_lock+set}" = set; then
5152
enableval="$enable_libtool_lock"
5155
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5157
# Some flags need to be propagated to the compiler or linker for good
5161
# Find out which ABI we are using.
5162
echo '#line 5162 "configure"' > conftest.$ac_ext
5163
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5164
(eval $ac_compile) 2>&5
5166
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167
(exit $ac_status); }; then
5168
case `/usr/bin/file conftest.$ac_objext` in
5184
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
5185
SAVE_CFLAGS="$CFLAGS"
5186
CFLAGS="$CFLAGS -belf"
5187
echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5188
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
5189
if test "${lt_cv_cc_needs_belf+set}" = set; then
5190
echo $ECHO_N "(cached) $ECHO_C" >&6
5195
ac_cpp='$CPP $CPPFLAGS'
5196
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5197
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5198
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5200
cat >conftest.$ac_ext <<_ACEOF
5201
#line $LINENO "configure"
5202
#include "confdefs.h"
5204
#ifdef F77_DUMMY_MAIN
5208
int F77_DUMMY_MAIN() { return 1; }
5218
rm -f conftest.$ac_objext conftest$ac_exeext
5219
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5220
(eval $ac_link) 2>&5
5222
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223
(exit $ac_status); } &&
5224
{ ac_try='test -s conftest$ac_exeext'
5225
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5228
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229
(exit $ac_status); }; }; then
5230
lt_cv_cc_needs_belf=yes
5232
echo "$as_me: failed program was:" >&5
5233
cat conftest.$ac_ext >&5
5234
lt_cv_cc_needs_belf=no
5236
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5238
ac_cpp='$CXXCPP $CPPFLAGS'
5239
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5240
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5241
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5244
echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5245
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
5246
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5247
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5248
CFLAGS="$SAVE_CFLAGS"
5255
# Sed substitution that helps us do robust quoting. It backslashifies
5256
# metacharacters that are still active within double-quoted strings.
5257
Xsed='sed -e s/^X//'
5258
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5260
# Same as above, but do not quote variable references.
5261
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5263
# Sed substitution to delay expansion of an escaped shell variable in a
5264
# double_quote_subst'ed string.
5265
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5271
default_ofile=libtool
5272
can_build_shared=yes
5274
# All known linkers require a `.a' archive for static linking (except M$VC,
5275
# which needs '.lib').
5277
ltmain="$ac_aux_dir/ltmain.sh"
5278
ofile="$default_ofile"
5279
with_gnu_ld="$lt_cv_prog_gnu_ld"
5280
need_locks="$enable_libtool_lock"
5283
old_CFLAGS="$CFLAGS"
5285
# Set sane defaults for various variables
5286
test -z "$AR" && AR=ar
5287
test -z "$AR_FLAGS" && AR_FLAGS=cru
5288
test -z "$AS" && AS=as
5289
test -z "$CC" && CC=cc
5290
test -z "$DLLTOOL" && DLLTOOL=dlltool
5291
test -z "$LD" && LD=ld
5292
test -z "$LN_S" && LN_S="ln -s"
5293
test -z "$MAGIC_CMD" && MAGIC_CMD=file
5294
test -z "$NM" && NM=nm
5295
test -z "$OBJDUMP" && OBJDUMP=objdump
5296
test -z "$RANLIB" && RANLIB=:
5297
test -z "$STRIP" && STRIP=:
5298
test -z "$ac_objext" && ac_objext=o
5300
if test x"$host" != x"$build"; then
5301
ac_tool_prefix=${host_alias}-
5306
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5309
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5314
# AIX sometimes has problems with the GCC collect2 program. For some
5315
# reason, if we set the COLLECT_NAMES environment variable, the problems
5316
# vanish in a puff of smoke.
5317
if test "X${COLLECT_NAMES+set}" != Xset; then
5319
export COLLECT_NAMES
5324
# Determine commands to create old-style static archives.
5325
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5326
old_postinstall_cmds='chmod 644 $oldlib'
5327
old_postuninstall_cmds=
5329
if test -n "$RANLIB"; then
5332
old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5335
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5338
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5341
# Allow CC to be a program name with arguments.
5345
echo "$as_me:$LINENO: checking for objdir" >&5
5346
echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5347
rm -f .libs 2>/dev/null
5348
mkdir .libs 2>/dev/null
5349
if test -d .libs; then
5352
# MS-DOS does not allow filenames that begin with a dot.
5355
rmdir .libs 2>/dev/null
5356
echo "$as_me:$LINENO: result: $objdir" >&5
5357
echo "${ECHO_T}$objdir" >&6
5361
# Check whether --with-pic or --without-pic was given.
5362
if test "${with_pic+set}" = set; then
5368
test -z "$pic_mode" && pic_mode=default
5370
# We assume here that the value for lt_cv_prog_cc_pic will not be cached
5371
# in isolation, and that seeing it set (from the cache) indicates that
5372
# the associated values are set (in the cache) correctly too.
5373
echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5374
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5375
if test "${lt_cv_prog_cc_pic+set}" = set; then
5376
echo $ECHO_N "(cached) $ECHO_C" >&6
5379
lt_cv_prog_cc_shlib=
5381
lt_cv_prog_cc_static=
5382
lt_cv_prog_cc_no_builtin=
5383
lt_cv_prog_cc_can_build_shared=$can_build_shared
5385
if test "$GCC" = yes; then
5386
lt_cv_prog_cc_wl='-Wl,'
5387
lt_cv_prog_cc_static='-static'
5391
# Below there is a dirty hack to force normal static linking with -ldl
5392
# The problem is because libdl dynamically linked with both libc and
5393
# libC (AIX C++ library), which obviously doesn't included in libraries
5394
# list by gcc. This cause undefined symbols with -static flags.
5395
# This hack allows C programs to be linked with "-static -ldl", but
5396
# not sure about C++ programs.
5397
lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5400
# FIXME: we need at least 68020 code to build shared libraries, but
5401
# adding the `-m68020' flag to GCC prevents building anything better,
5403
lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5405
beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
5406
# PIC is the default for these OSes.
5408
darwin* | rhapsody*)
5409
# PIC is the default on this platform
5410
# Common symbols not allowed in MH_DYLIB files
5411
lt_cv_prog_cc_pic='-fno-common'
5413
cygwin* | mingw* | pw32* | os2*)
5414
# This hack is so that the source file can tell whether it is being
5415
# built for inclusion in a dll (and should export symbols for example).
5416
lt_cv_prog_cc_pic='-DDLL_EXPORT'
5419
if test -d /usr/nec; then
5420
lt_cv_prog_cc_pic=-Kconform_pic
5424
lt_cv_prog_cc_pic='-fPIC'
5428
# PORTME Check for PIC flags for the system compiler.
5430
aix3* | aix4* | aix5*)
5431
lt_cv_prog_cc_wl='-Wl,'
5432
# All AIX code is PIC.
5433
if test "$host_cpu" = ia64; then
5434
# AIX 5 now supports IA64 processor
5435
lt_cv_prog_cc_static='-Bstatic'
5437
lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5441
hpux9* | hpux10* | hpux11*)
5442
# Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5443
lt_cv_prog_cc_wl='-Wl,'
5444
lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5445
lt_cv_prog_cc_pic='+Z'
5449
lt_cv_prog_cc_wl='-Wl,'
5450
lt_cv_prog_cc_static='-non_shared'
5451
# PIC (with -KPIC) is the default.
5454
cygwin* | mingw* | pw32* | os2*)
5455
# This hack is so that the source file can tell whether it is being
5456
# built for inclusion in a dll (and should export symbols for example).
5457
lt_cv_prog_cc_pic='-DDLL_EXPORT'
5461
lt_cv_prog_cc_pic='-KPIC'
5462
lt_cv_prog_cc_static='-Bstatic'
5465
osf3* | osf4* | osf5*)
5466
# All OSF/1 code is PIC.
5467
lt_cv_prog_cc_wl='-Wl,'
5468
lt_cv_prog_cc_static='-non_shared'
5472
lt_cv_prog_cc_pic='-Kpic'
5473
lt_cv_prog_cc_static='-dn'
5474
lt_cv_prog_cc_shlib='-belf'
5478
lt_cv_prog_cc_pic='-KPIC'
5479
lt_cv_prog_cc_static='-Bstatic'
5480
lt_cv_prog_cc_wl='-Wl,'
5484
lt_cv_prog_cc_pic='-PIC'
5485
lt_cv_prog_cc_static='-Bstatic'
5486
lt_cv_prog_cc_wl='-Qoption ld '
5489
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5490
lt_cv_prog_cc_pic='-KPIC'
5491
lt_cv_prog_cc_static='-Bstatic'
5492
if test "x$host_vendor" = xsni; then
5493
lt_cv_prog_cc_wl='-LD'
5495
lt_cv_prog_cc_wl='-Wl,'
5500
lt_cv_prog_cc_pic='-pic'
5501
lt_cv_prog_cc_static='-Bstatic'
5505
if test -d /usr/nec ;then
5506
lt_cv_prog_cc_pic='-Kconform_pic'
5507
lt_cv_prog_cc_static='-Bstatic'
5512
lt_cv_prog_cc_can_build_shared=no
5519
if test -z "$lt_cv_prog_cc_pic"; then
5520
echo "$as_me:$LINENO: result: none" >&5
5521
echo "${ECHO_T}none" >&6
5523
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5524
echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
5526
# Check to make sure the pic_flag actually works.
5527
echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5528
echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
5529
if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5530
echo $ECHO_N "(cached) $ECHO_C" >&6
5532
save_CFLAGS="$CFLAGS"
5533
CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5534
cat >conftest.$ac_ext <<_ACEOF
5535
#line $LINENO "configure"
5536
#include "confdefs.h"
5538
#ifdef F77_DUMMY_MAIN
5542
int F77_DUMMY_MAIN() { return 1; }
5552
rm -f conftest.$ac_objext
5553
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5554
(eval $ac_compile) 2>&5
5556
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557
(exit $ac_status); } &&
5558
{ ac_try='test -s conftest.$ac_objext'
5559
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5562
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563
(exit $ac_status); }; }; then
5565
hpux9* | hpux10* | hpux11*)
5566
# On HP-UX, both CC and GCC only warn that PIC is supported... then
5567
# they create non-PIC objects. So, if there were any warnings, we
5568
# assume that PIC is not supported.
5569
if test -s conftest.err; then
5570
lt_cv_prog_cc_pic_works=no
5572
lt_cv_prog_cc_pic_works=yes
5576
lt_cv_prog_cc_pic_works=yes
5581
echo "$as_me: failed program was:" >&5
5582
cat conftest.$ac_ext >&5
5583
lt_cv_prog_cc_pic_works=no
5586
rm -f conftest.$ac_objext conftest.$ac_ext
5587
CFLAGS="$save_CFLAGS"
5592
if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5594
lt_cv_prog_cc_can_build_shared=no
5596
lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5599
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5600
echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
5603
# Check for any special shared library compilation flags.
5604
if test -n "$lt_cv_prog_cc_shlib"; then
5605
{ echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5606
echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5607
if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
5609
{ echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5610
echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5611
lt_cv_prog_cc_can_build_shared=no
5615
echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5616
echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
5617
if test "${lt_cv_prog_cc_static_works+set}" = set; then
5618
echo $ECHO_N "(cached) $ECHO_C" >&6
5620
lt_cv_prog_cc_static_works=no
5621
save_LDFLAGS="$LDFLAGS"
5622
LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5623
cat >conftest.$ac_ext <<_ACEOF
5624
#line $LINENO "configure"
5625
#include "confdefs.h"
5627
#ifdef F77_DUMMY_MAIN
5631
int F77_DUMMY_MAIN() { return 1; }
5641
rm -f conftest.$ac_objext conftest$ac_exeext
5642
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5643
(eval $ac_link) 2>&5
5645
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5646
(exit $ac_status); } &&
5647
{ ac_try='test -s conftest$ac_exeext'
5648
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5651
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5652
(exit $ac_status); }; }; then
5653
lt_cv_prog_cc_static_works=yes
5655
echo "$as_me: failed program was:" >&5
5656
cat conftest.$ac_ext >&5
5658
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5659
LDFLAGS="$save_LDFLAGS"
5664
# Belt *and* braces to stop my trousers falling down:
5665
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5666
echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5667
echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
5669
pic_flag="$lt_cv_prog_cc_pic"
5670
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5671
wl="$lt_cv_prog_cc_wl"
5672
link_static_flag="$lt_cv_prog_cc_static"
5673
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5674
can_build_shared="$lt_cv_prog_cc_can_build_shared"
5677
# Check to see if options -o and -c are simultaneously supported by compiler
5678
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5679
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5680
if test "${lt_cv_compiler_c_o+set}" = set; then
5681
echo $ECHO_N "(cached) $ECHO_C" >&6
5684
$rm -r conftest 2>/dev/null
5687
echo "int some_variable = 0;" > conftest.$ac_ext
5689
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5690
# that will create temporary files in the current directory regardless of
5691
# the output directory. Thus, making CWD read-only will cause this test
5692
# to fail, enabling locking or at least warning the user not to do parallel
5695
save_CFLAGS="$CFLAGS"
5696
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5698
if { (eval echo configure:5698: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5699
# The compiler can only warn and ignore the option if not recognized
5700
# So say no if there are warnings
5701
if test -s out/conftest.err; then
5702
lt_cv_compiler_c_o=no
5704
lt_cv_compiler_c_o=yes
5707
# Append any errors to the config.log.
5708
cat out/conftest.err 1>&5
5709
lt_cv_compiler_c_o=no
5711
CFLAGS="$save_CFLAGS"
5717
$rm -r conftest 2>/dev/null
5721
compiler_c_o=$lt_cv_compiler_c_o
5722
echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5723
echo "${ECHO_T}$compiler_c_o" >&6
5725
if test x"$compiler_c_o" = x"yes"; then
5726
# Check to see if we can write to a .lo
5727
echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5728
echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
5729
if test "${lt_cv_compiler_o_lo+set}" = set; then
5730
echo $ECHO_N "(cached) $ECHO_C" >&6
5733
lt_cv_compiler_o_lo=no
5734
save_CFLAGS="$CFLAGS"
5735
CFLAGS="$CFLAGS -c -o conftest.lo"
5736
save_objext="$ac_objext"
5738
cat >conftest.$ac_ext <<_ACEOF
5739
#line $LINENO "configure"
5740
#include "confdefs.h"
5742
#ifdef F77_DUMMY_MAIN
5746
int F77_DUMMY_MAIN() { return 1; }
5751
int some_variable = 0;
5756
rm -f conftest.$ac_objext
5757
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5758
(eval $ac_compile) 2>&5
5760
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761
(exit $ac_status); } &&
5762
{ ac_try='test -s conftest.$ac_objext'
5763
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5766
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767
(exit $ac_status); }; }; then
5768
# The compiler can only warn and ignore the option if not recognized
5769
# So say no if there are warnings
5770
if test -s conftest.err; then
5771
lt_cv_compiler_o_lo=no
5773
lt_cv_compiler_o_lo=yes
5777
echo "$as_me: failed program was:" >&5
5778
cat conftest.$ac_ext >&5
5780
rm -f conftest.$ac_objext conftest.$ac_ext
5781
ac_objext="$save_objext"
5782
CFLAGS="$save_CFLAGS"
5786
compiler_o_lo=$lt_cv_compiler_o_lo
5787
echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5788
echo "${ECHO_T}$compiler_o_lo" >&6
5793
# Check to see if we can do hard links to lock some files if needed
5794
hard_links="nottested"
5795
if test "$compiler_c_o" = no && test "$need_locks" != no; then
5796
# do not overwrite the value of need_locks provided by the user
5797
echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5798
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5801
ln conftest.a conftest.b 2>/dev/null && hard_links=no
5803
ln conftest.a conftest.b 2>&5 || hard_links=no
5804
ln conftest.a conftest.b 2>/dev/null && hard_links=no
5805
echo "$as_me:$LINENO: result: $hard_links" >&5
5806
echo "${ECHO_T}$hard_links" >&6
5807
if test "$hard_links" = no; then
5808
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5809
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5816
if test "$GCC" = yes; then
5817
# Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5818
echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5819
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5820
echo "int some_variable = 0;" > conftest.$ac_ext
5821
save_CFLAGS="$CFLAGS"
5822
CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5823
compiler_rtti_exceptions=no
5824
cat >conftest.$ac_ext <<_ACEOF
5825
#line $LINENO "configure"
5826
#include "confdefs.h"
5828
#ifdef F77_DUMMY_MAIN
5832
int F77_DUMMY_MAIN() { return 1; }
5837
int some_variable = 0;
5842
rm -f conftest.$ac_objext
5843
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5844
(eval $ac_compile) 2>&5
5846
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847
(exit $ac_status); } &&
5848
{ ac_try='test -s conftest.$ac_objext'
5849
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5852
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853
(exit $ac_status); }; }; then
5854
# The compiler can only warn and ignore the option if not recognized
5855
# So say no if there are warnings
5856
if test -s conftest.err; then
5857
compiler_rtti_exceptions=no
5859
compiler_rtti_exceptions=yes
5863
echo "$as_me: failed program was:" >&5
5864
cat conftest.$ac_ext >&5
5866
rm -f conftest.$ac_objext conftest.$ac_ext
5867
CFLAGS="$save_CFLAGS"
5868
echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5869
echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5871
if test "$compiler_rtti_exceptions" = "yes"; then
5872
no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5874
no_builtin_flag=' -fno-builtin'
5878
# See if the linker supports building shared libraries.
5879
echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5880
echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5882
allow_undefined_flag=
5884
need_lib_prefix=unknown
5885
need_version=unknown
5886
# when you set need_version to no, make sure it does not cause -set_version
5887
# flags to be left without arguments
5889
archive_expsym_cmds=
5890
old_archive_from_new_cmds=
5891
old_archive_from_expsyms_cmds=
5892
export_dynamic_flag_spec=
5893
whole_archive_flag_spec=
5894
thread_safe_flag_spec=
5895
hardcode_into_libs=no
5896
hardcode_libdir_flag_spec=
5897
hardcode_libdir_separator=
5900
hardcode_shlibpath_var=unsupported
5902
link_all_deplibs=unknown
5903
always_export_symbols=no
5904
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5905
# include_expsyms should be a list of space-separated symbols to be *always*
5906
# included in the symbol list
5908
# exclude_expsyms can be an egrep regular expression of symbols to exclude
5909
# it will be wrapped by ` (' and `)$', so one must not match beginning or
5910
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5911
# as well as any symbol that contains `d'.
5912
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5913
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5914
# platforms (ab)use it in PIC code, but their linkers get confused if
5915
# the symbol is explicitly referenced. Since portable code cannot
5916
# rely on this symbol name, it's probably fine to never include it in
5917
# preloaded symbol tables.
5918
extract_expsyms_cmds=
5921
cygwin* | mingw* | pw32*)
5922
# FIXME: the MSVC++ port hasn't been tested in a loooong time
5923
# When not using gcc, we currently assume that we are using
5924
# Microsoft Visual C++.
5925
if test "$GCC" != yes; then
5935
if test "$with_gnu_ld" = yes; then
5936
# If archive_cmds runs LD, not CC, wlarc should be empty
5939
# See if GNU ld supports shared libraries.
5941
aix3* | aix4* | aix5*)
5942
# On AIX, the GNU linker is very broken
5943
# Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5947
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
5948
*** to be unable to reliably create shared libraries on AIX.
5949
*** Therefore, libtool is disabling shared libraries support. If you
5950
*** really care for shared libraries, you may want to modify your PATH
5951
*** so that a non-GNU linker is found, and then restart.
5957
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5958
hardcode_libdir_flag_spec='-L$libdir'
5959
hardcode_minus_L=yes
5961
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5962
# that the semantics of dynamic libraries on AmigaOS, at least up
5963
# to version 4, is to share data among multiple programs linked
5964
# with the same dynamic library. Since this doesn't match the
5965
# behavior of shared libraries on other platforms, we can use
5971
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5972
allow_undefined_flag=unsupported
5973
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5974
# support --undefined. This deserves some investigation. FIXME
5975
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5981
cygwin* | mingw* | pw32*)
5982
# hardcode_libdir_flag_spec is actually meaningless, as there is
5983
# no search path for DLLs.
5984
hardcode_libdir_flag_spec='-L$libdir'
5985
allow_undefined_flag=unsupported
5986
always_export_symbols=yes
5988
extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5989
sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5990
test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5991
if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5992
else $CC -o impgen impgen.c ; fi)~
5993
$output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5995
old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5997
# cygwin and mingw dlls have different entry points and sets of symbols
5999
# FIXME: what about values for MSVC?
6000
dll_entry=__cygwin_dll_entry@12
6001
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6005
dll_entry=_DllMainCRTStartup@12
6006
dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6010
# mingw and cygwin differ, and it's simplest to just exclude the union
6011
# of the two symbol sets.
6012
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6014
# recent cygwin and mingw systems supply a stub DllMain which the user
6015
# can override, but on older systems we have to supply one (in ltdll.c)
6016
if test "x$lt_cv_need_dllmain" = "xyes"; then
6017
ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6018
ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
6019
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6025
# Extract the symbol export list from an `--export-all' def file,
6026
# then regenerate the def file from the symbol export list, so that
6027
# the compiled dll only exports the symbol export list.
6028
# Be careful not to strip the DATA tag left be newer dlltools.
6029
export_symbols_cmds="$ltdll_cmds"'
6030
$DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6031
sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6033
# If the export-symbols file already is a .def file (1st line
6034
# is EXPORTS), use it as is.
6035
# If DATA tags from a recent dlltool are present, honour them!
6036
archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
6037
cp $export_symbols $output_objdir/$soname-def;
6039
echo EXPORTS > $output_objdir/$soname-def;
6041
cat $export_symbols | while read symbol; do
6044
2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6045
*) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6047
_lt_hint=`expr 1 + \$_lt_hint`;
6051
$CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6052
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
6053
$CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6054
$DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
6055
$CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6059
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6060
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6063
archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6064
archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6069
if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6073
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
6074
*** create shared libraries on Solaris systems. Therefore, libtool
6075
*** is disabling shared libraries support. We urge you to upgrade GNU
6076
*** binutils to release 2.9.1 or newer. Another option is to modify
6077
*** your PATH or compiler configuration so that the native linker is
6078
*** used, and then restart.
6081
elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6082
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6083
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6090
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6093
hardcode_shlibpath_var=no
6097
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6098
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6099
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6106
if test "$ld_shlibs" = yes; then
6107
runpath_var=LD_RUN_PATH
6108
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6109
export_dynamic_flag_spec='${wl}--export-dynamic'
6111
cygwin* | mingw* | pw32*)
6112
# dlltool doesn't understand --whole-archive et. al.
6113
whole_archive_flag_spec=
6116
# ancient GNU ld didn't support --whole-archive et. al.
6117
if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6118
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6120
whole_archive_flag_spec=
6126
# PORTME fill in a description of your system's linker (not GNU ld)
6129
allow_undefined_flag=unsupported
6130
always_export_symbols=yes
6131
archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
6132
# Note: this linker hardcodes the directories in LIBPATH if there
6133
# are no directories specified by -L.
6134
hardcode_minus_L=yes
6135
if test "$GCC" = yes && test -z "$link_static_flag"; then
6136
# Neither direct hardcoding nor static linking is supported with a
6138
hardcode_direct=unsupported
6143
if test "$host_cpu" = ia64; then
6144
# On IA64, the linker does run time linking by default, so we don't
6145
# have to do anything special.
6146
aix_use_runtimelinking=no
6147
exp_sym_flag='-Bexport'
6150
aix_use_runtimelinking=no
6152
# Test if we are trying to use run time linking or normal
6153
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
6154
# need to do runtime linking.
6155
case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6156
for ld_flag in $LDFLAGS; do
6157
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6158
aix_use_runtimelinking=yes
6164
exp_sym_flag='-bexport'
6165
no_entry_flag='-bnoentry'
6168
# When large executables or shared objects are built, AIX ld can
6169
# have problems creating the table of contents. If linking a library
6170
# or program results in "error TOC overflow" add -mminimal-toc to
6171
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6172
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6176
hardcode_libdir_separator=':'
6177
if test "$GCC" = yes; then
6178
case $host_os in aix4.[012]|aix4.[012].*)
6179
collect2name=`${CC} -print-prog-name=collect2`
6180
if test -f "$collect2name" && \
6181
strings "$collect2name" | grep resolve_lib_name >/dev/null
6183
# We have reworked collect2
6186
# We have old collect2
6187
hardcode_direct=unsupported
6188
# It fails to find uninstalled libraries when the uninstalled
6189
# path is not listed in the libpath. Setting hardcode_minus_L
6190
# to unsupported forces relinking
6191
hardcode_minus_L=yes
6192
hardcode_libdir_flag_spec='-L$libdir'
6193
hardcode_libdir_separator=
6197
shared_flag='-shared'
6200
if test "$host_cpu" = ia64; then
6201
shared_flag='${wl}-G'
6203
if test "$aix_use_runtimelinking" = yes; then
6204
shared_flag='${wl}-G'
6206
shared_flag='${wl}-bM:SRE'
6211
# It seems that -bexpall can do strange things, so it is better to
6212
# generate a list of symbols to export.
6213
always_export_symbols=yes
6214
if test "$aix_use_runtimelinking" = yes; then
6215
# Warning - without using the other runtime loading flags (-brtl),
6216
# -berok will link without error, but may produce a broken library.
6217
allow_undefined_flag='-berok'
6218
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6219
archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6221
if test "$host_cpu" = ia64; then
6222
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6223
allow_undefined_flag="-z nodefs"
6224
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6226
hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6227
# Warning - without using the other run time loading flags,
6228
# -berok will link without error, but may produce a broken library.
6229
allow_undefined_flag='${wl}-berok'
6230
# This is a bit strange, but is similar to how AIX traditionally builds
6231
# it's shared libraries.
6232
archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
6238
archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
6239
hardcode_libdir_flag_spec='-L$libdir'
6240
hardcode_minus_L=yes
6241
# see comment about different semantics on the GNU ld section
6245
cygwin* | mingw* | pw32*)
6246
# When not using gcc, we currently assume that we are using
6247
# Microsoft Visual C++.
6248
# hardcode_libdir_flag_spec is actually meaningless, as there is
6249
# no search path for DLLs.
6250
hardcode_libdir_flag_spec=' '
6251
allow_undefined_flag=unsupported
6252
# Tell ltmain to make .lib files, not .a files.
6254
# FIXME: Setting linknames here is a bad hack.
6255
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6256
# The linker will automatically build a .lib file if we build a DLL.
6257
old_archive_from_new_cmds='true'
6258
# FIXME: Should let the user specify the lib program.
6259
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6260
fix_srcfile_path='`cygpath -w "$srcfile"`'
6263
darwin* | rhapsody*)
6265
rhapsody* | darwin1.[012])
6266
allow_undefined_flag='-undefined suppress'
6269
allow_undefined_flag='-flat_namespace -undefined suppress'
6272
# FIXME: Relying on posixy $() will cause problems for
6273
# cross-compilation, but unfortunately the echo tests do not
6274
# yet detect zsh echo's removal of \ escapes.
6275
archive_cmds='$nonopt $(test x$module = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
6276
# We need to add '_' to the symbols in $export_symbols first
6277
#archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6279
hardcode_shlibpath_var=no
6280
whole_archive_flag_spec='-all_load $convenience'
6287
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6288
# support. Future versions do this automatically, but an explicit c++rt0.o
6289
# does not break anything, and helps significantly (at the cost of a little
6292
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6293
hardcode_libdir_flag_spec='-R$libdir'
6295
hardcode_shlibpath_var=no
6298
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
6300
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6302
hardcode_minus_L=yes
6303
hardcode_shlibpath_var=no
6306
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6308
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6309
hardcode_libdir_flag_spec='-R$libdir'
6311
hardcode_shlibpath_var=no
6314
hpux9* | hpux10* | hpux11*)
6316
hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
6317
*) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6319
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6320
hardcode_libdir_separator=:
6322
hardcode_minus_L=yes # Not in the search PATH, but as the default
6323
# location of the library.
6324
export_dynamic_flag_spec='${wl}-E'
6328
if test "$GCC" = yes; then
6329
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6331
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6333
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6334
hardcode_libdir_separator=:
6335
link_all_deplibs=yes
6339
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6340
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6342
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6344
hardcode_libdir_flag_spec='-R$libdir'
6346
hardcode_shlibpath_var=no
6350
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6352
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6353
hardcode_libdir_separator=:
6354
hardcode_shlibpath_var=no
6359
hardcode_shlibpath_var=no
6360
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6361
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6362
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6363
export_dynamic_flag_spec='${wl}-E'
6366
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6367
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6368
hardcode_libdir_flag_spec='-R$libdir'
6371
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
6372
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6379
hardcode_libdir_flag_spec='-L$libdir'
6380
hardcode_minus_L=yes
6381
allow_undefined_flag=unsupported
6382
archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6383
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6387
if test "$GCC" = yes; then
6388
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6389
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6391
allow_undefined_flag=' -expect_unresolved \*'
6392
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6394
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6395
hardcode_libdir_separator=:
6398
osf4* | osf5*) # as osf3* with the addition of -msym flag
6399
if test "$GCC" = yes; then
6400
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6401
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6402
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6404
allow_undefined_flag=' -expect_unresolved \*'
6405
archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6406
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6407
$LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6409
#Both c and cxx compiler support -rpath directly
6410
hardcode_libdir_flag_spec='-rpath $libdir'
6412
hardcode_libdir_separator=:
6416
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6417
hardcode_shlibpath_var=no
6418
runpath_var=LD_RUN_PATH
6419
hardcode_runpath_var=yes
6420
export_dynamic_flag_spec='${wl}-Bexport'
6424
# gcc --version < 3.0 without binutils cannot create self contained
6425
# shared libraries reliably, requiring libgcc.a to resolve some of
6426
# the object symbols generated in some cases. Libraries that use
6427
# assert need libgcc.a to resolve __eprintf, for example. Linking
6428
# a copy of libgcc.a into every shared library to guarantee resolving
6429
# such symbols causes other problems: According to Tim Van Holder
6430
# <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6431
# (to the application) exception stack for one thing.
6432
no_undefined_flag=' -z defs'
6433
if test "$GCC" = yes; then
6434
case `$CC --version 2>/dev/null` in
6438
*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6439
*** create self contained shared libraries on Solaris systems, without
6440
*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
6441
*** -no-undefined support, which will at least allow you to build shared
6442
*** libraries. However, you may find that when you link such libraries
6443
*** into an application without using GCC, you have to manually add
6444
*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
6445
*** upgrade to a newer version of GCC. Another option is to rebuild your
6446
*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6453
# $CC -shared without GNU ld will not create a library from C++
6454
# object files and a static libstdc++, better avoid it by now
6455
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6456
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6457
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6458
hardcode_libdir_flag_spec='-R$libdir'
6459
hardcode_shlibpath_var=no
6461
solaris2.[0-5] | solaris2.[0-5].*) ;;
6462
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
6463
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6465
link_all_deplibs=yes
6469
if test "x$host_vendor" = xsequent; then
6470
# Use $CC to link under sequent, because it throws in some extra .o
6471
# files that make .init and .fini sections work.
6472
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6474
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6476
hardcode_libdir_flag_spec='-L$libdir'
6478
hardcode_minus_L=yes
6479
hardcode_shlibpath_var=no
6483
if test "x$host_vendor" = xsno; then
6484
archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
6485
hardcode_direct=yes # is this really true???
6487
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6488
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6490
runpath_var='LD_RUN_PATH'
6491
hardcode_shlibpath_var=no
6495
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6496
hardcode_shlibpath_var=no
6497
export_dynamic_flag_spec='-Bexport'
6501
no_undefined_flag=' -z text'
6502
# $CC -shared without GNU ld will not create a library from C++
6503
# object files and a static libstdc++, better avoid it by now
6504
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6505
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6506
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6507
hardcode_libdir_flag_spec=
6508
hardcode_shlibpath_var=no
6509
runpath_var='LD_RUN_PATH'
6513
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6514
hardcode_libdir_flag_spec='-L$libdir'
6515
hardcode_shlibpath_var=no
6519
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6520
hardcode_libdir_flag_spec='-L$libdir'
6521
hardcode_shlibpath_var=no
6525
if test -d /usr/nec; then
6526
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6527
hardcode_shlibpath_var=no
6528
runpath_var=LD_RUN_PATH
6529
hardcode_runpath_var=yes
6535
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6538
hardcode_shlibpath_var=no
6539
hardcode_runpath_var=yes
6540
runpath_var=LD_RUN_PATH
6543
sysv5uw7* | unixware7*)
6544
no_undefined_flag='${wl}-z ${wl}text'
6545
if test "$GCC" = yes; then
6546
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6548
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6550
runpath_var='LD_RUN_PATH'
6551
hardcode_shlibpath_var=no
6559
echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6560
echo "${ECHO_T}$ld_shlibs" >&6
6561
test "$ld_shlibs" = no && can_build_shared=no
6563
# Check hardcoding attributes.
6564
echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6565
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
6567
if test -n "$hardcode_libdir_flag_spec" || \
6568
test -n "$runpath_var"; then
6570
# We can hardcode non-existant directories.
6571
if test "$hardcode_direct" != no &&
6572
# If the only mechanism to avoid hardcoding is shlibpath_var, we
6573
# have to relink, otherwise we might link with an installed library
6574
# when we should be linking with a yet-to-be-installed one
6575
## test "$hardcode_shlibpath_var" != no &&
6576
test "$hardcode_minus_L" != no; then
6577
# Linking always hardcodes the temporary library directory.
6578
hardcode_action=relink
6580
# We can link without hardcoding, and we can hardcode nonexisting dirs.
6581
hardcode_action=immediate
6584
# We cannot hardcode anything, or else we can only hardcode existing
6586
hardcode_action=unsupported
6588
echo "$as_me:$LINENO: result: $hardcode_action" >&5
6589
echo "${ECHO_T}$hardcode_action" >&6
6593
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6594
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
6595
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6596
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6597
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6598
echo "$as_me:$LINENO: result: yes" >&5
6599
echo "${ECHO_T}yes" >&6
6601
echo "$as_me:$LINENO: result: no" >&5
6602
echo "${ECHO_T}no" >&6
6605
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6606
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6608
# PORTME Fill in your ld.so characteristics
6609
echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6610
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6612
libname_spec='lib$name'
6619
shlibpath_overrides_runpath=unknown
6621
dynamic_linker="$host_os ld.so"
6622
sys_lib_dlsearch_path_spec="/lib /usr/lib"
6623
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6628
library_names_spec='${libname}${release}.so$versuffix $libname.a'
6629
shlibpath_var=LIBPATH
6631
# AIX has no versioning support, so we append a major version to the name.
6632
soname_spec='${libname}${release}.so$major'
6637
if test "$host_cpu" = ia64; then
6638
# AIX 5 supports IA64
6639
library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6640
shlibpath_var=LD_LIBRARY_PATH
6642
# With GCC up to 2.95.x, collect2 would create an import file
6643
# for dependence libraries. The import file would start with
6644
# the line `#! .'. This would cause the generated library to
6645
# depend on `.', always an invalid library. This was fixed in
6646
# development snapshots of GCC prior to 3.0.
6648
aix4 | aix4.[01] | aix4.[01].*)
6649
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6651
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6658
# AIX (on Power*) has no versioning support, so currently we can
6659
# not hardcode correct soname into executable. Probably we can
6660
# add versioning support to collect2, so additional links can
6661
# be useful in future.
6662
if test "$aix_use_runtimelinking" = yes; then
6663
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
6664
# instead of lib<name>.a to let people know that these are not
6665
# typical AIX shared libraries.
6666
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6668
# We preserve .a as extension for shared libraries through AIX4.2
6669
# and later when we are not doing run time linking.
6670
library_names_spec='${libname}${release}.a $libname.a'
6671
soname_spec='${libname}${release}.so$major'
6673
shlibpath_var=LIBPATH
6678
library_names_spec='$libname.ixlibrary $libname.a'
6679
# Create ${libname}_ixlibrary.a entries in /sys/libs.
6680
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
6684
library_names_spec='${libname}.so'
6685
dynamic_linker="$host_os ld.so"
6686
shlibpath_var=LIBRARY_PATH
6692
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6693
soname_spec='${libname}${release}.so$major'
6694
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6695
shlibpath_var=LD_LIBRARY_PATH
6696
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6697
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6698
export_dynamic_flag_spec=-rdynamic
6699
# the default ld.so.conf also contains /usr/contrib/lib and
6700
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6701
# libtool to hard-code these into programs
6704
cygwin* | mingw* | pw32*)
6705
version_type=windows
6708
case $GCC,$host_os in
6710
library_names_spec='$libname.dll.a'
6711
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6712
postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6713
dldir=$destdir/`dirname \$dlpath`~
6714
test -d \$dldir || mkdir -p \$dldir~
6715
$install_prog .libs/$dlname \$dldir/$dlname'
6716
postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6717
dlpath=$dir/\$dldll~
6721
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6722
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
6725
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6728
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6731
dynamic_linker='Win32 ld.exe'
6732
# FIXME: first we should search . and the directory the executable is in
6736
darwin* | rhapsody*)
6737
dynamic_linker="$host_os dyld"
6741
# FIXME: Relying on posixy $() will cause problems for
6742
# cross-compilation, but unfortunately the echo tests do not
6743
# yet detect zsh echo's removal of \ escapes.
6744
library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
6745
soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6746
shlibpath_overrides_runpath=yes
6747
shlibpath_var=DYLD_LIBRARY_PATH
6755
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6756
version_type=freebsd-$objformat
6757
case $version_type in
6759
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6764
library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6768
shlibpath_var=LD_LIBRARY_PATH
6771
shlibpath_overrides_runpath=yes
6774
shlibpath_overrides_runpath=no
6775
hardcode_into_libs=yes
6784
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6785
soname_spec='${libname}${release}.so$major'
6786
shlibpath_var=LD_LIBRARY_PATH
6787
hardcode_into_libs=yes
6790
hpux9* | hpux10* | hpux11*)
6791
# Give a soname corresponding to the major version so that dld.sl refuses to
6792
# link against other versions.
6793
dynamic_linker="$host_os dld.sl"
6797
shlibpath_var=SHLIB_PATH
6798
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6799
library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6800
soname_spec='${libname}${release}.sl$major'
6801
# HP-UX runs *really* slowly unless shared libraries are mode 555.
6802
postinstall_cmds='chmod 555 $lib'
6809
soname_spec='${libname}${release}.so$major'
6810
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6816
case $LD in # libtool.m4 will add one of these switches to LD
6817
*-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6818
*-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6819
*-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6820
*) libsuff= shlibsuff= libmagic=never-match;;
6824
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6825
shlibpath_overrides_runpath=no
6826
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6827
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6830
# No shared lib support for Linux oldld, aout, or coff.
6831
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6835
# This must be Linux ELF.
6840
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6841
soname_spec='${libname}${release}.so$major'
6842
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6843
shlibpath_var=LD_LIBRARY_PATH
6844
shlibpath_overrides_runpath=no
6845
# This implies no fast_install, which is unacceptable.
6846
# Some rework will be needed to allow for fast_install
6847
# before this can be enabled.
6848
hardcode_into_libs=yes
6850
# We used to test for /lib/ld.so.1 and disable shared libraries on
6851
# powerpc, because MkLinux only supported shared libraries with the
6852
# GNU dynamic linker. Since this was broken with cross compilers,
6853
# most powerpc-linux boxes support dynamic linking these days and
6854
# people can always --disable-shared, the test was removed, and we
6855
# assume the GNU/Linux dynamic linker is in use.
6856
dynamic_linker='GNU/Linux ld.so'
6863
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6864
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6865
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6866
dynamic_linker='NetBSD (a.out) ld.so'
6868
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6869
soname_spec='${libname}${release}.so$major'
6870
dynamic_linker='NetBSD ld.elf_so'
6872
shlibpath_var=LD_LIBRARY_PATH
6873
shlibpath_overrides_runpath=yes
6874
hardcode_into_libs=yes
6879
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6880
shlibpath_var=LD_LIBRARY_PATH
6881
shlibpath_overrides_runpath=yes
6888
if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6890
openbsd2.[89] | openbsd2.[89].*)
6891
shlibpath_overrides_runpath=no
6894
shlibpath_overrides_runpath=yes
6898
shlibpath_overrides_runpath=yes
6900
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6901
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6902
shlibpath_var=LD_LIBRARY_PATH
6906
libname_spec='$name'
6908
library_names_spec='$libname.dll $libname.a'
6909
dynamic_linker='OS/2 ld.exe'
6910
shlibpath_var=LIBPATH
6913
osf3* | osf4* | osf5*)
6916
soname_spec='${libname}${release}.so'
6917
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6918
shlibpath_var=LD_LIBRARY_PATH
6919
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6920
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6925
soname_spec='${libname}${release}.so$major'
6926
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6927
shlibpath_var=LD_LIBRARY_PATH
6934
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6935
soname_spec='${libname}${release}.so$major'
6936
shlibpath_var=LD_LIBRARY_PATH
6937
shlibpath_overrides_runpath=yes
6938
hardcode_into_libs=yes
6939
# ldd complains unless libraries are executable
6940
postinstall_cmds='chmod +x $lib'
6945
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6946
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6947
shlibpath_var=LD_LIBRARY_PATH
6948
shlibpath_overrides_runpath=yes
6949
if test "$with_gnu_ld" = yes; then
6955
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6957
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6958
soname_spec='${libname}${release}.so$major'
6959
shlibpath_var=LD_LIBRARY_PATH
6960
case $host_vendor in
6962
shlibpath_overrides_runpath=no
6967
shlibpath_overrides_runpath=no
6968
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6975
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6976
soname_spec='${libname}${release}.so$major'
6977
shlibpath_var=LD_LIBRARY_PATH
6984
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6985
soname_spec='${libname}${release}.so$major'
6986
shlibpath_var=LD_LIBRARY_PATH
6990
if test -d /usr/nec ;then
6992
library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6993
soname_spec='$libname.so.$major'
6994
shlibpath_var=LD_LIBRARY_PATH
7002
echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7003
echo "${ECHO_T}$dynamic_linker" >&6
7004
test "$dynamic_linker" = no && can_build_shared=no
7006
# Report the final consequences.
7007
echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7008
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
7009
echo "$as_me:$LINENO: result: $can_build_shared" >&5
7010
echo "${ECHO_T}$can_build_shared" >&6
7012
echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7013
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
7014
test "$can_build_shared" = "no" && enable_shared=no
7016
# On AIX, shared libraries and static libraries use the same namespace, and
7017
# are all built from PIC.
7020
test "$enable_shared" = yes && enable_static=no
7021
if test -n "$RANLIB"; then
7022
archive_cmds="$archive_cmds~\$RANLIB \$lib"
7023
postinstall_cmds='$RANLIB $lib'
7028
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7029
test "$enable_shared" = yes && enable_static=no
7033
echo "$as_me:$LINENO: result: $enable_shared" >&5
7034
echo "${ECHO_T}$enable_shared" >&6
7036
echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7037
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
7038
# Make sure either enable_shared or enable_static is yes.
7039
test "$enable_shared" = yes || enable_static=yes
7040
echo "$as_me:$LINENO: result: $enable_static" >&5
7041
echo "${ECHO_T}$enable_static" >&6
7043
if test "$hardcode_action" = relink; then
7044
# Fast installation is not supported
7045
enable_fast_install=no
7046
elif test "$shlibpath_overrides_runpath" = yes ||
7047
test "$enable_shared" = no; then
7048
# Fast installation is not necessary
7049
enable_fast_install=needless
7052
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7053
if test "$GCC" = yes; then
7054
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7057
if test "x$enable_dlopen" != xyes; then
7058
enable_dlopen=unknown
7059
enable_dlopen_self=unknown
7060
enable_dlopen_self_static=unknown
7067
lt_cv_dlopen="load_add_on"
7069
lt_cv_dlopen_self=yes
7072
cygwin* | mingw* | pw32*)
7073
lt_cv_dlopen="LoadLibrary"
7078
echo "$as_me:$LINENO: checking for shl_load" >&5
7079
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7080
if test "${ac_cv_func_shl_load+set}" = set; then
7081
echo $ECHO_N "(cached) $ECHO_C" >&6
7083
cat >conftest.$ac_ext <<_ACEOF
7084
#line $LINENO "configure"
7085
#include "confdefs.h"
7086
/* System header to define __stub macros and hopefully few prototypes,
7087
which can conflict with char shl_load (); below. */
7089
/* Override any gcc2 internal prototype to avoid an error. */
7093
/* We use char because int might match the return type of a gcc2
7094
builtin and then its argument prototype would still apply. */
7098
#ifdef F77_DUMMY_MAIN
7102
int F77_DUMMY_MAIN() { return 1; }
7107
/* The GNU C library defines this for functions which it implements
7108
to always fail with ENOSYS. Some functions are actually named
7109
something starting with __ and the normal name is an alias. */
7110
#if defined (__stub_shl_load) || defined (__stub___shl_load)
7120
rm -f conftest.$ac_objext conftest$ac_exeext
7121
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7122
(eval $ac_link) 2>&5
7124
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7125
(exit $ac_status); } &&
7126
{ ac_try='test -s conftest$ac_exeext'
7127
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7130
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7131
(exit $ac_status); }; }; then
7132
ac_cv_func_shl_load=yes
7134
echo "$as_me: failed program was:" >&5
7135
cat conftest.$ac_ext >&5
7136
ac_cv_func_shl_load=no
7138
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7140
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7141
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7142
if test $ac_cv_func_shl_load = yes; then
7143
lt_cv_dlopen="shl_load"
7145
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7146
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7147
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7148
echo $ECHO_N "(cached) $ECHO_C" >&6
7150
ac_check_lib_save_LIBS=$LIBS
7152
cat >conftest.$ac_ext <<_ACEOF
7153
#line $LINENO "configure"
7154
#include "confdefs.h"
7156
/* Override any gcc2 internal prototype to avoid an error. */
7160
/* We use char because int might match the return type of a gcc2
7161
builtin and then its argument prototype would still apply. */
7163
#ifdef F77_DUMMY_MAIN
7167
int F77_DUMMY_MAIN() { return 1; }
7177
rm -f conftest.$ac_objext conftest$ac_exeext
7178
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7179
(eval $ac_link) 2>&5
7181
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182
(exit $ac_status); } &&
7183
{ ac_try='test -s conftest$ac_exeext'
7184
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7187
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188
(exit $ac_status); }; }; then
7189
ac_cv_lib_dld_shl_load=yes
7191
echo "$as_me: failed program was:" >&5
7192
cat conftest.$ac_ext >&5
7193
ac_cv_lib_dld_shl_load=no
7195
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7196
LIBS=$ac_check_lib_save_LIBS
7198
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7199
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7200
if test $ac_cv_lib_dld_shl_load = yes; then
7201
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7203
echo "$as_me:$LINENO: checking for dlopen" >&5
7204
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7205
if test "${ac_cv_func_dlopen+set}" = set; then
7206
echo $ECHO_N "(cached) $ECHO_C" >&6
7208
cat >conftest.$ac_ext <<_ACEOF
7209
#line $LINENO "configure"
7210
#include "confdefs.h"
7211
/* System header to define __stub macros and hopefully few prototypes,
7212
which can conflict with char dlopen (); below. */
7214
/* Override any gcc2 internal prototype to avoid an error. */
7218
/* We use char because int might match the return type of a gcc2
7219
builtin and then its argument prototype would still apply. */
7223
#ifdef F77_DUMMY_MAIN
7227
int F77_DUMMY_MAIN() { return 1; }
7232
/* The GNU C library defines this for functions which it implements
7233
to always fail with ENOSYS. Some functions are actually named
7234
something starting with __ and the normal name is an alias. */
7235
#if defined (__stub_dlopen) || defined (__stub___dlopen)
7245
rm -f conftest.$ac_objext conftest$ac_exeext
7246
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7247
(eval $ac_link) 2>&5
7249
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250
(exit $ac_status); } &&
7251
{ ac_try='test -s conftest$ac_exeext'
7252
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7255
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256
(exit $ac_status); }; }; then
7257
ac_cv_func_dlopen=yes
7259
echo "$as_me: failed program was:" >&5
7260
cat conftest.$ac_ext >&5
7261
ac_cv_func_dlopen=no
7263
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7265
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7266
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7267
if test $ac_cv_func_dlopen = yes; then
7268
lt_cv_dlopen="dlopen"
7270
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7271
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7272
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7273
echo $ECHO_N "(cached) $ECHO_C" >&6
7275
ac_check_lib_save_LIBS=$LIBS
7277
cat >conftest.$ac_ext <<_ACEOF
7278
#line $LINENO "configure"
7279
#include "confdefs.h"
7281
/* Override any gcc2 internal prototype to avoid an error. */
7285
/* We use char because int might match the return type of a gcc2
7286
builtin and then its argument prototype would still apply. */
7288
#ifdef F77_DUMMY_MAIN
7292
int F77_DUMMY_MAIN() { return 1; }
7302
rm -f conftest.$ac_objext conftest$ac_exeext
7303
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7304
(eval $ac_link) 2>&5
7306
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7307
(exit $ac_status); } &&
7308
{ ac_try='test -s conftest$ac_exeext'
7309
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7312
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7313
(exit $ac_status); }; }; then
7314
ac_cv_lib_dl_dlopen=yes
7316
echo "$as_me: failed program was:" >&5
7317
cat conftest.$ac_ext >&5
7318
ac_cv_lib_dl_dlopen=no
7320
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7321
LIBS=$ac_check_lib_save_LIBS
7323
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7324
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7325
if test $ac_cv_lib_dl_dlopen = yes; then
7326
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7328
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7329
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
7330
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7331
echo $ECHO_N "(cached) $ECHO_C" >&6
7333
ac_check_lib_save_LIBS=$LIBS
7335
cat >conftest.$ac_ext <<_ACEOF
7336
#line $LINENO "configure"
7337
#include "confdefs.h"
7339
/* Override any gcc2 internal prototype to avoid an error. */
7343
/* We use char because int might match the return type of a gcc2
7344
builtin and then its argument prototype would still apply. */
7346
#ifdef F77_DUMMY_MAIN
7350
int F77_DUMMY_MAIN() { return 1; }
7360
rm -f conftest.$ac_objext conftest$ac_exeext
7361
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7362
(eval $ac_link) 2>&5
7364
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365
(exit $ac_status); } &&
7366
{ ac_try='test -s conftest$ac_exeext'
7367
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7370
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7371
(exit $ac_status); }; }; then
7372
ac_cv_lib_svld_dlopen=yes
7374
echo "$as_me: failed program was:" >&5
7375
cat conftest.$ac_ext >&5
7376
ac_cv_lib_svld_dlopen=no
7378
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7379
LIBS=$ac_check_lib_save_LIBS
7381
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7382
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
7383
if test $ac_cv_lib_svld_dlopen = yes; then
7384
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7386
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7387
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
7388
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7389
echo $ECHO_N "(cached) $ECHO_C" >&6
7391
ac_check_lib_save_LIBS=$LIBS
7393
cat >conftest.$ac_ext <<_ACEOF
7394
#line $LINENO "configure"
7395
#include "confdefs.h"
7397
/* Override any gcc2 internal prototype to avoid an error. */
7401
/* We use char because int might match the return type of a gcc2
7402
builtin and then its argument prototype would still apply. */
7404
#ifdef F77_DUMMY_MAIN
7408
int F77_DUMMY_MAIN() { return 1; }
7418
rm -f conftest.$ac_objext conftest$ac_exeext
7419
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7420
(eval $ac_link) 2>&5
7422
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423
(exit $ac_status); } &&
7424
{ ac_try='test -s conftest$ac_exeext'
7425
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7428
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429
(exit $ac_status); }; }; then
7430
ac_cv_lib_dld_dld_link=yes
7432
echo "$as_me: failed program was:" >&5
7433
cat conftest.$ac_ext >&5
7434
ac_cv_lib_dld_dld_link=no
7436
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7437
LIBS=$ac_check_lib_save_LIBS
7439
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7440
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
7441
if test $ac_cv_lib_dld_dld_link = yes; then
7442
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7463
if test "x$lt_cv_dlopen" != xno; then
7469
case $lt_cv_dlopen in
7471
save_CPPFLAGS="$CPPFLAGS"
7472
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7474
save_LDFLAGS="$LDFLAGS"
7475
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7478
LIBS="$lt_cv_dlopen_libs $LIBS"
7480
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7481
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
7482
if test "${lt_cv_dlopen_self+set}" = set; then
7483
echo $ECHO_N "(cached) $ECHO_C" >&6
7485
if test "$cross_compiling" = yes; then :
7486
lt_cv_dlopen_self=cross
7488
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7489
lt_status=$lt_dlunknown
7490
cat > conftest.$ac_ext <<EOF
7491
#line 7491 "configure"
7492
#include "confdefs.h"
7501
# define LT_DLGLOBAL RTLD_GLOBAL
7504
# define LT_DLGLOBAL DL_GLOBAL
7506
# define LT_DLGLOBAL 0
7510
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7511
find out it does not work in some platform. */
7512
#ifndef LT_DLLAZY_OR_NOW
7514
# define LT_DLLAZY_OR_NOW RTLD_LAZY
7517
# define LT_DLLAZY_OR_NOW DL_LAZY
7520
# define LT_DLLAZY_OR_NOW RTLD_NOW
7523
# define LT_DLLAZY_OR_NOW DL_NOW
7525
# define LT_DLLAZY_OR_NOW 0
7533
extern "C" void exit (int);
7536
void fnord() { int i=42;}
7539
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7540
int status = $lt_dlunknown;
7544
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7545
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7546
/* dlclose (self); */
7552
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7553
(eval $ac_link) 2>&5
7555
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7556
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7557
(./conftest; exit; ) 2>/dev/null
7560
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7561
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7562
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7565
# compilation failed
7566
lt_cv_dlopen_self=no
7573
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7574
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
7576
if test "x$lt_cv_dlopen_self" = xyes; then
7577
LDFLAGS="$LDFLAGS $link_static_flag"
7578
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7579
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
7580
if test "${lt_cv_dlopen_self_static+set}" = set; then
7581
echo $ECHO_N "(cached) $ECHO_C" >&6
7583
if test "$cross_compiling" = yes; then :
7584
lt_cv_dlopen_self_static=cross
7586
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7587
lt_status=$lt_dlunknown
7588
cat > conftest.$ac_ext <<EOF
7589
#line 7589 "configure"
7590
#include "confdefs.h"
7599
# define LT_DLGLOBAL RTLD_GLOBAL
7602
# define LT_DLGLOBAL DL_GLOBAL
7604
# define LT_DLGLOBAL 0
7608
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7609
find out it does not work in some platform. */
7610
#ifndef LT_DLLAZY_OR_NOW
7612
# define LT_DLLAZY_OR_NOW RTLD_LAZY
7615
# define LT_DLLAZY_OR_NOW DL_LAZY
7618
# define LT_DLLAZY_OR_NOW RTLD_NOW
7621
# define LT_DLLAZY_OR_NOW DL_NOW
7623
# define LT_DLLAZY_OR_NOW 0
7631
extern "C" void exit (int);
7634
void fnord() { int i=42;}
7637
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7638
int status = $lt_dlunknown;
7642
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
7643
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7644
/* dlclose (self); */
7650
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7651
(eval $ac_link) 2>&5
7653
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7654
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7655
(./conftest; exit; ) 2>/dev/null
7658
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7659
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7660
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7663
# compilation failed
7664
lt_cv_dlopen_self_static=no
7671
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7672
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
7675
CPPFLAGS="$save_CPPFLAGS"
7676
LDFLAGS="$save_LDFLAGS"
7681
case $lt_cv_dlopen_self in
7682
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7683
*) enable_dlopen_self=unknown ;;
7686
case $lt_cv_dlopen_self_static in
7687
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7688
*) enable_dlopen_self_static=unknown ;;
7693
if test "$enable_shared" = yes && test "$GCC" = yes; then
7694
case $archive_cmds in
7696
# FIXME: we may have to deal with multi-command sequences.
7699
# Test whether the compiler implicitly links with -lc since on some
7700
# systems, -lgcc has to come before -lc. If gcc already passes -lc
7701
# to ld, don't add -lc before -lgcc.
7702
echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7703
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7704
if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7705
echo $ECHO_N "(cached) $ECHO_C" >&6
7708
echo 'static int dummy;' > conftest.$ac_ext
7710
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7711
(eval $ac_compile) 2>&5
7713
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714
(exit $ac_status); }; then
7717
libobjs=conftest.$ac_objext
7719
wl=$lt_cv_prog_cc_wl
7725
save_allow_undefined_flag=$allow_undefined_flag
7726
allow_undefined_flag=
7727
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7728
(eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7730
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731
(exit $ac_status); }
7733
lt_cv_archive_cmds_need_lc=no
7735
lt_cv_archive_cmds_need_lc=yes
7737
allow_undefined_flag=$save_allow_undefined_flag
7739
cat conftest.err 1>&5
7743
echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
7744
echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
7748
need_lc=${lt_cv_archive_cmds_need_lc-yes}
7750
# The second clause should only fire when bootstrapping the
7751
# libtool distribution, otherwise you forgot to ship ltmain.sh
7752
# with your package, and you will get complaints that there are
7753
# no rules to generate ltmain.sh.
7754
if test -f "$ltmain"; then
7757
# If there is no Makefile yet, we rely on a make rule to execute
7758
# `config.status --recheck' to rerun these tests and create the
7759
# libtool script then.
7760
test -f Makefile && make "$ltmain"
7763
if test -f "$ltmain"; then
7764
trap "$rm \"${ofile}T\"; exit 1" 1 2 15
7767
echo creating $ofile
7769
# Now quote all the things that may contain metacharacters while being
7770
# careful not to overquote the AC_SUBSTed values. We take copies of the
7771
# variables and quote the copies for generation of the libtool script.
7772
for var in echo old_CC old_CFLAGS \
7773
AR AR_FLAGS CC LD LN_S NM SHELL \
7774
reload_flag reload_cmds wl \
7775
pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7776
thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7777
library_names_spec soname_spec \
7778
RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7779
old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7780
postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7781
old_striplib striplib file_magic_cmd export_symbols_cmds \
7782
deplibs_check_method allow_undefined_flag no_undefined_flag \
7783
finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7784
global_symbol_to_c_name_address \
7785
hardcode_libdir_flag_spec hardcode_libdir_separator \
7786
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7787
compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7790
reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7791
old_postinstall_cmds | old_postuninstall_cmds | \
7792
export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7793
extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7794
postinstall_cmds | postuninstall_cmds | \
7795
finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7796
# Double-quote double-evaled strings.
7797
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7800
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7805
cat <<__EOF__ > "${ofile}T"
7808
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7809
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7810
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
7812
# Copyright (C) 1996-2000 Free Software Foundation, Inc.
7813
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7815
# This program is free software; you can redistribute it and/or modify
7816
# it under the terms of the GNU General Public License as published by
7817
# the Free Software Foundation; either version 2 of the License, or
7818
# (at your option) any later version.
7820
# This program is distributed in the hope that it will be useful, but
7821
# WITHOUT ANY WARRANTY; without even the implied warranty of
7822
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7823
# General Public License for more details.
7825
# You should have received a copy of the GNU General Public License
7826
# along with this program; if not, write to the Free Software
7827
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7829
# As a special exception to the GNU General Public License, if you
7830
# distribute this file as part of a program that contains a
7831
# configuration script generated by Autoconf, you may include it under
7832
# the same distribution terms that you use for the rest of that program.
7834
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
7835
Xsed="sed -e s/^X//"
7837
# The HP-UX ksh and POSIX shell print the target directory to stdout
7839
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7841
# ### BEGIN LIBTOOL CONFIG
7843
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7845
# Shell to use when invoking shell scripts.
7848
# Whether or not to build shared libraries.
7849
build_libtool_libs=$enable_shared
7851
# Whether or not to build static libraries.
7852
build_old_libs=$enable_static
7854
# Whether or not to add -lc for building shared libraries.
7855
build_libtool_need_lc=$need_lc
7857
# Whether or not to optimize for fast installation.
7858
fast_install=$enable_fast_install
7861
host_alias=$host_alias
7864
# An echo program that does not interpret backslashes.
7869
AR_FLAGS=$lt_AR_FLAGS
7871
# The default C compiler.
7874
# Is the compiler the GNU C compiler?
7877
# The linker used to build libraries.
7880
# Whether we need hard or soft links.
7883
# A BSD-compatible nm program.
7886
# A symbol stripping program
7889
# Used to examine libraries when file_magic_cmd begins "file"
7890
MAGIC_CMD=$MAGIC_CMD
7892
# Used on cygwin: DLL creation program.
7895
# Used on cygwin: object dumper.
7898
# Used on cygwin: assembler.
7901
# The name of the directory that contains temporary libtool files.
7904
# How to create reloadable object files.
7905
reload_flag=$lt_reload_flag
7906
reload_cmds=$lt_reload_cmds
7908
# How to pass a linker flag through the compiler.
7911
# Object file suffix (normally "o").
7914
# Old archive suffix (normally "a").
7917
# Executable file suffix (normally "").
7920
# Additional compiler flags for building library objects.
7921
pic_flag=$lt_pic_flag
7924
# Does compiler simultaneously support -c and -o options?
7925
compiler_c_o=$lt_compiler_c_o
7927
# Can we write directly to a .lo ?
7928
compiler_o_lo=$lt_compiler_o_lo
7930
# Must we lock files when doing compilation ?
7931
need_locks=$lt_need_locks
7933
# Do we need the lib prefix for modules?
7934
need_lib_prefix=$need_lib_prefix
7936
# Do we need a version for libraries?
7937
need_version=$need_version
7939
# Whether dlopen is supported.
7940
dlopen_support=$enable_dlopen
7942
# Whether dlopen of programs is supported.
7943
dlopen_self=$enable_dlopen_self
7945
# Whether dlopen of statically linked programs is supported.
7946
dlopen_self_static=$enable_dlopen_self_static
7948
# Compiler flag to prevent dynamic linking.
7949
link_static_flag=$lt_link_static_flag
7951
# Compiler flag to turn off builtin functions.
7952
no_builtin_flag=$lt_no_builtin_flag
7954
# Compiler flag to allow reflexive dlopens.
7955
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7957
# Compiler flag to generate shared objects directly from archives.
7958
whole_archive_flag_spec=$lt_whole_archive_flag_spec
7960
# Compiler flag to generate thread-safe objects.
7961
thread_safe_flag_spec=$lt_thread_safe_flag_spec
7963
# Library versioning type.
7964
version_type=$version_type
7966
# Format of library name prefix.
7967
libname_spec=$lt_libname_spec
7969
# List of archive names. First name is the real one, the rest are links.
7970
# The last name is the one that the linker finds with -lNAME.
7971
library_names_spec=$lt_library_names_spec
7973
# The coded name of the library, if different from the real name.
7974
soname_spec=$lt_soname_spec
7976
# Commands used to build and install an old-style archive.
7978
old_archive_cmds=$lt_old_archive_cmds
7979
old_postinstall_cmds=$lt_old_postinstall_cmds
7980
old_postuninstall_cmds=$lt_old_postuninstall_cmds
7982
# Create an old-style archive from a shared archive.
7983
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7985
# Create a temporary old-style archive to link instead of a shared archive.
7986
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7988
# Commands used to build and install a shared archive.
7989
archive_cmds=$lt_archive_cmds
7990
archive_expsym_cmds=$lt_archive_expsym_cmds
7991
postinstall_cmds=$lt_postinstall_cmds
7992
postuninstall_cmds=$lt_postuninstall_cmds
7994
# Commands to strip libraries.
7995
old_striplib=$lt_old_striplib
7996
striplib=$lt_striplib
7998
# Method to check whether dependent libraries are shared objects.
7999
deplibs_check_method=$lt_deplibs_check_method
8001
# Command to use when deplibs_check_method == file_magic.
8002
file_magic_cmd=$lt_file_magic_cmd
8004
# Flag that allows shared libraries with undefined symbols to be built.
8005
allow_undefined_flag=$lt_allow_undefined_flag
8007
# Flag that forces no undefined symbols.
8008
no_undefined_flag=$lt_no_undefined_flag
8010
# Commands used to finish a libtool library installation in a directory.
8011
finish_cmds=$lt_finish_cmds
8013
# Same as above, but a single script fragment to be evaled but not shown.
8014
finish_eval=$lt_finish_eval
8016
# Take the output of nm and produce a listing of raw symbols and C names.
8017
global_symbol_pipe=$lt_global_symbol_pipe
8019
# Transform the output of nm in a proper C declaration
8020
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8022
# Transform the output of nm in a C name address pair
8023
global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8025
# This is the shared library runtime path variable.
8026
runpath_var=$runpath_var
8028
# This is the shared library path variable.
8029
shlibpath_var=$shlibpath_var
8031
# Is shlibpath searched before the hard-coded library search path?
8032
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8034
# How to hardcode a shared library path into an executable.
8035
hardcode_action=$hardcode_action
8037
# Whether we should hardcode library paths into libraries.
8038
hardcode_into_libs=$hardcode_into_libs
8040
# Flag to hardcode \$libdir into a binary during linking.
8041
# This must work even if \$libdir does not exist.
8042
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8044
# Whether we need a single -rpath flag with a separated argument.
8045
hardcode_libdir_separator=$lt_hardcode_libdir_separator
8047
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8049
hardcode_direct=$hardcode_direct
8051
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8053
hardcode_minus_L=$hardcode_minus_L
8055
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8056
# the resulting binary.
8057
hardcode_shlibpath_var=$hardcode_shlibpath_var
8059
# Variables whose values should be saved in libtool wrapper scripts and
8060
# restored at relink time.
8061
variables_saved_for_relink="$variables_saved_for_relink"
8063
# Whether libtool must link a program against all its dependency libraries.
8064
link_all_deplibs=$link_all_deplibs
8066
# Compile-time system search path for libraries
8067
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8069
# Run-time system search path for libraries
8070
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8072
# Fix the shell variable \$srcfile for the compiler.
8073
fix_srcfile_path="$fix_srcfile_path"
8075
# Set to yes if exported symbols are required.
8076
always_export_symbols=$always_export_symbols
8078
# The commands to list exported symbols.
8079
export_symbols_cmds=$lt_export_symbols_cmds
8081
# The commands to extract the exported symbol list from a shared archive.
8082
extract_expsyms_cmds=$lt_extract_expsyms_cmds
8084
# Symbols that should not be listed in the preloaded symbols.
8085
exclude_expsyms=$lt_exclude_expsyms
8087
# Symbols that must always be exported.
8088
include_expsyms=$lt_include_expsyms
8090
# ### END LIBTOOL CONFIG
8096
cat <<\EOF >> "${ofile}T"
8098
# AIX sometimes has problems with the GCC collect2 program. For some
8099
# reason, if we set the COLLECT_NAMES environment variable, the problems
8100
# vanish in a puff of smoke.
8101
if test "X${COLLECT_NAMES+set}" != Xset; then
8103
export COLLECT_NAMES
8110
cygwin* | mingw* | pw32* | os2*)
8111
cat <<'EOF' >> "${ofile}T"
8112
# This is a source program that is used to create dlls on Windows
8113
# Don't remove nor modify the starting and closing comments
8114
# /* ltdll.c starts here */
8115
# #define WIN32_LEAN_AND_MEAN
8116
# #include <windows.h>
8117
# #undef WIN32_LEAN_AND_MEAN
8118
# #include <stdio.h>
8120
# #ifndef __CYGWIN__
8121
# # ifdef __CYGWIN32__
8122
# # define __CYGWIN__ __CYGWIN32__
8126
# #ifdef __cplusplus
8129
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8130
# #ifdef __cplusplus
8135
# #include <cygwin/cygwin_dll.h>
8136
# DECLARE_CYGWIN_DLL( DllMain );
8138
# HINSTANCE __hDllInstance_base;
8141
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8143
# __hDllInstance_base = hInst;
8146
# /* ltdll.c ends here */
8147
# This is a source program that is used to create import libraries
8148
# on Windows for dlls which lack them. Don't remove nor modify the
8149
# starting and closing comments
8150
# /* impgen.c starts here */
8151
# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
8153
# This file is part of GNU libtool.
8155
# This program is free software; you can redistribute it and/or modify
8156
# it under the terms of the GNU General Public License as published by
8157
# the Free Software Foundation; either version 2 of the License, or
8158
# (at your option) any later version.
8160
# This program is distributed in the hope that it will be useful,
8161
# but WITHOUT ANY WARRANTY; without even the implied warranty of
8162
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8163
# GNU General Public License for more details.
8165
# You should have received a copy of the GNU General Public License
8166
# along with this program; if not, write to the Free Software
8167
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8170
# #include <stdio.h> /* for printf() */
8171
# #include <unistd.h> /* for open(), lseek(), read() */
8172
# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
8173
# #include <string.h> /* for strdup() */
8175
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
8177
# #define O_BINARY 0
8180
# static unsigned int
8181
# pe_get16 (fd, offset)
8185
# unsigned char b[2];
8186
# lseek (fd, offset, SEEK_SET);
8188
# return b[0] + (b[1]<<8);
8191
# static unsigned int
8192
# pe_get32 (fd, offset)
8196
# unsigned char b[4];
8197
# lseek (fd, offset, SEEK_SET);
8199
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8202
# static unsigned int
8206
# unsigned char *b = ptr;
8207
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8216
# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8217
# unsigned long export_rva, export_size, nsections, secptr, expptr;
8218
# unsigned long name_rvas, nexp;
8219
# unsigned char *expdata, *erva;
8220
# char *filename, *dll_name;
8222
# filename = argv[1];
8224
# dll = open(filename, O_RDONLY|O_BINARY);
8228
# dll_name = filename;
8230
# for (i=0; filename[i]; i++)
8231
# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
8232
# dll_name = filename + i +1;
8234
# pe_header_offset = pe_get32 (dll, 0x3c);
8235
# opthdr_ofs = pe_header_offset + 4 + 20;
8236
# num_entries = pe_get32 (dll, opthdr_ofs + 92);
8238
# if (num_entries < 1) /* no exports */
8241
# export_rva = pe_get32 (dll, opthdr_ofs + 96);
8242
# export_size = pe_get32 (dll, opthdr_ofs + 100);
8243
# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8244
# secptr = (pe_header_offset + 4 + 20 +
8245
# pe_get16 (dll, pe_header_offset + 4 + 16));
8248
# for (i = 0; i < nsections; i++)
8251
# unsigned long secptr1 = secptr + 40 * i;
8252
# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8253
# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8254
# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8255
# lseek(dll, secptr1, SEEK_SET);
8256
# read(dll, sname, 8);
8257
# if (vaddr <= export_rva && vaddr+vsize > export_rva)
8259
# expptr = fptr + (export_rva - vaddr);
8260
# if (export_rva + export_size > vaddr + vsize)
8261
# export_size = vsize - (export_rva - vaddr);
8266
# expdata = (unsigned char*)malloc(export_size);
8267
# lseek (dll, expptr, SEEK_SET);
8268
# read (dll, expdata, export_size);
8269
# erva = expdata - export_rva;
8271
# nexp = pe_as32 (expdata+24);
8272
# name_rvas = pe_as32 (expdata+32);
8274
# printf ("EXPORTS\n");
8275
# for (i = 0; i<nexp; i++)
8277
# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8278
# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8283
# /* impgen.c ends here */
8289
# We use sed instead of cat because bash on DJGPP gets confused if
8290
# if finds mixed CR/LF and LF-only lines. Since sed operates in
8291
# text mode, it properly converts lines to CR/LF. This bash problem
8292
# is reportedly fixed, but why not run on old versions too?
8293
sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8295
mv -f "${ofile}T" "$ofile" || \
8296
(rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8304
# This can be used to rebuild libtool when needed
8305
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8307
# Always use our own libtool.
8308
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8310
# Prevent multiple expansion
8314
# **************************************************************************
8315
if test x"$prefix" = x"NONE"; then
8319
# These are used for constructing the soqt-config file.
8320
SOGUI_EXTRA_CPPFLAGS=$CPPFLAGS
8322
SOGUI_EXTRA_CFLAGS=$CFLAGS
8324
SOGUI_EXTRA_CXXFLAGS=$CXXFLAGS
8326
SOGUI_EXTRA_LDFLAGS=$LDFLAGS
8328
SOGUI_EXTRA_LIBS=$LIBS
8331
# SIM_EXPAND_DIR_VARS
8333
# **************************************************************************
8336
# Check whether --with-alternate or --without-alternate was given.
8337
if test "${with_alternate+set}" = set; then
8338
withval="$with_alternate"
8347
# Check whether --with-suffix or --without-suffix was given.
8348
if test "${with_suffix+set}" = set; then
8349
withval="$with_suffix"
8357
# **************************************************************************
8358
# If you just want to generate docs, ignore all the build-related tests
8360
sim_ac_build_library=true
8361
# Check whether --enable-build or --disable-build was given.
8362
if test "${enable_build+set}" = set; then
8363
enableval="$enable_build"
8366
no) sim_ac_build_library=false ;;
8373
if $sim_ac_build_library; then
8375
BUILD_LIBRARY_FALSE='#'
8377
BUILD_LIBRARY_TRUE='#'
8378
BUILD_LIBRARY_FALSE=
8381
# *******************************************************************
8382
# * Do we want to build the documentation?
8383
# *******************************************************************
8388
# Check whether --enable-html or --disable-html was given.
8389
if test "${enable_html+set}" = set; then
8390
enableval="$enable_html"
8392
yes | true) want_html=yes ;;
8401
htmldir="$datadir/SoQt/html"
8404
# do nothing - absolute path
8407
htmldir="\${prefix}/$htmldir"
8413
# Check whether --enable-man or --disable-man was given.
8414
if test "${enable_man+set}" = set; then
8415
enableval="$enable_man"
8417
yes | true) want_man=yes ;;
8424
# Used in the Doxygen parameter file.
8425
SOGUI_DOC_HTML=`echo $want_html | tr 'a-z' 'A-Z'`
8427
SOGUI_DOC_MAN=`echo $want_man | tr 'a-z' 'A-Z'`
8430
sogui_build_dir=`pwd`
8432
sogui_src_dir=`cd $srcdir; pwd`
8434
sogui_html_dir=`pwd`/html
8436
sogui_man_dir=`pwd`/man
8441
if test x"$want_man" = x"yes"; then
8442
BUILD_MANPAGES_TRUE=
8443
BUILD_MANPAGES_FALSE='#'
8445
BUILD_MANPAGES_TRUE='#'
8446
BUILD_MANPAGES_FALSE=
8450
if test x"$want_html" = x"yes"; then
8451
BUILD_HTMLPAGES_TRUE=
8452
BUILD_HTMLPAGES_FALSE='#'
8454
BUILD_HTMLPAGES_TRUE='#'
8455
BUILD_HTMLPAGES_FALSE=
8458
if test x"$want_man" = x"yes"; then
8459
if test x${sim_ac_configuration_settings+set} != xset; then
8460
sim_ac_configuration_settings="manpage installation:$mandir"
8462
sim_ac_configuration_settings="$sim_ac_configuration_settings|manpage installation:$mandir"
8467
if test x"$want_html" = x"yes"; then
8468
if test x${sim_ac_configuration_settings+set} != xset; then
8469
sim_ac_configuration_settings="HTML installation:$htmldir"
8471
sim_ac_configuration_settings="$sim_ac_configuration_settings|HTML installation:$htmldir"
8476
if test x"$want_html" != xno -o x"$want_man" != xno; then
8479
# Check whether --with-doxygen or --without-doxygen was given.
8480
if test "${with_doxygen+set}" = set; then
8481
withval="$with_doxygen"
8487
sim_ac_doxygen_avail=no
8489
if test x"$with_doxygen" != xno; then
8491
if test x"$with_doxygen" != xyes; then
8492
sim_ac_path=${with_doxygen}:$PATH
8495
# Extract the first word of "doxygen", so it can be a program name with args.
8496
set dummy doxygen; ac_word=$2
8497
echo "$as_me:$LINENO: checking for $ac_word" >&5
8498
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8499
if test "${ac_cv_path_sim_ac_doxygen_exe+set}" = set; then
8500
echo $ECHO_N "(cached) $ECHO_C" >&6
8502
case $sim_ac_doxygen_exe in
8504
ac_cv_path_sim_ac_doxygen_exe="$sim_ac_doxygen_exe" # Let the user override the test with a path.
8507
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8508
for as_dir in $sim_ac_path
8511
test -z "$as_dir" && as_dir=.
8512
for ac_exec_ext in '' $ac_executable_extensions; do
8513
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8514
ac_cv_path_sim_ac_doxygen_exe="$as_dir/$ac_word$ac_exec_ext"
8515
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8521
test -z "$ac_cv_path_sim_ac_doxygen_exe" && ac_cv_path_sim_ac_doxygen_exe="false"
8525
sim_ac_doxygen_exe=$ac_cv_path_sim_ac_doxygen_exe
8527
if test -n "$sim_ac_doxygen_exe"; then
8528
echo "$as_me:$LINENO: result: $sim_ac_doxygen_exe" >&5
8529
echo "${ECHO_T}$sim_ac_doxygen_exe" >&6
8531
echo "$as_me:$LINENO: result: no" >&5
8532
echo "${ECHO_T}no" >&6
8535
if test x"$sim_ac_doxygen_exe" = xfalse; then
8540
: ${sim_ac_message_file=$ac_aux_dir/m4/errors.txt}
8541
if test -f $sim_ac_message_file; then
8542
sim_ac_message="`sed -n -e '/^!no-doxygen$/,/^!/ { /^!/ d; p; }' <$sim_ac_message_file`"
8543
if test x"$sim_ac_message" = x""; then
8544
{ { echo "$as_me:$LINENO: error: no message named 'no-doxygen' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" >&5
8545
echo "$as_me: error: no message named 'no-doxygen' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" >&2;}
8546
{ (exit 1); exit 1; }; }
8548
eval "echo >&2 \"$sim_ac_message\""
8551
{ { echo "$as_me:$LINENO: error: file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" >&5
8552
echo "$as_me: error: file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" >&2;}
8553
{ (exit 1); exit 1; }; }
8559
{ { echo "$as_me:$LINENO: error: aborting" >&5
8560
echo "$as_me: error: aborting" >&2;}
8561
{ (exit 1); exit 1; }; }
8564
sim_ac_doxygen_avail=`$sim_ac_doxygen_exe -help 2> /dev/null | head -1 | sed 's%[^ ]\+ [^ ]\+ %%'`
8570
# Extract the first word of "perl", so it can be a program name with args.
8571
set dummy perl; ac_word=$2
8572
echo "$as_me:$LINENO: checking for $ac_word" >&5
8573
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8574
if test "${ac_cv_path_sim_ac_perl_exe+set}" = set; then
8575
echo $ECHO_N "(cached) $ECHO_C" >&6
8577
case $sim_ac_perl_exe in
8579
ac_cv_path_sim_ac_perl_exe="$sim_ac_perl_exe" # Let the user override the test with a path.
8582
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8586
test -z "$as_dir" && as_dir=.
8587
for ac_exec_ext in '' $ac_executable_extensions; do
8588
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8589
ac_cv_path_sim_ac_perl_exe="$as_dir/$ac_word$ac_exec_ext"
8590
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8596
test -z "$ac_cv_path_sim_ac_perl_exe" && ac_cv_path_sim_ac_perl_exe="false"
8600
sim_ac_perl_exe=$ac_cv_path_sim_ac_perl_exe
8602
if test -n "$sim_ac_perl_exe"; then
8603
echo "$as_me:$LINENO: result: $sim_ac_perl_exe" >&5
8604
echo "${ECHO_T}$sim_ac_perl_exe" >&6
8606
echo "$as_me:$LINENO: result: no" >&5
8607
echo "${ECHO_T}no" >&6
8610
if test x"$sim_ac_perl_exe" = xfalse; then
8611
{ echo "$as_me:$LINENO: WARNING: Could not find the Perl executable" >&5
8612
echo "$as_me: WARNING: Could not find the Perl executable" >&2;}
8616
# path_tag is used to identify paths in docs/coin.doxygen that needs to be
8617
# transformed using cygpath under cygwin.
8620
*-cygwin) path_tag="<PATH>" ;;
8631
BUILD_METAFILES_TRUE=
8632
BUILD_METAFILES_FALSE='#'
8634
BUILD_METAFILES_TRUE='#'
8635
BUILD_METAFILES_FALSE=
8640
if $sim_ac_build_library; then
8642
# **************************************************************************
8643
# Header files we might want.
8654
for ac_header in windows.h tlhelp32.h unistd.h sys/types.h sys/time.h X11/extensions/SGIMisc.h X11/Xproto.h X11/extensions/XInput.h netinet/in.h
8656
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8657
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8658
echo "$as_me:$LINENO: checking for $ac_header" >&5
8659
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8660
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8661
echo $ECHO_N "(cached) $ECHO_C" >&6
8663
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8664
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8666
# Is the header compilable?
8667
echo "$as_me:$LINENO: checking $ac_header usability" >&5
8668
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8669
cat >conftest.$ac_ext <<_ACEOF
8670
#line $LINENO "configure"
8671
#include "confdefs.h"
8672
$ac_includes_default
8673
#include <$ac_header>
8675
rm -f conftest.$ac_objext
8676
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8677
(eval $ac_compile) 2>&5
8679
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680
(exit $ac_status); } &&
8681
{ ac_try='test -s conftest.$ac_objext'
8682
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8685
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686
(exit $ac_status); }; }; then
8687
ac_header_compiler=yes
8689
echo "$as_me: failed program was:" >&5
8690
cat conftest.$ac_ext >&5
8691
ac_header_compiler=no
8693
rm -f conftest.$ac_objext conftest.$ac_ext
8694
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8695
echo "${ECHO_T}$ac_header_compiler" >&6
8697
# Is the header present?
8698
echo "$as_me:$LINENO: checking $ac_header presence" >&5
8699
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8700
cat >conftest.$ac_ext <<_ACEOF
8701
#line $LINENO "configure"
8702
#include "confdefs.h"
8703
#include <$ac_header>
8705
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8706
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8708
egrep -v '^ *\+' conftest.er1 >conftest.err
8710
cat conftest.err >&5
8711
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712
(exit $ac_status); } >/dev/null; then
8713
if test -s conftest.err; then
8714
ac_cpp_err=$ac_cxx_preproc_warn_flag
8721
if test -z "$ac_cpp_err"; then
8722
ac_header_preproc=yes
8724
echo "$as_me: failed program was:" >&5
8725
cat conftest.$ac_ext >&5
8726
ac_header_preproc=no
8728
rm -f conftest.err conftest.$ac_ext
8729
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8730
echo "${ECHO_T}$ac_header_preproc" >&6
8732
# So? What about this header?
8733
case $ac_header_compiler:$ac_header_preproc in
8735
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8736
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8737
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8738
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8740
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8741
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8742
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8743
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8744
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8745
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8747
echo "$as_me:$LINENO: checking for $ac_header" >&5
8748
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8749
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8750
echo $ECHO_N "(cached) $ECHO_C" >&6
8752
eval "$as_ac_Header=$ac_header_preproc"
8754
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8755
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8758
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8759
cat >>confdefs.h <<_ACEOF
8760
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8768
# *******************************************************************
8769
# Instead of getenv() on most Win32 platforms (not Windows CE).
8771
echo "$as_me:$LINENO: checking for GetEnvironmentVariable() function" >&5
8772
echo $ECHO_N "checking for GetEnvironmentVariable() function... $ECHO_C" >&6
8773
cat >conftest.$ac_ext <<_ACEOF
8774
#line $LINENO "configure"
8775
#include "confdefs.h"
8776
#include <windows.h>
8777
#ifdef F77_DUMMY_MAIN
8781
int F77_DUMMY_MAIN() { return 1; }
8786
(void)GetEnvironmentVariable("FOOBAR", NULL, 0);
8791
rm -f conftest.$ac_objext conftest$ac_exeext
8792
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8793
(eval $ac_link) 2>&5
8795
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8796
(exit $ac_status); } &&
8797
{ ac_try='test -s conftest$ac_exeext'
8798
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8801
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8802
(exit $ac_status); }; }; then
8803
echo "$as_me:$LINENO: result: yes" >&5
8804
echo "${ECHO_T}yes" >&6
8806
cat >>confdefs.h <<\_ACEOF
8807
#define HAVE_GETENVIRONMENTVARIABLE 1
8811
echo "$as_me: failed program was:" >&5
8812
cat conftest.$ac_ext >&5
8813
echo "$as_me:$LINENO: result: no" >&5
8814
echo "${ECHO_T}no" >&6
8816
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8818
# *******************************************************************
8819
# Win32 LoadLibrary() and friends available? (Used for Win32-specific
8823
# Check whether --enable-loadlibrary or --disable-loadlibrary was given.
8824
if test "${enable_loadlibrary+set}" = set; then
8825
enableval="$enable_loadlibrary"
8827
yes | true ) sim_ac_win32_loadlibrary=true ;;
8828
*) sim_ac_win32_loadlibrary=false ;;
8831
sim_ac_win32_loadlibrary=true
8834
if $sim_ac_win32_loadlibrary; then
8835
# Use SIM_AC_CHECK_HEADERS instead of .._HEADER to get the
8836
# HAVE_DLFCN_H symbol set up in config.h automatically.
8838
for ac_header in windows.h
8840
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8841
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8842
echo "$as_me:$LINENO: checking for $ac_header" >&5
8843
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8844
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8845
echo $ECHO_N "(cached) $ECHO_C" >&6
8847
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8848
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8850
# Is the header compilable?
8851
echo "$as_me:$LINENO: checking $ac_header usability" >&5
8852
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8853
cat >conftest.$ac_ext <<_ACEOF
8854
#line $LINENO "configure"
8855
#include "confdefs.h"
8856
$ac_includes_default
8857
#include <$ac_header>
8859
rm -f conftest.$ac_objext
8860
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8861
(eval $ac_compile) 2>&5
8863
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8864
(exit $ac_status); } &&
8865
{ ac_try='test -s conftest.$ac_objext'
8866
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8869
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870
(exit $ac_status); }; }; then
8871
ac_header_compiler=yes
8873
echo "$as_me: failed program was:" >&5
8874
cat conftest.$ac_ext >&5
8875
ac_header_compiler=no
8877
rm -f conftest.$ac_objext conftest.$ac_ext
8878
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8879
echo "${ECHO_T}$ac_header_compiler" >&6
8881
# Is the header present?
8882
echo "$as_me:$LINENO: checking $ac_header presence" >&5
8883
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8884
cat >conftest.$ac_ext <<_ACEOF
8885
#line $LINENO "configure"
8886
#include "confdefs.h"
8887
#include <$ac_header>
8889
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8890
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8892
egrep -v '^ *\+' conftest.er1 >conftest.err
8894
cat conftest.err >&5
8895
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896
(exit $ac_status); } >/dev/null; then
8897
if test -s conftest.err; then
8898
ac_cpp_err=$ac_cxx_preproc_warn_flag
8905
if test -z "$ac_cpp_err"; then
8906
ac_header_preproc=yes
8908
echo "$as_me: failed program was:" >&5
8909
cat conftest.$ac_ext >&5
8910
ac_header_preproc=no
8912
rm -f conftest.err conftest.$ac_ext
8913
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8914
echo "${ECHO_T}$ac_header_preproc" >&6
8916
# So? What about this header?
8917
case $ac_header_compiler:$ac_header_preproc in
8919
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8920
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8921
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8922
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8924
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8925
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8926
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8927
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8928
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8929
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
8931
echo "$as_me:$LINENO: checking for $ac_header" >&5
8932
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8933
if eval "test \"\${$as_ac_Header+set}\" = set"; then
8934
echo $ECHO_N "(cached) $ECHO_C" >&6
8936
eval "$as_ac_Header=$ac_header_preproc"
8938
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8939
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8942
if test `eval echo '${'$as_ac_Header'}'` = yes; then
8943
cat >>confdefs.h <<_ACEOF
8944
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8952
echo "$as_me:$LINENO: checking whether the Win32 LoadLibrary() method is available" >&5
8953
echo $ECHO_N "checking whether the Win32 LoadLibrary() method is available... $ECHO_C" >&6
8954
if test "${sim_cv_lib_loadlibrary_avail+set}" = set; then
8955
echo $ECHO_N "(cached) $ECHO_C" >&6
8957
cat >conftest.$ac_ext <<_ACEOF
8958
#line $LINENO "configure"
8959
#include "confdefs.h"
8962
#include <windows.h>
8963
#endif /* HAVE_WINDOWS_H */
8965
#ifdef F77_DUMMY_MAIN
8969
int F77_DUMMY_MAIN() { return 1; }
8974
(void)LoadLibrary(0L); (void)GetProcAddress(0L, 0L); (void)FreeLibrary(0L);
8979
rm -f conftest.$ac_objext conftest$ac_exeext
8980
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8981
(eval $ac_link) 2>&5
8983
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984
(exit $ac_status); } &&
8985
{ ac_try='test -s conftest$ac_exeext'
8986
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8989
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8990
(exit $ac_status); }; }; then
8991
sim_cv_lib_loadlibrary_avail=yes
8993
echo "$as_me: failed program was:" >&5
8994
cat conftest.$ac_ext >&5
8995
sim_cv_lib_loadlibrary_avail=no
8997
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8999
echo "$as_me:$LINENO: result: $sim_cv_lib_loadlibrary_avail" >&5
9000
echo "${ECHO_T}$sim_cv_lib_loadlibrary_avail" >&6
9002
if test x"$sim_cv_lib_loadlibrary_avail" = xyes; then
9004
cat >>confdefs.h <<\_ACEOF
9005
#define HAVE_WIN32_LOADLIBRARY 1
9015
# **************************************************************************
9016
# Search and set up necessary stuff to use Open Inventor or Coin.
9018
## Run AC_PATH_XTRA outside the if-then-else-fi, as AC_PATH_XTRA
9019
## AC_REQUIREs AC_PATH_X, which means AC_PATH_X will only get
9020
## expanded on the first AC_PATH_XTRA, which means trouble when
9021
## AC_PATH_XTRA uses $no_x="yes"? from AC_PATH_X to decide whether
9022
## or not to define X_DISPLAY_MISSING on X11-less systems.
9024
echo "$as_me:$LINENO: checking for X" >&5
9025
echo $ECHO_N "checking for X... $ECHO_C" >&6
9028
# Check whether --with-x or --without-x was given.
9029
if test "${with_x+set}" = set; then
9033
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9034
if test "x$with_x" = xno; then
9035
# The user explicitly disabled X.
9038
if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
9039
# Both variables are already set.
9042
if test "${ac_cv_have_x+set}" = set; then
9043
echo $ECHO_N "(cached) $ECHO_C" >&6
9045
# One or both of the vars are not set, and there is no cached value.
9046
ac_x_includes=no ac_x_libraries=no
9048
if mkdir conftest.dir; then
9050
# Make sure to not put "make" in the Imakefile rules, since we grep it out.
9051
cat >Imakefile <<'_ACEOF'
9053
@echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
9055
if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
9056
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9057
eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
9058
# Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9059
for ac_extension in a so sl; do
9060
if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
9061
test -f $ac_im_libdir/libX11.$ac_extension; then
9062
ac_im_usrlibdir=$ac_im_libdir; break
9065
# Screen out bogus values from the imake configuration. They are
9066
# bogus both because they are the default anyway, and because
9067
# using them would break gcc on systems where it needs fixed includes.
9068
case $ac_im_incroot in
9070
*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9072
case $ac_im_usrlibdir in
9074
*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9081
# Standard set of common directories for X headers.
9082
# Check X11 before X11Rn because it is often a symlink to the current release.
9094
/usr/local/X11/include
9095
/usr/local/X11R6/include
9096
/usr/local/X11R5/include
9097
/usr/local/X11R4/include
9099
/usr/local/include/X11
9100
/usr/local/include/X11R6
9101
/usr/local/include/X11R5
9102
/usr/local/include/X11R4
9106
/usr/XFree86/include/X11
9110
/usr/unsupported/include
9112
/usr/local/x11r5/include
9113
/usr/lpp/Xamples/include
9115
/usr/openwin/include
9116
/usr/openwin/share/include'
9118
if test "$ac_x_includes" = no; then
9119
# Guess where to find include files, by looking for Intrinsic.h.
9120
# First, try using that file with no special directory specified.
9121
cat >conftest.$ac_ext <<_ACEOF
9122
#line $LINENO "configure"
9123
#include "confdefs.h"
9124
#include <X11/Intrinsic.h>
9126
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9127
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9129
egrep -v '^ *\+' conftest.er1 >conftest.err
9131
cat conftest.err >&5
9132
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133
(exit $ac_status); } >/dev/null; then
9134
if test -s conftest.err; then
9135
ac_cpp_err=$ac_cxx_preproc_warn_flag
9142
if test -z "$ac_cpp_err"; then
9143
# We can compile using X headers with no special include directory.
9146
echo "$as_me: failed program was:" >&5
9147
cat conftest.$ac_ext >&5
9148
for ac_dir in $ac_x_header_dirs; do
9149
if test -r "$ac_dir/X11/Intrinsic.h"; then
9150
ac_x_includes=$ac_dir
9155
rm -f conftest.err conftest.$ac_ext
9156
fi # $ac_x_includes = no
9158
if test "$ac_x_libraries" = no; then
9159
# Check for the libraries.
9160
# See if we find them without any special options.
9161
# Don't add to $LIBS permanently.
9164
cat >conftest.$ac_ext <<_ACEOF
9165
#line $LINENO "configure"
9166
#include "confdefs.h"
9167
#include <X11/Intrinsic.h>
9168
#ifdef F77_DUMMY_MAIN
9172
int F77_DUMMY_MAIN() { return 1; }
9182
rm -f conftest.$ac_objext conftest$ac_exeext
9183
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9184
(eval $ac_link) 2>&5
9186
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9187
(exit $ac_status); } &&
9188
{ ac_try='test -s conftest$ac_exeext'
9189
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9192
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193
(exit $ac_status); }; }; then
9195
# We can link X programs with no special library path.
9198
echo "$as_me: failed program was:" >&5
9199
cat conftest.$ac_ext >&5
9201
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9203
# Don't even attempt the hair of trying to link an X program!
9204
for ac_extension in a so sl; do
9205
if test -r $ac_dir/libXt.$ac_extension; then
9206
ac_x_libraries=$ac_dir
9212
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9213
fi # $ac_x_libraries = no
9215
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
9216
# Didn't find X anywhere. Cache the known absence of X.
9217
ac_cv_have_x="have_x=no"
9219
# Record where we found X for the cache.
9220
ac_cv_have_x="have_x=yes \
9221
ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
9226
eval "$ac_cv_have_x"
9229
if test "$have_x" != yes; then
9230
echo "$as_me:$LINENO: result: $have_x" >&5
9231
echo "${ECHO_T}$have_x" >&6
9234
# If each of the values was on the command line, it overrides each guess.
9235
test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9236
test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9237
# Update the cache value to reflect the command line values.
9238
ac_cv_have_x="have_x=yes \
9239
ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
9240
echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9241
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
9244
if test "$no_x" = yes; then
9245
# Not all programs may use this symbol, but it does not hurt to define it.
9247
cat >>confdefs.h <<\_ACEOF
9248
#define X_DISPLAY_MISSING 1
9251
X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
9253
if test -n "$x_includes"; then
9254
X_CFLAGS="$X_CFLAGS -I$x_includes"
9257
# It would also be nice to do this for all -L options, not just this one.
9258
if test -n "$x_libraries"; then
9259
X_LIBS="$X_LIBS -L$x_libraries"
9260
# For Solaris; some versions of Sun CC require a space after -R and
9261
# others require no space. Words are not sufficient . . . .
9262
case `(uname -sr) 2>/dev/null` in
9264
echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
9265
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
9266
ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
9267
cat >conftest.$ac_ext <<_ACEOF
9268
#line $LINENO "configure"
9269
#include "confdefs.h"
9271
#ifdef F77_DUMMY_MAIN
9275
int F77_DUMMY_MAIN() { return 1; }
9285
rm -f conftest.$ac_objext conftest$ac_exeext
9286
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9287
(eval $ac_link) 2>&5
9289
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290
(exit $ac_status); } &&
9291
{ ac_try='test -s conftest$ac_exeext'
9292
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9295
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296
(exit $ac_status); }; }; then
9299
echo "$as_me: failed program was:" >&5
9300
cat conftest.$ac_ext >&5
9303
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9304
if test $ac_R_nospace = yes; then
9305
echo "$as_me:$LINENO: result: no" >&5
9306
echo "${ECHO_T}no" >&6
9307
X_LIBS="$X_LIBS -R$x_libraries"
9309
LIBS="$ac_xsave_LIBS -R $x_libraries"
9310
cat >conftest.$ac_ext <<_ACEOF
9311
#line $LINENO "configure"
9312
#include "confdefs.h"
9314
#ifdef F77_DUMMY_MAIN
9318
int F77_DUMMY_MAIN() { return 1; }
9328
rm -f conftest.$ac_objext conftest$ac_exeext
9329
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9330
(eval $ac_link) 2>&5
9332
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333
(exit $ac_status); } &&
9334
{ ac_try='test -s conftest$ac_exeext'
9335
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9338
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339
(exit $ac_status); }; }; then
9342
echo "$as_me: failed program was:" >&5
9343
cat conftest.$ac_ext >&5
9346
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9347
if test $ac_R_space = yes; then
9348
echo "$as_me:$LINENO: result: yes" >&5
9349
echo "${ECHO_T}yes" >&6
9350
X_LIBS="$X_LIBS -R $x_libraries"
9352
echo "$as_me:$LINENO: result: neither works" >&5
9353
echo "${ECHO_T}neither works" >&6
9360
# Check for system-dependent libraries X programs must link with.
9361
# Do this before checking for the system-independent R6 libraries
9362
# (-lICE), since we may need -lsocket or whatever for X linking.
9364
if test "$ISC" = yes; then
9365
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
9367
# Martyn Johnson says this is needed for Ultrix, if the X
9368
# libraries were built with DECnet support. And Karl Berry says
9369
# the Alpha needs dnet_stub (dnet does not exist).
9370
ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
9371
cat >conftest.$ac_ext <<_ACEOF
9372
#line $LINENO "configure"
9373
#include "confdefs.h"
9375
/* Override any gcc2 internal prototype to avoid an error. */
9379
/* We use char because int might match the return type of a gcc2
9380
builtin and then its argument prototype would still apply. */
9381
char XOpenDisplay ();
9382
#ifdef F77_DUMMY_MAIN
9386
int F77_DUMMY_MAIN() { return 1; }
9396
rm -f conftest.$ac_objext conftest$ac_exeext
9397
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9398
(eval $ac_link) 2>&5
9400
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401
(exit $ac_status); } &&
9402
{ ac_try='test -s conftest$ac_exeext'
9403
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9406
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9407
(exit $ac_status); }; }; then
9410
echo "$as_me: failed program was:" >&5
9411
cat conftest.$ac_ext >&5
9412
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
9413
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
9414
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
9415
echo $ECHO_N "(cached) $ECHO_C" >&6
9417
ac_check_lib_save_LIBS=$LIBS
9419
cat >conftest.$ac_ext <<_ACEOF
9420
#line $LINENO "configure"
9421
#include "confdefs.h"
9423
/* Override any gcc2 internal prototype to avoid an error. */
9427
/* We use char because int might match the return type of a gcc2
9428
builtin and then its argument prototype would still apply. */
9430
#ifdef F77_DUMMY_MAIN
9434
int F77_DUMMY_MAIN() { return 1; }
9444
rm -f conftest.$ac_objext conftest$ac_exeext
9445
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9446
(eval $ac_link) 2>&5
9448
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449
(exit $ac_status); } &&
9450
{ ac_try='test -s conftest$ac_exeext'
9451
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9454
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455
(exit $ac_status); }; }; then
9456
ac_cv_lib_dnet_dnet_ntoa=yes
9458
echo "$as_me: failed program was:" >&5
9459
cat conftest.$ac_ext >&5
9460
ac_cv_lib_dnet_dnet_ntoa=no
9462
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9463
LIBS=$ac_check_lib_save_LIBS
9465
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
9466
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
9467
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
9468
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
9471
if test $ac_cv_lib_dnet_dnet_ntoa = no; then
9472
echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
9473
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
9474
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
9475
echo $ECHO_N "(cached) $ECHO_C" >&6
9477
ac_check_lib_save_LIBS=$LIBS
9478
LIBS="-ldnet_stub $LIBS"
9479
cat >conftest.$ac_ext <<_ACEOF
9480
#line $LINENO "configure"
9481
#include "confdefs.h"
9483
/* Override any gcc2 internal prototype to avoid an error. */
9487
/* We use char because int might match the return type of a gcc2
9488
builtin and then its argument prototype would still apply. */
9490
#ifdef F77_DUMMY_MAIN
9494
int F77_DUMMY_MAIN() { return 1; }
9504
rm -f conftest.$ac_objext conftest$ac_exeext
9505
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9506
(eval $ac_link) 2>&5
9508
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9509
(exit $ac_status); } &&
9510
{ ac_try='test -s conftest$ac_exeext'
9511
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9514
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515
(exit $ac_status); }; }; then
9516
ac_cv_lib_dnet_stub_dnet_ntoa=yes
9518
echo "$as_me: failed program was:" >&5
9519
cat conftest.$ac_ext >&5
9520
ac_cv_lib_dnet_stub_dnet_ntoa=no
9522
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9523
LIBS=$ac_check_lib_save_LIBS
9525
echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
9526
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
9527
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
9528
X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
9533
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9534
LIBS="$ac_xsave_LIBS"
9536
# msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
9537
# to get the SysV transport functions.
9538
# Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
9540
# The nsl library prevents programs from opening the X display
9541
# on Irix 5.2, according to T.E. Dickey.
9542
# The functions gethostbyname, getservbyname, and inet_addr are
9543
# in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
9544
echo "$as_me:$LINENO: checking for gethostbyname" >&5
9545
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
9546
if test "${ac_cv_func_gethostbyname+set}" = set; then
9547
echo $ECHO_N "(cached) $ECHO_C" >&6
9549
cat >conftest.$ac_ext <<_ACEOF
9550
#line $LINENO "configure"
9551
#include "confdefs.h"
9552
/* System header to define __stub macros and hopefully few prototypes,
9553
which can conflict with char gethostbyname (); below. */
9555
/* Override any gcc2 internal prototype to avoid an error. */
9559
/* We use char because int might match the return type of a gcc2
9560
builtin and then its argument prototype would still apply. */
9561
char gethostbyname ();
9564
#ifdef F77_DUMMY_MAIN
9568
int F77_DUMMY_MAIN() { return 1; }
9573
/* The GNU C library defines this for functions which it implements
9574
to always fail with ENOSYS. Some functions are actually named
9575
something starting with __ and the normal name is an alias. */
9576
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
9586
rm -f conftest.$ac_objext conftest$ac_exeext
9587
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9588
(eval $ac_link) 2>&5
9590
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591
(exit $ac_status); } &&
9592
{ ac_try='test -s conftest$ac_exeext'
9593
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9596
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9597
(exit $ac_status); }; }; then
9598
ac_cv_func_gethostbyname=yes
9600
echo "$as_me: failed program was:" >&5
9601
cat conftest.$ac_ext >&5
9602
ac_cv_func_gethostbyname=no
9604
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9606
echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
9607
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
9609
if test $ac_cv_func_gethostbyname = no; then
9610
echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
9611
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
9612
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
9613
echo $ECHO_N "(cached) $ECHO_C" >&6
9615
ac_check_lib_save_LIBS=$LIBS
9617
cat >conftest.$ac_ext <<_ACEOF
9618
#line $LINENO "configure"
9619
#include "confdefs.h"
9621
/* Override any gcc2 internal prototype to avoid an error. */
9625
/* We use char because int might match the return type of a gcc2
9626
builtin and then its argument prototype would still apply. */
9627
char gethostbyname ();
9628
#ifdef F77_DUMMY_MAIN
9632
int F77_DUMMY_MAIN() { return 1; }
9642
rm -f conftest.$ac_objext conftest$ac_exeext
9643
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9644
(eval $ac_link) 2>&5
9646
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647
(exit $ac_status); } &&
9648
{ ac_try='test -s conftest$ac_exeext'
9649
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9652
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9653
(exit $ac_status); }; }; then
9654
ac_cv_lib_nsl_gethostbyname=yes
9656
echo "$as_me: failed program was:" >&5
9657
cat conftest.$ac_ext >&5
9658
ac_cv_lib_nsl_gethostbyname=no
9660
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9661
LIBS=$ac_check_lib_save_LIBS
9663
echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
9664
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
9665
if test $ac_cv_lib_nsl_gethostbyname = yes; then
9666
X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
9669
if test $ac_cv_lib_nsl_gethostbyname = no; then
9670
echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
9671
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
9672
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
9673
echo $ECHO_N "(cached) $ECHO_C" >&6
9675
ac_check_lib_save_LIBS=$LIBS
9677
cat >conftest.$ac_ext <<_ACEOF
9678
#line $LINENO "configure"
9679
#include "confdefs.h"
9681
/* Override any gcc2 internal prototype to avoid an error. */
9685
/* We use char because int might match the return type of a gcc2
9686
builtin and then its argument prototype would still apply. */
9687
char gethostbyname ();
9688
#ifdef F77_DUMMY_MAIN
9692
int F77_DUMMY_MAIN() { return 1; }
9702
rm -f conftest.$ac_objext conftest$ac_exeext
9703
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9704
(eval $ac_link) 2>&5
9706
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707
(exit $ac_status); } &&
9708
{ ac_try='test -s conftest$ac_exeext'
9709
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9712
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713
(exit $ac_status); }; }; then
9714
ac_cv_lib_bsd_gethostbyname=yes
9716
echo "$as_me: failed program was:" >&5
9717
cat conftest.$ac_ext >&5
9718
ac_cv_lib_bsd_gethostbyname=no
9720
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9721
LIBS=$ac_check_lib_save_LIBS
9723
echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
9724
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
9725
if test $ac_cv_lib_bsd_gethostbyname = yes; then
9726
X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
9732
# lieder@skyler.mavd.honeywell.com says without -lsocket,
9733
# socket/setsockopt and other routines are undefined under SCO ODT
9734
# 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
9735
# on later versions), says Simon Leinen: it contains gethostby*
9736
# variants that don't use the nameserver (or something). -lsocket
9737
# must be given before -lnsl if both are needed. We assume that
9738
# if connect needs -lnsl, so does gethostbyname.
9739
echo "$as_me:$LINENO: checking for connect" >&5
9740
echo $ECHO_N "checking for connect... $ECHO_C" >&6
9741
if test "${ac_cv_func_connect+set}" = set; then
9742
echo $ECHO_N "(cached) $ECHO_C" >&6
9744
cat >conftest.$ac_ext <<_ACEOF
9745
#line $LINENO "configure"
9746
#include "confdefs.h"
9747
/* System header to define __stub macros and hopefully few prototypes,
9748
which can conflict with char connect (); below. */
9750
/* Override any gcc2 internal prototype to avoid an error. */
9754
/* We use char because int might match the return type of a gcc2
9755
builtin and then its argument prototype would still apply. */
9759
#ifdef F77_DUMMY_MAIN
9763
int F77_DUMMY_MAIN() { return 1; }
9768
/* The GNU C library defines this for functions which it implements
9769
to always fail with ENOSYS. Some functions are actually named
9770
something starting with __ and the normal name is an alias. */
9771
#if defined (__stub_connect) || defined (__stub___connect)
9781
rm -f conftest.$ac_objext conftest$ac_exeext
9782
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9783
(eval $ac_link) 2>&5
9785
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786
(exit $ac_status); } &&
9787
{ ac_try='test -s conftest$ac_exeext'
9788
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9791
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9792
(exit $ac_status); }; }; then
9793
ac_cv_func_connect=yes
9795
echo "$as_me: failed program was:" >&5
9796
cat conftest.$ac_ext >&5
9797
ac_cv_func_connect=no
9799
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9801
echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
9802
echo "${ECHO_T}$ac_cv_func_connect" >&6
9804
if test $ac_cv_func_connect = no; then
9805
echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
9806
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
9807
if test "${ac_cv_lib_socket_connect+set}" = set; then
9808
echo $ECHO_N "(cached) $ECHO_C" >&6
9810
ac_check_lib_save_LIBS=$LIBS
9811
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
9812
cat >conftest.$ac_ext <<_ACEOF
9813
#line $LINENO "configure"
9814
#include "confdefs.h"
9816
/* Override any gcc2 internal prototype to avoid an error. */
9820
/* We use char because int might match the return type of a gcc2
9821
builtin and then its argument prototype would still apply. */
9823
#ifdef F77_DUMMY_MAIN
9827
int F77_DUMMY_MAIN() { return 1; }
9837
rm -f conftest.$ac_objext conftest$ac_exeext
9838
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9839
(eval $ac_link) 2>&5
9841
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9842
(exit $ac_status); } &&
9843
{ ac_try='test -s conftest$ac_exeext'
9844
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9847
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848
(exit $ac_status); }; }; then
9849
ac_cv_lib_socket_connect=yes
9851
echo "$as_me: failed program was:" >&5
9852
cat conftest.$ac_ext >&5
9853
ac_cv_lib_socket_connect=no
9855
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9856
LIBS=$ac_check_lib_save_LIBS
9858
echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
9859
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
9860
if test $ac_cv_lib_socket_connect = yes; then
9861
X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
9866
# Guillermo Gomez says -lposix is necessary on A/UX.
9867
echo "$as_me:$LINENO: checking for remove" >&5
9868
echo $ECHO_N "checking for remove... $ECHO_C" >&6
9869
if test "${ac_cv_func_remove+set}" = set; then
9870
echo $ECHO_N "(cached) $ECHO_C" >&6
9872
cat >conftest.$ac_ext <<_ACEOF
9873
#line $LINENO "configure"
9874
#include "confdefs.h"
9875
/* System header to define __stub macros and hopefully few prototypes,
9876
which can conflict with char remove (); below. */
9878
/* Override any gcc2 internal prototype to avoid an error. */
9882
/* We use char because int might match the return type of a gcc2
9883
builtin and then its argument prototype would still apply. */
9887
#ifdef F77_DUMMY_MAIN
9891
int F77_DUMMY_MAIN() { return 1; }
9896
/* The GNU C library defines this for functions which it implements
9897
to always fail with ENOSYS. Some functions are actually named
9898
something starting with __ and the normal name is an alias. */
9899
#if defined (__stub_remove) || defined (__stub___remove)
9909
rm -f conftest.$ac_objext conftest$ac_exeext
9910
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9911
(eval $ac_link) 2>&5
9913
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914
(exit $ac_status); } &&
9915
{ ac_try='test -s conftest$ac_exeext'
9916
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9920
(exit $ac_status); }; }; then
9921
ac_cv_func_remove=yes
9923
echo "$as_me: failed program was:" >&5
9924
cat conftest.$ac_ext >&5
9925
ac_cv_func_remove=no
9927
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9929
echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
9930
echo "${ECHO_T}$ac_cv_func_remove" >&6
9932
if test $ac_cv_func_remove = no; then
9933
echo "$as_me:$LINENO: checking for remove in -lposix" >&5
9934
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
9935
if test "${ac_cv_lib_posix_remove+set}" = set; then
9936
echo $ECHO_N "(cached) $ECHO_C" >&6
9938
ac_check_lib_save_LIBS=$LIBS
9939
LIBS="-lposix $LIBS"
9940
cat >conftest.$ac_ext <<_ACEOF
9941
#line $LINENO "configure"
9942
#include "confdefs.h"
9944
/* Override any gcc2 internal prototype to avoid an error. */
9948
/* We use char because int might match the return type of a gcc2
9949
builtin and then its argument prototype would still apply. */
9951
#ifdef F77_DUMMY_MAIN
9955
int F77_DUMMY_MAIN() { return 1; }
9965
rm -f conftest.$ac_objext conftest$ac_exeext
9966
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9967
(eval $ac_link) 2>&5
9969
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970
(exit $ac_status); } &&
9971
{ ac_try='test -s conftest$ac_exeext'
9972
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9975
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976
(exit $ac_status); }; }; then
9977
ac_cv_lib_posix_remove=yes
9979
echo "$as_me: failed program was:" >&5
9980
cat conftest.$ac_ext >&5
9981
ac_cv_lib_posix_remove=no
9983
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9984
LIBS=$ac_check_lib_save_LIBS
9986
echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
9987
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
9988
if test $ac_cv_lib_posix_remove = yes; then
9989
X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
9994
# BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
9995
echo "$as_me:$LINENO: checking for shmat" >&5
9996
echo $ECHO_N "checking for shmat... $ECHO_C" >&6
9997
if test "${ac_cv_func_shmat+set}" = set; then
9998
echo $ECHO_N "(cached) $ECHO_C" >&6
10000
cat >conftest.$ac_ext <<_ACEOF
10001
#line $LINENO "configure"
10002
#include "confdefs.h"
10003
/* System header to define __stub macros and hopefully few prototypes,
10004
which can conflict with char shmat (); below. */
10005
#include <assert.h>
10006
/* Override any gcc2 internal prototype to avoid an error. */
10010
/* We use char because int might match the return type of a gcc2
10011
builtin and then its argument prototype would still apply. */
10015
#ifdef F77_DUMMY_MAIN
10016
# ifdef __cplusplus
10019
int F77_DUMMY_MAIN() { return 1; }
10024
/* The GNU C library defines this for functions which it implements
10025
to always fail with ENOSYS. Some functions are actually named
10026
something starting with __ and the normal name is an alias. */
10027
#if defined (__stub_shmat) || defined (__stub___shmat)
10037
rm -f conftest.$ac_objext conftest$ac_exeext
10038
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10039
(eval $ac_link) 2>&5
10041
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042
(exit $ac_status); } &&
10043
{ ac_try='test -s conftest$ac_exeext'
10044
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10045
(eval $ac_try) 2>&5
10047
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048
(exit $ac_status); }; }; then
10049
ac_cv_func_shmat=yes
10051
echo "$as_me: failed program was:" >&5
10052
cat conftest.$ac_ext >&5
10053
ac_cv_func_shmat=no
10055
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10057
echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
10058
echo "${ECHO_T}$ac_cv_func_shmat" >&6
10060
if test $ac_cv_func_shmat = no; then
10061
echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
10062
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
10063
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
10064
echo $ECHO_N "(cached) $ECHO_C" >&6
10066
ac_check_lib_save_LIBS=$LIBS
10068
cat >conftest.$ac_ext <<_ACEOF
10069
#line $LINENO "configure"
10070
#include "confdefs.h"
10072
/* Override any gcc2 internal prototype to avoid an error. */
10076
/* We use char because int might match the return type of a gcc2
10077
builtin and then its argument prototype would still apply. */
10079
#ifdef F77_DUMMY_MAIN
10080
# ifdef __cplusplus
10083
int F77_DUMMY_MAIN() { return 1; }
10093
rm -f conftest.$ac_objext conftest$ac_exeext
10094
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10095
(eval $ac_link) 2>&5
10097
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098
(exit $ac_status); } &&
10099
{ ac_try='test -s conftest$ac_exeext'
10100
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10101
(eval $ac_try) 2>&5
10103
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104
(exit $ac_status); }; }; then
10105
ac_cv_lib_ipc_shmat=yes
10107
echo "$as_me: failed program was:" >&5
10108
cat conftest.$ac_ext >&5
10109
ac_cv_lib_ipc_shmat=no
10111
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10112
LIBS=$ac_check_lib_save_LIBS
10114
echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
10115
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
10116
if test $ac_cv_lib_ipc_shmat = yes; then
10117
X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
10123
# Check for libraries that X11R6 Xt/Xaw programs need.
10124
ac_save_LDFLAGS=$LDFLAGS
10125
test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
10126
# SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
10127
# check for ICE first), but we must link in the order -lSM -lICE or
10128
# we get undefined symbols. So assume we have SM if we have ICE.
10129
# These have to be linked with before -lX11, unlike the other
10130
# libraries we check for below, so use a different variable.
10131
# John Interrante, Karl Berry
10132
echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
10133
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
10134
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
10135
echo $ECHO_N "(cached) $ECHO_C" >&6
10137
ac_check_lib_save_LIBS=$LIBS
10138
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
10139
cat >conftest.$ac_ext <<_ACEOF
10140
#line $LINENO "configure"
10141
#include "confdefs.h"
10143
/* Override any gcc2 internal prototype to avoid an error. */
10147
/* We use char because int might match the return type of a gcc2
10148
builtin and then its argument prototype would still apply. */
10149
char IceConnectionNumber ();
10150
#ifdef F77_DUMMY_MAIN
10151
# ifdef __cplusplus
10154
int F77_DUMMY_MAIN() { return 1; }
10159
IceConnectionNumber ();
10164
rm -f conftest.$ac_objext conftest$ac_exeext
10165
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10166
(eval $ac_link) 2>&5
10168
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10169
(exit $ac_status); } &&
10170
{ ac_try='test -s conftest$ac_exeext'
10171
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10172
(eval $ac_try) 2>&5
10174
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175
(exit $ac_status); }; }; then
10176
ac_cv_lib_ICE_IceConnectionNumber=yes
10178
echo "$as_me: failed program was:" >&5
10179
cat conftest.$ac_ext >&5
10180
ac_cv_lib_ICE_IceConnectionNumber=no
10182
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10183
LIBS=$ac_check_lib_save_LIBS
10185
echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
10186
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
10187
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
10188
X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
10191
LDFLAGS=$ac_save_LDFLAGS
10196
# $with_inventor is from within SIM_AC_HAVE_INVENTOR_IFELSE, and can
10197
# be used here since the value is empty when it reaches this point
10198
# unless it has been explicitly set.
10200
# Check whether --enable-inventor-debug or --disable-inventor-debug was given.
10201
if test "${enable_inventor_debug+set}" = set; then
10202
enableval="$enable_inventor_debug"
10206
if test x"${with_inventor+set}" = x"set" &&
10207
test x"${with_inventor}" != x"no"; then
10209
# For Open Inventor linkage, we need to check for a shitload of libraries.
10213
# Check whether --with-dl or --without-dl was given.
10214
if test "${with_dl+set}" = set; then
10221
if test x"$with_dl" != xno; then
10222
if test x"$with_dl" != xyes; then
10223
sim_ac_dl_cppflags="-I${with_dl}/include"
10224
sim_ac_dl_ldflags="-L${with_dl}/lib"
10227
sim_ac_save_cppflags=$CPPFLAGS
10228
sim_ac_save_ldflags=$LDFLAGS
10229
sim_ac_save_libs=$LIBS
10231
CPPFLAGS="$CPPFLAGS $sim_ac_dl_cppflags"
10232
LDFLAGS="$LDFLAGS $sim_ac_dl_ldflags"
10234
# Use SIM_AC_CHECK_HEADERS instead of .._HEADER to get the
10235
# HAVE_DLFCN_H symbol set up in config.h automatically.
10237
for ac_header in dlfcn.h
10239
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10240
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10241
echo "$as_me:$LINENO: checking for $ac_header" >&5
10242
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10243
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10244
echo $ECHO_N "(cached) $ECHO_C" >&6
10246
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10247
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10249
# Is the header compilable?
10250
echo "$as_me:$LINENO: checking $ac_header usability" >&5
10251
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10252
cat >conftest.$ac_ext <<_ACEOF
10253
#line $LINENO "configure"
10254
#include "confdefs.h"
10255
$ac_includes_default
10256
#include <$ac_header>
10258
rm -f conftest.$ac_objext
10259
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10260
(eval $ac_compile) 2>&5
10262
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263
(exit $ac_status); } &&
10264
{ ac_try='test -s conftest.$ac_objext'
10265
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10266
(eval $ac_try) 2>&5
10268
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269
(exit $ac_status); }; }; then
10270
ac_header_compiler=yes
10272
echo "$as_me: failed program was:" >&5
10273
cat conftest.$ac_ext >&5
10274
ac_header_compiler=no
10276
rm -f conftest.$ac_objext conftest.$ac_ext
10277
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10278
echo "${ECHO_T}$ac_header_compiler" >&6
10280
# Is the header present?
10281
echo "$as_me:$LINENO: checking $ac_header presence" >&5
10282
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10283
cat >conftest.$ac_ext <<_ACEOF
10284
#line $LINENO "configure"
10285
#include "confdefs.h"
10286
#include <$ac_header>
10288
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10289
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10291
egrep -v '^ *\+' conftest.er1 >conftest.err
10293
cat conftest.err >&5
10294
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295
(exit $ac_status); } >/dev/null; then
10296
if test -s conftest.err; then
10297
ac_cpp_err=$ac_cxx_preproc_warn_flag
10304
if test -z "$ac_cpp_err"; then
10305
ac_header_preproc=yes
10307
echo "$as_me: failed program was:" >&5
10308
cat conftest.$ac_ext >&5
10309
ac_header_preproc=no
10311
rm -f conftest.err conftest.$ac_ext
10312
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10313
echo "${ECHO_T}$ac_header_preproc" >&6
10315
# So? What about this header?
10316
case $ac_header_compiler:$ac_header_preproc in
10318
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10319
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10320
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10321
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10323
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10324
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10325
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10326
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10327
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10328
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
10330
echo "$as_me:$LINENO: checking for $ac_header" >&5
10331
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10332
if eval "test \"\${$as_ac_Header+set}\" = set"; then
10333
echo $ECHO_N "(cached) $ECHO_C" >&6
10335
eval "$as_ac_Header=$ac_header_preproc"
10337
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10338
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10341
if test `eval echo '${'$as_ac_Header'}'` = yes; then
10342
cat >>confdefs.h <<_ACEOF
10343
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10351
sim_ac_dl_avail=false
10353
echo "$as_me:$LINENO: checking for the dl library" >&5
10354
echo $ECHO_N "checking for the dl library... $ECHO_C" >&6
10355
# At least under FreeBSD, dlopen() et al is part of the C library.
10356
for sim_ac_dl_libcheck in "" "-ldl"; do
10357
if ! $sim_ac_dl_avail; then
10358
LIBS="$sim_ac_dl_libcheck $sim_ac_save_libs"
10359
cat >conftest.$ac_ext <<_ACEOF
10360
#line $LINENO "configure"
10361
#include "confdefs.h"
10365
#endif /* HAVE_DLFCN_H */
10367
#ifdef F77_DUMMY_MAIN
10368
# ifdef __cplusplus
10371
int F77_DUMMY_MAIN() { return 1; }
10376
(void)dlopen(0L, 0); (void)dlsym(0L, "Gunners!"); (void)dlclose(0L);
10381
rm -f conftest.$ac_objext conftest$ac_exeext
10382
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10383
(eval $ac_link) 2>&5
10385
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10386
(exit $ac_status); } &&
10387
{ ac_try='test -s conftest$ac_exeext'
10388
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10389
(eval $ac_try) 2>&5
10391
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392
(exit $ac_status); }; }; then
10393
sim_ac_dl_avail=true
10394
sim_ac_dl_libs="$sim_ac_dl_libcheck"
10397
echo "$as_me: failed program was:" >&5
10398
cat conftest.$ac_ext >&5
10400
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10404
if $sim_ac_dl_avail; then
10405
if test x"$sim_ac_dl_libs" = x""; then
10406
echo "$as_me:$LINENO: result: yes" >&5
10407
echo "${ECHO_T}yes" >&6
10409
echo "$as_me:$LINENO: result: $sim_ac_dl_cppflags $sim_ac_dl_ldflags $sim_ac_dl_libs" >&5
10410
echo "${ECHO_T}$sim_ac_dl_cppflags $sim_ac_dl_ldflags $sim_ac_dl_libs" >&6
10413
echo "$as_me:$LINENO: result: not available" >&5
10414
echo "${ECHO_T}not available" >&6
10417
if $sim_ac_dl_avail; then
10419
SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS $sim_ac_dl_cppflags"
10420
SOGUI_EXTRA_LDFLAGS="$SOGUI_EXTRA_LDFLAGS $sim_ac_dl_ldflags"
10421
SOGUI_EXTRA_LIBS="$sim_ac_dl_libs $SOGUI_EXTRA_LIBS"
10424
CPPFLAGS=$sim_ac_save_cppflags
10425
LDFLAGS=$sim_ac_save_ldflags
10426
LIBS=$sim_ac_save_libs
10435
sim_ac_x11_avail=no
10437
if test x"$no_x" != xyes; then
10439
# Keep this around, as it can be handy when testing on new systems.
10440
# echo "X_CFLAGS: $X_CFLAGS"
10441
# echo "X_PRE_LIBS: $X_PRE_LIBS"
10442
# echo "X_LIBS: $X_LIBS"
10443
# echo "X_EXTRA_LIBS: $X_EXTRA_LIBS"
10447
sim_ac_x11_cppflags="$X_CFLAGS"
10448
sim_ac_x11_ldflags="$X_LIBS"
10449
sim_ac_x11_libs="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
10451
sim_ac_save_cppflags=$CPPFLAGS
10452
sim_ac_save_ldflags=$LDFLAGS
10453
sim_ac_save_libs=$LIBS
10455
CPPFLAGS="$CPPFLAGS $sim_ac_x11_cppflags"
10456
LDFLAGS="$LDFLAGS $sim_ac_x11_ldflags"
10457
LIBS="$sim_ac_x11_libs $LIBS"
10459
echo "$as_me:$LINENO: checking whether we can link against X11" >&5
10460
echo $ECHO_N "checking whether we can link against X11... $ECHO_C" >&6
10461
if test "${sim_cv_lib_x11_avail+set}" = set; then
10462
echo $ECHO_N "(cached) $ECHO_C" >&6
10464
cat >conftest.$ac_ext <<_ACEOF
10465
#line $LINENO "configure"
10466
#include "confdefs.h"
10467
#include <X11/Xlib.h>
10468
#ifdef F77_DUMMY_MAIN
10469
# ifdef __cplusplus
10472
int F77_DUMMY_MAIN() { return 1; }
10477
(void)XOpenDisplay(0L);
10482
rm -f conftest.$ac_objext conftest$ac_exeext
10483
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10484
(eval $ac_link) 2>&5
10486
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487
(exit $ac_status); } &&
10488
{ ac_try='test -s conftest$ac_exeext'
10489
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10490
(eval $ac_try) 2>&5
10492
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493
(exit $ac_status); }; }; then
10494
sim_cv_lib_x11_avail=yes
10496
echo "$as_me: failed program was:" >&5
10497
cat conftest.$ac_ext >&5
10498
sim_cv_lib_x11_avail=no
10500
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10502
echo "$as_me:$LINENO: result: $sim_cv_lib_x11_avail" >&5
10503
echo "${ECHO_T}$sim_cv_lib_x11_avail" >&6
10505
if test x"$sim_cv_lib_x11_avail" = x"yes"; then
10506
sim_ac_x11_avail=yes
10508
SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS $sim_ac_x11_cppflags"
10509
SOGUI_EXTRA_LDFLAGS="$SOGUI_EXTRA_LDFLAGS $sim_ac_x11_ldflags"
10510
SOGUI_EXTRA_LIBS="$sim_ac_x11_libs $SOGUI_EXTRA_LIBS"
10513
CPPFLAGS=$sim_ac_save_cppflags
10514
LDFLAGS=$sim_ac_save_ldflags
10515
LIBS=$sim_ac_save_libs
10521
if test x"$sim_ac_x11_avail" = xyes; then
10524
sim_ac_x11shmem_avail=no
10525
sim_ac_x11shmem_libs="-lXext"
10526
sim_ac_save_libs=$LIBS
10527
LIBS="$sim_ac_x11shmem_libs $LIBS"
10529
echo "$as_me:$LINENO: checking whether the X11 shared memory extension is available" >&5
10530
echo $ECHO_N "checking whether the X11 shared memory extension is available... $ECHO_C" >&6
10531
if test "${sim_cv_lib_x11shmem_avail+set}" = set; then
10532
echo $ECHO_N "(cached) $ECHO_C" >&6
10534
cat >conftest.$ac_ext <<_ACEOF
10535
#line $LINENO "configure"
10536
#include "confdefs.h"
10537
#include <X11/Xlib.h>
10538
#include <X11/extensions/XShm.h>
10539
#ifdef F77_DUMMY_MAIN
10540
# ifdef __cplusplus
10543
int F77_DUMMY_MAIN() { return 1; }
10548
(void)XShmQueryVersion(0L, 0L, 0L, 0L);
10553
rm -f conftest.$ac_objext conftest$ac_exeext
10554
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10555
(eval $ac_link) 2>&5
10557
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558
(exit $ac_status); } &&
10559
{ ac_try='test -s conftest$ac_exeext'
10560
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10561
(eval $ac_try) 2>&5
10563
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10564
(exit $ac_status); }; }; then
10565
sim_cv_lib_x11shmem_avail=yes
10567
echo "$as_me: failed program was:" >&5
10568
cat conftest.$ac_ext >&5
10569
sim_cv_lib_x11shmem_avail=no
10571
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10573
echo "$as_me:$LINENO: result: $sim_cv_lib_x11shmem_avail" >&5
10574
echo "${ECHO_T}$sim_cv_lib_x11shmem_avail" >&6
10576
if test x"$sim_cv_lib_x11shmem_avail" = xyes; then
10577
sim_ac_x11shmem_avail=yes
10578
SOGUI_EXTRA_LIBS="$sim_ac_x11shmem_libs $SOGUI_EXTRA_LIBS"
10580
LIBS=$sim_ac_save_libs
10586
sim_ac_x11mu_avail=no
10587
sim_ac_x11mu_libs="-lXmu"
10588
sim_ac_save_libs=$LIBS
10589
LIBS="$sim_ac_x11mu_libs $LIBS"
10591
echo "$as_me:$LINENO: checking whether the X11 miscellaneous utilities is available" >&5
10592
echo $ECHO_N "checking whether the X11 miscellaneous utilities is available... $ECHO_C" >&6
10593
if test "${sim_cv_lib_x11mu_avail+set}" = set; then
10594
echo $ECHO_N "(cached) $ECHO_C" >&6
10596
cat >conftest.$ac_ext <<_ACEOF
10597
#line $LINENO "configure"
10598
#include "confdefs.h"
10599
#include <X11/Xlib.h>
10600
#include <X11/Xmu/Xmu.h>
10601
#include <X11/Xmu/StdCmap.h>
10602
#ifdef F77_DUMMY_MAIN
10603
# ifdef __cplusplus
10606
int F77_DUMMY_MAIN() { return 1; }
10611
(void)XmuAllStandardColormaps(0L);
10616
rm -f conftest.$ac_objext conftest$ac_exeext
10617
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10618
(eval $ac_link) 2>&5
10620
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621
(exit $ac_status); } &&
10622
{ ac_try='test -s conftest$ac_exeext'
10623
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10624
(eval $ac_try) 2>&5
10626
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10627
(exit $ac_status); }; }; then
10628
sim_cv_lib_x11mu_avail=yes
10630
echo "$as_me: failed program was:" >&5
10631
cat conftest.$ac_ext >&5
10632
sim_cv_lib_x11mu_avail=no
10634
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10636
echo "$as_me:$LINENO: result: $sim_cv_lib_x11mu_avail" >&5
10637
echo "${ECHO_T}$sim_cv_lib_x11mu_avail" >&6
10639
if test x"$sim_cv_lib_x11mu_avail" = xyes; then
10640
sim_ac_x11mu_avail=yes
10641
SOGUI_EXTRA_LIBS="$sim_ac_x11mu_libs $SOGUI_EXTRA_LIBS"
10643
LIBS=$sim_ac_save_libs
10649
sim_ac_x11xid_avail=no
10650
sim_ac_x11xid_libs="-lXi"
10651
sim_ac_save_libs=$LIBS
10652
LIBS="$sim_ac_x11xid_libs $LIBS"
10654
echo "$as_me:$LINENO: checking whether the X11 extension device library is available" >&5
10655
echo $ECHO_N "checking whether the X11 extension device library is available... $ECHO_C" >&6
10656
if test "${sim_cv_lib_x11xid_avail+set}" = set; then
10657
echo $ECHO_N "(cached) $ECHO_C" >&6
10659
cat >conftest.$ac_ext <<_ACEOF
10660
#line $LINENO "configure"
10661
#include "confdefs.h"
10662
#include <X11/extensions/XInput.h>
10663
#ifdef F77_DUMMY_MAIN
10664
# ifdef __cplusplus
10667
int F77_DUMMY_MAIN() { return 1; }
10672
(void)XOpenDevice(0L, 0);
10677
rm -f conftest.$ac_objext conftest$ac_exeext
10678
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10679
(eval $ac_link) 2>&5
10681
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682
(exit $ac_status); } &&
10683
{ ac_try='test -s conftest$ac_exeext'
10684
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10685
(eval $ac_try) 2>&5
10687
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10688
(exit $ac_status); }; }; then
10689
sim_cv_lib_x11xid_avail=yes
10691
echo "$as_me: failed program was:" >&5
10692
cat conftest.$ac_ext >&5
10693
sim_cv_lib_x11xid_avail=no
10695
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10697
echo "$as_me:$LINENO: result: $sim_cv_lib_x11xid_avail" >&5
10698
echo "${ECHO_T}$sim_cv_lib_x11xid_avail" >&6
10700
if test x"$sim_cv_lib_x11xid_avail" = xyes; then
10701
sim_ac_x11xid_avail=yes
10702
SOGUI_EXTRA_LIBS="$sim_ac_x11xid_libs $SOGUI_EXTRA_LIBS"
10704
LIBS=$sim_ac_save_libs
10712
sim_ac_ogl_cppflags=
10713
sim_ac_ogl_ldflags=
10717
# Check whether --with-mesa or --without-mesa was given.
10718
if test "${with_mesa+set}" = set; then
10719
withval="$with_mesa"
10726
sim_ac_ogl_glnames="-lGL -lopengl32"
10727
sim_ac_ogl_mesaglnames=-lMesaGL
10729
if test "x$with_mesa" = "xyes"; then
10730
sim_ac_ogl_first=$sim_ac_ogl_mesaglnames
10731
sim_ac_ogl_second=$sim_ac_ogl_glnames
10733
sim_ac_ogl_first=$sim_ac_ogl_glnames
10734
sim_ac_ogl_second=$sim_ac_ogl_mesaglnames
10738
# Check whether --with-opengl or --without-opengl was given.
10739
if test "${with_opengl+set}" = set; then
10740
withval="$with_opengl"
10746
if test x"$with_opengl" != xno; then
10748
if test x"$with_opengl" != xyes && test x"$with_opengl" != x""; then
10749
sim_ac_ogl_ldflags=-L$with_opengl/lib
10750
# $sim_ac_ogl_cppflags is set up in the SIM_AC_CHECK_HEADER_GL
10751
# invocation further below.
10753
# On HP-UX platforms, OpenGL headers and libraries are usually installed
10754
# at this location.
10755
sim_ac_gl_hpux=/opt/graphics/OpenGL
10756
if test -d $sim_ac_gl_hpux; then
10757
sim_ac_ogl_ldflags=-L$sim_ac_gl_hpux/lib
10761
sim_ac_use_framework_option=false;
10764
if test x"$GCC" = x"yes"; then
10769
ac_cpp='$CPP $CPPFLAGS'
10770
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10771
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10772
ac_compiler_gnu=$ac_cv_c_compiler_gnu
10774
echo "$as_me:$LINENO: checking whether $CC accepts -framework OpenGL" >&5
10775
echo $ECHO_N "checking whether $CC accepts -framework OpenGL... $ECHO_C" >&6
10777
sim_ac_save_cppflags=$CPPFLAGS
10778
CPPFLAGS="$CPPFLAGS -framework OpenGL"
10779
cat >conftest.$ac_ext <<_ACEOF
10780
#line $LINENO "configure"
10781
#include "confdefs.h"
10783
#ifdef F77_DUMMY_MAIN
10784
# ifdef __cplusplus
10787
int F77_DUMMY_MAIN() { return 1; }
10797
rm -f conftest.$ac_objext
10798
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10799
(eval $ac_compile) 2>&5
10801
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802
(exit $ac_status); } &&
10803
{ ac_try='test -s conftest.$ac_objext'
10804
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10805
(eval $ac_try) 2>&5
10807
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808
(exit $ac_status); }; }; then
10809
sim_ac_accept_result=yes
10811
echo "$as_me: failed program was:" >&5
10812
cat conftest.$ac_ext >&5
10813
sim_ac_accept_result=no
10815
rm -f conftest.$ac_objext conftest.$ac_ext
10816
echo "$as_me:$LINENO: result: $sim_ac_accept_result" >&5
10817
echo "${ECHO_T}$sim_ac_accept_result" >&6
10818
CPPFLAGS=$sim_ac_save_cppflags
10819
# This need to go last, in case CPPFLAGS is modified in sim_ac_use_framework_option=true or .
10820
if test $sim_ac_accept_result = yes; then
10821
sim_ac_use_framework_option=true
10827
ac_cpp='$CXXCPP $CPPFLAGS'
10828
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10829
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10830
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10837
if $sim_ac_use_framework_option; then
10838
# hopefully, this is the default behavior and not needed. 20011005 larsa
10839
# sim_ac_ogl_cppflags="-F/System/Library/Frameworks/OpenGL.framework/"
10840
sim_ac_ogl_ldflags="-Wl,-framework,OpenGL"
10843
sim_ac_save_cppflags=$CPPFLAGS
10844
sim_ac_save_ldflags=$LDFLAGS
10845
sim_ac_save_libs=$LIBS
10847
CPPFLAGS="$CPPFLAGS $sim_ac_ogl_cppflags"
10848
LDFLAGS="$LDFLAGS $sim_ac_ogl_ldflags"
10850
sim_ac_gl_header_avail=false
10851
echo "$as_me:$LINENO: checking how to include gl.h" >&5
10852
echo $ECHO_N "checking how to include gl.h... $ECHO_C" >&6
10853
if test x"$with_opengl" != x"no"; then
10854
sim_ac_gl_save_CPPFLAGS=$CPPFLAGS
10855
sim_ac_gl_cppflags=
10857
if test x"$with_opengl" != xyes && test x"$with_opengl" != x""; then
10858
sim_ac_gl_cppflags="-I${with_opengl}/include"
10860
# On HP-UX platforms, OpenGL headers and libraries are usually installed
10861
# at this location.
10862
sim_ac_gl_hpux=/opt/graphics/OpenGL
10863
if test -d $sim_ac_gl_hpux; then
10864
sim_ac_gl_cppflags=-I$sim_ac_gl_hpux/include
10868
CPPFLAGS="$CPPFLAGS $sim_ac_gl_cppflags"
10871
cat >conftest.$ac_ext <<_ACEOF
10872
#line $LINENO "configure"
10873
#include "confdefs.h"
10876
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10877
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10879
egrep -v '^ *\+' conftest.er1 >conftest.err
10881
cat conftest.err >&5
10882
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883
(exit $ac_status); } >/dev/null; then
10884
if test -s conftest.err; then
10885
ac_cpp_err=$ac_cxx_preproc_warn_flag
10892
if test -z "$ac_cpp_err"; then
10893
ac_cv_header_GL_gl_h=yes
10895
echo "$as_me: failed program was:" >&5
10896
cat conftest.$ac_ext >&5
10897
ac_cv_header_GL_gl_h=no
10899
rm -f conftest.err conftest.$ac_ext
10900
if test $ac_cv_header_GL_gl_h = yes; then
10902
sim_ac_gl_header_avail=true
10903
sim_ac_gl_header=GL/gl.h
10905
cat >>confdefs.h <<\_ACEOF
10906
#define HAVE_GL_GL_H 1
10913
cat >conftest.$ac_ext <<_ACEOF
10914
#line $LINENO "configure"
10915
#include "confdefs.h"
10916
#include <OpenGL/gl.h>
10918
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10919
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10921
egrep -v '^ *\+' conftest.er1 >conftest.err
10923
cat conftest.err >&5
10924
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925
(exit $ac_status); } >/dev/null; then
10926
if test -s conftest.err; then
10927
ac_cpp_err=$ac_cxx_preproc_warn_flag
10934
if test -z "$ac_cpp_err"; then
10935
ac_cv_header_OpenGL_gl_h=yes
10937
echo "$as_me: failed program was:" >&5
10938
cat conftest.$ac_ext >&5
10939
ac_cv_header_OpenGL_gl_h=no
10941
rm -f conftest.err conftest.$ac_ext
10942
if test $ac_cv_header_OpenGL_gl_h = yes; then
10944
sim_ac_gl_header_avail=true
10945
sim_ac_gl_header=OpenGL/gl.h
10947
cat >>confdefs.h <<\_ACEOF
10948
#define HAVE_OPENGL_GL_H 1
10962
CPPFLAGS="$sim_ac_gl_save_CPPFLAGS"
10963
if $sim_ac_gl_header_avail; then
10964
if test x"$sim_ac_gl_cppflags" = x""; then
10965
echo "$as_me:$LINENO: result: #include <$sim_ac_gl_header>" >&5
10966
echo "${ECHO_T}#include <$sim_ac_gl_header>" >&6
10968
echo "$as_me:$LINENO: result: $sim_ac_gl_cppflags, #include <$sim_ac_gl_header>" >&5
10969
echo "${ECHO_T}$sim_ac_gl_cppflags, #include <$sim_ac_gl_header>" >&6
10971
CPPFLAGS="$CPPFLAGS $sim_ac_gl_cppflags"
10973
echo "$as_me:$LINENO: result: not found" >&5
10974
echo "${ECHO_T}not found" >&6
10975
{ echo "$as_me:$LINENO: WARNING: could not find gl.h" >&5
10976
echo "$as_me: WARNING: could not find gl.h" >&2;}
10979
echo "$as_me:$LINENO: result: disabled" >&5
10980
echo "${ECHO_T}disabled" >&6
10981
{ echo "$as_me:$LINENO: WARNING: could not find gl.h" >&5
10982
echo "$as_me: WARNING: could not find gl.h" >&2;}
10986
sim_ac_glchk_hit=false
10987
for sim_ac_tmp_outerloop in barebones withpthreads; do
10988
if ! $sim_ac_glchk_hit; then
10990
sim_ac_oglchk_pthreadslib=""
10991
if test "$sim_ac_tmp_outerloop" = "withpthreads"; then
10992
{ echo "$as_me:$LINENO: WARNING: couldn't compile or link with OpenGL library -- trying with pthread library in place..." >&5
10993
echo "$as_me: WARNING: couldn't compile or link with OpenGL library -- trying with pthread library in place..." >&2;}
10994
LIBS="$sim_ac_save_libs"
10998
# Check whether --with-pthread or --without-pthread was given.
10999
if test "${with_pthread+set}" = set; then
11000
withval="$with_pthread"
11006
sim_ac_pthread_avail=no
11008
if test x"$with_pthread" != xno; then
11009
if test x"$with_pthread" != xyes; then
11010
sim_ac_pthread_cppflags="-I${with_pthread}/include"
11011
sim_ac_pthread_ldflags="-L${with_pthread}/lib"
11014
# FIXME: should investigate and document the exact meaning of
11015
# the _REENTRANT flag. larsa's commit message mentions
11016
# "glibc-doc/FAQ.threads.html".
11018
# Preferably, it should only be set up when really needed
11019
# (as detected by some other configure check).
11021
# 20030306 mortene.
11022
sim_ac_pthread_cppflags="-D_REENTRANT ${sim_ac_pthread_cppflags}"
11024
sim_ac_save_cppflags=$CPPFLAGS
11025
sim_ac_save_ldflags=$LDFLAGS
11026
sim_ac_save_libs=$LIBS
11028
CPPFLAGS="$CPPFLAGS $sim_ac_pthread_cppflags"
11029
LDFLAGS="$LDFLAGS $sim_ac_pthread_ldflags"
11031
sim_ac_pthread_avail=false
11033
echo "$as_me:$LINENO: checking for POSIX threads" >&5
11034
echo $ECHO_N "checking for POSIX threads... $ECHO_C" >&6
11035
# At least under FreeBSD, we link to pthreads library with -pthread.
11036
for sim_ac_pthreads_libcheck in "-lpthread" "-pthread"; do
11037
if ! $sim_ac_pthread_avail; then
11038
LIBS="$sim_ac_pthreads_libcheck $sim_ac_save_libs"
11039
cat >conftest.$ac_ext <<_ACEOF
11040
#line $LINENO "configure"
11041
#include "confdefs.h"
11042
#include <pthread.h>
11043
#ifdef F77_DUMMY_MAIN
11044
# ifdef __cplusplus
11047
int F77_DUMMY_MAIN() { return 1; }
11052
(void)pthread_create(0L, 0L, 0L, 0L);
11057
rm -f conftest.$ac_objext conftest$ac_exeext
11058
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11059
(eval $ac_link) 2>&5
11061
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062
(exit $ac_status); } &&
11063
{ ac_try='test -s conftest$ac_exeext'
11064
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11065
(eval $ac_try) 2>&5
11067
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068
(exit $ac_status); }; }; then
11069
sim_ac_pthread_avail=true
11070
sim_ac_pthread_libs="$sim_ac_pthreads_libcheck"
11073
echo "$as_me: failed program was:" >&5
11074
cat conftest.$ac_ext >&5
11076
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11080
if $sim_ac_pthread_avail; then
11081
echo "$as_me:$LINENO: result: $sim_ac_pthread_cppflags $sim_ac_pthread_ldflags $sim_ac_pthread_libs" >&5
11082
echo "${ECHO_T}$sim_ac_pthread_cppflags $sim_ac_pthread_ldflags $sim_ac_pthread_libs" >&6
11084
echo "$as_me:$LINENO: result: not available" >&5
11085
echo "${ECHO_T}not available" >&6
11088
if $sim_ac_pthread_avail; then
11089
echo "$as_me:$LINENO: checking the struct timespec resolution" >&5
11090
echo $ECHO_N "checking the struct timespec resolution... $ECHO_C" >&6
11091
if test "${sim_cv_lib_pthread_timespec_resolution+set}" = set; then
11092
echo $ECHO_N "(cached) $ECHO_C" >&6
11094
cat >conftest.$ac_ext <<_ACEOF
11095
#line $LINENO "configure"
11096
#include "confdefs.h"
11097
#include <pthread.h>
11098
#ifdef F77_DUMMY_MAIN
11099
# ifdef __cplusplus
11102
int F77_DUMMY_MAIN() { return 1; }
11107
struct timespec timeout;
11108
timeout.tv_nsec = 0;
11113
rm -f conftest.$ac_objext
11114
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11115
(eval $ac_compile) 2>&5
11117
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118
(exit $ac_status); } &&
11119
{ ac_try='test -s conftest.$ac_objext'
11120
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11121
(eval $ac_try) 2>&5
11123
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124
(exit $ac_status); }; }; then
11125
sim_cv_lib_pthread_timespec_resolution=nsecs
11127
echo "$as_me: failed program was:" >&5
11128
cat conftest.$ac_ext >&5
11129
sim_cv_lib_pthread_timespec_resolution=usecs
11131
rm -f conftest.$ac_objext conftest.$ac_ext
11133
echo "$as_me:$LINENO: result: $sim_cv_lib_pthread_timespec_resolution" >&5
11134
echo "${ECHO_T}$sim_cv_lib_pthread_timespec_resolution" >&6
11135
if test x"$sim_cv_lib_pthread_timespec_resolution" = x"nsecs"; then
11137
cat >>confdefs.h <<\_ACEOF
11138
#define HAVE_PTHREAD_TIMESPEC_NSEC 1
11144
if $sim_ac_pthread_avail; then
11146
sim_ac_ogl_cppflags="$sim_ac_ogl_cppflags $sim_ac_pthread_cppflags"
11147
sim_ac_ogl_ldflags="$sim_ac_ogl_ldflags $sim_ac_pthread_ldflags"
11148
sim_ac_oglchk_pthreadslib="$sim_ac_pthread_libs"
11151
CPPFLAGS=$sim_ac_save_cppflags
11152
LDFLAGS=$sim_ac_save_ldflags
11153
LIBS=$sim_ac_save_libs
11154
{ echo "$as_me:$LINENO: WARNING: couldn't compile or link with pthread library" >&5
11155
echo "$as_me: WARNING: couldn't compile or link with pthread library" >&2;}
11162
echo "$as_me:$LINENO: checking for OpenGL library dev-kit" >&5
11163
echo $ECHO_N "checking for OpenGL library dev-kit... $ECHO_C" >&6
11164
# Mac OS X uses nada (only LDFLAGS), which is why "" was set first
11165
for sim_ac_ogl_libcheck in "" $sim_ac_ogl_first $sim_ac_ogl_second; do
11166
if ! $sim_ac_glchk_hit; then
11167
LIBS="$sim_ac_ogl_libcheck $sim_ac_oglchk_pthreadslib $sim_ac_save_libs"
11168
cat >conftest.$ac_ext <<_ACEOF
11169
#line $LINENO "configure"
11170
#include "confdefs.h"
11171
#ifdef HAVE_WINDOWS_H
11172
#include <windows.h>
11174
#ifdef HAVE_GL_GL_H
11177
#ifdef HAVE_OPENGL_GL_H
11179
#include <OpenGL/gl.h>
11182
#ifdef F77_DUMMY_MAIN
11183
# ifdef __cplusplus
11186
int F77_DUMMY_MAIN() { return 1; }
11196
rm -f conftest.$ac_objext conftest$ac_exeext
11197
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11198
(eval $ac_link) 2>&5
11200
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201
(exit $ac_status); } &&
11202
{ ac_try='test -s conftest$ac_exeext'
11203
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11204
(eval $ac_try) 2>&5
11206
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207
(exit $ac_status); }; }; then
11209
sim_ac_glchk_hit=true
11210
sim_ac_ogl_libs="$sim_ac_ogl_libcheck $sim_ac_oglchk_pthreadslib"
11214
echo "$as_me: failed program was:" >&5
11215
cat conftest.$ac_ext >&5
11217
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11220
if $sim_ac_glchk_hit; then
11221
echo "$as_me:$LINENO: result: $sim_ac_ogl_cppflags $sim_ac_ogl_ldflags $sim_ac_ogl_libs" >&5
11222
echo "${ECHO_T}$sim_ac_ogl_cppflags $sim_ac_ogl_ldflags $sim_ac_ogl_libs" >&6
11224
echo "$as_me:$LINENO: result: unresolved" >&5
11225
echo "${ECHO_T}unresolved" >&6
11230
if $sim_ac_glchk_hit; then
11231
LIBS="$sim_ac_ogl_libs $sim_ac_save_libs"
11233
SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS $sim_ac_ogl_cppflags"
11234
SOGUI_EXTRA_LDFLAGS="$SOGUI_EXTRA_LDFLAGS $sim_ac_ogl_ldflags"
11235
SOGUI_EXTRA_LIBS="$sim_ac_ogl_libs $SOGUI_EXTRA_LIBS"
11238
CPPFLAGS="$sim_ac_save_cppflags"
11239
LDFLAGS="$sim_ac_save_ldflags"
11240
LIBS="$sim_ac_save_libs"
11241
{ { echo "$as_me:$LINENO: error: needs an OpenGL-compatible development system installation" >&5
11242
echo "$as_me: error: needs an OpenGL-compatible development system installation" >&2;}
11243
{ (exit 1); exit 1; }; }
11249
sim_ac_glu_save_CPPFLAGS=$CPPFLAGS
11250
sim_ac_glu_header_avail=false
11251
echo "$as_me:$LINENO: checking how to include glu.h" >&5
11252
echo $ECHO_N "checking how to include glu.h... $ECHO_C" >&6
11253
if test x"$with_opengl" != x"no"; then
11254
sim_ac_glu_save_CPPFLAGS=$CPPFLAGS
11255
sim_ac_glu_cppflags=
11257
if test x"$with_opengl" != xyes && test x"$with_opengl" != x""; then
11258
sim_ac_glu_cppflags="-I${with_opengl}/include"
11260
# On HP-UX platforms, OpenGL headers and libraries are usually installed
11261
# at this location.
11262
sim_ac_gl_hpux=/opt/graphics/OpenGL
11263
if test -d $sim_ac_gl_hpux; then
11264
sim_ac_glu_cppflags=-I$sim_ac_gl_hpux/include
11268
CPPFLAGS="$CPPFLAGS $sim_ac_glu_cppflags"
11271
cat >conftest.$ac_ext <<_ACEOF
11272
#line $LINENO "configure"
11273
#include "confdefs.h"
11274
#include <GL/glu.h>
11276
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11277
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11279
egrep -v '^ *\+' conftest.er1 >conftest.err
11281
cat conftest.err >&5
11282
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283
(exit $ac_status); } >/dev/null; then
11284
if test -s conftest.err; then
11285
ac_cpp_err=$ac_cxx_preproc_warn_flag
11292
if test -z "$ac_cpp_err"; then
11293
ac_cv_header_GL_glu_h=yes
11295
echo "$as_me: failed program was:" >&5
11296
cat conftest.$ac_ext >&5
11297
ac_cv_header_GL_glu_h=no
11299
rm -f conftest.err conftest.$ac_ext
11300
if test $ac_cv_header_GL_glu_h = yes; then
11302
sim_ac_glu_header_avail=true
11303
sim_ac_glu_header=GL/glu.h
11305
cat >>confdefs.h <<\_ACEOF
11306
#define HAVE_GL_GLU_H 1
11313
cat >conftest.$ac_ext <<_ACEOF
11314
#line $LINENO "configure"
11315
#include "confdefs.h"
11316
#include <OpenGL/glu.h>
11318
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11319
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11321
egrep -v '^ *\+' conftest.er1 >conftest.err
11323
cat conftest.err >&5
11324
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325
(exit $ac_status); } >/dev/null; then
11326
if test -s conftest.err; then
11327
ac_cpp_err=$ac_cxx_preproc_warn_flag
11334
if test -z "$ac_cpp_err"; then
11335
ac_cv_header_OpenGL_glu_h=yes
11337
echo "$as_me: failed program was:" >&5
11338
cat conftest.$ac_ext >&5
11339
ac_cv_header_OpenGL_glu_h=no
11341
rm -f conftest.err conftest.$ac_ext
11342
if test $ac_cv_header_OpenGL_glu_h = yes; then
11344
sim_ac_glu_header_avail=true
11345
sim_ac_glu_header=OpenGL/glu.h
11347
cat >>confdefs.h <<\_ACEOF
11348
#define HAVE_OPENGL_GLU_H 1
11362
CPPFLAGS="$sim_ac_glu_save_CPPFLAGS"
11363
if $sim_ac_glu_header_avail; then
11364
if test x"$sim_ac_glu_cppflags" = x""; then
11365
echo "$as_me:$LINENO: result: #include <$sim_ac_glu_header>" >&5
11366
echo "${ECHO_T}#include <$sim_ac_glu_header>" >&6
11368
echo "$as_me:$LINENO: result: $sim_ac_glu_cppflags, #include <$sim_ac_glu_header>" >&5
11369
echo "${ECHO_T}$sim_ac_glu_cppflags, #include <$sim_ac_glu_header>" >&6
11373
echo "$as_me:$LINENO: result: not found" >&5
11374
echo "${ECHO_T}not found" >&6
11375
{ echo "$as_me:$LINENO: WARNING: could not find glu.h" >&5
11376
echo "$as_me: WARNING: could not find glu.h" >&2;}
11379
echo "$as_me:$LINENO: result: disabled" >&5
11380
echo "${ECHO_T}disabled" >&6
11381
{ echo "$as_me:$LINENO: WARNING: could not find glu.h" >&5
11382
echo "$as_me: WARNING: could not find glu.h" >&2;}
11385
if test x"$sim_ac_gl_cppflags" != x"$sim_ac_glu_cppflags"; then
11386
CPPFLAGS="$CPPFLAGS $sim_ac_gl_cppflags $sim_ac_glu_cppflags"
11388
sim_ac_glu_avail=no
11390
# It's usually libGLU.so on UNIX systems and glu32.lib on MSWindows.
11391
sim_ac_glu_names="-lGLU -lglu32"
11392
sim_ac_glu_mesanames=-lMesaGLU
11394
# with_mesa is set from the SIM_AC_CHECK_OPENGL macro.
11395
if test "x$with_mesa" = "xyes"; then
11396
sim_ac_glu_first=$sim_ac_glu_mesanames
11397
sim_ac_glu_second=$sim_ac_glu_names
11399
sim_ac_glu_first=$sim_ac_glu_names
11400
sim_ac_glu_second=$sim_ac_glu_mesanames
11404
# Check whether --with-glu or --without-glu was given.
11405
if test "${with_glu+set}" = set; then
11406
withval="$with_glu"
11412
if test x"$with_glu" != xno; then
11413
if test x"$with_glu" != xyes; then
11414
# sim_ac_glu_cppflags="-I${with_glu}/include"
11415
sim_ac_glu_ldflags="-L${with_glu}/lib"
11418
sim_ac_save_cppflags=$CPPFLAGS
11419
sim_ac_save_ldflags=$LDFLAGS
11420
sim_ac_save_libs=$LIBS
11422
CPPFLAGS="$CPPFLAGS $sim_ac_glu_cppflags"
11423
LDFLAGS="$LDFLAGS $sim_ac_glu_ldflags"
11425
echo "$as_me:$LINENO: checking whether GLU is available" >&5
11426
echo $ECHO_N "checking whether GLU is available... $ECHO_C" >&6
11427
if test "${sim_cv_lib_glu+set}" = set; then
11428
echo $ECHO_N "(cached) $ECHO_C" >&6
11430
sim_cv_lib_glu=UNRESOLVED
11432
# Some platforms (like BeOS) have the GLU functionality in the GL
11433
# library (and no GLU library present).
11434
for sim_ac_glu_libcheck in "" $sim_ac_glu_first $sim_ac_glu_second; do
11435
if test "x$sim_cv_lib_glu" = "xUNRESOLVED"; then
11436
LIBS="$sim_ac_glu_libcheck $sim_ac_save_libs"
11437
cat >conftest.$ac_ext <<_ACEOF
11438
#line $LINENO "configure"
11439
#include "confdefs.h"
11441
#ifdef HAVE_WINDOWS_H
11442
#include <windows.h>
11443
#endif /* HAVE_WINDOWS_H */
11444
#ifdef HAVE_GL_GL_H
11447
#ifdef HAVE_OPENGL_GL_H
11448
#include <OpenGL/gl.h>
11451
#ifdef HAVE_GL_GLU_H
11452
#include <GL/glu.h>
11454
#ifdef HAVE_OPENGL_GLU_H
11455
#include <OpenGL/glu.h>
11459
#ifdef F77_DUMMY_MAIN
11460
# ifdef __cplusplus
11463
int F77_DUMMY_MAIN() { return 1; }
11469
gluSphere(0L, 1.0, 1, 1);
11470
/* Defect JAGad01283 of HP's aCC compiler causes a link failure unless
11471
there is at least one "pure" OpenGL call along with GLU calls. */
11478
rm -f conftest.$ac_objext conftest$ac_exeext
11479
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11480
(eval $ac_link) 2>&5
11482
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483
(exit $ac_status); } &&
11484
{ ac_try='test -s conftest$ac_exeext'
11485
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11486
(eval $ac_try) 2>&5
11488
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489
(exit $ac_status); }; }; then
11490
sim_cv_lib_glu="$sim_ac_glu_libcheck"
11492
echo "$as_me: failed program was:" >&5
11493
cat conftest.$ac_ext >&5
11495
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11498
if test x"$sim_cv_lib_glu" = x"" &&
11499
test x`echo $LDFLAGS | grep -c -- "-Wl,-framework,OpenGL"` = x1; then
11500
# just for the visual representation on Mac OS X
11501
sim_cv_lib_glu="-Wl,-framework,OpenGL"
11505
echo "$as_me:$LINENO: result: $sim_cv_lib_glu" >&5
11506
echo "${ECHO_T}$sim_cv_lib_glu" >&6
11508
LIBS="$sim_ac_save_libs"
11510
CPPFLAGS=$sim_ac_glu_save_CPPFLAGS
11511
if test "x$sim_cv_lib_glu" != "xUNRESOLVED"; then
11512
if test x"$sim_cv_lib_glu" = x"-Wl,-framework,OpenGL"; then
11515
sim_ac_glu_libs="$sim_cv_lib_glu"
11517
LIBS="$sim_ac_glu_libs $sim_ac_save_libs"
11518
sim_ac_glu_avail=yes
11520
SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS $sim_ac_glu_cppflags"
11521
SOGUI_EXTRA_LDFLAGS="$SOGUI_EXTRA_LDFLAGS $sim_ac_glu_ldflags"
11522
SOGUI_EXTRA_LIBS="$sim_ac_glu_libs $SOGUI_EXTRA_LIBS"
11525
CPPFLAGS=$sim_ac_save_cppflags
11526
LDFLAGS=$sim_ac_save_ldflags
11527
LIBS=$sim_ac_save_libs
11528
{ { echo "$as_me:$LINENO: error: needs the OpenGL utility library" >&5
11529
echo "$as_me: error: needs the OpenGL utility library" >&2;}
11530
{ (exit 1); exit 1; }; }
11536
: ${sim_ac_want_inventor=false}
11538
# Check whether --with-inventor or --without-inventor was given.
11539
if test "${with_inventor+set}" = set; then
11540
withval="$with_inventor"
11542
no) sim_ac_want_inventor=false ;;
11543
yes) sim_ac_want_inventor=true
11544
test -n "$OIVHOME" &&
11546
eval "sim_ac_inventor_path=\"`echo "$OIVHOME" | sed -e 's%\\\\%\\/%g'`\""
11548
*) sim_ac_want_inventor=true; sim_ac_inventor_path="$withval" ;;
11555
if $sim_ac_want_inventor; then
11556
sim_ac_save_CPPFLAGS="$CPPFLAGS"
11557
sim_ac_save_LDFLAGS="$LDFLAGS"
11558
sim_ac_save_LIBS="$LIBS"
11563
if $sim_ac_want_inventor; then
11564
sim_ac_inventor_image_save_CPPFLAGS="$CPPFLAGS"
11565
sim_ac_inventor_image_save_LDFLAGS="$LDFLAGS"
11566
sim_ac_inventor_image_save_LIBS="$LIBS"
11568
if test s${sim_ac_inventor_path+et} = set; then
11569
sim_ac_inventor_image_cppflags="-I${sim_ac_inventor_path}/include"
11570
sim_ac_inventor_image_ldflags="-L${sim_ac_inventor_path}/lib"
11572
sim_ac_inventor_image_libs="-limage"
11574
echo "$as_me:$LINENO: checking if linking with libimage is possible" >&5
11575
echo $ECHO_N "checking if linking with libimage is possible... $ECHO_C" >&6
11576
if test "${sim_cv_have_inventor_image+set}" = set; then
11577
echo $ECHO_N "(cached) $ECHO_C" >&6
11580
CPPFLAGS="$sim_ac_inventor_image_cppflags $CPPFLAGS"
11581
LDFLAGS="$sim_ac_inventor_image_ldflags $LDFLAGS"
11582
LIBS="$sim_ac_inventor_image_libs $LIBS"
11583
cat >conftest.$ac_ext <<_ACEOF
11584
#line $LINENO "configure"
11585
#include "confdefs.h"
11587
#ifdef F77_DUMMY_MAIN
11588
# ifdef __cplusplus
11591
int F77_DUMMY_MAIN() { return 1; }
11601
rm -f conftest.$ac_objext conftest$ac_exeext
11602
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11603
(eval $ac_link) 2>&5
11605
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606
(exit $ac_status); } &&
11607
{ ac_try='test -s conftest$ac_exeext'
11608
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11609
(eval $ac_try) 2>&5
11611
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11612
(exit $ac_status); }; }; then
11613
sim_cv_have_inventor_image=true
11615
echo "$as_me: failed program was:" >&5
11616
cat conftest.$ac_ext >&5
11617
sim_cv_have_inventor_image=false
11619
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11620
CPPFLAGS="$sim_ac_inventor_image_save_CPPFLAGS"
11621
LDFLAGS="$sim_ac_inventor_image_save_LDFLAGS"
11622
LIBS="$sim_ac_inventor_image_save_LIBS"
11625
echo "$as_me:$LINENO: result: $sim_cv_have_inventor_image" >&5
11626
echo "${ECHO_T}$sim_cv_have_inventor_image" >&6
11628
if $sim_cv_have_inventor_image; then
11630
sim_ac_inventor_cppflags="$sim_ac_inventor_image_cppflags"
11631
sim_ac_inventor_ldflags="$sim_ac_inventor_image_ldflags"
11635
if test s${sim_ac_inventor_path+et} = set; then
11636
sim_ac_inventor_cppflags="-I${sim_ac_inventor_path}/include"
11637
sim_ac_inventor_ldflags="-L${sim_ac_inventor_path}/lib"
11639
sim_ac_inventor_image_libs=
11644
if test s${sim_ac_inventor_path+et} = set; then
11645
sim_ac_inventor_cppflags="-I${sim_ac_inventor_path}/include"
11646
sim_ac_inventor_ldflags="-L${sim_ac_inventor_path}/lib"
11648
sim_ac_inventor_image_libs=
11653
# Let's at least test for "libInventor".
11654
sim_ac_inventor_chk_libs="-lInventor"
11655
sim_ac_inventor_libs=UNRESOLVED
11657
CPPFLAGS="$sim_ac_inventor_cppflags $CPPFLAGS"
11659
if test "${ac_cv_header_Inventor_SbBasic_h+set}" = set; then
11660
echo "$as_me:$LINENO: checking for Inventor/SbBasic.h" >&5
11661
echo $ECHO_N "checking for Inventor/SbBasic.h... $ECHO_C" >&6
11662
if test "${ac_cv_header_Inventor_SbBasic_h+set}" = set; then
11663
echo $ECHO_N "(cached) $ECHO_C" >&6
11665
echo "$as_me:$LINENO: result: $ac_cv_header_Inventor_SbBasic_h" >&5
11666
echo "${ECHO_T}$ac_cv_header_Inventor_SbBasic_h" >&6
11668
# Is the header compilable?
11669
echo "$as_me:$LINENO: checking Inventor/SbBasic.h usability" >&5
11670
echo $ECHO_N "checking Inventor/SbBasic.h usability... $ECHO_C" >&6
11671
cat >conftest.$ac_ext <<_ACEOF
11672
#line $LINENO "configure"
11673
#include "confdefs.h"
11674
$ac_includes_default
11675
#include <Inventor/SbBasic.h>
11677
rm -f conftest.$ac_objext
11678
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11679
(eval $ac_compile) 2>&5
11681
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682
(exit $ac_status); } &&
11683
{ ac_try='test -s conftest.$ac_objext'
11684
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11685
(eval $ac_try) 2>&5
11687
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688
(exit $ac_status); }; }; then
11689
ac_header_compiler=yes
11691
echo "$as_me: failed program was:" >&5
11692
cat conftest.$ac_ext >&5
11693
ac_header_compiler=no
11695
rm -f conftest.$ac_objext conftest.$ac_ext
11696
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11697
echo "${ECHO_T}$ac_header_compiler" >&6
11699
# Is the header present?
11700
echo "$as_me:$LINENO: checking Inventor/SbBasic.h presence" >&5
11701
echo $ECHO_N "checking Inventor/SbBasic.h presence... $ECHO_C" >&6
11702
cat >conftest.$ac_ext <<_ACEOF
11703
#line $LINENO "configure"
11704
#include "confdefs.h"
11705
#include <Inventor/SbBasic.h>
11707
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11708
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11710
egrep -v '^ *\+' conftest.er1 >conftest.err
11712
cat conftest.err >&5
11713
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714
(exit $ac_status); } >/dev/null; then
11715
if test -s conftest.err; then
11716
ac_cpp_err=$ac_cxx_preproc_warn_flag
11723
if test -z "$ac_cpp_err"; then
11724
ac_header_preproc=yes
11726
echo "$as_me: failed program was:" >&5
11727
cat conftest.$ac_ext >&5
11728
ac_header_preproc=no
11730
rm -f conftest.err conftest.$ac_ext
11731
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11732
echo "${ECHO_T}$ac_header_preproc" >&6
11734
# So? What about this header?
11735
case $ac_header_compiler:$ac_header_preproc in
11737
{ echo "$as_me:$LINENO: WARNING: Inventor/SbBasic.h: accepted by the compiler, rejected by the preprocessor!" >&5
11738
echo "$as_me: WARNING: Inventor/SbBasic.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11739
{ echo "$as_me:$LINENO: WARNING: Inventor/SbBasic.h: proceeding with the preprocessor's result" >&5
11740
echo "$as_me: WARNING: Inventor/SbBasic.h: proceeding with the preprocessor's result" >&2;};;
11742
{ echo "$as_me:$LINENO: WARNING: Inventor/SbBasic.h: present but cannot be compiled" >&5
11743
echo "$as_me: WARNING: Inventor/SbBasic.h: present but cannot be compiled" >&2;}
11744
{ echo "$as_me:$LINENO: WARNING: Inventor/SbBasic.h: check for missing prerequisite headers?" >&5
11745
echo "$as_me: WARNING: Inventor/SbBasic.h: check for missing prerequisite headers?" >&2;}
11746
{ echo "$as_me:$LINENO: WARNING: Inventor/SbBasic.h: proceeding with the preprocessor's result" >&5
11747
echo "$as_me: WARNING: Inventor/SbBasic.h: proceeding with the preprocessor's result" >&2;};;
11749
echo "$as_me:$LINENO: checking for Inventor/SbBasic.h" >&5
11750
echo $ECHO_N "checking for Inventor/SbBasic.h... $ECHO_C" >&6
11751
if test "${ac_cv_header_Inventor_SbBasic_h+set}" = set; then
11752
echo $ECHO_N "(cached) $ECHO_C" >&6
11754
ac_cv_header_Inventor_SbBasic_h=$ac_header_preproc
11756
echo "$as_me:$LINENO: result: $ac_cv_header_Inventor_SbBasic_h" >&5
11757
echo "${ECHO_T}$ac_cv_header_Inventor_SbBasic_h" >&6
11760
if test $ac_cv_header_Inventor_SbBasic_h = yes; then
11761
sim_ac_sbbasic=true
11763
{ echo "$as_me:$LINENO: WARNING: header file Inventor/SbBasic.h not found" >&5
11764
echo "$as_me: WARNING: header file Inventor/SbBasic.h not found" >&2;}
11765
sim_ac_sbbasic=false
11770
if $sim_ac_sbbasic; then
11771
echo "$as_me:$LINENO: checking the Open Inventor version" >&5
11772
echo $ECHO_N "checking the Open Inventor version... $ECHO_C" >&6
11773
# See if we can get the TGS_VERSION number for including a
11774
# check for inv{ver}.lib.
11775
# TGS did not include TGS_VERSION before 2.6, so this may have to be
11776
# back-ported to SO_VERSION+SO_REVISION usage. larsa 2001-07-25
11777
cat <<EOF > conftest.c
11778
#include <Inventor/SbBasic.h>
11780
#error Testing for original Open Inventor, but found Coin...
11782
PeekInventorVersion: TGS_VERSION
11784
if test x"$CPP" = x; then
11785
{ { echo "$as_me:$LINENO: error: cpp not detected - aborting. notify maintainer at coin-support@coin3d.org." >&5
11786
echo "$as_me: error: cpp not detected - aborting. notify maintainer at coin-support@coin3d.org." >&2;}
11787
{ (exit 1); exit 1; }; }
11789
echo "$CPP $CPPFLAGS conftest.c" >&5
11790
tgs_version_line=`$CPP $CPPFLAGS conftest.c 2>&5 | grep "^PeekInventorVersion"`
11791
if test x"$tgs_version_line" = x; then
11792
echo "second try..." >&5
11793
echo "$CPP -DWIN32 $CPPFLAGS conftest.c" >&5
11794
tgs_version_line=`$CPP -DWIN32 $CPPFLAGS conftest.c 2>&5 | grep "^PeekInventorVersion"`
11797
tgs_version=`echo $tgs_version_line | cut -c22-24`
11799
if test x"${enable_inventor_debug+set}" = xset &&
11800
test x"${enable_inventor_debug}" = xyes; then
11803
if test x"$tgs_version" != xTGS; then
11804
sim_ac_inventor_chk_libs="$sim_ac_inventor_chk_libs -linv$tgs_version$tgs_suffix"
11805
tgs_version_string=`echo $tgs_version | sed 's/\(.\)\(.\)\(.\)/\1.\2.\3/g'`
11806
echo "$as_me:$LINENO: result: TGS Open Inventor v$tgs_version_string" >&5
11807
echo "${ECHO_T}TGS Open Inventor v$tgs_version_string" >&6
11809
echo "$as_me:$LINENO: result: probably SGI or older TGS Open Inventor" >&5
11810
echo "${ECHO_T}probably SGI or older TGS Open Inventor" >&6
11813
echo "$as_me:$LINENO: checking for Open Inventor library" >&5
11814
echo $ECHO_N "checking for Open Inventor library... $ECHO_C" >&6
11816
for sim_ac_iv_cppflags_loop in "" "-DWIN32"; do
11817
# Trying with no libraries first, as TGS Inventor uses pragmas in
11818
# a header file to notify MSVC of what to link with.
11819
for sim_ac_iv_libcheck in "" $sim_ac_inventor_chk_libs; do
11820
if test "x$sim_ac_inventor_libs" = "xUNRESOLVED"; then
11821
CPPFLAGS="$sim_ac_iv_cppflags_loop $sim_ac_inventor_cppflags $sim_ac_save_CPPFLAGS"
11822
LDFLAGS="$sim_ac_inventor_ldflags $sim_ac_save_LDFLAGS"
11823
LIBS="$sim_ac_iv_libcheck $sim_ac_inventor_image_libs $sim_ac_save_LIBS"
11824
cat >conftest.$ac_ext <<_ACEOF
11825
#line $LINENO "configure"
11826
#include "confdefs.h"
11827
#include <Inventor/SoDB.h>
11828
#ifdef F77_DUMMY_MAIN
11829
# ifdef __cplusplus
11832
int F77_DUMMY_MAIN() { return 1; }
11842
rm -f conftest.$ac_objext conftest$ac_exeext
11843
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11844
(eval $ac_link) 2>&5
11846
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11847
(exit $ac_status); } &&
11848
{ ac_try='test -s conftest$ac_exeext'
11849
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11850
(eval $ac_try) 2>&5
11852
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853
(exit $ac_status); }; }; then
11854
sim_ac_inventor_libs="$sim_ac_iv_libcheck $sim_ac_inventor_image_libs"
11855
sim_ac_inventor_cppflags="$sim_ac_iv_cppflags_loop $sim_ac_inventor_cppflags"
11857
echo "$as_me: failed program was:" >&5
11858
cat conftest.$ac_ext >&5
11860
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11865
if test "x$sim_ac_inventor_libs" != "xUNRESOLVED"; then
11866
echo "$as_me:$LINENO: result: $sim_ac_inventor_cppflags $sim_ac_inventor_ldflags $sim_ac_inventor_libs" >&5
11867
echo "${ECHO_T}$sim_ac_inventor_cppflags $sim_ac_inventor_ldflags $sim_ac_inventor_libs" >&6
11869
echo "$as_me:$LINENO: result: unavailable" >&5
11870
echo "${ECHO_T}unavailable" >&6
11873
fi # sim_ac_sbbasic = TRUE
11875
CPPFLAGS="$sim_ac_save_CPPFLAGS"
11876
LDFLAGS="$sim_ac_save_LDFLAGS"
11877
LIBS="$sim_ac_save_LIBS"
11879
if test "x$sim_ac_inventor_libs" != "xUNRESOLVED"; then
11881
CPPFLAGS="$sim_ac_inventor_cppflags $CPPFLAGS"
11882
LDFLAGS="$sim_ac_inventor_ldflags $LDFLAGS"
11883
LIBS="$sim_ac_inventor_libs $LIBS"
11884
SOGUI_EXTRA_CPPFLAGS="$sim_ac_inventor_cppflags $SOGUI_EXTRA_CPPFLAGS"
11885
SOGUI_EXTRA_LDFLAGS="$sim_ac_inventor_ldflags $SOGUI_EXTRA_LDFLAGS"
11886
SOGUI_EXTRA_LIBS="$sim_ac_inventor_libs $SOGUI_EXTRA_LIBS"
11889
{ { echo "$as_me:$LINENO: error: couldn't compile and link against Open Inventor" >&5
11890
echo "$as_me: error: couldn't compile and link against Open Inventor" >&2;}
11891
{ (exit 1); exit 1; }; }
11894
{ { echo "$as_me:$LINENO: error: couldn't compile and link against Open Inventor" >&5
11895
echo "$as_me: error: couldn't compile and link against Open Inventor" >&2;}
11896
{ (exit 1); exit 1; }; }
11900
if test x${sim_ac_configuration_settings+set} != xset; then
11901
sim_ac_configuration_settings="Open Inventor brand:SGI/TGS Inventor"
11903
sim_ac_configuration_settings="$sim_ac_configuration_settings|Open Inventor brand:SGI/TGS Inventor"
11908
sim_ac_gl_header_avail=false
11909
echo "$as_me:$LINENO: checking how to include gl.h" >&5
11910
echo $ECHO_N "checking how to include gl.h... $ECHO_C" >&6
11911
if test x"$with_opengl" != x"no"; then
11912
sim_ac_gl_save_CPPFLAGS=$CPPFLAGS
11913
sim_ac_gl_cppflags=
11915
if test x"$with_opengl" != xyes && test x"$with_opengl" != x""; then
11916
sim_ac_gl_cppflags="-I${with_opengl}/include"
11918
# On HP-UX platforms, OpenGL headers and libraries are usually installed
11919
# at this location.
11920
sim_ac_gl_hpux=/opt/graphics/OpenGL
11921
if test -d $sim_ac_gl_hpux; then
11922
sim_ac_gl_cppflags=-I$sim_ac_gl_hpux/include
11926
CPPFLAGS="$CPPFLAGS $sim_ac_gl_cppflags"
11929
cat >conftest.$ac_ext <<_ACEOF
11930
#line $LINENO "configure"
11931
#include "confdefs.h"
11934
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11935
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11937
egrep -v '^ *\+' conftest.er1 >conftest.err
11939
cat conftest.err >&5
11940
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941
(exit $ac_status); } >/dev/null; then
11942
if test -s conftest.err; then
11943
ac_cpp_err=$ac_cxx_preproc_warn_flag
11950
if test -z "$ac_cpp_err"; then
11951
ac_cv_header_GL_gl_h=yes
11953
echo "$as_me: failed program was:" >&5
11954
cat conftest.$ac_ext >&5
11955
ac_cv_header_GL_gl_h=no
11957
rm -f conftest.err conftest.$ac_ext
11958
if test $ac_cv_header_GL_gl_h = yes; then
11960
sim_ac_gl_header_avail=true
11961
sim_ac_gl_header=GL/gl.h
11963
cat >>confdefs.h <<\_ACEOF
11964
#define HAVE_GL_GL_H 1
11971
cat >conftest.$ac_ext <<_ACEOF
11972
#line $LINENO "configure"
11973
#include "confdefs.h"
11974
#include <OpenGL/gl.h>
11976
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11977
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11979
egrep -v '^ *\+' conftest.er1 >conftest.err
11981
cat conftest.err >&5
11982
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983
(exit $ac_status); } >/dev/null; then
11984
if test -s conftest.err; then
11985
ac_cpp_err=$ac_cxx_preproc_warn_flag
11992
if test -z "$ac_cpp_err"; then
11993
ac_cv_header_OpenGL_gl_h=yes
11995
echo "$as_me: failed program was:" >&5
11996
cat conftest.$ac_ext >&5
11997
ac_cv_header_OpenGL_gl_h=no
11999
rm -f conftest.err conftest.$ac_ext
12000
if test $ac_cv_header_OpenGL_gl_h = yes; then
12002
sim_ac_gl_header_avail=true
12003
sim_ac_gl_header=OpenGL/gl.h
12005
cat >>confdefs.h <<\_ACEOF
12006
#define HAVE_OPENGL_GL_H 1
12020
CPPFLAGS="$sim_ac_gl_save_CPPFLAGS"
12021
if $sim_ac_gl_header_avail; then
12022
if test x"$sim_ac_gl_cppflags" = x""; then
12023
echo "$as_me:$LINENO: result: #include <$sim_ac_gl_header>" >&5
12024
echo "${ECHO_T}#include <$sim_ac_gl_header>" >&6
12026
echo "$as_me:$LINENO: result: $sim_ac_gl_cppflags, #include <$sim_ac_gl_header>" >&5
12027
echo "${ECHO_T}$sim_ac_gl_cppflags, #include <$sim_ac_gl_header>" >&6
12030
CPPFLAGS="$CPPFLAGS $sim_ac_gl_cppflags"
12031
SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS $sim_ac_gl_cppflags"
12034
echo "$as_me:$LINENO: result: not found" >&5
12035
echo "${ECHO_T}not found" >&6
12036
{ { echo "$as_me:$LINENO: error: could not detect a gl.h header file" >&5
12037
echo "$as_me: error: could not detect a gl.h header file" >&2;}
12038
{ (exit 1); exit 1; }; }
12041
echo "$as_me:$LINENO: result: disabled" >&5
12042
echo "${ECHO_T}disabled" >&6
12043
{ { echo "$as_me:$LINENO: error: could not detect a gl.h header file" >&5
12044
echo "$as_me: error: could not detect a gl.h header file" >&2;}
12045
{ (exit 1); exit 1; }; }
12052
# official variables
12053
sim_ac_coin_avail=false
12054
sim_ac_coin_cppflags=
12055
sim_ac_coin_cflags=
12056
sim_ac_coin_cxxflags=
12057
sim_ac_coin_ldflags=
12059
sim_ac_coin_datadir=
12060
sim_ac_coin_includedir=
12061
sim_ac_coin_version=
12063
# internal variables
12064
: ${sim_ac_coin_desired=true}
12065
sim_ac_coin_extrapath=
12068
# Check whether --with-coin or --without-coin was given.
12069
if test "${with_coin+set}" = set; then
12070
withval="$with_coin"
12072
no) sim_ac_coin_desired=false ;;
12073
yes) sim_ac_coin_desired=true ;;
12074
*) sim_ac_coin_desired=true
12075
sim_ac_coin_extrapath=$withval ;;
12079
if $sim_ac_coin_desired; then
12081
test -z "$sim_ac_coin_extrapath" || ## search in --with-coin path
12082
sim_ac_path=$sim_ac_coin_extrapath/bin:$sim_ac_path
12083
test x"$prefix" = xNONE || ## search in --prefix path
12084
sim_ac_path=$sim_ac_path:$prefix/bin
12086
# Extract the first word of "coin-config", so it can be a program name with args.
12087
set dummy coin-config; ac_word=$2
12088
echo "$as_me:$LINENO: checking for $ac_word" >&5
12089
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12090
if test "${ac_cv_path_sim_ac_coin_configcmd+set}" = set; then
12091
echo $ECHO_N "(cached) $ECHO_C" >&6
12093
case $sim_ac_coin_configcmd in
12095
ac_cv_path_sim_ac_coin_configcmd="$sim_ac_coin_configcmd" # Let the user override the test with a path.
12098
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12099
for as_dir in $sim_ac_path
12102
test -z "$as_dir" && as_dir=.
12103
for ac_exec_ext in '' $ac_executable_extensions; do
12104
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12105
ac_cv_path_sim_ac_coin_configcmd="$as_dir/$ac_word$ac_exec_ext"
12106
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12112
test -z "$ac_cv_path_sim_ac_coin_configcmd" && ac_cv_path_sim_ac_coin_configcmd="false"
12116
sim_ac_coin_configcmd=$ac_cv_path_sim_ac_coin_configcmd
12118
if test -n "$sim_ac_coin_configcmd"; then
12119
echo "$as_me:$LINENO: result: $sim_ac_coin_configcmd" >&5
12120
echo "${ECHO_T}$sim_ac_coin_configcmd" >&6
12122
echo "$as_me:$LINENO: result: no" >&5
12123
echo "${ECHO_T}no" >&6
12126
if $sim_ac_coin_configcmd; then
12127
test -n "$CONFIG" &&
12128
$sim_ac_coin_configcmd --alternate=$CONFIG >/dev/null 2>/dev/null &&
12129
sim_ac_coin_configcmd="$sim_ac_coin_configcmd --alternate=$CONFIG"
12130
sim_ac_coin_version=`$sim_ac_coin_configcmd --version`
12131
sim_ac_coin_cppflags=`$sim_ac_coin_configcmd --cppflags`
12132
sim_ac_coin_cflags=`$sim_ac_coin_configcmd --cflags 2>/dev/null`
12133
sim_ac_coin_cxxflags=`$sim_ac_coin_configcmd --cxxflags`
12134
sim_ac_coin_ldflags=`$sim_ac_coin_configcmd --ldflags`
12135
sim_ac_coin_libs=`$sim_ac_coin_configcmd --libs`
12136
sim_ac_coin_datadir=`$sim_ac_coin_configcmd --datadir`
12137
# Hide stderr on the following, as ``--includedir'', ``--msvcrt''
12138
# and ``--cflags'' options were added late to coin-config.
12139
sim_ac_coin_includedir=`$sim_ac_coin_configcmd --includedir 2>/dev/null`
12140
sim_ac_coin_msvcrt=`$sim_ac_coin_configcmd --msvcrt 2>/dev/null`
12141
sim_ac_coin_cflags=`$sim_ac_coin_configcmd --cflags 2>/dev/null`
12142
echo "$as_me:$LINENO: checking whether libCoin is available" >&5
12143
echo $ECHO_N "checking whether libCoin is available... $ECHO_C" >&6
12144
if test "${sim_cv_coin_avail+set}" = set; then
12145
echo $ECHO_N "(cached) $ECHO_C" >&6
12147
sim_ac_save_cppflags=$CPPFLAGS
12148
sim_ac_save_ldflags=$LDFLAGS
12149
sim_ac_save_libs=$LIBS
12150
CPPFLAGS="$CPPFLAGS $sim_ac_coin_cppflags"
12151
LDFLAGS="$LDFLAGS $sim_ac_coin_ldflags"
12152
LIBS="$sim_ac_coin_libs $LIBS"
12154
ac_cpp='$CXXCPP $CPPFLAGS'
12155
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12156
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12157
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12159
cat >conftest.$ac_ext <<_ACEOF
12160
#line $LINENO "configure"
12161
#include "confdefs.h"
12162
#include <Inventor/SoDB.h>
12163
#ifdef F77_DUMMY_MAIN
12164
# ifdef __cplusplus
12167
int F77_DUMMY_MAIN() { return 1; }
12177
rm -f conftest.$ac_objext conftest$ac_exeext
12178
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12179
(eval $ac_link) 2>&5
12181
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182
(exit $ac_status); } &&
12183
{ ac_try='test -s conftest$ac_exeext'
12184
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12185
(eval $ac_try) 2>&5
12187
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12188
(exit $ac_status); }; }; then
12189
sim_cv_coin_avail=true
12191
echo "$as_me: failed program was:" >&5
12192
cat conftest.$ac_ext >&5
12193
sim_cv_coin_avail=false
12195
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12197
ac_cpp='$CXXCPP $CPPFLAGS'
12198
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12199
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12200
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12202
CPPFLAGS=$sim_ac_save_cppflags
12203
LDFLAGS=$sim_ac_save_ldflags
12204
LIBS=$sim_ac_save_libs
12207
echo "$as_me:$LINENO: result: $sim_cv_coin_avail" >&5
12208
echo "${ECHO_T}$sim_cv_coin_avail" >&6
12209
sim_ac_coin_avail=$sim_cv_coin_avail
12211
locations=`IFS=:; for p in $sim_ac_path; do echo " -> $p/coin-config"; done`
12212
{ echo "$as_me:$LINENO: WARNING: cannot find 'coin-config' at any of these locations:
12214
echo "$as_me: WARNING: cannot find 'coin-config' at any of these locations:
12219
if $sim_ac_coin_avail; then
12221
CPPFLAGS="$CPPFLAGS $sim_ac_coin_cppflags"
12222
LDFLAGS="$LDFLAGS $sim_ac_coin_ldflags"
12223
LIBS="$sim_ac_coin_libs $LIBS"
12224
SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS $sim_ac_coin_cppflags"
12225
SOGUI_EXTRA_LDFLAGS="$SOGUI_EXTRA_LDFLAGS $sim_ac_coin_ldflags"
12226
SOGUI_EXTRA_LIBS="$sim_ac_coin_libs $SOGUI_EXTRA_LIBS"
12229
{ { echo "$as_me:$LINENO: error: couldn't compile and link against Coin" >&5
12230
echo "$as_me: error: couldn't compile and link against Coin" >&2;}
12231
{ (exit 1); exit 1; }; }
12235
echo "$as_me:$LINENO: checking if X11 linkage is ready" >&5
12236
echo $ECHO_N "checking if X11 linkage is ready... $ECHO_C" >&6
12237
if test "${sim_cv_x11_ready+set}" = set; then
12238
echo $ECHO_N "(cached) $ECHO_C" >&6
12240
cat >conftest.$ac_ext <<_ACEOF
12241
#line $LINENO "configure"
12242
#include "confdefs.h"
12243
#include <X11/Xlib.h>
12244
#ifdef F77_DUMMY_MAIN
12245
# ifdef __cplusplus
12248
int F77_DUMMY_MAIN() { return 1; }
12253
(void)XOpenDisplay(0L);
12258
rm -f conftest.$ac_objext conftest$ac_exeext
12259
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12260
(eval $ac_link) 2>&5
12262
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12263
(exit $ac_status); } &&
12264
{ ac_try='test -s conftest$ac_exeext'
12265
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12266
(eval $ac_try) 2>&5
12268
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269
(exit $ac_status); }; }; then
12270
sim_cv_x11_ready=true
12272
echo "$as_me: failed program was:" >&5
12273
cat conftest.$ac_ext >&5
12274
sim_cv_x11_ready=false
12276
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12278
echo "$as_me:$LINENO: result: $sim_cv_x11_ready" >&5
12279
echo "${ECHO_T}$sim_cv_x11_ready" >&6
12280
if ${sim_cv_x11_ready}; then
12281
sim_ac_x11_ready=true
12283
sim_ac_x11_ready=false
12287
if ! $sim_ac_x11_ready; then
12291
sim_ac_x11_avail=no
12293
if test x"$no_x" != xyes; then
12295
# Keep this around, as it can be handy when testing on new systems.
12296
# echo "X_CFLAGS: $X_CFLAGS"
12297
# echo "X_PRE_LIBS: $X_PRE_LIBS"
12298
# echo "X_LIBS: $X_LIBS"
12299
# echo "X_EXTRA_LIBS: $X_EXTRA_LIBS"
12303
sim_ac_x11_cppflags="$X_CFLAGS"
12304
sim_ac_x11_ldflags="$X_LIBS"
12305
sim_ac_x11_libs="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
12307
sim_ac_save_cppflags=$CPPFLAGS
12308
sim_ac_save_ldflags=$LDFLAGS
12309
sim_ac_save_libs=$LIBS
12311
CPPFLAGS="$CPPFLAGS $sim_ac_x11_cppflags"
12312
LDFLAGS="$LDFLAGS $sim_ac_x11_ldflags"
12313
LIBS="$sim_ac_x11_libs $LIBS"
12315
echo "$as_me:$LINENO: checking whether we can link against X11" >&5
12316
echo $ECHO_N "checking whether we can link against X11... $ECHO_C" >&6
12317
if test "${sim_cv_lib_x11_avail+set}" = set; then
12318
echo $ECHO_N "(cached) $ECHO_C" >&6
12320
cat >conftest.$ac_ext <<_ACEOF
12321
#line $LINENO "configure"
12322
#include "confdefs.h"
12323
#include <X11/Xlib.h>
12324
#ifdef F77_DUMMY_MAIN
12325
# ifdef __cplusplus
12328
int F77_DUMMY_MAIN() { return 1; }
12333
(void)XOpenDisplay(0L);
12338
rm -f conftest.$ac_objext conftest$ac_exeext
12339
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12340
(eval $ac_link) 2>&5
12342
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343
(exit $ac_status); } &&
12344
{ ac_try='test -s conftest$ac_exeext'
12345
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12346
(eval $ac_try) 2>&5
12348
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349
(exit $ac_status); }; }; then
12350
sim_cv_lib_x11_avail=yes
12352
echo "$as_me: failed program was:" >&5
12353
cat conftest.$ac_ext >&5
12354
sim_cv_lib_x11_avail=no
12356
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12358
echo "$as_me:$LINENO: result: $sim_cv_lib_x11_avail" >&5
12359
echo "${ECHO_T}$sim_cv_lib_x11_avail" >&6
12361
if test x"$sim_cv_lib_x11_avail" = x"yes"; then
12362
sim_ac_x11_avail=yes
12364
CPPFLAGS="$CPPFLAGS $sim_ac_x11_cppflags"
12365
LDFLAGS="$LDFLAGS $sim_ac_x11_ldflags"
12366
LIBS="$sim_ac_x11_libs $LIBS"
12367
SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS $sim_ac_x11_cppflags"
12368
SOGUI_EXTRA_LDFLAGS="$SOGUI_EXTRA_LDFLAGS $sim_ac_x11_ldflags"
12369
SOGUI_EXTRA_LIBS="$sim_ac_x11_libs $SOGUI_EXTRA_LIBS"
12372
CPPFLAGS=$sim_ac_save_cppflags
12373
LDFLAGS=$sim_ac_save_ldflags
12374
LIBS=$sim_ac_save_libs
12379
# FIXME: we just implicitly assume that -lXext and -lXmu is available
12380
# if -lX11 is available from coin-config. Should really have macros
12381
# SIM_AC_CHECK_[X11SHMEM|X11MU]_READY. 20001116 mortene.
12382
if test x"$sim_ac_x11_avail" = xyes; then
12385
sim_ac_x11shmem_avail=no
12386
sim_ac_x11shmem_libs="-lXext"
12387
sim_ac_save_libs=$LIBS
12388
LIBS="$sim_ac_x11shmem_libs $LIBS"
12390
echo "$as_me:$LINENO: checking whether the X11 shared memory extension is available" >&5
12391
echo $ECHO_N "checking whether the X11 shared memory extension is available... $ECHO_C" >&6
12392
if test "${sim_cv_lib_x11shmem_avail+set}" = set; then
12393
echo $ECHO_N "(cached) $ECHO_C" >&6
12395
cat >conftest.$ac_ext <<_ACEOF
12396
#line $LINENO "configure"
12397
#include "confdefs.h"
12398
#include <X11/Xlib.h>
12399
#include <X11/extensions/XShm.h>
12400
#ifdef F77_DUMMY_MAIN
12401
# ifdef __cplusplus
12404
int F77_DUMMY_MAIN() { return 1; }
12409
(void)XShmQueryVersion(0L, 0L, 0L, 0L);
12414
rm -f conftest.$ac_objext conftest$ac_exeext
12415
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12416
(eval $ac_link) 2>&5
12418
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419
(exit $ac_status); } &&
12420
{ ac_try='test -s conftest$ac_exeext'
12421
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12422
(eval $ac_try) 2>&5
12424
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425
(exit $ac_status); }; }; then
12426
sim_cv_lib_x11shmem_avail=yes
12428
echo "$as_me: failed program was:" >&5
12429
cat conftest.$ac_ext >&5
12430
sim_cv_lib_x11shmem_avail=no
12432
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12434
echo "$as_me:$LINENO: result: $sim_cv_lib_x11shmem_avail" >&5
12435
echo "${ECHO_T}$sim_cv_lib_x11shmem_avail" >&6
12437
if test x"$sim_cv_lib_x11shmem_avail" = xyes; then
12438
sim_ac_x11shmem_avail=yes
12440
# LIBS="$sim_ac_x11shmem_libs $LIBS"
12441
SOGUI_EXTRA_LIBS="$sim_ac_x11shmem_libs $SOGUI_EXTRA_LIBS"
12444
LIBS=$sim_ac_save_libs
12450
sim_ac_x11mu_avail=no
12451
sim_ac_x11mu_libs="-lXmu"
12452
sim_ac_save_libs=$LIBS
12453
LIBS="$sim_ac_x11mu_libs $LIBS"
12455
echo "$as_me:$LINENO: checking whether the X11 miscellaneous utilities is available" >&5
12456
echo $ECHO_N "checking whether the X11 miscellaneous utilities is available... $ECHO_C" >&6
12457
if test "${sim_cv_lib_x11mu_avail+set}" = set; then
12458
echo $ECHO_N "(cached) $ECHO_C" >&6
12460
cat >conftest.$ac_ext <<_ACEOF
12461
#line $LINENO "configure"
12462
#include "confdefs.h"
12463
#include <X11/Xlib.h>
12464
#include <X11/Xmu/Xmu.h>
12465
#include <X11/Xmu/StdCmap.h>
12466
#ifdef F77_DUMMY_MAIN
12467
# ifdef __cplusplus
12470
int F77_DUMMY_MAIN() { return 1; }
12475
(void)XmuAllStandardColormaps(0L);
12480
rm -f conftest.$ac_objext conftest$ac_exeext
12481
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12482
(eval $ac_link) 2>&5
12484
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485
(exit $ac_status); } &&
12486
{ ac_try='test -s conftest$ac_exeext'
12487
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12488
(eval $ac_try) 2>&5
12490
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12491
(exit $ac_status); }; }; then
12492
sim_cv_lib_x11mu_avail=yes
12494
echo "$as_me: failed program was:" >&5
12495
cat conftest.$ac_ext >&5
12496
sim_cv_lib_x11mu_avail=no
12498
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12500
echo "$as_me:$LINENO: result: $sim_cv_lib_x11mu_avail" >&5
12501
echo "${ECHO_T}$sim_cv_lib_x11mu_avail" >&6
12503
if test x"$sim_cv_lib_x11mu_avail" = xyes; then
12504
sim_ac_x11mu_avail=yes
12506
# LIBS="$sim_ac_x11mu_libs $LIBS"
12507
SOGUI_EXTRA_LIBS="$sim_ac_x11mu_libs $SOGUI_EXTRA_LIBS"
12510
LIBS=$sim_ac_save_libs
12518
sim_ac_x11xid_avail=no
12519
sim_ac_x11xid_libs="-lXi"
12520
sim_ac_save_libs=$LIBS
12521
LIBS="$sim_ac_x11xid_libs $LIBS"
12523
echo "$as_me:$LINENO: checking whether the X11 extension device library is available" >&5
12524
echo $ECHO_N "checking whether the X11 extension device library is available... $ECHO_C" >&6
12525
if test "${sim_cv_lib_x11xid_avail+set}" = set; then
12526
echo $ECHO_N "(cached) $ECHO_C" >&6
12528
cat >conftest.$ac_ext <<_ACEOF
12529
#line $LINENO "configure"
12530
#include "confdefs.h"
12531
#include <X11/extensions/XInput.h>
12532
#ifdef F77_DUMMY_MAIN
12533
# ifdef __cplusplus
12536
int F77_DUMMY_MAIN() { return 1; }
12541
(void)XOpenDevice(0L, 0);
12546
rm -f conftest.$ac_objext conftest$ac_exeext
12547
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12548
(eval $ac_link) 2>&5
12550
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551
(exit $ac_status); } &&
12552
{ ac_try='test -s conftest$ac_exeext'
12553
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12554
(eval $ac_try) 2>&5
12556
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557
(exit $ac_status); }; }; then
12558
sim_cv_lib_x11xid_avail=yes
12560
echo "$as_me: failed program was:" >&5
12561
cat conftest.$ac_ext >&5
12562
sim_cv_lib_x11xid_avail=no
12564
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12566
echo "$as_me:$LINENO: result: $sim_cv_lib_x11xid_avail" >&5
12567
echo "${ECHO_T}$sim_cv_lib_x11xid_avail" >&6
12569
if test x"$sim_cv_lib_x11xid_avail" = xyes; then
12570
sim_ac_x11xid_avail=yes
12572
SOGUI_EXTRA_LIBS="$sim_ac_x11xid_libs $SOGUI_EXTRA_LIBS"
12575
LIBS=$sim_ac_save_libs
12579
if test x${sim_ac_configuration_settings+set} != xset; then
12580
sim_ac_configuration_settings="Open Inventor brand:Coin"
12582
sim_ac_configuration_settings="$sim_ac_configuration_settings|Open Inventor brand:Coin"
12588
echo "$as_me:$LINENO: checking whether GLX is on the system" >&5
12589
echo $ECHO_N "checking whether GLX is on the system... $ECHO_C" >&6
12590
if test "${sim_cv_have_glx+set}" = set; then
12591
echo $ECHO_N "(cached) $ECHO_C" >&6
12593
cat >conftest.$ac_ext <<_ACEOF
12594
#line $LINENO "configure"
12595
#include "confdefs.h"
12597
#include <GL/glx.h>
12600
#ifdef F77_DUMMY_MAIN
12601
# ifdef __cplusplus
12604
int F77_DUMMY_MAIN() { return 1; }
12610
(void)glXChooseVisual(0L, 0, 0L);
12611
/* Defect JAGad01283 of HP's aCC compiler causes a link failure unless
12612
there is at least one "pure" OpenGL call along with GLU calls. */
12619
rm -f conftest.$ac_objext conftest$ac_exeext
12620
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12621
(eval $ac_link) 2>&5
12623
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12624
(exit $ac_status); } &&
12625
{ ac_try='test -s conftest$ac_exeext'
12626
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12627
(eval $ac_try) 2>&5
12629
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12630
(exit $ac_status); }; }; then
12631
sim_cv_have_glx=true
12633
echo "$as_me: failed program was:" >&5
12634
cat conftest.$ac_ext >&5
12635
sim_cv_have_glx=false
12637
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12639
echo "$as_me:$LINENO: result: $sim_cv_have_glx" >&5
12640
echo "${ECHO_T}$sim_cv_have_glx" >&6
12642
if ${sim_cv_have_glx=false}; then
12645
cat >>confdefs.h <<\_ACEOF
12655
## We need this extra, final X11 check to set up the HAVE_X11_AVAILABLE
12656
## define -- the X_DISPLAY_MISSING define provided by the built-in
12657
## Autoconf X11 check is not strict enough.
12658
echo "$as_me:$LINENO: checking if X11 linkage is ready" >&5
12659
echo $ECHO_N "checking if X11 linkage is ready... $ECHO_C" >&6
12660
if test "${sim_cv_x11_ready+set}" = set; then
12661
echo $ECHO_N "(cached) $ECHO_C" >&6
12663
cat >conftest.$ac_ext <<_ACEOF
12664
#line $LINENO "configure"
12665
#include "confdefs.h"
12666
#include <X11/Xlib.h>
12667
#ifdef F77_DUMMY_MAIN
12668
# ifdef __cplusplus
12671
int F77_DUMMY_MAIN() { return 1; }
12676
(void)XOpenDisplay(0L);
12681
rm -f conftest.$ac_objext conftest$ac_exeext
12682
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12683
(eval $ac_link) 2>&5
12685
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686
(exit $ac_status); } &&
12687
{ ac_try='test -s conftest$ac_exeext'
12688
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12689
(eval $ac_try) 2>&5
12691
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12692
(exit $ac_status); }; }; then
12693
sim_cv_x11_ready=true
12695
echo "$as_me: failed program was:" >&5
12696
cat conftest.$ac_ext >&5
12697
sim_cv_x11_ready=false
12699
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12701
echo "$as_me:$LINENO: result: $sim_cv_x11_ready" >&5
12702
echo "${ECHO_T}$sim_cv_x11_ready" >&6
12703
if ${sim_cv_x11_ready}; then
12705
cat >>confdefs.h <<\_ACEOF
12706
#define HAVE_X11_AVAILABLE
12714
# Check for the availability of this node (it is used in the hidden
12715
# line rendering), which is not part of older Inventor implementations.
12717
echo "$as_me:$LINENO: checking if the Open Inventor SoPolygonOffset node is available" >&5
12718
echo $ECHO_N "checking if the Open Inventor SoPolygonOffset node is available... $ECHO_C" >&6
12719
if test "${sim_cv_have_oiv_sopolygonoffset_node+set}" = set; then
12720
echo $ECHO_N "(cached) $ECHO_C" >&6
12722
cat >conftest.$ac_ext <<_ACEOF
12723
#line $LINENO "configure"
12724
#include "confdefs.h"
12725
#include <Inventor/nodes/SoPolygonOffset.h>
12726
#ifdef F77_DUMMY_MAIN
12727
# ifdef __cplusplus
12730
int F77_DUMMY_MAIN() { return 1; }
12735
SoPolygonOffset * p = new SoPolygonOffset;
12740
rm -f conftest.$ac_objext conftest$ac_exeext
12741
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12742
(eval $ac_link) 2>&5
12744
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12745
(exit $ac_status); } &&
12746
{ ac_try='test -s conftest$ac_exeext'
12747
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12748
(eval $ac_try) 2>&5
12750
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751
(exit $ac_status); }; }; then
12752
sim_cv_have_oiv_sopolygonoffset_node=true
12754
echo "$as_me: failed program was:" >&5
12755
cat conftest.$ac_ext >&5
12756
sim_cv_have_oiv_sopolygonoffset_node=false
12758
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12760
echo "$as_me:$LINENO: result: $sim_cv_have_oiv_sopolygonoffset_node" >&5
12761
echo "${ECHO_T}$sim_cv_have_oiv_sopolygonoffset_node" >&6
12763
if $sim_cv_have_oiv_sopolygonoffset_node; then
12765
cat >>confdefs.h <<\_ACEOF
12766
#define HAVE_SOPOLYGONOFFSET 1
12777
echo "$as_me:$LINENO: checking for SoKeyboardEvent::DELETE enum" >&5
12778
echo $ECHO_N "checking for SoKeyboardEvent::DELETE enum... $ECHO_C" >&6
12779
if test "${sim_cv_have_oiv_have_sokeyboardevent_delete+set}" = set; then
12780
echo $ECHO_N "(cached) $ECHO_C" >&6
12782
cat >conftest.$ac_ext <<_ACEOF
12783
#line $LINENO "configure"
12784
#include "confdefs.h"
12785
#include <Inventor/events/SoKeyboardEvent.h>
12786
#ifdef F77_DUMMY_MAIN
12787
# ifdef __cplusplus
12790
int F77_DUMMY_MAIN() { return 1; }
12796
/* This is either DELETE or KEY_DELETE */
12797
SoKeyboardEvent::Key key = SoKeyboardEvent::DELETE;
12802
rm -f conftest.$ac_objext conftest$ac_exeext
12803
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12804
(eval $ac_link) 2>&5
12806
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807
(exit $ac_status); } &&
12808
{ ac_try='test -s conftest$ac_exeext'
12809
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12810
(eval $ac_try) 2>&5
12812
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12813
(exit $ac_status); }; }; then
12814
sim_cv_have_oiv_have_sokeyboardevent_delete=true
12816
echo "$as_me: failed program was:" >&5
12817
cat conftest.$ac_ext >&5
12818
sim_cv_have_oiv_have_sokeyboardevent_delete=false
12820
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12822
echo "$as_me:$LINENO: result: $sim_cv_have_oiv_have_sokeyboardevent_delete" >&5
12823
echo "${ECHO_T}$sim_cv_have_oiv_have_sokeyboardevent_delete" >&6
12825
if $sim_cv_have_oiv_have_sokeyboardevent_delete; then
12827
cat >>confdefs.h <<\_ACEOF
12828
#define HAVE_SOKEYBOARDEVENT_DELETE 1
12839
echo "$as_me:$LINENO: checking for SoMouseButtonEvent::BUTTON5 enum" >&5
12840
echo $ECHO_N "checking for SoMouseButtonEvent::BUTTON5 enum... $ECHO_C" >&6
12841
if test "${sim_cv_have_oiv_have_somousebuttonevent_button5+set}" = set; then
12842
echo $ECHO_N "(cached) $ECHO_C" >&6
12844
cat >conftest.$ac_ext <<_ACEOF
12845
#line $LINENO "configure"
12846
#include "confdefs.h"
12847
#include <Inventor/events/SoMouseButtonEvent.h>
12848
#ifdef F77_DUMMY_MAIN
12849
# ifdef __cplusplus
12852
int F77_DUMMY_MAIN() { return 1; }
12858
/* mouse wheel support needs BUTTON4 and BUTTON5 */
12859
SoMouseButtonEvent::Button button = SoMouseButtonEvent::BUTTON5;
12864
rm -f conftest.$ac_objext conftest$ac_exeext
12865
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12866
(eval $ac_link) 2>&5
12868
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869
(exit $ac_status); } &&
12870
{ ac_try='test -s conftest$ac_exeext'
12871
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12872
(eval $ac_try) 2>&5
12874
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875
(exit $ac_status); }; }; then
12876
sim_cv_have_oiv_have_somousebuttonevent_button5=true
12878
echo "$as_me: failed program was:" >&5
12879
cat conftest.$ac_ext >&5
12880
sim_cv_have_oiv_have_somousebuttonevent_button5=false
12882
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12884
echo "$as_me:$LINENO: result: $sim_cv_have_oiv_have_somousebuttonevent_button5" >&5
12885
echo "${ECHO_T}$sim_cv_have_oiv_have_somousebuttonevent_button5" >&6
12887
if $sim_cv_have_oiv_have_somousebuttonevent_button5; then
12889
cat >>confdefs.h <<\_ACEOF
12890
#define HAVE_SOMOUSEBUTTONEVENT_BUTTON5 1
12901
echo "$as_me:$LINENO: checking for SoCamera::setStereoMode() method" >&5
12902
echo $ECHO_N "checking for SoCamera::setStereoMode() method... $ECHO_C" >&6
12903
if test "${sim_cv_have_oiv_have_socamera_setstereomode+set}" = set; then
12904
echo $ECHO_N "(cached) $ECHO_C" >&6
12906
cat >conftest.$ac_ext <<_ACEOF
12907
#line $LINENO "configure"
12908
#include "confdefs.h"
12909
#include <Inventor/nodes/SoPerspectiveCamera.h>
12910
#ifdef F77_DUMMY_MAIN
12911
# ifdef __cplusplus
12914
int F77_DUMMY_MAIN() { return 1; }
12919
/* SoCamera is abstract, so test with SoPerspectiveCamera */
12920
SoPerspectiveCamera * c = new SoPerspectiveCamera;
12921
c->setStereoMode(SoCamera::MONOSCOPIC);
12926
rm -f conftest.$ac_objext conftest$ac_exeext
12927
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12928
(eval $ac_link) 2>&5
12930
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931
(exit $ac_status); } &&
12932
{ ac_try='test -s conftest$ac_exeext'
12933
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12934
(eval $ac_try) 2>&5
12936
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937
(exit $ac_status); }; }; then
12938
sim_cv_have_oiv_have_socamera_setstereomode=true
12940
echo "$as_me: failed program was:" >&5
12941
cat conftest.$ac_ext >&5
12942
sim_cv_have_oiv_have_socamera_setstereomode=false
12944
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12946
echo "$as_me:$LINENO: result: $sim_cv_have_oiv_have_socamera_setstereomode" >&5
12947
echo "${ECHO_T}$sim_cv_have_oiv_have_socamera_setstereomode" >&6
12949
if $sim_cv_have_oiv_have_socamera_setstereomode; then
12951
cat >>confdefs.h <<\_ACEOF
12952
#define HAVE_SOCAMERA_SETSTEREOMODE 1
12964
# Check whether --with-iv-extensions or --without-iv-extensions was given.
12965
if test "${with_iv_extensions+set}" = set; then
12966
withval="$with_iv_extensions"
12967
sim_ac_iv_try_extensions=$withval
12970
sim_ac_iv_extension_save_LIBS=$LIBS
12972
sim_ac_iv_extension_LIBS=
12973
sim_ac_iv_extension_LDFLAGS=
12974
sim_ac_iv_extension_decarations=
12975
sim_ac_iv_extension_initializations=
12977
sim_ac_iv_extensions=
12978
while test x"${sim_ac_iv_try_extensions}" != x""; do
12979
sim_ac_iv_extension=`echo ,$sim_ac_iv_try_extensions | cut -d, -f2`
12980
sim_ac_iv_try_extensions=`echo ,$sim_ac_iv_try_extensions | cut -d, -f3-`
12981
case $sim_ac_iv_extension in
12982
sim_ac_dummy ) # ignore
12984
-L* ) # extension library path hint
12985
sim_ac_iv_extension_LDFLAGS="$sim_ac_iv_extension_LDFLAGS $sim_ac_iv_extension"
12987
-l* ) # extension library hint
12988
LIBS="$sim_ac_iv_extension_save_LIBS $sim_ac_iv_extension_LIBS $sim_ac_iv_extension"
12989
echo "$as_me:$LINENO: checking for Open Inventor extension library $sim_ac_iv_extension" >&5
12990
echo $ECHO_N "checking for Open Inventor extension library $sim_ac_iv_extension... $ECHO_C" >&6
12991
cat >conftest.$ac_ext <<_ACEOF
12992
#line $LINENO "configure"
12993
#include "confdefs.h"
12994
#include <Inventor/SoDB.h>
12995
#ifdef F77_DUMMY_MAIN
12996
# ifdef __cplusplus
12999
int F77_DUMMY_MAIN() { return 1; }
13009
rm -f conftest.$ac_objext conftest$ac_exeext
13010
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13011
(eval $ac_link) 2>&5
13013
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13014
(exit $ac_status); } &&
13015
{ ac_try='test -s conftest$ac_exeext'
13016
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13017
(eval $ac_try) 2>&5
13019
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020
(exit $ac_status); }; }; then
13021
sim_ac_iv_extension_LIBS="$sim_ac_iv_extension_LIBS $sim_ac_iv_extension"
13022
echo "$as_me:$LINENO: result: linkable" >&5
13023
echo "${ECHO_T}linkable" >&6
13025
echo "$as_me: failed program was:" >&5
13026
cat conftest.$ac_ext >&5
13027
echo "$as_me:$LINENO: result: unlinkable - discarded" >&5
13028
echo "${ECHO_T}unlinkable - discarded" >&6
13030
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13033
echo "$as_me:$LINENO: checking for Open Inventor extension $sim_ac_iv_extension" >&5
13034
echo $ECHO_N "checking for Open Inventor extension $sim_ac_iv_extension... $ECHO_C" >&6
13035
cat >conftest.$ac_ext <<_ACEOF
13036
#line $LINENO "configure"
13037
#include "confdefs.h"
13038
#include <Inventor/SoDB.h>
13039
// hack up a declaration and see if the mangled name is found by the linker
13040
class $sim_ac_iv_extension {
13042
static void initClass(void);
13044
#ifdef F77_DUMMY_MAIN
13045
# ifdef __cplusplus
13048
int F77_DUMMY_MAIN() { return 1; }
13055
$sim_ac_iv_extension::initClass();
13061
rm -f conftest.$ac_objext conftest$ac_exeext
13062
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13063
(eval $ac_link) 2>&5
13065
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066
(exit $ac_status); } &&
13067
{ ac_try='test -s conftest$ac_exeext'
13068
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13069
(eval $ac_try) 2>&5
13071
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072
(exit $ac_status); }; }; then
13074
echo "$as_me:$LINENO: result: found" >&5
13075
echo "${ECHO_T}found" >&6
13076
sim_ac_iv_extensions="$sim_ac_iv_extensions COIN_IV_EXTENSION($sim_ac_iv_extension)"
13079
echo "$as_me: failed program was:" >&5
13080
cat conftest.$ac_ext >&5
13082
echo "$as_me:$LINENO: result: not found" >&5
13083
echo "${ECHO_T}not found" >&6
13086
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13092
cat >>confdefs.h <<_ACEOF
13093
#define COIN_IV_EXTENSIONS $sim_ac_iv_extensions
13097
LIBS=$sim_ac_iv_extension_save_LIBS
13100
LDFLAGS="$sim_ac_iv_extension_LDFLAGS $LDFLAGS"
13101
SOGUI_EXTRA_LDFLAGS="$sim_ac_iv_extension_LDFLAGS $SOGUI_EXTRA_LDFLAGS"
13102
LIBS="$sim_ac_iv_extension_LIBS $LIBS"
13103
SOGUI_EXTRA_LIBS="$sim_ac_iv_extension_LIBS $SOGUI_EXTRA_LIBS"
13108
# **************************************************************************
13109
# Check that the Qt installation looks ok and include the
13110
# necessary paths and link libraries.
13112
# FIXME: why is this here? - it's duplicate from below AC_PROG_CC 20020110 larsa
13115
if test x"$sim_ac_x11mu_avail" != xyes; then
13116
## It's really QGL that depends on Xmu, not Qt. But we need to do this
13117
## check before checking for the Qt library, not after, in case QGL is
13118
## embedded into Qt.
13121
sim_ac_x11mu_avail=no
13122
sim_ac_x11mu_libs="-lXmu"
13123
sim_ac_save_libs=$LIBS
13124
LIBS="$sim_ac_x11mu_libs $LIBS"
13126
echo "$as_me:$LINENO: checking whether the X11 miscellaneous utilities is available" >&5
13127
echo $ECHO_N "checking whether the X11 miscellaneous utilities is available... $ECHO_C" >&6
13128
if test "${sim_cv_lib_x11mu_avail+set}" = set; then
13129
echo $ECHO_N "(cached) $ECHO_C" >&6
13131
cat >conftest.$ac_ext <<_ACEOF
13132
#line $LINENO "configure"
13133
#include "confdefs.h"
13134
#include <X11/Xlib.h>
13135
#include <X11/Xmu/Xmu.h>
13136
#include <X11/Xmu/StdCmap.h>
13137
#ifdef F77_DUMMY_MAIN
13138
# ifdef __cplusplus
13141
int F77_DUMMY_MAIN() { return 1; }
13146
(void)XmuAllStandardColormaps(0L);
13151
rm -f conftest.$ac_objext conftest$ac_exeext
13152
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13153
(eval $ac_link) 2>&5
13155
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156
(exit $ac_status); } &&
13157
{ ac_try='test -s conftest$ac_exeext'
13158
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13159
(eval $ac_try) 2>&5
13161
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13162
(exit $ac_status); }; }; then
13163
sim_cv_lib_x11mu_avail=yes
13165
echo "$as_me: failed program was:" >&5
13166
cat conftest.$ac_ext >&5
13167
sim_cv_lib_x11mu_avail=no
13169
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13171
echo "$as_me:$LINENO: result: $sim_cv_lib_x11mu_avail" >&5
13172
echo "${ECHO_T}$sim_cv_lib_x11mu_avail" >&6
13174
if test x"$sim_cv_lib_x11mu_avail" = xyes; then
13175
sim_ac_x11mu_avail=yes
13176
SOGUI_EXTRA_LIBS="$sim_ac_x11mu_libs $SOGUI_EXTRA_LIBS"
13178
LIBS=$sim_ac_save_libs
13187
# Check whether --with-qt or --without-qt was given.
13188
if test "${with_qt+set}" = set; then
13195
# Check whether --enable-qt-debug or --disable-qt-debug was given.
13196
if test "${enable_qt_debug+set}" = set; then
13197
enableval="$enable_qt_debug"
13199
yes | true ) sim_ac_qt_debug=true ;;
13200
*) sim_ac_qt_debug=false ;;
13203
sim_ac_qt_debug=false
13208
if test x"$with_qt" != xno; then
13211
# Remember over config.status re-runs of configure.
13212
# FIXME: this doesn't work unless QTDIR is part of the configure
13213
# argument line. We should be able to grab it from the
13214
# environment settings. 20011018 mortene.
13218
# The Cygwin environment needs to invoke moc with a POSIX-style path.
13219
# Extract the first word of "cygpath", so it can be a program name with args.
13220
set dummy cygpath; ac_word=$2
13221
echo "$as_me:$LINENO: checking for $ac_word" >&5
13222
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13223
if test "${ac_cv_path_sim_ac_qt_cygpath+set}" = set; then
13224
echo $ECHO_N "(cached) $ECHO_C" >&6
13226
case $sim_ac_qt_cygpath in
13228
ac_cv_path_sim_ac_qt_cygpath="$sim_ac_qt_cygpath" # Let the user override the test with a path.
13231
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13232
for as_dir in $PATH
13235
test -z "$as_dir" && as_dir=.
13236
for ac_exec_ext in '' $ac_executable_extensions; do
13237
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13238
ac_cv_path_sim_ac_qt_cygpath="$as_dir/$ac_word$ac_exec_ext"
13239
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13245
test -z "$ac_cv_path_sim_ac_qt_cygpath" && ac_cv_path_sim_ac_qt_cygpath="false"
13249
sim_ac_qt_cygpath=$ac_cv_path_sim_ac_qt_cygpath
13251
if test -n "$sim_ac_qt_cygpath"; then
13252
echo "$as_me:$LINENO: result: $sim_ac_qt_cygpath" >&5
13253
echo "${ECHO_T}$sim_ac_qt_cygpath" >&6
13255
echo "$as_me:$LINENO: result: no" >&5
13256
echo "${ECHO_T}no" >&6
13259
if test $sim_ac_qt_cygpath = "false"; then
13260
sim_ac_qt_dir=$QTDIR
13262
# Quote $QTDIR in case it's empty.
13263
sim_ac_qt_dir=`$sim_ac_qt_cygpath -u "$QTDIR"`
13266
if test x"$with_qt" != xyes; then
13267
sim_ac_qt_incflags="-I${with_qt}/include"
13268
sim_ac_qt_ldflags="-L${with_qt}/lib"
13269
sim_ac_path=${with_qt}/bin:$PATH
13271
echo "$as_me:$LINENO: checking value of the QTDIR environment variable" >&5
13272
echo $ECHO_N "checking value of the QTDIR environment variable... $ECHO_C" >&6
13273
if test x"$sim_ac_qt_dir" = x""; then
13274
echo "$as_me:$LINENO: result: empty" >&5
13275
echo "${ECHO_T}empty" >&6
13276
{ echo "$as_me:$LINENO: WARNING: QTDIR environment variable not set -- this might be an indication of a problem" >&5
13277
echo "$as_me: WARNING: QTDIR environment variable not set -- this might be an indication of a problem" >&2;}
13279
echo "$as_me:$LINENO: result: $sim_ac_qt_dir" >&5
13280
echo "${ECHO_T}$sim_ac_qt_dir" >&6
13282
# list contents of what's in the qt dev environment into config.log...
13283
for i in "" bin lib; do
13284
echo "Listing contents of $sim_ac_qt_dir/$i:" >&5
13285
ls -l $sim_ac_qt_dir/$i >&5 2>&1
13288
sim_ac_qt_incflags="-I$sim_ac_qt_dir/include"
13289
sim_ac_qt_ldflags="-L$sim_ac_qt_dir/lib"
13290
sim_ac_path=$sim_ac_qt_dir/bin:$PATH
13294
sim_ac_save_cppflags=$CPPFLAGS
13295
sim_ac_save_ldflags=$LDFLAGS
13296
sim_ac_save_libs=$LIBS
13298
CPPFLAGS="$sim_ac_qt_incflags $CPPFLAGS"
13299
LDFLAGS="$LDFLAGS $sim_ac_qt_ldflags"
13301
sim_ac_qt_libs=UNRESOLVED
13303
# Extract the first word of "moc", so it can be a program name with args.
13304
set dummy moc; ac_word=$2
13305
echo "$as_me:$LINENO: checking for $ac_word" >&5
13306
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13307
if test "${ac_cv_path_MOC+set}" = set; then
13308
echo $ECHO_N "(cached) $ECHO_C" >&6
13312
ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
13315
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13316
for as_dir in $sim_ac_path
13319
test -z "$as_dir" && as_dir=.
13320
for ac_exec_ext in '' $ac_executable_extensions; do
13321
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13322
ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
13323
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13329
test -z "$ac_cv_path_MOC" && ac_cv_path_MOC="false"
13333
MOC=$ac_cv_path_MOC
13335
if test -n "$MOC"; then
13336
echo "$as_me:$LINENO: result: $MOC" >&5
13337
echo "${ECHO_T}$MOC" >&6
13339
echo "$as_me:$LINENO: result: no" >&5
13340
echo "${ECHO_T}no" >&6
13344
if test x"$MOC" = x"false"; then
13345
{ echo "$as_me:$LINENO: WARNING: the \`\`moc'' Qt pre-processor tool not found" >&5
13346
echo "$as_me: WARNING: the \`\`moc'' Qt pre-processor tool not found" >&2;}
13349
sim_ac_qglobal=false
13351
cat >conftest.$ac_ext <<_ACEOF
13352
#line $LINENO "configure"
13353
#include "confdefs.h"
13354
#include <qglobal.h>
13356
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13357
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13359
egrep -v '^ *\+' conftest.er1 >conftest.err
13361
cat conftest.err >&5
13362
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363
(exit $ac_status); } >/dev/null; then
13364
if test -s conftest.err; then
13365
ac_cpp_err=$ac_cxx_preproc_warn_flag
13372
if test -z "$ac_cpp_err"; then
13373
ac_cv_header_qglobal_h=yes
13375
echo "$as_me: failed program was:" >&5
13376
cat conftest.$ac_ext >&5
13377
ac_cv_header_qglobal_h=no
13379
rm -f conftest.err conftest.$ac_ext
13380
if test $ac_cv_header_qglobal_h = yes; then
13381
sim_ac_qglobal=true
13383
# Debian Linux has the Qt-dev installation headers in a separate subdir.
13384
sim_ac_debian_qtheaders=/usr/include/qt
13385
if test -d $sim_ac_debian_qtheaders; then
13386
sim_ac_qt_incflags="-I$sim_ac_debian_qtheaders $sim_ac_qt_incflags"
13387
CPPFLAGS="-I$sim_ac_debian_qtheaders $CPPFLAGS"
13389
cat >conftest.$ac_ext <<_ACEOF
13390
#line $LINENO "configure"
13391
#include "confdefs.h"
13392
#include <qglobal.h>
13394
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13395
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13397
egrep -v '^ *\+' conftest.er1 >conftest.err
13399
cat conftest.err >&5
13400
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13401
(exit $ac_status); } >/dev/null; then
13402
if test -s conftest.err; then
13403
ac_cpp_err=$ac_cxx_preproc_warn_flag
13410
if test -z "$ac_cpp_err"; then
13411
ac_cv_header_qglobal_h=yes
13413
echo "$as_me: failed program was:" >&5
13414
cat conftest.$ac_ext >&5
13415
ac_cv_header_qglobal_h=no
13417
rm -f conftest.err conftest.$ac_ext
13418
if test $ac_cv_header_qglobal_h = yes; then
13419
sim_ac_qglobal=true
13430
if $sim_ac_qglobal; then
13432
# Find version of the Qt library (MSWindows .dll is named with the
13434
echo "$as_me:$LINENO: checking version of Qt library" >&5
13435
echo $ECHO_N "checking version of Qt library... $ECHO_C" >&6
13436
cat > conftest.c << EOF
13437
#include <qglobal.h>
13438
int VerQt = QT_VERSION;
13440
# The " *"-parts of the last sed-expression on the next line are necessary
13441
# because at least the Solaris/CC preprocessor adds extra spaces before and
13442
# after the trailing semicolon.
13443
sim_ac_qt_version=`$CXXCPP $CPPFLAGS conftest.c 2>/dev/null | grep '^int VerQt' | sed 's%^int VerQt = %%' | sed 's% *; *$%%'`
13445
case $sim_ac_qt_version in
13447
sim_ac_qt_version=`echo $sim_ac_qt_version | sed -e 's/^0x.\(.\).\(.\).\(.\)/\1\2\3/;'`
13455
echo "$as_me:$LINENO: result: $sim_ac_qt_version" >&5
13456
echo "${ECHO_T}$sim_ac_qt_version" >&6
13458
if test $sim_ac_qt_version -lt 200; then
13463
: ${sim_ac_message_file=$ac_aux_dir/m4/errors.txt}
13464
if test -f $sim_ac_message_file; then
13465
sim_ac_message="`sed -n -e '/^!too-old-qt$/,/^!/ { /^!/ d; p; }' <$sim_ac_message_file`"
13466
if test x"$sim_ac_message" = x""; then
13467
{ { echo "$as_me:$LINENO: error: no message named 'too-old-qt' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" >&5
13468
echo "$as_me: error: no message named 'too-old-qt' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" >&2;}
13469
{ (exit 1); exit 1; }; }
13471
eval "echo >&2 \"$sim_ac_message\""
13474
{ { echo "$as_me:$LINENO: error: file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" >&5
13475
echo "$as_me: error: file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" >&2;}
13476
{ (exit 1); exit 1; }; }
13482
{ { echo "$as_me:$LINENO: error: aborting" >&5
13483
echo "$as_me: error: aborting" >&2;}
13484
{ (exit 1); exit 1; }; }
13488
# Too hard to feature-check for the Qt-on-Mac problems, as they involve
13489
# obscure behavior of the QGLWidget -- so we just resort to do platform
13490
# and version checking instead.
13493
if test $sim_ac_qt_version -lt 302; then
13494
if test x${sim_ac_configuration_warnings+set} != xset; then
13495
sim_ac_configuration_warnings="The version of Qt you are using is
13496
known to contain some serious bugs on MacOS X. We strongly recommend you to
13497
upgrade. (See $srcdir/README.MAC for details.)"
13499
sim_ac_configuration_warnings="$sim_ac_configuration_warnings|The version of Qt you are using is
13500
known to contain some serious bugs on MacOS X. We strongly recommend you to
13501
upgrade. (See $srcdir/README.MAC for details.)"
13506
# Qt/X11 is currently not supported on Mac OS X.
13507
cat >conftest.$ac_ext <<_ACEOF
13508
#line $LINENO "configure"
13509
#include "confdefs.h"
13510
#include <qapplication.h>
13511
#ifdef F77_DUMMY_MAIN
13512
# ifdef __cplusplus
13515
int F77_DUMMY_MAIN() { return 1; }
13520
#if defined(__APPLE__) && defined(Q_WS_X11)
13527
rm -f conftest.$ac_objext conftest$ac_exeext
13528
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13529
(eval $ac_link) 2>&5
13531
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13532
(exit $ac_status); } &&
13533
{ ac_try='test -s conftest$ac_exeext'
13534
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13535
(eval $ac_try) 2>&5
13537
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538
(exit $ac_status); }; }; then
13541
echo "$as_me: failed program was:" >&5
13542
cat conftest.$ac_ext >&5
13547
: ${sim_ac_message_file=$ac_aux_dir/m4/errors.txt}
13548
if test -f $sim_ac_message_file; then
13549
sim_ac_message="`sed -n -e '/^!x11-qt-on-mac$/,/^!/ { /^!/ d; p; }' <$sim_ac_message_file`"
13550
if test x"$sim_ac_message" = x""; then
13551
{ { echo "$as_me:$LINENO: error: no message named 'x11-qt-on-mac' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" >&5
13552
echo "$as_me: error: no message named 'x11-qt-on-mac' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" >&2;}
13553
{ (exit 1); exit 1; }; }
13555
eval "echo >&2 \"$sim_ac_message\""
13558
{ { echo "$as_me:$LINENO: error: file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" >&5
13559
echo "$as_me: error: file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" >&2;}
13560
{ (exit 1); exit 1; }; }
13566
{ { echo "$as_me:$LINENO: error: aborting" >&5
13567
echo "$as_me: error: aborting" >&2;}
13568
{ (exit 1); exit 1; }; }
13571
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13577
# * Qt v3.0.1 has a bug where SHIFT-PRESS + CTRL-PRESS + CTRL-RELEASE
13578
# results in the last key-event coming out completely wrong under X11.
13579
# Known to be fixed in 3.0.3, unknown status in 3.0.2. <mortene@sim.no>.
13581
if test $sim_ac_qt_version -lt 303; then
13582
if test x${sim_ac_configuration_warnings+set} != xset; then
13583
sim_ac_configuration_warnings="The version of Qt you are compiling against
13584
is known to contain bugs which influences functionality in SoQt. We strongly
13585
recommend you to upgrade."
13587
sim_ac_configuration_warnings="$sim_ac_configuration_warnings|The version of Qt you are compiling against
13588
is known to contain bugs which influences functionality in SoQt. We strongly
13589
recommend you to upgrade."
13594
sim_ac_qt_cppflags=
13595
if test x"$MOC" != xfalse; then
13596
# Do not cache the result, as we might need to play tricks with
13597
# CPPFLAGS under MSWin.
13599
# It should be helpful to be able to override the libs-checking with
13600
# environment variables. Then people won't get completely stuck
13601
# when the check fails -- we can just take a look at the
13602
# config.log and give them advice on how to proceed with no updates
13605
# (Note also that this makes it possible to select whether to use the
13606
# mt-safe or the "standard" Qt library if both are installed on the
13611
if test x"$CONFIG_QTLIBS" != x""; then
13612
echo "$as_me:$LINENO: checking for Qt linking with $CONFIG_QTLIBS" >&5
13613
echo $ECHO_N "checking for Qt linking with $CONFIG_QTLIBS... $ECHO_C" >&6
13615
for sim_ac_qt_cppflags_loop in "" "-DQT_DLL"; do
13616
CPPFLAGS="$sim_ac_qt_incflags $sim_ac_qt_cppflags_loop $sim_ac_save_cppflags"
13617
LIBS="$CONFIG_QTLIBS $sim_ac_save_libs"
13618
cat >conftest.$ac_ext <<_ACEOF
13619
#line $LINENO "configure"
13620
#include "confdefs.h"
13621
#include <qapplication.h>
13622
#ifdef F77_DUMMY_MAIN
13623
# ifdef __cplusplus
13626
int F77_DUMMY_MAIN() { return 1; }
13631
qApp = NULL; /* QT_DLL must be defined for assignment to global variables to work */
13637
rm -f conftest.$ac_objext conftest$ac_exeext
13638
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13639
(eval $ac_link) 2>&5
13641
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642
(exit $ac_status); } &&
13643
{ ac_try='test -s conftest$ac_exeext'
13644
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13645
(eval $ac_try) 2>&5
13647
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648
(exit $ac_status); }; }; then
13649
sim_ac_qt_libs="$CONFIG_QTLIBS"
13650
sim_ac_qt_cppflags="$sim_ac_qt_incflags $sim_ac_qt_cppflags_loop"
13652
echo "$as_me: failed program was:" >&5
13653
cat conftest.$ac_ext >&5
13655
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13658
if test "x$sim_ac_qt_libs" = "xUNRESOLVED"; then
13659
echo "$as_me:$LINENO: result: failed!" >&5
13660
echo "${ECHO_T}failed!" >&6
13662
echo "$as_me:$LINENO: result: ok" >&5
13663
echo "${ECHO_T}ok" >&6
13667
echo "$as_me:$LINENO: checking for Qt library devkit" >&5
13668
echo $ECHO_N "checking for Qt library devkit... $ECHO_C" >&6
13670
## Test all known possible combinations of linking against the
13671
## Troll Tech Qt library:
13673
## * "-lqt-gl": links against the standard Debian version of the
13674
## Qt library with embedded QGL
13676
## * "-lqt": should work for most UNIX(-derived) platforms on
13677
## dynamic and static linking with the non-mtsafe library
13679
## * "-lqt-mt": should work for most UNIX(-derived) platforms on
13680
## dynamic and static linking with the mtsafe library
13682
## * "-lqt{version} -lqtmain -lgdi32": w/QT_DLL defined should
13683
## cover dynamic Enterprise Edition linking on Win32 platforms
13685
## * "-lqt -lqtmain -lgdi32": ...unless the {version} suffix is missing,
13686
## which we've had reports about
13688
## * "-lqt-mt{version} -lqtmain -lgdi32": w/QT_DLL defined should
13689
## cover dynamic multi-thread Enterprise Edition linking on Win32
13692
## * "-lqt-mt{version}nc -lqtmain -lgdi32": w/QT_DLL defined should
13693
## cover dynamic Non-Commercial Edition linking on Win32 platforms
13695
## * "-lqt -luser32 -lole32 -limm32 -lcomdlg32 -lgdi32": should cover
13696
## static linking on Win32 platforms
13698
## * "-lqt-mt -luser32 -lole32 -limm32 -lcomdlg32 -lgdi32 -lwinspool -lwinmm -ladvapi32":
13699
## added for the benefit of the Qt 3.0.0 Evaluation Version
13700
## (update: "advapi32.lib" seems to be a new dependency for Qt 3.1.0)
13703
if $sim_ac_qt_debug; then
13707
# Note that we need to always check for -lqt-mt before -lqt, because
13708
# at least the most recent Debian platforms (as of 2003-02-20) comes
13709
# with a -lqt which is missing QGL support, while it also has a
13710
# -lqt-mt *with* QGL support. The reason for this is because the
13711
# default GL (Mesa) library on Debian is built in mt-safe mode,
13712
# so a non-mt-safe Qt can't use it.
13714
for sim_ac_qt_cppflags_loop in "" "-DQT_DLL"; do
13715
for sim_ac_qt_libcheck in \
13719
"-lqt-mt -luser32 -lole32 -limm32 -lcomdlg32 -lgdi32 -lwinspool -lwinmm -ladvapi32" \
13720
"-lqt-mt${sim_ac_qt_version}${sim_ac_qt_suffix} -lqtmain -lgdi32" \
13721
"-lqt-mt${sim_ac_qt_version}nc${sim_ac_qt_suffix} -lqtmain -lgdi32" \
13722
"-lqt -lqtmain -lgdi32" \
13723
"-lqt${sim_ac_qt_version}${sim_ac_qt_suffix} -lqtmain -lgdi32" \
13724
"-lqt -luser32 -lole32 -limm32 -lcomdlg32 -lgdi32"
13726
if test "x$sim_ac_qt_libs" = "xUNRESOLVED"; then
13727
CPPFLAGS="$sim_ac_qt_incflags $sim_ac_qt_cppflags_loop $sim_ac_save_cppflags"
13728
LIBS="$sim_ac_qt_libcheck $sim_ac_save_libs"
13729
cat >conftest.$ac_ext <<_ACEOF
13730
#line $LINENO "configure"
13731
#include "confdefs.h"
13732
#include <qapplication.h>
13733
#ifdef F77_DUMMY_MAIN
13734
# ifdef __cplusplus
13737
int F77_DUMMY_MAIN() { return 1; }
13742
qApp = NULL; /* QT_DLL must be defined for assignment to global variables to work */
13748
rm -f conftest.$ac_objext conftest$ac_exeext
13749
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13750
(eval $ac_link) 2>&5
13752
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13753
(exit $ac_status); } &&
13754
{ ac_try='test -s conftest$ac_exeext'
13755
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13756
(eval $ac_try) 2>&5
13758
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13759
(exit $ac_status); }; }; then
13760
sim_ac_qt_libs="$sim_ac_qt_libcheck"
13761
sim_ac_qt_cppflags="$sim_ac_qt_incflags $sim_ac_qt_cppflags_loop"
13763
echo "$as_me: failed program was:" >&5
13764
cat conftest.$ac_ext >&5
13766
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13771
echo "$as_me:$LINENO: result: $sim_ac_qt_cppflags $sim_ac_qt_libs" >&5
13772
echo "${ECHO_T}$sim_ac_qt_cppflags $sim_ac_qt_libs" >&6
13776
else # sim_ac_qglobal = false
13777
{ echo "$as_me:$LINENO: WARNING: header file qglobal.h not found, can not compile Qt code" >&5
13778
echo "$as_me: WARNING: header file qglobal.h not found, can not compile Qt code" >&2;}
13782
if test ! x"$sim_ac_qt_libs" = xUNRESOLVED; then
13783
sim_ac_qt_avail=yes
13784
CPPFLAGS="$sim_ac_qt_cppflags $sim_ac_save_cppflags"
13785
LIBS="$sim_ac_qt_libs $sim_ac_save_libs"
13787
SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS $sim_ac_qt_cppflags"
13788
SOGUI_EXTRA_LDFLAGS="$SOGUI_EXTRA_LDFLAGS $sim_ac_qt_ldflags"
13789
SOGUI_EXTRA_LIBS="$sim_ac_qt_libs $SOGUI_EXTRA_LIBS"
13792
CPPFLAGS=$sim_ac_save_cppflags
13793
LDFLAGS=$sim_ac_save_ldflags
13794
LIBS=$sim_ac_save_libs
13800
: ${sim_ac_message_file=$ac_aux_dir/m4/errors.txt}
13801
if test -f $sim_ac_message_file; then
13802
sim_ac_message="`sed -n -e '/^!no-qt$/,/^!/ { /^!/ d; p; }' <$sim_ac_message_file`"
13803
if test x"$sim_ac_message" = x""; then
13804
{ { echo "$as_me:$LINENO: error: no message named 'no-qt' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" >&5
13805
echo "$as_me: error: no message named 'no-qt' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" >&2;}
13806
{ (exit 1); exit 1; }; }
13808
eval "echo >&2 \"$sim_ac_message\""
13811
{ { echo "$as_me:$LINENO: error: file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" >&5
13812
echo "$as_me: error: file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" >&2;}
13813
{ (exit 1); exit 1; }; }
13819
{ { echo "$as_me:$LINENO: error: aborting" >&5
13820
echo "$as_me: error: aborting" >&2;}
13821
{ (exit 1); exit 1; }; }
13829
sim_ac_qgl_avail=no
13830
sim_ac_qgl_cppflags=
13831
sim_ac_qgl_ldflags=
13834
if test x"$with_qt" != xno; then
13835
# first check if we can link with the QGL widget already
13836
echo "$as_me:$LINENO: checking whether the QGL widget is part of main Qt library" >&5
13837
echo $ECHO_N "checking whether the QGL widget is part of main Qt library... $ECHO_C" >&6
13838
if test "${sim_cv_lib_qgl_integrated+set}" = set; then
13839
echo $ECHO_N "(cached) $ECHO_C" >&6
13841
cat >conftest.$ac_ext <<_ACEOF
13842
#line $LINENO "configure"
13843
#include "confdefs.h"
13845
#ifdef F77_DUMMY_MAIN
13846
# ifdef __cplusplus
13849
int F77_DUMMY_MAIN() { return 1; }
13854
QGLFormat * f = new QGLFormat; f->setDepth(true);
13859
rm -f conftest.$ac_objext conftest$ac_exeext
13860
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13861
(eval $ac_link) 2>&5
13863
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864
(exit $ac_status); } &&
13865
{ ac_try='test -s conftest$ac_exeext'
13866
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13867
(eval $ac_try) 2>&5
13869
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870
(exit $ac_status); }; }; then
13871
sim_cv_lib_qgl_integrated=yes
13873
echo "$as_me: failed program was:" >&5
13874
cat conftest.$ac_ext >&5
13875
sim_cv_lib_qgl_integrated=no
13877
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13879
echo "$as_me:$LINENO: result: $sim_cv_lib_qgl_integrated" >&5
13880
echo "${ECHO_T}$sim_cv_lib_qgl_integrated" >&6
13882
if test x"$sim_cv_lib_qgl_integrated" = xyes; then
13883
sim_ac_qgl_avail=yes
13885
SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS $sim_ac_qgl_cppflags"
13886
SOGUI_EXTRA_LDFLAGS="$SOGUI_EXTRA_LDFLAGS $sim_ac_qgl_ldflags"
13887
SOGUI_EXTRA_LIBS="$sim_ac_qgl_libs $SOGUI_EXTRA_LIBS"
13890
sim_ac_save_LIBS=$LIBS
13891
LIBS="$sim_ac_qgl_libs $LIBS"
13893
echo "$as_me:$LINENO: checking for the QGL extension library" >&5
13894
echo $ECHO_N "checking for the QGL extension library... $ECHO_C" >&6
13896
sim_ac_qgl_libs=UNRESOLVED
13897
for sim_ac_qgl_libcheck in "-lqgl" "-lqgl -luser32"; do
13898
if test "x$sim_ac_qgl_libs" = "xUNRESOLVED"; then
13899
LIBS="$sim_ac_qgl_libcheck $sim_ac_save_LIBS"
13900
cat >conftest.$ac_ext <<_ACEOF
13901
#line $LINENO "configure"
13902
#include "confdefs.h"
13904
#ifdef F77_DUMMY_MAIN
13905
# ifdef __cplusplus
13908
int F77_DUMMY_MAIN() { return 1; }
13913
QGLFormat * f = new QGLFormat; f->setDepth(true);
13918
rm -f conftest.$ac_objext conftest$ac_exeext
13919
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13920
(eval $ac_link) 2>&5
13922
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923
(exit $ac_status); } &&
13924
{ ac_try='test -s conftest$ac_exeext'
13925
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13926
(eval $ac_try) 2>&5
13928
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929
(exit $ac_status); }; }; then
13930
sim_ac_qgl_libs="$sim_ac_qgl_libcheck"
13932
echo "$as_me: failed program was:" >&5
13933
cat conftest.$ac_ext >&5
13935
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13939
if test x"$sim_ac_qgl_libs" != xUNRESOLVED; then
13940
echo "$as_me:$LINENO: result: $sim_ac_qgl_libs" >&5
13941
echo "${ECHO_T}$sim_ac_qgl_libs" >&6
13942
sim_ac_qgl_avail=yes
13944
SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS $sim_ac_qgl_cppflags"
13945
SOGUI_EXTRA_LDFLAGS="$SOGUI_EXTRA_LDFLAGS $sim_ac_qgl_ldflags"
13946
SOGUI_EXTRA_LIBS="$sim_ac_qgl_libs $SOGUI_EXTRA_LIBS"
13949
echo "$as_me:$LINENO: result: unavailable" >&5
13950
echo "${ECHO_T}unavailable" >&6
13951
LIBS=$sim_ac_save_LIBS
13957
: ${sim_ac_message_file=$ac_aux_dir/m4/errors.txt}
13958
if test -f $sim_ac_message_file; then
13959
sim_ac_message="`sed -n -e '/^!no-qgl$/,/^!/ { /^!/ d; p; }' <$sim_ac_message_file`"
13960
if test x"$sim_ac_message" = x""; then
13961
{ { echo "$as_me:$LINENO: error: no message named 'no-qgl' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" >&5
13962
echo "$as_me: error: no message named 'no-qgl' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)" >&2;}
13963
{ (exit 1); exit 1; }; }
13965
eval "echo >&2 \"$sim_ac_message\""
13968
{ { echo "$as_me:$LINENO: error: file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" >&5
13969
echo "$as_me: error: file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)" >&2;}
13970
{ (exit 1); exit 1; }; }
13976
{ { echo "$as_me:$LINENO: error: aborting" >&5
13977
echo "$as_me: error: aborting" >&2;}
13978
{ (exit 1); exit 1; }; }
13986
# Check misc capabilities of the Qt and QGL libraries which depends
13987
# on the exact version available to us.
13989
echo "$as_me:$LINENO: checking whether Qt::Keypad is defined" >&5
13990
echo $ECHO_N "checking whether Qt::Keypad is defined... $ECHO_C" >&6
13991
if test "${sim_cv_def_qt_keypad+set}" = set; then
13992
echo $ECHO_N "(cached) $ECHO_C" >&6
13994
cat >conftest.$ac_ext <<_ACEOF
13995
#line $LINENO "configure"
13996
#include "confdefs.h"
13997
#include <qkeycode.h>
13998
#ifdef F77_DUMMY_MAIN
13999
# ifdef __cplusplus
14002
int F77_DUMMY_MAIN() { return 1; }
14007
Qt::ButtonState s = Qt::Keypad;
14012
rm -f conftest.$ac_objext conftest$ac_exeext
14013
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14014
(eval $ac_link) 2>&5
14016
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14017
(exit $ac_status); } &&
14018
{ ac_try='test -s conftest$ac_exeext'
14019
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14020
(eval $ac_try) 2>&5
14022
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023
(exit $ac_status); }; }; then
14024
sim_cv_def_qt_keypad=true
14026
echo "$as_me: failed program was:" >&5
14027
cat conftest.$ac_ext >&5
14028
sim_cv_def_qt_keypad=false
14030
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14032
echo "$as_me:$LINENO: result: $sim_cv_def_qt_keypad" >&5
14033
echo "${ECHO_T}$sim_cv_def_qt_keypad" >&6
14035
if $sim_cv_def_qt_keypad; then
14037
cat >>confdefs.h <<\_ACEOF
14038
#define HAVE_QT_KEYPAD_DEFINE 1
14044
echo "$as_me:$LINENO: checking whether QWidget::showFullScreen() is available" >&5
14045
echo $ECHO_N "checking whether QWidget::showFullScreen() is available... $ECHO_C" >&6
14046
if test "${sim_cv_def_qwidget_showfullscreen+set}" = set; then
14047
echo $ECHO_N "(cached) $ECHO_C" >&6
14049
cat >conftest.$ac_ext <<_ACEOF
14050
#line $LINENO "configure"
14051
#include "confdefs.h"
14052
#include <qwidget.h>
14053
#ifdef F77_DUMMY_MAIN
14054
# ifdef __cplusplus
14057
int F77_DUMMY_MAIN() { return 1; }
14062
QWidget * w = new QWidget(); w->showFullScreen();
14067
rm -f conftest.$ac_objext conftest$ac_exeext
14068
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14069
(eval $ac_link) 2>&5
14071
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072
(exit $ac_status); } &&
14073
{ ac_try='test -s conftest$ac_exeext'
14074
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14075
(eval $ac_try) 2>&5
14077
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14078
(exit $ac_status); }; }; then
14079
sim_cv_def_qwidget_showfullscreen=true
14081
echo "$as_me: failed program was:" >&5
14082
cat conftest.$ac_ext >&5
14083
sim_cv_def_qwidget_showfullscreen=false
14085
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14087
echo "$as_me:$LINENO: result: $sim_cv_def_qwidget_showfullscreen" >&5
14088
echo "${ECHO_T}$sim_cv_def_qwidget_showfullscreen" >&6
14090
if $sim_cv_def_qwidget_showfullscreen; then
14092
cat >>confdefs.h <<\_ACEOF
14093
#define HAVE_QWIDGET_SHOWFULLSCREEN 1
14099
echo "$as_me:$LINENO: checking whether operator==(QGLFormat&,QGLFormat&) is available" >&5
14100
echo $ECHO_N "checking whether operator==(QGLFormat&,QGLFormat&) is available... $ECHO_C" >&6
14101
if test "${sim_cv_func_qglformat_eq_op+set}" = set; then
14102
echo $ECHO_N "(cached) $ECHO_C" >&6
14104
cat >conftest.$ac_ext <<_ACEOF
14105
#line $LINENO "configure"
14106
#include "confdefs.h"
14108
#ifdef F77_DUMMY_MAIN
14109
# ifdef __cplusplus
14112
int F77_DUMMY_MAIN() { return 1; }
14117
QGLFormat f; if (f == f) f.setDepth(true);
14122
rm -f conftest.$ac_objext conftest$ac_exeext
14123
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14124
(eval $ac_link) 2>&5
14126
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127
(exit $ac_status); } &&
14128
{ ac_try='test -s conftest$ac_exeext'
14129
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14130
(eval $ac_try) 2>&5
14132
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133
(exit $ac_status); }; }; then
14134
sim_cv_func_qglformat_eq_op=true
14136
echo "$as_me: failed program was:" >&5
14137
cat conftest.$ac_ext >&5
14138
sim_cv_func_qglformat_eq_op=false
14140
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14142
echo "$as_me:$LINENO: result: $sim_cv_func_qglformat_eq_op" >&5
14143
echo "${ECHO_T}$sim_cv_func_qglformat_eq_op" >&6
14145
if $sim_cv_func_qglformat_eq_op; then
14147
cat >>confdefs.h <<\_ACEOF
14148
#define HAVE_QGLFORMAT_EQ_OP 1
14154
echo "$as_me:$LINENO: checking whether QGLFormat::setOverlay() is available" >&5
14155
echo $ECHO_N "checking whether QGLFormat::setOverlay() is available... $ECHO_C" >&6
14156
if test "${sim_cv_func_qglformat_setoverlay+set}" = set; then
14157
echo $ECHO_N "(cached) $ECHO_C" >&6
14159
cat >conftest.$ac_ext <<_ACEOF
14160
#line $LINENO "configure"
14161
#include "confdefs.h"
14163
#ifdef F77_DUMMY_MAIN
14164
# ifdef __cplusplus
14167
int F77_DUMMY_MAIN() { return 1; }
14172
QGLFormat f; f.setOverlay(TRUE);
14177
rm -f conftest.$ac_objext conftest$ac_exeext
14178
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14179
(eval $ac_link) 2>&5
14181
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182
(exit $ac_status); } &&
14183
{ ac_try='test -s conftest$ac_exeext'
14184
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14185
(eval $ac_try) 2>&5
14187
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188
(exit $ac_status); }; }; then
14189
sim_cv_func_qglformat_setoverlay=yes
14191
echo "$as_me: failed program was:" >&5
14192
cat conftest.$ac_ext >&5
14193
sim_cv_func_qglformat_setoverlay=no
14195
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14197
echo "$as_me:$LINENO: result: $sim_cv_func_qglformat_setoverlay" >&5
14198
echo "${ECHO_T}$sim_cv_func_qglformat_setoverlay" >&6
14200
if test x"$sim_cv_func_qglformat_setoverlay" = xyes; then
14202
cat >>confdefs.h <<\_ACEOF
14203
#define HAVE_QGLFORMAT_SETOVERLAY 1
14209
echo "$as_me:$LINENO: checking whether the QGLWidget::setAutoBufferSwap() is available" >&5
14210
echo $ECHO_N "checking whether the QGLWidget::setAutoBufferSwap() is available... $ECHO_C" >&6
14211
if test "${sim_cv_func_qglwidget_setautobufferswap+set}" = set; then
14212
echo $ECHO_N "(cached) $ECHO_C" >&6
14214
cat >conftest.$ac_ext <<_ACEOF
14215
#line $LINENO "configure"
14216
#include "confdefs.h"
14218
class MyGLWidget : public QGLWidget {
14219
public: MyGLWidget() {setAutoBufferSwap(FALSE);} };
14220
#ifdef F77_DUMMY_MAIN
14221
# ifdef __cplusplus
14224
int F77_DUMMY_MAIN() { return 1; }
14229
MyGLWidget * w = new MyGLWidget;
14234
rm -f conftest.$ac_objext conftest$ac_exeext
14235
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14236
(eval $ac_link) 2>&5
14238
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239
(exit $ac_status); } &&
14240
{ ac_try='test -s conftest$ac_exeext'
14241
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14242
(eval $ac_try) 2>&5
14244
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14245
(exit $ac_status); }; }; then
14246
sim_cv_func_qglwidget_setautobufferswap=yes
14248
echo "$as_me: failed program was:" >&5
14249
cat conftest.$ac_ext >&5
14250
sim_cv_func_qglwidget_setautobufferswap=no
14252
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
14254
echo "$as_me:$LINENO: result: $sim_cv_func_qglwidget_setautobufferswap" >&5
14255
echo "${ECHO_T}$sim_cv_func_qglwidget_setautobufferswap" >&6
14257
if test x"$sim_cv_func_qglwidget_setautobufferswap" = xyes; then
14259
cat >>confdefs.h <<\_ACEOF
14260
#define HAVE_QGLWIDGET_SETAUTOBUFFERSWAP 1
14266
# QStyleFactory was added in Qt 3.0.
14268
for ac_header in qstylefactory.h
14270
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14271
if eval "test \"\${$as_ac_Header+set}\" = set"; then
14272
echo "$as_me:$LINENO: checking for $ac_header" >&5
14273
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14274
if eval "test \"\${$as_ac_Header+set}\" = set"; then
14275
echo $ECHO_N "(cached) $ECHO_C" >&6
14277
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14278
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14280
# Is the header compilable?
14281
echo "$as_me:$LINENO: checking $ac_header usability" >&5
14282
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
14283
cat >conftest.$ac_ext <<_ACEOF
14284
#line $LINENO "configure"
14285
#include "confdefs.h"
14286
$ac_includes_default
14287
#include <$ac_header>
14289
rm -f conftest.$ac_objext
14290
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14291
(eval $ac_compile) 2>&5
14293
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14294
(exit $ac_status); } &&
14295
{ ac_try='test -s conftest.$ac_objext'
14296
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14297
(eval $ac_try) 2>&5
14299
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14300
(exit $ac_status); }; }; then
14301
ac_header_compiler=yes
14303
echo "$as_me: failed program was:" >&5
14304
cat conftest.$ac_ext >&5
14305
ac_header_compiler=no
14307
rm -f conftest.$ac_objext conftest.$ac_ext
14308
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14309
echo "${ECHO_T}$ac_header_compiler" >&6
14311
# Is the header present?
14312
echo "$as_me:$LINENO: checking $ac_header presence" >&5
14313
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
14314
cat >conftest.$ac_ext <<_ACEOF
14315
#line $LINENO "configure"
14316
#include "confdefs.h"
14317
#include <$ac_header>
14319
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14320
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14322
egrep -v '^ *\+' conftest.er1 >conftest.err
14324
cat conftest.err >&5
14325
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326
(exit $ac_status); } >/dev/null; then
14327
if test -s conftest.err; then
14328
ac_cpp_err=$ac_cxx_preproc_warn_flag
14335
if test -z "$ac_cpp_err"; then
14336
ac_header_preproc=yes
14338
echo "$as_me: failed program was:" >&5
14339
cat conftest.$ac_ext >&5
14340
ac_header_preproc=no
14342
rm -f conftest.err conftest.$ac_ext
14343
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14344
echo "${ECHO_T}$ac_header_preproc" >&6
14346
# So? What about this header?
14347
case $ac_header_compiler:$ac_header_preproc in
14349
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14350
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14351
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14352
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14354
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14355
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14356
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14357
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14358
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14359
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
14361
echo "$as_me:$LINENO: checking for $ac_header" >&5
14362
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14363
if eval "test \"\${$as_ac_Header+set}\" = set"; then
14364
echo $ECHO_N "(cached) $ECHO_C" >&6
14366
eval "$as_ac_Header=$ac_header_preproc"
14368
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14369
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14372
if test `eval echo '${'$as_ac_Header'}'` = yes; then
14373
cat >>confdefs.h <<_ACEOF
14374
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14382
# **************************************************************************
14383
# Spaceball support through Linux Joystick driver
14390
HAVE_JOYSTICK_LINUX_TRUE=
14391
HAVE_JOYSTICK_LINUX_FALSE='#'
14393
HAVE_JOYSTICK_LINUX_TRUE='#'
14394
HAVE_JOYSTICK_LINUX_FALSE=
14397
#SIM_AC_CHECK_JOYSTICK_LINUX([
14398
# AC_DEFINE(HAVE_JOYSTICK_LINUX, ,
14399
# [Define to enable Linux Joystick driver support])
14400
# AC_DEFINE_UNQUOTED(SOXT_LINUX_JOYSTICK_DEVICE,
14401
# "$sim_ac_joystick_linux_device",
14402
# [Define this to device handle to fallback on])
14404
#AM_CONDITIONAL(HAVE_JOYSTICK_LINUX, $sim_ac_joystick_linux_avail)
14405
#SIM_AC_CONFIGURATION_SETTING([Joystick Device], [$sim_ac_joystick_linux_device])
14408
# **************************************************************************
14409
# Compiler control.
14412
# Check whether --enable-debug or --disable-debug was given.
14413
if test "${enable_debug+set}" = set; then
14414
enableval="$enable_debug"
14415
case "${enableval}" in
14416
yes) enable_debug=true ;;
14417
no) enable_debug=false ;;
14418
true | false) enable_debug=${enableval} ;;
14419
*) { { echo "$as_me:$LINENO: error: bad value \"${enableval}\" for --enable-debug" >&5
14420
echo "$as_me: error: bad value \"${enableval}\" for --enable-debug" >&2;}
14421
{ (exit 1); exit 1; }; } ;;
14427
if $enable_debug; then
14430
CPPFLAGS="$CPPFLAGS -DSOQT_DEBUG=1"
14434
CPPFLAGS="$CPPFLAGS -DNDEBUG"
14436
CPPFLAGS="$CPPFLAGS -DSOQT_DEBUG=0"
14443
echo "$as_me:$LINENO: checking for function name variable" >&5
14444
echo $ECHO_N "checking for function name variable... $ECHO_C" >&6
14445
if test "${sim_cv_var_functionname+set}" = set; then
14446
echo $ECHO_N "(cached) $ECHO_C" >&6
14449
# __func__ is the identifier used by compilers which are
14450
# compliant with the C99 ISO/IEC 9899:1999 standard.
14451
cat >conftest.$ac_ext <<_ACEOF
14452
#line $LINENO "configure"
14453
#include "confdefs.h"
14455
#ifdef F77_DUMMY_MAIN
14456
# ifdef __cplusplus
14459
int F77_DUMMY_MAIN() { return 1; }
14464
(void)printf("%s\n",__func__)
14469
rm -f conftest.$ac_objext
14470
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14471
(eval $ac_compile) 2>&5
14473
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474
(exit $ac_status); } &&
14475
{ ac_try='test -s conftest.$ac_objext'
14476
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14477
(eval $ac_try) 2>&5
14479
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480
(exit $ac_status); }; }; then
14481
sim_cv_var_functionname=__func__
14483
echo "$as_me: failed program was:" >&5
14484
cat conftest.$ac_ext >&5
14485
sim_cv_var_functionname=none
14487
rm -f conftest.$ac_objext conftest.$ac_ext
14488
if test x"$sim_cv_var_functionname" = x"none"; then
14489
# GCC uses __PRETTY_FUNCTION__
14490
cat >conftest.$ac_ext <<_ACEOF
14491
#line $LINENO "configure"
14492
#include "confdefs.h"
14494
#ifdef F77_DUMMY_MAIN
14495
# ifdef __cplusplus
14498
int F77_DUMMY_MAIN() { return 1; }
14503
(void)printf("%s\n",__PRETTY_FUNCTION__)
14508
rm -f conftest.$ac_objext
14509
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14510
(eval $ac_compile) 2>&5
14512
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513
(exit $ac_status); } &&
14514
{ ac_try='test -s conftest.$ac_objext'
14515
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14516
(eval $ac_try) 2>&5
14518
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519
(exit $ac_status); }; }; then
14520
sim_cv_var_functionname=__PRETTY_FUNCTION__
14522
echo "$as_me: failed program was:" >&5
14523
cat conftest.$ac_ext >&5
14524
sim_cv_var_functionname=none
14526
rm -f conftest.$ac_objext conftest.$ac_ext
14528
if test x"$sim_cv_var_functionname" = x"none"; then
14529
cat >conftest.$ac_ext <<_ACEOF
14530
#line $LINENO "configure"
14531
#include "confdefs.h"
14533
#ifdef F77_DUMMY_MAIN
14534
# ifdef __cplusplus
14537
int F77_DUMMY_MAIN() { return 1; }
14542
(void)printf("%s\n",__FUNCTION__)
14547
rm -f conftest.$ac_objext
14548
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14549
(eval $ac_compile) 2>&5
14551
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552
(exit $ac_status); } &&
14553
{ ac_try='test -s conftest.$ac_objext'
14554
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14555
(eval $ac_try) 2>&5
14557
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558
(exit $ac_status); }; }; then
14559
sim_cv_var_functionname=__FUNCTION__
14561
echo "$as_me: failed program was:" >&5
14562
cat conftest.$ac_ext >&5
14563
sim_cv_var_functionname=none
14565
rm -f conftest.$ac_objext conftest.$ac_ext
14568
echo "$as_me:$LINENO: result: $sim_cv_var_functionname" >&5
14569
echo "${ECHO_T}$sim_cv_var_functionname" >&6
14571
# FIXME: these can probably be contracted to a single test inside a loop.
14572
# 20010330 mortene.
14574
if test x"$sim_cv_var_functionname" = x"__func__"; then
14576
cat >>confdefs.h <<\_ACEOF
14577
#define HAVE_VAR___func__ 1
14582
if test x"$sim_cv_var_functionname" = x"__PRETTY_FUNCTION__"; then
14584
cat >>confdefs.h <<\_ACEOF
14585
#define HAVE_VAR___PRETTY_FUNCTION__ 1
14590
if test x"$sim_cv_var_functionname" = x"__FUNCTION__"; then
14592
cat >>confdefs.h <<\_ACEOF
14593
#define HAVE_VAR___FUNCTION__ 1
14600
# Check whether --enable-symbols or --disable-symbols was given.
14601
if test "${enable_symbols+set}" = set; then
14602
enableval="$enable_symbols"
14603
case "${enableval}" in
14604
yes) enable_symbols=yes ;;
14605
no) enable_symbols=no ;;
14606
*) { { echo "$as_me:$LINENO: error: bad value \"${enableval}\" for --enable-symbols" >&5
14607
echo "$as_me: error: bad value \"${enableval}\" for --enable-symbols" >&2;}
14608
{ (exit 1); exit 1; }; } ;;
14614
# FIXME: don't mangle options like -fno-gnu-linker and -fvolatile-global
14616
if test x"$enable_symbols" = x"no"; then
14617
# CPPFLAGS="`echo $CPPFLAGS | sed 's/-g\>//'`"
14618
CFLAGS="`echo $CFLAGS | sed 's/-g\>//'`"
14619
CXXFLAGS="`echo $CXXFLAGS | sed 's/-g\>//'`"
14624
# Check whether --enable-rtti or --disable-rtti was given.
14625
if test "${enable_rtti+set}" = set; then
14626
enableval="$enable_rtti"
14627
case "${enableval}" in
14628
yes) enable_rtti=yes ;;
14629
no) enable_rtti=no ;;
14630
*) { { echo "$as_me:$LINENO: error: bad value \"${enableval}\" for --enable-rtti" >&5
14631
echo "$as_me: error: bad value \"${enableval}\" for --enable-rtti" >&2;}
14632
{ (exit 1); exit 1; }; } ;;
14638
if test x"$enable_rtti" = x"no"; then
14639
if test x"$GXX" = x"yes"; then
14640
CXXFLAGS="$CXXFLAGS -fno-rtti"
14642
{ echo "$as_me:$LINENO: WARNING: --enable-rtti only has effect when using GNU g++" >&5
14643
echo "$as_me: WARNING: --enable-rtti only has effect when using GNU g++" >&2;}
14649
# Check whether --enable-exceptions or --disable-exceptions was given.
14650
if test "${enable_exceptions+set}" = set; then
14651
enableval="$enable_exceptions"
14652
case "${enableval}" in
14653
yes) enable_exceptions=yes ;;
14654
no) enable_exceptions=no ;;
14655
*) { { echo "$as_me:$LINENO: error: bad value \"${enableval}\" for --enable-exceptions" >&5
14656
echo "$as_me: error: bad value \"${enableval}\" for --enable-exceptions" >&2;}
14657
{ (exit 1); exit 1; }; } ;;
14660
enable_exceptions=no
14663
if test x"$enable_exceptions" = x"no"; then
14664
if test "x$GXX" = "xyes"; then
14665
unset _exception_flag
14670
ac_cpp='$CXXCPP $CPPFLAGS'
14671
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14672
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14673
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14675
echo "$as_me:$LINENO: checking whether $CXX accepts -fno-exceptions" >&5
14676
echo $ECHO_N "checking whether $CXX accepts -fno-exceptions... $ECHO_C" >&6
14678
sim_ac_save_cppflags=$CPPFLAGS
14679
CPPFLAGS="$CPPFLAGS -fno-exceptions"
14680
cat >conftest.$ac_ext <<_ACEOF
14681
#line $LINENO "configure"
14682
#include "confdefs.h"
14684
#ifdef F77_DUMMY_MAIN
14685
# ifdef __cplusplus
14688
int F77_DUMMY_MAIN() { return 1; }
14698
rm -f conftest.$ac_objext
14699
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14700
(eval $ac_compile) 2>&5
14702
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703
(exit $ac_status); } &&
14704
{ ac_try='test -s conftest.$ac_objext'
14705
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14706
(eval $ac_try) 2>&5
14708
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709
(exit $ac_status); }; }; then
14710
sim_ac_accept_result=yes
14712
echo "$as_me: failed program was:" >&5
14713
cat conftest.$ac_ext >&5
14714
sim_ac_accept_result=no
14716
rm -f conftest.$ac_objext conftest.$ac_ext
14717
echo "$as_me:$LINENO: result: $sim_ac_accept_result" >&5
14718
echo "${ECHO_T}$sim_ac_accept_result" >&6
14719
CPPFLAGS=$sim_ac_save_cppflags
14720
# This need to go last, in case CPPFLAGS is modified in _exception_flag=-fno-exceptions or .
14721
if test $sim_ac_accept_result = yes; then
14722
_exception_flag=-fno-exceptions
14728
ac_cpp='$CXXCPP $CPPFLAGS'
14729
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14730
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14731
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14734
if test x"${_exception_flag+set}" != x"set"; then
14739
ac_cpp='$CXXCPP $CPPFLAGS'
14740
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14741
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14742
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14744
echo "$as_me:$LINENO: checking whether $CXX accepts -fno-handle-exceptions" >&5
14745
echo $ECHO_N "checking whether $CXX accepts -fno-handle-exceptions... $ECHO_C" >&6
14747
sim_ac_save_cppflags=$CPPFLAGS
14748
CPPFLAGS="$CPPFLAGS -fno-handle-exceptions"
14749
cat >conftest.$ac_ext <<_ACEOF
14750
#line $LINENO "configure"
14751
#include "confdefs.h"
14753
#ifdef F77_DUMMY_MAIN
14754
# ifdef __cplusplus
14757
int F77_DUMMY_MAIN() { return 1; }
14767
rm -f conftest.$ac_objext
14768
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14769
(eval $ac_compile) 2>&5
14771
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772
(exit $ac_status); } &&
14773
{ ac_try='test -s conftest.$ac_objext'
14774
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14775
(eval $ac_try) 2>&5
14777
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778
(exit $ac_status); }; }; then
14779
sim_ac_accept_result=yes
14781
echo "$as_me: failed program was:" >&5
14782
cat conftest.$ac_ext >&5
14783
sim_ac_accept_result=no
14785
rm -f conftest.$ac_objext conftest.$ac_ext
14786
echo "$as_me:$LINENO: result: $sim_ac_accept_result" >&5
14787
echo "${ECHO_T}$sim_ac_accept_result" >&6
14788
CPPFLAGS=$sim_ac_save_cppflags
14789
# This need to go last, in case CPPFLAGS is modified in _exception_flag=-fno-handle-exceptions or .
14790
if test $sim_ac_accept_result = yes; then
14791
_exception_flag=-fno-handle-exceptions
14797
ac_cpp='$CXXCPP $CPPFLAGS'
14798
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14799
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14800
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14804
if test x"${_exception_flag+set}" != x"set"; then
14805
{ echo "$as_me:$LINENO: WARNING: couldn't find a valid option for avoiding exception handling" >&5
14806
echo "$as_me: WARNING: couldn't find a valid option for avoiding exception handling" >&2;}
14808
CXXFLAGS="$CXXFLAGS $_exception_flag"
14812
if test x"$GXX" != x"yes"; then
14813
{ echo "$as_me:$LINENO: WARNING: --enable-exceptions only has effect when using GNU g++" >&5
14814
echo "$as_me: WARNING: --enable-exceptions only has effect when using GNU g++" >&2;}
14820
# Check whether --enable-profile or --disable-profile was given.
14821
if test "${enable_profile+set}" = set; then
14822
enableval="$enable_profile"
14823
case "${enableval}" in
14824
yes) enable_profile=yes ;;
14825
no) enable_profile=no ;;
14826
*) { { echo "$as_me:$LINENO: error: bad value \"${enableval}\" for --enable-profile" >&5
14827
echo "$as_me: error: bad value \"${enableval}\" for --enable-profile" >&2;}
14828
{ (exit 1); exit 1; }; } ;;
14834
if test x"$enable_profile" = x"yes"; then
14835
if test x"$GXX" = x"yes" || test x"$GCC" = x"yes"; then
14836
CFLAGS="$CFLAGS -pg"
14837
CXXFLAGS="$CXXFLAGS -pg"
14838
LDFLAGS="$LDFLAGS -pg"
14840
{ echo "$as_me:$LINENO: WARNING: --enable-profile only has effect when using GNU gcc or g++" >&5
14841
echo "$as_me: WARNING: --enable-profile only has effect when using GNU gcc or g++" >&2;}
14846
# Check whether --enable-warnings or --disable-warnings was given.
14847
if test "${enable_warnings+set}" = set; then
14848
enableval="$enable_warnings"
14849
case "${enableval}" in
14850
yes) enable_warnings=yes ;;
14851
no) enable_warnings=no ;;
14852
*) { { echo "$as_me:$LINENO: error: bad value \"$enableval\" for --enable-warnings" >&5
14853
echo "$as_me: error: bad value \"$enableval\" for --enable-warnings" >&2;}
14854
{ (exit 1); exit 1; }; } ;;
14857
enable_warnings=yes
14860
if test x"$enable_warnings" = x"yes"; then
14861
if test x"$GCC" = x"yes"; then
14866
ac_cpp='$CPP $CPPFLAGS'
14867
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14868
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14869
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14871
echo "$as_me:$LINENO: checking whether $CC accepts -W -Wall -Wno-unused" >&5
14872
echo $ECHO_N "checking whether $CC accepts -W -Wall -Wno-unused... $ECHO_C" >&6
14874
sim_ac_save_cppflags=$CPPFLAGS
14875
CPPFLAGS="$CPPFLAGS -W -Wall -Wno-unused"
14876
cat >conftest.$ac_ext <<_ACEOF
14877
#line $LINENO "configure"
14878
#include "confdefs.h"
14880
#ifdef F77_DUMMY_MAIN
14881
# ifdef __cplusplus
14884
int F77_DUMMY_MAIN() { return 1; }
14894
rm -f conftest.$ac_objext
14895
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14896
(eval $ac_compile) 2>&5
14898
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899
(exit $ac_status); } &&
14900
{ ac_try='test -s conftest.$ac_objext'
14901
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14902
(eval $ac_try) 2>&5
14904
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905
(exit $ac_status); }; }; then
14906
sim_ac_accept_result=yes
14908
echo "$as_me: failed program was:" >&5
14909
cat conftest.$ac_ext >&5
14910
sim_ac_accept_result=no
14912
rm -f conftest.$ac_objext conftest.$ac_ext
14913
echo "$as_me:$LINENO: result: $sim_ac_accept_result" >&5
14914
echo "${ECHO_T}$sim_ac_accept_result" >&6
14915
CPPFLAGS=$sim_ac_save_cppflags
14916
# This need to go last, in case CPPFLAGS is modified in CFLAGS="$CFLAGS -W -Wall -Wno-unused" or .
14917
if test $sim_ac_accept_result = yes; then
14918
CFLAGS="$CFLAGS -W -Wall -Wno-unused"
14924
ac_cpp='$CXXCPP $CPPFLAGS'
14925
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14926
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14927
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14934
ac_cpp='$CPP $CPPFLAGS'
14935
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14936
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14937
ac_compiler_gnu=$ac_cv_c_compiler_gnu
14939
echo "$as_me:$LINENO: checking whether $CC accepts -Wno-multichar" >&5
14940
echo $ECHO_N "checking whether $CC accepts -Wno-multichar... $ECHO_C" >&6
14942
sim_ac_save_cppflags=$CPPFLAGS
14943
CPPFLAGS="$CPPFLAGS -Wno-multichar"
14944
cat >conftest.$ac_ext <<_ACEOF
14945
#line $LINENO "configure"
14946
#include "confdefs.h"
14948
#ifdef F77_DUMMY_MAIN
14949
# ifdef __cplusplus
14952
int F77_DUMMY_MAIN() { return 1; }
14962
rm -f conftest.$ac_objext
14963
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14964
(eval $ac_compile) 2>&5
14966
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14967
(exit $ac_status); } &&
14968
{ ac_try='test -s conftest.$ac_objext'
14969
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14970
(eval $ac_try) 2>&5
14972
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973
(exit $ac_status); }; }; then
14974
sim_ac_accept_result=yes
14976
echo "$as_me: failed program was:" >&5
14977
cat conftest.$ac_ext >&5
14978
sim_ac_accept_result=no
14980
rm -f conftest.$ac_objext conftest.$ac_ext
14981
echo "$as_me:$LINENO: result: $sim_ac_accept_result" >&5
14982
echo "${ECHO_T}$sim_ac_accept_result" >&6
14983
CPPFLAGS=$sim_ac_save_cppflags
14984
# This need to go last, in case CPPFLAGS is modified in CFLAGS="$CFLAGS -Wno-multichar" or .
14985
if test $sim_ac_accept_result = yes; then
14986
CFLAGS="$CFLAGS -Wno-multichar"
14992
ac_cpp='$CXXCPP $CPPFLAGS'
14993
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14994
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14995
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15000
if test x"$GXX" = x"yes"; then
15005
ac_cpp='$CXXCPP $CPPFLAGS'
15006
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15007
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15008
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15010
echo "$as_me:$LINENO: checking whether $CXX accepts -W -Wall -Wno-unused" >&5
15011
echo $ECHO_N "checking whether $CXX accepts -W -Wall -Wno-unused... $ECHO_C" >&6
15013
sim_ac_save_cppflags=$CPPFLAGS
15014
CPPFLAGS="$CPPFLAGS -W -Wall -Wno-unused"
15015
cat >conftest.$ac_ext <<_ACEOF
15016
#line $LINENO "configure"
15017
#include "confdefs.h"
15019
#ifdef F77_DUMMY_MAIN
15020
# ifdef __cplusplus
15023
int F77_DUMMY_MAIN() { return 1; }
15033
rm -f conftest.$ac_objext
15034
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15035
(eval $ac_compile) 2>&5
15037
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038
(exit $ac_status); } &&
15039
{ ac_try='test -s conftest.$ac_objext'
15040
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15041
(eval $ac_try) 2>&5
15043
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044
(exit $ac_status); }; }; then
15045
sim_ac_accept_result=yes
15047
echo "$as_me: failed program was:" >&5
15048
cat conftest.$ac_ext >&5
15049
sim_ac_accept_result=no
15051
rm -f conftest.$ac_objext conftest.$ac_ext
15052
echo "$as_me:$LINENO: result: $sim_ac_accept_result" >&5
15053
echo "${ECHO_T}$sim_ac_accept_result" >&6
15054
CPPFLAGS=$sim_ac_save_cppflags
15055
# This need to go last, in case CPPFLAGS is modified in CXXFLAGS="$CXXFLAGS -W -Wall -Wno-unused" or .
15056
if test $sim_ac_accept_result = yes; then
15057
CXXFLAGS="$CXXFLAGS -W -Wall -Wno-unused"
15063
ac_cpp='$CXXCPP $CPPFLAGS'
15064
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15065
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15066
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15073
ac_cpp='$CXXCPP $CPPFLAGS'
15074
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15075
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15076
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15078
echo "$as_me:$LINENO: checking whether $CXX accepts -Wno-multichar" >&5
15079
echo $ECHO_N "checking whether $CXX accepts -Wno-multichar... $ECHO_C" >&6
15081
sim_ac_save_cppflags=$CPPFLAGS
15082
CPPFLAGS="$CPPFLAGS -Wno-multichar"
15083
cat >conftest.$ac_ext <<_ACEOF
15084
#line $LINENO "configure"
15085
#include "confdefs.h"
15087
#ifdef F77_DUMMY_MAIN
15088
# ifdef __cplusplus
15091
int F77_DUMMY_MAIN() { return 1; }
15101
rm -f conftest.$ac_objext
15102
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15103
(eval $ac_compile) 2>&5
15105
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106
(exit $ac_status); } &&
15107
{ ac_try='test -s conftest.$ac_objext'
15108
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15109
(eval $ac_try) 2>&5
15111
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112
(exit $ac_status); }; }; then
15113
sim_ac_accept_result=yes
15115
echo "$as_me: failed program was:" >&5
15116
cat conftest.$ac_ext >&5
15117
sim_ac_accept_result=no
15119
rm -f conftest.$ac_objext conftest.$ac_ext
15120
echo "$as_me:$LINENO: result: $sim_ac_accept_result" >&5
15121
echo "${ECHO_T}$sim_ac_accept_result" >&6
15122
CPPFLAGS=$sim_ac_save_cppflags
15123
# This need to go last, in case CPPFLAGS is modified in CXXFLAGS="$CXXFLAGS -Wno-multichar" or .
15124
if test $sim_ac_accept_result = yes; then
15125
CXXFLAGS="$CXXFLAGS -Wno-multichar"
15131
ac_cpp='$CXXCPP $CPPFLAGS'
15132
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15133
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15134
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15141
### Turn on all warnings ######################################
15142
if test x"$CC" = xcc || test x"$CC" = xCC; then
15147
ac_cpp='$CPP $CPPFLAGS'
15148
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15149
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15150
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15152
echo "$as_me:$LINENO: checking whether $CC accepts -fullwarn" >&5
15153
echo $ECHO_N "checking whether $CC accepts -fullwarn... $ECHO_C" >&6
15155
sim_ac_save_cppflags=$CPPFLAGS
15156
CPPFLAGS="$CPPFLAGS -fullwarn"
15157
cat >conftest.$ac_ext <<_ACEOF
15158
#line $LINENO "configure"
15159
#include "confdefs.h"
15161
#ifdef F77_DUMMY_MAIN
15162
# ifdef __cplusplus
15165
int F77_DUMMY_MAIN() { return 1; }
15175
rm -f conftest.$ac_objext
15176
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15177
(eval $ac_compile) 2>&5
15179
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180
(exit $ac_status); } &&
15181
{ ac_try='test -s conftest.$ac_objext'
15182
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15183
(eval $ac_try) 2>&5
15185
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15186
(exit $ac_status); }; }; then
15187
sim_ac_accept_result=yes
15189
echo "$as_me: failed program was:" >&5
15190
cat conftest.$ac_ext >&5
15191
sim_ac_accept_result=no
15193
rm -f conftest.$ac_objext conftest.$ac_ext
15194
echo "$as_me:$LINENO: result: $sim_ac_accept_result" >&5
15195
echo "${ECHO_T}$sim_ac_accept_result" >&6
15196
CPPFLAGS=$sim_ac_save_cppflags
15197
# This need to go last, in case CPPFLAGS is modified in CFLAGS="$CFLAGS -fullwarn" or .
15198
if test $sim_ac_accept_result = yes; then
15199
CFLAGS="$CFLAGS -fullwarn"
15205
ac_cpp='$CXXCPP $CPPFLAGS'
15206
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15207
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15208
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15212
if test x"$CXX" = xCC; then
15217
ac_cpp='$CXXCPP $CPPFLAGS'
15218
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15219
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15220
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15222
echo "$as_me:$LINENO: checking whether $CXX accepts -fullwarn" >&5
15223
echo $ECHO_N "checking whether $CXX accepts -fullwarn... $ECHO_C" >&6
15225
sim_ac_save_cppflags=$CPPFLAGS
15226
CPPFLAGS="$CPPFLAGS -fullwarn"
15227
cat >conftest.$ac_ext <<_ACEOF
15228
#line $LINENO "configure"
15229
#include "confdefs.h"
15231
#ifdef F77_DUMMY_MAIN
15232
# ifdef __cplusplus
15235
int F77_DUMMY_MAIN() { return 1; }
15245
rm -f conftest.$ac_objext
15246
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15247
(eval $ac_compile) 2>&5
15249
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250
(exit $ac_status); } &&
15251
{ ac_try='test -s conftest.$ac_objext'
15252
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15253
(eval $ac_try) 2>&5
15255
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256
(exit $ac_status); }; }; then
15257
sim_ac_accept_result=yes
15259
echo "$as_me: failed program was:" >&5
15260
cat conftest.$ac_ext >&5
15261
sim_ac_accept_result=no
15263
rm -f conftest.$ac_objext conftest.$ac_ext
15264
echo "$as_me:$LINENO: result: $sim_ac_accept_result" >&5
15265
echo "${ECHO_T}$sim_ac_accept_result" >&6
15266
CPPFLAGS=$sim_ac_save_cppflags
15267
# This need to go last, in case CPPFLAGS is modified in CXXFLAGS="$CXXFLAGS -fullwarn" or .
15268
if test $sim_ac_accept_result = yes; then
15269
CXXFLAGS="$CXXFLAGS -fullwarn"
15275
ac_cpp='$CXXCPP $CPPFLAGS'
15276
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15277
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15278
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15283
### Turn off specific (bogus) warnings ########################
15285
### SGI MipsPro v?.?? (our compiler on IRIX 6.2) ##############
15287
## 3115: ``type qualifiers are meaningless in this declaration''.
15288
## 3262: unused variables.
15290
### SGI MipsPro v7.30 #########################################
15292
## 1174: "The function was declared but never referenced."
15293
## 1209: "The controlling expression is constant." (kill warning on
15294
## if (0), assert(FALSE), etc).
15295
## 1355: Kill warnings on extra semicolons (which happens with some
15296
## of the Coin macros).
15297
## 1375: Non-virtual destructors in base classes.
15298
## 3201: Unused argument to a function.
15299
## 1110: "Statement is not reachable" (the Lex/Flex generated code in
15300
## Coin/src/engines has lots of shitty code which needs this).
15301
## 1506: Implicit conversion from "unsigned long" to "long".
15302
## SbTime.h in SGI/TGS Inventor does this, so we need to kill
15303
## this warning to avoid all the output clutter when compiling
15304
## the SoQt, SoGtk or SoXt libraries on IRIX with SGI MIPSPro CC.
15305
## 1169: External/internal linkage conflicts with a previous declaration.
15306
## We get this for the "friend operators" in SbString.h
15308
sim_ac_bogus_warnings="-woff 3115,3262,1174,1209,1355,1375,3201,1110,1506,1169"
15310
if test x"$CC" = xcc || test x"$CC" = xCC; then
15315
ac_cpp='$CPP $CPPFLAGS'
15316
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15317
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15318
ac_compiler_gnu=$ac_cv_c_compiler_gnu
15320
echo "$as_me:$LINENO: checking whether $CC accepts $sim_ac_bogus_warnings" >&5
15321
echo $ECHO_N "checking whether $CC accepts $sim_ac_bogus_warnings... $ECHO_C" >&6
15323
sim_ac_save_cppflags=$CPPFLAGS
15324
CPPFLAGS="$CPPFLAGS $sim_ac_bogus_warnings"
15325
cat >conftest.$ac_ext <<_ACEOF
15326
#line $LINENO "configure"
15327
#include "confdefs.h"
15329
#ifdef F77_DUMMY_MAIN
15330
# ifdef __cplusplus
15333
int F77_DUMMY_MAIN() { return 1; }
15343
rm -f conftest.$ac_objext
15344
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15345
(eval $ac_compile) 2>&5
15347
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15348
(exit $ac_status); } &&
15349
{ ac_try='test -s conftest.$ac_objext'
15350
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15351
(eval $ac_try) 2>&5
15353
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15354
(exit $ac_status); }; }; then
15355
sim_ac_accept_result=yes
15357
echo "$as_me: failed program was:" >&5
15358
cat conftest.$ac_ext >&5
15359
sim_ac_accept_result=no
15361
rm -f conftest.$ac_objext conftest.$ac_ext
15362
echo "$as_me:$LINENO: result: $sim_ac_accept_result" >&5
15363
echo "${ECHO_T}$sim_ac_accept_result" >&6
15364
CPPFLAGS=$sim_ac_save_cppflags
15365
# This need to go last, in case CPPFLAGS is modified in CFLAGS="$CFLAGS $sim_ac_bogus_warnings" or .
15366
if test $sim_ac_accept_result = yes; then
15367
CFLAGS="$CFLAGS $sim_ac_bogus_warnings"
15373
ac_cpp='$CXXCPP $CPPFLAGS'
15374
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15375
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15376
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15380
if test x"$CXX" = xCC; then
15385
ac_cpp='$CXXCPP $CPPFLAGS'
15386
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15387
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15388
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15390
echo "$as_me:$LINENO: checking whether $CXX accepts $sim_ac_bogus_warnings" >&5
15391
echo $ECHO_N "checking whether $CXX accepts $sim_ac_bogus_warnings... $ECHO_C" >&6
15393
sim_ac_save_cppflags=$CPPFLAGS
15394
CPPFLAGS="$CPPFLAGS $sim_ac_bogus_warnings"
15395
cat >conftest.$ac_ext <<_ACEOF
15396
#line $LINENO "configure"
15397
#include "confdefs.h"
15399
#ifdef F77_DUMMY_MAIN
15400
# ifdef __cplusplus
15403
int F77_DUMMY_MAIN() { return 1; }
15413
rm -f conftest.$ac_objext
15414
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15415
(eval $ac_compile) 2>&5
15417
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15418
(exit $ac_status); } &&
15419
{ ac_try='test -s conftest.$ac_objext'
15420
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15421
(eval $ac_try) 2>&5
15423
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15424
(exit $ac_status); }; }; then
15425
sim_ac_accept_result=yes
15427
echo "$as_me: failed program was:" >&5
15428
cat conftest.$ac_ext >&5
15429
sim_ac_accept_result=no
15431
rm -f conftest.$ac_objext conftest.$ac_ext
15432
echo "$as_me:$LINENO: result: $sim_ac_accept_result" >&5
15433
echo "${ECHO_T}$sim_ac_accept_result" >&6
15434
CPPFLAGS=$sim_ac_save_cppflags
15435
# This need to go last, in case CPPFLAGS is modified in CXXFLAGS="$CXXFLAGS $sim_ac_bogus_warnings" or .
15436
if test $sim_ac_accept_result = yes; then
15437
CXXFLAGS="$CXXFLAGS $sim_ac_bogus_warnings"
15443
ac_cpp='$CXXCPP $CPPFLAGS'
15444
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15445
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15446
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15455
# This is at least used to allow static compilation on Cygwin + MSWindows
15456
# without hitting the SOQT_DLL / SOQT_NOT_DLL safety check.
15457
CPPFLAGS="$CPPFLAGS -DSOQT_INTERNAL"
15461
sim_ac_static_defaults=true;
15462
# Check whether --enable-static-defaults or --disable-static-defaults was given.
15463
if test "${enable_static_defaults+set}" = set; then
15464
enableval="$enable_static_defaults"
15465
case ${enable_static_defaults} in
15466
no) sim_ac_static_defaults=false ;;
15468
*) echo "Option '--enable-static-defaults=${enable_static_defaults}' ignored" ;;
15472
if $sim_ac_static_defaults; then
15474
cat >>confdefs.h <<\_ACEOF
15475
#define WITH_STATIC_DEFAULTS
15481
if $sim_ac_static_defaults; then
15482
if test x${sim_ac_configuration_settings+set} != xset; then
15483
sim_ac_configuration_settings="Static Materials:Yes"
15485
sim_ac_configuration_settings="$sim_ac_configuration_settings|Static Materials:Yes"
15489
if test x${sim_ac_configuration_settings+set} != xset; then
15490
sim_ac_configuration_settings="Static Materials:No"
15492
sim_ac_configuration_settings="$sim_ac_configuration_settings|Static Materials:No"
15497
if test -n "$SUFFIX"; then
15498
if test x${sim_ac_configuration_settings+set} != xset; then
15499
sim_ac_configuration_settings="SoQt library name suffix:$SUFFIX"
15501
sim_ac_configuration_settings="$sim_ac_configuration_settings|SoQt library name suffix:$SUFFIX"
15506
# **************************************************************************
15508
COIN_COMPILER="$CXX"
15511
if $BUILD_WITH_MSVC; then
15512
# don't use wrapmsvc from source hierarchy when later using soqt-config.
15513
COIN_COMPILER="wrapmsvc"
15516
else # $sim_ac_build_library == false
15522
# **************************************************************************
15523
# To test the Mac OS X framework setup on non-Mac systems, run configure
15524
# with the --with-framework option. 20011029 larsa
15527
# Check whether --with-framework or --without-framework was given.
15528
if test "${with_framework+set}" = set; then
15529
withval="$with_framework"
15530
sim_ac_framework_name="SoQt"
15532
yes ) sim_ac_framework=true ;;
15533
no ) sim_ac_framework=false ;;
15534
* ) sim_ac_framework=true; sim_ac_framework_name="$withval" ;;
15537
sim_ac_framework_name="SoQt"
15539
darwin* ) sim_ac_framework=true ;;
15540
* ) sim_ac_framework=false ;;
15544
# don't allow name to be overrided - just toggled on/off
15545
sim_ac_framework_name="SoQt"
15548
# Check whether --with-framework-prefix or --without-framework-prefix was given.
15549
if test "${with_framework_prefix+set}" = set; then
15550
withval="$with_framework_prefix"
15551
sim_ac_framework_prefix="$withval"
15553
sim_ac_framework_prefix="/Library/Frameworks"
15556
# don't allow version to be overrided
15557
# AC_ARG_WITH([framework-version],
15558
# [ --with-framework-version=<version> (default: "MAC_FRAMEWORK_VERSION_DEFAULT")],
15559
# [sim_ac_framework_version="$withval"],
15560
# [sim_ac_framework_version="MAC_FRAMEWORK_VERSION_DEFAULT"])
15561
sim_ac_framework_version="A"
15565
# we don't allow SoQt as framework if Coin isn't instralled as a framework
15566
if $sim_ac_framework && $sim_ac_coin_desired && $sim_ac_coin_avail; then
15567
if test x"$CONFIG" != x"set"; then
15568
sim_ac_coin_frameworkdir=`$sim_ac_coin_configcmd --alternate=$CONFIG --frameworkdir 2>/dev/null`
15570
# FIXME: if the Coin detection/setup macro triggers on --alternate=$CONFIG,
15571
# we shouldn't fallback here :( 20020110 larsa
15572
if test x"$sim_ac_coin_frameworkdir" = x""; then
15573
sim_ac_coin_frameworkdir=`$sim_ac_coin_configcmd --frameworkdir 2>/dev/null`
15575
if test x"$sim_ac_coin_frameworkdir" = x""; then
15576
if test x${sim_ac_configuration_warnings+set} != xset; then
15577
sim_ac_configuration_warnings="Coin was not installed as a framework, so SoQt can't be either (option was disabled)."
15579
sim_ac_configuration_warnings="$sim_ac_configuration_warnings|Coin was not installed as a framework, so SoQt can't be either (option was disabled)."
15582
sim_ac_framework=false
15583
soqtincludedir=${includedir}/Inventor/Qt
15586
ivframeworkdir=$sim_ac_coin_frameworkdir
15588
if test x"$ivframeworkdir" != x""; then
15589
ivincludedir=$ivframeworkdir/Headers
15591
frameworkdir=${sim_ac_framework_prefix}/${sim_ac_framework_name}.framework
15592
soqtincludedir=${sim_ac_framework_prefix}/${sim_ac_framework_name}.framework/Headers
15595
sim_ac_framework=false
15596
soqtincludedir=${includedir}/Inventor/Qt
15605
MAC_FRAMEWORK=$sim_ac_framework
15607
MAC_FRAMEWORK_NAME=$sim_ac_framework_name
15609
MAC_FRAMEWORK_PREFIX=$sim_ac_framework_prefix
15611
MAC_FRAMEWORK_VERSION=$sim_ac_framework_version
15618
if $sim_ac_framework; then
15619
MAC_FRAMEWORK_TRUE=
15620
MAC_FRAMEWORK_FALSE='#'
15622
MAC_FRAMEWORK_TRUE='#'
15623
MAC_FRAMEWORK_FALSE=
15626
# for sub-configure in data/
15627
export sim_ac_framework
15628
export MAC_FRAMEWORK_NAME MAC_FRAMEWORK_PREFIX MAC_FRAMEWORK_VERSION
15630
# **************************************************************************
15632
# Qt's moc wants Windows-style paths, so if the inputfile is an
15633
# absolute Cygwin-style path it needs conversion.
15634
# Extract the first word of "cygpath", so it can be a program name with args.
15635
set dummy cygpath; ac_word=$2
15636
echo "$as_me:$LINENO: checking for $ac_word" >&5
15637
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15638
if test "${ac_cv_path_UNIX2WINPATH+set}" = set; then
15639
echo $ECHO_N "(cached) $ECHO_C" >&6
15641
case $UNIX2WINPATH in
15643
ac_cv_path_UNIX2WINPATH="$UNIX2WINPATH" # Let the user override the test with a path.
15646
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15647
for as_dir in $PATH
15650
test -z "$as_dir" && as_dir=.
15651
for ac_exec_ext in '' $ac_executable_extensions; do
15652
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15653
ac_cv_path_UNIX2WINPATH="$as_dir/$ac_word$ac_exec_ext"
15654
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15660
test -z "$ac_cv_path_UNIX2WINPATH" && ac_cv_path_UNIX2WINPATH="false"
15664
UNIX2WINPATH=$ac_cv_path_UNIX2WINPATH
15666
if test -n "$UNIX2WINPATH"; then
15667
echo "$as_me:$LINENO: result: $UNIX2WINPATH" >&5
15668
echo "${ECHO_T}$UNIX2WINPATH" >&6
15670
echo "$as_me:$LINENO: result: no" >&5
15671
echo "${ECHO_T}no" >&6
15674
if test x"$UNIX2WINPATH" = x"false"; then
15675
UNIX2WINPATH="echo"
15677
UNIX2WINPATH="CYGWIN= $UNIX2WINPATH -w"
15681
# **************************************************************************
15682
# Variable substitutions for using libSoQt in the generic code.
15694
COMPONENTHEADER=Q_OBJECT
15699
SOGUI_EXTRA_LDFLAGS="$SOGUI_EXTRA_LDFLAGS -Wl,-multiply_defined,suppress"
15703
# **************************************************************************
15710
# **************************************************************************
15711
# Remove redundant options from certain option lists.
15714
sim_ac_save_prefix=$prefix
15715
sim_ac_save_exec_prefix=$exec_prefix
15716
test x"$prefix" = xNONE && prefix=/usr/local
15717
test x"$exec_prefix" = xNONE && exec_prefix='${prefix}'
15718
sim_ac_uniqued_list=
15719
for sim_ac_item in -I$includedir $SOGUI_EXTRA_CPPFLAGS; do
15720
eval sim_ac_eval_item="$sim_ac_item"
15721
eval sim_ac_eval_item="$sim_ac_eval_item"
15722
if test x"$sim_ac_uniqued_list" = x; then
15723
sim_ac_uniqued_list="$sim_ac_item"
15726
for sim_ac_uniq in $sim_ac_uniqued_list; do
15727
eval sim_ac_eval_uniq="$sim_ac_uniq"
15728
eval sim_ac_eval_uniq="$sim_ac_eval_uniq"
15729
test x"$sim_ac_eval_item" = x"$sim_ac_eval_uniq" && sim_ac_unique=false
15731
$sim_ac_unique && sim_ac_uniqued_list="$sim_ac_uniqued_list $sim_ac_item"
15734
SOGUI_EXTRA_CPPFLAGS=$sim_ac_uniqued_list
15735
prefix=$sim_ac_save_prefix
15736
exec_prefix=$sim_ac_save_exec_prefix
15737
# unset sim_ac_save_prefix
15738
# unset sim_ac_save_exec_prefix
15739
# unset sim_ac_eval_item
15740
# unset sim_ac_eval_uniq
15743
sim_ac_save_prefix=$prefix
15744
sim_ac_save_exec_prefix=$exec_prefix
15745
test x"$prefix" = xNONE && prefix=/usr/local
15746
test x"$exec_prefix" = xNONE && exec_prefix='${prefix}'
15747
sim_ac_uniqued_list=
15748
for sim_ac_item in -L$libdir $SOGUI_EXTRA_LDFLAGS; do
15749
eval sim_ac_eval_item="$sim_ac_item"
15750
eval sim_ac_eval_item="$sim_ac_eval_item"
15751
if test x"$sim_ac_uniqued_list" = x; then
15752
sim_ac_uniqued_list="$sim_ac_item"
15755
for sim_ac_uniq in $sim_ac_uniqued_list; do
15756
eval sim_ac_eval_uniq="$sim_ac_uniq"
15757
eval sim_ac_eval_uniq="$sim_ac_eval_uniq"
15758
test x"$sim_ac_eval_item" = x"$sim_ac_eval_uniq" && sim_ac_unique=false
15760
$sim_ac_unique && sim_ac_uniqued_list="$sim_ac_uniqued_list $sim_ac_item"
15763
SOGUI_EXTRA_LDFLAGS=$sim_ac_uniqued_list
15764
prefix=$sim_ac_save_prefix
15765
exec_prefix=$sim_ac_save_exec_prefix
15766
# unset sim_ac_save_prefix
15767
# unset sim_ac_save_exec_prefix
15768
# unset sim_ac_eval_item
15769
# unset sim_ac_eval_uniq
15772
sim_ac_save_prefix=$prefix
15773
sim_ac_save_exec_prefix=$exec_prefix
15774
test x"$prefix" = xNONE && prefix=/usr/local
15775
test x"$exec_prefix" = xNONE && exec_prefix='${prefix}'
15776
sim_ac_uniqued_list=
15777
for sim_ac_item in $SOGUI_EXTRA_LIBS; do
15778
eval sim_ac_eval_item="$sim_ac_item"
15779
eval sim_ac_eval_item="$sim_ac_eval_item"
15780
if test x"$sim_ac_uniqued_list" = x; then
15781
sim_ac_uniqued_list="$sim_ac_item"
15784
for sim_ac_uniq in $sim_ac_uniqued_list; do
15785
eval sim_ac_eval_uniq="$sim_ac_uniq"
15786
eval sim_ac_eval_uniq="$sim_ac_eval_uniq"
15787
test x"$sim_ac_eval_item" = x"$sim_ac_eval_uniq" && sim_ac_unique=false
15789
$sim_ac_unique && sim_ac_uniqued_list="$sim_ac_uniqued_list $sim_ac_item"
15792
SOGUI_EXTRA_LIBS=$sim_ac_uniqued_list
15793
prefix=$sim_ac_save_prefix
15794
exec_prefix=$sim_ac_save_exec_prefix
15795
# unset sim_ac_save_prefix
15796
# unset sim_ac_save_exec_prefix
15797
# unset sim_ac_eval_item
15798
# unset sim_ac_eval_uniq
15802
sim_ac_save_prefix=$prefix
15803
sim_ac_save_exec_prefix=$exec_prefix
15804
test x"$prefix" = xNONE && prefix=/usr/local
15805
test x"$exec_prefix" = xNONE && exec_prefix='${prefix}'
15806
sim_ac_uniqued_list=
15807
for sim_ac_item in $CPPFLAGS; do
15808
eval sim_ac_eval_item="$sim_ac_item"
15809
eval sim_ac_eval_item="$sim_ac_eval_item"
15810
if test x"$sim_ac_uniqued_list" = x; then
15811
sim_ac_uniqued_list="$sim_ac_item"
15814
for sim_ac_uniq in $sim_ac_uniqued_list; do
15815
eval sim_ac_eval_uniq="$sim_ac_uniq"
15816
eval sim_ac_eval_uniq="$sim_ac_eval_uniq"
15817
test x"$sim_ac_eval_item" = x"$sim_ac_eval_uniq" && sim_ac_unique=false
15819
$sim_ac_unique && sim_ac_uniqued_list="$sim_ac_uniqued_list $sim_ac_item"
15822
CPPFLAGS=$sim_ac_uniqued_list
15823
prefix=$sim_ac_save_prefix
15824
exec_prefix=$sim_ac_save_exec_prefix
15825
# unset sim_ac_save_prefix
15826
# unset sim_ac_save_exec_prefix
15827
# unset sim_ac_eval_item
15828
# unset sim_ac_eval_uniq
15831
sim_ac_save_prefix=$prefix
15832
sim_ac_save_exec_prefix=$exec_prefix
15833
test x"$prefix" = xNONE && prefix=/usr/local
15834
test x"$exec_prefix" = xNONE && exec_prefix='${prefix}'
15835
sim_ac_uniqued_list=
15836
for sim_ac_item in $LDFLAGS; do
15837
eval sim_ac_eval_item="$sim_ac_item"
15838
eval sim_ac_eval_item="$sim_ac_eval_item"
15839
if test x"$sim_ac_uniqued_list" = x; then
15840
sim_ac_uniqued_list="$sim_ac_item"
15843
for sim_ac_uniq in $sim_ac_uniqued_list; do
15844
eval sim_ac_eval_uniq="$sim_ac_uniq"
15845
eval sim_ac_eval_uniq="$sim_ac_eval_uniq"
15846
test x"$sim_ac_eval_item" = x"$sim_ac_eval_uniq" && sim_ac_unique=false
15848
$sim_ac_unique && sim_ac_uniqued_list="$sim_ac_uniqued_list $sim_ac_item"
15851
LDFLAGS=$sim_ac_uniqued_list
15852
prefix=$sim_ac_save_prefix
15853
exec_prefix=$sim_ac_save_exec_prefix
15854
# unset sim_ac_save_prefix
15855
# unset sim_ac_save_exec_prefix
15856
# unset sim_ac_eval_item
15857
# unset sim_ac_eval_uniq
15860
sim_ac_save_prefix=$prefix
15861
sim_ac_save_exec_prefix=$exec_prefix
15862
test x"$prefix" = xNONE && prefix=/usr/local
15863
test x"$exec_prefix" = xNONE && exec_prefix='${prefix}'
15864
sim_ac_uniqued_list=
15865
for sim_ac_item in $LIBS; do
15866
eval sim_ac_eval_item="$sim_ac_item"
15867
eval sim_ac_eval_item="$sim_ac_eval_item"
15868
if test x"$sim_ac_uniqued_list" = x; then
15869
sim_ac_uniqued_list="$sim_ac_item"
15872
for sim_ac_uniq in $sim_ac_uniqued_list; do
15873
eval sim_ac_eval_uniq="$sim_ac_uniq"
15874
eval sim_ac_eval_uniq="$sim_ac_eval_uniq"
15875
test x"$sim_ac_eval_item" = x"$sim_ac_eval_uniq" && sim_ac_unique=false
15877
$sim_ac_unique && sim_ac_uniqued_list="$sim_ac_uniqued_list $sim_ac_item"
15880
LIBS=$sim_ac_uniqued_list
15881
prefix=$sim_ac_save_prefix
15882
exec_prefix=$sim_ac_save_exec_prefix
15883
# unset sim_ac_save_prefix
15884
# unset sim_ac_save_exec_prefix
15885
# unset sim_ac_eval_item
15886
# unset sim_ac_eval_uniq
15890
# **************************************************************************
15891
# Remove gcc system directories includes from the CPPFLAGS.
15894
if test x"$GCC" = x"yes"; then
15895
sim_ac_save_cpp=$CPP
15898
darwin*) CPP="cpp3"
15901
cpp_sys_dirs=`$CPP -v <<EOF 2>&1 | sed -n -e \
15902
'/#include <...> search starts here:/,/End of search list./{
15903
/#include <...> search starts here:/b
15904
/End of search list./b
15910
for inc_path in $CPPFLAGS; do
15912
for sys_dir in $cpp_sys_dirs; do
15913
if test x$inc_path = x$sys_dir; then
15918
$additem && result="$result $inc_path"
15921
CPP=$sim_ac_save_cpp
15925
if test x"$GCC" = x"yes"; then
15926
sim_ac_save_cpp=$CPP
15929
darwin*) CPP="cpp3"
15932
cpp_sys_dirs=`$CPP -v <<EOF 2>&1 | sed -n -e \
15933
'/#include <...> search starts here:/,/End of search list./{
15934
/#include <...> search starts here:/b
15935
/End of search list./b
15941
for inc_path in $SOGUI_EXTRA_CPPFLAGS; do
15943
for sys_dir in $cpp_sys_dirs; do
15944
if test x$inc_path = x$sys_dir; then
15949
$additem && result="$result $inc_path"
15951
SOGUI_EXTRA_CPPFLAGS=$result
15952
CPP=$sim_ac_save_cpp
15960
if test x${enable_shared+set} = xset; then
15961
case $enable_shared in
15962
yes | true) SOQT_STATIC=false ;;
15963
*) SOQT_STATIC=true ;;
15967
if test x${enable_static+set} = xset; then
15968
case $enable_static in
15969
yes | true) SOQT_STATIC=true ;;
15970
*) SOQT_STATIC=false ;;
15976
# **************************************************************************
15977
# Remaining setup based on platform.
15981
if $BUILD_WITH_MSVC; then
15982
BUILD_WITH_MSVC_TRUE=
15983
BUILD_WITH_MSVC_FALSE='#'
15985
BUILD_WITH_MSVC_TRUE='#'
15986
BUILD_WITH_MSVC_FALSE=
15989
if $BUILD_WITH_MSVC; then
15991
## Ensure that if we link with Coin, we use the same C library as Coin
15992
if test x"$sim_ac_coin_msvcrt" != x"" &&
15993
test x"$sim_ac_msvcrt" != x"$sim_ac_coin_msvcrt"; then
15994
if test x${sim_ac_configuration_warnings+set} != xset; then
15995
sim_ac_configuration_warnings="You have built Coin with the $sim_ac_coin_msvcrt C library, while you try to build So$Gui with the $sim_ac_msvcrt C library. This can cause mysterious crashes for you. We recommend that you run So$Gui's configure script with the --with-msvcrt=$sim_ac_coin_msvcrt option."
15997
sim_ac_configuration_warnings="$sim_ac_configuration_warnings|You have built Coin with the $sim_ac_coin_msvcrt C library, while you try to build So$Gui with the $sim_ac_msvcrt C library. This can cause mysterious crashes for you. We recommend that you run So$Gui's configure script with the --with-msvcrt=$sim_ac_coin_msvcrt option."
16001
LIBFLAGS="$LIBFLAGS $sim_ac_msvcrt_LIBLDFLAGS"
16002
LIBS="$LIBS $sim_ac_msvcrt_LIBLIBS"
16003
if $SOQT_STATIC; then
16004
SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS -DSOQT_NOT_DLL"
16006
CPPFLAGS="-DSOQT_MAKE_DLL $CPPFLAGS"
16007
SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS -DSOQT_DLL"
16010
debugfile="`pwd`/src/Inventor/Qt/soqt${SOQT_MAJOR_VERSION}${SUFFIX}.pdb"
16011
debugfile=`cygpath -w "$debugfile" | sed 's,\\\\,\\\\\\\\,g'`
16012
if $SOQT_STATIC; then
16013
if test x${sim_ac_configuration_settings+set} != xset; then
16014
sim_ac_configuration_settings="SoQt build type:static .lib"
16016
sim_ac_configuration_settings="$sim_ac_configuration_settings|SoQt build type:static .lib"
16019
LIBFLAGS="-LIB $LIBFLAGS"
16020
LIBFLAGS="$LIBFLAGS /OUT:soqt$SOQT_MAJOR_VERSION$SUFFIX.lib"
16022
LIBFLAGS="-DLL /INCREMENTAL:NO $LIBFLAGS"
16023
case $enable_symbols in
16025
LIBFLAGS="$LIBFLAGS /RELEASE"
16026
if test x${sim_ac_configuration_settings+set} != xset; then
16027
sim_ac_configuration_settings="SoQt build type:dynamic .dll, no symbols"
16029
sim_ac_configuration_settings="$sim_ac_configuration_settings|SoQt build type:dynamic .dll, no symbols"
16034
if test x${sim_ac_configuration_settings+set} != xset; then
16035
sim_ac_configuration_settings="SoQt build type:dynamic .dll + .pdb"
16037
sim_ac_configuration_settings="$sim_ac_configuration_settings|SoQt build type:dynamic .dll + .pdb"
16040
CPPFLAGS="/Fd$debugfile $CPPFLAGS"
16041
LIBFLAGS="$LIBFLAGS /DEBUG /PDB:soqt$SOQT_MAJOR_VERSION$SUFFIX.pdb"
16044
LIBFLAGS="$LIBFLAGS /OUT:soqt$SOQT_MAJOR_VERSION$SUFFIX.dll"
16047
# We use a version suffix on the .dll-file, so several incompatible
16048
# (major) versions can be installed on a system.
16050
# BTW, when linking DLLs, the 3rd-party .lib files will be
16051
# linked into the .dll file. I believe it is still advisable to
16052
# list all libs used upon `soqt-config --libs`, as we can then
16053
# also use them from "parent" code (remember that their interfaces
16054
# is not exposed from the DLL) without any fuss.
16055
SOGUI_EXTRA_LIBS="-lsoqt$SOQT_MAJOR_VERSION$SUFFIX $SOGUI_EXTRA_LIBS"
16057
SOGUI_EXTRA_LIBS="-lSoQt$SUFFIX $SOGUI_EXTRA_LIBS"
16059
if $sim_ac_framework; then
16060
# setup for SoQt usage
16061
SOGUI_EXTRA_CPPFLAGS=
16062
SOGUI_EXTRA_CFLAGS=
16063
SOGUI_EXTRA_CXXFLAGS=
16064
SOGUI_EXTRA_LDFLAGS="-Wl,-multiply_defined,suppress -framework SoQt"
16066
# adjust for Qt usage
16067
SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS $sim_ac_qt_cppflags"
16068
SOGUI_EXTRA_LDFLAGS="$SOGUI_EXTRA_LDFLAGS $sim_ac_qt_ldflags"
16069
SOGUI_EXTRA_LIBS="$sim_ac_qt_libs $SOGUI_EXTRA_LIBS"
16070
# adjust for QGL usage
16071
SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS $sim_ac_qgl_cppflags"
16072
SOGUI_EXTRA_LDFLAGS="$SOGUI_EXTRA_LDFLAGS $sim_ac_qgl_ldflags"
16073
SOGUI_EXTRA_LIBS="$sim_ac_qgl_libs $SOGUI_EXTRA_LIBS"
16074
# adjust for Coin usage
16075
SOGUI_EXTRA_CPPFLAGS="$SOGUI_EXTRA_CPPFLAGS $sim_ac_coin_cppflags"
16076
SOGUI_EXTRA_CFLAGS="$SOGUI_EXTRA_CFLAGS $sim_ac_coin_cflags"
16077
SOGUI_EXTRA_CXXFLAGS="$SOGUI_EXTRA_CXXFLAGS $sim_ac_coin_cxxflags"
16078
SOGUI_EXTRA_LDFLAGS="$SOGUI_EXTRA_LDFLAGS $sim_ac_coin_ldflags"
16079
SOGUI_EXTRA_LIBS="$sim_ac_coin_libs $SOGUI_EXTRA_LIBS"
16090
if $sim_ac_make_dsp; then
16091
if test x${sim_ac_configuration_settings+set} != xset; then
16092
sim_ac_configuration_settings="SoQt build type:msvc .dsp"
16094
sim_ac_configuration_settings="$sim_ac_configuration_settings|SoQt build type:msvc .dsp"
16098
# -DHAVE_CONFIG_H is set up in $DEFS too late for use to use, and some
16099
# include directives are usually set up in the Makefile.am files
16100
for arg in -DHAVE_CONFIG_H -I$soqt_build_dir/src -I$soqt_src_dir/src -I$soqt_src_dir/data $CPPFLAGS $LDFLAGS $LIBS; do
16103
libdir=`echo $arg | cut -c3-`
16104
SOQT_DSP_LIBDIRS="$SOQT_DSP_LIBDIRS $libdir"
16107
libname=`echo $arg | cut -c3-`
16108
for libdir in $SOQT_DSP_LIBDIRS; do
16109
if test -f $libdir/$libname.lib; then
16110
# lib is not in any standard location - use full path
16111
libname=`cygpath -w "$libdir/$libname" 2>/dev/null || echo "$libdir/$libname"`
16115
if test x"$SOQT_DSP_LIBS" = x""; then
16116
SOQT_DSP_LIBS="$libname.lib"
16118
SOQT_DSP_LIBS="$SOQT_DSP_LIBS $libname.lib"
16122
incdir=`echo $arg | cut -c3-`
16123
incdir=`cygpath -w "$incdir" 2>/dev/null || echo "$incdir"`
16124
if test x"$SOQT_DSP_INCS" = x""; then
16125
SOQT_DSP_INCS="/I \"$incdir\""
16127
SOQT_DSP_INCS="$SOQT_DSP_INCS /I \"$incdir\""
16130
-DSOQT_DEBUG* | -DNDEBUG )
16131
# Defines that vary between release/debug configurations can't be
16132
# set up dynamically in <lib>_DSP_DEFS - they must be static in the
16133
# gendsp.sh script. We therefore catche them here so we can ignore
16134
# checking for them below.
16137
define=`echo $arg | cut -c3-`
16138
if test x"$SOQT_DSP_DEFS" = x""; then
16139
SOQT_DSP_DEFS="/D \"$define\""
16141
SOQT_DSP_DEFS="$SOQT_DSP_DEFS /D \"$define\""
16147
CC=$soqt_src_dir/cfg/m4/gendsp.sh
16148
CXX=$soqt_src_dir/cfg/m4/gendsp.sh
16149
CXXLD=$soqt_src_dir/cfg/m4/gendsp.sh
16150
# Yes, this is totally bogus stuff, but don't worry about it. As long
16151
# as gendsp.sh recognizes it... 20030219 larsa
16152
CPPFLAGS="$CPPFLAGS -Ddspfile=$soqt_build_dir/soqt$SOQT_MAJOR_VERSION.dsp"
16153
LDFLAGS="$LDFLAGS -Wl,-Ddspfile=$soqt_build_dir/soqt$SOQT_MAJOR_VERSION.dsp"
16154
LIBFLAGS="$LIBFLAGS -o soqt$SOQT_MAJOR_VERSION.so.0"
16156
# this can't be set up at the point the libtool script is generated
16157
mv libtool libtool.bak
16158
sed -e "s%^CC=\"gcc\"%CC=\"$soqt_src_dir/cfg/m4/gendsp.sh\"%" \
16159
-e "s%^CC=\".*/wrapmsvc.exe\"%CC=\"$soqt_src_dir/cfg/m4/gendsp.sh\"%" \
16160
<libtool.bak >libtool
16170
# **************************************************************************
16171
# Submodules that needs to be configured...
16173
# Material editor(s) not part of the public API yet, so there's
16174
# no point yet in installing the material data.
16175
# AC_CONFIG_SUBDIRS(data)
16177
# **************************************************************************
16178
# List all files configure shall automatically generate.
16180
# Note that soqt-$CONFIG.cfg needs to be generated from the configure
16181
# script -- not just from the Makefile -- as the data/configure script
16182
# depends on it. (data/configure is temporarily disabled, BTW, but anyway..)
16184
ac_config_files="$ac_config_files soqt-$CONFIG.cfg:src/Inventor/Qt/common/sogui.cfg.in Makefile src/Makefile src/Inventor/Makefile src/Inventor/Qt/Makefile src/Inventor/Qt/devices/Makefile src/Inventor/Qt/viewers/Makefile src/Inventor/Qt/widgets/Makefile man/Makefile man/man1/Makefile man/man3/Makefile html/Makefile"
16185
cat >confcache <<\_ACEOF
16186
# This file is a shell script that caches the results of configure
16187
# tests run on this system so they can be shared between configure
16188
# scripts and configure runs, see configure's option --config-cache.
16189
# It is not useful on other systems. If it contains results you don't
16190
# want to keep, you may remove or edit it.
16192
# config.status only pays attention to the cache file if you give it
16193
# the --recheck option to rerun configure.
16195
# `ac_cv_env_foo' variables (set or unset) will be overriden when
16196
# loading this file, other *unset* `ac_cv_foo' will be assigned the
16197
# following values.
16201
# The following way of writing the cache mishandles newlines in values,
16202
# but we know of no workaround that is simple, portable, and efficient.
16203
# So, don't put newlines in cache variables' values.
16204
# Ultrix sh set writes to stderr and can't be redirected directly,
16205
# and sets the high bit in the cache file unless we assign to the vars.
16208
case `(ac_space=' '; set | grep ac_space) 2>&1` in
16210
# `set' does not quote correctly, so add quotes (double-quote
16211
# substitution turns \\\\ into \\, and sed turns \\ into \).
16214
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16217
# `set' quotes correctly as required by POSIX, so do not add quotes.
16219
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16226
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16228
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16230
if cmp -s $cache_file confcache; then :; else
16231
if test -w $cache_file; then
16232
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16233
cat confcache >$cache_file
16235
echo "not updating unwritable cache $cache_file"
16240
test "x$prefix" = xNONE && prefix=$ac_default_prefix
16241
# Let make expand exec_prefix.
16242
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16244
# VPATH may cause trouble with some makes, so we remove $(srcdir),
16245
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16246
# trailing colons and then remove the whole line if VPATH becomes empty
16247
# (actually we leave an empty line to preserve line numbers).
16248
if test "x$srcdir" = x.; then
16249
ac_vpsub='/^[ ]*VPATH[ ]*=/{
16250
s/:*\$(srcdir):*/:/;
16251
s/:*\${srcdir}:*/:/;
16253
s/^\([^=]*=[ ]*\):*/\1/;
16259
DEFS=-DHAVE_CONFIG_H
16262
: ${CONFIG_STATUS=./config.status}
16263
ac_clean_files_save=$ac_clean_files
16264
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16265
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
16266
echo "$as_me: creating $CONFIG_STATUS" >&6;}
16267
cat >$CONFIG_STATUS <<_ACEOF
16269
# Generated by $as_me.
16270
# Run this file to recreate the current configuration.
16271
# Compiler output produced by configure, useful for debugging
16272
# configure, is in config.log if it exists.
16275
SHELL=\${CONFIG_SHELL-$SHELL}
16278
cat >>$CONFIG_STATUS <<\_ACEOF
16280
## --------------------- ##
16281
## M4sh Initialization. ##
16282
## --------------------- ##
16284
# Be Bourne compatible
16285
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16288
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16293
# Support unset when possible.
16294
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16300
(set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
16301
{ $as_unset LANG || test "${LANG+set}" != set; } ||
16302
{ LANG=C; export LANG; }
16303
(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
16304
{ $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
16305
{ LC_ALL=C; export LC_ALL; }
16306
(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
16307
{ $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
16308
{ LC_TIME=C; export LC_TIME; }
16309
(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
16310
{ $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
16311
{ LC_CTYPE=C; export LC_CTYPE; }
16312
(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
16313
{ $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
16314
{ LANGUAGE=C; export LANGUAGE; }
16315
(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
16316
{ $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
16317
{ LC_COLLATE=C; export LC_COLLATE; }
16318
(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
16319
{ $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
16320
{ LC_NUMERIC=C; export LC_NUMERIC; }
16321
(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
16322
{ $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
16323
{ LC_MESSAGES=C; export LC_MESSAGES; }
16326
# Name of the executable.
16327
as_me=`(basename "$0") 2>/dev/null ||
16328
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16329
X"$0" : 'X\(//\)$' \| \
16330
X"$0" : 'X\(/\)$' \| \
16331
. : '\(.\)' 2>/dev/null ||
16333
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16334
/^X\/\(\/\/\)$/{ s//\1/; q; }
16335
/^X\/\(\/\).*/{ s//\1/; q; }
16338
# PATH needs CR, and LINENO needs CR and PATH.
16339
# Avoid depending upon Character Ranges.
16340
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16341
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16342
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16343
as_cr_digits='0123456789'
16344
as_cr_alnum=$as_cr_Letters$as_cr_digits
16346
# The user is always right.
16347
if test "${PATH_SEPARATOR+set}" != set; then
16348
echo "#! /bin/sh" >conftest.sh
16349
echo "exit 0" >>conftest.sh
16350
chmod +x conftest.sh
16351
if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
16360
as_lineno_1=$LINENO
16361
as_lineno_2=$LINENO
16362
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16363
test "x$as_lineno_1" != "x$as_lineno_2" &&
16364
test "x$as_lineno_3" = "x$as_lineno_2" || {
16365
# Find who we are. Look in the path if we contain no path at all
16368
*[\\/]* ) as_myself=$0 ;;
16369
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16370
for as_dir in $PATH
16373
test -z "$as_dir" && as_dir=.
16374
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16379
# We did not find ourselves, most probably we were run as `sh COMMAND'
16380
# in which case we are not to be found in the path.
16381
if test "x$as_myself" = x; then
16384
if test ! -f "$as_myself"; then
16385
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16386
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16387
{ (exit 1); exit 1; }; }
16389
case $CONFIG_SHELL in
16391
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16392
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16395
test -z "$as_dir" && as_dir=.
16396
for as_base in sh bash ksh sh5; do
16399
if ("$as_dir/$as_base" -c '
16400
as_lineno_1=$LINENO
16401
as_lineno_2=$LINENO
16402
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16403
test "x$as_lineno_1" != "x$as_lineno_2" &&
16404
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
16405
CONFIG_SHELL=$as_dir/$as_base
16406
export CONFIG_SHELL
16407
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16415
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16416
# uniformly replaced by the line number. The first 'sed' inserts a
16417
# line-number line before each line; the second 'sed' does the real
16418
# work. The second script uses 'N' to pair each line-number line
16419
# with the numbered line, and appends trailing '-' during
16420
# substitution so that $LINENO is not a special case at line end.
16421
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16422
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16423
sed '=' <$as_myself |
16428
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16431
s,^['$as_cr_digits']*\n,,
16432
' >$as_me.lineno &&
16433
chmod +x $as_me.lineno ||
16434
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16435
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16436
{ (exit 1); exit 1; }; }
16438
# Don't try to exec as it changes $[0], causing all sort of problems
16439
# (the dirname of $[0] is not the place where we might find the
16440
# original and so on. Autoconf is especially sensible to this).
16442
# Exit status is that of the last command.
16447
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16448
*c*,-n*) ECHO_N= ECHO_C='
16450
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16451
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16454
if expr a : '\(a\)' >/dev/null 2>&1; then
16460
rm -f conf$$ conf$$.exe conf$$.file
16462
if ln -s conf$$.file conf$$ 2>/dev/null; then
16463
# We could just check for DJGPP; but this test a) works b) is more generic
16464
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16465
if test -f conf$$.exe; then
16466
# Don't use ln at all; we don't have any links
16471
elif ln conf$$.file conf$$ 2>/dev/null; then
16476
rm -f conf$$ conf$$.exe conf$$.file
16478
as_executable_p="test -f"
16480
# Sed expression to map a string onto a valid CPP name.
16481
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
16483
# Sed expression to map a string onto a valid variable name.
16484
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16488
# We need space, tab and new line, in precisely that order.
16494
$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
16498
# Open the log real soon, to keep \$[0] and so on meaningful, and to
16499
# report actual input values of CONFIG_FILES etc. instead of their
16500
# values after options handling. Logging --version etc. is OK.
16504
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16505
## Running $as_me. ##
16510
This file was extended by SoQt $as_me 1.0.2, which was
16511
generated by GNU Autoconf 2.53. Invocation command line was
16513
CONFIG_FILES = $CONFIG_FILES
16514
CONFIG_HEADERS = $CONFIG_HEADERS
16515
CONFIG_LINKS = $CONFIG_LINKS
16516
CONFIG_COMMANDS = $CONFIG_COMMANDS
16520
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16524
# Files that config.status was made for.
16525
if test -n "$ac_config_files"; then
16526
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16529
if test -n "$ac_config_headers"; then
16530
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16533
if test -n "$ac_config_links"; then
16534
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16537
if test -n "$ac_config_commands"; then
16538
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16541
cat >>$CONFIG_STATUS <<\_ACEOF
16544
\`$as_me' instantiates files from templates according to the
16545
current configuration.
16547
Usage: $0 [OPTIONS] [FILE]...
16549
-h, --help print this help, then exit
16550
-V, --version print version number, then exit
16551
-d, --debug don't remove temporary files
16552
--recheck update $as_me by reconfiguring in the same conditions
16553
--file=FILE[:TEMPLATE]
16554
instantiate the configuration file FILE
16555
--header=FILE[:TEMPLATE]
16556
instantiate the configuration header FILE
16558
Configuration files:
16561
Configuration headers:
16564
Configuration commands:
16567
Report bugs to <bug-autoconf@gnu.org>."
16570
cat >>$CONFIG_STATUS <<_ACEOF
16572
SoQt config.status 1.0.2
16573
configured by $0, generated by GNU Autoconf 2.53,
16574
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
16576
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16577
Free Software Foundation, Inc.
16578
This config.status script is free software; the Free Software Foundation
16579
gives unlimited permission to copy, distribute and modify it."
16584
cat >>$CONFIG_STATUS <<\_ACEOF
16585
# If no file are specified by the user, then we need to provide default
16586
# value. By we need to know if files were specified by the user.
16592
ac_option=`expr "x$1" : 'x\([^=]*\)='`
16593
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
16595
set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
16599
*) # This is not an option, so the user has probably given explicit
16601
ac_need_defaults=false;;
16605
# Handling of the options.
16607
cat >>$CONFIG_STATUS <<_ACEOF
16608
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16609
echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
16610
exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
16612
cat >>$CONFIG_STATUS <<\_ACEOF
16613
--version | --vers* | -V )
16614
echo "$ac_cs_version"; exit 0 ;;
16616
# Conflict between --help and --header
16617
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
16618
Try \`$0 --help' for more information." >&5
16619
echo "$as_me: error: ambiguous option: $1
16620
Try \`$0 --help' for more information." >&2;}
16621
{ (exit 1); exit 1; }; };;
16622
--help | --hel | -h )
16623
echo "$ac_cs_usage"; exit 0 ;;
16624
--debug | --d* | -d )
16626
--file | --fil | --fi | --f )
16628
CONFIG_FILES="$CONFIG_FILES $1"
16629
ac_need_defaults=false;;
16630
--header | --heade | --head | --hea )
16632
CONFIG_HEADERS="$CONFIG_HEADERS $1"
16633
ac_need_defaults=false;;
16635
# This is an error.
16636
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
16637
Try \`$0 --help' for more information." >&5
16638
echo "$as_me: error: unrecognized option: $1
16639
Try \`$0 --help' for more information." >&2;}
16640
{ (exit 1); exit 1; }; } ;;
16642
*) ac_config_targets="$ac_config_targets $1" ;;
16650
cat >>$CONFIG_STATUS <<_ACEOF
16652
# INIT-COMMANDS section.
16655
AMDEP_TRUE="$AMDEP_TRUE"
16656
ac_aux_dir="$ac_aux_dir"
16662
cat >>$CONFIG_STATUS <<\_ACEOF
16663
for ac_config_target in $ac_config_targets
16665
case "$ac_config_target" in
16666
# Handling of arguments.
16667
"soqt-$CONFIG.cfg" ) CONFIG_FILES="$CONFIG_FILES soqt-$CONFIG.cfg:src/Inventor/Qt/common/sogui.cfg.in" ;;
16668
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16669
"src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16670
"src/Inventor/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Inventor/Makefile" ;;
16671
"src/Inventor/Qt/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Inventor/Qt/Makefile" ;;
16672
"src/Inventor/Qt/devices/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Inventor/Qt/devices/Makefile" ;;
16673
"src/Inventor/Qt/viewers/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Inventor/Qt/viewers/Makefile" ;;
16674
"src/Inventor/Qt/widgets/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Inventor/Qt/widgets/Makefile" ;;
16675
"man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
16676
"man/man1/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/man1/Makefile" ;;
16677
"man/man3/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/man3/Makefile" ;;
16678
"html/Makefile" ) CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
16679
"default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16680
"src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
16681
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
16682
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
16683
{ (exit 1); exit 1; }; };;
16687
# If the user did not use the arguments to specify the items to instantiate,
16688
# then the envvar interface is used. Set only those that are not.
16689
# We use the long form for the default assignment because of an extremely
16690
# bizarre bug on SunOS 4.1.3.
16691
if $ac_need_defaults; then
16692
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16693
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16694
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16697
# Create a temporary directory, and hook for its removal unless debugging.
16700
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
16701
trap '{ (exit 1); exit 1; }' 1 2 13 15
16704
# Create a (secure) tmp directory for tmp files.
16707
tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
16708
test -n "$tmp" && test -d "$tmp"
16711
tmp=$TMPDIR/cs$$-$RANDOM
16712
(umask 077 && mkdir $tmp)
16715
echo "$me: cannot create a temporary directory in $TMPDIR" >&2
16716
{ (exit 1); exit 1; }
16721
cat >>$CONFIG_STATUS <<_ACEOF
16724
# CONFIG_FILES section.
16727
# No need to generate the scripts if there are no CONFIG_FILES.
16728
# This happens for instance when ./config.status config.h
16729
if test -n "\$CONFIG_FILES"; then
16730
# Protect against being on the right side of a sed subst in config.status.
16731
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
16732
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
16733
s,@SHELL@,$SHELL,;t t
16734
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
16735
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
16736
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
16737
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
16738
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
16739
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
16740
s,@exec_prefix@,$exec_prefix,;t t
16741
s,@prefix@,$prefix,;t t
16742
s,@program_transform_name@,$program_transform_name,;t t
16743
s,@bindir@,$bindir,;t t
16744
s,@sbindir@,$sbindir,;t t
16745
s,@libexecdir@,$libexecdir,;t t
16746
s,@datadir@,$datadir,;t t
16747
s,@sysconfdir@,$sysconfdir,;t t
16748
s,@sharedstatedir@,$sharedstatedir,;t t
16749
s,@localstatedir@,$localstatedir,;t t
16750
s,@libdir@,$libdir,;t t
16751
s,@includedir@,$includedir,;t t
16752
s,@oldincludedir@,$oldincludedir,;t t
16753
s,@infodir@,$infodir,;t t
16754
s,@mandir@,$mandir,;t t
16755
s,@build_alias@,$build_alias,;t t
16756
s,@host_alias@,$host_alias,;t t
16757
s,@target_alias@,$target_alias,;t t
16758
s,@DEFS@,$DEFS,;t t
16759
s,@ECHO_C@,$ECHO_C,;t t
16760
s,@ECHO_N@,$ECHO_N,;t t
16761
s,@ECHO_T@,$ECHO_T,;t t
16762
s,@LIBS@,$LIBS,;t t
16763
s,@build@,$build,;t t
16764
s,@build_cpu@,$build_cpu,;t t
16765
s,@build_vendor@,$build_vendor,;t t
16766
s,@build_os@,$build_os,;t t
16767
s,@host@,$host,;t t
16768
s,@host_cpu@,$host_cpu,;t t
16769
s,@host_vendor@,$host_vendor,;t t
16770
s,@host_os@,$host_os,;t t
16771
s,@target@,$target,;t t
16772
s,@target_cpu@,$target_cpu,;t t
16773
s,@target_vendor@,$target_vendor,;t t
16774
s,@target_os@,$target_os,;t t
16775
s,@BUILD_WITH_MSVC@,$BUILD_WITH_MSVC,;t t
16776
s,@SOQT_MAJOR_VERSION@,$SOQT_MAJOR_VERSION,;t t
16777
s,@SOQT_MINOR_VERSION@,$SOQT_MINOR_VERSION,;t t
16778
s,@SOQT_MICRO_VERSION@,$SOQT_MICRO_VERSION,;t t
16779
s,@SOQT_BETA_VERSION@,$SOQT_BETA_VERSION,;t t
16780
s,@SOQT_VERSION@,$SOQT_VERSION,;t t
16781
s,@LT_CURRENT@,$LT_CURRENT,;t t
16782
s,@LT_REVISION@,$LT_REVISION,;t t
16783
s,@LT_AGE@,$LT_AGE,;t t
16784
s,@SOQT_SO_VERSION@,$SOQT_SO_VERSION,;t t
16785
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
16786
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
16787
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
16788
s,@PACKAGE@,$PACKAGE,;t t
16789
s,@VERSION@,$VERSION,;t t
16790
s,@EXEEXT@,$EXEEXT,;t t
16791
s,@OBJEXT@,$OBJEXT,;t t
16792
s,@ACLOCAL@,$ACLOCAL,;t t
16793
s,@AUTOCONF@,$AUTOCONF,;t t
16794
s,@AUTOMAKE@,$AUTOMAKE,;t t
16795
s,@AUTOHEADER@,$AUTOHEADER,;t t
16796
s,@MAKEINFO@,$MAKEINFO,;t t
16797
s,@AMTAR@,$AMTAR,;t t
16798
s,@install_sh@,$install_sh,;t t
16799
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
16801
s,@SET_MAKE@,$SET_MAKE,;t t
16802
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
16803
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
16804
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
16805
s,@DEPDIR@,$DEPDIR,;t t
16806
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
16807
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
16808
s,@MAINT@,$MAINT,;t t
16810
s,@CFLAGS@,$CFLAGS,;t t
16811
s,@LDFLAGS@,$LDFLAGS,;t t
16812
s,@CPPFLAGS@,$CPPFLAGS,;t t
16813
s,@ac_ct_CC@,$ac_ct_CC,;t t
16814
s,@am__include@,$am__include,;t t
16815
s,@am__quote@,$am__quote,;t t
16816
s,@CCDEPMODE@,$CCDEPMODE,;t t
16819
s,@CXXFLAGS@,$CXXFLAGS,;t t
16820
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
16821
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
16822
s,@CXXCPP@,$CXXCPP,;t t
16823
s,@SOGUI_MSVC_LIBC@,$SOGUI_MSVC_LIBC,;t t
16824
s,@LN_S@,$LN_S,;t t
16825
s,@ECHO@,$ECHO,;t t
16826
s,@RANLIB@,$RANLIB,;t t
16827
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
16828
s,@STRIP@,$STRIP,;t t
16829
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
16830
s,@LIBTOOL@,$LIBTOOL,;t t
16831
s,@SOGUI_EXTRA_CPPFLAGS@,$SOGUI_EXTRA_CPPFLAGS,;t t
16832
s,@SOGUI_EXTRA_CFLAGS@,$SOGUI_EXTRA_CFLAGS,;t t
16833
s,@SOGUI_EXTRA_CXXFLAGS@,$SOGUI_EXTRA_CXXFLAGS,;t t
16834
s,@SOGUI_EXTRA_LDFLAGS@,$SOGUI_EXTRA_LDFLAGS,;t t
16835
s,@SOGUI_EXTRA_LIBS@,$SOGUI_EXTRA_LIBS,;t t
16836
s,@CONFIG@,$CONFIG,;t t
16837
s,@SUFFIX@,$SUFFIX,;t t
16838
s,@BUILD_LIBRARY_TRUE@,$BUILD_LIBRARY_TRUE,;t t
16839
s,@BUILD_LIBRARY_FALSE@,$BUILD_LIBRARY_FALSE,;t t
16840
s,@htmldir@,$htmldir,;t t
16841
s,@SOGUI_DOC_HTML@,$SOGUI_DOC_HTML,;t t
16842
s,@SOGUI_DOC_MAN@,$SOGUI_DOC_MAN,;t t
16843
s,@sogui_build_dir@,$sogui_build_dir,;t t
16844
s,@sogui_src_dir@,$sogui_src_dir,;t t
16845
s,@sogui_html_dir@,$sogui_html_dir,;t t
16846
s,@sogui_man_dir@,$sogui_man_dir,;t t
16847
s,@BUILD_MANPAGES_TRUE@,$BUILD_MANPAGES_TRUE,;t t
16848
s,@BUILD_MANPAGES_FALSE@,$BUILD_MANPAGES_FALSE,;t t
16849
s,@BUILD_HTMLPAGES_TRUE@,$BUILD_HTMLPAGES_TRUE,;t t
16850
s,@BUILD_HTMLPAGES_FALSE@,$BUILD_HTMLPAGES_FALSE,;t t
16851
s,@sim_ac_doxygen_exe@,$sim_ac_doxygen_exe,;t t
16852
s,@sim_ac_perl_exe@,$sim_ac_perl_exe,;t t
16853
s,@path_tag@,$path_tag,;t t
16854
s,@BUILD_METAFILES_TRUE@,$BUILD_METAFILES_TRUE,;t t
16855
s,@BUILD_METAFILES_FALSE@,$BUILD_METAFILES_FALSE,;t t
16856
s,@meta_prefix@,$meta_prefix,;t t
16857
s,@X_CFLAGS@,$X_CFLAGS,;t t
16858
s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
16859
s,@X_LIBS@,$X_LIBS,;t t
16860
s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
16861
s,@sim_ac_coin_configcmd@,$sim_ac_coin_configcmd,;t t
16862
s,@QTDIR@,$QTDIR,;t t
16863
s,@sim_ac_qt_cygpath@,$sim_ac_qt_cygpath,;t t
16865
s,@HAVE_JOYSTICK_LINUX_TRUE@,$HAVE_JOYSTICK_LINUX_TRUE,;t t
16866
s,@HAVE_JOYSTICK_LINUX_FALSE@,$HAVE_JOYSTICK_LINUX_FALSE,;t t
16867
s,@DSUFFIX@,$DSUFFIX,;t t
16868
s,@COIN_COMPILER@,$COIN_COMPILER,;t t
16869
s,@ivframeworkdir@,$ivframeworkdir,;t t
16870
s,@frameworkdir@,$frameworkdir,;t t
16871
s,@ivincludedir@,$ivincludedir,;t t
16872
s,@soqtincludedir@,$soqtincludedir,;t t
16873
s,@MAC_FRAMEWORK@,$MAC_FRAMEWORK,;t t
16874
s,@MAC_FRAMEWORK_NAME@,$MAC_FRAMEWORK_NAME,;t t
16875
s,@MAC_FRAMEWORK_PREFIX@,$MAC_FRAMEWORK_PREFIX,;t t
16876
s,@MAC_FRAMEWORK_VERSION@,$MAC_FRAMEWORK_VERSION,;t t
16878
s,@MAC_FRAMEWORK_TRUE@,$MAC_FRAMEWORK_TRUE,;t t
16879
s,@MAC_FRAMEWORK_FALSE@,$MAC_FRAMEWORK_FALSE,;t t
16880
s,@UNIX2WINPATH@,$UNIX2WINPATH,;t t
16884
s,@WIDGET@,$WIDGET,;t t
16885
s,@EVENT@,$EVENT,;t t
16886
s,@COMPONENTHEADER@,$COMPONENTHEADER,;t t
16887
s,@soqt_build_dir@,$soqt_build_dir,;t t
16888
s,@soqt_w32_build_dir@,$soqt_w32_build_dir,;t t
16889
s,@soqt_src_dir@,$soqt_src_dir,;t t
16890
s,@soqt_w32_src_dir@,$soqt_w32_src_dir,;t t
16891
s,@LIBFLAGS@,$LIBFLAGS,;t t
16892
s,@BUILD_WITH_MSVC_TRUE@,$BUILD_WITH_MSVC_TRUE,;t t
16893
s,@BUILD_WITH_MSVC_FALSE@,$BUILD_WITH_MSVC_FALSE,;t t
16894
s,@SOQT_DSP_LIBS@,$SOQT_DSP_LIBS,;t t
16895
s,@SOQT_DSP_INCS@,$SOQT_DSP_INCS,;t t
16896
s,@SOQT_DSP_DEFS@,$SOQT_DSP_DEFS,;t t
16901
cat >>$CONFIG_STATUS <<\_ACEOF
16902
# Split the substitutions into bite-sized pieces for seds with
16903
# small command number limits, like on Digital OSF/1 and HP-UX.
16904
ac_max_sed_lines=48
16905
ac_sed_frag=1 # Number of current file.
16906
ac_beg=1 # First line for current file.
16907
ac_end=$ac_max_sed_lines # Line after last line for current file.
16910
while $ac_more_lines; do
16911
if test $ac_beg -gt 1; then
16912
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16914
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
16916
if test ! -s $tmp/subs.frag; then
16917
ac_more_lines=false
16919
# The purpose of the label and of the branching condition is to
16920
# speed up the sed processing (if there are no `@' at all, there
16921
# is no need to browse any of the substitutions).
16922
# These are the two extra sed commands mentioned above.
16924
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
16925
if test -z "$ac_sed_cmds"; then
16926
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
16928
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
16930
ac_sed_frag=`expr $ac_sed_frag + 1`
16932
ac_end=`expr $ac_end + $ac_max_sed_lines`
16935
if test -z "$ac_sed_cmds"; then
16938
fi # test -n "$CONFIG_FILES"
16941
cat >>$CONFIG_STATUS <<\_ACEOF
16942
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
16943
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
16945
- | *:- | *:-:* ) # input from stdin
16947
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16948
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16949
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
16950
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
16951
* ) ac_file_in=$ac_file.in ;;
16954
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
16955
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
16956
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16957
X"$ac_file" : 'X\(//\)[^/]' \| \
16958
X"$ac_file" : 'X\(//\)$' \| \
16959
X"$ac_file" : 'X\(/\)' \| \
16960
. : '\(.\)' 2>/dev/null ||
16962
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
16963
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
16964
/^X\(\/\/\)$/{ s//\1/; q; }
16965
/^X\(\/\).*/{ s//\1/; q; }
16967
{ case "$ac_dir" in
16968
[\\/]* | ?:[\\/]* ) as_incr_dir=;;
16972
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
16973
case $as_mkdir_dir in
16974
# Skip DOS drivespec
16975
?:) as_incr_dir=$as_mkdir_dir ;;
16977
as_incr_dir=$as_incr_dir/$as_mkdir_dir
16978
test -d "$as_incr_dir" ||
16979
mkdir "$as_incr_dir" ||
16980
{ { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
16981
echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
16982
{ (exit 1); exit 1; }; }
16989
if test "$ac_dir" != .; then
16990
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
16991
# A "../" for each directory in $ac_dir_suffix.
16992
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
16994
ac_dir_suffix= ac_top_builddir=
16998
.) # No --srcdir option. We are building in place.
17000
if test -z "$ac_top_builddir"; then
17003
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17005
[\\/]* | ?:[\\/]* ) # Absolute path.
17006
ac_srcdir=$srcdir$ac_dir_suffix;
17007
ac_top_srcdir=$srcdir ;;
17008
*) # Relative path.
17009
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17010
ac_top_srcdir=$ac_top_builddir$srcdir ;;
17012
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17014
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17015
ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17016
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17017
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17021
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17022
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
17025
if test x"$ac_file" != x-; then
17026
{ echo "$as_me:$LINENO: creating $ac_file" >&5
17027
echo "$as_me: creating $ac_file" >&6;}
17030
# Let's still pretend it is `configure' which instantiates (i.e., don't
17031
# use $as_me), people would be surprised to read:
17032
# /* config.h. Generated by config.status. */
17033
if test x"$ac_file" = x-; then
17036
configure_input="$ac_file. "
17038
configure_input=$configure_input"Generated from `echo $ac_file_in |
17039
sed 's,.*/,,'` by configure."
17041
# First look for the input files in the build tree, otherwise in the
17043
ac_file_inputs=`IFS=:
17044
for f in $ac_file_in; do
17046
-) echo $tmp/stdin ;;
17048
# Absolute (can't be DOS-style, as IFS=:)
17049
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17050
echo "$as_me: error: cannot find input file: $f" >&2;}
17051
{ (exit 1); exit 1; }; }
17054
if test -f "$f"; then
17057
elif test -f "$srcdir/$f"; then
17062
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17063
echo "$as_me: error: cannot find input file: $f" >&2;}
17064
{ (exit 1); exit 1; }; }
17067
done` || { (exit 1); exit 1; }
17069
cat >>$CONFIG_STATUS <<_ACEOF
17073
cat >>$CONFIG_STATUS <<\_ACEOF
17075
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17076
s,@configure_input@,$configure_input,;t t
17077
s,@srcdir@,$ac_srcdir,;t t
17078
s,@abs_srcdir@,$ac_abs_srcdir,;t t
17079
s,@top_srcdir@,$ac_top_srcdir,;t t
17080
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17081
s,@builddir@,$ac_builddir,;t t
17082
s,@abs_builddir@,$ac_abs_builddir,;t t
17083
s,@top_builddir@,$ac_top_builddir,;t t
17084
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
17085
s,@INSTALL@,$ac_INSTALL,;t t
17086
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17088
if test x"$ac_file" != x-; then
17089
mv $tmp/out $ac_file
17097
cat >>$CONFIG_STATUS <<\_ACEOF
17100
# CONFIG_HEADER section.
17103
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17104
# NAME is the cpp macro being defined and VALUE is the value it is being given.
17106
# ac_d sets the value in "#define NAME VALUE" lines.
17107
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17108
ac_dB='[ ].*$,\1#\2'
17111
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17112
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17113
ac_uB='$,\1#\2define\3'
17117
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
17118
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17120
- | *:- | *:-:* ) # input from stdin
17122
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17123
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17124
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17125
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17126
* ) ac_file_in=$ac_file.in ;;
17129
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
17130
echo "$as_me: creating $ac_file" >&6;}
17132
# First look for the input files in the build tree, otherwise in the
17134
ac_file_inputs=`IFS=:
17135
for f in $ac_file_in; do
17137
-) echo $tmp/stdin ;;
17139
# Absolute (can't be DOS-style, as IFS=:)
17140
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17141
echo "$as_me: error: cannot find input file: $f" >&2;}
17142
{ (exit 1); exit 1; }; }
17145
if test -f "$f"; then
17148
elif test -f "$srcdir/$f"; then
17153
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
17154
echo "$as_me: error: cannot find input file: $f" >&2;}
17155
{ (exit 1); exit 1; }; }
17158
done` || { (exit 1); exit 1; }
17159
# Remove the trailing spaces.
17160
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
17164
# Transform confdefs.h into two sed scripts, `conftest.defines' and
17165
# `conftest.undefs', that substitutes the proper values into
17166
# config.h.in to produce config.h. The first handles `#define'
17167
# templates, and the second `#undef' templates.
17168
# And first: Protect against being on the right side of a sed subst in
17169
# config.status. Protect against being in an unquoted here document
17170
# in config.status.
17171
rm -f conftest.defines conftest.undefs
17172
# Using a here document instead of a string reduces the quoting nightmare.
17173
# Putting comments in sed scripts is not portable.
17175
# `end' is used to avoid that the second main sed command (meant for
17176
# 0-ary CPP macros) applies to n-ary macro definitions.
17177
# See the Autoconf documentation for `clear'.
17178
cat >confdef2sed.sed <<\_ACEOF
17183
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
17185
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17188
# If some macros were called several times there might be several times
17189
# the same #defines, which is useless. Nevertheless, we may not want to
17190
# sort them, since we want the *last* AC-DEFINE to be honored.
17191
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17192
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17193
rm -f confdef2sed.sed
17195
# This sed command replaces #undef with comments. This is necessary, for
17196
# example, in the case of _POSIX_SOURCE, which is predefined and required
17197
# on some systems where configure will not decide to define it.
17198
cat >>conftest.undefs <<\_ACEOF
17199
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
17202
# Break up conftest.defines because some shells have a limit on the size
17203
# of here documents, and old seds have small limits too (100 cmds).
17204
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
17205
echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
17206
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17207
echo ' :' >>$CONFIG_STATUS
17208
rm -f conftest.tail
17209
while grep . conftest.defines >/dev/null
17211
# Write a limited-size here document to $tmp/defines.sed.
17212
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17213
# Speed up: don't consider the non `#define' lines.
17214
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17215
# Work around the forget-to-reset-the-flag bug.
17216
echo 't clr' >>$CONFIG_STATUS
17217
echo ': clr' >>$CONFIG_STATUS
17218
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
17220
sed -f $tmp/defines.sed $tmp/in >$tmp/out
17222
mv $tmp/out $tmp/in
17224
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17225
rm -f conftest.defines
17226
mv conftest.tail conftest.defines
17228
rm -f conftest.defines
17229
echo ' fi # egrep' >>$CONFIG_STATUS
17230
echo >>$CONFIG_STATUS
17232
# Break up conftest.undefs because some shells have a limit on the size
17233
# of here documents, and old seds have small limits too (100 cmds).
17234
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17235
rm -f conftest.tail
17236
while grep . conftest.undefs >/dev/null
17238
# Write a limited-size here document to $tmp/undefs.sed.
17239
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17240
# Speed up: don't consider the non `#undef'
17241
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17242
# Work around the forget-to-reset-the-flag bug.
17243
echo 't clr' >>$CONFIG_STATUS
17244
echo ': clr' >>$CONFIG_STATUS
17245
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17247
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17249
mv $tmp/out $tmp/in
17251
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17252
rm -f conftest.undefs
17253
mv conftest.tail conftest.undefs
17255
rm -f conftest.undefs
17257
cat >>$CONFIG_STATUS <<\_ACEOF
17258
# Let's still pretend it is `configure' which instantiates (i.e., don't
17259
# use $as_me), people would be surprised to read:
17260
# /* config.h. Generated by config.status. */
17261
if test x"$ac_file" = x-; then
17262
echo "/* Generated by configure. */" >$tmp/config.h
17264
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
17266
cat $tmp/in >>$tmp/config.h
17268
if test x"$ac_file" != x-; then
17269
if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
17270
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
17271
echo "$as_me: $ac_file is unchanged" >&6;}
17273
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17274
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17275
X"$ac_file" : 'X\(//\)[^/]' \| \
17276
X"$ac_file" : 'X\(//\)$' \| \
17277
X"$ac_file" : 'X\(/\)' \| \
17278
. : '\(.\)' 2>/dev/null ||
17280
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17281
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
17282
/^X\(\/\/\)$/{ s//\1/; q; }
17283
/^X\(\/\).*/{ s//\1/; q; }
17285
{ case "$ac_dir" in
17286
[\\/]* | ?:[\\/]* ) as_incr_dir=;;
17290
for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
17291
case $as_mkdir_dir in
17292
# Skip DOS drivespec
17293
?:) as_incr_dir=$as_mkdir_dir ;;
17295
as_incr_dir=$as_incr_dir/$as_mkdir_dir
17296
test -d "$as_incr_dir" ||
17297
mkdir "$as_incr_dir" ||
17298
{ { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
17299
echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
17300
{ (exit 1); exit 1; }; }
17306
mv $tmp/config.h $ac_file
17310
rm -f $tmp/config.h
17312
# Run the commands associated with the file.
17314
src/config.h ) # update the timestamp
17315
echo timestamp >"src/stamp-h1"
17320
cat >>$CONFIG_STATUS <<\_ACEOF
17323
# CONFIG_COMMANDS section.
17325
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17326
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17327
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
17328
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17329
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17330
X"$ac_dest" : 'X\(//\)[^/]' \| \
17331
X"$ac_dest" : 'X\(//\)$' \| \
17332
X"$ac_dest" : 'X\(/\)' \| \
17333
. : '\(.\)' 2>/dev/null ||
17335
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17336
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
17337
/^X\(\/\/\)$/{ s//\1/; q; }
17338
/^X\(\/\).*/{ s//\1/; q; }
17342
if test "$ac_dir" != .; then
17343
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17344
# A "../" for each directory in $ac_dir_suffix.
17345
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17347
ac_dir_suffix= ac_top_builddir=
17351
.) # No --srcdir option. We are building in place.
17353
if test -z "$ac_top_builddir"; then
17356
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17358
[\\/]* | ?:[\\/]* ) # Absolute path.
17359
ac_srcdir=$srcdir$ac_dir_suffix;
17360
ac_top_srcdir=$srcdir ;;
17361
*) # Relative path.
17362
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17363
ac_top_srcdir=$ac_top_builddir$srcdir ;;
17365
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17367
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
17368
ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
17369
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17370
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17373
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17374
echo "$as_me: executing $ac_dest commands" >&6;}
17377
test x"$AMDEP_TRUE" != x"" ||
17378
for mf in $CONFIG_FILES; do
17380
Makefile) dirpart=.;;
17381
*/Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;;
17384
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
17385
# Extract the definition of DEP_FILES from the Makefile without
17387
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
17388
test -z "$DEPDIR" && continue
17389
# When using ansi2knr, U may be empty or an underscore; expand it
17390
U=`sed -n -e '/^U = / s///p' < "$mf"`
17391
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
17392
# We invoke sed twice because it is the simplest approach to
17393
# changing $(DEPDIR) to its actual value in the expansion.
17394
for file in `sed -n -e '
17395
/^DEP_FILES = .*\\\\$/ {
17404
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
17405
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
17406
# Make sure the directory exists.
17407
test -f "$dirpart/$file" && continue
17408
fdir=`echo "$file" | sed -e 's|/[^/]*$||'`
17409
$ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1
17410
# echo "creating $dirpart/$file"
17411
echo '# dummy' > "$dirpart/$file"
17419
cat >>$CONFIG_STATUS <<\_ACEOF
17421
{ (exit 0); exit 0; }
17423
chmod +x $CONFIG_STATUS
17424
ac_clean_files=$ac_clean_files_save
17427
# configure is writing to config.log, and then calls config.status.
17428
# config.status does its own redirection, appending to config.log.
17429
# Unfortunately, on DOS this fails, as config.log is still kept open
17430
# by configure, so config.status won't be able to write to it; its
17431
# output is simply discarded. So we exec the FD to /dev/null,
17432
# effectively closing config.log, so it can be properly (re)opened and
17433
# appended to by config.status. When coming back to configure, we
17434
# need to make the FD available again.
17435
if test "$no_create" != yes; then
17438
$SHELL $CONFIG_STATUS || ac_cs_success=false
17440
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
17441
# would make configure fail if this is the last instruction.
17442
$ac_cs_success || { (exit 1); exit 1; }
17446
if test x${sim_ac_configuration_settings+set} != xset; then
17447
sim_ac_configuration_settings="Installation Prefix:$prefix"
17449
sim_ac_configuration_settings="$sim_ac_configuration_settings|Installation Prefix:$prefix"
17452
if $sim_ac_framework; then
17453
if test x${sim_ac_configuration_settings+set} != xset; then
17454
sim_ac_configuration_settings="Framework Installation Prefix:$sim_ac_framework_prefix"
17456
sim_ac_configuration_settings="$sim_ac_configuration_settings|Framework Installation Prefix:$sim_ac_framework_prefix"
17461
sim_ac_settings=$sim_ac_configuration_settings
17462
sim_ac_num_settings=`echo "$sim_ac_settings" | tr -d -c "|" | wc -c`
17464
while test $sim_ac_num_settings -ge 0; do
17465
sim_ac_description=`echo "$sim_ac_settings" | cut -d: -f1`
17466
sim_ac_length=`echo "$sim_ac_description" | wc -c`
17467
if test $sim_ac_length -gt $sim_ac_maxlength; then
17468
sim_ac_maxlength=`expr $sim_ac_length + 0`
17470
sim_ac_settings=`echo $sim_ac_settings | cut -d"|" -f2-`
17471
sim_ac_num_settings=`expr $sim_ac_num_settings - 1`
17474
sim_ac_maxlength=`expr $sim_ac_maxlength + 3`
17475
sim_ac_padding=`echo " " |
17476
cut -c1-$sim_ac_maxlength`
17478
sim_ac_num_settings=`echo "$sim_ac_configuration_settings" | tr -d -c "|" | wc -c`
17480
echo "$PACKAGE configuration settings:"
17481
while test $sim_ac_num_settings -ge 0; do
17482
sim_ac_setting=`echo $sim_ac_configuration_settings | cut -d"|" -f1`
17483
sim_ac_description=`echo "$sim_ac_setting" | cut -d: -f1`
17484
sim_ac_status=`echo "$sim_ac_setting" | cut -d: -f2-`
17485
# hopefully not too many terminals are too dumb for this
17486
echo -e "$sim_ac_padding $sim_ac_status\r $sim_ac_description:"
17487
sim_ac_configuration_settings=`echo $sim_ac_configuration_settings | cut -d"|" -f2-`
17488
sim_ac_num_settings=`expr $sim_ac_num_settings - 1`
17491
if test x${sim_ac_configuration_warnings+set} = xset; then
17492
sim_ac_num_warnings=`echo "$sim_ac_configuration_warnings" | tr -d -c "|" | wc -c`
17494
echo "$PACKAGE configuration warnings:"
17495
while test $sim_ac_num_warnings -ge 0; do
17496
sim_ac_warning=`echo "$sim_ac_configuration_warnings" | cut -d"|" -f1`
17497
echo " * $sim_ac_warning"
17498
sim_ac_configuration_warnings=`echo $sim_ac_configuration_warnings | cut -d"|" -f2-`
17499
sim_ac_num_warnings=`expr $sim_ac_num_warnings - 1`
17505
echo "Now, run 'make install' to build and install $PACKAGE."
17508
# **************************************************************************