3
# Guess values for system-dependent variables and create Makefiles.
4
# Generated automatically using autoconf version 2.13
5
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
12
ac_default_prefix=/usr/local
13
# Any additions from configure.in:
15
--enable-shared[=PKGS] build shared libraries [default=yes]"
17
--enable-static[=PKGS] build static libraries [default=yes]"
19
--enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
21
--with-gnu-ld assume the C compiler uses GNU ld [default=no]"
23
# Find the correct PATH separator. Usually this is `:', but
24
# DJGPP uses `;' like DOS.
25
if test "X${PATH_SEPARATOR+set}" != Xset; then
26
UNAME=${UNAME-`uname 2>/dev/null`}
28
*-DOS) lt_cv_sys_path_separator=';' ;;
29
*) lt_cv_sys_path_separator=':' ;;
34
# Check that we are running under the correct shell.
35
SHELL=${CONFIG_SHELL-/bin/sh}
39
# Remove one level of quotation (which was required for Make).
40
ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
45
if test "X$1" = X--no-reexec; then
46
# Discard the --no-reexec flag, and continue.
48
elif test "X$1" = X--fallback-echo; then
49
# Avoid inline document here, it may be left over
51
elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
52
# Yippee, $echo works!
55
# Restart under the correct shell.
56
exec $SHELL "$0" --no-reexec ${1+"$@"}
59
if test "X$1" = X--fallback-echo; then
60
# used as fallback echo
68
# The HP-UX ksh and POSIX shell print the target directory to stdout
70
if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
72
if test -z "$ECHO"; then
73
if test "X${echo_test_string+set}" != Xset; then
74
# find a string as large as possible, as long as the shell can cope with it
75
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
76
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
77
if (echo_test_string="`eval $cmd`") 2>/dev/null &&
78
echo_test_string="`eval $cmd`" &&
79
(test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
86
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
87
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
88
test "X$echo_testing_string" = "X$echo_test_string"; then
91
# The Solaris, AIX, and Digital Unix default echo programs unquote
92
# backslashes. This makes it impossible to quote backslashes using
93
# echo "$something" | sed 's/\\/\\\\/g'
95
# So, first we look for a working echo in the user's PATH.
97
IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
98
for dir in $PATH /usr/ucb; do
99
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
100
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
101
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
102
test "X$echo_testing_string" = "X$echo_test_string"; then
109
if test "X$echo" = Xecho; then
110
# We didn't find a better echo, so look for alternatives.
111
if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
112
echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
113
test "X$echo_testing_string" = "X$echo_test_string"; then
114
# This shell has a builtin print -r that does the trick.
116
elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
117
test "X$CONFIG_SHELL" != X/bin/ksh; then
118
# If we have ksh, try running configure again with it.
119
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
120
export ORIGINAL_CONFIG_SHELL
121
CONFIG_SHELL=/bin/ksh
123
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
127
if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
128
echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
129
test "X$echo_testing_string" = "X$echo_test_string"; then
132
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
133
test "X$echo_testing_string" = 'X\t' &&
134
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
135
test "X$echo_testing_string" = "X$echo_test_string"; then
136
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
138
SHELL="$CONFIG_SHELL"
140
echo="$CONFIG_SHELL $0 --fallback-echo"
141
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
142
test "X$echo_testing_string" = 'X\t' &&
143
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
144
test "X$echo_testing_string" = "X$echo_test_string"; then
145
echo="$CONFIG_SHELL $0 --fallback-echo"
147
# maybe with a smaller string...
150
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
151
if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
158
if test "$prev" != 'sed 50q "$0"'; then
159
echo_test_string=`eval $prev`
160
export echo_test_string
161
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
163
# Oops. We lost completely, so just stick with echo.
172
# Copy echo and quote the copy suitably for passing to libtool from
173
# the Makefile, instead of quoting the original, which is used later.
175
if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
176
ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
181
--disable-libtool-lock avoid locking (might break parallel builds)"
183
--with-pic try to use only PIC/non-PIC objects [default=use both]"
185
--enable-state-storage[=storage type] Specify a storage types for the state collection:
186
glib_hash: Glib's hash
187
glib_tree: Glib's binary tree
188
indirect: By means of a sorted array with a sort margin
189
internal_hash: Internal Hash Storage (Default)
190
libavl_avl: libavl's AVL tree
191
libavl_redblack: libavl's Red-Black tree
192
libredblack: The libredblack tree"
194
--enable-stack-storage[=storage type] Specify a storage types for the state collection:
195
glib_hash: Glib's hash
196
glib_tree: Glib's binary tree
197
internal_hash: Internal Hash Storage (Default)
198
libavl_avl: libavl's AVL tree
199
libavl_redblack: libavl's Red-Black tree
200
libredblack: The libredblack tree"
202
--enable-states-type[=state type] Specify the states type:
203
compact [default]: Compact States
204
debug: Debug States (very slow)
205
indirect: Indirect Stack States"
207
--enable-max-num-freecells[=freecells num] Set the maximal number of Freecells"
209
--enable-max-num-stacks[=stacks num] Set the maximal number of Stacks"
211
--enable-max-num-initial-cards-per-stack[=number] Set the maximal number of Cards that can appear in a stack"
213
--enable-max-num-decks[=decks num] Set the maximal number of Decks"
215
--enable-card-debug-pres Enable Card-Debug Presentation. This is a debugging feature which should not be usually enabled"
217
# Initialize some variables set by options.
218
# The variables have the same names as the options, with
219
# dashes changed to underlines.
221
cache_file=./config.cache
230
program_transform_name=s,x,x,
238
bindir='${exec_prefix}/bin'
239
sbindir='${exec_prefix}/sbin'
240
libexecdir='${exec_prefix}/libexec'
241
datadir='${prefix}/share'
242
sysconfdir='${prefix}/etc'
243
sharedstatedir='${prefix}/com'
244
localstatedir='${prefix}/var'
245
libdir='${exec_prefix}/lib'
246
includedir='${prefix}/include'
247
oldincludedir='/usr/include'
248
infodir='${prefix}/info'
249
mandir='${prefix}/man'
251
# Initialize some other variables.
254
SHELL=${CONFIG_SHELL-/bin/sh}
255
# Maximum number of lines to put in a shell here document.
262
# If the previous option needs an argument, assign it.
263
if test -n "$ac_prev"; then
264
eval "$ac_prev=\$ac_option"
270
-*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
274
# Accept the important Cygnus configure options, so we can diagnose typos.
278
-bindir | --bindir | --bindi | --bind | --bin | --bi)
280
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
281
bindir="$ac_optarg" ;;
283
-build | --build | --buil | --bui | --bu)
285
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
286
build="$ac_optarg" ;;
288
-cache-file | --cache-file | --cache-fil | --cache-fi \
289
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
290
ac_prev=cache_file ;;
291
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
292
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
293
cache_file="$ac_optarg" ;;
295
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
297
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
299
datadir="$ac_optarg" ;;
301
-disable-* | --disable-*)
302
ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
303
# Reject names that are not valid shell variable names.
304
if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
305
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
307
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
308
eval "enable_${ac_feature}=no" ;;
310
-enable-* | --enable-*)
311
ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
312
# Reject names that are not valid shell variable names.
313
if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
314
{ echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
316
ac_feature=`echo $ac_feature| sed 's/-/_/g'`
321
eval "enable_${ac_feature}='$ac_optarg'" ;;
323
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
324
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
325
| --exec | --exe | --ex)
326
ac_prev=exec_prefix ;;
327
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
328
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
329
| --exec=* | --exe=* | --ex=*)
330
exec_prefix="$ac_optarg" ;;
332
-gas | --gas | --ga | --g)
333
# Obsolete; use --with-gas.
336
-help | --help | --hel | --he)
337
# Omit some internal or obsolete options to make the list less imposing.
338
# This message is too long to be a string in the A/UX 3.1 sh.
340
Usage: configure [options] [host]
341
Options: [defaults in brackets after descriptions]
343
--cache-file=FILE cache test results in FILE
344
--help print this message
345
--no-create do not create output files
346
--quiet, --silent do not print \`checking...' messages
347
--version print the version of autoconf that created configure
348
Directory and file names:
349
--prefix=PREFIX install architecture-independent files in PREFIX
351
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
353
--bindir=DIR user executables in DIR [EPREFIX/bin]
354
--sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
355
--libexecdir=DIR program executables in DIR [EPREFIX/libexec]
356
--datadir=DIR read-only architecture-independent data in DIR
358
--sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
359
--sharedstatedir=DIR modifiable architecture-independent data in DIR
361
--localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
362
--libdir=DIR object code libraries in DIR [EPREFIX/lib]
363
--includedir=DIR C header files in DIR [PREFIX/include]
364
--oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
365
--infodir=DIR info documentation in DIR [PREFIX/info]
366
--mandir=DIR man documentation in DIR [PREFIX/man]
367
--srcdir=DIR find the sources in DIR [configure dir or ..]
368
--program-prefix=PREFIX prepend PREFIX to installed program names
369
--program-suffix=SUFFIX append SUFFIX to installed program names
370
--program-transform-name=PROGRAM
371
run sed PROGRAM on installed program names
375
--build=BUILD configure for building on BUILD [BUILD=HOST]
376
--host=HOST configure for HOST [guessed]
377
--target=TARGET configure for TARGET [TARGET=HOST]
378
Features and packages:
379
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
380
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
381
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
382
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
383
--x-includes=DIR X include files are in DIR
384
--x-libraries=DIR X library files are in DIR
386
if test -n "$ac_help"; then
387
echo "--enable and --with options recognized:$ac_help"
391
-host | --host | --hos | --ho)
393
-host=* | --host=* | --hos=* | --ho=*)
396
-includedir | --includedir | --includedi | --included | --include \
397
| --includ | --inclu | --incl | --inc)
398
ac_prev=includedir ;;
399
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
400
| --includ=* | --inclu=* | --incl=* | --inc=*)
401
includedir="$ac_optarg" ;;
403
-infodir | --infodir | --infodi | --infod | --info | --inf)
405
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
406
infodir="$ac_optarg" ;;
408
-libdir | --libdir | --libdi | --libd)
410
-libdir=* | --libdir=* | --libdi=* | --libd=*)
411
libdir="$ac_optarg" ;;
413
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
414
| --libexe | --libex | --libe)
415
ac_prev=libexecdir ;;
416
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
417
| --libexe=* | --libex=* | --libe=*)
418
libexecdir="$ac_optarg" ;;
420
-localstatedir | --localstatedir | --localstatedi | --localstated \
421
| --localstate | --localstat | --localsta | --localst \
422
| --locals | --local | --loca | --loc | --lo)
423
ac_prev=localstatedir ;;
424
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
425
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
426
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
427
localstatedir="$ac_optarg" ;;
429
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
431
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
432
mandir="$ac_optarg" ;;
435
# Obsolete; use --without-fp.
438
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
442
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
443
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
446
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
447
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
448
| --oldin | --oldi | --old | --ol | --o)
449
ac_prev=oldincludedir ;;
450
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
451
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
452
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
453
oldincludedir="$ac_optarg" ;;
455
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
457
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
458
prefix="$ac_optarg" ;;
460
-program-prefix | --program-prefix | --program-prefi | --program-pref \
461
| --program-pre | --program-pr | --program-p)
462
ac_prev=program_prefix ;;
463
-program-prefix=* | --program-prefix=* | --program-prefi=* \
464
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
465
program_prefix="$ac_optarg" ;;
467
-program-suffix | --program-suffix | --program-suffi | --program-suff \
468
| --program-suf | --program-su | --program-s)
469
ac_prev=program_suffix ;;
470
-program-suffix=* | --program-suffix=* | --program-suffi=* \
471
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
472
program_suffix="$ac_optarg" ;;
474
-program-transform-name | --program-transform-name \
475
| --program-transform-nam | --program-transform-na \
476
| --program-transform-n | --program-transform- \
477
| --program-transform | --program-transfor \
478
| --program-transfo | --program-transf \
479
| --program-trans | --program-tran \
480
| --progr-tra | --program-tr | --program-t)
481
ac_prev=program_transform_name ;;
482
-program-transform-name=* | --program-transform-name=* \
483
| --program-transform-nam=* | --program-transform-na=* \
484
| --program-transform-n=* | --program-transform-=* \
485
| --program-transform=* | --program-transfor=* \
486
| --program-transfo=* | --program-transf=* \
487
| --program-trans=* | --program-tran=* \
488
| --progr-tra=* | --program-tr=* | --program-t=*)
489
program_transform_name="$ac_optarg" ;;
491
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
492
| -silent | --silent | --silen | --sile | --sil)
495
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
497
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
499
sbindir="$ac_optarg" ;;
501
-sharedstatedir | --sharedstatedir | --sharedstatedi \
502
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
503
| --sharedst | --shareds | --shared | --share | --shar \
505
ac_prev=sharedstatedir ;;
506
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
507
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
508
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
510
sharedstatedir="$ac_optarg" ;;
512
-site | --site | --sit)
514
-site=* | --site=* | --sit=*)
517
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
519
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
520
srcdir="$ac_optarg" ;;
522
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
523
| --syscon | --sysco | --sysc | --sys | --sy)
524
ac_prev=sysconfdir ;;
525
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
526
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
527
sysconfdir="$ac_optarg" ;;
529
-target | --target | --targe | --targ | --tar | --ta | --t)
531
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
532
target="$ac_optarg" ;;
534
-v | -verbose | --verbose | --verbos | --verbo | --verb)
537
-version | --version | --versio | --versi | --vers)
538
echo "configure generated by autoconf version 2.13"
542
ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
543
# Reject names that are not valid shell variable names.
544
if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
545
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
547
ac_package=`echo $ac_package| sed 's/-/_/g'`
552
eval "with_${ac_package}='$ac_optarg'" ;;
554
-without-* | --without-*)
555
ac_package=`echo $ac_option|sed -e 's/-*without-//'`
556
# Reject names that are not valid shell variable names.
557
if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
558
{ echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
560
ac_package=`echo $ac_package| sed 's/-/_/g'`
561
eval "with_${ac_package}=no" ;;
564
# Obsolete; use --with-x.
567
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
568
| --x-incl | --x-inc | --x-in | --x-i)
569
ac_prev=x_includes ;;
570
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
571
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
572
x_includes="$ac_optarg" ;;
574
-x-libraries | --x-libraries | --x-librarie | --x-librari \
575
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
576
ac_prev=x_libraries ;;
577
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
578
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
579
x_libraries="$ac_optarg" ;;
581
-*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
585
if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
586
echo "configure: warning: $ac_option: invalid host type" 1>&2
588
if test "x$nonopt" != xNONE; then
589
{ echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
597
if test -n "$ac_prev"; then
598
{ echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
601
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
603
# File descriptor usage:
606
# 2 errors and warnings
607
# 3 some systems may open it to /dev/tty
608
# 4 used on the Kubota Titan
609
# 6 checking for... messages and results
610
# 5 compiler messages saved in config.log
611
if test "$silent" = yes; then
619
This file contains any messages produced by compilers while
620
running configure, to aid debugging if configure makes a mistake.
623
# Strip out --no-create and --no-recursion so they do not pile up.
624
# Also quote any args containing shell metacharacters.
629
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
630
| --no-cr | --no-c) ;;
631
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
632
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
633
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
634
ac_configure_args="$ac_configure_args '$ac_arg'" ;;
635
*) ac_configure_args="$ac_configure_args $ac_arg" ;;
640
# Only set these to C if already set. These must not be set unconditionally
641
# because not all systems understand e.g. LANG=C (notably SCO).
642
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
643
# Non-C LC_CTYPE values break the ctype check.
644
if test "${LANG+set}" = set; then LANG=C; export LANG; fi
645
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
646
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
647
if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
649
# confdefs.h avoids OS command line length limits that DEFS can exceed.
650
rm -rf conftest* confdefs.h
651
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
654
# A filename unique to this package, relative to the directory that
655
# configure is in, which we can look for to find out if srcdir is correct.
656
ac_unique_file=pqueue.c
658
# Find the source files, if location was not specified.
659
if test -z "$srcdir"; then
660
ac_srcdir_defaulted=yes
661
# Try the directory containing this script, then its parent.
663
ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
664
test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
666
if test ! -r $srcdir/$ac_unique_file; then
670
ac_srcdir_defaulted=no
672
if test ! -r $srcdir/$ac_unique_file; then
673
if test "$ac_srcdir_defaulted" = yes; then
674
{ echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
676
{ echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
679
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
681
# Prefer explicitly selected file to automatically selected ones.
682
if test -z "$CONFIG_SITE"; then
683
if test "x$prefix" != xNONE; then
684
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
686
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
689
for ac_site_file in $CONFIG_SITE; do
690
if test -r "$ac_site_file"; then
691
echo "loading site script $ac_site_file"
696
if test -r "$cache_file"; then
697
echo "loading cache $cache_file"
700
echo "creating cache $cache_file"
705
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
706
ac_cpp='$CPP $CPPFLAGS'
707
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
708
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
709
cross_compiling=$ac_cv_prog_cc_cross
713
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
714
# Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
715
if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
722
ac_n= ac_c='\c' ac_t=
728
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
729
if test -f $ac_dir/install-sh; then
731
ac_install_sh="$ac_aux_dir/install-sh -c"
733
elif test -f $ac_dir/install.sh; then
735
ac_install_sh="$ac_aux_dir/install.sh -c"
739
if test -z "$ac_aux_dir"; then
740
{ echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
742
ac_config_guess=$ac_aux_dir/config.guess
743
ac_config_sub=$ac_aux_dir/config.sub
744
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
746
# Find a good install program. We prefer a C program (faster),
747
# so one script is as good as another. But avoid the broken or
748
# incompatible versions:
749
# SysV /etc/install, /usr/sbin/install
750
# SunOS /usr/etc/install
753
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
754
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
755
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
756
# ./install, which can be erroneously created by make from ./install.sh.
757
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
758
echo "configure:759: checking for a BSD compatible install" >&5
759
if test -z "$INSTALL"; then
760
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
761
echo $ac_n "(cached) $ac_c" 1>&6
763
IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
764
for ac_dir in $PATH; do
765
# Account for people who put trailing slashes in PATH elements.
767
/|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
769
# OSF1 and SCO ODT 3.0 have their own names for install.
770
# Don't use installbsd from OSF since it installs stuff as root
772
for ac_prog in ginstall scoinst install; do
773
if test -f $ac_dir/$ac_prog; then
774
if test $ac_prog = install &&
775
grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
776
# AIX install. It has an incompatible calling convention.
779
ac_cv_path_install="$ac_dir/$ac_prog -c"
790
if test "${ac_cv_path_install+set}" = set; then
791
INSTALL="$ac_cv_path_install"
793
# As a last resort, use the slow shell script. We don't cache a
794
# path for INSTALL within a source directory, because that will
795
# break other packages using the cache if that directory is
796
# removed, or if the path is relative.
797
INSTALL="$ac_install_sh"
800
echo "$ac_t""$INSTALL" 1>&6
802
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
803
# It thinks the first close brace ends the variable substitution.
804
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
806
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
808
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
810
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
811
echo "configure:812: checking whether build environment is sane" >&5
814
echo timestamp > conftestfile
815
# Do `set' in a subshell so we don't clobber the current shell's
816
# arguments. Must try -L first in case configure is actually a
817
# symlink; some systems play weird games with the mod time of symlinks
818
# (eg FreeBSD returns the mod time of the symlink's containing
821
set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
822
if test "$*" = "X"; then
824
set X `ls -t $srcdir/configure conftestfile`
826
if test "$*" != "X $srcdir/configure conftestfile" \
827
&& test "$*" != "X conftestfile $srcdir/configure"; then
829
# If neither matched, then we have a broken ls. This can happen
830
# if, for instance, CONFIG_SHELL is bash and it inherits a
831
# broken ls alias from the environment. This has actually
832
# happened. Such a system could not be considered "sane".
833
{ echo "configure: error: ls -t appears to fail. Make sure there is not a broken
834
alias in your environment" 1>&2; exit 1; }
837
test "$2" = conftestfile
843
{ echo "configure: error: newly created file is older than distributed files!
844
Check your system clock" 1>&2; exit 1; }
847
echo "$ac_t""yes" 1>&6
848
if test "$program_transform_name" = s,x,x,; then
849
program_transform_name=
851
# Double any \ or $. echo might interpret backslashes.
852
cat <<\EOF_SED > conftestsed
853
s,\\,\\\\,g; s,\$,$$,g
855
program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
858
test "$program_prefix" != NONE &&
859
program_transform_name="s,^,${program_prefix},; $program_transform_name"
860
# Use a double $ so make ignores it.
861
test "$program_suffix" != NONE &&
862
program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
864
# sed with no file args requires a program.
865
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
867
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
868
echo "configure:869: checking whether ${MAKE-make} sets \${MAKE}" >&5
869
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
870
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
871
echo $ac_n "(cached) $ac_c" 1>&6
873
cat > conftestmake <<\EOF
875
@echo 'ac_maketemp="${MAKE}"'
877
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
878
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
879
if test -n "$ac_maketemp"; then
880
eval ac_cv_prog_make_${ac_make}_set=yes
882
eval ac_cv_prog_make_${ac_make}_set=no
886
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
887
echo "$ac_t""yes" 1>&6
890
echo "$ac_t""no" 1>&6
891
SET_MAKE="MAKE=${MAKE-make}"
895
PACKAGE=freecell-solver
897
VERSION=`cat ./ver.txt`
899
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
900
{ echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
902
cat >> confdefs.h <<EOF
903
#define PACKAGE "$PACKAGE"
906
cat >> confdefs.h <<EOF
907
#define VERSION "$VERSION"
912
missing_dir=`cd $ac_aux_dir && pwd`
913
echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
914
echo "configure:915: checking for working aclocal" >&5
915
# Run test in a subshell; some versions of sh will print an error if
916
# an executable is not found, even if stderr is redirected.
917
# Redirect stdin to placate older versions of autoconf. Sigh.
918
if (aclocal --version) < /dev/null > /dev/null 2>&1; then
920
echo "$ac_t""found" 1>&6
922
ACLOCAL="$missing_dir/missing aclocal"
923
echo "$ac_t""missing" 1>&6
926
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
927
echo "configure:928: checking for working autoconf" >&5
928
# Run test in a subshell; some versions of sh will print an error if
929
# an executable is not found, even if stderr is redirected.
930
# Redirect stdin to placate older versions of autoconf. Sigh.
931
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
933
echo "$ac_t""found" 1>&6
935
AUTOCONF="$missing_dir/missing autoconf"
936
echo "$ac_t""missing" 1>&6
939
echo $ac_n "checking for working automake""... $ac_c" 1>&6
940
echo "configure:941: checking for working automake" >&5
941
# Run test in a subshell; some versions of sh will print an error if
942
# an executable is not found, even if stderr is redirected.
943
# Redirect stdin to placate older versions of autoconf. Sigh.
944
if (automake --version) < /dev/null > /dev/null 2>&1; then
946
echo "$ac_t""found" 1>&6
948
AUTOMAKE="$missing_dir/missing automake"
949
echo "$ac_t""missing" 1>&6
952
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
953
echo "configure:954: checking for working autoheader" >&5
954
# Run test in a subshell; some versions of sh will print an error if
955
# an executable is not found, even if stderr is redirected.
956
# Redirect stdin to placate older versions of autoconf. Sigh.
957
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
958
AUTOHEADER=autoheader
959
echo "$ac_t""found" 1>&6
961
AUTOHEADER="$missing_dir/missing autoheader"
962
echo "$ac_t""missing" 1>&6
965
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
966
echo "configure:967: checking for working makeinfo" >&5
967
# Run test in a subshell; some versions of sh will print an error if
968
# an executable is not found, even if stderr is redirected.
969
# Redirect stdin to placate older versions of autoconf. Sigh.
970
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
972
echo "$ac_t""found" 1>&6
974
MAKEINFO="$missing_dir/missing makeinfo"
975
echo "$ac_t""missing" 1>&6
980
echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
981
echo "configure:982: checking for Cygwin environment" >&5
982
if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
983
echo $ac_n "(cached) $ac_c" 1>&6
985
cat > conftest.$ac_ext <<EOF
986
#line 987 "configure"
987
#include "confdefs.h"
992
#define __CYGWIN__ __CYGWIN32__
997
if { (eval echo configure:998: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1001
echo "configure: failed program was:" >&5
1002
cat conftest.$ac_ext >&5
1010
echo "$ac_t""$ac_cv_cygwin" 1>&6
1012
test "$ac_cv_cygwin" = yes && CYGWIN=yes
1013
echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
1014
echo "configure:1015: checking for mingw32 environment" >&5
1015
if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
1016
echo $ac_n "(cached) $ac_c" 1>&6
1018
cat > conftest.$ac_ext <<EOF
1019
#line 1020 "configure"
1020
#include "confdefs.h"
1026
if { (eval echo configure:1027: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1030
echo "configure: failed program was:" >&5
1031
cat conftest.$ac_ext >&5
1039
echo "$ac_t""$ac_cv_mingw32" 1>&6
1041
test "$ac_cv_mingw32" = yes && MINGW32=yes
1042
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1043
echo "configure:1044: checking how to run the C preprocessor" >&5
1044
# On Suns, sometimes $CPP names a directory.
1045
if test -n "$CPP" && test -d "$CPP"; then
1048
if test -z "$CPP"; then
1049
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1050
echo $ac_n "(cached) $ac_c" 1>&6
1052
# This must be in double quotes, not single quotes, because CPP may get
1053
# substituted into the Makefile and "${CC-cc}" will confuse make.
1055
# On the NeXT, cc -E runs the code through the compiler's parser,
1056
# not just through cpp.
1057
cat > conftest.$ac_ext <<EOF
1058
#line 1059 "configure"
1059
#include "confdefs.h"
1063
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1064
{ (eval echo configure:1065: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1065
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1066
if test -z "$ac_err"; then
1070
echo "configure: failed program was:" >&5
1071
cat conftest.$ac_ext >&5
1073
CPP="${CC-cc} -E -traditional-cpp"
1074
cat > conftest.$ac_ext <<EOF
1075
#line 1076 "configure"
1076
#include "confdefs.h"
1080
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1081
{ (eval echo configure:1082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1082
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1083
if test -z "$ac_err"; then
1087
echo "configure: failed program was:" >&5
1088
cat conftest.$ac_ext >&5
1090
CPP="${CC-cc} -nologo -E"
1091
cat > conftest.$ac_ext <<EOF
1092
#line 1093 "configure"
1093
#include "confdefs.h"
1097
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1098
{ (eval echo configure:1099: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1099
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1100
if test -z "$ac_err"; then
1104
echo "configure: failed program was:" >&5
1105
cat conftest.$ac_ext >&5
1114
ac_cv_prog_CPP="$CPP"
1116
CPP="$ac_cv_prog_CPP"
1118
ac_cv_prog_CPP="$CPP"
1120
echo "$ac_t""$CPP" 1>&6
1122
# Check whether --enable-shared or --disable-shared was given.
1123
if test "${enable_shared+set}" = set; then
1124
enableval="$enable_shared"
1125
p=${PACKAGE-default}
1127
yes) enable_shared=yes ;;
1128
no) enable_shared=no ;;
1131
# Look at the argument we got. We use all the common list separators.
1132
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1133
for pkg in $enableval; do
1134
if test "X$pkg" = "X$p"; then
1145
# Check whether --enable-static or --disable-static was given.
1146
if test "${enable_static+set}" = set; then
1147
enableval="$enable_static"
1148
p=${PACKAGE-default}
1150
yes) enable_static=yes ;;
1151
no) enable_static=no ;;
1154
# Look at the argument we got. We use all the common list separators.
1155
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1156
for pkg in $enableval; do
1157
if test "X$pkg" = "X$p"; then
1168
# Check whether --enable-fast-install or --disable-fast-install was given.
1169
if test "${enable_fast_install+set}" = set; then
1170
enableval="$enable_fast_install"
1171
p=${PACKAGE-default}
1173
yes) enable_fast_install=yes ;;
1174
no) enable_fast_install=no ;;
1176
enable_fast_install=no
1177
# Look at the argument we got. We use all the common list separators.
1178
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1179
for pkg in $enableval; do
1180
if test "X$pkg" = "X$p"; then
1181
enable_fast_install=yes
1188
enable_fast_install=yes
1192
# Make sure we can run config.sub.
1193
if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1194
else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1197
echo $ac_n "checking host system type""... $ac_c" 1>&6
1198
echo "configure:1199: checking host system type" >&5
1201
case "$host_alias" in
1205
if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1206
else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1208
*) host_alias=$nonopt ;;
1212
host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1213
host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1214
host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1215
host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1216
echo "$ac_t""$host" 1>&6
1218
echo $ac_n "checking build system type""... $ac_c" 1>&6
1219
echo "configure:1220: checking build system type" >&5
1222
case "$build_alias" in
1225
NONE) build_alias=$host_alias ;;
1226
*) build_alias=$nonopt ;;
1230
build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1231
build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1232
build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1233
build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1234
echo "$ac_t""$build" 1>&6
1236
# Extract the first word of "gcc", so it can be a program name with args.
1237
set dummy gcc; ac_word=$2
1238
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1239
echo "configure:1240: checking for $ac_word" >&5
1240
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1241
echo $ac_n "(cached) $ac_c" 1>&6
1243
if test -n "$CC"; then
1244
ac_cv_prog_CC="$CC" # Let the user override the test.
1246
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1248
for ac_dir in $ac_dummy; do
1249
test -z "$ac_dir" && ac_dir=.
1250
if test -f $ac_dir/$ac_word; then
1259
if test -n "$CC"; then
1260
echo "$ac_t""$CC" 1>&6
1262
echo "$ac_t""no" 1>&6
1265
if test -z "$CC"; then
1266
# Extract the first word of "cc", so it can be a program name with args.
1267
set dummy cc; ac_word=$2
1268
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1269
echo "configure:1270: checking for $ac_word" >&5
1270
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1271
echo $ac_n "(cached) $ac_c" 1>&6
1273
if test -n "$CC"; then
1274
ac_cv_prog_CC="$CC" # Let the user override the test.
1276
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1279
for ac_dir in $ac_dummy; do
1280
test -z "$ac_dir" && ac_dir=.
1281
if test -f $ac_dir/$ac_word; then
1282
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1283
ac_prog_rejected=yes
1291
if test $ac_prog_rejected = yes; then
1292
# We found a bogon in the path, so make sure we never use it.
1293
set dummy $ac_cv_prog_CC
1295
if test $# -gt 0; then
1296
# We chose a different compiler from the bogus one.
1297
# However, it has the same basename, so the bogon will be chosen
1298
# first if we set CC to just the basename; use the full file name.
1300
set dummy "$ac_dir/$ac_word" "$@"
1308
if test -n "$CC"; then
1309
echo "$ac_t""$CC" 1>&6
1311
echo "$ac_t""no" 1>&6
1314
if test -z "$CC"; then
1315
case "`uname -s`" in
1317
# Extract the first word of "cl", so it can be a program name with args.
1318
set dummy cl; ac_word=$2
1319
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1320
echo "configure:1321: checking for $ac_word" >&5
1321
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1322
echo $ac_n "(cached) $ac_c" 1>&6
1324
if test -n "$CC"; then
1325
ac_cv_prog_CC="$CC" # Let the user override the test.
1327
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1329
for ac_dir in $ac_dummy; do
1330
test -z "$ac_dir" && ac_dir=.
1331
if test -f $ac_dir/$ac_word; then
1340
if test -n "$CC"; then
1341
echo "$ac_t""$CC" 1>&6
1343
echo "$ac_t""no" 1>&6
1348
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1351
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1352
echo "configure:1353: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1355
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1356
ac_cpp='$CPP $CPPFLAGS'
1357
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1358
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1359
cross_compiling=$ac_cv_prog_cc_cross
1361
cat > conftest.$ac_ext << EOF
1363
#line 1364 "configure"
1364
#include "confdefs.h"
1368
if { (eval echo configure:1369: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1369
ac_cv_prog_cc_works=yes
1370
# If we can't run a trivial program, we are probably using a cross compiler.
1371
if (./conftest; exit) 2>/dev/null; then
1372
ac_cv_prog_cc_cross=no
1374
ac_cv_prog_cc_cross=yes
1377
echo "configure: failed program was:" >&5
1378
cat conftest.$ac_ext >&5
1379
ac_cv_prog_cc_works=no
1383
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1384
ac_cpp='$CPP $CPPFLAGS'
1385
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1386
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1387
cross_compiling=$ac_cv_prog_cc_cross
1389
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1390
if test $ac_cv_prog_cc_works = no; then
1391
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1393
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1394
echo "configure:1395: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1395
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1396
cross_compiling=$ac_cv_prog_cc_cross
1398
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1399
echo "configure:1400: checking whether we are using GNU C" >&5
1400
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1401
echo $ac_n "(cached) $ac_c" 1>&6
1403
cat > conftest.c <<EOF
1408
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1409: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1415
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1417
if test $ac_cv_prog_gcc = yes; then
1423
ac_test_CFLAGS="${CFLAGS+set}"
1424
ac_save_CFLAGS="$CFLAGS"
1426
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1427
echo "configure:1428: checking whether ${CC-cc} accepts -g" >&5
1428
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1429
echo $ac_n "(cached) $ac_c" 1>&6
1431
echo 'void f(){}' > conftest.c
1432
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1441
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1442
if test "$ac_test_CFLAGS" = set; then
1443
CFLAGS="$ac_save_CFLAGS"
1444
elif test $ac_cv_prog_cc_g = yes; then
1445
if test "$GCC" = yes; then
1451
if test "$GCC" = yes; then
1458
# Check whether --with-gnu-ld or --without-gnu-ld was given.
1459
if test "${with_gnu_ld+set}" = set; then
1460
withval="$with_gnu_ld"
1461
test "$withval" = no || with_gnu_ld=yes
1467
if test "$GCC" = yes; then
1468
# Check if gcc -print-prog-name=ld gives a path.
1469
echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1470
echo "configure:1471: checking for ld used by GCC" >&5
1473
# gcc leaves a trailing carriage return which upsets mingw
1474
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1476
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1479
# Accept absolute paths.
1480
[\\/]* | [A-Za-z]:[\\/]*)
1481
re_direlt='/[^/][^/]*/\.\./'
1482
# Canonicalize the path of ld
1483
ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1484
while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1485
ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1487
test -z "$LD" && LD="$ac_prog"
1490
# If it fails, then pretend we aren't using GCC.
1494
# If it is relative, then search for the first ld in PATH.
1498
elif test "$with_gnu_ld" = yes; then
1499
echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1500
echo "configure:1501: checking for GNU ld" >&5
1502
echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1503
echo "configure:1504: checking for non-GNU ld" >&5
1505
if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
1506
echo $ac_n "(cached) $ac_c" 1>&6
1508
if test -z "$LD"; then
1509
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1510
for ac_dir in $PATH; do
1511
test -z "$ac_dir" && ac_dir=.
1512
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1513
lt_cv_path_LD="$ac_dir/$ac_prog"
1514
# Check to see if the program is GNU ld. I'd rather use --version,
1515
# but apparently some GNU ld's only accept -v.
1516
# Break only if it was the GNU/non-GNU ld that we prefer.
1517
if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1518
test "$with_gnu_ld" != no && break
1520
test "$with_gnu_ld" != yes && break
1526
lt_cv_path_LD="$LD" # Let the user override the test with a path.
1531
if test -n "$LD"; then
1532
echo "$ac_t""$LD" 1>&6
1534
echo "$ac_t""no" 1>&6
1536
test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1537
echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1538
echo "configure:1539: checking if the linker ($LD) is GNU ld" >&5
1539
if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
1540
echo $ac_n "(cached) $ac_c" 1>&6
1542
# I'd rather use --version here, but apparently some GNU ld's only accept -v.
1543
if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1544
lt_cv_prog_gnu_ld=yes
1546
lt_cv_prog_gnu_ld=no
1550
echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
1551
with_gnu_ld=$lt_cv_prog_gnu_ld
1554
echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1555
echo "configure:1556: checking for $LD option to reload object files" >&5
1556
if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1557
echo $ac_n "(cached) $ac_c" 1>&6
1559
lt_cv_ld_reload_flag='-r'
1562
echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1563
reload_flag=$lt_cv_ld_reload_flag
1564
test -n "$reload_flag" && reload_flag=" $reload_flag"
1566
echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1567
echo "configure:1568: checking for BSD-compatible nm" >&5
1568
if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
1569
echo $ac_n "(cached) $ac_c" 1>&6
1571
if test -n "$NM"; then
1572
# Let the user override the test.
1575
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1576
for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1577
test -z "$ac_dir" && ac_dir=.
1578
tmp_nm=$ac_dir/${ac_tool_prefix}nm
1579
if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1580
# Check to see if the nm accepts a BSD-compat flag.
1581
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
1582
# nm: unknown option "B" ignored
1583
# Tru64's nm complains that /dev/null is an invalid object file
1584
if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1585
lt_cv_path_NM="$tmp_nm -B"
1587
elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1588
lt_cv_path_NM="$tmp_nm -p"
1591
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
1592
continue # so that we can try to find one that supports BSD flags
1597
test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
1602
echo "$ac_t""$NM" 1>&6
1604
echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1605
echo "configure:1606: checking whether ln -s works" >&5
1606
if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1607
echo $ac_n "(cached) $ac_c" 1>&6
1610
if ln -s X conftestdata 2>/dev/null
1613
ac_cv_prog_LN_S="ln -s"
1618
LN_S="$ac_cv_prog_LN_S"
1619
if test "$ac_cv_prog_LN_S" = "ln -s"; then
1620
echo "$ac_t""yes" 1>&6
1622
echo "$ac_t""no" 1>&6
1625
echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1626
echo "configure:1627: checking how to recognise dependant libraries" >&5
1627
if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1628
echo $ac_n "(cached) $ac_c" 1>&6
1630
lt_cv_file_magic_cmd='$MAGIC_CMD'
1631
lt_cv_file_magic_test_file=
1632
lt_cv_deplibs_check_method='unknown'
1633
# Need to set the preceding variable on all platforms that support
1634
# interlibrary dependencies.
1635
# 'none' -- dependencies not supported.
1636
# `unknown' -- same as none, but documents that we really don't know.
1637
# 'pass_all' -- all dependencies passed with no checks.
1638
# 'test_compile' -- check by making test program.
1639
# ['file_magic [regex]'] -- check by looking for files in library path
1640
# which responds to the $file_magic_cmd with a given egrep regex.
1641
# If you have `file' or equivalent on your system and you're not sure
1642
# whether `pass_all' will *always* work, you probably want this one.
1646
lt_cv_deplibs_check_method=pass_all
1650
lt_cv_deplibs_check_method=pass_all
1654
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1655
lt_cv_file_magic_cmd='/usr/bin/file -L'
1656
lt_cv_file_magic_test_file=/shlib/libc.so
1659
cygwin* | mingw* | pw32*)
1660
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1661
lt_cv_file_magic_cmd='$OBJDUMP -f'
1664
darwin* | rhapsody*)
1665
lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
1666
lt_cv_file_magic_cmd='/usr/bin/file -L'
1668
rhapsody* | darwin1.012)
1669
lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
1672
lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
1678
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1681
# Not sure whether the presence of OpenBSD here was a mistake.
1682
# Let's accept both of them until this is cleared up.
1683
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1684
lt_cv_file_magic_cmd=/usr/bin/file
1685
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1689
lt_cv_deplibs_check_method=pass_all
1694
lt_cv_deplibs_check_method=pass_all
1698
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
1699
lt_cv_file_magic_cmd=/usr/bin/file
1700
lt_cv_file_magic_test_file=/usr/lib/libc.sl
1706
# this will be overridden with pass_all, but let us keep it just in case
1707
lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1711
*-32|*"-32 ") libmagic=32-bit;;
1712
*-n32|*"-n32 ") libmagic=N32;;
1713
*-64|*"-64 ") libmagic=64-bit;;
1714
*) libmagic=never-match;;
1716
# this will be overridden with pass_all, but let us keep it just in case
1717
lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1720
lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1721
lt_cv_deplibs_check_method=pass_all
1724
# This must be Linux ELF.
1727
alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
1728
lt_cv_deplibs_check_method=pass_all ;;
1730
# glibc up to 2.1.1 does not perform some relocations on ARM
1731
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1733
lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1737
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1738
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
1740
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
1745
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
1746
lt_cv_file_magic_cmd=/usr/bin/file
1747
lt_cv_file_magic_test_file=/usr/lib/libnls.so
1750
osf3* | osf4* | osf5*)
1751
# this will be overridden with pass_all, but let us keep it just in case
1752
lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1753
lt_cv_file_magic_test_file=/shlib/libc.so
1754
lt_cv_deplibs_check_method=pass_all
1758
lt_cv_deplibs_check_method=pass_all
1762
lt_cv_deplibs_check_method=pass_all
1763
lt_cv_file_magic_test_file=/lib/libc.so
1766
sysv5uw[78]* | sysv4*uw2*)
1767
lt_cv_deplibs_check_method=pass_all
1770
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1771
case $host_vendor in
1773
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]'
1774
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1777
lt_cv_deplibs_check_method=pass_all
1780
lt_cv_file_magic_cmd='/bin/file'
1781
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
1784
lt_cv_file_magic_cmd='/bin/file'
1785
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
1786
lt_cv_file_magic_test_file=/lib/libc.so
1794
echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1795
file_magic_cmd=$lt_cv_file_magic_cmd
1796
deplibs_check_method=$lt_cv_deplibs_check_method
1798
echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1799
echo "configure:1800: checking for object suffix" >&5
1800
if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1801
echo $ac_n "(cached) $ac_c" 1>&6
1804
echo 'int i = 1;' > conftest.$ac_ext
1805
if { (eval echo configure:1806: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1806
for ac_file in conftest.*; do
1809
*) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1813
{ echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1818
echo "$ac_t""$ac_cv_objext" 1>&6
1819
OBJEXT=$ac_cv_objext
1820
ac_objext=$ac_cv_objext
1824
echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
1825
echo "configure:1826: checking for executable suffix" >&5
1826
if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
1827
echo $ac_n "(cached) $ac_c" 1>&6
1829
if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
1833
echo 'int main () { return 0; }' > conftest.$ac_ext
1835
if { (eval echo configure:1836: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
1836
for file in conftest.*; do
1838
*.c | *.o | *.obj) ;;
1839
*) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
1843
{ echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
1846
test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
1851
test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
1852
echo "$ac_t""${ac_cv_exeext}" 1>&6
1855
if test $host != $build; then
1856
ac_tool_prefix=${host_alias}-
1864
# Check for command to grab the raw symbol name followed by C symbol from nm.
1865
echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
1866
echo "configure:1867: checking command to parse $NM output" >&5
1867
if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
1868
echo $ac_n "(cached) $ac_c" 1>&6
1871
# These are sane defaults that work on at least a few old systems.
1872
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
1874
# Character class describing NM global symbol codes.
1875
symcode='[BCDEGRST]'
1877
# Regexp to match symbols that can be accessed directly from C.
1878
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
1880
# Transform the above into a raw symbol and a C symbol.
1881
symxfrm='\1 \2\3 \3'
1883
# Transform an extracted symbol line into a proper C declaration
1884
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
1886
# Define system-specific variables.
1891
cygwin* | mingw* | pw32*)
1892
symcode='[ABCDGISTW]'
1894
hpux*) # Its linker distinguishes data from code symbols
1895
lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
1898
symcode='[BCDEGRST]'
1908
# Handle CRLF in mingw tool chain
1912
opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
1916
# If we're using GNU nm, then use its standard symbol codes.
1917
if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
1918
symcode='[ABCDGISTW]'
1921
# Try without a prefix undercore, then with it.
1922
for ac_symprfx in "" "_"; do
1924
# Write the raw and C identifiers.
1925
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
1927
# Check to see that the pipe works correctly.
1930
cat > conftest.$ac_ext <<EOF
1935
void nm_test_func(){}
1939
int main(){nm_test_var='a';nm_test_func();return(0);}
1942
if { (eval echo configure:1943: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1943
# Now try to grab the symbols.
1945
if { (eval echo configure:1946: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then
1946
# Try sorting and uniquifying the output.
1947
if sort "$nlist" | uniq > "$nlist"T; then
1948
mv -f "$nlist"T "$nlist"
1953
# Make sure that we snagged all the symbols we need.
1954
if egrep ' nm_test_var$' "$nlist" >/dev/null; then
1955
if egrep ' nm_test_func$' "$nlist" >/dev/null; then
1956
cat <<EOF > conftest.$ac_ext
1962
# Now generate the symbol file.
1963
eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
1965
cat <<EOF >> conftest.$ac_ext
1966
#if defined (__STDC__) && __STDC__
1967
# define lt_ptr_t void *
1969
# define lt_ptr_t char *
1973
/* The mapping between symbol names and symbols. */
1978
lt_preloaded_symbols[] =
1981
sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext
1982
cat <<\EOF >> conftest.$ac_ext
1990
# Now try linking the two files.
1991
mv conftest.$ac_objext conftstm.$ac_objext
1993
save_CFLAGS="$CFLAGS"
1994
LIBS="conftstm.$ac_objext"
1995
CFLAGS="$CFLAGS$no_builtin_flag"
1996
if { (eval echo configure:1997: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2000
CFLAGS="$save_CFLAGS"
2002
echo "cannot find nm_test_func in $nlist" >&5
2005
echo "cannot find nm_test_var in $nlist" >&5
2008
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
2011
echo "$progname: failed program was:" >&5
2012
cat conftest.$ac_ext >&5
2014
rm -f conftest* conftst*
2016
# Do not use the global_symbol_pipe unless it works.
2017
if test "$pipe_works" = yes; then
2020
lt_cv_sys_global_symbol_pipe=
2026
global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
2027
if test -z "$lt_cv_sys_global_symbol_pipe"; then
2028
global_symbol_to_cdecl=
2030
global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
2032
if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
2033
echo "$ac_t""failed" 1>&6
2035
echo "$ac_t""ok" 1>&6
2038
for ac_hdr in dlfcn.h
2040
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2041
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2042
echo "configure:2043: checking for $ac_hdr" >&5
2043
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2044
echo $ac_n "(cached) $ac_c" 1>&6
2046
cat > conftest.$ac_ext <<EOF
2047
#line 2048 "configure"
2048
#include "confdefs.h"
2051
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2052
{ (eval echo configure:2053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2053
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2054
if test -z "$ac_err"; then
2056
eval "ac_cv_header_$ac_safe=yes"
2059
echo "configure: failed program was:" >&5
2060
cat conftest.$ac_ext >&5
2062
eval "ac_cv_header_$ac_safe=no"
2066
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2067
echo "$ac_t""yes" 1>&6
2068
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2069
cat >> confdefs.h <<EOF
2070
#define $ac_tr_hdr 1
2074
echo "$ac_t""no" 1>&6
2082
# Only perform the check for file, if the check method requires it
2083
case $deplibs_check_method in
2085
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
2086
echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
2087
echo "configure:2088: checking for ${ac_tool_prefix}file" >&5
2088
if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2089
echo $ac_n "(cached) $ac_c" 1>&6
2093
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2096
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2099
ac_save_MAGIC_CMD="$MAGIC_CMD"
2100
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2101
ac_dummy="/usr/bin:$PATH"
2102
for ac_dir in $ac_dummy; do
2103
test -z "$ac_dir" && ac_dir=.
2104
if test -f $ac_dir/${ac_tool_prefix}file; then
2105
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
2106
if test -n "$file_magic_test_file"; then
2107
case $deplibs_check_method in
2109
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2110
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2111
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2112
egrep "$file_magic_regex" > /dev/null; then
2117
*** Warning: the command libtool uses to detect shared libraries,
2118
*** $file_magic_cmd, produces output that libtool cannot recognize.
2119
*** The result is that libtool may fail to recognize shared libraries
2120
*** as such. This will affect the creation of libtool libraries that
2121
*** depend on shared libraries, but programs linked with such libtool
2122
*** libraries will work regardless of this problem. Nevertheless, you
2123
*** may want to report the problem to your system manager and/or to
2124
*** bug-libtool@gnu.org
2134
MAGIC_CMD="$ac_save_MAGIC_CMD"
2139
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2140
if test -n "$MAGIC_CMD"; then
2141
echo "$ac_t""$MAGIC_CMD" 1>&6
2143
echo "$ac_t""no" 1>&6
2146
if test -z "$lt_cv_path_MAGIC_CMD"; then
2147
if test -n "$ac_tool_prefix"; then
2148
echo $ac_n "checking for file""... $ac_c" 1>&6
2149
echo "configure:2150: checking for file" >&5
2150
if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
2151
echo $ac_n "(cached) $ac_c" 1>&6
2155
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2158
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
2161
ac_save_MAGIC_CMD="$MAGIC_CMD"
2162
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2163
ac_dummy="/usr/bin:$PATH"
2164
for ac_dir in $ac_dummy; do
2165
test -z "$ac_dir" && ac_dir=.
2166
if test -f $ac_dir/file; then
2167
lt_cv_path_MAGIC_CMD="$ac_dir/file"
2168
if test -n "$file_magic_test_file"; then
2169
case $deplibs_check_method in
2171
file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
2172
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2173
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2174
egrep "$file_magic_regex" > /dev/null; then
2179
*** Warning: the command libtool uses to detect shared libraries,
2180
*** $file_magic_cmd, produces output that libtool cannot recognize.
2181
*** The result is that libtool may fail to recognize shared libraries
2182
*** as such. This will affect the creation of libtool libraries that
2183
*** depend on shared libraries, but programs linked with such libtool
2184
*** libraries will work regardless of this problem. Nevertheless, you
2185
*** may want to report the problem to your system manager and/or to
2186
*** bug-libtool@gnu.org
2196
MAGIC_CMD="$ac_save_MAGIC_CMD"
2201
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2202
if test -n "$MAGIC_CMD"; then
2203
echo "$ac_t""$MAGIC_CMD" 1>&6
2205
echo "$ac_t""no" 1>&6
2217
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2218
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2219
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2220
echo "configure:2221: checking for $ac_word" >&5
2221
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2222
echo $ac_n "(cached) $ac_c" 1>&6
2224
if test -n "$RANLIB"; then
2225
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2227
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2229
for ac_dir in $ac_dummy; do
2230
test -z "$ac_dir" && ac_dir=.
2231
if test -f $ac_dir/$ac_word; then
2232
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2239
RANLIB="$ac_cv_prog_RANLIB"
2240
if test -n "$RANLIB"; then
2241
echo "$ac_t""$RANLIB" 1>&6
2243
echo "$ac_t""no" 1>&6
2247
if test -z "$ac_cv_prog_RANLIB"; then
2248
if test -n "$ac_tool_prefix"; then
2249
# Extract the first word of "ranlib", so it can be a program name with args.
2250
set dummy ranlib; ac_word=$2
2251
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2252
echo "configure:2253: checking for $ac_word" >&5
2253
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2254
echo $ac_n "(cached) $ac_c" 1>&6
2256
if test -n "$RANLIB"; then
2257
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2259
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2261
for ac_dir in $ac_dummy; do
2262
test -z "$ac_dir" && ac_dir=.
2263
if test -f $ac_dir/$ac_word; then
2264
ac_cv_prog_RANLIB="ranlib"
2269
test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2272
RANLIB="$ac_cv_prog_RANLIB"
2273
if test -n "$RANLIB"; then
2274
echo "$ac_t""$RANLIB" 1>&6
2276
echo "$ac_t""no" 1>&6
2284
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2285
set dummy ${ac_tool_prefix}strip; ac_word=$2
2286
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2287
echo "configure:2288: checking for $ac_word" >&5
2288
if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2289
echo $ac_n "(cached) $ac_c" 1>&6
2291
if test -n "$STRIP"; then
2292
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2294
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2296
for ac_dir in $ac_dummy; do
2297
test -z "$ac_dir" && ac_dir=.
2298
if test -f $ac_dir/$ac_word; then
2299
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2306
STRIP="$ac_cv_prog_STRIP"
2307
if test -n "$STRIP"; then
2308
echo "$ac_t""$STRIP" 1>&6
2310
echo "$ac_t""no" 1>&6
2314
if test -z "$ac_cv_prog_STRIP"; then
2315
if test -n "$ac_tool_prefix"; then
2316
# Extract the first word of "strip", so it can be a program name with args.
2317
set dummy strip; ac_word=$2
2318
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2319
echo "configure:2320: checking for $ac_word" >&5
2320
if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2321
echo $ac_n "(cached) $ac_c" 1>&6
2323
if test -n "$STRIP"; then
2324
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2326
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2328
for ac_dir in $ac_dummy; do
2329
test -z "$ac_dir" && ac_dir=.
2330
if test -f $ac_dir/$ac_word; then
2331
ac_cv_prog_STRIP="strip"
2336
test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2339
STRIP="$ac_cv_prog_STRIP"
2340
if test -n "$STRIP"; then
2341
echo "$ac_t""$STRIP" 1>&6
2343
echo "$ac_t""no" 1>&6
2355
# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2356
if test "${enable_libtool_lock+set}" = set; then
2357
enableval="$enable_libtool_lock"
2361
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
2363
# Some flags need to be propagated to the compiler or linker for good
2367
# Find out which ABI we are using.
2368
echo '#line 2369 "configure"' > conftest.$ac_ext
2369
if { (eval echo configure:2370: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2370
case `/usr/bin/file conftest.$ac_objext` in
2386
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
2387
SAVE_CFLAGS="$CFLAGS"
2388
CFLAGS="$CFLAGS -belf"
2389
echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2390
echo "configure:2391: checking whether the C compiler needs -belf" >&5
2391
if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2392
echo $ac_n "(cached) $ac_c" 1>&6
2396
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2397
ac_cpp='$CPP $CPPFLAGS'
2398
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2399
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2400
cross_compiling=$ac_cv_prog_cc_cross
2402
cat > conftest.$ac_ext <<EOF
2403
#line 2404 "configure"
2404
#include "confdefs.h"
2410
if { (eval echo configure:2411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2412
lt_cv_cc_needs_belf=yes
2414
echo "configure: failed program was:" >&5
2415
cat conftest.$ac_ext >&5
2417
lt_cv_cc_needs_belf=no
2421
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2422
ac_cpp='$CPP $CPPFLAGS'
2423
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2424
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2425
cross_compiling=$ac_cv_prog_cc_cross
2429
echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2430
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2431
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2432
CFLAGS="$SAVE_CFLAGS"
2439
# Sed substitution that helps us do robust quoting. It backslashifies
2440
# metacharacters that are still active within double-quoted strings.
2441
Xsed='sed -e s/^X//'
2442
sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
2444
# Same as above, but do not quote variable references.
2445
double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
2447
# Sed substitution to delay expansion of an escaped shell variable in a
2448
# double_quote_subst'ed string.
2449
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2455
default_ofile=libtool
2456
can_build_shared=yes
2458
# All known linkers require a `.a' archive for static linking (except M$VC,
2459
# which needs '.lib').
2461
ltmain="$ac_aux_dir/ltmain.sh"
2462
ofile="$default_ofile"
2463
with_gnu_ld="$lt_cv_prog_gnu_ld"
2464
need_locks="$enable_libtool_lock"
2467
old_CFLAGS="$CFLAGS"
2469
# Set sane defaults for various variables
2470
test -z "$AR" && AR=ar
2471
test -z "$AR_FLAGS" && AR_FLAGS=cru
2472
test -z "$AS" && AS=as
2473
test -z "$CC" && CC=cc
2474
test -z "$DLLTOOL" && DLLTOOL=dlltool
2475
test -z "$LD" && LD=ld
2476
test -z "$LN_S" && LN_S="ln -s"
2477
test -z "$MAGIC_CMD" && MAGIC_CMD=file
2478
test -z "$NM" && NM=nm
2479
test -z "$OBJDUMP" && OBJDUMP=objdump
2480
test -z "$RANLIB" && RANLIB=:
2481
test -z "$STRIP" && STRIP=:
2482
test -z "$ac_objext" && ac_objext=o
2484
if test x"$host" != x"$build"; then
2485
ac_tool_prefix=${host_alias}-
2490
# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
2493
linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
2498
# AIX sometimes has problems with the GCC collect2 program. For some
2499
# reason, if we set the COLLECT_NAMES environment variable, the problems
2500
# vanish in a puff of smoke.
2501
if test "X${COLLECT_NAMES+set}" != Xset; then
2503
export COLLECT_NAMES
2508
# Determine commands to create old-style static archives.
2509
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
2510
old_postinstall_cmds='chmod 644 $oldlib'
2511
old_postuninstall_cmds=
2513
if test -n "$RANLIB"; then
2514
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
2515
old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
2518
# Allow CC to be a program name with arguments.
2522
echo $ac_n "checking for objdir""... $ac_c" 1>&6
2523
echo "configure:2524: checking for objdir" >&5
2524
rm -f .libs 2>/dev/null
2525
mkdir .libs 2>/dev/null
2526
if test -d .libs; then
2529
# MS-DOS does not allow filenames that begin with a dot.
2532
rmdir .libs 2>/dev/null
2533
echo "$ac_t""$objdir" 1>&6
2536
# Check whether --with-pic or --without-pic was given.
2537
if test "${with_pic+set}" = set; then
2544
test -z "$pic_mode" && pic_mode=default
2546
# We assume here that the value for lt_cv_prog_cc_pic will not be cached
2547
# in isolation, and that seeing it set (from the cache) indicates that
2548
# the associated values are set (in the cache) correctly too.
2549
echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
2550
echo "configure:2551: checking for $compiler option to produce PIC" >&5
2551
if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
2552
echo $ac_n "(cached) $ac_c" 1>&6
2555
lt_cv_prog_cc_shlib=
2557
lt_cv_prog_cc_static=
2558
lt_cv_prog_cc_no_builtin=
2559
lt_cv_prog_cc_can_build_shared=$can_build_shared
2561
if test "$GCC" = yes; then
2562
lt_cv_prog_cc_wl='-Wl,'
2563
lt_cv_prog_cc_static='-static'
2567
# Below there is a dirty hack to force normal static linking with -ldl
2568
# The problem is because libdl dynamically linked with both libc and
2569
# libC (AIX C++ library), which obviously doesn't included in libraries
2570
# list by gcc. This cause undefined symbols with -static flags.
2571
# This hack allows C programs to be linked with "-static -ldl", but
2572
# we not sure about C++ programs.
2573
lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
2576
# FIXME: we need at least 68020 code to build shared libraries, but
2577
# adding the `-m68020' flag to GCC prevents building anything better,
2579
lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
2581
beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
2582
# PIC is the default for these OSes.
2584
darwin* | rhapsody*)
2585
# PIC is the default on this platform
2586
# Common symbols not allowed in MH_DYLIB files
2587
lt_cv_prog_cc_pic='-fno-common'
2589
cygwin* | mingw* | pw32* | os2*)
2590
# This hack is so that the source file can tell whether it is being
2591
# built for inclusion in a dll (and should export symbols for example).
2592
lt_cv_prog_cc_pic='-DDLL_EXPORT'
2595
if test -d /usr/nec; then
2596
lt_cv_prog_cc_pic=-Kconform_pic
2600
lt_cv_prog_cc_pic='-fPIC'
2604
# PORTME Check for PIC flags for the system compiler.
2606
aix3* | aix4* | aix5*)
2607
# All AIX code is PIC.
2608
if test "$host_cpu" = ia64; then
2609
# AIX 5 now supports IA64 processor
2610
lt_cv_prog_cc_static='-Bstatic'
2611
lt_cv_prog_cc_wl='-Wl,'
2613
lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
2617
hpux9* | hpux10* | hpux11*)
2618
# Is there a better lt_cv_prog_cc_static that works with the bundled CC?
2619
lt_cv_prog_cc_wl='-Wl,'
2620
lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
2621
lt_cv_prog_cc_pic='+Z'
2625
lt_cv_prog_cc_wl='-Wl,'
2626
lt_cv_prog_cc_static='-non_shared'
2627
# PIC (with -KPIC) is the default.
2630
cygwin* | mingw* | pw32* | os2*)
2631
# This hack is so that the source file can tell whether it is being
2632
# built for inclusion in a dll (and should export symbols for example).
2633
lt_cv_prog_cc_pic='-DDLL_EXPORT'
2637
lt_cv_prog_cc_pic='-KPIC'
2638
lt_cv_prog_cc_static='-Bstatic'
2641
osf3* | osf4* | osf5*)
2642
# All OSF/1 code is PIC.
2643
lt_cv_prog_cc_wl='-Wl,'
2644
lt_cv_prog_cc_static='-non_shared'
2648
lt_cv_prog_cc_pic='-Kpic'
2649
lt_cv_prog_cc_static='-dn'
2650
lt_cv_prog_cc_shlib='-belf'
2654
lt_cv_prog_cc_pic='-KPIC'
2655
lt_cv_prog_cc_static='-Bstatic'
2656
lt_cv_prog_cc_wl='-Wl,'
2660
lt_cv_prog_cc_pic='-PIC'
2661
lt_cv_prog_cc_static='-Bstatic'
2662
lt_cv_prog_cc_wl='-Qoption ld '
2665
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2666
lt_cv_prog_cc_pic='-KPIC'
2667
lt_cv_prog_cc_static='-Bstatic'
2668
if test "x$host_vendor" = xsni; then
2669
lt_cv_prog_cc_wl='-LD'
2671
lt_cv_prog_cc_wl='-Wl,'
2676
lt_cv_prog_cc_pic='-pic'
2677
lt_cv_prog_cc_static='-Bstatic'
2681
if test -d /usr/nec ;then
2682
lt_cv_prog_cc_pic='-Kconform_pic'
2683
lt_cv_prog_cc_static='-Bstatic'
2688
lt_cv_prog_cc_can_build_shared=no
2695
if test -z "$lt_cv_prog_cc_pic"; then
2696
echo "$ac_t""none" 1>&6
2698
echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
2700
# Check to make sure the pic_flag actually works.
2701
echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
2702
echo "configure:2703: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
2703
if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
2704
echo $ac_n "(cached) $ac_c" 1>&6
2706
save_CFLAGS="$CFLAGS"
2707
CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
2708
cat > conftest.$ac_ext <<EOF
2709
#line 2710 "configure"
2710
#include "confdefs.h"
2716
if { (eval echo configure:2717: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2719
hpux9* | hpux10* | hpux11*)
2720
# On HP-UX, both CC and GCC only warn that PIC is supported... then
2721
# they create non-PIC objects. So, if there were any warnings, we
2722
# assume that PIC is not supported.
2723
if test -s conftest.err; then
2724
lt_cv_prog_cc_pic_works=no
2726
lt_cv_prog_cc_pic_works=yes
2730
lt_cv_prog_cc_pic_works=yes
2735
echo "configure: failed program was:" >&5
2736
cat conftest.$ac_ext >&5
2738
lt_cv_prog_cc_pic_works=no
2742
CFLAGS="$save_CFLAGS"
2747
if test "X$lt_cv_prog_cc_pic_works" = Xno; then
2749
lt_cv_prog_cc_can_build_shared=no
2751
lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
2754
echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
2757
# Check for any special shared library compilation flags.
2758
if test -n "$lt_cv_prog_cc_shlib"; then
2759
echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
2760
if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
2762
echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
2763
lt_cv_prog_cc_can_build_shared=no
2767
echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
2768
echo "configure:2769: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
2769
if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
2770
echo $ac_n "(cached) $ac_c" 1>&6
2772
lt_cv_prog_cc_static_works=no
2773
save_LDFLAGS="$LDFLAGS"
2774
LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
2775
cat > conftest.$ac_ext <<EOF
2776
#line 2777 "configure"
2777
#include "confdefs.h"
2783
if { (eval echo configure:2784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2785
lt_cv_prog_cc_static_works=yes
2787
echo "configure: failed program was:" >&5
2788
cat conftest.$ac_ext >&5
2791
LDFLAGS="$save_LDFLAGS"
2796
# Belt *and* braces to stop my trousers falling down:
2797
test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
2798
echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
2800
pic_flag="$lt_cv_prog_cc_pic"
2801
special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
2802
wl="$lt_cv_prog_cc_wl"
2803
link_static_flag="$lt_cv_prog_cc_static"
2804
no_builtin_flag="$lt_cv_prog_cc_no_builtin"
2805
can_build_shared="$lt_cv_prog_cc_can_build_shared"
2808
# Check to see if options -o and -c are simultaneously supported by compiler
2809
echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
2810
echo "configure:2811: checking if $compiler supports -c -o file.$ac_objext" >&5
2811
if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
2812
echo $ac_n "(cached) $ac_c" 1>&6
2815
$rm -r conftest 2>/dev/null
2818
echo "int some_variable = 0;" > conftest.$ac_ext
2820
# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
2821
# that will create temporary files in the current directory regardless of
2822
# the output directory. Thus, making CWD read-only will cause this test
2823
# to fail, enabling locking or at least warning the user not to do parallel
2826
save_CFLAGS="$CFLAGS"
2827
CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
2829
if { (eval echo configure:2830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
2830
# The compiler can only warn and ignore the option if not recognized
2831
# So say no if there are warnings
2832
if test -s out/conftest.err; then
2833
lt_cv_compiler_c_o=no
2835
lt_cv_compiler_c_o=yes
2838
# Append any errors to the config.log.
2839
cat out/conftest.err 1>&5
2840
lt_cv_compiler_c_o=no
2842
CFLAGS="$save_CFLAGS"
2848
$rm -r conftest 2>/dev/null
2852
compiler_c_o=$lt_cv_compiler_c_o
2853
echo "$ac_t""$compiler_c_o" 1>&6
2855
if test x"$compiler_c_o" = x"yes"; then
2856
# Check to see if we can write to a .lo
2857
echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
2858
echo "configure:2859: checking if $compiler supports -c -o file.lo" >&5
2859
if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
2860
echo $ac_n "(cached) $ac_c" 1>&6
2863
lt_cv_compiler_o_lo=no
2864
save_CFLAGS="$CFLAGS"
2865
CFLAGS="$CFLAGS -c -o conftest.lo"
2866
cat > conftest.$ac_ext <<EOF
2867
#line 2868 "configure"
2868
#include "confdefs.h"
2871
int some_variable = 0;
2874
if { (eval echo configure:2875: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2876
# The compiler can only warn and ignore the option if not recognized
2877
# So say no if there are warnings
2878
if test -s conftest.err; then
2879
lt_cv_compiler_o_lo=no
2881
lt_cv_compiler_o_lo=yes
2885
echo "configure: failed program was:" >&5
2886
cat conftest.$ac_ext >&5
2889
CFLAGS="$save_CFLAGS"
2893
compiler_o_lo=$lt_cv_compiler_o_lo
2894
echo "$ac_t""$compiler_o_lo" 1>&6
2899
# Check to see if we can do hard links to lock some files if needed
2900
hard_links="nottested"
2901
if test "$compiler_c_o" = no && test "$need_locks" != no; then
2902
# do not overwrite the value of need_locks provided by the user
2903
echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
2904
echo "configure:2905: checking if we can lock with hard links" >&5
2907
ln conftest.a conftest.b 2>/dev/null && hard_links=no
2909
ln conftest.a conftest.b 2>&5 || hard_links=no
2910
ln conftest.a conftest.b 2>/dev/null && hard_links=no
2911
echo "$ac_t""$hard_links" 1>&6
2912
if test "$hard_links" = no; then
2913
echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
2920
if test "$GCC" = yes; then
2921
# Check to see if options -fno-rtti -fno-exceptions are supported by compiler
2922
echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
2923
echo "configure:2924: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
2924
echo "int some_variable = 0;" > conftest.$ac_ext
2925
save_CFLAGS="$CFLAGS"
2926
CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
2927
compiler_rtti_exceptions=no
2928
cat > conftest.$ac_ext <<EOF
2929
#line 2930 "configure"
2930
#include "confdefs.h"
2933
int some_variable = 0;
2936
if { (eval echo configure:2937: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2938
# The compiler can only warn and ignore the option if not recognized
2939
# So say no if there are warnings
2940
if test -s conftest.err; then
2941
compiler_rtti_exceptions=no
2943
compiler_rtti_exceptions=yes
2947
echo "configure: failed program was:" >&5
2948
cat conftest.$ac_ext >&5
2951
CFLAGS="$save_CFLAGS"
2952
echo "$ac_t""$compiler_rtti_exceptions" 1>&6
2954
if test "$compiler_rtti_exceptions" = "yes"; then
2955
no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
2957
no_builtin_flag=' -fno-builtin'
2961
# See if the linker supports building shared libraries.
2962
echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
2963
echo "configure:2964: checking whether the linker ($LD) supports shared libraries" >&5
2965
allow_undefined_flag=
2967
need_lib_prefix=unknown
2968
need_version=unknown
2969
# when you set need_version to no, make sure it does not cause -set_version
2970
# flags to be left without arguments
2972
archive_expsym_cmds=
2973
old_archive_from_new_cmds=
2974
old_archive_from_expsyms_cmds=
2975
export_dynamic_flag_spec=
2976
whole_archive_flag_spec=
2977
thread_safe_flag_spec=
2978
hardcode_into_libs=no
2979
hardcode_libdir_flag_spec=
2980
hardcode_libdir_separator=
2983
hardcode_shlibpath_var=unsupported
2985
link_all_deplibs=unknown
2986
always_export_symbols=no
2987
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
2988
# include_expsyms should be a list of space-separated symbols to be *always*
2989
# included in the symbol list
2991
# exclude_expsyms can be an egrep regular expression of symbols to exclude
2992
# it will be wrapped by ` (' and `)$', so one must not match beginning or
2993
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
2994
# as well as any symbol that contains `d'.
2995
exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
2996
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
2997
# platforms (ab)use it in PIC code, but their linkers get confused if
2998
# the symbol is explicitly referenced. Since portable code cannot
2999
# rely on this symbol name, it's probably fine to never include it in
3000
# preloaded symbol tables.
3001
extract_expsyms_cmds=
3004
cygwin* | mingw* | pw32* )
3005
# FIXME: the MSVC++ port hasn't been tested in a loooong time
3006
# When not using gcc, we currently assume that we are using
3007
# Microsoft Visual C++.
3008
if test "$GCC" != yes; then
3016
if test "$with_gnu_ld" = yes; then
3017
# If archive_cmds runs LD, not CC, wlarc should be empty
3020
# See if GNU ld supports shared libraries.
3022
aix3* | aix4* | aix5*)
3023
# On AIX, the GNU linker is very broken
3024
# Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
3028
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
3029
*** to be unable to reliably create shared libraries on AIX.
3030
*** Therefore, libtool is disabling shared libraries support. If you
3031
*** really care for shared libraries, you may want to modify your PATH
3032
*** so that a non-GNU linker is found, and then restart.
3038
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)'
3039
hardcode_libdir_flag_spec='-L$libdir'
3040
hardcode_minus_L=yes
3042
# Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
3043
# that the semantics of dynamic libraries on AmigaOS, at least up
3044
# to version 4, is to share data among multiple programs linked
3045
# with the same dynamic library. Since this doesn't match the
3046
# behavior of shared libraries on other platforms, we can use
3052
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3053
allow_undefined_flag=unsupported
3054
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
3055
# support --undefined. This deserves some investigation. FIXME
3056
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3062
cygwin* | mingw* | pw32*)
3063
# hardcode_libdir_flag_spec is actually meaningless, as there is
3064
# no search path for DLLs.
3065
hardcode_libdir_flag_spec='-L$libdir'
3066
allow_undefined_flag=unsupported
3067
always_export_symbols=yes
3069
extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
3070
sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
3071
test -f $output_objdir/impgen.exe || (cd $output_objdir && \
3072
if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
3073
else $CC -o impgen impgen.c ; fi)~
3074
$output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
3076
old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
3078
# cygwin and mingw dlls have different entry points and sets of symbols
3080
# FIXME: what about values for MSVC?
3081
dll_entry=__cygwin_dll_entry@12
3082
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
3086
dll_entry=_DllMainCRTStartup@12
3087
dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
3091
# mingw and cygwin differ, and it's simplest to just exclude the union
3092
# of the two symbol sets.
3093
dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
3095
# recent cygwin and mingw systems supply a stub DllMain which the user
3096
# can override, but on older systems we have to supply one (in ltdll.c)
3097
if test "x$lt_cv_need_dllmain" = "xyes"; then
3098
ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
3099
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~
3100
test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
3106
# Extract the symbol export list from an `--export-all' def file,
3107
# then regenerate the def file from the symbol export list, so that
3108
# the compiled dll only exports the symbol export list.
3109
# Be careful not to strip the DATA tag left be newer dlltools.
3110
export_symbols_cmds="$ltdll_cmds"'
3111
$DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
3112
sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
3114
# If the export-symbols file already is a .def file (1st line
3115
# is EXPORTS), use it as is.
3116
# If DATA tags from a recent dlltool are present, honour them!
3117
archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
3118
cp $export_symbols $output_objdir/$soname-def;
3120
echo EXPORTS > $output_objdir/$soname-def;
3122
cat $export_symbols | while read symbol; do
3125
2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
3126
*) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
3128
_lt_hint=`expr 1 + \$_lt_hint`;
3132
$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~
3133
$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~
3134
$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~
3135
$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~
3136
$CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
3140
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3141
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
3144
archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3145
archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3150
if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
3154
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
3155
*** create shared libraries on Solaris systems. Therefore, libtool
3156
*** is disabling shared libraries support. We urge you to upgrade GNU
3157
*** binutils to release 2.9.1 or newer. Another option is to modify
3158
*** your PATH or compiler configuration so that the native linker is
3159
*** used, and then restart.
3162
elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3163
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3164
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3171
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3174
hardcode_shlibpath_var=no
3178
if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
3179
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3180
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
3187
if test "$ld_shlibs" = yes; then
3188
runpath_var=LD_RUN_PATH
3189
hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
3190
export_dynamic_flag_spec='${wl}--export-dynamic'
3192
cygwin* | mingw* | pw32*)
3193
# dlltool doesn't understand --whole-archive et. al.
3194
whole_archive_flag_spec=
3197
# ancient GNU ld didn't support --whole-archive et. al.
3198
if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
3199
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3201
whole_archive_flag_spec=
3207
# PORTME fill in a description of your system's linker (not GNU ld)
3210
allow_undefined_flag=unsupported
3211
always_export_symbols=yes
3212
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'
3213
# Note: this linker hardcodes the directories in LIBPATH if there
3214
# are no directories specified by -L.
3215
hardcode_minus_L=yes
3216
if test "$GCC" = yes && test -z "$link_static_flag"; then
3217
# Neither direct hardcoding nor static linking is supported with a
3219
hardcode_direct=unsupported
3224
# When large executables or shared objects are built, AIX ld can
3225
# have problems creating the table of contents. If linking a library
3226
# or program results in "error TOC overflow" add -mminimal-toc to
3227
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
3228
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
3231
hardcode_libdir_separator=':'
3232
if test "$GCC" = yes; then
3233
collect2name=`${CC} -print-prog-name=collect2`
3234
if test -f "$collect2name" && \
3235
strings "$collect2name" | grep resolve_lib_name >/dev/null
3237
# We have reworked collect2
3240
# We have old collect2
3241
hardcode_direct=unsupported
3242
# It fails to find uninstalled libraries when the uninstalled
3243
# path is not listed in the libpath. Setting hardcode_minus_L
3244
# to unsupported forces relinking
3245
hardcode_minus_L=yes
3246
hardcode_libdir_flag_spec='-L$libdir'
3247
hardcode_libdir_separator=
3249
shared_flag='-shared'
3251
if test "$host_cpu" = ia64; then
3254
shared_flag='${wl}-bM:SRE'
3259
if test "$host_cpu" = ia64; then
3260
# On IA64, the linker does run time linking by default, so we don't
3261
# have to do anything special.
3262
aix_use_runtimelinking=no
3263
exp_sym_flag='-Bexport'
3266
# Test if we are trying to use run time linking, or normal AIX style linking.
3267
# If -brtl is somewhere in LDFLAGS, we need to do run time linking.
3268
aix_use_runtimelinking=no
3269
for ld_flag in $LDFLAGS; do
3270
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
3271
aix_use_runtimelinking=yes
3275
exp_sym_flag='-bexport'
3276
no_entry_flag='-bnoentry'
3278
# It seems that -bexpall can do strange things, so it is better to
3279
# generate a list of symbols to export.
3280
always_export_symbols=yes
3281
if test "$aix_use_runtimelinking" = yes; then
3282
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
3283
allow_undefined_flag=' -Wl,-G'
3284
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"
3286
if test "$host_cpu" = ia64; then
3287
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
3288
allow_undefined_flag="-znodefs"
3289
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"
3291
hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
3292
# Warning - without using the other run time loading flags, -berok will
3293
# link without error, but may produce a broken library.
3294
allow_undefined_flag='${wl}-berok'
3295
# This is a bit strange, but is similar to how AIX traditionally builds
3296
# it's shared libraries.
3297
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'
3303
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)'
3304
hardcode_libdir_flag_spec='-L$libdir'
3305
hardcode_minus_L=yes
3306
# see comment about different semantics on the GNU ld section
3310
cygwin* | mingw* | pw32*)
3311
# When not using gcc, we currently assume that we are using
3312
# Microsoft Visual C++.
3313
# hardcode_libdir_flag_spec is actually meaningless, as there is
3314
# no search path for DLLs.
3315
hardcode_libdir_flag_spec=' '
3316
allow_undefined_flag=unsupported
3317
# Tell ltmain to make .lib files, not .a files.
3319
# FIXME: Setting linknames here is a bad hack.
3320
archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
3321
# The linker will automatically build a .lib file if we build a DLL.
3322
old_archive_from_new_cmds='true'
3323
# FIXME: Should let the user specify the lib program.
3324
old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
3325
fix_srcfile_path='`cygpath -w "$srcfile"`'
3328
darwin* | rhapsody*)
3329
allow_undefined_flag='-undefined suppress'
3330
# FIXME: Relying on posixy $() will cause problems for
3331
# cross-compilation, but unfortunately the echo tests do not
3332
# yet detect zsh echo's removal of \ escapes.
3333
archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
3334
# We need to add '_' to the symbols in $export_symbols first
3335
#archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
3337
hardcode_shlibpath_var=no
3338
whole_archive_flag_spec='-all_load $convenience'
3345
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
3346
# support. Future versions do this automatically, but an explicit c++rt0.o
3347
# does not break anything, and helps significantly (at the cost of a little
3350
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
3351
hardcode_libdir_flag_spec='-R$libdir'
3353
hardcode_shlibpath_var=no
3356
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
3358
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3360
hardcode_minus_L=yes
3361
hardcode_shlibpath_var=no
3364
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
3366
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
3367
hardcode_libdir_flag_spec='-R$libdir'
3369
hardcode_shlibpath_var=no
3372
hpux9* | hpux10* | hpux11*)
3374
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' ;;
3375
*) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
3377
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
3378
hardcode_libdir_separator=:
3380
hardcode_minus_L=yes # Not in the search PATH, but as the default
3381
# location of the library.
3382
export_dynamic_flag_spec='${wl}-E'
3386
if test "$GCC" = yes; then
3387
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'
3389
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'
3391
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3392
hardcode_libdir_separator=:
3393
link_all_deplibs=yes
3397
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3398
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
3400
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
3402
hardcode_libdir_flag_spec='-R$libdir'
3404
hardcode_shlibpath_var=no
3408
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
3410
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3411
hardcode_libdir_separator=:
3412
hardcode_shlibpath_var=no
3416
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
3417
hardcode_libdir_flag_spec='-R$libdir'
3419
hardcode_shlibpath_var=no
3423
hardcode_libdir_flag_spec='-L$libdir'
3424
hardcode_minus_L=yes
3425
allow_undefined_flag=unsupported
3426
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'
3427
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
3431
if test "$GCC" = yes; then
3432
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3433
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'
3435
allow_undefined_flag=' -expect_unresolved \*'
3436
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'
3438
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3439
hardcode_libdir_separator=:
3442
osf4* | osf5*) # as osf3* with the addition of -msym flag
3443
if test "$GCC" = yes; then
3444
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
3445
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'
3446
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
3448
allow_undefined_flag=' -expect_unresolved \*'
3449
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'
3450
archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
3451
$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'
3453
#Both c and cxx compiler support -rpath directly
3454
hardcode_libdir_flag_spec='-rpath $libdir'
3456
hardcode_libdir_separator=:
3460
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3461
hardcode_shlibpath_var=no
3462
runpath_var=LD_RUN_PATH
3463
hardcode_runpath_var=yes
3467
no_undefined_flag=' -z defs'
3468
# $CC -shared without GNU ld will not create a library from C++
3469
# object files and a static libstdc++, better avoid it by now
3470
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3471
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3472
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3473
hardcode_libdir_flag_spec='-R$libdir'
3474
hardcode_shlibpath_var=no
3476
solaris2.[0-5] | solaris2.[0-5].*) ;;
3477
*) # Supported since Solaris 2.6 (maybe 2.5.1?)
3478
whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
3480
link_all_deplibs=yes
3484
if test "x$host_vendor" = xsequent; then
3485
# Use $CC to link under sequent, because it throws in some extra .o
3486
# files that make .init and .fini sections work.
3487
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
3489
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
3491
hardcode_libdir_flag_spec='-L$libdir'
3493
hardcode_minus_L=yes
3494
hardcode_shlibpath_var=no
3498
if test "x$host_vendor" = xsno; then
3499
archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
3500
hardcode_direct=yes # is this really true???
3502
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3503
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
3505
runpath_var='LD_RUN_PATH'
3506
hardcode_shlibpath_var=no
3510
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3511
hardcode_shlibpath_var=no
3512
export_dynamic_flag_spec='-Bexport'
3516
no_undefined_flag=' -z text'
3517
# $CC -shared without GNU ld will not create a library from C++
3518
# object files and a static libstdc++, better avoid it by now
3519
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
3520
archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3521
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
3522
hardcode_libdir_flag_spec=
3523
hardcode_shlibpath_var=no
3524
runpath_var='LD_RUN_PATH'
3528
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3529
hardcode_libdir_flag_spec='-L$libdir'
3530
hardcode_shlibpath_var=no
3534
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3535
hardcode_libdir_flag_spec='-L$libdir'
3536
hardcode_shlibpath_var=no
3540
if test -d /usr/nec; then
3541
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
3542
hardcode_shlibpath_var=no
3543
runpath_var=LD_RUN_PATH
3544
hardcode_runpath_var=yes
3550
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
3553
hardcode_shlibpath_var=no
3554
hardcode_runpath_var=yes
3555
runpath_var=LD_RUN_PATH
3558
sysv5uw7* | unixware7*)
3559
no_undefined_flag='${wl}-z ${wl}text'
3560
if test "$GCC" = yes; then
3561
archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3563
archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
3565
runpath_var='LD_RUN_PATH'
3566
hardcode_shlibpath_var=no
3574
echo "$ac_t""$ld_shlibs" 1>&6
3575
test "$ld_shlibs" = no && can_build_shared=no
3577
# Check hardcoding attributes.
3578
echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
3579
echo "configure:3580: checking how to hardcode library paths into programs" >&5
3581
if test -n "$hardcode_libdir_flag_spec" || \
3582
test -n "$runpath_var"; then
3584
# We can hardcode non-existant directories.
3585
if test "$hardcode_direct" != no &&
3586
# If the only mechanism to avoid hardcoding is shlibpath_var, we
3587
# have to relink, otherwise we might link with an installed library
3588
# when we should be linking with a yet-to-be-installed one
3589
## test "$hardcode_shlibpath_var" != no &&
3590
test "$hardcode_minus_L" != no; then
3591
# Linking always hardcodes the temporary library directory.
3592
hardcode_action=relink
3594
# We can link without hardcoding, and we can hardcode nonexisting dirs.
3595
hardcode_action=immediate
3598
# We cannot hardcode anything, or else we can only hardcode existing
3600
hardcode_action=unsupported
3602
echo "$ac_t""$hardcode_action" 1>&6
3606
echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
3607
echo "configure:3608: checking whether stripping libraries is possible" >&5
3608
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
3609
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
3610
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
3611
echo "$ac_t""yes" 1>&6
3613
echo "$ac_t""no" 1>&6
3616
reload_cmds='$LD$reload_flag -o $output$reload_objs'
3617
test -z "$deplibs_check_method" && deplibs_check_method=unknown
3619
# PORTME Fill in your ld.so characteristics
3620
echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
3621
echo "configure:3622: checking dynamic linker characteristics" >&5
3623
libname_spec='lib$name'
3630
shlibpath_overrides_runpath=unknown
3632
dynamic_linker="$host_os ld.so"
3633
sys_lib_dlsearch_path_spec="/lib /usr/lib"
3634
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
3639
library_names_spec='${libname}${release}.so$versuffix $libname.a'
3640
shlibpath_var=LIBPATH
3642
# AIX has no versioning support, so we append a major version to the name.
3643
soname_spec='${libname}${release}.so$major'
3648
if test "$host_cpu" = ia64; then
3649
# AIX 5 supports IA64
3650
library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
3651
shlibpath_var=LD_LIBRARY_PATH
3653
# With GCC up to 2.95.x, collect2 would create an import file
3654
# for dependence libraries. The import file would start with
3655
# the line `#! .'. This would cause the generated library to
3656
# depend on `.', always an invalid library. This was fixed in
3657
# development snapshots of GCC prior to 3.0.
3659
aix4 | aix4.[01] | aix4.[01].*)
3660
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
3662
echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
3669
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
3670
# soname into executable. Probably we can add versioning support to
3671
# collect2, so additional links can be useful in future.
3672
if test "$aix_use_runtimelinking" = yes; then
3673
# If using run time linking (on AIX 4.2 or later) use lib<name>.so instead of
3674
# lib<name>.a to let people know that these are not typical AIX shared libraries.
3675
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3677
# We preserve .a as extension for shared libraries through AIX4.2
3678
# and later when we are not doing run time linking.
3679
library_names_spec='${libname}${release}.a $libname.a'
3680
soname_spec='${libname}${release}.so$major'
3682
shlibpath_var=LIBPATH
3683
deplibs_check_method=pass_all
3688
library_names_spec='$libname.ixlibrary $libname.a'
3689
# Create ${libname}_ixlibrary.a entries in /sys/libs.
3690
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'
3694
library_names_spec='${libname}.so'
3695
dynamic_linker="$host_os ld.so"
3696
shlibpath_var=LIBRARY_PATH
3702
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3703
soname_spec='${libname}${release}.so$major'
3704
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
3705
shlibpath_var=LD_LIBRARY_PATH
3706
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
3707
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
3708
export_dynamic_flag_spec=-rdynamic
3709
# the default ld.so.conf also contains /usr/contrib/lib and
3710
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
3711
# libtool to hard-code these into programs
3714
cygwin* | mingw* | pw32*)
3715
version_type=windows
3718
case $GCC,$host_os in
3720
library_names_spec='$libname.dll.a'
3721
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
3722
postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
3723
dldir=$destdir/`dirname \$dlpath`~
3724
test -d \$dldir || mkdir -p \$dldir~
3725
$install_prog .libs/$dlname \$dldir/$dlname'
3726
postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
3727
dlpath=$dir/\$dldll~
3731
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
3732
sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
3735
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
3738
library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
3741
dynamic_linker='Win32 ld.exe'
3742
# FIXME: first we should search . and the directory the executable is in
3746
darwin* | rhapsody*)
3747
dynamic_linker="$host_os dyld"
3751
# FIXME: Relying on posixy $() will cause problems for
3752
# cross-compilation, but unfortunately the echo tests do not
3753
# yet detect zsh echo's removal of \ escapes.
3754
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)'
3755
soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
3756
shlibpath_overrides_runpath=yes
3757
shlibpath_var=DYLD_LIBRARY_PATH
3765
objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
3766
version_type=freebsd-$objformat
3767
case $version_type in
3769
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
3774
library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
3778
shlibpath_var=LD_LIBRARY_PATH
3781
shlibpath_overrides_runpath=yes
3784
shlibpath_overrides_runpath=no
3785
hardcode_into_libs=yes
3794
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
3795
soname_spec='${libname}${release}.so$major'
3796
shlibpath_var=LD_LIBRARY_PATH
3797
hardcode_into_libs=yes
3800
hpux9* | hpux10* | hpux11*)
3801
# Give a soname corresponding to the major version so that dld.sl refuses to
3802
# link against other versions.
3803
dynamic_linker="$host_os dld.sl"
3807
shlibpath_var=SHLIB_PATH
3808
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
3809
library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
3810
soname_spec='${libname}${release}.sl$major'
3811
# HP-UX runs *really* slowly unless shared libraries are mode 555.
3812
postinstall_cmds='chmod 555 $lib'
3819
soname_spec='${libname}${release}.so$major'
3820
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
3826
case $LD in # libtool.m4 will add one of these switches to LD
3827
*-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
3828
*-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
3829
*-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
3830
*) libsuff= shlibsuff= libmagic=never-match;;
3834
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
3835
shlibpath_overrides_runpath=no
3836
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
3837
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
3840
# No shared lib support for Linux oldld, aout, or coff.
3841
linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
3845
# This must be Linux ELF.
3850
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3851
soname_spec='${libname}${release}.so$major'
3852
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
3853
shlibpath_var=LD_LIBRARY_PATH
3854
shlibpath_overrides_runpath=no
3855
# This implies no fast_install, which is unacceptable.
3856
# Some rework will be needed to allow for fast_install
3857
# before this can be enabled.
3858
hardcode_into_libs=yes
3860
# We used to test for /lib/ld.so.1 and disable shared libraries on
3861
# powerpc, because MkLinux only supported shared libraries with the
3862
# GNU dynamic linker. Since this was broken with cross compilers,
3863
# most powerpc-linux boxes support dynamic linking these days and
3864
# people can always --disable-shared, the test was removed, and we
3865
# assume the GNU/Linux dynamic linker is in use.
3866
dynamic_linker='GNU/Linux ld.so'
3873
if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3874
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
3875
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3876
dynamic_linker='NetBSD (a.out) ld.so'
3878
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
3879
soname_spec='${libname}${release}.so$major'
3880
dynamic_linker='NetBSD ld.elf_so'
3882
shlibpath_var=LD_LIBRARY_PATH
3883
shlibpath_overrides_runpath=yes
3884
hardcode_into_libs=yes
3889
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3890
shlibpath_var=LD_LIBRARY_PATH
3891
shlibpath_overrides_runpath=yes
3896
if test "$with_gnu_ld" = yes; then
3900
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
3901
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
3902
shlibpath_var=LD_LIBRARY_PATH
3906
libname_spec='$name'
3908
library_names_spec='$libname.dll $libname.a'
3909
dynamic_linker='OS/2 ld.exe'
3910
shlibpath_var=LIBPATH
3913
osf3* | osf4* | osf5*)
3916
soname_spec='${libname}${release}.so'
3917
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
3918
shlibpath_var=LD_LIBRARY_PATH
3919
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
3920
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
3925
soname_spec='${libname}${release}.so$major'
3926
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3927
shlibpath_var=LD_LIBRARY_PATH
3934
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3935
soname_spec='${libname}${release}.so$major'
3936
shlibpath_var=LD_LIBRARY_PATH
3937
shlibpath_overrides_runpath=yes
3938
hardcode_into_libs=yes
3939
# ldd complains unless libraries are executable
3940
postinstall_cmds='chmod +x $lib'
3945
library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
3946
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3947
shlibpath_var=LD_LIBRARY_PATH
3948
shlibpath_overrides_runpath=yes
3949
if test "$with_gnu_ld" = yes; then
3955
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3957
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3958
soname_spec='${libname}${release}.so$major'
3959
shlibpath_var=LD_LIBRARY_PATH
3960
case $host_vendor in
3962
shlibpath_overrides_runpath=no
3967
shlibpath_overrides_runpath=no
3968
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3975
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3976
soname_spec='${libname}${release}.so$major'
3977
shlibpath_var=LD_LIBRARY_PATH
3984
library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
3985
soname_spec='${libname}${release}.so$major'
3986
shlibpath_var=LD_LIBRARY_PATH
3990
if test -d /usr/nec ;then
3992
library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
3993
soname_spec='$libname.so.$major'
3994
shlibpath_var=LD_LIBRARY_PATH
4002
echo "$ac_t""$dynamic_linker" 1>&6
4003
test "$dynamic_linker" = no && can_build_shared=no
4005
# Report the final consequences.
4006
echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
4007
echo "configure:4008: checking if libtool supports shared libraries" >&5
4008
echo "$ac_t""$can_build_shared" 1>&6
4010
if test "$hardcode_action" = relink; then
4011
# Fast installation is not supported
4012
enable_fast_install=no
4013
elif test "$shlibpath_overrides_runpath" = yes ||
4014
test "$enable_shared" = no; then
4015
# Fast installation is not necessary
4016
enable_fast_install=needless
4019
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
4020
if test "$GCC" = yes; then
4021
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
4024
if test "x$enable_dlopen" != xyes; then
4025
enable_dlopen=unknown
4026
enable_dlopen_self=unknown
4027
enable_dlopen_self_static=unknown
4034
lt_cv_dlopen="load_add_on"
4036
lt_cv_dlopen_self=yes
4039
cygwin* | mingw* | pw32*)
4040
lt_cv_dlopen="LoadLibrary"
4045
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
4046
echo "configure:4047: checking for dlopen in -ldl" >&5
4047
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
4048
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4049
echo $ac_n "(cached) $ac_c" 1>&6
4051
ac_save_LIBS="$LIBS"
4053
cat > conftest.$ac_ext <<EOF
4054
#line 4055 "configure"
4055
#include "confdefs.h"
4056
/* Override any gcc2 internal prototype to avoid an error. */
4057
/* We use char because int might match the return type of a gcc2
4058
builtin and then its argument prototype would still apply. */
4065
if { (eval echo configure:4066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4067
eval "ac_cv_lib_$ac_lib_var=yes"
4069
echo "configure: failed program was:" >&5
4070
cat conftest.$ac_ext >&5
4072
eval "ac_cv_lib_$ac_lib_var=no"
4075
LIBS="$ac_save_LIBS"
4078
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4079
echo "$ac_t""yes" 1>&6
4080
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
4082
echo "$ac_t""no" 1>&6
4083
echo $ac_n "checking for dlopen""... $ac_c" 1>&6
4084
echo "configure:4085: checking for dlopen" >&5
4085
if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
4086
echo $ac_n "(cached) $ac_c" 1>&6
4088
cat > conftest.$ac_ext <<EOF
4089
#line 4090 "configure"
4090
#include "confdefs.h"
4091
/* System header to define __stub macros and hopefully few prototypes,
4092
which can conflict with char dlopen(); below. */
4094
/* Override any gcc2 internal prototype to avoid an error. */
4095
/* We use char because int might match the return type of a gcc2
4096
builtin and then its argument prototype would still apply. */
4101
/* The GNU C library defines this for functions which it implements
4102
to always fail with ENOSYS. Some functions are actually named
4103
something starting with __ and the normal name is an alias. */
4104
#if defined (__stub_dlopen) || defined (__stub___dlopen)
4112
if { (eval echo configure:4113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4114
eval "ac_cv_func_dlopen=yes"
4116
echo "configure: failed program was:" >&5
4117
cat conftest.$ac_ext >&5
4119
eval "ac_cv_func_dlopen=no"
4124
if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
4125
echo "$ac_t""yes" 1>&6
4126
lt_cv_dlopen="dlopen"
4128
echo "$ac_t""no" 1>&6
4129
echo $ac_n "checking for shl_load""... $ac_c" 1>&6
4130
echo "configure:4131: checking for shl_load" >&5
4131
if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
4132
echo $ac_n "(cached) $ac_c" 1>&6
4134
cat > conftest.$ac_ext <<EOF
4135
#line 4136 "configure"
4136
#include "confdefs.h"
4137
/* System header to define __stub macros and hopefully few prototypes,
4138
which can conflict with char shl_load(); below. */
4140
/* Override any gcc2 internal prototype to avoid an error. */
4141
/* We use char because int might match the return type of a gcc2
4142
builtin and then its argument prototype would still apply. */
4147
/* The GNU C library defines this for functions which it implements
4148
to always fail with ENOSYS. Some functions are actually named
4149
something starting with __ and the normal name is an alias. */
4150
#if defined (__stub_shl_load) || defined (__stub___shl_load)
4158
if { (eval echo configure:4159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4160
eval "ac_cv_func_shl_load=yes"
4162
echo "configure: failed program was:" >&5
4163
cat conftest.$ac_ext >&5
4165
eval "ac_cv_func_shl_load=no"
4170
if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
4171
echo "$ac_t""yes" 1>&6
4172
lt_cv_dlopen="shl_load"
4174
echo "$ac_t""no" 1>&6
4175
echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
4176
echo "configure:4177: checking for dlopen in -lsvld" >&5
4177
ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
4178
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4179
echo $ac_n "(cached) $ac_c" 1>&6
4181
ac_save_LIBS="$LIBS"
4183
cat > conftest.$ac_ext <<EOF
4184
#line 4185 "configure"
4185
#include "confdefs.h"
4186
/* Override any gcc2 internal prototype to avoid an error. */
4187
/* We use char because int might match the return type of a gcc2
4188
builtin and then its argument prototype would still apply. */
4195
if { (eval echo configure:4196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4197
eval "ac_cv_lib_$ac_lib_var=yes"
4199
echo "configure: failed program was:" >&5
4200
cat conftest.$ac_ext >&5
4202
eval "ac_cv_lib_$ac_lib_var=no"
4205
LIBS="$ac_save_LIBS"
4208
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4209
echo "$ac_t""yes" 1>&6
4210
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
4212
echo "$ac_t""no" 1>&6
4213
echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
4214
echo "configure:4215: checking for shl_load in -ldld" >&5
4215
ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
4216
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4217
echo $ac_n "(cached) $ac_c" 1>&6
4219
ac_save_LIBS="$LIBS"
4221
cat > conftest.$ac_ext <<EOF
4222
#line 4223 "configure"
4223
#include "confdefs.h"
4224
/* Override any gcc2 internal prototype to avoid an error. */
4225
/* We use char because int might match the return type of a gcc2
4226
builtin and then its argument prototype would still apply. */
4233
if { (eval echo configure:4234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4235
eval "ac_cv_lib_$ac_lib_var=yes"
4237
echo "configure: failed program was:" >&5
4238
cat conftest.$ac_ext >&5
4240
eval "ac_cv_lib_$ac_lib_var=no"
4243
LIBS="$ac_save_LIBS"
4246
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4247
echo "$ac_t""yes" 1>&6
4248
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
4250
echo "$ac_t""no" 1>&6
4268
if test "x$lt_cv_dlopen" != xno; then
4274
case $lt_cv_dlopen in
4276
save_CPPFLAGS="$CPPFLAGS"
4277
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
4279
save_LDFLAGS="$LDFLAGS"
4280
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
4283
LIBS="$lt_cv_dlopen_libs $LIBS"
4285
echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
4286
echo "configure:4287: checking whether a program can dlopen itself" >&5
4287
if eval "test \"`echo '$''{'lt_cv_dlopen_self'+set}'`\" = set"; then
4288
echo $ac_n "(cached) $ac_c" 1>&6
4290
if test "$cross_compiling" = yes; then :
4291
lt_cv_dlopen_self=cross
4293
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4294
lt_status=$lt_dlunknown
4295
cat > conftest.$ac_ext <<EOF
4296
#line 4297 "configure"
4297
#include "confdefs.h"
4306
# define LT_DLGLOBAL RTLD_GLOBAL
4309
# define LT_DLGLOBAL DL_GLOBAL
4311
# define LT_DLGLOBAL 0
4315
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4316
find out it does not work in some platform. */
4317
#ifndef LT_DLLAZY_OR_NOW
4319
# define LT_DLLAZY_OR_NOW RTLD_LAZY
4322
# define LT_DLLAZY_OR_NOW DL_LAZY
4325
# define LT_DLLAZY_OR_NOW RTLD_NOW
4328
# define LT_DLLAZY_OR_NOW DL_NOW
4330
# define LT_DLLAZY_OR_NOW 0
4338
extern "C" void exit (int);
4341
void fnord() { int i=42;}
4344
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4345
int status = $lt_dlunknown;
4349
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
4350
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4351
/* dlclose (self); */
4357
if { (eval echo configure:4358: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4358
(./conftest; exit; ) 2>/dev/null
4361
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
4362
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
4363
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
4366
# compilation failed
4367
lt_cv_dlopen_self=no
4375
echo "$ac_t""$lt_cv_dlopen_self" 1>&6
4377
if test "x$lt_cv_dlopen_self" = xyes; then
4378
LDFLAGS="$LDFLAGS $link_static_flag"
4379
echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
4380
echo "configure:4381: checking whether a statically linked program can dlopen itself" >&5
4381
if eval "test \"`echo '$''{'lt_cv_dlopen_self_static'+set}'`\" = set"; then
4382
echo $ac_n "(cached) $ac_c" 1>&6
4384
if test "$cross_compiling" = yes; then :
4385
lt_cv_dlopen_self_static=cross
4387
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
4388
lt_status=$lt_dlunknown
4389
cat > conftest.$ac_ext <<EOF
4390
#line 4391 "configure"
4391
#include "confdefs.h"
4400
# define LT_DLGLOBAL RTLD_GLOBAL
4403
# define LT_DLGLOBAL DL_GLOBAL
4405
# define LT_DLGLOBAL 0
4409
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
4410
find out it does not work in some platform. */
4411
#ifndef LT_DLLAZY_OR_NOW
4413
# define LT_DLLAZY_OR_NOW RTLD_LAZY
4416
# define LT_DLLAZY_OR_NOW DL_LAZY
4419
# define LT_DLLAZY_OR_NOW RTLD_NOW
4422
# define LT_DLLAZY_OR_NOW DL_NOW
4424
# define LT_DLLAZY_OR_NOW 0
4432
extern "C" void exit (int);
4435
void fnord() { int i=42;}
4438
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
4439
int status = $lt_dlunknown;
4443
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
4444
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
4445
/* dlclose (self); */
4451
if { (eval echo configure:4452: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} 2>/dev/null; then
4452
(./conftest; exit; ) 2>/dev/null
4455
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
4456
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
4457
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
4460
# compilation failed
4461
lt_cv_dlopen_self_static=no
4469
echo "$ac_t""$lt_cv_dlopen_self_static" 1>&6
4472
CPPFLAGS="$save_CPPFLAGS"
4473
LDFLAGS="$save_LDFLAGS"
4478
case $lt_cv_dlopen_self in
4479
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
4480
*) enable_dlopen_self=unknown ;;
4483
case $lt_cv_dlopen_self_static in
4484
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
4485
*) enable_dlopen_self_static=unknown ;;
4490
if test "$enable_shared" = yes && test "$GCC" = yes; then
4491
case $archive_cmds in
4493
# FIXME: we may have to deal with multi-command sequences.
4496
# Test whether the compiler implicitly links with -lc since on some
4497
# systems, -lgcc has to come before -lc. If gcc already passes -lc
4498
# to ld, don't add -lc before -lgcc.
4499
echo $ac_n "checking whether -lc should be explicitly linked in""... $ac_c" 1>&6
4500
echo "configure:4501: checking whether -lc should be explicitly linked in" >&5
4501
if eval "test \"`echo '$''{'lt_cv_archive_cmds_need_lc'+set}'`\" = set"; then
4502
echo $ac_n "(cached) $ac_c" 1>&6
4505
echo 'static int dummy;' > conftest.$ac_ext
4507
if { (eval echo configure:4508: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4510
libobjs=conftest.$ac_objext
4512
wl=$lt_cv_prog_cc_wl
4518
save_allow_undefined_flag=$allow_undefined_flag
4519
allow_undefined_flag=
4520
if { (eval echo configure:4521: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\") 1>&5; (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5; }
4522
lt_cv_archive_cmds_need_lc=no
4524
lt_cv_archive_cmds_need_lc=yes
4526
allow_undefined_flag=$save_allow_undefined_flag
4528
cat conftest.err 1>&5
4532
echo "$ac_t""$lt_cv_archive_cmds_need_lc" 1>&6
4536
need_lc=${lt_cv_archive_cmds_need_lc-yes}
4538
# The second clause should only fire when bootstrapping the
4539
# libtool distribution, otherwise you forgot to ship ltmain.sh
4540
# with your package, and you will get complaints that there are
4541
# no rules to generate ltmain.sh.
4542
if test -f "$ltmain"; then
4545
# If there is no Makefile yet, we rely on a make rule to execute
4546
# `config.status --recheck' to rerun these tests and create the
4547
# libtool script then.
4548
test -f Makefile && make "$ltmain"
4551
if test -f "$ltmain"; then
4552
trap "$rm \"${ofile}T\"; exit 1" 1 2 15
4555
echo creating $ofile
4557
# Now quote all the things that may contain metacharacters while being
4558
# careful not to overquote the AC_SUBSTed values. We take copies of the
4559
# variables and quote the copies for generation of the libtool script.
4560
for var in echo old_CC old_CFLAGS \
4561
AR AR_FLAGS CC LD LN_S NM SHELL \
4562
reload_flag reload_cmds wl \
4563
pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
4564
thread_safe_flag_spec whole_archive_flag_spec libname_spec \
4565
library_names_spec soname_spec \
4566
RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
4567
old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
4568
postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
4569
old_striplib striplib file_magic_cmd export_symbols_cmds \
4570
deplibs_check_method allow_undefined_flag no_undefined_flag \
4571
finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
4572
hardcode_libdir_flag_spec hardcode_libdir_separator \
4573
sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4574
compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
4577
reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
4578
old_postinstall_cmds | old_postuninstall_cmds | \
4579
export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
4580
extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
4581
postinstall_cmds | postuninstall_cmds | \
4582
finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4583
# Double-quote double-evaled strings.
4584
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4587
eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4592
cat <<__EOF__ > "${ofile}T"
4595
# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4596
# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4597
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
4599
# Copyright (C) 1996-2000 Free Software Foundation, Inc.
4600
# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4602
# This program is free software; you can redistribute it and/or modify
4603
# it under the terms of the GNU General Public License as published by
4604
# the Free Software Foundation; either version 2 of the License, or
4605
# (at your option) any later version.
4607
# This program is distributed in the hope that it will be useful, but
4608
# WITHOUT ANY WARRANTY; without even the implied warranty of
4609
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4610
# General Public License for more details.
4612
# You should have received a copy of the GNU General Public License
4613
# along with this program; if not, write to the Free Software
4614
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
4616
# As a special exception to the GNU General Public License, if you
4617
# distribute this file as part of a program that contains a
4618
# configuration script generated by Autoconf, you may include it under
4619
# the same distribution terms that you use for the rest of that program.
4621
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
4622
Xsed="sed -e s/^X//"
4624
# The HP-UX ksh and POSIX shell print the target directory to stdout
4626
if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
4628
# ### BEGIN LIBTOOL CONFIG
4630
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4632
# Shell to use when invoking shell scripts.
4635
# Whether or not to build shared libraries.
4636
build_libtool_libs=$enable_shared
4638
# Whether or not to add -lc for building shared libraries.
4639
build_libtool_need_lc=$need_lc
4641
# Whether or not to build static libraries.
4642
build_old_libs=$enable_static
4644
# Whether or not to optimize for fast installation.
4645
fast_install=$enable_fast_install
4648
host_alias=$host_alias
4651
# An echo program that does not interpret backslashes.
4656
AR_FLAGS=$lt_AR_FLAGS
4658
# The default C compiler.
4661
# Is the compiler the GNU C compiler?
4664
# The linker used to build libraries.
4667
# Whether we need hard or soft links.
4670
# A BSD-compatible nm program.
4673
# A symbol stripping program
4676
# Used to examine libraries when file_magic_cmd begins "file"
4677
MAGIC_CMD=$MAGIC_CMD
4679
# Used on cygwin: DLL creation program.
4682
# Used on cygwin: object dumper.
4685
# Used on cygwin: assembler.
4688
# The name of the directory that contains temporary libtool files.
4691
# How to create reloadable object files.
4692
reload_flag=$lt_reload_flag
4693
reload_cmds=$lt_reload_cmds
4695
# How to pass a linker flag through the compiler.
4698
# Object file suffix (normally "o").
4701
# Old archive suffix (normally "a").
4704
# Executable file suffix (normally "").
4707
# Additional compiler flags for building library objects.
4708
pic_flag=$lt_pic_flag
4711
# Does compiler simultaneously support -c and -o options?
4712
compiler_c_o=$lt_compiler_c_o
4714
# Can we write directly to a .lo ?
4715
compiler_o_lo=$lt_compiler_o_lo
4717
# Must we lock files when doing compilation ?
4718
need_locks=$lt_need_locks
4720
# Do we need the lib prefix for modules?
4721
need_lib_prefix=$need_lib_prefix
4723
# Do we need a version for libraries?
4724
need_version=$need_version
4726
# Whether dlopen is supported.
4727
dlopen_support=$enable_dlopen
4729
# Whether dlopen of programs is supported.
4730
dlopen_self=$enable_dlopen_self
4732
# Whether dlopen of statically linked programs is supported.
4733
dlopen_self_static=$enable_dlopen_self_static
4735
# Compiler flag to prevent dynamic linking.
4736
link_static_flag=$lt_link_static_flag
4738
# Compiler flag to turn off builtin functions.
4739
no_builtin_flag=$lt_no_builtin_flag
4741
# Compiler flag to allow reflexive dlopens.
4742
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
4744
# Compiler flag to generate shared objects directly from archives.
4745
whole_archive_flag_spec=$lt_whole_archive_flag_spec
4747
# Compiler flag to generate thread-safe objects.
4748
thread_safe_flag_spec=$lt_thread_safe_flag_spec
4750
# Library versioning type.
4751
version_type=$version_type
4753
# Format of library name prefix.
4754
libname_spec=$lt_libname_spec
4756
# List of archive names. First name is the real one, the rest are links.
4757
# The last name is the one that the linker finds with -lNAME.
4758
library_names_spec=$lt_library_names_spec
4760
# The coded name of the library, if different from the real name.
4761
soname_spec=$lt_soname_spec
4763
# Commands used to build and install an old-style archive.
4765
old_archive_cmds=$lt_old_archive_cmds
4766
old_postinstall_cmds=$lt_old_postinstall_cmds
4767
old_postuninstall_cmds=$lt_old_postuninstall_cmds
4769
# Create an old-style archive from a shared archive.
4770
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
4772
# Create a temporary old-style archive to link instead of a shared archive.
4773
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
4775
# Commands used to build and install a shared archive.
4776
archive_cmds=$lt_archive_cmds
4777
archive_expsym_cmds=$lt_archive_expsym_cmds
4778
postinstall_cmds=$lt_postinstall_cmds
4779
postuninstall_cmds=$lt_postuninstall_cmds
4781
# Commands to strip libraries.
4782
old_striplib=$lt_old_striplib
4783
striplib=$lt_striplib
4785
# Method to check whether dependent libraries are shared objects.
4786
deplibs_check_method=$lt_deplibs_check_method
4788
# Command to use when deplibs_check_method == file_magic.
4789
file_magic_cmd=$lt_file_magic_cmd
4791
# Flag that allows shared libraries with undefined symbols to be built.
4792
allow_undefined_flag=$lt_allow_undefined_flag
4794
# Flag that forces no undefined symbols.
4795
no_undefined_flag=$lt_no_undefined_flag
4797
# Commands used to finish a libtool library installation in a directory.
4798
finish_cmds=$lt_finish_cmds
4800
# Same as above, but a single script fragment to be evaled but not shown.
4801
finish_eval=$lt_finish_eval
4803
# Take the output of nm and produce a listing of raw symbols and C names.
4804
global_symbol_pipe=$lt_global_symbol_pipe
4806
# Transform the output of nm in a proper C declaration
4807
global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
4809
# This is the shared library runtime path variable.
4810
runpath_var=$runpath_var
4812
# This is the shared library path variable.
4813
shlibpath_var=$shlibpath_var
4815
# Is shlibpath searched before the hard-coded library search path?
4816
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4818
# How to hardcode a shared library path into an executable.
4819
hardcode_action=$hardcode_action
4821
# Whether we should hardcode library paths into libraries.
4822
hardcode_into_libs=$hardcode_into_libs
4824
# Flag to hardcode \$libdir into a binary during linking.
4825
# This must work even if \$libdir does not exist.
4826
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
4828
# Whether we need a single -rpath flag with a separated argument.
4829
hardcode_libdir_separator=$lt_hardcode_libdir_separator
4831
# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
4833
hardcode_direct=$hardcode_direct
4835
# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
4837
hardcode_minus_L=$hardcode_minus_L
4839
# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
4840
# the resulting binary.
4841
hardcode_shlibpath_var=$hardcode_shlibpath_var
4843
# Variables whose values should be saved in libtool wrapper scripts and
4844
# restored at relink time.
4845
variables_saved_for_relink="$variables_saved_for_relink"
4847
# Whether libtool must link a program against all its dependency libraries.
4848
link_all_deplibs=$link_all_deplibs
4850
# Compile-time system search path for libraries
4851
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4853
# Run-time system search path for libraries
4854
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4856
# Fix the shell variable \$srcfile for the compiler.
4857
fix_srcfile_path="$fix_srcfile_path"
4859
# Set to yes if exported symbols are required.
4860
always_export_symbols=$always_export_symbols
4862
# The commands to list exported symbols.
4863
export_symbols_cmds=$lt_export_symbols_cmds
4865
# The commands to extract the exported symbol list from a shared archive.
4866
extract_expsyms_cmds=$lt_extract_expsyms_cmds
4868
# Symbols that should not be listed in the preloaded symbols.
4869
exclude_expsyms=$lt_exclude_expsyms
4871
# Symbols that must always be exported.
4872
include_expsyms=$lt_include_expsyms
4874
# ### END LIBTOOL CONFIG
4880
cat <<\EOF >> "${ofile}T"
4882
# AIX sometimes has problems with the GCC collect2 program. For some
4883
# reason, if we set the COLLECT_NAMES environment variable, the problems
4884
# vanish in a puff of smoke.
4885
if test "X${COLLECT_NAMES+set}" != Xset; then
4887
export COLLECT_NAMES
4894
cygwin* | mingw* | pw32* | os2*)
4895
cat <<'EOF' >> "${ofile}T"
4896
# This is a source program that is used to create dlls on Windows
4897
# Don't remove nor modify the starting and closing comments
4898
# /* ltdll.c starts here */
4899
# #define WIN32_LEAN_AND_MEAN
4900
# #include <windows.h>
4901
# #undef WIN32_LEAN_AND_MEAN
4902
# #include <stdio.h>
4904
# #ifndef __CYGWIN__
4905
# # ifdef __CYGWIN32__
4906
# # define __CYGWIN__ __CYGWIN32__
4910
# #ifdef __cplusplus
4913
# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
4914
# #ifdef __cplusplus
4919
# #include <cygwin/cygwin_dll.h>
4920
# DECLARE_CYGWIN_DLL( DllMain );
4922
# HINSTANCE __hDllInstance_base;
4925
# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
4927
# __hDllInstance_base = hInst;
4930
# /* ltdll.c ends here */
4931
# This is a source program that is used to create import libraries
4932
# on Windows for dlls which lack them. Don't remove nor modify the
4933
# starting and closing comments
4934
# /* impgen.c starts here */
4935
# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
4937
# This file is part of GNU libtool.
4939
# This program is free software; you can redistribute it and/or modify
4940
# it under the terms of the GNU General Public License as published by
4941
# the Free Software Foundation; either version 2 of the License, or
4942
# (at your option) any later version.
4944
# This program is distributed in the hope that it will be useful,
4945
# but WITHOUT ANY WARRANTY; without even the implied warranty of
4946
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
4947
# GNU General Public License for more details.
4949
# You should have received a copy of the GNU General Public License
4950
# along with this program; if not, write to the Free Software
4951
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
4954
# #include <stdio.h> /* for printf() */
4955
# #include <unistd.h> /* for open(), lseek(), read() */
4956
# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
4957
# #include <string.h> /* for strdup() */
4959
# /* O_BINARY isn't required (or even defined sometimes) under Unix */
4961
# #define O_BINARY 0
4964
# static unsigned int
4965
# pe_get16 (fd, offset)
4969
# unsigned char b[2];
4970
# lseek (fd, offset, SEEK_SET);
4972
# return b[0] + (b[1]<<8);
4975
# static unsigned int
4976
# pe_get32 (fd, offset)
4980
# unsigned char b[4];
4981
# lseek (fd, offset, SEEK_SET);
4983
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
4986
# static unsigned int
4990
# unsigned char *b = ptr;
4991
# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
5000
# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
5001
# unsigned long export_rva, export_size, nsections, secptr, expptr;
5002
# unsigned long name_rvas, nexp;
5003
# unsigned char *expdata, *erva;
5004
# char *filename, *dll_name;
5006
# filename = argv[1];
5008
# dll = open(filename, O_RDONLY|O_BINARY);
5012
# dll_name = filename;
5014
# for (i=0; filename[i]; i++)
5015
# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
5016
# dll_name = filename + i +1;
5018
# pe_header_offset = pe_get32 (dll, 0x3c);
5019
# opthdr_ofs = pe_header_offset + 4 + 20;
5020
# num_entries = pe_get32 (dll, opthdr_ofs + 92);
5022
# if (num_entries < 1) /* no exports */
5025
# export_rva = pe_get32 (dll, opthdr_ofs + 96);
5026
# export_size = pe_get32 (dll, opthdr_ofs + 100);
5027
# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
5028
# secptr = (pe_header_offset + 4 + 20 +
5029
# pe_get16 (dll, pe_header_offset + 4 + 16));
5032
# for (i = 0; i < nsections; i++)
5035
# unsigned long secptr1 = secptr + 40 * i;
5036
# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
5037
# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
5038
# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
5039
# lseek(dll, secptr1, SEEK_SET);
5040
# read(dll, sname, 8);
5041
# if (vaddr <= export_rva && vaddr+vsize > export_rva)
5043
# expptr = fptr + (export_rva - vaddr);
5044
# if (export_rva + export_size > vaddr + vsize)
5045
# export_size = vsize - (export_rva - vaddr);
5050
# expdata = (unsigned char*)malloc(export_size);
5051
# lseek (dll, expptr, SEEK_SET);
5052
# read (dll, expdata, export_size);
5053
# erva = expdata - export_rva;
5055
# nexp = pe_as32 (expdata+24);
5056
# name_rvas = pe_as32 (expdata+32);
5058
# printf ("EXPORTS\n");
5059
# for (i = 0; i<nexp; i++)
5061
# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
5062
# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
5067
# /* impgen.c ends here */
5073
# We use sed instead of cat because bash on DJGPP gets confused if
5074
# if finds mixed CR/LF and LF-only lines. Since sed operates in
5075
# text mode, it properly converts lines to CR/LF. This bash problem
5076
# is reportedly fixed, but why not run on old versions too?
5077
sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
5079
mv -f "${ofile}T" "$ofile" || \
5080
(rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
5088
# This can be used to rebuild libtool when needed
5089
LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
5091
# Always use our own libtool.
5092
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
5094
# Prevent multiple expansion
5102
# Extract the first word of "gcc", so it can be a program name with args.
5103
set dummy gcc; ac_word=$2
5104
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5105
echo "configure:5106: checking for $ac_word" >&5
5106
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5107
echo $ac_n "(cached) $ac_c" 1>&6
5109
if test -n "$CC"; then
5110
ac_cv_prog_CC="$CC" # Let the user override the test.
5112
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5114
for ac_dir in $ac_dummy; do
5115
test -z "$ac_dir" && ac_dir=.
5116
if test -f $ac_dir/$ac_word; then
5125
if test -n "$CC"; then
5126
echo "$ac_t""$CC" 1>&6
5128
echo "$ac_t""no" 1>&6
5131
if test -z "$CC"; then
5132
# Extract the first word of "cc", so it can be a program name with args.
5133
set dummy cc; ac_word=$2
5134
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5135
echo "configure:5136: checking for $ac_word" >&5
5136
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5137
echo $ac_n "(cached) $ac_c" 1>&6
5139
if test -n "$CC"; then
5140
ac_cv_prog_CC="$CC" # Let the user override the test.
5142
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5145
for ac_dir in $ac_dummy; do
5146
test -z "$ac_dir" && ac_dir=.
5147
if test -f $ac_dir/$ac_word; then
5148
if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
5149
ac_prog_rejected=yes
5157
if test $ac_prog_rejected = yes; then
5158
# We found a bogon in the path, so make sure we never use it.
5159
set dummy $ac_cv_prog_CC
5161
if test $# -gt 0; then
5162
# We chose a different compiler from the bogus one.
5163
# However, it has the same basename, so the bogon will be chosen
5164
# first if we set CC to just the basename; use the full file name.
5166
set dummy "$ac_dir/$ac_word" "$@"
5174
if test -n "$CC"; then
5175
echo "$ac_t""$CC" 1>&6
5177
echo "$ac_t""no" 1>&6
5180
if test -z "$CC"; then
5181
case "`uname -s`" in
5183
# Extract the first word of "cl", so it can be a program name with args.
5184
set dummy cl; ac_word=$2
5185
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5186
echo "configure:5187: checking for $ac_word" >&5
5187
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
5188
echo $ac_n "(cached) $ac_c" 1>&6
5190
if test -n "$CC"; then
5191
ac_cv_prog_CC="$CC" # Let the user override the test.
5193
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5195
for ac_dir in $ac_dummy; do
5196
test -z "$ac_dir" && ac_dir=.
5197
if test -f $ac_dir/$ac_word; then
5206
if test -n "$CC"; then
5207
echo "$ac_t""$CC" 1>&6
5209
echo "$ac_t""no" 1>&6
5214
test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
5217
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
5218
echo "configure:5219: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
5221
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5222
ac_cpp='$CPP $CPPFLAGS'
5223
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5224
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5225
cross_compiling=$ac_cv_prog_cc_cross
5227
cat > conftest.$ac_ext << EOF
5229
#line 5230 "configure"
5230
#include "confdefs.h"
5234
if { (eval echo configure:5235: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5235
ac_cv_prog_cc_works=yes
5236
# If we can't run a trivial program, we are probably using a cross compiler.
5237
if (./conftest; exit) 2>/dev/null; then
5238
ac_cv_prog_cc_cross=no
5240
ac_cv_prog_cc_cross=yes
5243
echo "configure: failed program was:" >&5
5244
cat conftest.$ac_ext >&5
5245
ac_cv_prog_cc_works=no
5249
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
5250
ac_cpp='$CPP $CPPFLAGS'
5251
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
5252
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
5253
cross_compiling=$ac_cv_prog_cc_cross
5255
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
5256
if test $ac_cv_prog_cc_works = no; then
5257
{ echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
5259
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
5260
echo "configure:5261: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
5261
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
5262
cross_compiling=$ac_cv_prog_cc_cross
5264
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
5265
echo "configure:5266: checking whether we are using GNU C" >&5
5266
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
5267
echo $ac_n "(cached) $ac_c" 1>&6
5269
cat > conftest.c <<EOF
5274
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:5275: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
5281
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
5283
if test $ac_cv_prog_gcc = yes; then
5289
ac_test_CFLAGS="${CFLAGS+set}"
5290
ac_save_CFLAGS="$CFLAGS"
5292
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
5293
echo "configure:5294: checking whether ${CC-cc} accepts -g" >&5
5294
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
5295
echo $ac_n "(cached) $ac_c" 1>&6
5297
echo 'void f(){}' > conftest.c
5298
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
5307
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
5308
if test "$ac_test_CFLAGS" = set; then
5309
CFLAGS="$ac_save_CFLAGS"
5310
elif test $ac_cv_prog_cc_g = yes; then
5311
if test "$GCC" = yes; then
5317
if test "$GCC" = yes; then
5324
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
5325
echo "configure:5326: checking whether ${MAKE-make} sets \${MAKE}" >&5
5326
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
5327
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
5328
echo $ac_n "(cached) $ac_c" 1>&6
5330
cat > conftestmake <<\EOF
5332
@echo 'ac_maketemp="${MAKE}"'
5334
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5335
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
5336
if test -n "$ac_maketemp"; then
5337
eval ac_cv_prog_make_${ac_make}_set=yes
5339
eval ac_cv_prog_make_${ac_make}_set=no
5343
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
5344
echo "$ac_t""yes" 1>&6
5347
echo "$ac_t""no" 1>&6
5348
SET_MAKE="MAKE=${MAKE-make}"
5351
# Extract the first word of "ranlib", so it can be a program name with args.
5352
set dummy ranlib; ac_word=$2
5353
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
5354
echo "configure:5355: checking for $ac_word" >&5
5355
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
5356
echo $ac_n "(cached) $ac_c" 1>&6
5358
if test -n "$RANLIB"; then
5359
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5361
IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
5363
for ac_dir in $ac_dummy; do
5364
test -z "$ac_dir" && ac_dir=.
5365
if test -f $ac_dir/$ac_word; then
5366
ac_cv_prog_RANLIB="ranlib"
5371
test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
5374
RANLIB="$ac_cv_prog_RANLIB"
5375
if test -n "$RANLIB"; then
5376
echo "$ac_t""$RANLIB" 1>&6
5378
echo "$ac_t""no" 1>&6
5382
echo $ac_n "checking for pow in -lm""... $ac_c" 1>&6
5383
echo "configure:5384: checking for pow in -lm" >&5
5384
ac_lib_var=`echo m'_'pow | sed 'y%./+-%__p_%'`
5385
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5386
echo $ac_n "(cached) $ac_c" 1>&6
5388
ac_save_LIBS="$LIBS"
5390
cat > conftest.$ac_ext <<EOF
5391
#line 5392 "configure"
5392
#include "confdefs.h"
5393
/* Override any gcc2 internal prototype to avoid an error. */
5394
/* We use char because int might match the return type of a gcc2
5395
builtin and then its argument prototype would still apply. */
5402
if { (eval echo configure:5403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5404
eval "ac_cv_lib_$ac_lib_var=yes"
5406
echo "configure: failed program was:" >&5
5407
cat conftest.$ac_ext >&5
5409
eval "ac_cv_lib_$ac_lib_var=no"
5412
LIBS="$ac_save_LIBS"
5415
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5416
echo "$ac_t""yes" 1>&6
5417
ac_tr_lib=HAVE_LIB`echo m | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5418
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5419
cat >> confdefs.h <<EOF
5420
#define $ac_tr_lib 1
5426
echo "$ac_t""no" 1>&6
5430
echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
5431
echo "configure:5432: checking for ANSI C header files" >&5
5432
if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
5433
echo $ac_n "(cached) $ac_c" 1>&6
5435
cat > conftest.$ac_ext <<EOF
5436
#line 5437 "configure"
5437
#include "confdefs.h"
5443
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5444
{ (eval echo configure:5445: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5445
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5446
if test -z "$ac_err"; then
5448
ac_cv_header_stdc=yes
5451
echo "configure: failed program was:" >&5
5452
cat conftest.$ac_ext >&5
5454
ac_cv_header_stdc=no
5458
if test $ac_cv_header_stdc = yes; then
5459
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5460
cat > conftest.$ac_ext <<EOF
5461
#line 5462 "configure"
5462
#include "confdefs.h"
5465
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5466
egrep "memchr" >/dev/null 2>&1; then
5470
ac_cv_header_stdc=no
5476
if test $ac_cv_header_stdc = yes; then
5477
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5478
cat > conftest.$ac_ext <<EOF
5479
#line 5480 "configure"
5480
#include "confdefs.h"
5483
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5484
egrep "free" >/dev/null 2>&1; then
5488
ac_cv_header_stdc=no
5494
if test $ac_cv_header_stdc = yes; then
5495
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5496
if test "$cross_compiling" = yes; then
5499
cat > conftest.$ac_ext <<EOF
5500
#line 5501 "configure"
5501
#include "confdefs.h"
5503
#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5504
#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5505
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5506
int main () { int i; for (i = 0; i < 256; i++)
5507
if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
5511
if { (eval echo configure:5512: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
5515
echo "configure: failed program was:" >&5
5516
cat conftest.$ac_ext >&5
5518
ac_cv_header_stdc=no
5526
echo "$ac_t""$ac_cv_header_stdc" 1>&6
5527
if test $ac_cv_header_stdc = yes; then
5528
cat >> confdefs.h <<\EOF
5529
#define STDC_HEADERS 1
5534
for ac_hdr in limits.h
5536
ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
5537
echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
5538
echo "configure:5539: checking for $ac_hdr" >&5
5539
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5540
echo $ac_n "(cached) $ac_c" 1>&6
5542
cat > conftest.$ac_ext <<EOF
5543
#line 5544 "configure"
5544
#include "confdefs.h"
5547
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5548
{ (eval echo configure:5549: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5549
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5550
if test -z "$ac_err"; then
5552
eval "ac_cv_header_$ac_safe=yes"
5555
echo "configure: failed program was:" >&5
5556
cat conftest.$ac_ext >&5
5558
eval "ac_cv_header_$ac_safe=no"
5562
if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5563
echo "$ac_t""yes" 1>&6
5564
ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
5565
cat >> confdefs.h <<EOF
5566
#define $ac_tr_hdr 1
5570
echo "$ac_t""no" 1>&6
5575
state_storage=internal_hash
5576
stack_storage=internal_hash
5580
max_num_initial_cards_per_stack=8
5584
# Check whether --enable-state-storage or --disable-state-storage was given.
5585
if test "${enable_state_storage+set}" = set; then
5586
enableval="$enable_state_storage"
5587
if test "x$enableval" = "xglib_hash" ; then
5588
state_storage=glib_hash
5589
elif test "x$enableval" = "xglib_tree" ; then
5590
state_storage=glib_tree
5591
elif test "x$enableval" = "xindirect" ; then
5592
state_storage=indirect
5593
elif test "x$enableval" = "xinternal_hash" ; then
5594
state_storage=internal_hash
5595
elif test "x$enableval" = "xlibavl_avl" ; then
5596
state_storage=libavl_avl
5597
elif test "x$enableval" = "xlibavl_redblack" ; then
5598
state_storage=libavl_redblack
5599
elif test "x$enableval" = "xlibredblack" ; then
5600
state_storage=libredblack
5604
echo "Unknown state storage"
5611
# Check whether --enable-stack-storage or --disable-stack-storage was given.
5612
if test "${enable_stack_storage+set}" = set; then
5613
enableval="$enable_stack_storage"
5614
if test "x$enableval" = "xglib_hash" ; then
5615
stack_storage=glib_hash
5616
elif test "x$enableval" = "xglib_tree" ; then
5617
stack_storage=glib_tree
5618
elif test "x$enableval" = "xinternal_hash" ; then
5619
stack_storage=internal_hash
5620
elif test "x$enableval" = "xlibavl_avl" ; then
5621
stack_storage=libavl_avl
5622
elif test "x$enableval" = "xlibavl_redblack" ; then
5623
stack_storage=libavl_redblack
5624
elif test "x$enableval" = "xlibredblack" ; then
5625
stack_storage=libredblack
5629
echo "Unknown state storage"
5636
# Check whether --enable-states-type or --disable-states-type was given.
5637
if test "${enable_states_type+set}" = set; then
5638
enableval="$enable_states_type"
5639
if test "x$enableval" = "xcompact" ; then
5641
elif test "x$enableval" = "xdebug" ; then
5643
elif test "x$enableval" = "xindirect" ; then
5644
states_type=indirect
5648
echo "Unknown states' type"
5656
# Check whether --enable-max-num-freecells or --disable-max-num-freecells was given.
5657
if test "${enable_max_num_freecells+set}" = set; then
5658
enableval="$enable_max_num_freecells"
5659
if test "x$enableval" = "x" ; then
5662
# Check if it's indeed a number
5664
if echo "0$enableval" | grep '[^0-9]' > /dev/null ; then
5667
echo "max-num-freecells should be a number!"
5669
elif expr $enableval \< 4 > /dev/null ; then
5672
echo "max-num-freecells cannot be lower than 4!"
5674
elif expr $enableval \> 20 > /dev/null ; then
5677
echo "max-num-freeecells cannot be greater than 20!"
5680
max_num_freecells="$enableval"
5687
# Check whether --enable-max-num-stacks or --disable-max-num-stacks was given.
5688
if test "${enable_max_num_stacks+set}" = set; then
5689
enableval="$enable_max_num_stacks"
5690
if test "x$enableval" = "x" ; then
5694
# Check if it's indeed a number
5695
if echo "0$enableval" | grep '[^0-9]' > /dev/null ; then
5698
echo "max-num-stacks should be a number!"
5700
elif expr $enableval \< 8 > /dev/null ; then
5703
echo "max-num-stacks cannot be lower than 8"
5705
elif expr $enableval \> 20 > /dev/null ; then
5708
echo "max-num-stacks cannot be greater than 20"
5711
max_num_stacks="$enableval"
5718
# Check whether --enable-max-num-initial-cards-per-stack or --disable-max-num-initial-cards-per-stack was given.
5719
if test "${enable_max_num_initial_cards_per_stack+set}" = set; then
5720
enableval="$enable_max_num_initial_cards_per_stack"
5721
if test "x$enableval" = "x" ; then
5722
max_num_initial_cards_per_stack=7
5725
# Check if it's indeed a number
5726
if echo "0$enableval" | grep '[^0-9]' > /dev/null ; then
5729
echo "max-num-initial-cards-per-stack should be a number!"
5731
elif expr $enableval \< 7 > /dev/null ; then
5734
echo "max-num-initial-cards-per-stack cannot be lower than 7"
5736
elif expr $enableval \> 104 > /dev/null ; then
5739
echo "max-num-initial-cards-per-stack cannot be greater than 104"
5740
echo "(the number of cards in two decks"
5743
max_num_initial_cards_per_stack="$enableval"
5750
# Check whether --enable-max-num-decks or --disable-max-num-decks was given.
5751
if test "${enable_max_num_decks+set}" = set; then
5752
enableval="$enable_max_num_decks"
5753
if test "x$enableval" = "x1" ; then
5755
elif test "x$enableval" = "x2" ; then
5760
echo "Wrong value for max-num-decks. Can be 1 or 2."
5766
# Check whether --enable-card-debug-pres or --disable-card-debug-pres was given.
5767
if test "${enable_card_debug_pres+set}" = set; then
5768
enableval="$enable_card_debug_pres"
5775
if test "x$state_storage" = "xglib_hash" ; then
5776
cat >> confdefs.h <<\EOF
5777
#define FCS_STATE_STORAGE FCS_STATE_STORAGE_GLIB_HASH
5781
elif test "x$state_storage" = "xglib_tree" ; then
5782
cat >> confdefs.h <<\EOF
5783
#define FCS_STATE_STORAGE FCS_STATE_STORAGE_GLIB_TREE
5787
elif test "x$state_storage" = "xindirect" ; then
5788
cat >> confdefs.h <<\EOF
5789
#define FCS_STATE_STORAGE FCS_STATE_STORAGE_INDIRECT
5792
elif test "x$state_storage" = "xinternal_hash" ; then
5793
cat >> confdefs.h <<\EOF
5794
#define FCS_STATE_STORAGE FCS_STATE_STORAGE_INTERNAL_HASH
5797
elif test "x$state_storage" = "xlibavl_avl" ; then
5798
cat >> confdefs.h <<\EOF
5799
#define FCS_STATE_STORAGE FCS_STATE_STORAGE_LIBAVL_AVL_TREE
5803
elif test "x$state_storage" = "xlibavl_redblack" ; then
5804
cat >> confdefs.h <<\EOF
5805
#define FCS_STATE_STORAGE FCS_STATE_STORAGE_LIBAVL_REDBLACK_TREE
5809
elif test "x$state_storage" = "xlibredblack" ; then
5810
cat >> confdefs.h <<\EOF
5811
#define FCS_STATE_STORAGE FCS_STATE_STORAGE_LIBREDBLACK_TREE
5814
requires_libredblack=yes
5817
if test "x$states_type" = "xindirect" ; then
5818
if test "x$stack_storage" = "xglib_hash" ; then
5819
cat >> confdefs.h <<\EOF
5820
#define FCS_STACK_STORAGE FCS_STACK_STORAGE_GLIB_HASH
5824
elif test "x$stack_storage" = "xglib_tree" ; then
5825
cat >> confdefs.h <<\EOF
5826
#define FCS_STACK_STORAGE FCS_STACK_STORAGE_GLIB_TREE
5830
elif test "x$stack_storage" = "xinternal_hash" ; then
5831
cat >> confdefs.h <<\EOF
5832
#define FCS_STACK_STORAGE FCS_STACK_STORAGE_INTERNAL_HASH
5835
elif test "x$stack_storage" = "xlibavl_avl" ; then
5836
cat >> confdefs.h <<\EOF
5837
#define FCS_STACK_STORAGE FCS_STACK_STORAGE_LIBAVL_AVL_TREE
5841
elif test "x$stack_storage" = "xlibavl_redblack" ; then
5842
cat >> confdefs.h <<\EOF
5843
#define FCS_STACK_STORAGE FCS_STACK_STORAGE_LIBAVL_REDBLACK_TREE
5847
elif test "x$stack_storage" = "xlibredblack" ; then
5848
cat >> confdefs.h <<\EOF
5849
#define FCS_STACK_STORAGE FCS_STACK_STORAGE_LIBREDBLACK_TREE
5852
requires_libredblack=yes
5856
if test "x$requires_libavl" = "xyes" ; then
5857
echo $ac_n "checking for avl_create in -lavl""... $ac_c" 1>&6
5858
echo "configure:5859: checking for avl_create in -lavl" >&5
5859
ac_lib_var=`echo avl'_'avl_create | sed 'y%./+-%__p_%'`
5860
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5861
echo $ac_n "(cached) $ac_c" 1>&6
5863
ac_save_LIBS="$LIBS"
5865
cat > conftest.$ac_ext <<EOF
5866
#line 5867 "configure"
5867
#include "confdefs.h"
5868
/* Override any gcc2 internal prototype to avoid an error. */
5869
/* We use char because int might match the return type of a gcc2
5870
builtin and then its argument prototype would still apply. */
5877
if { (eval echo configure:5878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5879
eval "ac_cv_lib_$ac_lib_var=yes"
5881
echo "configure: failed program was:" >&5
5882
cat conftest.$ac_ext >&5
5884
eval "ac_cv_lib_$ac_lib_var=no"
5887
LIBS="$ac_save_LIBS"
5890
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5891
echo "$ac_t""yes" 1>&6
5892
ac_tr_lib=HAVE_LIB`echo avl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5893
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5894
cat >> confdefs.h <<EOF
5895
#define $ac_tr_lib 1
5901
echo "$ac_t""no" 1>&6
5904
if test "x$ac_cv_lib_avl_avl_create" = "xno" ; then
5905
echo "Error! You need to have libavl around."
5910
if test "x$requires_libredblack" = "xyes" ; then
5911
echo $ac_n "checking for rbsearch in -lredblack""... $ac_c" 1>&6
5912
echo "configure:5913: checking for rbsearch in -lredblack" >&5
5913
ac_lib_var=`echo redblack'_'rbsearch | sed 'y%./+-%__p_%'`
5914
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5915
echo $ac_n "(cached) $ac_c" 1>&6
5917
ac_save_LIBS="$LIBS"
5918
LIBS="-lredblack $LIBS"
5919
cat > conftest.$ac_ext <<EOF
5920
#line 5921 "configure"
5921
#include "confdefs.h"
5922
/* Override any gcc2 internal prototype to avoid an error. */
5923
/* We use char because int might match the return type of a gcc2
5924
builtin and then its argument prototype would still apply. */
5931
if { (eval echo configure:5932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5933
eval "ac_cv_lib_$ac_lib_var=yes"
5935
echo "configure: failed program was:" >&5
5936
cat conftest.$ac_ext >&5
5938
eval "ac_cv_lib_$ac_lib_var=no"
5941
LIBS="$ac_save_LIBS"
5944
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5945
echo "$ac_t""yes" 1>&6
5946
ac_tr_lib=HAVE_LIB`echo redblack | sed -e 's/[^a-zA-Z0-9_]/_/g' \
5947
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
5948
cat >> confdefs.h <<EOF
5949
#define $ac_tr_lib 1
5952
LIBS="-lredblack $LIBS"
5955
echo "$ac_t""no" 1>&6
5958
if test "x$ac_cv_lib_redblack_rbsearch" = "xno" ; then
5959
echo "Error! You need to have libredblack around."
5964
if test "x$requires_glib" = "xyes" ; then
5965
echo $ac_n "checking for g_hash_table_new in -lglib""... $ac_c" 1>&6
5966
echo "configure:5967: checking for g_hash_table_new in -lglib" >&5
5967
ac_lib_var=`echo glib'_'g_hash_table_new | sed 'y%./+-%__p_%'`
5968
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5969
echo $ac_n "(cached) $ac_c" 1>&6
5971
ac_save_LIBS="$LIBS"
5973
cat > conftest.$ac_ext <<EOF
5974
#line 5975 "configure"
5975
#include "confdefs.h"
5976
/* Override any gcc2 internal prototype to avoid an error. */
5977
/* We use char because int might match the return type of a gcc2
5978
builtin and then its argument prototype would still apply. */
5979
char g_hash_table_new();
5985
if { (eval echo configure:5986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5987
eval "ac_cv_lib_$ac_lib_var=yes"
5989
echo "configure: failed program was:" >&5
5990
cat conftest.$ac_ext >&5
5992
eval "ac_cv_lib_$ac_lib_var=no"
5995
LIBS="$ac_save_LIBS"
5998
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5999
echo "$ac_t""yes" 1>&6
6000
ac_tr_lib=HAVE_LIB`echo glib | sed -e 's/[^a-zA-Z0-9_]/_/g' \
6001
-e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
6002
cat >> confdefs.h <<EOF
6003
#define $ac_tr_lib 1
6009
echo "$ac_t""no" 1>&6
6012
if test "x$ac_cv_lib_glib_g_hash_table_new" = "xno" ; then
6015
echo "You need to have glib around."
6021
GTK_CFLAGS=`gtk-config --cflags`
6022
GTK_TEMP_CFLAGS=`echo $GTK_CFLAGS | sed 's/^\(-I^ *\).*$/\1/'`
6023
if echo $GTK_TEMP_CFLAGS | grep 'glib/include$' > /dev/null; then
6024
GTK_TEMP_CFLAGS="$GTK_CFLAGS"
6026
GTK_TEMP_CFLAGS=`echo $GTK_CFLAGS | sed 's/^-I^ * \(.*\)$/\1/'`
6028
GLIB_CFLAGS=`echo $GTK_TEMP_CFLAGS | sed 's/^\(-I^ *glib^ * *-I^ *\).*/\1/'`
6030
GLIB_CFLAGS=`glib-config --cflags`
6031
# Append them to the compiler flags
6032
CFLAGS="$CFLAGS $GLIB_CFLAGS"
6035
echo $ac_n "checking for working const""... $ac_c" 1>&6
6036
echo "configure:6037: checking for working const" >&5
6037
if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
6038
echo $ac_n "(cached) $ac_c" 1>&6
6040
cat > conftest.$ac_ext <<EOF
6041
#line 6042 "configure"
6042
#include "confdefs.h"
6046
/* Ultrix mips cc rejects this. */
6047
typedef int charset[2]; const charset x;
6048
/* SunOS 4.1.1 cc rejects this. */
6049
char const *const *ccp;
6051
/* NEC SVR4.0.2 mips cc rejects this. */
6052
struct point {int x, y;};
6053
static struct point const zero = {0,0};
6054
/* AIX XL C 1.02.0.0 rejects this.
6055
It does not let you subtract one const X* pointer from another in an arm
6056
of an if-expression whose if-part is not a constant expression */
6057
const char *g = "string";
6058
ccp = &g + (g ? g-g : 0);
6059
/* HPUX 7.0 cc rejects these. */
6062
ccp = (char const *const *) p;
6063
{ /* SCO 3.2v4 cc rejects this. */
6065
char const *s = 0 ? (char *) 0 : (char const *) 0;
6069
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
6071
const int *foo = &x[0];
6074
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
6075
typedef const int *iptr;
6079
{ /* AIX XL C 1.02.0.0 rejects this saying
6080
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
6081
struct s { int j; const int *ap[3]; };
6082
struct s *b; b->j = 5;
6084
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
6090
if { (eval echo configure:6091: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6094
echo "configure: failed program was:" >&5
6095
cat conftest.$ac_ext >&5
6102
echo "$ac_t""$ac_cv_c_const" 1>&6
6103
if test $ac_cv_c_const = no; then
6104
cat >> confdefs.h <<\EOF
6110
echo $ac_n "checking for size_t""... $ac_c" 1>&6
6111
echo "configure:6112: checking for size_t" >&5
6112
if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
6113
echo $ac_n "(cached) $ac_c" 1>&6
6115
cat > conftest.$ac_ext <<EOF
6116
#line 6117 "configure"
6117
#include "confdefs.h"
6118
#include <sys/types.h>
6124
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6125
egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
6127
ac_cv_type_size_t=yes
6130
ac_cv_type_size_t=no
6135
echo "$ac_t""$ac_cv_type_size_t" 1>&6
6136
if test $ac_cv_type_size_t = no; then
6137
cat >> confdefs.h <<\EOF
6138
#define size_t unsigned
6144
echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
6145
echo "configure:6146: checking for 8-bit clean memcmp" >&5
6146
if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
6147
echo $ac_n "(cached) $ac_c" 1>&6
6149
if test "$cross_compiling" = yes; then
6150
ac_cv_func_memcmp_clean=no
6152
cat > conftest.$ac_ext <<EOF
6153
#line 6154 "configure"
6154
#include "confdefs.h"
6158
char c0 = 0x40, c1 = 0x80, c2 = 0x81;
6159
exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
6163
if { (eval echo configure:6164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
6165
ac_cv_func_memcmp_clean=yes
6167
echo "configure: failed program was:" >&5
6168
cat conftest.$ac_ext >&5
6170
ac_cv_func_memcmp_clean=no
6177
echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
6178
test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
6180
echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
6181
echo "configure:6182: checking return type of signal handlers" >&5
6182
if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
6183
echo $ac_n "(cached) $ac_c" 1>&6
6185
cat > conftest.$ac_ext <<EOF
6186
#line 6187 "configure"
6187
#include "confdefs.h"
6188
#include <sys/types.h>
6194
extern "C" void (*signal (int, void (*)(int)))(int);
6196
void (*signal ()) ();
6203
if { (eval echo configure:6204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
6205
ac_cv_type_signal=void
6207
echo "configure: failed program was:" >&5
6208
cat conftest.$ac_ext >&5
6210
ac_cv_type_signal=int
6215
echo "$ac_t""$ac_cv_type_signal" 1>&6
6216
cat >> confdefs.h <<EOF
6217
#define RETSIGTYPE $ac_cv_type_signal
6221
for ac_func in strdup
6223
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
6224
echo "configure:6225: checking for $ac_func" >&5
6225
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
6226
echo $ac_n "(cached) $ac_c" 1>&6
6228
cat > conftest.$ac_ext <<EOF
6229
#line 6230 "configure"
6230
#include "confdefs.h"
6231
/* System header to define __stub macros and hopefully few prototypes,
6232
which can conflict with char $ac_func(); below. */
6234
/* Override any gcc2 internal prototype to avoid an error. */
6235
/* We use char because int might match the return type of a gcc2
6236
builtin and then its argument prototype would still apply. */
6241
/* The GNU C library defines this for functions which it implements
6242
to always fail with ENOSYS. Some functions are actually named
6243
something starting with __ and the normal name is an alias. */
6244
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6252
if { (eval echo configure:6253: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
6254
eval "ac_cv_func_$ac_func=yes"
6256
echo "configure: failed program was:" >&5
6257
cat conftest.$ac_ext >&5
6259
eval "ac_cv_func_$ac_func=no"
6264
if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
6265
echo "$ac_t""yes" 1>&6
6266
ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
6267
cat >> confdefs.h <<EOF
6268
#define $ac_tr_func 1
6272
echo "$ac_t""no" 1>&6
6277
# Define COMPACT_STATES, DEBUG_STATES or INDIRECT_STACK_STATES
6278
if test "x$states_type" = "xcompact" ; then
6279
cat >> confdefs.h <<\EOF
6280
#define COMPACT_STATES 1
6283
elif test "x$states_type" = "xdebug" ; then
6284
cat >> confdefs.h <<\EOF
6285
#define DEBUG_STATES 1
6289
cat >> confdefs.h <<\EOF
6290
#define INDIRECT_STACK_STATES 1
6295
if test "x$card_debug_pres" = "xyes" ; then
6296
cat >> confdefs.h <<\EOF
6297
#define CARD_DEBUG_PRES 1
6302
cat >> confdefs.h <<\EOF
6303
#define PREV_STATES_SORT_MARGIN 32
6306
cat >> confdefs.h <<\EOF
6307
#define PREV_STATES_GROW_BY 128
6310
cat >> confdefs.h <<\EOF
6311
#define IA_STATE_PACKS_GROW_BY 32
6314
cat >> confdefs.h <<EOF
6315
#define MAX_NUM_FREECELLS $max_num_freecells
6318
cat >> confdefs.h <<EOF
6319
#define MAX_NUM_STACK $max_num_stacks
6322
cat >> confdefs.h <<EOF
6323
#define MAX_NUM_INITIAL_CARDS_IN_A_STACK $max_num_initial_cards_per_stack
6326
cat >> confdefs.h <<EOF
6327
#define MAX_NUM_DECKS $max_num_decks
6332
cat > confcache <<\EOF
6333
# This file is a shell script that caches the results of configure
6334
# tests run on this system so they can be shared between configure
6335
# scripts and configure runs. It is not useful on other systems.
6336
# If it contains results you don't want to keep, you may remove or edit it.
6338
# By default, configure uses ./config.cache as the cache file,
6339
# creating it if it does not exist already. You can give configure
6340
# the --cache-file=FILE option to use a different cache file; that is
6341
# what configure does when it calls configure scripts in
6342
# subdirectories, so they share the cache.
6343
# Giving --cache-file=/dev/null disables caching, for debugging configure.
6344
# config.status only pays attention to the cache file if you give it the
6345
# --recheck option to rerun configure.
6348
# The following way of writing the cache mishandles newlines in values,
6349
# but we know of no workaround that is simple, portable, and efficient.
6350
# So, don't put newlines in cache variables' values.
6351
# Ultrix sh set writes to stderr and can't be redirected directly,
6352
# and sets the high bit in the cache file unless we assign to the vars.
6354
case `(ac_space=' '; set | grep ac_space) 2>&1` in
6356
# `set' does not quote correctly, so add quotes (double-quote substitution
6357
# turns \\\\ into \\, and sed turns \\ into \).
6359
-e "s/'/'\\\\''/g" \
6360
-e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
6363
# `set' quotes correctly as required by POSIX, so do not add quotes.
6364
sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
6367
if cmp -s $cache_file confcache; then
6370
if test -w $cache_file; then
6371
echo "updating cache $cache_file"
6372
cat confcache > $cache_file
6374
echo "not updating unwritable cache $cache_file"
6379
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
6381
test "x$prefix" = xNONE && prefix=$ac_default_prefix
6382
# Let make expand exec_prefix.
6383
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6385
# Any assignment to VPATH causes Sun make to only execute
6386
# the first set of double-colon rules, so remove it if not needed.
6387
# If there is a colon in the path, we need to keep it.
6388
if test "x$srcdir" = x.; then
6389
ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
6392
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
6394
DEFS=-DHAVE_CONFIG_H
6396
# Without the "./", some shells look in PATH for config.status.
6397
: ${CONFIG_STATUS=./config.status}
6399
echo creating $CONFIG_STATUS
6400
rm -f $CONFIG_STATUS
6401
cat > $CONFIG_STATUS <<EOF
6403
# Generated automatically by configure.
6404
# Run this file to recreate the current configuration.
6405
# This directory was configured as follows,
6406
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6408
# $0 $ac_configure_args
6410
# Compiler output produced by configure, useful for debugging
6411
# configure, is in ./config.log if it exists.
6413
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
6416
case "\$ac_option" in
6417
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6418
echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
6419
exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
6420
-version | --version | --versio | --versi | --vers | --ver | --ve | --v)
6421
echo "$CONFIG_STATUS generated by autoconf version 2.13"
6423
-help | --help | --hel | --he | --h)
6424
echo "\$ac_cs_usage"; exit 0 ;;
6425
*) echo "\$ac_cs_usage"; exit 1 ;;
6429
ac_given_srcdir=$srcdir
6430
ac_given_INSTALL="$INSTALL"
6432
trap 'rm -fr `echo "Makefile freecell-solver-config freecell-solver.spec config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
6434
cat >> $CONFIG_STATUS <<EOF
6436
# Protect against being on the right side of a sed subst in config.status.
6437
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
6438
s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
6442
s%@CFLAGS@%$CFLAGS%g
6443
s%@CPPFLAGS@%$CPPFLAGS%g
6444
s%@CXXFLAGS@%$CXXFLAGS%g
6445
s%@FFLAGS@%$FFLAGS%g
6447
s%@LDFLAGS@%$LDFLAGS%g
6449
s%@exec_prefix@%$exec_prefix%g
6450
s%@prefix@%$prefix%g
6451
s%@program_transform_name@%$program_transform_name%g
6452
s%@bindir@%$bindir%g
6453
s%@sbindir@%$sbindir%g
6454
s%@libexecdir@%$libexecdir%g
6455
s%@datadir@%$datadir%g
6456
s%@sysconfdir@%$sysconfdir%g
6457
s%@sharedstatedir@%$sharedstatedir%g
6458
s%@localstatedir@%$localstatedir%g
6459
s%@libdir@%$libdir%g
6460
s%@includedir@%$includedir%g
6461
s%@oldincludedir@%$oldincludedir%g
6462
s%@infodir@%$infodir%g
6463
s%@mandir@%$mandir%g
6464
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
6465
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
6466
s%@INSTALL_DATA@%$INSTALL_DATA%g
6467
s%@PACKAGE@%$PACKAGE%g
6468
s%@VERSION@%$VERSION%g
6469
s%@ACLOCAL@%$ACLOCAL%g
6470
s%@AUTOCONF@%$AUTOCONF%g
6471
s%@AUTOMAKE@%$AUTOMAKE%g
6472
s%@AUTOHEADER@%$AUTOHEADER%g
6473
s%@MAKEINFO@%$MAKEINFO%g
6474
s%@SET_MAKE@%$SET_MAKE%g
6476
s%@host_alias@%$host_alias%g
6477
s%@host_cpu@%$host_cpu%g
6478
s%@host_vendor@%$host_vendor%g
6479
s%@host_os@%$host_os%g
6481
s%@build_alias@%$build_alias%g
6482
s%@build_cpu@%$build_cpu%g
6483
s%@build_vendor@%$build_vendor%g
6484
s%@build_os@%$build_os%g
6487
s%@OBJEXT@%$OBJEXT%g
6488
s%@EXEEXT@%$EXEEXT%g
6490
s%@RANLIB@%$RANLIB%g
6493
s%@LIBTOOL@%$LIBTOOL%g
6494
s%@LIBOBJS@%$LIBOBJS%g
6499
cat >> $CONFIG_STATUS <<\EOF
6501
# Split the substitutions into bite-sized pieces for seds with
6502
# small command number limits, like on Digital OSF/1 and HP-UX.
6503
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
6504
ac_file=1 # Number of current file.
6505
ac_beg=1 # First line for current file.
6506
ac_end=$ac_max_sed_cmds # Line after last line for current file.
6509
while $ac_more_lines; do
6510
if test $ac_beg -gt 1; then
6511
sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
6513
sed "${ac_end}q" conftest.subs > conftest.s$ac_file
6515
if test ! -s conftest.s$ac_file; then
6517
rm -f conftest.s$ac_file
6519
if test -z "$ac_sed_cmds"; then
6520
ac_sed_cmds="sed -f conftest.s$ac_file"
6522
ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
6524
ac_file=`expr $ac_file + 1`
6526
ac_end=`expr $ac_end + $ac_max_sed_cmds`
6529
if test -z "$ac_sed_cmds"; then
6534
cat >> $CONFIG_STATUS <<EOF
6536
CONFIG_FILES=\${CONFIG_FILES-"Makefile freecell-solver-config freecell-solver.spec"}
6538
cat >> $CONFIG_STATUS <<\EOF
6539
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6540
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6542
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6543
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6544
*) ac_file_in="${ac_file}.in" ;;
6547
# Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6549
# Remove last slash and all that follows it. Not all systems have dirname.
6550
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6551
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6552
# The file is in a subdirectory.
6553
test ! -d "$ac_dir" && mkdir "$ac_dir"
6554
ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6555
# A "../" for each directory in $ac_dir_suffix.
6556
ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6558
ac_dir_suffix= ac_dots=
6561
case "$ac_given_srcdir" in
6563
if test -z "$ac_dots"; then top_srcdir=.
6564
else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6565
/*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6567
srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6568
top_srcdir="$ac_dots$ac_given_srcdir" ;;
6571
case "$ac_given_INSTALL" in
6572
[/$]*) INSTALL="$ac_given_INSTALL" ;;
6573
*) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6576
echo creating "$ac_file"
6578
configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6580
*Makefile*) ac_comsub="1i\\
6581
# $configure_input" ;;
6585
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6587
s%@configure_input@%$configure_input%g
6588
s%@srcdir@%$srcdir%g
6589
s%@top_srcdir@%$top_srcdir%g
6590
s%@INSTALL@%$INSTALL%g
6591
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6595
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6596
# NAME is the cpp macro being defined and VALUE is the value it is being given.
6598
# ac_d sets the value in "#define NAME VALUE" lines.
6599
ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6600
ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6603
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6604
ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6605
ac_uB='\([ ]\)%\1#\2define\3'
6608
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6609
ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6610
ac_eB='$%\1#\2define\3'
6614
if test "${CONFIG_HEADERS+set}" != set; then
6616
cat >> $CONFIG_STATUS <<EOF
6617
CONFIG_HEADERS="config.h"
6619
cat >> $CONFIG_STATUS <<\EOF
6621
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6622
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6624
*:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6625
ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6626
*) ac_file_in="${ac_file}.in" ;;
6629
echo creating $ac_file
6631
rm -f conftest.frag conftest.in conftest.out
6632
ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6633
cat $ac_file_inputs > conftest.in
6637
# Transform confdefs.h into a sed script conftest.vals that substitutes
6638
# the proper values into config.h.in to produce config.h. And first:
6639
# Protect against being on the right side of a sed subst in config.status.
6640
# Protect against being in an unquoted here document in config.status.
6642
cat > conftest.hdr <<\EOF
6645
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6649
sed -n -f conftest.hdr confdefs.h > conftest.vals
6652
# This sed command replaces #undef with comments. This is necessary, for
6653
# example, in the case of _POSIX_SOURCE, which is predefined and required
6654
# on some systems where configure will not decide to define it.
6655
cat >> conftest.vals <<\EOF
6656
s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6659
# Break up conftest.vals because some shells have a limit on
6660
# the size of here documents, and old seds have small limits too.
6665
ac_lines=`grep -c . conftest.vals`
6666
# grep -c gives empty output for an empty file on some AIX systems.
6667
if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6668
# Write a limited-size here document to conftest.frag.
6669
echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6670
sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6672
sed -f conftest.frag conftest.in > conftest.out
6674
mv conftest.out conftest.in
6676
sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6678
mv conftest.tail conftest.vals
6682
cat >> $CONFIG_STATUS <<\EOF
6683
rm -f conftest.frag conftest.h
6684
echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6685
cat conftest.in >> conftest.h
6687
if cmp -s $ac_file conftest.h 2>/dev/null; then
6688
echo "$ac_file is unchanged"
6691
# Remove last slash and all that follows it. Not all systems have dirname.
6692
ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6693
if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6694
# The file is in a subdirectory.
6695
test ! -d "$ac_dir" && mkdir "$ac_dir"
6698
mv conftest.h $ac_file
6703
cat >> $CONFIG_STATUS <<EOF
6707
cat >> $CONFIG_STATUS <<\EOF
6708
test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
6709
chmod +x freecell-solver-config
6712
chmod +x $CONFIG_STATUS
6713
rm -fr confdefs* $ac_clean_files
6714
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6717
# Run configure in the board_gen directory
6718
(cd board_gen && ./configure --prefix="$prefix")