source: branches/libc-0.6/src/gcc/libjava/libltdl/configure

Last change on this file was 1124, checked in by bird, 22 years ago

Regenerated with new autoconf (forced to use stable).

  • Property cvs2svn:cvs-rev set to 1.4
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 122.9 KB
Line 
1#! /bin/sh
2
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.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15 --with-auxdir=DIR path to autoconf auxiliary files"
16ac_help="$ac_help
17 --enable-maintainer-mode enable make rules and dependencies not useful
18 (and sometimes confusing) to the casual installer"
19ac_help="$ac_help
20 --enable-shared[=PKGS] build shared libraries [default=yes]"
21ac_help="$ac_help
22 --enable-static[=PKGS] build static libraries [default=yes]"
23ac_help="$ac_help
24 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
25ac_help="$ac_help
26 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
27ac_help="$ac_help
28 --disable-libtool-lock avoid locking (might break parallel builds)"
29ac_help="$ac_help
30 --with-pic try to use only PIC/non-PIC objects [default=use both]"
31ac_help="$ac_help
32 --enable-java-gc=TYPE choose garbage collector [boehm]"
33ac_help="$ac_help
34 --enable-ltdl-install install libltdl"
35
36# Initialize some variables set by options.
37# The variables have the same names as the options, with
38# dashes changed to underlines.
39build=NONE
40cache_file=./config.cache
41exec_prefix=NONE
42host=NONE
43no_create=
44nonopt=NONE
45no_recursion=
46prefix=NONE
47program_prefix=NONE
48program_suffix=NONE
49program_transform_name=s,x,x,
50silent=
51site=
52srcdir=
53target=NONE
54verbose=
55x_includes=NONE
56x_libraries=NONE
57bindir='${exec_prefix}/bin'
58sbindir='${exec_prefix}/sbin'
59libexecdir='${exec_prefix}/libexec'
60datadir='${prefix}/share'
61sysconfdir='${prefix}/etc'
62sharedstatedir='${prefix}/com'
63localstatedir='${prefix}/var'
64libdir='${exec_prefix}/lib'
65includedir='${prefix}/include'
66oldincludedir='/usr/include'
67infodir='${prefix}/info'
68mandir='${prefix}/man'
69
70# Initialize some other variables.
71subdirs=
72MFLAGS= MAKEFLAGS=
73SHELL=${CONFIG_SHELL-/bin/sh}
74# Maximum number of lines to put in a shell here document.
75ac_max_here_lines=12
76
77ac_prev=
78for ac_option
79do
80
81 # If the previous option needs an argument, assign it.
82 if test -n "$ac_prev"; then
83 eval "$ac_prev=\$ac_option"
84 ac_prev=
85 continue
86 fi
87
88 case "$ac_option" in
89 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
90 *) ac_optarg= ;;
91 esac
92
93 # Accept the important Cygnus configure options, so we can diagnose typos.
94
95 case "$ac_option" in
96
97 -bindir | --bindir | --bindi | --bind | --bin | --bi)
98 ac_prev=bindir ;;
99 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
100 bindir="$ac_optarg" ;;
101
102 -build | --build | --buil | --bui | --bu)
103 ac_prev=build ;;
104 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
105 build="$ac_optarg" ;;
106
107 -cache-file | --cache-file | --cache-fil | --cache-fi \
108 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
109 ac_prev=cache_file ;;
110 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
111 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
112 cache_file="$ac_optarg" ;;
113
114 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
115 ac_prev=datadir ;;
116 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
117 | --da=*)
118 datadir="$ac_optarg" ;;
119
120 -disable-* | --disable-*)
121 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
122 # Reject names that are not valid shell variable names.
123 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
124 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
125 fi
126 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
127 eval "enable_${ac_feature}=no" ;;
128
129 -enable-* | --enable-*)
130 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
134 fi
135 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
136 case "$ac_option" in
137 *=*) ;;
138 *) ac_optarg=yes ;;
139 esac
140 eval "enable_${ac_feature}='$ac_optarg'" ;;
141
142 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
143 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
144 | --exec | --exe | --ex)
145 ac_prev=exec_prefix ;;
146 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
147 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
148 | --exec=* | --exe=* | --ex=*)
149 exec_prefix="$ac_optarg" ;;
150
151 -gas | --gas | --ga | --g)
152 # Obsolete; use --with-gas.
153 with_gas=yes ;;
154
155 -help | --help | --hel | --he)
156 # Omit some internal or obsolete options to make the list less imposing.
157 # This message is too long to be a string in the A/UX 3.1 sh.
158 cat << EOF
159Usage: configure [options] [host]
160Options: [defaults in brackets after descriptions]
161Configuration:
162 --cache-file=FILE cache test results in FILE
163 --help print this message
164 --no-create do not create output files
165 --quiet, --silent do not print \`checking...' messages
166 --version print the version of autoconf that created configure
167Directory and file names:
168 --prefix=PREFIX install architecture-independent files in PREFIX
169 [$ac_default_prefix]
170 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
171 [same as prefix]
172 --bindir=DIR user executables in DIR [EPREFIX/bin]
173 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
174 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
175 --datadir=DIR read-only architecture-independent data in DIR
176 [PREFIX/share]
177 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
178 --sharedstatedir=DIR modifiable architecture-independent data in DIR
179 [PREFIX/com]
180 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
181 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
182 --includedir=DIR C header files in DIR [PREFIX/include]
183 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
184 --infodir=DIR info documentation in DIR [PREFIX/info]
185 --mandir=DIR man documentation in DIR [PREFIX/man]
186 --srcdir=DIR find the sources in DIR [configure dir or ..]
187 --program-prefix=PREFIX prepend PREFIX to installed program names
188 --program-suffix=SUFFIX append SUFFIX to installed program names
189 --program-transform-name=PROGRAM
190 run sed PROGRAM on installed program names
191EOF
192 cat << EOF
193Host type:
194 --build=BUILD configure for building on BUILD [BUILD=HOST]
195 --host=HOST configure for HOST [guessed]
196 --target=TARGET configure for TARGET [TARGET=HOST]
197Features and packages:
198 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
199 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
200 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
201 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
202 --x-includes=DIR X include files are in DIR
203 --x-libraries=DIR X library files are in DIR
204EOF
205 if test -n "$ac_help"; then
206 echo "--enable and --with options recognized:$ac_help"
207 fi
208 exit 0 ;;
209
210 -host | --host | --hos | --ho)
211 ac_prev=host ;;
212 -host=* | --host=* | --hos=* | --ho=*)
213 host="$ac_optarg" ;;
214
215 -includedir | --includedir | --includedi | --included | --include \
216 | --includ | --inclu | --incl | --inc)
217 ac_prev=includedir ;;
218 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
219 | --includ=* | --inclu=* | --incl=* | --inc=*)
220 includedir="$ac_optarg" ;;
221
222 -infodir | --infodir | --infodi | --infod | --info | --inf)
223 ac_prev=infodir ;;
224 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
225 infodir="$ac_optarg" ;;
226
227 -libdir | --libdir | --libdi | --libd)
228 ac_prev=libdir ;;
229 -libdir=* | --libdir=* | --libdi=* | --libd=*)
230 libdir="$ac_optarg" ;;
231
232 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
233 | --libexe | --libex | --libe)
234 ac_prev=libexecdir ;;
235 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
236 | --libexe=* | --libex=* | --libe=*)
237 libexecdir="$ac_optarg" ;;
238
239 -localstatedir | --localstatedir | --localstatedi | --localstated \
240 | --localstate | --localstat | --localsta | --localst \
241 | --locals | --local | --loca | --loc | --lo)
242 ac_prev=localstatedir ;;
243 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
244 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
245 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
246 localstatedir="$ac_optarg" ;;
247
248 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
249 ac_prev=mandir ;;
250 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
251 mandir="$ac_optarg" ;;
252
253 -nfp | --nfp | --nf)
254 # Obsolete; use --without-fp.
255 with_fp=no ;;
256
257 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
258 | --no-cr | --no-c)
259 no_create=yes ;;
260
261 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
262 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
263 no_recursion=yes ;;
264
265 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
266 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
267 | --oldin | --oldi | --old | --ol | --o)
268 ac_prev=oldincludedir ;;
269 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
270 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
271 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
272 oldincludedir="$ac_optarg" ;;
273
274 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
275 ac_prev=prefix ;;
276 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
277 prefix="$ac_optarg" ;;
278
279 -program-prefix | --program-prefix | --program-prefi | --program-pref \
280 | --program-pre | --program-pr | --program-p)
281 ac_prev=program_prefix ;;
282 -program-prefix=* | --program-prefix=* | --program-prefi=* \
283 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
284 program_prefix="$ac_optarg" ;;
285
286 -program-suffix | --program-suffix | --program-suffi | --program-suff \
287 | --program-suf | --program-su | --program-s)
288 ac_prev=program_suffix ;;
289 -program-suffix=* | --program-suffix=* | --program-suffi=* \
290 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
291 program_suffix="$ac_optarg" ;;
292
293 -program-transform-name | --program-transform-name \
294 | --program-transform-nam | --program-transform-na \
295 | --program-transform-n | --program-transform- \
296 | --program-transform | --program-transfor \
297 | --program-transfo | --program-transf \
298 | --program-trans | --program-tran \
299 | --progr-tra | --program-tr | --program-t)
300 ac_prev=program_transform_name ;;
301 -program-transform-name=* | --program-transform-name=* \
302 | --program-transform-nam=* | --program-transform-na=* \
303 | --program-transform-n=* | --program-transform-=* \
304 | --program-transform=* | --program-transfor=* \
305 | --program-transfo=* | --program-transf=* \
306 | --program-trans=* | --program-tran=* \
307 | --progr-tra=* | --program-tr=* | --program-t=*)
308 program_transform_name="$ac_optarg" ;;
309
310 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
311 | -silent | --silent | --silen | --sile | --sil)
312 silent=yes ;;
313
314 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
315 ac_prev=sbindir ;;
316 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
317 | --sbi=* | --sb=*)
318 sbindir="$ac_optarg" ;;
319
320 -sharedstatedir | --sharedstatedir | --sharedstatedi \
321 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
322 | --sharedst | --shareds | --shared | --share | --shar \
323 | --sha | --sh)
324 ac_prev=sharedstatedir ;;
325 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
326 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
327 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
328 | --sha=* | --sh=*)
329 sharedstatedir="$ac_optarg" ;;
330
331 -site | --site | --sit)
332 ac_prev=site ;;
333 -site=* | --site=* | --sit=*)
334 site="$ac_optarg" ;;
335
336 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
337 ac_prev=srcdir ;;
338 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
339 srcdir="$ac_optarg" ;;
340
341 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
342 | --syscon | --sysco | --sysc | --sys | --sy)
343 ac_prev=sysconfdir ;;
344 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
345 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
346 sysconfdir="$ac_optarg" ;;
347
348 -target | --target | --targe | --targ | --tar | --ta | --t)
349 ac_prev=target ;;
350 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
351 target="$ac_optarg" ;;
352
353 -v | -verbose | --verbose | --verbos | --verbo | --verb)
354 verbose=yes ;;
355
356 -version | --version | --versio | --versi | --vers)
357 echo "configure generated by autoconf version 2.13"
358 exit 0 ;;
359
360 -with-* | --with-*)
361 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
362 # Reject names that are not valid shell variable names.
363 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
364 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
365 fi
366 ac_package=`echo $ac_package| sed 's/-/_/g'`
367 case "$ac_option" in
368 *=*) ;;
369 *) ac_optarg=yes ;;
370 esac
371 eval "with_${ac_package}='$ac_optarg'" ;;
372
373 -without-* | --without-*)
374 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
375 # Reject names that are not valid shell variable names.
376 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
377 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
378 fi
379 ac_package=`echo $ac_package| sed 's/-/_/g'`
380 eval "with_${ac_package}=no" ;;
381
382 --x)
383 # Obsolete; use --with-x.
384 with_x=yes ;;
385
386 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
387 | --x-incl | --x-inc | --x-in | --x-i)
388 ac_prev=x_includes ;;
389 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
390 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
391 x_includes="$ac_optarg" ;;
392
393 -x-libraries | --x-libraries | --x-librarie | --x-librari \
394 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
395 ac_prev=x_libraries ;;
396 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
397 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
398 x_libraries="$ac_optarg" ;;
399
400 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
401 ;;
402
403 *)
404 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
405 echo "configure: warning: $ac_option: invalid host type" 1>&2
406 fi
407 if test "x$nonopt" != xNONE; then
408 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
409 fi
410 nonopt="$ac_option"
411 ;;
412
413 esac
414done
415
416if test -n "$ac_prev"; then
417 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
418fi
419
420trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
421
422# File descriptor usage:
423# 0 standard input
424# 1 file creation
425# 2 errors and warnings
426# 3 some systems may open it to /dev/tty
427# 4 used on the Kubota Titan
428# 6 checking for... messages and results
429# 5 compiler messages saved in config.log
430if test "$silent" = yes; then
431 exec 6>/dev/null
432else
433 exec 6>&1
434fi
435exec 5>./config.log
436
437echo "\
438This file contains any messages produced by compilers while
439running configure, to aid debugging if configure makes a mistake.
440" 1>&5
441
442# Strip out --no-create and --no-recursion so they do not pile up.
443# Also quote any args containing shell metacharacters.
444ac_configure_args=
445for ac_arg
446do
447 case "$ac_arg" in
448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
449 | --no-cr | --no-c) ;;
450 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
451 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
452 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
453 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
454 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
455 esac
456done
457
458# NLS nuisances.
459# Only set these to C if already set. These must not be set unconditionally
460# because not all systems understand e.g. LANG=C (notably SCO).
461# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
462# Non-C LC_CTYPE values break the ctype check.
463if test "${LANG+set}" = set; then LANG=C; export LANG; fi
464if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
465if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
466if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
467
468# confdefs.h avoids OS command line length limits that DEFS can exceed.
469rm -rf conftest* confdefs.h
470# AIX cpp loses on an empty file, so make sure it contains at least a newline.
471echo > confdefs.h
472
473# A filename unique to this package, relative to the directory that
474# configure is in, which we can look for to find out if srcdir is correct.
475ac_unique_file=ltdl.c
476
477# Find the source files, if location was not specified.
478if test -z "$srcdir"; then
479 ac_srcdir_defaulted=yes
480 # Try the directory containing this script, then its parent.
481 ac_prog=$0
482 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
483 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
484 srcdir=$ac_confdir
485 if test ! -r $srcdir/$ac_unique_file; then
486 srcdir=..
487 fi
488else
489 ac_srcdir_defaulted=no
490fi
491if test ! -r $srcdir/$ac_unique_file; then
492 if test "$ac_srcdir_defaulted" = yes; then
493 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
494 else
495 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
496 fi
497fi
498srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
499
500# Prefer explicitly selected file to automatically selected ones.
501if test -z "$CONFIG_SITE"; then
502 if test "x$prefix" != xNONE; then
503 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
504 else
505 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
506 fi
507fi
508for ac_site_file in $CONFIG_SITE; do
509 if test -r "$ac_site_file"; then
510 echo "loading site script $ac_site_file"
511 . "$ac_site_file"
512 fi
513done
514
515if test -r "$cache_file"; then
516 echo "loading cache $cache_file"
517 . $cache_file
518else
519 echo "creating cache $cache_file"
520 > $cache_file
521fi
522
523ac_ext=c
524# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
525ac_cpp='$CPP $CPPFLAGS'
526ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
527ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
528cross_compiling=$ac_cv_prog_cc_cross
529
530ac_exeext=
531ac_objext=o
532if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
533 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
534 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
535 ac_n= ac_c='
536' ac_t=' '
537 else
538 ac_n=-n ac_c= ac_t=
539 fi
540else
541 ac_n= ac_c='\c' ac_t=
542fi
543
544echo $ac_n "checking for path separator""... $ac_c" 1>&6
545echo "configure:546: checking for path separator" >&5
546# Filter path to get backslahes into forwardslashes
547case "`uname -s 2> /dev/null`" in
548OS/2)
549 PATH=`echo -E "$PATH" | sed 's+\\\\+/+g'`
550 PATH_IFS=';'
551 ;;
552*)
553 PATH_IFS=':'
554 ;;
555esac
556echo "$ac_t""${PATH_IFS}" 1>&6
557
558echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
559echo "configure:560: checking for Cygwin environment" >&5
560if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
561 echo $ac_n "(cached) $ac_c" 1>&6
562else
563 cat > conftest.$ac_ext <<EOF
564#line 565 "configure"
565#include "confdefs.h"
566
567int main() {
568
569#ifndef __CYGWIN__
570#define __CYGWIN__ __CYGWIN32__
571#endif
572return __CYGWIN__;
573; return 0; }
574EOF
575if { (eval echo configure:576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
576 rm -rf conftest*
577 ac_cv_cygwin=yes
578else
579 echo "configure: failed program was:" >&5
580 cat conftest.$ac_ext >&5
581 rm -rf conftest*
582 ac_cv_cygwin=no
583fi
584rm -f conftest*
585rm -f conftest*
586fi
587
588echo "$ac_t""$ac_cv_cygwin" 1>&6
589CYGWIN=
590test "$ac_cv_cygwin" = yes && CYGWIN=yes
591echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
592echo "configure:593: checking for mingw32 environment" >&5
593if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
594 echo $ac_n "(cached) $ac_c" 1>&6
595else
596 cat > conftest.$ac_ext <<EOF
597#line 598 "configure"
598#include "confdefs.h"
599
600int main() {
601return __MINGW32__;
602; return 0; }
603EOF
604if { (eval echo configure:605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
605 rm -rf conftest*
606 ac_cv_mingw32=yes
607else
608 echo "configure: failed program was:" >&5
609 cat conftest.$ac_ext >&5
610 rm -rf conftest*
611 ac_cv_mingw32=no
612fi
613rm -f conftest*
614rm -f conftest*
615fi
616
617echo "$ac_t""$ac_cv_mingw32" 1>&6
618MINGW32=
619test "$ac_cv_mingw32" = yes && MINGW32=yes
620echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6
621echo "configure:622: checking for EMX/OS2 environment" >&5
622if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then
623 echo $ac_n "(cached) $ac_c" 1>&6
624else
625 : ${CC=gcc.exe}
626cat > conftest.$ac_ext <<EOF
627#line 628 "configure"
628#include "confdefs.h"
629
630int main() {
631return __EMX__;
632; return 0; }
633EOF
634if { (eval echo configure:635: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
635 rm -rf conftest*
636 ac_cv_emxos2=yes
637else
638 echo "configure: failed program was:" >&5
639 cat conftest.$ac_ext >&5
640 rm -rf conftest*
641 ac_cv_emxos2=no
642fi
643rm -f conftest*
644rm -f conftest*
645fi
646
647echo "$ac_t""$ac_cv_emxos2" 1>&6
648if eval "test \"`echo '$''{'ac_cv_libpre'+set}'`\" = set"; then
649 echo $ac_n "(cached) $ac_c" 1>&6
650else
651 if test "$ac_cv_emxos2" = yes ; then
652 ac_cv_libpre=
653else
654 ac_cv_libpre=lib
655fi
656
657fi
658
659EMXOS2=
660test "$ac_cv_emxos2" = yes && EMXOS2=yes
661
662
663
664echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
665echo "configure:666: checking for executable suffix" >&5
666if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
667 echo $ac_n "(cached) $ac_c" 1>&6
668else
669 if test "$CYGWIN" = yes || test "$MINGW32" = yes || test "$EMXOS2" = yes; then
670 ac_cv_exeext=.exe
671else
672 rm -f conftest*
673 echo 'int main () { return 0; }' > conftest.$ac_ext
674 ac_cv_exeext=
675 if { (eval echo configure:676: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
676 for file in conftest.*; do
677 case $file in
678 *.c | *.o | *.obj) ;;
679 *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
680 esac
681 done
682 else
683 { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
684 fi
685 rm -f conftest*
686 test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
687fi
688fi
689
690EXEEXT=""
691test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
692echo "$ac_t""${ac_cv_exeext}" 1>&6
693ac_exeext=$EXEEXT
694
695
696
697# Check whether --with-auxdir or --without-auxdir was given.
698if test "${with_auxdir+set}" = set; then
699 withval="$with_auxdir"
700 ac_aux_dir=
701for ac_dir in $with_auxdir $srcdir/$with_auxdir; do
702 if test -f $ac_dir/install-sh; then
703 ac_aux_dir=$ac_dir
704 ac_install_sh="$ac_aux_dir/install-sh -c"
705 break
706 elif test -f $ac_dir/install.sh; then
707 ac_aux_dir=$ac_dir
708 ac_install_sh="$ac_aux_dir/install.sh -c"
709 break
710 fi
711done
712if test -z "$ac_aux_dir"; then
713 { echo "configure: error: can not find install-sh or install.sh in $with_auxdir $srcdir/$with_auxdir" 1>&2; exit 1; }
714fi
715ac_config_guess=$ac_aux_dir/config.guess
716ac_config_sub=$ac_aux_dir/config.sub
717ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
718
719
720else
721 ac_aux_dir=
722for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
723 if test -f $ac_dir/install-sh; then
724 ac_aux_dir=$ac_dir
725 ac_install_sh="$ac_aux_dir/install-sh -c"
726 break
727 elif test -f $ac_dir/install.sh; then
728 ac_aux_dir=$ac_dir
729 ac_install_sh="$ac_aux_dir/install.sh -c"
730 break
731 fi
732done
733if test -z "$ac_aux_dir"; then
734 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
735fi
736ac_config_guess=$ac_aux_dir/config.guess
737ac_config_sub=$ac_aux_dir/config.sub
738ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
739
740fi
741
742
743# This is another blatant hack to work around automake bugs.
744mkinstalldirs="$ac_aux_dir/mkinstalldirs"
745
746
747if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
748 if test -f ${srcdir}/ltconfig && test -f ${srcdir}/ltmain.sh; then
749 # if libltdl is libtoolized, it is assumed to be stand-alone and
750 # installed unless the command line overrides it (tested above)
751 enable_ltdl_install=yes
752 else
753 echo "configure: warning: *** The top-level configure must select either" 1>&2
754 echo "configure: warning: *** A""C_LIBLTDL_INSTALLABLE or A""C_LIBLTDL_CONVENIENCE." 1>&2
755 { echo "configure: error: *** Maybe you want to --enable-ltdl-install?" 1>&2; exit 1; }
756 fi
757fi
758
759# Find a good install program. We prefer a C program (faster),
760# so one script is as good as another. But avoid the broken or
761# incompatible versions:
762# SysV /etc/install, /usr/sbin/install
763# SunOS /usr/etc/install
764# IRIX /sbin/install
765# AIX /bin/install
766# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
767# AFS /usr/afsws/bin/install, which mishandles nonexistent args
768# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
769# ./install, which can be erroneously created by make from ./install.sh.
770echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
771echo "configure:772: checking for a BSD compatible install" >&5
772if test -z "$INSTALL"; then
773if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
774 echo $ac_n "(cached) $ac_c" 1>&6
775else
776 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$PATH_IFS"
777 for ac_dir in $PATH; do
778 # Account for people who put trailing slashes in PATH elements.
779 case "$ac_dir/" in
780 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
781 # We reject the install program from OS/2 or W3.1
782 */OS2|*/OS2/*|*/WINDOWS|*/WINDOWS/*) ;;
783 *)
784 # OSF1 and SCO ODT 3.0 have their own names for install.
785 # Don't use installbsd from OSF since it installs stuff as root
786 # by default.
787 for ac_prog in ginstall scoinst install; do
788 if test -f $ac_dir/$ac_prog$ac_exeext; then
789 if test $ac_prog = install &&
790 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
791 # AIX install. It has an incompatible calling convention.
792 :
793 else
794 ac_cv_path_install="$ac_dir/$ac_prog$ac_exeext -c"
795 break 2
796 fi
797 fi
798 done
799 ;;
800 esac
801 done
802 IFS="$ac_save_IFS"
803
804fi
805 if test "${ac_cv_path_install+set}" = set; then
806 INSTALL="$ac_cv_path_install"
807 else
808 # As a last resort, use the slow shell script. We don't cache a
809 # path for INSTALL within a source directory, because that will
810 # break other packages using the cache if that directory is
811 # removed, or if the path is relative.
812 INSTALL="$ac_install_sh"
813 fi
814fi
815echo "$ac_t""$INSTALL" 1>&6
816
817# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
818# It thinks the first close brace ends the variable substitution.
819test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
820
821test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
822
823test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
824
825echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
826echo "configure:827: checking whether build environment is sane" >&5
827# Just in case
828sleep 1
829echo timestamp > conftestfile
830# Do `set' in a subshell so we don't clobber the current shell's
831# arguments. Must try -L first in case configure is actually a
832# symlink; some systems play weird games with the mod time of symlinks
833# (eg FreeBSD returns the mod time of the symlink's containing
834# directory).
835if (
836 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
837 if test "$*" = "X"; then
838 # -L didn't work.
839 set X `ls -t $srcdir/configure conftestfile`
840 fi
841 if test "$*" != "X $srcdir/configure conftestfile" \
842 && test "$*" != "X conftestfile $srcdir/configure"; then
843
844 # If neither matched, then we have a broken ls. This can happen
845 # if, for instance, CONFIG_SHELL is bash and it inherits a
846 # broken ls alias from the environment. This has actually
847 # happened. Such a system could not be considered "sane".
848 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
849alias in your environment" 1>&2; exit 1; }
850 fi
851
852 test "$2" = conftestfile
853 )
854then
855 # Ok.
856 :
857else
858 { echo "configure: error: newly created file is older than distributed files!
859Check your system clock" 1>&2; exit 1; }
860fi
861rm -f conftest*
862echo "$ac_t""yes" 1>&6
863if test "$program_transform_name" = s,x,x,; then
864 program_transform_name=
865else
866 # Double any \ or $. echo might interpret backslashes.
867 cat <<\EOF_SED > conftestsed
868s,\\,\\\\,g; s,\$,$$,g
869EOF_SED
870 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
871 rm -f conftestsed
872fi
873test "$program_prefix" != NONE &&
874 program_transform_name="s,^,${program_prefix},; $program_transform_name"
875# Use a double $ so make ignores it.
876test "$program_suffix" != NONE &&
877 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
878
879# sed with no file args requires a program.
880test "$program_transform_name" = "" && program_transform_name="s,x,x,"
881
882echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
883echo "configure:884: checking whether ${MAKE-make} sets \${MAKE}" >&5
884set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
885if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
886 echo $ac_n "(cached) $ac_c" 1>&6
887else
888 cat > conftestmake <<\EOF
889all:
890 @echo 'ac_maketemp="${MAKE}"'
891EOF
892# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
893eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
894if test -n "$ac_maketemp"; then
895 eval ac_cv_prog_make_${ac_make}_set=yes
896else
897 eval ac_cv_prog_make_${ac_make}_set=no
898fi
899rm -f conftestmake
900fi
901if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
902 echo "$ac_t""yes" 1>&6
903 SET_MAKE=
904else
905 echo "$ac_t""no" 1>&6
906 SET_MAKE="MAKE=${MAKE-make}"
907fi
908
909
910PACKAGE=libltdl
911
912VERSION=1.1
913
914if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
915 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
916fi
917
918
919
920missing_dir=`cd $ac_aux_dir && pwd`
921echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
922echo "configure:923: checking for working aclocal" >&5
923# Run test in a subshell; some versions of sh will print an error if
924# an executable is not found, even if stderr is redirected.
925# Redirect stdin to placate older versions of autoconf. Sigh.
926if (aclocal --version) < /dev/null > /dev/null 2>&1; then
927 ACLOCAL=aclocal
928 echo "$ac_t""found" 1>&6
929else
930 ACLOCAL="$missing_dir/missing aclocal"
931 echo "$ac_t""missing" 1>&6
932fi
933
934echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
935echo "configure:936: checking for working autoconf" >&5
936# Run test in a subshell; some versions of sh will print an error if
937# an executable is not found, even if stderr is redirected.
938# Redirect stdin to placate older versions of autoconf. Sigh.
939if (autoconf --version) < /dev/null > /dev/null 2>&1; then
940 AUTOCONF=autoconf
941 echo "$ac_t""found" 1>&6
942else
943 AUTOCONF="$missing_dir/missing autoconf"
944 echo "$ac_t""missing" 1>&6
945fi
946
947echo $ac_n "checking for working automake""... $ac_c" 1>&6
948echo "configure:949: checking for working automake" >&5
949# Run test in a subshell; some versions of sh will print an error if
950# an executable is not found, even if stderr is redirected.
951# Redirect stdin to placate older versions of autoconf. Sigh.
952if (automake --version) < /dev/null > /dev/null 2>&1; then
953 AUTOMAKE=automake
954 echo "$ac_t""found" 1>&6
955else
956 AUTOMAKE="$missing_dir/missing automake"
957 echo "$ac_t""missing" 1>&6
958fi
959
960echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
961echo "configure:962: checking for working autoheader" >&5
962# Run test in a subshell; some versions of sh will print an error if
963# an executable is not found, even if stderr is redirected.
964# Redirect stdin to placate older versions of autoconf. Sigh.
965if (autoheader --version) < /dev/null > /dev/null 2>&1; then
966 AUTOHEADER=autoheader
967 echo "$ac_t""found" 1>&6
968else
969 AUTOHEADER="$missing_dir/missing autoheader"
970 echo "$ac_t""missing" 1>&6
971fi
972
973echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
974echo "configure:975: checking for working makeinfo" >&5
975# Run test in a subshell; some versions of sh will print an error if
976# an executable is not found, even if stderr is redirected.
977# Redirect stdin to placate older versions of autoconf. Sigh.
978if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
979 MAKEINFO=makeinfo
980 echo "$ac_t""found" 1>&6
981else
982 MAKEINFO="$missing_dir/missing makeinfo"
983 echo "$ac_t""missing" 1>&6
984fi
985
986
987
988
989
990echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
991echo "configure:992: checking whether to enable maintainer-specific portions of Makefiles" >&5
992 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
993if test "${enable_maintainer_mode+set}" = set; then
994 enableval="$enable_maintainer_mode"
995 USE_MAINTAINER_MODE=$enableval
996else
997 USE_MAINTAINER_MODE=no
998fi
999
1000 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1001
1002
1003if test $USE_MAINTAINER_MODE = yes; then
1004 MAINTAINER_MODE_TRUE=
1005 MAINTAINER_MODE_FALSE='#'
1006else
1007 MAINTAINER_MODE_TRUE='#'
1008 MAINTAINER_MODE_FALSE=
1009fi
1010 MAINT=$MAINTAINER_MODE_TRUE
1011
1012
1013
1014# Extract the first word of "gcc", so it can be a program name with args.
1015set dummy gcc; ac_word=$2
1016echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1017echo "configure:1018: checking for $ac_word" >&5
1018if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1019 echo $ac_n "(cached) $ac_c" 1>&6
1020else
1021 if test -n "$CC"; then
1022 ac_cv_prog_CC="$CC" # Let the user override the test.
1023else
1024 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1025 ac_dummy="$PATH"
1026 for ac_dir in $ac_dummy; do
1027 test -z "$ac_dir" && ac_dir=.
1028 if test -f $ac_dir/$ac_word -o \
1029 -f $ac_dir/$ac_word$ac_exeext ; then
1030 ac_cv_prog_CC="gcc"
1031 break
1032 fi
1033 done
1034 IFS="$ac_save_ifs"
1035fi
1036fi
1037CC="$ac_cv_prog_CC"
1038if test -n "$CC"; then
1039 echo "$ac_t""$CC" 1>&6
1040else
1041 echo "$ac_t""no" 1>&6
1042fi
1043
1044if test -z "$CC"; then
1045 # Extract the first word of "cc", so it can be a program name with args.
1046set dummy cc; ac_word=$2
1047echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1048echo "configure:1049: checking for $ac_word" >&5
1049if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1050 echo $ac_n "(cached) $ac_c" 1>&6
1051else
1052 if test -n "$CC"; then
1053 ac_cv_prog_CC="$CC" # Let the user override the test.
1054else
1055 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1056 ac_prog_rejected=no
1057 ac_dummy="$PATH"
1058 for ac_dir in $ac_dummy; do
1059 test -z "$ac_dir" && ac_dir=.
1060 if test -f $ac_dir/$ac_word -o \
1061 -f $ac_dir/$ac_word$ac_exeext ; then
1062 if test "$ac_dir/$ac_word" = "/usr/ucb/cc" -o \
1063 "$ac_dir/$ac_word$ac_exeext" = "/usr/ucb/cc" ; then
1064 ac_prog_rejected=yes
1065 continue
1066 fi
1067 ac_cv_prog_CC="cc"
1068 break
1069 fi
1070 done
1071 IFS="$ac_save_ifs"
1072if test $ac_prog_rejected = yes; then
1073 # We found a bogon in the path, so make sure we never use it.
1074 set dummy $ac_cv_prog_CC
1075 shift
1076 if test $# -gt 0; then
1077 # We chose a different compiler from the bogus one.
1078 # However, it has the same basename, so the bogon will be chosen
1079 # first if we set CC to just the basename; use the full file name.
1080 shift
1081 set dummy "$ac_dir/$ac_word" "$@"
1082 shift
1083 ac_cv_prog_CC="$@"
1084 fi
1085fi
1086fi
1087fi
1088CC="$ac_cv_prog_CC"
1089if test -n "$CC"; then
1090 echo "$ac_t""$CC" 1>&6
1091else
1092 echo "$ac_t""no" 1>&6
1093fi
1094
1095 if test -z "$CC"; then
1096 case "`uname -s`" in
1097 *win32* | *WIN32*)
1098 # Extract the first word of "cl", so it can be a program name with args.
1099set dummy cl; ac_word=$2
1100echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1101echo "configure:1102: checking for $ac_word" >&5
1102if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1103 echo $ac_n "(cached) $ac_c" 1>&6
1104else
1105 if test -n "$CC"; then
1106 ac_cv_prog_CC="$CC" # Let the user override the test.
1107else
1108 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1109 ac_dummy="$PATH"
1110 for ac_dir in $ac_dummy; do
1111 test -z "$ac_dir" && ac_dir=.
1112 if test -f $ac_dir/$ac_word -o \
1113 -f $ac_dir/$ac_word$ac_exeext ; then
1114 ac_cv_prog_CC="cl"
1115 break
1116 fi
1117 done
1118 IFS="$ac_save_ifs"
1119fi
1120fi
1121CC="$ac_cv_prog_CC"
1122if test -n "$CC"; then
1123 echo "$ac_t""$CC" 1>&6
1124else
1125 echo "$ac_t""no" 1>&6
1126fi
1127 ;;
1128 esac
1129 fi
1130 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1131fi
1132
1133echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1134echo "configure:1135: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1135
1136ac_ext=c
1137# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1138ac_cpp='$CPP $CPPFLAGS'
1139ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1140ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1141cross_compiling=$ac_cv_prog_cc_cross
1142
1143cat > conftest.$ac_ext << EOF
1144
1145#line 1146 "configure"
1146#include "confdefs.h"
1147
1148main(){return(0);}
1149EOF
1150if { (eval echo configure:1151: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1151 ac_cv_prog_cc_works=yes
1152 # If we can't run a trivial program, we are probably using a cross compiler.
1153 if (./conftest; exit) 2>/dev/null; then
1154 ac_cv_prog_cc_cross=no
1155 else
1156 ac_cv_prog_cc_cross=yes
1157 fi
1158else
1159 echo "configure: failed program was:" >&5
1160 cat conftest.$ac_ext >&5
1161 ac_cv_prog_cc_works=no
1162fi
1163rm -fr conftest*
1164ac_ext=c
1165# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1166ac_cpp='$CPP $CPPFLAGS'
1167ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1168ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1169cross_compiling=$ac_cv_prog_cc_cross
1170
1171echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1172if test $ac_cv_prog_cc_works = no; then
1173 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1174fi
1175echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1176echo "configure:1177: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1177echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1178cross_compiling=$ac_cv_prog_cc_cross
1179
1180echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1181echo "configure:1182: checking whether we are using GNU C" >&5
1182if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1183 echo $ac_n "(cached) $ac_c" 1>&6
1184else
1185 cat > conftest.c <<EOF
1186#ifdef __GNUC__
1187 yes;
1188#endif
1189EOF
1190if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1191: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1191 ac_cv_prog_gcc=yes
1192else
1193 ac_cv_prog_gcc=no
1194fi
1195fi
1196
1197echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1198
1199if test $ac_cv_prog_gcc = yes; then
1200 GCC=yes
1201else
1202 GCC=
1203fi
1204
1205ac_test_CFLAGS="${CFLAGS+set}"
1206ac_save_CFLAGS="$CFLAGS"
1207CFLAGS=
1208echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1209echo "configure:1210: checking whether ${CC-cc} accepts -g" >&5
1210if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1211 echo $ac_n "(cached) $ac_c" 1>&6
1212else
1213 echo 'void f(){}' > conftest.c
1214if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1215 ac_cv_prog_cc_g=yes
1216else
1217 ac_cv_prog_cc_g=no
1218fi
1219rm -f conftest*
1220
1221fi
1222
1223echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1224if test "$ac_test_CFLAGS" = set; then
1225 CFLAGS="$ac_save_CFLAGS"
1226elif test $ac_cv_prog_cc_g = yes; then
1227 if test "$GCC" = yes; then
1228 CFLAGS="-g -O2"
1229 else
1230 CFLAGS="-g"
1231 fi
1232else
1233 if test "$GCC" = yes; then
1234 CFLAGS="-O2"
1235 else
1236 CFLAGS=
1237 fi
1238fi
1239
1240echo $ac_n "checking for working const""... $ac_c" 1>&6
1241echo "configure:1242: checking for working const" >&5
1242if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1243 echo $ac_n "(cached) $ac_c" 1>&6
1244else
1245 cat > conftest.$ac_ext <<EOF
1246#line 1247 "configure"
1247#include "confdefs.h"
1248
1249int main() {
1250
1251/* Ultrix mips cc rejects this. */
1252typedef int charset[2]; const charset x;
1253/* SunOS 4.1.1 cc rejects this. */
1254char const *const *ccp;
1255char **p;
1256/* NEC SVR4.0.2 mips cc rejects this. */
1257struct point {int x, y;};
1258static struct point const zero = {0,0};
1259/* AIX XL C 1.02.0.0 rejects this.
1260 It does not let you subtract one const X* pointer from another in an arm
1261 of an if-expression whose if-part is not a constant expression */
1262const char *g = "string";
1263ccp = &g + (g ? g-g : 0);
1264/* HPUX 7.0 cc rejects these. */
1265++ccp;
1266p = (char**) ccp;
1267ccp = (char const *const *) p;
1268{ /* SCO 3.2v4 cc rejects this. */
1269 char *t;
1270 char const *s = 0 ? (char *) 0 : (char const *) 0;
1271
1272 *t++ = 0;
1273}
1274{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
1275 int x[] = {25, 17};
1276 const int *foo = &x[0];
1277 ++foo;
1278}
1279{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1280 typedef const int *iptr;
1281 iptr p = 0;
1282 ++p;
1283}
1284{ /* AIX XL C 1.02.0.0 rejects this saying
1285 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1286 struct s { int j; const int *ap[3]; };
1287 struct s *b; b->j = 5;
1288}
1289{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1290 const int foo = 10;
1291}
1292
1293; return 0; }
1294EOF
1295if { (eval echo configure:1296: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1296 rm -rf conftest*
1297 ac_cv_c_const=yes
1298else
1299 echo "configure: failed program was:" >&5
1300 cat conftest.$ac_ext >&5
1301 rm -rf conftest*
1302 ac_cv_c_const=no
1303fi
1304rm -f conftest*
1305fi
1306
1307echo "$ac_t""$ac_cv_c_const" 1>&6
1308if test $ac_cv_c_const = no; then
1309 cat >> confdefs.h <<\EOF
1310#define const
1311EOF
1312
1313fi
1314
1315echo $ac_n "checking for inline""... $ac_c" 1>&6
1316echo "configure:1317: checking for inline" >&5
1317if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1318 echo $ac_n "(cached) $ac_c" 1>&6
1319else
1320 ac_cv_c_inline=no
1321for ac_kw in inline __inline__ __inline; do
1322 cat > conftest.$ac_ext <<EOF
1323#line 1324 "configure"
1324#include "confdefs.h"
1325
1326int main() {
1327} $ac_kw foo() {
1328; return 0; }
1329EOF
1330if { (eval echo configure:1331: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1331 rm -rf conftest*
1332 ac_cv_c_inline=$ac_kw; break
1333else
1334 echo "configure: failed program was:" >&5
1335 cat conftest.$ac_ext >&5
1336fi
1337rm -f conftest*
1338done
1339
1340fi
1341
1342echo "$ac_t""$ac_cv_c_inline" 1>&6
1343case "$ac_cv_c_inline" in
1344 inline | yes) ;;
1345 no) cat >> confdefs.h <<\EOF
1346#define inline
1347EOF
1348 ;;
1349 *) cat >> confdefs.h <<EOF
1350#define inline $ac_cv_c_inline
1351EOF
1352 ;;
1353esac
1354
1355
1356
1357# Check whether --enable-shared or --disable-shared was given.
1358if test "${enable_shared+set}" = set; then
1359 enableval="$enable_shared"
1360 p=${PACKAGE-default}
1361case "$enableval" in
1362yes) enable_shared=yes ;;
1363no) enable_shared=no ;;
1364*)
1365 enable_shared=no
1366 # Look at the argument we got. We use all the common list separators.
1367 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1368 for pkg in $enableval; do
1369 if test "X$pkg" = "X$p"; then
1370 enable_shared=yes
1371 fi
1372 done
1373 IFS="$ac_save_ifs"
1374 ;;
1375esac
1376else
1377 enable_shared=yes
1378fi
1379
1380# Check whether --enable-static or --disable-static was given.
1381if test "${enable_static+set}" = set; then
1382 enableval="$enable_static"
1383 p=${PACKAGE-default}
1384case "$enableval" in
1385yes) enable_static=yes ;;
1386no) enable_static=no ;;
1387*)
1388 enable_static=no
1389 # Look at the argument we got. We use all the common list separators.
1390 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1391 for pkg in $enableval; do
1392 if test "X$pkg" = "X$p"; then
1393 enable_static=yes
1394 fi
1395 done
1396 IFS="$ac_save_ifs"
1397 ;;
1398esac
1399else
1400 enable_static=yes
1401fi
1402
1403# Check whether --enable-fast-install or --disable-fast-install was given.
1404if test "${enable_fast_install+set}" = set; then
1405 enableval="$enable_fast_install"
1406 p=${PACKAGE-default}
1407case "$enableval" in
1408yes) enable_fast_install=yes ;;
1409no) enable_fast_install=no ;;
1410*)
1411 enable_fast_install=no
1412 # Look at the argument we got. We use all the common list separators.
1413 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1414 for pkg in $enableval; do
1415 if test "X$pkg" = "X$p"; then
1416 enable_fast_install=yes
1417 fi
1418 done
1419 IFS="$ac_save_ifs"
1420 ;;
1421esac
1422else
1423 enable_fast_install=yes
1424fi
1425
1426
1427# Make sure we can run config.sub.
1428if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1429else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1430fi
1431
1432echo $ac_n "checking host system type""... $ac_c" 1>&6
1433echo "configure:1434: checking host system type" >&5
1434
1435host_alias=$host
1436case "$host_alias" in
1437NONE)
1438 case $nonopt in
1439 NONE)
1440 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1441 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1442 fi ;;
1443 *) host_alias=$nonopt ;;
1444 esac ;;
1445esac
1446
1447host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1448host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1449host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1450host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1451echo "$ac_t""$host" 1>&6
1452
1453echo $ac_n "checking build system type""... $ac_c" 1>&6
1454echo "configure:1455: checking build system type" >&5
1455
1456build_alias=$build
1457case "$build_alias" in
1458NONE)
1459 case $nonopt in
1460 NONE) build_alias=$host_alias ;;
1461 *) build_alias=$nonopt ;;
1462 esac ;;
1463esac
1464
1465build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
1466build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1467build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1468build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1469echo "$ac_t""$build" 1>&6
1470
1471# Check whether --with-gnu-ld or --without-gnu-ld was given.
1472if test "${with_gnu_ld+set}" = set; then
1473 withval="$with_gnu_ld"
1474 test "$withval" = no || with_gnu_ld=yes
1475else
1476 with_gnu_ld=no
1477fi
1478
1479ac_prog=ld
1480if test "$ac_cv_prog_gcc" = yes; then
1481 # Check if gcc -print-prog-name=ld gives a path.
1482 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1483echo "configure:1484: checking for ld used by GCC" >&5
1484 case $host in
1485 *-*-mingw*)
1486 # gcc leaves a trailing carriage return which upsets mingw
1487 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
1488 *)
1489 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
1490 esac
1491 case "$ac_prog" in
1492 # Accept absolute paths.
1493 [\\/]* | [A-Za-z]:[\\/]*)
1494 re_direlt='/[^/][^/]*/\.\./'
1495 # Canonicalize the path of ld
1496 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1497 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1498 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1499 done
1500 test -z "$LD" && LD="$ac_prog"
1501 ;;
1502 "")
1503 # If it fails, then pretend we aren't using GCC.
1504 ac_prog=ld
1505 ;;
1506 *)
1507 # If it is relative, then search for the first ld in PATH.
1508 with_gnu_ld=unknown
1509 ;;
1510 esac
1511elif test "$with_gnu_ld" = yes; then
1512 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1513echo "configure:1514: checking for GNU ld" >&5
1514else
1515 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1516echo "configure:1517: checking for non-GNU ld" >&5
1517fi
1518if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1519 echo $ac_n "(cached) $ac_c" 1>&6
1520else
1521 if test -z "$LD"; then
1522 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1523 for ac_dir in $PATH; do
1524 test -z "$ac_dir" && ac_dir=.
1525 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1526 ac_cv_path_LD="$ac_dir/$ac_prog"
1527 # Check to see if the program is GNU ld. I'd rather use --version,
1528 # but apparently some GNU ld's only accept -v.
1529 # Break only if it was the GNU/non-GNU ld that we prefer.
1530 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1531 test "$with_gnu_ld" != no && break
1532 else
1533 test "$with_gnu_ld" != yes && break
1534 fi
1535 fi
1536 done
1537 IFS="$ac_save_ifs"
1538else
1539 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1540fi
1541fi
1542
1543LD="$ac_cv_path_LD"
1544if test -n "$LD"; then
1545 echo "$ac_t""$LD" 1>&6
1546else
1547 echo "$ac_t""no" 1>&6
1548fi
1549test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1550echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1551echo "configure:1552: checking if the linker ($LD) is GNU ld" >&5
1552if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1553 echo $ac_n "(cached) $ac_c" 1>&6
1554else
1555 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1556if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1557 ac_cv_prog_gnu_ld=yes
1558else
1559 ac_cv_prog_gnu_ld=no
1560fi
1561fi
1562
1563echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1564with_gnu_ld=$ac_cv_prog_gnu_ld
1565
1566
1567echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
1568echo "configure:1569: checking for $LD option to reload object files" >&5
1569if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
1570 echo $ac_n "(cached) $ac_c" 1>&6
1571else
1572 lt_cv_ld_reload_flag='-r'
1573fi
1574
1575echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
1576reload_flag=$lt_cv_ld_reload_flag
1577test -n "$reload_flag" && reload_flag=" $reload_flag"
1578
1579echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1580echo "configure:1581: checking for BSD-compatible nm" >&5
1581if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1582 echo $ac_n "(cached) $ac_c" 1>&6
1583else
1584 if test -n "$NM"; then
1585 # Let the user override the test.
1586 ac_cv_path_NM="$NM"
1587else
1588 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1589 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1590 test -z "$ac_dir" && ac_dir=.
1591 tmp_nm=$ac_dir/${ac_tool_prefix}nm
1592 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
1593 # Check to see if the nm accepts a BSD-compat flag.
1594 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1595 # nm: unknown option "B" ignored
1596 # Tru64's nm complains that /dev/null is an invalid object file
1597 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
1598 ac_cv_path_NM="$tmp_nm -B"
1599 break
1600 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1601 ac_cv_path_NM="$tmp_nm -p"
1602 break
1603 else
1604 ac_cv_path_NM=${ac_cv_path_NM="$tmp_nm"} # keep the first match, but
1605 continue # so that we can try to find one that supports BSD flags
1606 fi
1607 fi
1608 done
1609 IFS="$ac_save_ifs"
1610 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1611fi
1612fi
1613
1614NM="$ac_cv_path_NM"
1615echo "$ac_t""$NM" 1>&6
1616
1617echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1618echo "configure:1619: checking whether ln -s works" >&5
1619if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1620 echo $ac_n "(cached) $ac_c" 1>&6
1621else
1622 rm -f conftestdata
1623if ln -s X conftestdata 2>/dev/null
1624then
1625 rm -f conftestdata
1626 ac_cv_prog_LN_S="ln -s"
1627else
1628 echo A > conftestdata;
1629 if ln conftestdata conftestdata2 2>/dev/null; then
1630 ac_cv_prog_LN_S=ln
1631 else
1632 ac_cv_prog_LN_S=cp
1633 fi
1634fi
1635rm -f conftestdata*
1636fi
1637LN_S="$ac_cv_prog_LN_S"
1638if test "$ac_cv_prog_LN_S" = "ln -s"; then
1639 echo "$ac_t""yes" 1>&6
1640else
1641 echo "$ac_t""no" 1>&6
1642fi
1643
1644echo $ac_n "checking how to recognise dependant libraries""... $ac_c" 1>&6
1645echo "configure:1646: checking how to recognise dependant libraries" >&5
1646if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
1647 echo $ac_n "(cached) $ac_c" 1>&6
1648else
1649 lt_cv_file_magic_cmd='${MAGIC}'
1650lt_cv_file_magic_test_file=
1651lt_cv_deplibs_check_method='unknown'
1652# Need to set the preceding variable on all platforms that support
1653# interlibrary dependencies.
1654# 'none' -- dependencies not supported.
1655# `unknown' -- same as none, but documents that we really don't know.
1656# 'pass_all' -- all dependencies passed with no checks.
1657# 'test_compile' -- check by making test program.
1658# 'file_magic [regex]' -- check by looking for files in library path
1659# which responds to the $file_magic_cmd with a given egrep regex.
1660# If you have `file' or equivalent on your system and you're not sure
1661# whether `pass_all' will *always* work, you probably want this one.
1662
1663case "$host_os" in
1664aix4*)
1665 lt_cv_deplibs_check_method=pass_all
1666 ;;
1667
1668beos*)
1669 lt_cv_deplibs_check_method=pass_all
1670 ;;
1671
1672bsdi4*)
1673 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
1674 lt_cv_file_magic_cmd='/usr/bin/file -L'
1675 lt_cv_file_magic_test_file=/shlib/libc.so
1676 ;;
1677
1678cygwin* | mingw*)
1679 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
1680 lt_cv_file_magic_cmd='${OBJDUMP} -f'
1681 ;;
1682
1683freebsd* )
1684 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
1685 case "$host_cpu" in
1686 i*86 )
1687 # Not sure whether the presence of OpenBSD here was a mistake.
1688 # Let's accept both of them until this is cleared up.
1689 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
1690 lt_cv_file_magic_cmd=/usr/bin/file
1691 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
1692 ;;
1693 esac
1694 else
1695 lt_cv_deplibs_check_method=pass_all
1696 fi
1697 ;;
1698
1699gnu*)
1700 lt_cv_deplibs_check_method=pass_all
1701 ;;
1702
1703hpux10.20*)
1704 # TODO: Does this work for hpux-11 too?
1705 lt_cv_deplibs_check_method='file_magic (s0-90-90-9|PA-RISC0-9.0-9) shared library'
1706 lt_cv_file_magic_cmd=/usr/bin/file
1707 lt_cv_file_magic_test_file=/usr/lib/libc.sl
1708 ;;
1709
1710irix5* | irix6*)
1711 case "$host_os" in
1712 irix5*)
1713 # this will be overridden with pass_all, but let us keep it just in case
1714 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
1715 ;;
1716 *)
1717 case "$LD" in
1718 *-32|*"-32 ") libmagic=32-bit;;
1719 *-n32|*"-n32 ") libmagic=N32;;
1720 *-64|*"-64 ") libmagic=64-bit;;
1721 *) libmagic=never-match;;
1722 esac
1723 # this will be overridden with pass_all, but let us keep it just in case
1724 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
1725 ;;
1726 esac
1727 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
1728 lt_cv_deplibs_check_method=pass_all
1729 ;;
1730
1731# This must be Linux ELF.
1732linux-gnu*)
1733 case "$host_cpu" in
1734 alpha* | i*86 | powerpc* | sparc* | ia64* )
1735 lt_cv_deplibs_check_method=pass_all ;;
1736 *)
1737 # glibc up to 2.1.1 does not perform some relocations on ARM
1738 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
1739 esac
1740 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
1741 ;;
1742
1743netbsd*)
1744 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then :
1745 else
1746 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
1747 lt_cv_file_magic_cmd='/usr/bin/file -L'
1748 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1749 fi
1750 ;;
1751
1752osf3* | osf4* | osf5*)
1753 # this will be overridden with pass_all, but let us keep it just in case
1754 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
1755 lt_cv_file_magic_test_file=/shlib/libc.so
1756 lt_cv_deplibs_check_method=pass_all
1757 ;;
1758
1759sco3.2v5*)
1760 lt_cv_deplibs_check_method=pass_all
1761 ;;
1762
1763solaris*)
1764 lt_cv_deplibs_check_method=pass_all
1765 lt_cv_file_magic_test_file=/lib/libc.so
1766 ;;
1767
1768sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
1769 case "$host_vendor" in
1770 ncr)
1771 lt_cv_deplibs_check_method=pass_all
1772 ;;
1773 motorola)
1774 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]'
1775 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
1776 ;;
1777 esac
1778 ;;
1779esac
1780
1781fi
1782
1783echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
1784file_magic_cmd=$lt_cv_file_magic_cmd
1785deplibs_check_method=$lt_cv_deplibs_check_method
1786
1787echo $ac_n "checking for object suffix""... $ac_c" 1>&6
1788echo "configure:1789: checking for object suffix" >&5
1789if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
1790 echo $ac_n "(cached) $ac_c" 1>&6
1791else
1792 rm -f conftest*
1793echo 'int i = 1;' > conftest.$ac_ext
1794if { (eval echo configure:1795: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1795 for ac_file in conftest.*; do
1796 case $ac_file in
1797 *.c) ;;
1798 *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
1799 esac
1800 done
1801else
1802 { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
1803fi
1804rm -f conftest*
1805fi
1806
1807echo "$ac_t""$ac_cv_objext" 1>&6
1808OBJEXT=$ac_cv_objext
1809ac_objext=$ac_cv_objext
1810
1811if test $host != $build; then
1812 ac_tool_prefix=${host_alias}-
1813else
1814 ac_tool_prefix=
1815fi
1816
1817# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
1818
1819# Only perform the check for file, if the check method requires it
1820case "$deplibs_check_method" in
1821file_magic*)
1822 if test "$file_magic_cmd" = '${MAGIC}'; then
1823 echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
1824echo "configure:1825: checking for ${ac_tool_prefix}file" >&5
1825if eval "test \"`echo '$''{'lt_cv_path_MAGIC'+set}'`\" = set"; then
1826 echo $ac_n "(cached) $ac_c" 1>&6
1827else
1828 case "$MAGIC" in
1829 /*)
1830 lt_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path.
1831 ;;
1832 ?:/*)
1833 ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a dos path.
1834 ;;
1835 *)
1836 ac_save_MAGIC="$MAGIC"
1837 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1838 ac_dummy="/usr/bin:$PATH"
1839 for ac_dir in $ac_dummy; do
1840 test -z "$ac_dir" && ac_dir=.
1841 if test -f $ac_dir/${ac_tool_prefix}file; then
1842 lt_cv_path_MAGIC="$ac_dir/${ac_tool_prefix}file"
1843 if test -n "$file_magic_test_file"; then
1844 case "$deplibs_check_method" in
1845 "file_magic "*)
1846 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1847 MAGIC="$lt_cv_path_MAGIC"
1848 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1849 egrep "$file_magic_regex" > /dev/null; then
1850 :
1851 else
1852 cat <<EOF 1>&2
1853
1854*** Warning: the command libtool uses to detect shared libraries,
1855*** $file_magic_cmd, produces output that libtool cannot recognize.
1856*** The result is that libtool may fail to recognize shared libraries
1857*** as such. This will affect the creation of libtool libraries that
1858*** depend on shared libraries, but programs linked with such libtool
1859*** libraries will work regardless of this problem. Nevertheless, you
1860*** may want to report the problem to your system manager and/or to
1861*** bug-libtool@gnu.org
1862
1863EOF
1864 fi ;;
1865 esac
1866 fi
1867 break
1868 fi
1869 done
1870 IFS="$ac_save_ifs"
1871 MAGIC="$ac_save_MAGIC"
1872 ;;
1873esac
1874fi
1875
1876MAGIC="$lt_cv_path_MAGIC"
1877if test -n "$MAGIC"; then
1878 echo "$ac_t""$MAGIC" 1>&6
1879else
1880 echo "$ac_t""no" 1>&6
1881fi
1882
1883if test -z "$lt_cv_path_MAGIC"; then
1884 if test -n "$ac_tool_prefix"; then
1885 echo $ac_n "checking for file""... $ac_c" 1>&6
1886echo "configure:1887: checking for file" >&5
1887if eval "test \"`echo '$''{'lt_cv_path_MAGIC'+set}'`\" = set"; then
1888 echo $ac_n "(cached) $ac_c" 1>&6
1889else
1890 case "$MAGIC" in
1891 /*)
1892 lt_cv_path_MAGIC="$MAGIC" # Let the user override the test with a path.
1893 ;;
1894 ?:/*)
1895 ac_cv_path_MAGIC="$MAGIC" # Let the user override the test with a dos path.
1896 ;;
1897 *)
1898 ac_save_MAGIC="$MAGIC"
1899 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1900 ac_dummy="/usr/bin:$PATH"
1901 for ac_dir in $ac_dummy; do
1902 test -z "$ac_dir" && ac_dir=.
1903 if test -f $ac_dir/file; then
1904 lt_cv_path_MAGIC="$ac_dir/file"
1905 if test -n "$file_magic_test_file"; then
1906 case "$deplibs_check_method" in
1907 "file_magic "*)
1908 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
1909 MAGIC="$lt_cv_path_MAGIC"
1910 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
1911 egrep "$file_magic_regex" > /dev/null; then
1912 :
1913 else
1914 cat <<EOF 1>&2
1915
1916*** Warning: the command libtool uses to detect shared libraries,
1917*** $file_magic_cmd, produces output that libtool cannot recognize.
1918*** The result is that libtool may fail to recognize shared libraries
1919*** as such. This will affect the creation of libtool libraries that
1920*** depend on shared libraries, but programs linked with such libtool
1921*** libraries will work regardless of this problem. Nevertheless, you
1922*** may want to report the problem to your system manager and/or to
1923*** bug-libtool@gnu.org
1924
1925EOF
1926 fi ;;
1927 esac
1928 fi
1929 break
1930 fi
1931 done
1932 IFS="$ac_save_ifs"
1933 MAGIC="$ac_save_MAGIC"
1934 ;;
1935esac
1936fi
1937
1938MAGIC="$lt_cv_path_MAGIC"
1939if test -n "$MAGIC"; then
1940 echo "$ac_t""$MAGIC" 1>&6
1941else
1942 echo "$ac_t""no" 1>&6
1943fi
1944
1945 else
1946 MAGIC=:
1947 fi
1948fi
1949
1950 fi
1951 ;;
1952esac
1953
1954# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1955set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1956echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1957echo "configure:1958: checking for $ac_word" >&5
1958if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1959 echo $ac_n "(cached) $ac_c" 1>&6
1960else
1961 if test -n "$RANLIB"; then
1962 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1963else
1964 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1965 ac_dummy="$PATH"
1966 for ac_dir in $ac_dummy; do
1967 test -z "$ac_dir" && ac_dir=.
1968 if test -f $ac_dir/$ac_word -o \
1969 -f $ac_dir/$ac_word$ac_exeext ; then
1970 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1971 break
1972 fi
1973 done
1974 IFS="$ac_save_ifs"
1975fi
1976fi
1977RANLIB="$ac_cv_prog_RANLIB"
1978if test -n "$RANLIB"; then
1979 echo "$ac_t""$RANLIB" 1>&6
1980else
1981 echo "$ac_t""no" 1>&6
1982fi
1983
1984
1985if test -z "$ac_cv_prog_RANLIB"; then
1986if test -n "$ac_tool_prefix"; then
1987 # Extract the first word of "ranlib", so it can be a program name with args.
1988set dummy ranlib; ac_word=$2
1989echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1990echo "configure:1991: checking for $ac_word" >&5
1991if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1992 echo $ac_n "(cached) $ac_c" 1>&6
1993else
1994 if test -n "$RANLIB"; then
1995 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1996else
1997 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
1998 ac_dummy="$PATH"
1999 for ac_dir in $ac_dummy; do
2000 test -z "$ac_dir" && ac_dir=.
2001 if test -f $ac_dir/$ac_word -o \
2002 -f $ac_dir/$ac_word$ac_exeext ; then
2003 ac_cv_prog_RANLIB="ranlib"
2004 break
2005 fi
2006 done
2007 IFS="$ac_save_ifs"
2008 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2009fi
2010fi
2011RANLIB="$ac_cv_prog_RANLIB"
2012if test -n "$RANLIB"; then
2013 echo "$ac_t""$RANLIB" 1>&6
2014else
2015 echo "$ac_t""no" 1>&6
2016fi
2017
2018else
2019 RANLIB=":"
2020fi
2021fi
2022
2023# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2024set dummy ${ac_tool_prefix}strip; ac_word=$2
2025echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2026echo "configure:2027: checking for $ac_word" >&5
2027if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2028 echo $ac_n "(cached) $ac_c" 1>&6
2029else
2030 if test -n "$STRIP"; then
2031 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2032else
2033 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2034 ac_dummy="$PATH"
2035 for ac_dir in $ac_dummy; do
2036 test -z "$ac_dir" && ac_dir=.
2037 if test -f $ac_dir/$ac_word -o \
2038 -f $ac_dir/$ac_word$ac_exeext ; then
2039 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2040 break
2041 fi
2042 done
2043 IFS="$ac_save_ifs"
2044fi
2045fi
2046STRIP="$ac_cv_prog_STRIP"
2047if test -n "$STRIP"; then
2048 echo "$ac_t""$STRIP" 1>&6
2049else
2050 echo "$ac_t""no" 1>&6
2051fi
2052
2053
2054if test -z "$ac_cv_prog_STRIP"; then
2055if test -n "$ac_tool_prefix"; then
2056 # Extract the first word of "strip", so it can be a program name with args.
2057set dummy strip; ac_word=$2
2058echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2059echo "configure:2060: checking for $ac_word" >&5
2060if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
2061 echo $ac_n "(cached) $ac_c" 1>&6
2062else
2063 if test -n "$STRIP"; then
2064 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2065else
2066 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2067 ac_dummy="$PATH"
2068 for ac_dir in $ac_dummy; do
2069 test -z "$ac_dir" && ac_dir=.
2070 if test -f $ac_dir/$ac_word -o \
2071 -f $ac_dir/$ac_word$ac_exeext ; then
2072 ac_cv_prog_STRIP="strip"
2073 break
2074 fi
2075 done
2076 IFS="$ac_save_ifs"
2077 test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
2078fi
2079fi
2080STRIP="$ac_cv_prog_STRIP"
2081if test -n "$STRIP"; then
2082 echo "$ac_t""$STRIP" 1>&6
2083else
2084 echo "$ac_t""no" 1>&6
2085fi
2086
2087else
2088 STRIP=":"
2089fi
2090fi
2091
2092
2093# Check for any special flags to pass to ltconfig.
2094libtool_flags="--cache-file=$cache_file"
2095test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
2096test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
2097test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
2098test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
2099test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
2100
2101libtool_flags="$libtool_flags --enable-win32-dll"
2102# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
2103if test "${enable_libtool_lock+set}" = set; then
2104 enableval="$enable_libtool_lock"
2105 :
2106fi
2107
2108test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
2109test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
2110
2111# Check whether --with-pic or --without-pic was given.
2112if test "${with_pic+set}" = set; then
2113 withval="$with_pic"
2114 pic_mode="$withval"
2115else
2116 pic_mode=default
2117fi
2118
2119test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic"
2120test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic"
2121
2122# Some flags need to be propagated to the compiler or linker for good
2123# libtool support.
2124case "$host" in
2125*-*-irix6*)
2126 # Find out which ABI we are using.
2127 echo '#line 2128 "configure"' > conftest.$ac_ext
2128 if { (eval echo configure:2129: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2129 case "`/usr/bin/file conftest.o`" in
2130 *32-bit*)
2131 LD="${LD-ld} -32"
2132 ;;
2133 *N32*)
2134 LD="${LD-ld} -n32"
2135 ;;
2136 *64-bit*)
2137 LD="${LD-ld} -64"
2138 ;;
2139 esac
2140 fi
2141 rm -rf conftest*
2142 ;;
2143
2144*-*-sco3.2v5*)
2145 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
2146 SAVE_CFLAGS="$CFLAGS"
2147 CFLAGS="$CFLAGS -belf"
2148 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
2149echo "configure:2150: checking whether the C compiler needs -belf" >&5
2150if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
2151 echo $ac_n "(cached) $ac_c" 1>&6
2152else
2153
2154 ac_ext=c
2155# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2156ac_cpp='$CPP $CPPFLAGS'
2157ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2158ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2159cross_compiling=$ac_cv_prog_cc_cross
2160
2161 cat > conftest.$ac_ext <<EOF
2162#line 2163 "configure"
2163#include "confdefs.h"
2164
2165int main() {
2166
2167; return 0; }
2168EOF
2169if { (eval echo configure:2170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2170 rm -rf conftest*
2171 lt_cv_cc_needs_belf=yes
2172else
2173 echo "configure: failed program was:" >&5
2174 cat conftest.$ac_ext >&5
2175 rm -rf conftest*
2176 lt_cv_cc_needs_belf=no
2177fi
2178rm -f conftest*
2179 ac_ext=c
2180# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2181ac_cpp='$CPP $CPPFLAGS'
2182ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2183ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2184cross_compiling=$ac_cv_prog_cc_cross
2185
2186fi
2187
2188echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
2189 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
2190 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
2191 CFLAGS="$SAVE_CFLAGS"
2192 fi
2193 ;;
2194
2195*-*-cygwin* | *-*-mingw*)
2196 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
2197set dummy ${ac_tool_prefix}dlltool; ac_word=$2
2198echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2199echo "configure:2200: checking for $ac_word" >&5
2200if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2201 echo $ac_n "(cached) $ac_c" 1>&6
2202else
2203 if test -n "$DLLTOOL"; then
2204 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2205else
2206 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2207 ac_dummy="$PATH"
2208 for ac_dir in $ac_dummy; do
2209 test -z "$ac_dir" && ac_dir=.
2210 if test -f $ac_dir/$ac_word -o \
2211 -f $ac_dir/$ac_word$ac_exeext ; then
2212 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
2213 break
2214 fi
2215 done
2216 IFS="$ac_save_ifs"
2217fi
2218fi
2219DLLTOOL="$ac_cv_prog_DLLTOOL"
2220if test -n "$DLLTOOL"; then
2221 echo "$ac_t""$DLLTOOL" 1>&6
2222else
2223 echo "$ac_t""no" 1>&6
2224fi
2225
2226
2227if test -z "$ac_cv_prog_DLLTOOL"; then
2228if test -n "$ac_tool_prefix"; then
2229 # Extract the first word of "dlltool", so it can be a program name with args.
2230set dummy dlltool; ac_word=$2
2231echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2232echo "configure:2233: checking for $ac_word" >&5
2233if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
2234 echo $ac_n "(cached) $ac_c" 1>&6
2235else
2236 if test -n "$DLLTOOL"; then
2237 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
2238else
2239 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2240 ac_dummy="$PATH"
2241 for ac_dir in $ac_dummy; do
2242 test -z "$ac_dir" && ac_dir=.
2243 if test -f $ac_dir/$ac_word -o \
2244 -f $ac_dir/$ac_word$ac_exeext ; then
2245 ac_cv_prog_DLLTOOL="dlltool"
2246 break
2247 fi
2248 done
2249 IFS="$ac_save_ifs"
2250 test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
2251fi
2252fi
2253DLLTOOL="$ac_cv_prog_DLLTOOL"
2254if test -n "$DLLTOOL"; then
2255 echo "$ac_t""$DLLTOOL" 1>&6
2256else
2257 echo "$ac_t""no" 1>&6
2258fi
2259
2260else
2261 DLLTOOL="false"
2262fi
2263fi
2264
2265 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
2266set dummy ${ac_tool_prefix}as; ac_word=$2
2267echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2268echo "configure:2269: checking for $ac_word" >&5
2269if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2270 echo $ac_n "(cached) $ac_c" 1>&6
2271else
2272 if test -n "$AS"; then
2273 ac_cv_prog_AS="$AS" # Let the user override the test.
2274else
2275 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2276 ac_dummy="$PATH"
2277 for ac_dir in $ac_dummy; do
2278 test -z "$ac_dir" && ac_dir=.
2279 if test -f $ac_dir/$ac_word -o \
2280 -f $ac_dir/$ac_word$ac_exeext ; then
2281 ac_cv_prog_AS="${ac_tool_prefix}as"
2282 break
2283 fi
2284 done
2285 IFS="$ac_save_ifs"
2286fi
2287fi
2288AS="$ac_cv_prog_AS"
2289if test -n "$AS"; then
2290 echo "$ac_t""$AS" 1>&6
2291else
2292 echo "$ac_t""no" 1>&6
2293fi
2294
2295
2296if test -z "$ac_cv_prog_AS"; then
2297if test -n "$ac_tool_prefix"; then
2298 # Extract the first word of "as", so it can be a program name with args.
2299set dummy as; ac_word=$2
2300echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2301echo "configure:2302: checking for $ac_word" >&5
2302if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
2303 echo $ac_n "(cached) $ac_c" 1>&6
2304else
2305 if test -n "$AS"; then
2306 ac_cv_prog_AS="$AS" # Let the user override the test.
2307else
2308 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2309 ac_dummy="$PATH"
2310 for ac_dir in $ac_dummy; do
2311 test -z "$ac_dir" && ac_dir=.
2312 if test -f $ac_dir/$ac_word -o \
2313 -f $ac_dir/$ac_word$ac_exeext ; then
2314 ac_cv_prog_AS="as"
2315 break
2316 fi
2317 done
2318 IFS="$ac_save_ifs"
2319 test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
2320fi
2321fi
2322AS="$ac_cv_prog_AS"
2323if test -n "$AS"; then
2324 echo "$ac_t""$AS" 1>&6
2325else
2326 echo "$ac_t""no" 1>&6
2327fi
2328
2329else
2330 AS="false"
2331fi
2332fi
2333
2334 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
2335set dummy ${ac_tool_prefix}objdump; ac_word=$2
2336echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2337echo "configure:2338: checking for $ac_word" >&5
2338if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2339 echo $ac_n "(cached) $ac_c" 1>&6
2340else
2341 if test -n "$OBJDUMP"; then
2342 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2343else
2344 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2345 ac_dummy="$PATH"
2346 for ac_dir in $ac_dummy; do
2347 test -z "$ac_dir" && ac_dir=.
2348 if test -f $ac_dir/$ac_word -o \
2349 -f $ac_dir/$ac_word$ac_exeext ; then
2350 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
2351 break
2352 fi
2353 done
2354 IFS="$ac_save_ifs"
2355fi
2356fi
2357OBJDUMP="$ac_cv_prog_OBJDUMP"
2358if test -n "$OBJDUMP"; then
2359 echo "$ac_t""$OBJDUMP" 1>&6
2360else
2361 echo "$ac_t""no" 1>&6
2362fi
2363
2364
2365if test -z "$ac_cv_prog_OBJDUMP"; then
2366if test -n "$ac_tool_prefix"; then
2367 # Extract the first word of "objdump", so it can be a program name with args.
2368set dummy objdump; ac_word=$2
2369echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2370echo "configure:2371: checking for $ac_word" >&5
2371if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
2372 echo $ac_n "(cached) $ac_c" 1>&6
2373else
2374 if test -n "$OBJDUMP"; then
2375 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
2376else
2377 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS"
2378 ac_dummy="$PATH"
2379 for ac_dir in $ac_dummy; do
2380 test -z "$ac_dir" && ac_dir=.
2381 if test -f $ac_dir/$ac_word -o \
2382 -f $ac_dir/$ac_word$ac_exeext ; then
2383 ac_cv_prog_OBJDUMP="objdump"
2384 break
2385 fi
2386 done
2387 IFS="$ac_save_ifs"
2388 test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
2389fi
2390fi
2391OBJDUMP="$ac_cv_prog_OBJDUMP"
2392if test -n "$OBJDUMP"; then
2393 echo "$ac_t""$OBJDUMP" 1>&6
2394else
2395 echo "$ac_t""no" 1>&6
2396fi
2397
2398else
2399 OBJDUMP="false"
2400fi
2401fi
2402
2403
2404 # recent cygwin and mingw systems supply a stub DllMain which the user
2405 # can override, but on older systems we have to supply one
2406 echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
2407echo "configure:2408: checking if libtool should supply DllMain function" >&5
2408if eval "test \"`echo '$''{'lt_cv_need_dllmain'+set}'`\" = set"; then
2409 echo $ac_n "(cached) $ac_c" 1>&6
2410else
2411 cat > conftest.$ac_ext <<EOF
2412#line 2413 "configure"
2413#include "confdefs.h"
2414
2415int main() {
2416extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
2417 DllMain (0, 0, 0);
2418; return 0; }
2419EOF
2420if { (eval echo configure:2421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2421 rm -rf conftest*
2422 lt_cv_need_dllmain=no
2423else
2424 echo "configure: failed program was:" >&5
2425 cat conftest.$ac_ext >&5
2426 rm -rf conftest*
2427 lt_cv_need_dllmain=yes
2428fi
2429rm -f conftest*
2430fi
2431
2432echo "$ac_t""$lt_cv_need_dllmain" 1>&6
2433
2434 case "$host/$CC" in
2435 *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
2436 # old mingw systems require "-dll" to link a DLL, while more recent ones
2437 # require "-mdll"
2438 SAVE_CFLAGS="$CFLAGS"
2439 CFLAGS="$CFLAGS -mdll"
2440 echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
2441echo "configure:2442: checking how to link DLLs" >&5
2442if eval "test \"`echo '$''{'lt_cv_cc_dll_switch'+set}'`\" = set"; then
2443 echo $ac_n "(cached) $ac_c" 1>&6
2444else
2445 cat > conftest.$ac_ext <<EOF
2446#line 2447 "configure"
2447#include "confdefs.h"
2448
2449int main() {
2450
2451; return 0; }
2452EOF
2453if { (eval echo configure:2454: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2454 rm -rf conftest*
2455 lt_cv_cc_dll_switch=-mdll
2456else
2457 echo "configure: failed program was:" >&5
2458 cat conftest.$ac_ext >&5
2459 rm -rf conftest*
2460 lt_cv_cc_dll_switch=-dll
2461fi
2462rm -f conftest*
2463fi
2464
2465echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
2466 CFLAGS="$SAVE_CFLAGS" ;;
2467 *-*-cygwin*)
2468 # cygwin systems need to pass --dll to the linker, and not link
2469 # crt.o which will require a WinMain@16 definition.
2470 lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
2471 esac
2472 ;;
2473
2474esac
2475
2476
2477# Save cache, so that ltconfig can load it
2478cat > confcache <<\EOF
2479# This file is a shell script that caches the results of configure
2480# tests run on this system so they can be shared between configure
2481# scripts and configure runs. It is not useful on other systems.
2482# If it contains results you don't want to keep, you may remove or edit it.
2483#
2484# By default, configure uses ./config.cache as the cache file,
2485# creating it if it does not exist already. You can give configure
2486# the --cache-file=FILE option to use a different cache file; that is
2487# what configure does when it calls configure scripts in
2488# subdirectories, so they share the cache.
2489# Giving --cache-file=/dev/null disables caching, for debugging configure.
2490# config.status only pays attention to the cache file if you give it the
2491# --recheck option to rerun configure.
2492#
2493EOF
2494# The following way of writing the cache mishandles newlines in values,
2495# but we know of no workaround that is simple, portable, and efficient.
2496# So, don't put newlines in cache variables' values.
2497# Ultrix sh set writes to stderr and can't be redirected directly,
2498# and sets the high bit in the cache file unless we assign to the vars.
2499(set) 2>&1 |
2500 case `(ac_space=' '; set | grep ac_space) 2>&1` in
2501 *ac_space=\ *)
2502 # `set' does not quote correctly, so add quotes (double-quote substitution
2503 # turns \\\\ into \\, and sed turns \\ into \).
2504 sed -n \
2505 -e "s/'/'\\\\''/g" \
2506 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2507 ;;
2508 *)
2509 # `set' quotes correctly as required by POSIX, so do not add quotes.
2510 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2511 ;;
2512 esac >> confcache
2513if cmp -s $cache_file confcache; then
2514 :
2515else
2516 if test -w $cache_file; then
2517 echo "updating cache $cache_file"
2518 cat confcache > $cache_file
2519 else
2520 echo "not updating unwritable cache $cache_file"
2521 fi
2522fi
2523rm -f confcache
2524
2525
2526# Actually configure libtool. ac_aux_dir is where install-sh is found.
2527AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
2528MAGIC="$MAGIC" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
2529LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \
2530AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \
2531objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \
2532deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \
2533${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
2534$libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \
2535|| { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
2536
2537# Reload cache, that may have been modified by ltconfig
2538if test -r "$cache_file"; then
2539 echo "loading cache $cache_file"
2540 . $cache_file
2541else
2542 echo "creating cache $cache_file"
2543 > $cache_file
2544fi
2545
2546
2547# This can be used to rebuild libtool when needed
2548LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh"
2549
2550# Always use our own libtool.
2551LIBTOOL='$(SHELL) $(top_builddir)/libtool'
2552
2553# Redirect the config.log output again, so that the ltconfig log is not
2554# clobbered by the next message.
2555exec 5>>./config.log
2556
2557
2558
2559
2560
2561
2562
2563
2564echo $ac_n "checking for garbage collector to use""... $ac_c" 1>&6
2565echo "configure:2566: checking for garbage collector to use" >&5
2566# Check whether --enable-java-gc or --disable-java-gc was given.
2567if test "${enable_java_gc+set}" = set; then
2568 enableval="$enable_java_gc"
2569
2570 GC=$enableval
2571else
2572 GC=boehm
2573fi
2574
2575
2576GCINCS=
2577if test "$GC" = "boehm"; then
2578 GCINCS='-I$(top_srcdir)/../../boehm-gc/include'
2579 GCINCS="$GCINCS `cat ../../boehm-gc/boehm-cflags`"
2580 cat >> confdefs.h <<\EOF
2581#define HAVE_BOEHM_GC 1
2582EOF
2583
2584fi
2585
2586
2587echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
2588echo "configure:2589: checking how to run the C preprocessor" >&5
2589# On Suns, sometimes $CPP names a directory.
2590if test -n "$CPP" && test -d "$CPP"; then
2591 CPP=
2592fi
2593if test -z "$CPP"; then
2594if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
2595 echo $ac_n "(cached) $ac_c" 1>&6
2596else
2597 # This must be in double quotes, not single quotes, because CPP may get
2598 # substituted into the Makefile and "${CC-cc}" will confuse make.
2599 CPP="${CC-cc} -E"
2600 # On the NeXT, cc -E runs the code through the compiler's parser,
2601 # not just through cpp.
2602 cat > conftest.$ac_ext <<EOF
2603#include <sys/types.h>
2604#line 2605 "configure"
2605#include "confdefs.h"
2606#include <assert.h>
2607Syntax Error
2608EOF
2609ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2610{ (eval echo configure:2611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2611ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2612if test -z "$ac_err"; then
2613 :
2614else
2615 echo "$ac_err" >&5
2616 echo "configure: failed program was:" >&5
2617 cat conftest.$ac_ext >&5
2618 rm -rf conftest*
2619 CPP="${CC-cc} -E -traditional-cpp"
2620 cat > conftest.$ac_ext <<EOF
2621#include <sys/types.h>
2622#line 2623 "configure"
2623#include "confdefs.h"
2624#include <assert.h>
2625Syntax Error
2626EOF
2627ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2628{ (eval echo configure:2629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2629ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2630if test -z "$ac_err"; then
2631 :
2632else
2633 echo "$ac_err" >&5
2634 echo "configure: failed program was:" >&5
2635 cat conftest.$ac_ext >&5
2636 rm -rf conftest*
2637 CPP="${CC-cc} -nologo -E"
2638 cat > conftest.$ac_ext <<EOF
2639#include <sys/types.h>
2640#line 2641 "configure"
2641#include "confdefs.h"
2642#include <assert.h>
2643Syntax Error
2644EOF
2645ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2646{ (eval echo configure:2647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2647ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2648if test -z "$ac_err"; then
2649 :
2650else
2651 echo "$ac_err" >&5
2652 echo "configure: failed program was:" >&5
2653 cat conftest.$ac_ext >&5
2654 rm -rf conftest*
2655 CPP=/lib/cpp
2656fi
2657rm -f conftest*
2658fi
2659rm -f conftest*
2660fi
2661rm -f conftest*
2662 ac_cv_prog_CPP="$CPP"
2663fi
2664 CPP="$ac_cv_prog_CPP"
2665else
2666 ac_cv_prog_CPP="$CPP"
2667fi
2668echo "$ac_t""$CPP" 1>&6
2669
2670# Read the libtool configuration
2671rm -f conftest
2672./libtool --config > conftest
2673. ./conftest
2674rm -f conftest
2675
2676# Check for command to grab the raw symbol name followed by C symbol from nm.
2677echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
2678echo "configure:2679: checking command to parse $NM output" >&5
2679if eval "test \"`echo '$''{'ac_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
2680 echo $ac_n "(cached) $ac_c" 1>&6
2681else
2682 # These are sane defaults that work on at least a few old systems.
2683# {They come from Ultrix. What could be older than Ultrix?!! ;)}
2684
2685# Character class describing NM global symbol codes.
2686ac_symcode='[BCDEGRST]'
2687
2688# Regexp to match symbols that can be accessed directly from C.
2689ac_sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
2690
2691# Transform the above into a raw symbol and a C symbol.
2692ac_symxfrm='\1 \2\3 \3'
2693
2694# Transform an extracted symbol line into a proper C declaration
2695ac_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
2696
2697# Define system-specific variables.
2698case "$host_os" in
2699aix*)
2700 ac_symcode='[BCDT]'
2701 ;;
2702cygwin* | mingw*)
2703 ac_symcode='[ABCDGISTW]'
2704 ;;
2705hpux*)
2706 ac_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^. .* \(.*\)$/extern char \1;/p'"
2707 ;;
2708irix*)
2709 ac_symcode='[BCDEGRST]'
2710 ;;
2711solaris*)
2712 ac_symcode='[BDT]'
2713 ;;
2714esac
2715
2716# If we're using GNU nm, then use its standard symbol codes.
2717if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
2718 ac_symcode='[ABCDGISTW]'
2719fi
2720
2721# Try without a prefix undercore, then with it.
2722for ac_symprfx in "" "_"; do
2723
2724 ac_cv_sys_global_symbol_pipe="sed -n -e 's/^.* \($ac_symcode\) *\($ac_symprfx\)$ac_sympat$/$ac_symxfrm/p'"
2725
2726 # Check to see that the pipe works correctly.
2727 ac_pipe_works=no
2728 rm -f conftest.$ac_ext
2729 cat > conftest.$ac_ext <<EOF
2730#ifdef __cplusplus
2731extern "C" {
2732#endif
2733char nm_test_var;
2734void nm_test_func(){}
2735#ifdef __cplusplus
2736}
2737#endif
2738int main(){nm_test_var='a';nm_test_func;return 0;}
2739EOF
2740
2741 if { (eval echo configure:2742: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2742 # Now try to grab the symbols.
2743 ac_nlist=conftest.nm
2744
2745 if { (eval echo configure:2746: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
2746
2747 # Try sorting and uniquifying the output.
2748 if sort "$ac_nlist" | uniq > "$ac_nlist"T; then
2749 mv -f "$ac_nlist"T "$ac_nlist"
2750 else
2751 rm -f "$ac_nlist"T
2752 fi
2753
2754 # Make sure that we snagged all the symbols we need.
2755 if egrep ' nm_test_var$' "$ac_nlist" >/dev/null; then
2756 if egrep ' nm_test_func$' "$ac_nlist" >/dev/null; then
2757 cat <<EOF > conftest.c
2758#ifdef __cplusplus
2759extern "C" {
2760#endif
2761
2762EOF
2763 # Now generate the symbol file.
2764 eval "$ac_global_symbol_to_cdecl"' < "$ac_nlist" >> conftest.c'
2765
2766 cat <<EOF >> conftest.c
2767#if defined (__STDC__) && __STDC__
2768# define lt_ptr_t void *
2769#else
2770# define lt_ptr_t char *
2771# define const
2772#endif
2773
2774/* The mapping between symbol names and symbols. */
2775const struct {
2776 const char *name;
2777 lt_ptr_t address;
2778}
2779lt_preloaded_symbols[] =
2780{
2781EOF
2782 sed 's/^. \(.*\) \(.*\)$/ {"\2", (lt_ptr_t) \&\2},/' < "$ac_nlist" >> conftest.c
2783 cat <<\EOF >> conftest.c
2784 {0, (lt_ptr_t) 0}
2785};
2786
2787#ifdef __cplusplus
2788}
2789#endif
2790EOF
2791 # Now try linking the two files.
2792 mv conftest.$ac_objext conftstm.$ac_objext
2793 ac_save_LIBS="$LIBS"
2794 ac_save_CFLAGS="$CFLAGS"
2795 LIBS="conftstm.$ac_objext"
2796 CFLAGS="$CFLAGS$no_builtin_flag"
2797 if { (eval echo configure:2798: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2798 ac_pipe_works=yes
2799 else
2800 echo "configure: failed program was:" >&5
2801 cat conftest.c >&5
2802 fi
2803 LIBS="$ac_save_LIBS"
2804 CFLAGS="$ac_save_CFLAGS"
2805 else
2806 echo "cannot find nm_test_func in $ac_nlist" >&5
2807 fi
2808 else
2809 echo "cannot find nm_test_var in $ac_nlist" >&5
2810 fi
2811 else
2812 echo "cannot run $ac_cv_sys_global_symbol_pipe" >&5
2813 fi
2814 else
2815 echo "$progname: failed program was:" >&5
2816 cat conftest.c >&5
2817 fi
2818 rm -rf conftest* conftst*
2819
2820 # Do not use the global_symbol_pipe unless it works.
2821 if test "$ac_pipe_works" = yes; then
2822 if test x"$ac_symprfx" = x"_"; then
2823 ac_cv_sys_symbol_underscore=yes
2824 else
2825 ac_cv_sys_symbol_underscore=no
2826 fi
2827 break
2828 else
2829 ac_cv_sys_global_symbol_pipe=
2830 fi
2831done
2832
2833fi
2834
2835
2836ac_result=yes
2837if test -z "$ac_cv_sys_global_symbol_pipe"; then
2838 ac_result=no
2839fi
2840echo "$ac_t""$ac_result" 1>&6
2841
2842echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2843echo "configure:2844: checking for ANSI C header files" >&5
2844if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2845 echo $ac_n "(cached) $ac_c" 1>&6
2846else
2847 cat > conftest.$ac_ext <<EOF
2848#include <sys/types.h>
2849#line 2850 "configure"
2850#include "confdefs.h"
2851#include <stdlib.h>
2852#include <stdarg.h>
2853#include <string.h>
2854#include <float.h>
2855EOF
2856ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2857{ (eval echo configure:2858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2858ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2859if test -z "$ac_err"; then
2860 rm -rf conftest*
2861 ac_cv_header_stdc=yes
2862else
2863 echo "$ac_err" >&5
2864 echo "configure: failed program was:" >&5
2865 cat conftest.$ac_ext >&5
2866 rm -rf conftest*
2867 ac_cv_header_stdc=no
2868fi
2869rm -f conftest*
2870
2871if test $ac_cv_header_stdc = yes; then
2872 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2873cat > conftest.$ac_ext <<EOF
2874#line 2875 "configure"
2875#include "confdefs.h"
2876#include <string.h>
2877EOF
2878if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2879 egrep "memchr" >/dev/null 2>&1; then
2880 :
2881else
2882 rm -rf conftest*
2883 ac_cv_header_stdc=no
2884fi
2885rm -f conftest*
2886
2887fi
2888
2889if test $ac_cv_header_stdc = yes; then
2890 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2891cat > conftest.$ac_ext <<EOF
2892#line 2893 "configure"
2893#include "confdefs.h"
2894#include <stdlib.h>
2895EOF
2896if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2897 egrep "free" >/dev/null 2>&1; then
2898 :
2899else
2900 rm -rf conftest*
2901 ac_cv_header_stdc=no
2902fi
2903rm -f conftest*
2904
2905fi
2906
2907if test $ac_cv_header_stdc = yes; then
2908 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2909if test "$cross_compiling" = yes; then
2910 :
2911else
2912 cat > conftest.$ac_ext <<EOF
2913#line 2914 "configure"
2914#include "confdefs.h"
2915#include <ctype.h>
2916#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2917#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2918#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2919int main () { int i; for (i = 0; i < 256; i++)
2920if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2921exit (0); }
2922
2923EOF
2924if { (eval echo configure:2925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2925then
2926 :
2927else
2928 echo "configure: failed program was:" >&5
2929 cat conftest.$ac_ext >&5
2930 rm -fr conftest*
2931 ac_cv_header_stdc=no
2932fi
2933rm -fr conftest*
2934fi
2935
2936fi
2937fi
2938
2939echo "$ac_t""$ac_cv_header_stdc" 1>&6
2940if test $ac_cv_header_stdc = yes; then
2941 cat >> confdefs.h <<\EOF
2942#define STDC_HEADERS 1
2943EOF
2944
2945fi
2946
2947# Check whether --enable-ltdl-install or --disable-ltdl-install was given.
2948if test "${enable_ltdl_install+set}" = set; then
2949 enableval="$enable_ltdl_install"
2950 :
2951fi
2952
2953
2954
2955
2956if test x"${enable_ltdl_install-no}" != xno; then
2957 INSTALL_LTDL_TRUE=
2958 INSTALL_LTDL_FALSE='#'
2959else
2960 INSTALL_LTDL_TRUE='#'
2961 INSTALL_LTDL_FALSE=
2962fi
2963
2964
2965if test x"${enable_ltdl_convenience-no}" != xno; then
2966 CONVENIENCE_LTDL_TRUE=
2967 CONVENIENCE_LTDL_FALSE='#'
2968else
2969 CONVENIENCE_LTDL_TRUE='#'
2970 CONVENIENCE_LTDL_FALSE=
2971fi
2972
2973echo $ac_n "checking which extension is used for shared libraries""... $ac_c" 1>&6
2974echo "configure:2975: checking which extension is used for shared libraries" >&5
2975if eval "test \"`echo '$''{'libltdl_cv_shlibext'+set}'`\" = set"; then
2976 echo $ac_n "(cached) $ac_c" 1>&6
2977else
2978 (
2979 last=
2980 for spec in $library_names_spec; do
2981 last="$spec"
2982 done
2983
2984 echo "$last" | sed 's/\[.*\]//;s/^[^.]*//;s/\$.*$//;s/\.$//' > conftest
2985
2986)
2987libltdl_cv_shlibext=`cat conftest`
2988rm -f conftest
2989
2990fi
2991
2992echo "$ac_t""$libltdl_cv_shlibext" 1>&6
2993if test -n "$libltdl_cv_shlibext"; then
2994 cat >> confdefs.h <<EOF
2995#define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
2996EOF
2997
2998fi
2999
3000echo $ac_n "checking which variable specifies run-time library path""... $ac_c" 1>&6
3001echo "configure:3002: checking which variable specifies run-time library path" >&5
3002if eval "test \"`echo '$''{'libltdl_cv_shlibpath_var'+set}'`\" = set"; then
3003 echo $ac_n "(cached) $ac_c" 1>&6
3004else
3005 libltdl_cv_shlibpath_var="$shlibpath_var"
3006fi
3007
3008echo "$ac_t""$libltdl_cv_shlibpath_var" 1>&6
3009if test -n "$libltdl_cv_shlibpath_var"; then
3010 cat >> confdefs.h <<EOF
3011#define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
3012EOF
3013
3014fi
3015
3016echo $ac_n "checking for the default library search path""... $ac_c" 1>&6
3017echo "configure:3018: checking for the default library search path" >&5
3018if eval "test \"`echo '$''{'libltdl_cv_sys_search_path'+set}'`\" = set"; then
3019 echo $ac_n "(cached) $ac_c" 1>&6
3020else
3021 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
3022fi
3023
3024echo "$ac_t""$libltdl_cv_sys_search_path" 1>&6
3025if test -n "$libltdl_cv_sys_search_path"; then
3026 case "$host" in
3027 *-*-mingw*) pathsep=";" ;;
3028 *) pathsep=":" ;;
3029 esac
3030 sys_search_path=
3031 for dir in $libltdl_cv_sys_search_path; do
3032 if test -z "$sys_search_path"; then
3033 sys_search_path="$dir"
3034 else
3035 sys_search_path="$sys_search_path$pathsep$dir"
3036 fi
3037 done
3038 cat >> confdefs.h <<EOF
3039#define LTDL_SYSSEARCHPATH "$sys_search_path"
3040EOF
3041
3042fi
3043
3044echo $ac_n "checking for objdir""... $ac_c" 1>&6
3045echo "configure:3046: checking for objdir" >&5
3046if eval "test \"`echo '$''{'libltdl_cv_objdir'+set}'`\" = set"; then
3047 echo $ac_n "(cached) $ac_c" 1>&6
3048else
3049 libltdl_cv_objdir="$objdir"
3050if test -n "$objdir"; then
3051 :
3052else
3053 rm -f .libs 2>/dev/null
3054 mkdir .libs 2>/dev/null
3055 if test -d .libs; then
3056 libltdl_cv_objdir=.libs
3057 else
3058 # MS-DOS does not allow filenames that begin with a dot.
3059 libltdl_cv_objdir=_libs
3060 fi
3061rmdir .libs 2>/dev/null
3062fi
3063fi
3064
3065echo "$ac_t""$libltdl_cv_objdir" 1>&6
3066cat >> confdefs.h <<EOF
3067#define LTDL_OBJDIR "$libltdl_cv_objdir/"
3068EOF
3069
3070
3071echo $ac_n "checking whether libtool supports -dlopen/-dlpreopen""... $ac_c" 1>&6
3072echo "configure:3073: checking whether libtool supports -dlopen/-dlpreopen" >&5
3073if eval "test \"`echo '$''{'libltdl_cv_preloaded_symbols'+set}'`\" = set"; then
3074 echo $ac_n "(cached) $ac_c" 1>&6
3075else
3076 if test -n "$global_symbol_pipe"; then
3077 libltdl_cv_preloaded_symbols=yes
3078 else
3079 libltdl_cv_preloaded_symbols=no
3080 fi
3081
3082fi
3083
3084echo "$ac_t""$libltdl_cv_preloaded_symbols" 1>&6
3085if test x"$libltdl_cv_preloaded_symbols" = x"yes"; then
3086 cat >> confdefs.h <<\EOF
3087#define HAVE_PRELOADED_SYMBOLS 1
3088EOF
3089
3090fi
3091
3092LIBADD_DL=
3093echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
3094echo "configure:3095: checking for dlopen in -ldl" >&5
3095ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
3096if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3097 echo $ac_n "(cached) $ac_c" 1>&6
3098else
3099 ac_save_LIBS="$LIBS"
3100LIBS="-ldl $LIBS"
3101cat > conftest.$ac_ext <<EOF
3102#line 3103 "configure"
3103#include "confdefs.h"
3104/* Override any gcc2 internal prototype to avoid an error. */
3105/* We use char because int might match the return type of a gcc2
3106 builtin and then its argument prototype would still apply. */
3107char dlopen();
3108
3109int main() {
3110dlopen()
3111; return 0; }
3112EOF
3113if { (eval echo configure:3114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3114 rm -rf conftest*
3115 eval "ac_cv_lib_$ac_lib_var=yes"
3116else
3117 echo "configure: failed program was:" >&5
3118 cat conftest.$ac_ext >&5
3119 rm -rf conftest*
3120 eval "ac_cv_lib_$ac_lib_var=no"
3121fi
3122rm -f conftest*
3123LIBS="$ac_save_LIBS"
3124
3125fi
3126if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3127 echo "$ac_t""yes" 1>&6
3128 cat >> confdefs.h <<\EOF
3129#define HAVE_LIBDL 1
3130EOF
3131 LIBADD_DL="-ldl"
3132else
3133 echo "$ac_t""no" 1>&6
3134echo $ac_n "checking for dlopen""... $ac_c" 1>&6
3135echo "configure:3136: checking for dlopen" >&5
3136if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
3137 echo $ac_n "(cached) $ac_c" 1>&6
3138else
3139 cat > conftest.$ac_ext <<EOF
3140#line 3141 "configure"
3141#include "confdefs.h"
3142/* System header to define __stub macros and hopefully few prototypes,
3143 which can conflict with char dlopen(); below. */
3144#include <assert.h>
3145/* Override any gcc2 internal prototype to avoid an error. */
3146/* We use char because int might match the return type of a gcc2
3147 builtin and then its argument prototype would still apply. */
3148char dlopen();
3149
3150int main() {
3151
3152/* The GNU C library defines this for functions which it implements
3153 to always fail with ENOSYS. Some functions are actually named
3154 something starting with __ and the normal name is an alias. */
3155#if defined (__stub_dlopen) || defined (__stub___dlopen)
3156choke me
3157#else
3158dlopen();
3159#endif
3160
3161; return 0; }
3162EOF
3163if { (eval echo configure:3164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3164 rm -rf conftest*
3165 eval "ac_cv_func_dlopen=yes"
3166else
3167 echo "configure: failed program was:" >&5
3168 cat conftest.$ac_ext >&5
3169 rm -rf conftest*
3170 eval "ac_cv_func_dlopen=no"
3171fi
3172rm -f conftest*
3173fi
3174
3175if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
3176 echo "$ac_t""yes" 1>&6
3177 cat >> confdefs.h <<\EOF
3178#define HAVE_LIBDL 1
3179EOF
3180
3181else
3182 echo "$ac_t""no" 1>&6
3183echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
3184echo "configure:3185: checking for dlopen in -lsvld" >&5
3185ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
3186if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3187 echo $ac_n "(cached) $ac_c" 1>&6
3188else
3189 ac_save_LIBS="$LIBS"
3190LIBS="-lsvld $LIBS"
3191cat > conftest.$ac_ext <<EOF
3192#line 3193 "configure"
3193#include "confdefs.h"
3194/* Override any gcc2 internal prototype to avoid an error. */
3195/* We use char because int might match the return type of a gcc2
3196 builtin and then its argument prototype would still apply. */
3197char dlopen();
3198
3199int main() {
3200dlopen()
3201; return 0; }
3202EOF
3203if { (eval echo configure:3204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3204 rm -rf conftest*
3205 eval "ac_cv_lib_$ac_lib_var=yes"
3206else
3207 echo "configure: failed program was:" >&5
3208 cat conftest.$ac_ext >&5
3209 rm -rf conftest*
3210 eval "ac_cv_lib_$ac_lib_var=no"
3211fi
3212rm -f conftest*
3213LIBS="$ac_save_LIBS"
3214
3215fi
3216if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3217 echo "$ac_t""yes" 1>&6
3218 cat >> confdefs.h <<\EOF
3219#define HAVE_LIBDL 1
3220EOF
3221 LIBADD_DL="-lsvld"
3222
3223else
3224 echo "$ac_t""no" 1>&6
3225fi
3226
3227fi
3228
3229fi
3230
3231echo $ac_n "checking for shl_load""... $ac_c" 1>&6
3232echo "configure:3233: checking for shl_load" >&5
3233if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
3234 echo $ac_n "(cached) $ac_c" 1>&6
3235else
3236 cat > conftest.$ac_ext <<EOF
3237#line 3238 "configure"
3238#include "confdefs.h"
3239/* System header to define __stub macros and hopefully few prototypes,
3240 which can conflict with char shl_load(); below. */
3241#include <assert.h>
3242/* Override any gcc2 internal prototype to avoid an error. */
3243/* We use char because int might match the return type of a gcc2
3244 builtin and then its argument prototype would still apply. */
3245char shl_load();
3246
3247int main() {
3248
3249/* The GNU C library defines this for functions which it implements
3250 to always fail with ENOSYS. Some functions are actually named
3251 something starting with __ and the normal name is an alias. */
3252#if defined (__stub_shl_load) || defined (__stub___shl_load)
3253choke me
3254#else
3255shl_load();
3256#endif
3257
3258; return 0; }
3259EOF
3260if { (eval echo configure:3261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3261 rm -rf conftest*
3262 eval "ac_cv_func_shl_load=yes"
3263else
3264 echo "configure: failed program was:" >&5
3265 cat conftest.$ac_ext >&5
3266 rm -rf conftest*
3267 eval "ac_cv_func_shl_load=no"
3268fi
3269rm -f conftest*
3270fi
3271
3272if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
3273 echo "$ac_t""yes" 1>&6
3274 cat >> confdefs.h <<\EOF
3275#define HAVE_SHL_LOAD 1
3276EOF
3277
3278else
3279 echo "$ac_t""no" 1>&6
3280echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
3281echo "configure:3282: checking for shl_load in -ldld" >&5
3282ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
3283if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3284 echo $ac_n "(cached) $ac_c" 1>&6
3285else
3286 ac_save_LIBS="$LIBS"
3287LIBS="-ldld $LIBS"
3288cat > conftest.$ac_ext <<EOF
3289#line 3290 "configure"
3290#include "confdefs.h"
3291/* Override any gcc2 internal prototype to avoid an error. */
3292/* We use char because int might match the return type of a gcc2
3293 builtin and then its argument prototype would still apply. */
3294char shl_load();
3295
3296int main() {
3297shl_load()
3298; return 0; }
3299EOF
3300if { (eval echo configure:3301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3301 rm -rf conftest*
3302 eval "ac_cv_lib_$ac_lib_var=yes"
3303else
3304 echo "configure: failed program was:" >&5
3305 cat conftest.$ac_ext >&5
3306 rm -rf conftest*
3307 eval "ac_cv_lib_$ac_lib_var=no"
3308fi
3309rm -f conftest*
3310LIBS="$ac_save_LIBS"
3311
3312fi
3313if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3314 echo "$ac_t""yes" 1>&6
3315 cat >> confdefs.h <<\EOF
3316#define HAVE_SHL_LOAD 1
3317EOF
3318
3319 LIBADD_DL="$LIBADD_DL -ldld"
3320else
3321 echo "$ac_t""no" 1>&6
3322fi
3323
3324
3325fi
3326
3327echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
3328echo "configure:3329: checking for dld_link in -ldld" >&5
3329ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
3330if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3331 echo $ac_n "(cached) $ac_c" 1>&6
3332else
3333 ac_save_LIBS="$LIBS"
3334LIBS="-ldld $LIBS"
3335cat > conftest.$ac_ext <<EOF
3336#line 3337 "configure"
3337#include "confdefs.h"
3338/* Override any gcc2 internal prototype to avoid an error. */
3339/* We use char because int might match the return type of a gcc2
3340 builtin and then its argument prototype would still apply. */
3341char dld_link();
3342
3343int main() {
3344dld_link()
3345; return 0; }
3346EOF
3347if { (eval echo configure:3348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3348 rm -rf conftest*
3349 eval "ac_cv_lib_$ac_lib_var=yes"
3350else
3351 echo "configure: failed program was:" >&5
3352 cat conftest.$ac_ext >&5
3353 rm -rf conftest*
3354 eval "ac_cv_lib_$ac_lib_var=no"
3355fi
3356rm -f conftest*
3357LIBS="$ac_save_LIBS"
3358
3359fi
3360if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3361 echo "$ac_t""yes" 1>&6
3362 cat >> confdefs.h <<\EOF
3363#define HAVE_DLD 1
3364EOF
3365test "x$ac_cv_lib_dld_shl_load" = yes || LIBADD_DL="$LIBADD_DL -ldld"
3366else
3367 echo "$ac_t""no" 1>&6
3368fi
3369
3370
3371
3372if test "x$ac_cv_func_dlopen" = xyes || test "x$ac_cv_lib_dl_dlopen" = xyes; then
3373 LIBS_SAVE="$LIBS"
3374 LIBS="$LIBS $LIBADD_DL"
3375 for ac_func in dlerror
3376do
3377echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3378echo "configure:3379: checking for $ac_func" >&5
3379if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3380 echo $ac_n "(cached) $ac_c" 1>&6
3381else
3382 cat > conftest.$ac_ext <<EOF
3383#line 3384 "configure"
3384#include "confdefs.h"
3385/* System header to define __stub macros and hopefully few prototypes,
3386 which can conflict with char $ac_func(); below. */
3387#include <assert.h>
3388/* Override any gcc2 internal prototype to avoid an error. */
3389/* We use char because int might match the return type of a gcc2
3390 builtin and then its argument prototype would still apply. */
3391char $ac_func();
3392
3393int main() {
3394
3395/* The GNU C library defines this for functions which it implements
3396 to always fail with ENOSYS. Some functions are actually named
3397 something starting with __ and the normal name is an alias. */
3398#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3399choke me
3400#else
3401$ac_func();
3402#endif
3403
3404; return 0; }
3405EOF
3406if { (eval echo configure:3407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3407 rm -rf conftest*
3408 eval "ac_cv_func_$ac_func=yes"
3409else
3410 echo "configure: failed program was:" >&5
3411 cat conftest.$ac_ext >&5
3412 rm -rf conftest*
3413 eval "ac_cv_func_$ac_func=no"
3414fi
3415rm -f conftest*
3416fi
3417
3418if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3419 echo "$ac_t""yes" 1>&6
3420 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3421 cat >> confdefs.h <<EOF
3422#define $ac_tr_func 1
3423EOF
3424
3425else
3426 echo "$ac_t""no" 1>&6
3427fi
3428done
3429
3430 LIBS="$LIBS_SAVE"
3431fi
3432
3433echo $ac_n "checking for _ prefix in compiled symbols""... $ac_c" 1>&6
3434echo "configure:3435: checking for _ prefix in compiled symbols" >&5
3435if eval "test \"`echo '$''{'ac_cv_sys_symbol_underscore'+set}'`\" = set"; then
3436 echo $ac_n "(cached) $ac_c" 1>&6
3437else
3438 ac_cv_sys_symbol_underscore=no
3439cat > conftest.$ac_ext <<EOF
3440void nm_test_func(){}
3441int main(){nm_test_func;return 0;}
3442EOF
3443if { (eval echo configure:3444: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3444 # Now try to grab the symbols.
3445 ac_nlist=conftest.nm
3446 if { (eval echo configure:3447: \"$NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $ac_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5; } && test -s "$ac_nlist"; then
3447 # See whether the symbols have a leading underscore.
3448 if egrep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
3449 ac_cv_sys_symbol_underscore=yes
3450 else
3451 if egrep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
3452 :
3453 else
3454 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
3455 fi
3456 fi
3457 else
3458 echo "configure: cannot run $ac_cv_sys_global_symbol_pipe" >&5
3459 fi
3460else
3461 echo "configure: failed program was:" >&5
3462 cat conftest.c >&5
3463fi
3464rm -rf conftest*
3465
3466fi
3467
3468echo "$ac_t""$ac_cv_sys_symbol_underscore" 1>&6
3469if test x"$ac_cv_sys_symbol_underscore" = xyes; then
3470 if test x"$ac_cv_func_dlopen" = xyes ||
3471 test x"$ac_cv_lib_dl_dlopen" = xyes ; then
3472 echo $ac_n "checking whether we have to add an underscore for dlsym""... $ac_c" 1>&6
3473echo "configure:3474: checking whether we have to add an underscore for dlsym" >&5
3474if eval "test \"`echo '$''{'libltdl_cv_need_uscore'+set}'`\" = set"; then
3475 echo $ac_n "(cached) $ac_c" 1>&6
3476else
3477 if test "$cross_compiling" = yes; then
3478 libltdl_cv_need_uscore=cross
3479
3480else
3481 cat > conftest.$ac_ext <<EOF
3482#line 3483 "configure"
3483#include "confdefs.h"
3484
3485#if HAVE_DLFCN_H
3486#include <dlfcn.h>
3487#endif
3488
3489#include <stdio.h>
3490
3491#ifdef RTLD_GLOBAL
3492# define LTDL_GLOBAL RTLD_GLOBAL
3493#else
3494# ifdef DL_GLOBAL
3495# define LTDL_GLOBAL DL_GLOBAL
3496# else
3497# define LTDL_GLOBAL 0
3498# endif
3499#endif
3500
3501/* We may have to define LTDL_LAZY_OR_NOW in the command line if we
3502 find out it does not work in some platform. */
3503#ifndef LTDL_LAZY_OR_NOW
3504# ifdef RTLD_LAZY
3505# define LTDL_LAZY_OR_NOW RTLD_LAZY
3506# else
3507# ifdef DL_LAZY
3508# define LTDL_LAZY_OR_NOW DL_LAZY
3509# else
3510# ifdef RTLD_NOW
3511# define LTDL_LAZY_OR_NOW RTLD_NOW
3512# else
3513# ifdef DL_NOW
3514# define LTDL_LAZY_OR_NOW DL_NOW
3515# else
3516# define LTDL_LAZY_OR_NOW 0
3517# endif
3518# endif
3519# endif
3520# endif
3521#endif
3522
3523fnord() { int i=42;}
3524main() { void *self, *ptr1, *ptr2; self=dlopen(0,LTDL_GLOBAL|LTDL_LAZY_OR_NOW);
3525 if(self) { ptr1=dlsym(self,"fnord"); ptr2=dlsym(self,"_fnord");
3526 if(ptr1 && !ptr2) { dlclose(self); exit(0); } } exit(1); }
3527
3528EOF
3529if { (eval echo configure:3530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3530then
3531 libltdl_cv_need_uscore=no
3532else
3533 echo "configure: failed program was:" >&5
3534 cat conftest.$ac_ext >&5
3535 rm -fr conftest*
3536 libltdl_cv_need_uscore=yes
3537fi
3538rm -fr conftest*
3539fi
3540
3541fi
3542
3543echo "$ac_t""$libltdl_cv_need_uscore" 1>&6
3544 fi
3545fi
3546
3547if test x"$libltdl_cv_need_uscore" = xyes; then
3548 cat >> confdefs.h <<\EOF
3549#define NEED_USCORE 1
3550EOF
3551
3552fi
3553
3554
3555
3556
3557for ac_hdr in malloc.h memory.h stdlib.h stdio.h ctype.h dlfcn.h dl.h dld.h
3558do
3559ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3560echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3561echo "configure:3562: checking for $ac_hdr" >&5
3562if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3563 echo $ac_n "(cached) $ac_c" 1>&6
3564else
3565 cat > conftest.$ac_ext <<EOF
3566#include <sys/types.h>
3567#line 3568 "configure"
3568#include "confdefs.h"
3569#include <$ac_hdr>
3570EOF
3571ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3572{ (eval echo configure:3573: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3573ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3574if test -z "$ac_err"; then
3575 rm -rf conftest*
3576 eval "ac_cv_header_$ac_safe=yes"
3577else
3578 echo "$ac_err" >&5
3579 echo "configure: failed program was:" >&5
3580 cat conftest.$ac_ext >&5
3581 rm -rf conftest*
3582 eval "ac_cv_header_$ac_safe=no"
3583fi
3584rm -f conftest*
3585fi
3586if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3587 echo "$ac_t""yes" 1>&6
3588 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3589 cat >> confdefs.h <<EOF
3590#define $ac_tr_hdr 1
3591EOF
3592
3593else
3594 echo "$ac_t""no" 1>&6
3595fi
3596done
3597
3598for ac_hdr in string.h strings.h
3599do
3600ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3601echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3602echo "configure:3603: checking for $ac_hdr" >&5
3603if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3604 echo $ac_n "(cached) $ac_c" 1>&6
3605else
3606 cat > conftest.$ac_ext <<EOF
3607#include <sys/types.h>
3608#line 3609 "configure"
3609#include "confdefs.h"
3610#include <$ac_hdr>
3611EOF
3612ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3613{ (eval echo configure:3614: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3614ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3615if test -z "$ac_err"; then
3616 rm -rf conftest*
3617 eval "ac_cv_header_$ac_safe=yes"
3618else
3619 echo "$ac_err" >&5
3620 echo "configure: failed program was:" >&5
3621 cat conftest.$ac_ext >&5
3622 rm -rf conftest*
3623 eval "ac_cv_header_$ac_safe=no"
3624fi
3625rm -f conftest*
3626fi
3627if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3628 echo "$ac_t""yes" 1>&6
3629 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3630 cat >> confdefs.h <<EOF
3631#define $ac_tr_hdr 1
3632EOF
3633 break
3634else
3635 echo "$ac_t""no" 1>&6
3636fi
3637done
3638
3639for ac_func in strchr index
3640do
3641echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3642echo "configure:3643: checking for $ac_func" >&5
3643if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3644 echo $ac_n "(cached) $ac_c" 1>&6
3645else
3646 cat > conftest.$ac_ext <<EOF
3647#line 3648 "configure"
3648#include "confdefs.h"
3649/* System header to define __stub macros and hopefully few prototypes,
3650 which can conflict with char $ac_func(); below. */
3651#include <assert.h>
3652/* Override any gcc2 internal prototype to avoid an error. */
3653/* We use char because int might match the return type of a gcc2
3654 builtin and then its argument prototype would still apply. */
3655char $ac_func();
3656
3657int main() {
3658
3659/* The GNU C library defines this for functions which it implements
3660 to always fail with ENOSYS. Some functions are actually named
3661 something starting with __ and the normal name is an alias. */
3662#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3663choke me
3664#else
3665$ac_func();
3666#endif
3667
3668; return 0; }
3669EOF
3670if { (eval echo configure:3671: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3671 rm -rf conftest*
3672 eval "ac_cv_func_$ac_func=yes"
3673else
3674 echo "configure: failed program was:" >&5
3675 cat conftest.$ac_ext >&5
3676 rm -rf conftest*
3677 eval "ac_cv_func_$ac_func=no"
3678fi
3679rm -f conftest*
3680fi
3681
3682if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3683 echo "$ac_t""yes" 1>&6
3684 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3685 cat >> confdefs.h <<EOF
3686#define $ac_tr_func 1
3687EOF
3688 break
3689else
3690 echo "$ac_t""no" 1>&6
3691fi
3692done
3693
3694for ac_func in strrchr rindex
3695do
3696echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3697echo "configure:3698: checking for $ac_func" >&5
3698if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3699 echo $ac_n "(cached) $ac_c" 1>&6
3700else
3701 cat > conftest.$ac_ext <<EOF
3702#line 3703 "configure"
3703#include "confdefs.h"
3704/* System header to define __stub macros and hopefully few prototypes,
3705 which can conflict with char $ac_func(); below. */
3706#include <assert.h>
3707/* Override any gcc2 internal prototype to avoid an error. */
3708/* We use char because int might match the return type of a gcc2
3709 builtin and then its argument prototype would still apply. */
3710char $ac_func();
3711
3712int main() {
3713
3714/* The GNU C library defines this for functions which it implements
3715 to always fail with ENOSYS. Some functions are actually named
3716 something starting with __ and the normal name is an alias. */
3717#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3718choke me
3719#else
3720$ac_func();
3721#endif
3722
3723; return 0; }
3724EOF
3725if { (eval echo configure:3726: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3726 rm -rf conftest*
3727 eval "ac_cv_func_$ac_func=yes"
3728else
3729 echo "configure: failed program was:" >&5
3730 cat conftest.$ac_ext >&5
3731 rm -rf conftest*
3732 eval "ac_cv_func_$ac_func=no"
3733fi
3734rm -f conftest*
3735fi
3736
3737if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3738 echo "$ac_t""yes" 1>&6
3739 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3740 cat >> confdefs.h <<EOF
3741#define $ac_tr_func 1
3742EOF
3743 break
3744else
3745 echo "$ac_t""no" 1>&6
3746fi
3747done
3748
3749for ac_func in strcmp
3750do
3751echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3752echo "configure:3753: checking for $ac_func" >&5
3753if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3754 echo $ac_n "(cached) $ac_c" 1>&6
3755else
3756 cat > conftest.$ac_ext <<EOF
3757#line 3758 "configure"
3758#include "confdefs.h"
3759/* System header to define __stub macros and hopefully few prototypes,
3760 which can conflict with char $ac_func(); below. */
3761#include <assert.h>
3762/* Override any gcc2 internal prototype to avoid an error. */
3763/* We use char because int might match the return type of a gcc2
3764 builtin and then its argument prototype would still apply. */
3765char $ac_func();
3766
3767int main() {
3768
3769/* The GNU C library defines this for functions which it implements
3770 to always fail with ENOSYS. Some functions are actually named
3771 something starting with __ and the normal name is an alias. */
3772#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3773choke me
3774#else
3775$ac_func();
3776#endif
3777
3778; return 0; }
3779EOF
3780if { (eval echo configure:3781: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3781 rm -rf conftest*
3782 eval "ac_cv_func_$ac_func=yes"
3783else
3784 echo "configure: failed program was:" >&5
3785 cat conftest.$ac_ext >&5
3786 rm -rf conftest*
3787 eval "ac_cv_func_$ac_func=no"
3788fi
3789rm -f conftest*
3790fi
3791
3792if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3793 echo "$ac_t""yes" 1>&6
3794 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3795 cat >> confdefs.h <<EOF
3796#define $ac_tr_func 1
3797EOF
3798
3799else
3800 echo "$ac_t""no" 1>&6
3801fi
3802done
3803
3804
3805
3806
3807trap '' 1 2 15
3808cat > confcache <<\EOF
3809# This file is a shell script that caches the results of configure
3810# tests run on this system so they can be shared between configure
3811# scripts and configure runs. It is not useful on other systems.
3812# If it contains results you don't want to keep, you may remove or edit it.
3813#
3814# By default, configure uses ./config.cache as the cache file,
3815# creating it if it does not exist already. You can give configure
3816# the --cache-file=FILE option to use a different cache file; that is
3817# what configure does when it calls configure scripts in
3818# subdirectories, so they share the cache.
3819# Giving --cache-file=/dev/null disables caching, for debugging configure.
3820# config.status only pays attention to the cache file if you give it the
3821# --recheck option to rerun configure.
3822#
3823EOF
3824# The following way of writing the cache mishandles newlines in values,
3825# but we know of no workaround that is simple, portable, and efficient.
3826# So, don't put newlines in cache variables' values.
3827# Ultrix sh set writes to stderr and can't be redirected directly,
3828# and sets the high bit in the cache file unless we assign to the vars.
3829(set) 2>&1 |
3830 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3831 *ac_space=\ *)
3832 # `set' does not quote correctly, so add quotes (double-quote substitution
3833 # turns \\\\ into \\, and sed turns \\ into \).
3834 sed -n \
3835 -e "s/'/'\\\\''/g" \
3836 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
3837 ;;
3838 *)
3839 # `set' quotes correctly as required by POSIX, so do not add quotes.
3840 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
3841 ;;
3842 esac >> confcache
3843if cmp -s $cache_file confcache; then
3844 :
3845else
3846 if test -w $cache_file; then
3847 echo "updating cache $cache_file"
3848 cat confcache > $cache_file
3849 else
3850 echo "not updating unwritable cache $cache_file"
3851 fi
3852fi
3853rm -f confcache
3854
3855trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
3856
3857test "x$prefix" = xNONE && prefix=$ac_default_prefix
3858# Let make expand exec_prefix.
3859test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3860
3861# Any assignment to VPATH causes Sun make to only execute
3862# the first set of double-colon rules, so remove it if not needed.
3863# If there is a colon in the path, we need to keep it.
3864if test "x$srcdir" = x.; then
3865 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
3866fi
3867
3868trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
3869
3870DEFS=-DHAVE_CONFIG_H
3871
3872# Without the "./", some shells look in PATH for config.status.
3873: ${CONFIG_STATUS=./config.status}
3874
3875echo creating $CONFIG_STATUS
3876rm -f $CONFIG_STATUS
3877cat > $CONFIG_STATUS <<EOF
3878#! /bin/sh
3879# Generated automatically by configure.
3880# Run this file to recreate the current configuration.
3881# This directory was configured as follows,
3882EOF
3883echo ': ${CONFIG_SHELL='"${CONFIG_SHELL-/bin/sh}"'}' >> $CONFIG_STATUS
3884cat >> $CONFIG_STATUS <<EOF
3885# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
3886#
3887# $0 $ac_configure_args
3888#
3889# Compiler output produced by configure, useful for debugging
3890# configure, is in ./config.log if it exists.
3891
3892ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
3893for ac_option
3894do
3895 case "\$ac_option" in
3896 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3897 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
3898 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
3899 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
3900 echo "$CONFIG_STATUS generated by autoconf version 2.13"
3901 exit 0 ;;
3902 -help | --help | --hel | --he | --h)
3903 echo "\$ac_cs_usage"; exit 0 ;;
3904 *) echo "\$ac_cs_usage"; exit 1 ;;
3905 esac
3906done
3907
3908ac_given_srcdir=$srcdir
3909ac_given_INSTALL="$INSTALL"
3910PATHIFS="$PATH_IFS"
3911
3912trap 'rm -fr `echo "Makefile config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
3913EOF
3914cat >> $CONFIG_STATUS <<EOF
3915
3916# Protect against being on the right side of a sed subst in config.status.
3917sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
3918 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
3919$ac_vpsub
3920$extrasub
3921s,\([^a-zA-Z0-9:]\)/bin/sh\(.exe\),\1${CONFIG_SHELL-/bin/sh}\2,g
3922s%@SHELL@%$SHELL%g
3923s%@CFLAGS@%$CFLAGS%g
3924s%@CPPFLAGS@%$CPPFLAGS%g
3925s%@CXXFLAGS@%$CXXFLAGS%g
3926s%@FFLAGS@%$FFLAGS%g
3927s%@DEFS@%$DEFS%g
3928s%@LDFLAGS@%$LDFLAGS%g
3929s%@LIBS@%$LIBS%g
3930s%@exec_prefix@%$exec_prefix%g
3931s%@prefix@%$prefix%g
3932s%@program_transform_name@%$program_transform_name%g
3933s%@bindir@%$bindir%g
3934s%@sbindir@%$sbindir%g
3935s%@libexecdir@%$libexecdir%g
3936s%@datadir@%$datadir%g
3937s%@sysconfdir@%$sysconfdir%g
3938s%@sharedstatedir@%$sharedstatedir%g
3939s%@localstatedir@%$localstatedir%g
3940s%@libdir@%$libdir%g
3941s%@includedir@%$includedir%g
3942s%@oldincludedir@%$oldincludedir%g
3943s%@infodir@%$infodir%g
3944s%@mandir@%$mandir%g
3945s%@PATH_IFS@%$PATH_IFS%g
3946s%@EXEEXT@%$EXEEXT%g
3947s%@mkinstalldirs@%$mkinstalldirs%g
3948s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
3949s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
3950s%@INSTALL_DATA@%$INSTALL_DATA%g
3951s%@PACKAGE@%$PACKAGE%g
3952s%@VERSION@%$VERSION%g
3953s%@ACLOCAL@%$ACLOCAL%g
3954s%@AUTOCONF@%$AUTOCONF%g
3955s%@AUTOMAKE@%$AUTOMAKE%g
3956s%@AUTOHEADER@%$AUTOHEADER%g
3957s%@MAKEINFO@%$MAKEINFO%g
3958s%@SET_MAKE@%$SET_MAKE%g
3959s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
3960s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
3961s%@MAINT@%$MAINT%g
3962s%@CC@%$CC%g
3963s%@host@%$host%g
3964s%@host_alias@%$host_alias%g
3965s%@host_cpu@%$host_cpu%g
3966s%@host_vendor@%$host_vendor%g
3967s%@host_os@%$host_os%g
3968s%@build@%$build%g
3969s%@build_alias@%$build_alias%g
3970s%@build_cpu@%$build_cpu%g
3971s%@build_vendor@%$build_vendor%g
3972s%@build_os@%$build_os%g
3973s%@LN_S@%$LN_S%g
3974s%@OBJEXT@%$OBJEXT%g
3975s%@RANLIB@%$RANLIB%g
3976s%@STRIP@%$STRIP%g
3977s%@DLLTOOL@%$DLLTOOL%g
3978s%@AS@%$AS%g
3979s%@OBJDUMP@%$OBJDUMP%g
3980s%@LIBTOOL@%$LIBTOOL%g
3981s%@LIBTOOL_DEPS@%$LIBTOOL_DEPS%g
3982s%@GCINCS@%$GCINCS%g
3983s%@CPP@%$CPP%g
3984s%@INSTALL_LTDL_TRUE@%$INSTALL_LTDL_TRUE%g
3985s%@INSTALL_LTDL_FALSE@%$INSTALL_LTDL_FALSE%g
3986s%@CONVENIENCE_LTDL_TRUE@%$CONVENIENCE_LTDL_TRUE%g
3987s%@CONVENIENCE_LTDL_FALSE@%$CONVENIENCE_LTDL_FALSE%g
3988s%@LIBADD_DL@%$LIBADD_DL%g
3989
3990CEOF
3991EOF
3992
3993cat >> $CONFIG_STATUS <<\EOF
3994
3995# Split the substitutions into bite-sized pieces for seds with
3996# small command number limits, like on Digital OSF/1 and HP-UX.
3997ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
3998ac_file=1 # Number of current file.
3999ac_beg=1 # First line for current file.
4000ac_end=$ac_max_sed_cmds # Line after last line for current file.
4001ac_more_lines=:
4002ac_sed_cmds=""
4003while $ac_more_lines; do
4004 if test $ac_beg -gt 1; then
4005 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4006 else
4007 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4008 fi
4009 if test ! -s conftest.s$ac_file; then
4010 ac_more_lines=false
4011 rm -f conftest.s$ac_file
4012 else
4013 if test -z "$ac_sed_cmds"; then
4014 ac_sed_cmds="sed -f conftest.s$ac_file"
4015 else
4016 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4017 fi
4018 ac_file=`expr $ac_file + 1`
4019 ac_beg=$ac_end
4020 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4021 fi
4022done
4023if test -z "$ac_sed_cmds"; then
4024 ac_sed_cmds=cat
4025fi
4026EOF
4027
4028cat >> $CONFIG_STATUS <<EOF
4029
4030CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
4031EOF
4032cat >> $CONFIG_STATUS <<\EOF
4033for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4034 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4035 case "$ac_file" in
4036 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4037 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4038 *) ac_file_in="${ac_file}.in" ;;
4039 esac
4040
4041 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4042
4043 # Remove last slash and all that follows it. Not all systems have dirname.
4044 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4045 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4046 # The file is in a subdirectory.
4047 test ! -d "$ac_dir" && mkdir "$ac_dir"
4048 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4049 # A "../" for each directory in $ac_dir_suffix.
4050 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4051 else
4052 ac_dir_suffix= ac_dots=
4053 fi
4054
4055 case "$ac_given_srcdir" in
4056 .) srcdir=.
4057 if test -z "$ac_dots"; then top_srcdir=.
4058 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4059 [/\\]* | [a-zA-Z]:*)
4060 srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4061 *) # Relative path.
4062 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4063 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4064 esac
4065
4066 case "$ac_given_INSTALL" in
4067 [/$\\]* | [A-Za-z]:*) INSTALL="$ac_given_INSTALL" ;;
4068 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4069 esac
4070
4071 echo creating "$ac_file"
4072 rm -f "$ac_file"
4073 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4074 case "$ac_file" in
4075 *Makefile*) ac_comsub="1i\\
4076# $configure_input" ;;
4077 *) ac_comsub= ;;
4078 esac
4079
4080 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%$PATHIFS% $ac_given_srcdir/%g"`
4081 sed -e "$ac_comsub
4082s%@configure_input@%$configure_input%g
4083s%@srcdir@%$srcdir%g
4084s%@top_srcdir@%$top_srcdir%g
4085s%@INSTALL@%$INSTALL%g
4086" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4087fi; done
4088rm -f conftest.s*
4089
4090# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4091# NAME is the cpp macro being defined and VALUE is the value it is being given.
4092#
4093# ac_d sets the value in "#define NAME VALUE" lines.
4094ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4095ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4096ac_dC='\3'
4097ac_dD='%g'
4098# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4099ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4100ac_uB='\([ ]\)%\1#\2define\3'
4101ac_uC=' '
4102ac_uD='\4%g'
4103# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4104ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4105ac_eB='$%\1#\2define\3'
4106ac_eC=' '
4107ac_eD='%g'
4108
4109if test "${CONFIG_HEADERS+set}" != set; then
4110EOF
4111cat >> $CONFIG_STATUS <<EOF
4112 CONFIG_HEADERS="config.h"
4113EOF
4114cat >> $CONFIG_STATUS <<\EOF
4115fi
4116for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4117 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4118 case "$ac_file" in
4119 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4120 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4121 *) ac_file_in="${ac_file}.in" ;;
4122 esac
4123
4124 echo creating $ac_file
4125
4126 rm -f conftest.frag conftest.in conftest.out
4127# kso the other way around might work better with drive letters and such.
4128# ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4129 ac_file_inputs=`echo $ac_file_in|sed -e "s%:% $ac_given_srcdir/%g" -e "s%^%$ac_given_srcdir/%" `
4130 cat $ac_file_inputs > conftest.in
4131
4132EOF
4133
4134# Transform confdefs.h into a sed script conftest.vals that substitutes
4135# the proper values into config.h.in to produce config.h. And first:
4136# Protect against being on the right side of a sed subst in config.status.
4137# Protect against being in an unquoted here document in config.status.
4138rm -f conftest.vals
4139cat > conftest.hdr <<\EOF
4140s/[\\&%]/\\&/g
4141s%[\\$`]%\\&%g
4142s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4143s%ac_d%ac_u%gp
4144s%ac_u%ac_e%gp
4145EOF
4146sed -n -f conftest.hdr confdefs.h > conftest.vals
4147rm -f conftest.hdr
4148
4149# This sed command replaces #undef with comments. This is necessary, for
4150# example, in the case of _POSIX_SOURCE, which is predefined and required
4151# on some systems where configure will not decide to define it.
4152cat >> conftest.vals <<\EOF
4153s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4154EOF
4155
4156# Break up conftest.vals because some shells have a limit on
4157# the size of here documents, and old seds have small limits too.
4158
4159rm -f conftest.tail
4160while :
4161do
4162 ac_lines=`grep -c . conftest.vals`
4163 # grep -c gives empty output for an empty file on some AIX systems.
4164 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4165 # Write a limited-size here document to conftest.frag.
4166 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4167 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4168 echo 'CEOF
4169 sed -f conftest.frag conftest.in > conftest.out
4170 rm -f conftest.in
4171 mv conftest.out conftest.in
4172' >> $CONFIG_STATUS
4173 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4174 rm -f conftest.vals
4175 mv conftest.tail conftest.vals
4176done
4177rm -f conftest.vals
4178
4179cat >> $CONFIG_STATUS <<\EOF
4180 rm -f conftest.frag conftest.h
4181 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4182 cat conftest.in >> conftest.h
4183 rm -f conftest.in
4184 if cmp -s $ac_file conftest.h 2>/dev/null; then
4185 echo "$ac_file is unchanged"
4186 rm -f conftest.h
4187 else
4188 # Remove last slash and all that follows it. Not all systems have dirname.
4189 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4190 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4191 # The file is in a subdirectory.
4192 test ! -d "$ac_dir" && mkdir "$ac_dir"
4193 fi
4194 rm -f $ac_file
4195 mv conftest.h $ac_file
4196 fi
4197fi; done
4198
4199EOF
4200cat >> $CONFIG_STATUS <<EOF
4201
4202
4203EOF
4204cat >> $CONFIG_STATUS <<\EOF
4205test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4206
4207exit 0
4208EOF
4209chmod +x $CONFIG_STATUS
4210rm -fr confdefs* $ac_clean_files
4211test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
4212
4213
4214# Local Variables:
4215# mode:shell-script
4216# sh-indentation:2
4217# End:
Note: See TracBrowser for help on using the repository browser.