/[pcre]/code/trunk/configure
ViewVC logotype

Contents of /code/trunk/configure

Parent Directory Parent Directory | Revision Log Revision Log


Revision 57 - (show annotations) (download)
Sat Feb 24 21:39:50 2007 UTC (7 years, 6 months ago) by nigel
File size: 232431 byte(s)
Load pcre-3.7 into code/trunk.

1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by Autoconf 2.50.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Find the correct PATH separator. Usually this is `:', but
11 # DJGPP uses `;' like DOS.
12 if test "X${PATH_SEPARATOR+set}" != Xset; then
13 UNAME=${UNAME-`uname 2>/dev/null`}
14 case X$UNAME in
15 *-DOS) lt_cv_sys_path_separator=';' ;;
16 *) lt_cv_sys_path_separator=':' ;;
17 esac
18 fi
19
20 # Check that we are running under the correct shell.
21 SHELL=${CONFIG_SHELL-/bin/sh}
22
23 case X$ECHO in
24 X*--fallback-echo)
25 # Remove one level of quotation (which was required for Make).
26 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
27 ;;
28 esac
29
30 echo=${ECHO-echo}
31 if test "X$1" = X--no-reexec; then
32 # Discard the --no-reexec flag, and continue.
33 shift
34 elif test "X$1" = X--fallback-echo; then
35 # Avoid inline document here, it may be left over
36 :
37 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
38 # Yippee, $echo works!
39 :
40 else
41 # Restart under the correct shell.
42 exec $SHELL "$0" --no-reexec ${1+"$@"}
43 fi
44
45 if test "X$1" = X--fallback-echo; then
46 # used as fallback echo
47 shift
48 cat <<EOF
49
50 EOF
51 exit 0
52 fi
53
54 # The HP-UX ksh and POSIX shell print the target directory to stdout
55 # if CDPATH is set.
56 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
57
58 if test -z "$ECHO"; then
59 if test "X${echo_test_string+set}" != Xset; then
60 # find a string as large as possible, as long as the shell can cope with it
61 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
62 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
63 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
64 echo_test_string="`eval $cmd`" &&
65 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
66 then
67 break
68 fi
69 done
70 fi
71
72 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
73 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
74 test "X$echo_testing_string" = "X$echo_test_string"; then
75 :
76 else
77 # The Solaris, AIX, and Digital Unix default echo programs unquote
78 # backslashes. This makes it impossible to quote backslashes using
79 # echo "$something" | sed 's/\\/\\\\/g'
80 #
81 # So, first we look for a working echo in the user's PATH.
82
83 IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR}"
84 for dir in $PATH /usr/ucb; do
85 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
86 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
87 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
88 test "X$echo_testing_string" = "X$echo_test_string"; then
89 echo="$dir/echo"
90 break
91 fi
92 done
93 IFS="$save_ifs"
94
95 if test "X$echo" = Xecho; then
96 # We didn't find a better echo, so look for alternatives.
97 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
98 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
99 test "X$echo_testing_string" = "X$echo_test_string"; then
100 # This shell has a builtin print -r that does the trick.
101 echo='print -r'
102 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
103 test "X$CONFIG_SHELL" != X/bin/ksh; then
104 # If we have ksh, try running configure again with it.
105 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
106 export ORIGINAL_CONFIG_SHELL
107 CONFIG_SHELL=/bin/ksh
108 export CONFIG_SHELL
109 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
110 else
111 # Try using printf.
112 echo='printf %s\n'
113 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
114 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
115 test "X$echo_testing_string" = "X$echo_test_string"; then
116 # Cool, printf works
117 :
118 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
119 test "X$echo_testing_string" = 'X\t' &&
120 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
121 test "X$echo_testing_string" = "X$echo_test_string"; then
122 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
123 export CONFIG_SHELL
124 SHELL="$CONFIG_SHELL"
125 export SHELL
126 echo="$CONFIG_SHELL $0 --fallback-echo"
127 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
128 test "X$echo_testing_string" = 'X\t' &&
129 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
130 test "X$echo_testing_string" = "X$echo_test_string"; then
131 echo="$CONFIG_SHELL $0 --fallback-echo"
132 else
133 # maybe with a smaller string...
134 prev=:
135
136 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
137 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
138 then
139 break
140 fi
141 prev="$cmd"
142 done
143
144 if test "$prev" != 'sed 50q "$0"'; then
145 echo_test_string=`eval $prev`
146 export echo_test_string
147 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
148 else
149 # Oops. We lost completely, so just stick with echo.
150 echo=echo
151 fi
152 fi
153 fi
154 fi
155 fi
156 fi
157
158 # Copy echo and quote the copy suitably for passing to libtool from
159 # the Makefile, instead of quoting the original, which is used later.
160 ECHO=$echo
161 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
162 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
163 fi
164
165 # Be Bourne compatible
166 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
167 emulate sh
168 NULLCMD=:
169 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
170 set -o posix
171 fi
172
173 # Name of the executable.
174 as_me=`echo "$0" |sed 's,.*[\\/],,'`
175
176 if expr a : '\(a\)' >/dev/null 2>&1; then
177 as_expr=expr
178 else
179 as_expr=false
180 fi
181
182 rm -f conf$$ conf$$.exe conf$$.file
183 echo >conf$$.file
184 if ln -s conf$$.file conf$$ 2>/dev/null; then
185 # We could just check for DJGPP; but this test a) works b) is more generic
186 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
187 if test -f conf$$.exe; then
188 # Don't use ln at all; we don't have any links
189 as_ln_s='cp -p'
190 else
191 as_ln_s='ln -s'
192 fi
193 elif ln conf$$.file conf$$ 2>/dev/null; then
194 as_ln_s=ln
195 else
196 as_ln_s='cp -p'
197 fi
198 rm -f conf$$ conf$$.exe conf$$.file
199
200 as_executable_p="test -f"
201
202 # Support unset when possible.
203 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
204 as_unset=unset
205 else
206 as_unset=false
207 fi
208
209 # NLS nuisances.
210 $as_unset LANG || test "${LANG+set}" != set || { LANG=C; export LANG; }
211 $as_unset LC_ALL || test "${LC_ALL+set}" != set || { LC_ALL=C; export LC_ALL; }
212 $as_unset LC_TIME || test "${LC_TIME+set}" != set || { LC_TIME=C; export LC_TIME; }
213 $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set || { LC_CTYPE=C; export LC_CTYPE; }
214 $as_unset LANGUAGE || test "${LANGUAGE+set}" != set || { LANGUAGE=C; export LANGUAGE; }
215 $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set || { LC_COLLATE=C; export LC_COLLATE; }
216 $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set || { LC_NUMERIC=C; export LC_NUMERIC; }
217 $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set || { LC_MESSAGES=C; export LC_MESSAGES; }
218
219 # IFS
220 # We need space, tab and new line, in precisely that order.
221 as_nl='
222 '
223 IFS=" $as_nl"
224
225 # CDPATH.
226 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=:; export CDPATH; }
227
228 # Name of the host.
229 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
230 # so uname gets run too.
231 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
232
233 exec 6>&1
234
235 #
236 # Initializations.
237 #
238 ac_default_prefix=/usr/local
239 cross_compiling=no
240 subdirs=
241 MFLAGS= MAKEFLAGS=
242 SHELL=${CONFIG_SHELL-/bin/sh}
243
244 # Maximum number of lines to put in a shell here document.
245 # This variable seems obsolete. It should probably be removed, and
246 # only ac_max_sed_lines should be used.
247 : ${ac_max_here_lines=38}
248
249 # Avoid depending upon Character Ranges.
250 ac_cr_az='abcdefghijklmnopqrstuvwxyz'
251 ac_cr_AZ='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
252 ac_cr_09='0123456789'
253 ac_cr_alnum=$ac_cr_az$ac_cr_AZ$ac_cr_09
254
255 # Sed expression to map a string onto a valid sh and CPP variable names.
256 ac_tr_sh="sed y%*+%pp%;s%[^_$ac_cr_alnum]%_%g"
257 ac_tr_cpp="sed y%*$ac_cr_az%P$ac_cr_AZ%;s%[^_$ac_cr_alnum]%_%g"
258
259 ac_unique_file="dftables.c"
260 # Factoring default headers for most tests.
261 ac_includes_default="\
262 #include <stdio.h>
263 #include <sys/types.h>
264 #include <sys/stat.h>
265 #if STDC_HEADERS
266 # include <stdlib.h>
267 # include <stddef.h>
268 #else
269 # if HAVE_STDLIB_H
270 # include <stdlib.h>
271 # endif
272 #endif
273 #if HAVE_STRING_H
274 # if !STDC_HEADERS && HAVE_MEMORY_H
275 # include <memory.h>
276 # endif
277 # include <string.h>
278 #else
279 # if HAVE_STRINGS_H
280 # include <strings.h>
281 # endif
282 #endif
283 #if HAVE_INTTYPES_H
284 # include <inttypes.h>
285 #endif
286 #if HAVE_UNISTD_H
287 # include <unistd.h>
288 #endif"
289
290 # Initialize some variables set by options.
291 ac_init_help=
292 ac_init_version=false
293 # The variables have the same names as the options, with
294 # dashes changed to underlines.
295 cache_file=/dev/null
296 exec_prefix=NONE
297 no_create=
298 no_recursion=
299 prefix=NONE
300 program_prefix=NONE
301 program_suffix=NONE
302 program_transform_name=s,x,x,
303 silent=
304 site=
305 srcdir=
306 verbose=
307 x_includes=NONE
308 x_libraries=NONE
309
310 # Installation directory options.
311 # These are left unexpanded so users can "make install exec_prefix=/foo"
312 # and all the variables that are supposed to be based on exec_prefix
313 # by default will actually change.
314 # Use braces instead of parens because sh, perl, etc. also accept them.
315 bindir='${exec_prefix}/bin'
316 sbindir='${exec_prefix}/sbin'
317 libexecdir='${exec_prefix}/libexec'
318 datadir='${prefix}/share'
319 sysconfdir='${prefix}/etc'
320 sharedstatedir='${prefix}/com'
321 localstatedir='${prefix}/var'
322 libdir='${exec_prefix}/lib'
323 includedir='${prefix}/include'
324 oldincludedir='/usr/include'
325 infodir='${prefix}/info'
326 mandir='${prefix}/man'
327
328 # Identity of this package.
329 PACKAGE_NAME=
330 PACKAGE_TARNAME=
331 PACKAGE_VERSION=
332 PACKAGE_STRING=
333 PACKAGE_BUGREPORT=
334
335 ac_prev=
336 for ac_option
337 do
338 # If the previous option needs an argument, assign it.
339 if test -n "$ac_prev"; then
340 eval "$ac_prev=\$ac_option"
341 ac_prev=
342 continue
343 fi
344
345 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
346
347 # Accept the important Cygnus configure options, so we can diagnose typos.
348
349 case $ac_option in
350
351 -bindir | --bindir | --bindi | --bind | --bin | --bi)
352 ac_prev=bindir ;;
353 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
354 bindir=$ac_optarg ;;
355
356 -build | --build | --buil | --bui | --bu)
357 ac_prev=build_alias ;;
358 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
359 build_alias=$ac_optarg ;;
360
361 -cache-file | --cache-file | --cache-fil | --cache-fi \
362 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
363 ac_prev=cache_file ;;
364 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
365 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
366 cache_file=$ac_optarg ;;
367
368 --config-cache | -C)
369 cache_file=config.cache ;;
370
371 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
372 ac_prev=datadir ;;
373 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
374 | --da=*)
375 datadir=$ac_optarg ;;
376
377 -disable-* | --disable-*)
378 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
379 # Reject names that are not valid shell variable names.
380 expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
381 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
382 { (exit 1); exit 1; }; }
383 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
384 eval "enable_$ac_feature=no" ;;
385
386 -enable-* | --enable-*)
387 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
388 # Reject names that are not valid shell variable names.
389 expr "x$ac_feature" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
390 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
391 { (exit 1); exit 1; }; }
392 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
393 case $ac_option in
394 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
395 *) ac_optarg=yes ;;
396 esac
397 eval "enable_$ac_feature='$ac_optarg'" ;;
398
399 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
400 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
401 | --exec | --exe | --ex)
402 ac_prev=exec_prefix ;;
403 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
404 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
405 | --exec=* | --exe=* | --ex=*)
406 exec_prefix=$ac_optarg ;;
407
408 -gas | --gas | --ga | --g)
409 # Obsolete; use --with-gas.
410 with_gas=yes ;;
411
412 -help | --help | --hel | --he | -h)
413 ac_init_help=long ;;
414 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
415 ac_init_help=recursive ;;
416 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
417 ac_init_help=short ;;
418
419 -host | --host | --hos | --ho)
420 ac_prev=host_alias ;;
421 -host=* | --host=* | --hos=* | --ho=*)
422 host_alias=$ac_optarg ;;
423
424 -includedir | --includedir | --includedi | --included | --include \
425 | --includ | --inclu | --incl | --inc)
426 ac_prev=includedir ;;
427 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
428 | --includ=* | --inclu=* | --incl=* | --inc=*)
429 includedir=$ac_optarg ;;
430
431 -infodir | --infodir | --infodi | --infod | --info | --inf)
432 ac_prev=infodir ;;
433 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
434 infodir=$ac_optarg ;;
435
436 -libdir | --libdir | --libdi | --libd)
437 ac_prev=libdir ;;
438 -libdir=* | --libdir=* | --libdi=* | --libd=*)
439 libdir=$ac_optarg ;;
440
441 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
442 | --libexe | --libex | --libe)
443 ac_prev=libexecdir ;;
444 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
445 | --libexe=* | --libex=* | --libe=*)
446 libexecdir=$ac_optarg ;;
447
448 -localstatedir | --localstatedir | --localstatedi | --localstated \
449 | --localstate | --localstat | --localsta | --localst \
450 | --locals | --local | --loca | --loc | --lo)
451 ac_prev=localstatedir ;;
452 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
453 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
454 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
455 localstatedir=$ac_optarg ;;
456
457 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
458 ac_prev=mandir ;;
459 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
460 mandir=$ac_optarg ;;
461
462 -nfp | --nfp | --nf)
463 # Obsolete; use --without-fp.
464 with_fp=no ;;
465
466 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
467 | --no-cr | --no-c)
468 no_create=yes ;;
469
470 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
471 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
472 no_recursion=yes ;;
473
474 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
475 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
476 | --oldin | --oldi | --old | --ol | --o)
477 ac_prev=oldincludedir ;;
478 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
479 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
480 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
481 oldincludedir=$ac_optarg ;;
482
483 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
484 ac_prev=prefix ;;
485 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
486 prefix=$ac_optarg ;;
487
488 -program-prefix | --program-prefix | --program-prefi | --program-pref \
489 | --program-pre | --program-pr | --program-p)
490 ac_prev=program_prefix ;;
491 -program-prefix=* | --program-prefix=* | --program-prefi=* \
492 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
493 program_prefix=$ac_optarg ;;
494
495 -program-suffix | --program-suffix | --program-suffi | --program-suff \
496 | --program-suf | --program-su | --program-s)
497 ac_prev=program_suffix ;;
498 -program-suffix=* | --program-suffix=* | --program-suffi=* \
499 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
500 program_suffix=$ac_optarg ;;
501
502 -program-transform-name | --program-transform-name \
503 | --program-transform-nam | --program-transform-na \
504 | --program-transform-n | --program-transform- \
505 | --program-transform | --program-transfor \
506 | --program-transfo | --program-transf \
507 | --program-trans | --program-tran \
508 | --progr-tra | --program-tr | --program-t)
509 ac_prev=program_transform_name ;;
510 -program-transform-name=* | --program-transform-name=* \
511 | --program-transform-nam=* | --program-transform-na=* \
512 | --program-transform-n=* | --program-transform-=* \
513 | --program-transform=* | --program-transfor=* \
514 | --program-transfo=* | --program-transf=* \
515 | --program-trans=* | --program-tran=* \
516 | --progr-tra=* | --program-tr=* | --program-t=*)
517 program_transform_name=$ac_optarg ;;
518
519 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
520 | -silent | --silent | --silen | --sile | --sil)
521 silent=yes ;;
522
523 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
524 ac_prev=sbindir ;;
525 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
526 | --sbi=* | --sb=*)
527 sbindir=$ac_optarg ;;
528
529 -sharedstatedir | --sharedstatedir | --sharedstatedi \
530 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
531 | --sharedst | --shareds | --shared | --share | --shar \
532 | --sha | --sh)
533 ac_prev=sharedstatedir ;;
534 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
535 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
536 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
537 | --sha=* | --sh=*)
538 sharedstatedir=$ac_optarg ;;
539
540 -site | --site | --sit)
541 ac_prev=site ;;
542 -site=* | --site=* | --sit=*)
543 site=$ac_optarg ;;
544
545 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
546 ac_prev=srcdir ;;
547 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
548 srcdir=$ac_optarg ;;
549
550 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
551 | --syscon | --sysco | --sysc | --sys | --sy)
552 ac_prev=sysconfdir ;;
553 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
554 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
555 sysconfdir=$ac_optarg ;;
556
557 -target | --target | --targe | --targ | --tar | --ta | --t)
558 ac_prev=target_alias ;;
559 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
560 target_alias=$ac_optarg ;;
561
562 -v | -verbose | --verbose | --verbos | --verbo | --verb)
563 verbose=yes ;;
564
565 -version | --version | --versio | --versi | --vers | -V)
566 ac_init_version=: ;;
567
568 -with-* | --with-*)
569 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
570 # Reject names that are not valid shell variable names.
571 expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
572 { echo "$as_me: error: invalid package name: $ac_package" >&2
573 { (exit 1); exit 1; }; }
574 ac_package=`echo $ac_package| sed 's/-/_/g'`
575 case $ac_option in
576 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
577 *) ac_optarg=yes ;;
578 esac
579 eval "with_$ac_package='$ac_optarg'" ;;
580
581 -without-* | --without-*)
582 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
583 # Reject names that are not valid shell variable names.
584 expr "x$ac_package" : ".*[^-_$ac_cr_alnum]" >/dev/null &&
585 { echo "$as_me: error: invalid package name: $ac_package" >&2
586 { (exit 1); exit 1; }; }
587 ac_package=`echo $ac_package | sed 's/-/_/g'`
588 eval "with_$ac_package=no" ;;
589
590 --x)
591 # Obsolete; use --with-x.
592 with_x=yes ;;
593
594 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
595 | --x-incl | --x-inc | --x-in | --x-i)
596 ac_prev=x_includes ;;
597 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
598 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
599 x_includes=$ac_optarg ;;
600
601 -x-libraries | --x-libraries | --x-librarie | --x-librari \
602 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
603 ac_prev=x_libraries ;;
604 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
605 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
606 x_libraries=$ac_optarg ;;
607
608 -*) { echo "$as_me: error: unrecognized option: $ac_option
609 Try \`$0 --help' for more information." >&2
610 { (exit 1); exit 1; }; }
611 ;;
612
613 *=*)
614 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
615 # Reject names that are not valid shell variable names.
616 expr "x$ac_envvar" : ".*[^_$ac_cr_alnum]" >/dev/null &&
617 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
618 { (exit 1); exit 1; }; }
619 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
620 eval "$ac_envvar='$ac_optarg'"
621 export $ac_envvar ;;
622
623 *)
624 # FIXME: should be removed in autoconf 3.0.
625 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
626 expr "x$ac_option" : ".*[^-._$ac_cr_alnum]" >/dev/null &&
627 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
628 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
629 ;;
630
631 esac
632 done
633
634 if test -n "$ac_prev"; then
635 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
636 { echo "$as_me: error: missing argument to $ac_option" >&2
637 { (exit 1); exit 1; }; }
638 fi
639
640 # Be sure to have absolute paths.
641 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
642 localstatedir libdir includedir oldincludedir infodir mandir \
643 exec_prefix prefix
644 do
645 eval ac_val=$`echo $ac_var`
646 case $ac_val in
647 [\\/$]* | ?:[\\/]* ) ;;
648 NONE ) ;;
649 *) { echo "$as_me: error: expected an absolute path for --$ac_var: $ac_val" >&2
650 { (exit 1); exit 1; }; };;
651 esac
652 done
653
654 # There might be people who depend on the old broken behavior: `$host'
655 # used to hold the argument of --host etc.
656 build=$build_alias
657 host=$host_alias
658 target=$target_alias
659
660 # FIXME: should be removed in autoconf 3.0.
661 if test "x$host_alias" != x; then
662 if test "x$build_alias" = x; then
663 cross_compiling=maybe
664 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
665 If a cross compiler is detected then cross compile mode will be used." >&2
666 elif test "x$build_alias" != "x$host_alias"; then
667 cross_compiling=yes
668 fi
669 fi
670
671 ac_tool_prefix=
672 test -n "$host_alias" && ac_tool_prefix=$host_alias-
673
674 test "$silent" = yes && exec 6>/dev/null
675
676 # Find the source files, if location was not specified.
677 if test -z "$srcdir"; then
678 ac_srcdir_defaulted=yes
679 # Try the directory containing this script, then its parent.
680 ac_prog=$0
681 ac_confdir=`echo "$ac_prog" | sed 's%[\\/][^\\/][^\\/]*$%%'`
682 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
683 srcdir=$ac_confdir
684 if test ! -r $srcdir/$ac_unique_file; then
685 srcdir=..
686 fi
687 else
688 ac_srcdir_defaulted=no
689 fi
690 if test ! -r $srcdir/$ac_unique_file; then
691 if test "$ac_srcdir_defaulted" = yes; then
692 { echo "$as_me: error: cannot find sources in $ac_confdir or .." >&2
693 { (exit 1); exit 1; }; }
694 else
695 { echo "$as_me: error: cannot find sources in $srcdir" >&2
696 { (exit 1); exit 1; }; }
697 fi
698 fi
699 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
700 ac_env_build_alias_set=${build_alias+set}
701 ac_env_build_alias_value=$build_alias
702 ac_cv_env_build_alias_set=${build_alias+set}
703 ac_cv_env_build_alias_value=$build_alias
704 ac_env_host_alias_set=${host_alias+set}
705 ac_env_host_alias_value=$host_alias
706 ac_cv_env_host_alias_set=${host_alias+set}
707 ac_cv_env_host_alias_value=$host_alias
708 ac_env_target_alias_set=${target_alias+set}
709 ac_env_target_alias_value=$target_alias
710 ac_cv_env_target_alias_set=${target_alias+set}
711 ac_cv_env_target_alias_value=$target_alias
712 ac_env_CC_set=${CC+set}
713 ac_env_CC_value=$CC
714 ac_cv_env_CC_set=${CC+set}
715 ac_cv_env_CC_value=$CC
716 ac_env_CFLAGS_set=${CFLAGS+set}
717 ac_env_CFLAGS_value=$CFLAGS
718 ac_cv_env_CFLAGS_set=${CFLAGS+set}
719 ac_cv_env_CFLAGS_value=$CFLAGS
720 ac_env_LDFLAGS_set=${LDFLAGS+set}
721 ac_env_LDFLAGS_value=$LDFLAGS
722 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
723 ac_cv_env_LDFLAGS_value=$LDFLAGS
724 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
725 ac_env_CPPFLAGS_value=$CPPFLAGS
726 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
727 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
728 ac_env_CPP_set=${CPP+set}
729 ac_env_CPP_value=$CPP
730 ac_cv_env_CPP_set=${CPP+set}
731 ac_cv_env_CPP_value=$CPP
732
733 #
734 # Report the --help message.
735 #
736 if test "$ac_init_help" = "long"; then
737 # Omit some internal or obsolete options to make the list less imposing.
738 # The list generated by autoconf has been trimmed to remove many
739 # options that are totally irrelevant to PCRE (e.g. relating to X),
740 # or are not supported by its Makefile.
741 # The list generated by autoconf has been trimmed to remove many
742 # options that are totally irrelevant to PCRE (e.g. relating to X),
743 # or are not supported by its Makefile.
744 # The list generated by autoconf has been trimmed to remove many
745 # options that are totally irrelevant to PCRE (e.g. relating to X),
746 # or are not supported by its Makefile.
747 # This message is too long to be a string in the A/UX 3.1 sh.
748 cat <<EOF
749 \`configure' configures this package to adapt to many kinds of systems.
750
751 Usage: $0 [OPTION]... [VAR=VALUE]...
752
753 To assign environment variables (e.g., CC, CFLAGS...), specify them as
754 VAR=VALUE. See below for descriptions of some of the useful variables.
755
756 Defaults for the options are specified in brackets.
757
758 Configuration:
759 -h, --help display this help and exit
760 --help=short display options specific to this package
761 --help=recursive display the short help of all the included packages
762 -V, --version display version information and exit
763 -q, --quiet, --silent do not print \`checking...' messages
764 --cache-file=FILE cache test results in FILE [disabled]
765 -C, --config-cache alias for \`--cache-file=config.cache'
766 -n, --no-create do not create output files
767 --srcdir=DIR find the sources in DIR [configure dir or \`..']
768
769 EOF
770
771 cat <<EOF
772 Installation directories:
773 --prefix=PREFIX install architecture-independent files in PREFIX
774 [$ac_default_prefix]
775 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
776 [PREFIX]
777
778 By default, \`make install' will install all the files in
779 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
780 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
781 for instance \`--prefix=\$HOME'.
782
783 For better control, use the options below.
784
785 Fine tuning of the installation directories:
786 --bindir=DIR user executables [EPREFIX/bin]
787 --libdir=DIR object code libraries [EPREFIX/lib]
788 --includedir=DIR C header files [PREFIX/include]
789 --mandir=DIR man documentation [PREFIX/man]
790 EOF
791
792 cat <<\EOF
793
794 EOF
795 fi
796
797 if test -n "$ac_init_help"; then
798
799 cat <<\EOF
800
801 Optional Features:
802 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
803 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
804 --enable-utf8 enable UTF8 support (incomplete)
805 --enable-newline-is-cr use CR as the newline character
806 --enable-newline-is-lf use LF as the newline character
807 --enable-shared build shared libraries default=yes
808 --enable-static build static libraries default=yes
809 --enable-fast-install optimize for fast installation default=yes
810 --disable-libtool-lock avoid locking (might break parallel builds)
811
812 Optional Packages:
813 --with-gnu-ld assume the C compiler uses GNU ld default=no
814 --with-pic try to use only PIC/non-PIC objects default=use both
815
816 Some influential environment variables:
817 CC C compiler command
818 CFLAGS C compiler flags
819 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
820 nonstandard directory <lib dir>
821 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
822 headers in a nonstandard directory <include dir>
823 CPP C preprocessor
824
825 Use these variables to override the choices made by `configure' or to help
826 it to find libraries and programs with nonstandard names/locations.
827
828 EOF
829 fi
830
831 if test "$ac_init_help" = "recursive"; then
832 # If there are subdirs, report their specific --help.
833 ac_popdir=`pwd`
834 for ac_subdir in : $ac_subdirs_all; do test "x$ac_subdir" = x: && continue
835 cd $ac_subdir
836 # A "../" for each directory in /$ac_subdir.
837 ac_dots=`echo $ac_subdir |
838 sed 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g'`
839
840 case $srcdir in
841 .) # No --srcdir option. We are building in place.
842 ac_sub_srcdir=$srcdir ;;
843 [\\/]* | ?:[\\/]* ) # Absolute path.
844 ac_sub_srcdir=$srcdir/$ac_subdir ;;
845 *) # Relative path.
846 ac_sub_srcdir=$ac_dots$srcdir/$ac_subdir ;;
847 esac
848
849 # Check for guested configure; otherwise get Cygnus style configure.
850 if test -f $ac_sub_srcdir/configure.gnu; then
851 echo
852 $SHELL $ac_sub_srcdir/configure.gnu --help=recursive
853 elif test -f $ac_sub_srcdir/configure; then
854 echo
855 $SHELL $ac_sub_srcdir/configure --help=recursive
856 elif test -f $ac_sub_srcdir/configure.ac ||
857 test -f $ac_sub_srcdir/configure.in; then
858 echo
859 $ac_configure --help
860 else
861 echo "$as_me: WARNING: no configuration information is in $ac_subdir" >&2
862 fi
863 cd $ac_popdir
864 done
865 fi
866
867 test -n "$ac_init_help" && exit 0
868 if $ac_init_version; then
869 cat <<\EOF
870
871 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
872 Free Software Foundation, Inc.
873 This configure script is free software; the Free Software Foundation
874 gives unlimited permission to copy, distribute and modify it.
875 EOF
876 exit 0
877 fi
878 exec 5>config.log
879 cat >&5 <<EOF
880 This file contains any messages produced by compilers while
881 running configure, to aid debugging if configure makes a mistake.
882
883 It was created by $as_me, which was
884 generated by GNU Autoconf 2.50. Invocation command line was
885
886 $ $0 $@
887
888 EOF
889 {
890 cat <<_ASUNAME
891 ## ---------- ##
892 ## Platform. ##
893 ## ---------- ##
894
895 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
896 uname -m = `(uname -m) 2>/dev/null || echo unknown`
897 uname -r = `(uname -r) 2>/dev/null || echo unknown`
898 uname -s = `(uname -s) 2>/dev/null || echo unknown`
899 uname -v = `(uname -v) 2>/dev/null || echo unknown`
900
901 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
902 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
903
904 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
905 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
906 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
907 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
908 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
909 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
910 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
911
912 PATH = $PATH
913
914 _ASUNAME
915 } >&5
916
917 cat >&5 <<EOF
918 ## ------------ ##
919 ## Core tests. ##
920 ## ------------ ##
921
922 EOF
923
924 # Keep a trace of the command line.
925 # Strip out --no-create and --no-recursion so they do not pile up.
926 # Also quote any args containing shell meta-characters.
927 ac_configure_args=
928 ac_sep=
929 for ac_arg
930 do
931 case $ac_arg in
932 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
933 | --no-cr | --no-c) ;;
934 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
935 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
936 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
937 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
938 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
939 ac_sep=" " ;;
940 *) ac_configure_args="$ac_configure_args$ac_sep$ac_arg"
941 ac_sep=" " ;;
942 esac
943 # Get rid of the leading space.
944 done
945
946 # When interrupted or exit'd, cleanup temporary files, and complete
947 # config.log. We remove comments because anyway the quotes in there
948 # would cause problems or look ugly.
949 trap 'exit_status=$?
950 # Save into config.log some information that might help in debugging.
951 echo >&5
952 echo "## ----------------- ##" >&5
953 echo "## Cache variables. ##" >&5
954 echo "## ----------------- ##" >&5
955 echo >&5
956 # The following way of writing the cache mishandles newlines in values,
957 {
958 (set) 2>&1 |
959 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
960 *ac_space=\ *)
961 sed -n \
962 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
963 s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
964 ;;
965 *)
966 sed -n \
967 "s/^\\([_$ac_cr_alnum]*_cv_[_$ac_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
968 ;;
969 esac;
970 } >&5
971 sed "/^$/d" confdefs.h >conftest.log
972 if test -s conftest.log; then
973 echo >&5
974 echo "## ------------ ##" >&5
975 echo "## confdefs.h. ##" >&5
976 echo "## ------------ ##" >&5
977 echo >&5
978 cat conftest.log >&5
979 fi
980 (echo; echo) >&5
981 test "$ac_signal" != 0 &&
982 echo "$as_me: caught signal $ac_signal" >&5
983 echo "$as_me: exit $exit_status" >&5
984 rm -rf conftest* confdefs* core core.* *.core conf$$* $ac_clean_files &&
985 exit $exit_status
986 ' 0
987 for ac_signal in 1 2 13 15; do
988 trap 'ac_status=$?; ac_signal='$ac_signal'; { (exit $ac_status); exit $ac_status; }' $ac_signal
989 done
990 ac_signal=0
991
992 # confdefs.h avoids OS command line length limits that DEFS can exceed.
993 rm -rf conftest* confdefs.h
994 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
995 echo >confdefs.h
996
997 # Let the site file select an alternate cache file if it wants to.
998 # Prefer explicitly selected file to automatically selected ones.
999 if test -z "$CONFIG_SITE"; then
1000 if test "x$prefix" != xNONE; then
1001 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1002 else
1003 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1004 fi
1005 fi
1006 for ac_site_file in $CONFIG_SITE; do
1007 if test -r "$ac_site_file"; then
1008 { echo "$as_me:1012: loading site script $ac_site_file" >&5
1009 echo "$as_me: loading site script $ac_site_file" >&6;}
1010 cat "$ac_site_file" >&5
1011 . "$ac_site_file"
1012 fi
1013 done
1014
1015 if test -r "$cache_file"; then
1016 # Some versions of bash will fail to source /dev/null (special
1017 # files actually), so we avoid doing that.
1018 if test -f "$cache_file"; then
1019 { echo "$as_me:1023: loading cache $cache_file" >&5
1020 echo "$as_me: loading cache $cache_file" >&6;}
1021 case $cache_file in
1022 [\\/]* | ?:[\\/]* ) . $cache_file;;
1023 *) . ./$cache_file;;
1024 esac
1025 fi
1026 else
1027 { echo "$as_me:1031: creating cache $cache_file" >&5
1028 echo "$as_me: creating cache $cache_file" >&6;}
1029 >$cache_file
1030 fi
1031
1032 # Check that the precious variables saved in the cache have kept the same
1033 # value.
1034 ac_suggest_removing_cache=false
1035 for ac_var in `(set) 2>&1 |
1036 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1037 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1038 eval ac_new_set=\$ac_env_${ac_var}_set
1039 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1040 eval ac_new_val="\$ac_env_${ac_var}_value"
1041 case $ac_old_set,$ac_new_set in
1042 set,)
1043 { echo "$as_me:1047: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1044 echo "$as_me: WARNING: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1045 ac_suggest_removing_cache=: ;;
1046 ,set)
1047 { echo "$as_me:1051: WARNING: \`$ac_var' was not set in the previous run" >&5
1048 echo "$as_me: WARNING: \`$ac_var' was not set in the previous run" >&2;}
1049 ac_suggest_removing_cache=: ;;
1050 ,);;
1051 *)
1052 if test "x$ac_old_val" != "x$ac_new_val"; then
1053 { echo "$as_me:1057: WARNING: \`$ac_var' has changed since the previous run:" >&5
1054 echo "$as_me: WARNING: \`$ac_var' has changed since the previous run:" >&2;}
1055 { echo "$as_me:1059: WARNING: former value: $ac_old_val" >&5
1056 echo "$as_me: WARNING: former value: $ac_old_val" >&2;}
1057 { echo "$as_me:1061: WARNING: current value: $ac_new_val" >&5
1058 echo "$as_me: WARNING: current value: $ac_new_val" >&2;}
1059 ac_suggest_removing_cache=:
1060 fi;;
1061 esac
1062 done
1063 if $ac_suggest_removing_cache; then
1064 { echo "$as_me:1068: WARNING: changes in the environment can compromise the build" >&5
1065 echo "$as_me: WARNING: changes in the environment can compromise the build" >&2;}
1066 { echo "$as_me:1070: WARNING: consider removing $cache_file and starting over" >&5
1067 echo "$as_me: WARNING: consider removing $cache_file and starting over" >&2;}
1068 fi
1069
1070 ac_ext=c
1071 ac_cpp='$CPP $CPPFLAGS'
1072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1075
1076 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
1077 *c*,-n*) ECHO_N= ECHO_C='
1078 ' ECHO_T=' ' ;;
1079 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
1080 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
1081 esac
1082 echo "#! $SHELL" >conftest.sh
1083 echo "exit 0" >>conftest.sh
1084 chmod +x conftest.sh
1085 if { (echo "$as_me:1089: PATH=\".;.\"; conftest.sh") >&5
1086 (PATH=".;."; conftest.sh) 2>&5
1087 ac_status=$?
1088 echo "$as_me:1092: \$? = $ac_status" >&5
1089 (exit $ac_status); }; then
1090 ac_path_separator=';'
1091 else
1092 ac_path_separator=:
1093 fi
1094 PATH_SEPARATOR="$ac_path_separator"
1095 rm -f conftest.sh
1096
1097 ac_config_headers="$ac_config_headers config.h:config.in"
1098
1099 PCRE_MAJOR=3
1100 PCRE_MINOR=7
1101 PCRE_DATE=29-Oct-2001
1102 PCRE_VERSION=${PCRE_MAJOR}.${PCRE_MINOR}
1103
1104 PCRE_LIB_VERSION=0:1:0
1105 PCRE_POSIXLIB_VERSION=0:0:0
1106
1107 ac_ext=c
1108 ac_cpp='$CPP $CPPFLAGS'
1109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1112 if test -n "$ac_tool_prefix"; then
1113 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1114 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1115 echo "$as_me:1119: checking for $ac_word" >&5
1116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1117 if test "${ac_cv_prog_CC+set}" = set; then
1118 echo $ECHO_N "(cached) $ECHO_C" >&6
1119 else
1120 if test -n "$CC"; then
1121 ac_cv_prog_CC="$CC" # Let the user override the test.
1122 else
1123 ac_save_IFS=$IFS; IFS=$ac_path_separator
1124 ac_dummy="$PATH"
1125 for ac_dir in $ac_dummy; do
1126 IFS=$ac_save_IFS
1127 test -z "$ac_dir" && ac_dir=.
1128 $as_executable_p "$ac_dir/$ac_word" || continue
1129 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1130 echo "$as_me:1134: found $ac_dir/$ac_word" >&5
1131 break
1132 done
1133
1134 fi
1135 fi
1136 CC=$ac_cv_prog_CC
1137 if test -n "$CC"; then
1138 echo "$as_me:1142: result: $CC" >&5
1139 echo "${ECHO_T}$CC" >&6
1140 else
1141 echo "$as_me:1145: result: no" >&5
1142 echo "${ECHO_T}no" >&6
1143 fi
1144
1145 fi
1146 if test -z "$ac_cv_prog_CC"; then
1147 ac_ct_CC=$CC
1148 # Extract the first word of "gcc", so it can be a program name with args.
1149 set dummy gcc; ac_word=$2
1150 echo "$as_me:1154: checking for $ac_word" >&5
1151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1152 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1153 echo $ECHO_N "(cached) $ECHO_C" >&6
1154 else
1155 if test -n "$ac_ct_CC"; then
1156 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1157 else
1158 ac_save_IFS=$IFS; IFS=$ac_path_separator
1159 ac_dummy="$PATH"
1160 for ac_dir in $ac_dummy; do
1161 IFS=$ac_save_IFS
1162 test -z "$ac_dir" && ac_dir=.
1163 $as_executable_p "$ac_dir/$ac_word" || continue
1164 ac_cv_prog_ac_ct_CC="gcc"
1165 echo "$as_me:1169: found $ac_dir/$ac_word" >&5
1166 break
1167 done
1168
1169 fi
1170 fi
1171 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1172 if test -n "$ac_ct_CC"; then
1173 echo "$as_me:1177: result: $ac_ct_CC" >&5
1174 echo "${ECHO_T}$ac_ct_CC" >&6
1175 else
1176 echo "$as_me:1180: result: no" >&5
1177 echo "${ECHO_T}no" >&6
1178 fi
1179
1180 CC=$ac_ct_CC
1181 else
1182 CC="$ac_cv_prog_CC"
1183 fi
1184
1185 if test -z "$CC"; then
1186 if test -n "$ac_tool_prefix"; then
1187 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1188 set dummy ${ac_tool_prefix}cc; ac_word=$2
1189 echo "$as_me:1193: checking for $ac_word" >&5
1190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1191 if test "${ac_cv_prog_CC+set}" = set; then
1192 echo $ECHO_N "(cached) $ECHO_C" >&6
1193 else
1194 if test -n "$CC"; then
1195 ac_cv_prog_CC="$CC" # Let the user override the test.
1196 else
1197 ac_save_IFS=$IFS; IFS=$ac_path_separator
1198 ac_dummy="$PATH"
1199 for ac_dir in $ac_dummy; do
1200 IFS=$ac_save_IFS
1201 test -z "$ac_dir" && ac_dir=.
1202 $as_executable_p "$ac_dir/$ac_word" || continue
1203 ac_cv_prog_CC="${ac_tool_prefix}cc"
1204 echo "$as_me:1208: found $ac_dir/$ac_word" >&5
1205 break
1206 done
1207
1208 fi
1209 fi
1210 CC=$ac_cv_prog_CC
1211 if test -n "$CC"; then
1212 echo "$as_me:1216: result: $CC" >&5
1213 echo "${ECHO_T}$CC" >&6
1214 else
1215 echo "$as_me:1219: result: no" >&5
1216 echo "${ECHO_T}no" >&6
1217 fi
1218
1219 fi
1220 if test -z "$ac_cv_prog_CC"; then
1221 ac_ct_CC=$CC
1222 # Extract the first word of "cc", so it can be a program name with args.
1223 set dummy cc; ac_word=$2
1224 echo "$as_me:1228: checking for $ac_word" >&5
1225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1226 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1227 echo $ECHO_N "(cached) $ECHO_C" >&6
1228 else
1229 if test -n "$ac_ct_CC"; then
1230 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1231 else
1232 ac_save_IFS=$IFS; IFS=$ac_path_separator
1233 ac_dummy="$PATH"
1234 for ac_dir in $ac_dummy; do
1235 IFS=$ac_save_IFS
1236 test -z "$ac_dir" && ac_dir=.
1237 $as_executable_p "$ac_dir/$ac_word" || continue
1238 ac_cv_prog_ac_ct_CC="cc"
1239 echo "$as_me:1243: found $ac_dir/$ac_word" >&5
1240 break
1241 done
1242
1243 fi
1244 fi
1245 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1246 if test -n "$ac_ct_CC"; then
1247 echo "$as_me:1251: result: $ac_ct_CC" >&5
1248 echo "${ECHO_T}$ac_ct_CC" >&6
1249 else
1250 echo "$as_me:1254: result: no" >&5
1251 echo "${ECHO_T}no" >&6
1252 fi
1253
1254 CC=$ac_ct_CC
1255 else
1256 CC="$ac_cv_prog_CC"
1257 fi
1258
1259 fi
1260 if test -z "$CC"; then
1261 # Extract the first word of "cc", so it can be a program name with args.
1262 set dummy cc; ac_word=$2
1263 echo "$as_me:1267: checking for $ac_word" >&5
1264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1265 if test "${ac_cv_prog_CC+set}" = set; then
1266 echo $ECHO_N "(cached) $ECHO_C" >&6
1267 else
1268 if test -n "$CC"; then
1269 ac_cv_prog_CC="$CC" # Let the user override the test.
1270 else
1271 ac_prog_rejected=no
1272 ac_save_IFS=$IFS; IFS=$ac_path_separator
1273 ac_dummy="$PATH"
1274 for ac_dir in $ac_dummy; do
1275 IFS=$ac_save_IFS
1276 test -z "$ac_dir" && ac_dir=.
1277 $as_executable_p "$ac_dir/$ac_word" || continue
1278 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1279 ac_prog_rejected=yes
1280 continue
1281 fi
1282 ac_cv_prog_CC="cc"
1283 echo "$as_me:1287: found $ac_dir/$ac_word" >&5
1284 break
1285 done
1286
1287 if test $ac_prog_rejected = yes; then
1288 # We found a bogon in the path, so make sure we never use it.
1289 set dummy $ac_cv_prog_CC
1290 shift
1291 if test $# != 0; then
1292 # We chose a different compiler from the bogus one.
1293 # However, it has the same basename, so the bogon will be chosen
1294 # first if we set CC to just the basename; use the full file name.
1295 shift
1296 set dummy "$ac_dir/$ac_word" ${1+"$@"}
1297 shift
1298 ac_cv_prog_CC="$@"
1299 fi
1300 fi
1301 fi
1302 fi
1303 CC=$ac_cv_prog_CC
1304 if test -n "$CC"; then
1305 echo "$as_me:1309: result: $CC" >&5
1306 echo "${ECHO_T}$CC" >&6
1307 else
1308 echo "$as_me:1312: result: no" >&5
1309 echo "${ECHO_T}no" >&6
1310 fi
1311
1312 fi
1313 if test -z "$CC"; then
1314 if test -n "$ac_tool_prefix"; then
1315 for ac_prog in cl
1316 do
1317 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1318 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1319 echo "$as_me:1323: checking for $ac_word" >&5
1320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1321 if test "${ac_cv_prog_CC+set}" = set; then
1322 echo $ECHO_N "(cached) $ECHO_C" >&6
1323 else
1324 if test -n "$CC"; then
1325 ac_cv_prog_CC="$CC" # Let the user override the test.
1326 else
1327 ac_save_IFS=$IFS; IFS=$ac_path_separator
1328 ac_dummy="$PATH"
1329 for ac_dir in $ac_dummy; do
1330 IFS=$ac_save_IFS
1331 test -z "$ac_dir" && ac_dir=.
1332 $as_executable_p "$ac_dir/$ac_word" || continue
1333 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1334 echo "$as_me:1338: found $ac_dir/$ac_word" >&5
1335 break
1336 done
1337
1338 fi
1339 fi
1340 CC=$ac_cv_prog_CC
1341 if test -n "$CC"; then
1342 echo "$as_me:1346: result: $CC" >&5
1343 echo "${ECHO_T}$CC" >&6
1344 else
1345 echo "$as_me:1349: result: no" >&5
1346 echo "${ECHO_T}no" >&6
1347 fi
1348
1349 test -n "$CC" && break
1350 done
1351 fi
1352 if test -z "$CC"; then
1353 ac_ct_CC=$CC
1354 for ac_prog in cl
1355 do
1356 # Extract the first word of "$ac_prog", so it can be a program name with args.
1357 set dummy $ac_prog; ac_word=$2
1358 echo "$as_me:1362: checking for $ac_word" >&5
1359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1360 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1361 echo $ECHO_N "(cached) $ECHO_C" >&6
1362 else
1363 if test -n "$ac_ct_CC"; then
1364 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1365 else
1366 ac_save_IFS=$IFS; IFS=$ac_path_separator
1367 ac_dummy="$PATH"
1368 for ac_dir in $ac_dummy; do
1369 IFS=$ac_save_IFS
1370 test -z "$ac_dir" && ac_dir=.
1371 $as_executable_p "$ac_dir/$ac_word" || continue
1372 ac_cv_prog_ac_ct_CC="$ac_prog"
1373 echo "$as_me:1377: found $ac_dir/$ac_word" >&5
1374 break
1375 done
1376
1377 fi
1378 fi
1379 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1380 if test -n "$ac_ct_CC"; then
1381 echo "$as_me:1385: result: $ac_ct_CC" >&5
1382 echo "${ECHO_T}$ac_ct_CC" >&6
1383 else
1384 echo "$as_me:1388: result: no" >&5
1385 echo "${ECHO_T}no" >&6
1386 fi
1387
1388 test -n "$ac_ct_CC" && break
1389 done
1390
1391 CC=$ac_ct_CC
1392 fi
1393
1394 fi
1395
1396 test -z "$CC" && { { echo "$as_me:1400: error: no acceptable cc found in \$PATH" >&5
1397 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
1398 { (exit 1); exit 1; }; }
1399
1400 cat >conftest.$ac_ext <<_ACEOF
1401 #line 1405 "configure"
1402 #include "confdefs.h"
1403
1404 int
1405 main ()
1406 {
1407
1408 ;
1409 return 0;
1410 }
1411 _ACEOF
1412 ac_clean_files_save=$ac_clean_files
1413 ac_clean_files="$ac_clean_files a.out a.exe"
1414 # Try to create an executable without -o first, disregard a.out.
1415 # It will help us diagnose broken compiler, and finding out an intuition
1416 # of exeext.
1417 echo "$as_me:1421: checking for C compiler default output" >&5
1418 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1419 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1420 if { (eval echo "$as_me:1424: \"$ac_link_default\"") >&5
1421 (eval $ac_link_default) 2>&5
1422 ac_status=$?
1423 echo "$as_me:1427: \$? = $ac_status" >&5
1424 (exit $ac_status); }; then
1425 for ac_file in `ls a.exe conftest.exe a.* conftest conftest.* 2>/dev/null`; do
1426 case $ac_file in
1427 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1428 a.out ) # We found the default executable, but exeext='' is most
1429 # certainly right.
1430 break;;
1431 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1432 export ac_cv_exeext
1433 break;;
1434 * ) break;;
1435 esac
1436 done
1437 else
1438 echo "$as_me: failed program was:" >&5
1439 cat conftest.$ac_ext >&5
1440 { { echo "$as_me:1444: error: C compiler cannot create executables" >&5
1441 echo "$as_me: error: C compiler cannot create executables" >&2;}
1442 { (exit 77); exit 77; }; }
1443 fi
1444
1445 ac_exeext=$ac_cv_exeext
1446 echo "$as_me:1450: result: $ac_file" >&5
1447 echo "${ECHO_T}$ac_file" >&6
1448
1449 # Check the compiler produces executables we can run. If not, either
1450 # the compiler is broken, or we cross compile.
1451 echo "$as_me:1455: checking whether the C compiler works" >&5
1452 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1453 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1454 # If not cross compiling, check that we can run a simple program.
1455 if test "$cross_compiling" != yes; then
1456 if { ac_try='./$ac_file'
1457 { (eval echo "$as_me:1461: \"$ac_try\"") >&5
1458 (eval $ac_try) 2>&5
1459 ac_status=$?
1460 echo "$as_me:1464: \$? = $ac_status" >&5
1461 (exit $ac_status); }; }; then
1462 cross_compiling=no
1463 else
1464 if test "$cross_compiling" = maybe; then
1465 cross_compiling=yes
1466 else
1467 { { echo "$as_me:1471: error: cannot run C compiled programs.
1468 If you meant to cross compile, use \`--host'." >&5
1469 echo "$as_me: error: cannot run C compiled programs.
1470 If you meant to cross compile, use \`--host'." >&2;}
1471 { (exit 1); exit 1; }; }
1472 fi
1473 fi
1474 fi
1475 echo "$as_me:1479: result: yes" >&5
1476 echo "${ECHO_T}yes" >&6
1477
1478 rm -f a.out a.exe conftest$ac_cv_exeext
1479 ac_clean_files=$ac_clean_files_save
1480 # Check the compiler produces executables we can run. If not, either
1481 # the compiler is broken, or we cross compile.
1482 echo "$as_me:1486: checking whether we are cross compiling" >&5
1483 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1484 echo "$as_me:1488: result: $cross_compiling" >&5
1485 echo "${ECHO_T}$cross_compiling" >&6
1486
1487 echo "$as_me:1491: checking for executable suffix" >&5
1488 echo $ECHO_N "checking for executable suffix... $ECHO_C" >&6
1489 if { (eval echo "$as_me:1493: \"$ac_link\"") >&5
1490 (eval $ac_link) 2>&5
1491 ac_status=$?
1492 echo "$as_me:1496: \$? = $ac_status" >&5
1493 (exit $ac_status); }; then
1494 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1495 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1496 # work properly (i.e., refer to `conftest.exe'), while it won't with
1497 # `rm'.
1498 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1499 case $ac_file in
1500 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
1501 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1502 export ac_cv_exeext
1503 break;;
1504 * ) break;;
1505 esac
1506 done
1507 else
1508 { { echo "$as_me:1512: error: cannot compute EXEEXT: cannot compile and link" >&5
1509 echo "$as_me: error: cannot compute EXEEXT: cannot compile and link" >&2;}
1510 { (exit 1); exit 1; }; }
1511 fi
1512
1513 rm -f conftest$ac_cv_exeext
1514 echo "$as_me:1518: result: $ac_cv_exeext" >&5
1515 echo "${ECHO_T}$ac_cv_exeext" >&6
1516
1517 rm -f conftest.$ac_ext
1518 EXEEXT=$ac_cv_exeext
1519 ac_exeext=$EXEEXT
1520 echo "$as_me:1524: checking for object suffix" >&5
1521 echo $ECHO_N "checking for object suffix... $ECHO_C" >&6
1522 if test "${ac_cv_objext+set}" = set; then
1523 echo $ECHO_N "(cached) $ECHO_C" >&6
1524 else
1525 cat >conftest.$ac_ext <<_ACEOF
1526 #line 1530 "configure"
1527 #include "confdefs.h"
1528
1529 int
1530 main ()
1531 {
1532
1533 ;
1534 return 0;
1535 }
1536 _ACEOF
1537 rm -f conftest.o conftest.obj
1538 if { (eval echo "$as_me:1542: \"$ac_compile\"") >&5
1539 (eval $ac_compile) 2>&5
1540 ac_status=$?
1541 echo "$as_me:1545: \$? = $ac_status" >&5
1542 (exit $ac_status); }; then
1543 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1544 case $ac_file in
1545 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
1546 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1547 break;;
1548 esac
1549 done
1550 else
1551 echo "$as_me: failed program was:" >&5
1552 cat conftest.$ac_ext >&5
1553 { { echo "$as_me:1557: error: cannot compute OBJEXT: cannot compile" >&5
1554 echo "$as_me: error: cannot compute OBJEXT: cannot compile" >&2;}
1555 { (exit 1); exit 1; }; }
1556 fi
1557
1558 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1559 fi
1560 echo "$as_me:1564: result: $ac_cv_objext" >&5
1561 echo "${ECHO_T}$ac_cv_objext" >&6
1562 OBJEXT=$ac_cv_objext
1563 ac_objext=$OBJEXT
1564 echo "$as_me:1568: checking whether we are using the GNU C compiler" >&5
1565 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1566 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1567 echo $ECHO_N "(cached) $ECHO_C" >&6
1568 else
1569 cat >conftest.$ac_ext <<_ACEOF
1570 #line 1574 "configure"
1571 #include "confdefs.h"
1572
1573 int
1574 main ()
1575 {
1576 #ifndef __GNUC__
1577 choke me
1578 #endif
1579
1580 ;
1581 return 0;
1582 }
1583 _ACEOF
1584 rm -f conftest.$ac_objext
1585 if { (eval echo "$as_me:1589: \"$ac_compile\"") >&5
1586 (eval $ac_compile) 2>&5
1587 ac_status=$?
1588 echo "$as_me:1592: \$? = $ac_status" >&5
1589 (exit $ac_status); } &&
1590 { ac_try='test -s conftest.$ac_objext'
1591 { (eval echo "$as_me:1595: \"$ac_try\"") >&5
1592 (eval $ac_try) 2>&5
1593 ac_status=$?
1594 echo "$as_me:1598: \$? = $ac_status" >&5
1595 (exit $ac_status); }; }; then
1596 ac_compiler_gnu=yes
1597 else
1598 echo "$as_me: failed program was:" >&5
1599 cat conftest.$ac_ext >&5
1600 ac_compiler_gnu=no
1601 fi
1602 rm -f conftest.$ac_objext conftest.$ac_ext
1603 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1604
1605 fi
1606 echo "$as_me:1610: result: $ac_cv_c_compiler_gnu" >&5
1607 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1608 GCC=`test $ac_compiler_gnu = yes && echo yes`
1609 ac_test_CFLAGS=${CFLAGS+set}
1610 ac_save_CFLAGS=$CFLAGS
1611 CFLAGS="-g"
1612 echo "$as_me:1616: checking whether $CC accepts -g" >&5
1613 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1614 if test "${ac_cv_prog_cc_g+set}" = set; then
1615 echo $ECHO_N "(cached) $ECHO_C" >&6
1616 else
1617 cat >conftest.$ac_ext <<_ACEOF
1618 #line 1622 "configure"
1619 #include "confdefs.h"
1620
1621 int
1622 main ()
1623 {
1624
1625 ;
1626 return 0;
1627 }
1628 _ACEOF
1629 rm -f conftest.$ac_objext
1630 if { (eval echo "$as_me:1634: \"$ac_compile\"") >&5
1631 (eval $ac_compile) 2>&5
1632 ac_status=$?
1633 echo "$as_me:1637: \$? = $ac_status" >&5
1634 (exit $ac_status); } &&
1635 { ac_try='test -s conftest.$ac_objext'
1636 { (eval echo "$as_me:1640: \"$ac_try\"") >&5
1637 (eval $ac_try) 2>&5
1638 ac_status=$?
1639 echo "$as_me:1643: \$? = $ac_status" >&5
1640 (exit $ac_status); }; }; then
1641 ac_cv_prog_cc_g=yes
1642 else
1643 echo "$as_me: failed program was:" >&5
1644 cat conftest.$ac_ext >&5
1645 ac_cv_prog_cc_g=no
1646 fi
1647 rm -f conftest.$ac_objext conftest.$ac_ext
1648 fi
1649 echo "$as_me:1653: result: $ac_cv_prog_cc_g" >&5
1650 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1651 if test "$ac_test_CFLAGS" = set; then
1652 CFLAGS=$ac_save_CFLAGS
1653 elif test $ac_cv_prog_cc_g = yes; then
1654 if test "$GCC" = yes; then
1655 CFLAGS="-g -O2"
1656 else
1657 CFLAGS="-g"
1658 fi
1659 else
1660 if test "$GCC" = yes; then
1661 CFLAGS="-O2"
1662 else
1663 CFLAGS=
1664 fi
1665 fi
1666 # Some people use a C++ compiler to compile C. Since we use `exit',
1667 # in C++ we need to declare it. In case someone uses the same compiler
1668 # for both compiling C and C++ we need to have the C++ compiler decide
1669 # the declaration of exit, since it's the most demanding environment.
1670 cat >conftest.$ac_ext <<_ACEOF
1671 #ifndef __cplusplus
1672 choke me
1673 #endif
1674 _ACEOF
1675 rm -f conftest.$ac_objext
1676 if { (eval echo "$as_me:1680: \"$ac_compile\"") >&5
1677 (eval $ac_compile) 2>&5
1678 ac_status=$?
1679 echo "$as_me:1683: \$? = $ac_status" >&5
1680 (exit $ac_status); } &&
1681 { ac_try='test -s conftest.$ac_objext'
1682 { (eval echo "$as_me:1686: \"$ac_try\"") >&5
1683 (eval $ac_try) 2>&5
1684 ac_status=$?
1685 echo "$as_me:1689: \$? = $ac_status" >&5
1686 (exit $ac_status); }; }; then
1687 for ac_declaration in \
1688 ''\
1689 '#include <stdlib.h>' \
1690 'extern "C" void std::exit (int) throw (); using std::exit;' \
1691 'extern "C" void std::exit (int); using std::exit;' \
1692 'extern "C" void exit (int) throw ();' \
1693 'extern "C" void exit (int);' \
1694 'void exit (int);'
1695 do
1696 cat >conftest.$ac_ext <<_ACEOF
1697 #line 1701 "configure"
1698 #include "confdefs.h"
1699 #include <stdlib.h>
1700 $ac_declaration
1701 int
1702 main ()
1703 {
1704 exit (42);
1705 ;
1706 return 0;
1707 }
1708 _ACEOF
1709 rm -f conftest.$ac_objext
1710 if { (eval echo "$as_me:1714: \"$ac_compile\"") >&5
1711 (eval $ac_compile) 2>&5
1712 ac_status=$?
1713 echo "$as_me:1717: \$? = $ac_status" >&5
1714 (exit $ac_status); } &&
1715 { ac_try='test -s conftest.$ac_objext'
1716 { (eval echo "$as_me:1720: \"$ac_try\"") >&5
1717 (eval $ac_try) 2>&5
1718 ac_status=$?
1719 echo "$as_me:1723: \$? = $ac_status" >&5
1720 (exit $ac_status); }; }; then
1721 :
1722 else
1723 echo "$as_me: failed program was:" >&5
1724 cat conftest.$ac_ext >&5
1725 continue
1726 fi
1727 rm -f conftest.$ac_objext conftest.$ac_ext
1728 cat >conftest.$ac_ext <<_ACEOF
1729 #line 1733 "configure"
1730 #include "confdefs.h"
1731 $ac_declaration
1732 int
1733 main ()
1734 {
1735 exit (42);
1736 ;
1737 return 0;
1738 }
1739 _ACEOF
1740 rm -f conftest.$ac_objext
1741 if { (eval echo "$as_me:1745: \"$ac_compile\"") >&5
1742 (eval $ac_compile) 2>&5
1743 ac_status=$?
1744 echo "$as_me:1748: \$? = $ac_status" >&5
1745 (exit $ac_status); } &&
1746 { ac_try='test -s conftest.$ac_objext'
1747 { (eval echo "$as_me:1751: \"$ac_try\"") >&5
1748 (eval $ac_try) 2>&5
1749 ac_status=$?
1750 echo "$as_me:1754: \$? = $ac_status" >&5
1751 (exit $ac_status); }; }; then
1752 break
1753 else
1754 echo "$as_me: failed program was:" >&5
1755 cat conftest.$ac_ext >&5
1756 fi
1757 rm -f conftest.$ac_objext conftest.$ac_ext
1758 done
1759 echo '#ifdef __cplusplus' >>confdefs.h
1760 echo $ac_declaration >>confdefs.h
1761 echo '#endif' >>confdefs.h
1762
1763 else
1764 echo "$as_me: failed program was:" >&5
1765 cat conftest.$ac_ext >&5
1766 fi
1767 rm -f conftest.$ac_objext conftest.$ac_ext
1768 ac_ext=c
1769 ac_cpp='$CPP $CPPFLAGS'
1770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1773
1774 ac_aux_dir=
1775 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1776 if test -f $ac_dir/install-sh; then
1777 ac_aux_dir=$ac_dir
1778 ac_install_sh="$ac_aux_dir/install-sh -c"
1779 break
1780 elif test -f $ac_dir/install.sh; then
1781 ac_aux_dir=$ac_dir
1782 ac_install_sh="$ac_aux_dir/install.sh -c"
1783 break
1784 elif test -f $ac_dir/shtool; then
1785 ac_aux_dir=$ac_dir
1786 ac_install_sh="$ac_aux_dir/shtool install -c"
1787 break
1788 fi
1789 done
1790 if test -z "$ac_aux_dir"; then
1791 { { echo "$as_me:1795: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1792 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1793 { (exit 1); exit 1; }; }
1794 fi
1795 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1796 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1797 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1798
1799 # Find a good install program. We prefer a C program (faster),
1800 # so one script is as good as another. But avoid the broken or
1801 # incompatible versions:
1802 # SysV /etc/install, /usr/sbin/install
1803 # SunOS /usr/etc/install
1804 # IRIX /sbin/install
1805 # AIX /bin/install
1806 # AmigaOS /C/install, which installs bootblocks on floppy discs
1807 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1808 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1809 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1810 # ./install, which can be erroneously created by make from ./install.sh.
1811 echo "$as_me:1815: checking for a BSD compatible install" >&5
1812 echo $ECHO_N "checking for a BSD compatible install... $ECHO_C" >&6
1813 if test -z "$INSTALL"; then
1814 if test "${ac_cv_path_install+set}" = set; then
1815 echo $ECHO_N "(cached) $ECHO_C" >&6
1816 else
1817 ac_save_IFS=$IFS; IFS=$ac_path_separator
1818 for ac_dir in $PATH; do
1819 IFS=$ac_save_IFS
1820 # Account for people who put trailing slashes in PATH elements.
1821 case $ac_dir/ in
1822 / | ./ | .// | /cC/* \
1823 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* \
1824 | /usr/ucb/* ) ;;
1825 *)
1826 # OSF1 and SCO ODT 3.0 have their own names for install.
1827 # Don't use installbsd from OSF since it installs stuff as root
1828 # by default.
1829 for ac_prog in ginstall scoinst install; do
1830 if $as_executable_p "$ac_dir/$ac_prog"; then
1831 if test $ac_prog = install &&
1832 grep dspmsg "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1833 # AIX install. It has an incompatible calling convention.
1834 :
1835 elif test $ac_prog = install &&
1836 grep pwplus "$ac_dir/$ac_prog" >/dev/null 2>&1; then
1837 # program-specific install script used by HP pwplus--don't use.
1838 :
1839 else
1840 ac_cv_path_install="$ac_dir/$ac_prog -c"
1841 break 2
1842 fi
1843 fi
1844 done
1845 ;;
1846 esac
1847 done
1848
1849 fi
1850 if test "${ac_cv_path_install+set}" = set; then
1851 INSTALL=$ac_cv_path_install
1852 else
1853 # As a last resort, use the slow shell script. We don't cache a
1854 # path for INSTALL within a source directory, because that will
1855 # break other packages using the cache if that directory is
1856 # removed, or if the path is relative.
1857 INSTALL=$ac_install_sh
1858 fi
1859 fi
1860 echo "$as_me:1864: result: $INSTALL" >&5
1861 echo "${ECHO_T}$INSTALL" >&6
1862
1863 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1864 # It thinks the first close brace ends the variable substitution.
1865 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1866
1867 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1868
1869 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1870
1871 if test -n "$ac_tool_prefix"; then
1872 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
1873 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
1874 echo "$as_me:1878: checking for $ac_word" >&5
1875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1876 if test "${ac_cv_prog_RANLIB+set}" = set; then
1877 echo $ECHO_N "(cached) $ECHO_C" >&6
1878 else
1879 if test -n "$RANLIB"; then
1880 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1881 else
1882 ac_save_IFS=$IFS; IFS=$ac_path_separator
1883 ac_dummy="$PATH"
1884 for ac_dir in $ac_dummy; do
1885 IFS=$ac_save_IFS
1886 test -z "$ac_dir" && ac_dir=.
1887 $as_executable_p "$ac_dir/$ac_word" || continue
1888 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
1889 echo "$as_me:1893: found $ac_dir/$ac_word" >&5
1890 break
1891 done
1892
1893 fi
1894 fi
1895 RANLIB=$ac_cv_prog_RANLIB
1896 if test -n "$RANLIB"; then
1897 echo "$as_me:1901: result: $RANLIB" >&5
1898 echo "${ECHO_T}$RANLIB" >&6
1899 else
1900 echo "$as_me:1904: result: no" >&5
1901 echo "${ECHO_T}no" >&6
1902 fi
1903
1904 fi
1905 if test -z "$ac_cv_prog_RANLIB"; then
1906 ac_ct_RANLIB=$RANLIB
1907 # Extract the first word of "ranlib", so it can be a program name with args.
1908 set dummy ranlib; ac_word=$2
1909 echo "$as_me:1913: checking for $ac_word" >&5
1910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1911 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
1912 echo $ECHO_N "(cached) $ECHO_C" >&6
1913 else
1914 if test -n "$ac_ct_RANLIB"; then
1915 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
1916 else
1917 ac_save_IFS=$IFS; IFS=$ac_path_separator
1918 ac_dummy="$PATH"
1919 for ac_dir in $ac_dummy; do
1920 IFS=$ac_save_IFS
1921 test -z "$ac_dir" && ac_dir=.
1922 $as_executable_p "$ac_dir/$ac_word" || continue
1923 ac_cv_prog_ac_ct_RANLIB="ranlib"
1924 echo "$as_me:1928: found $ac_dir/$ac_word" >&5
1925 break
1926 done
1927
1928 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
1929 fi
1930 fi
1931 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
1932 if test -n "$ac_ct_RANLIB"; then
1933 echo "$as_me:1937: result: $ac_ct_RANLIB" >&5
1934 echo "${ECHO_T}$ac_ct_RANLIB" >&6
1935 else
1936 echo "$as_me:1940: result: no" >&5
1937 echo "${ECHO_T}no" >&6
1938 fi
1939
1940 RANLIB=$ac_ct_RANLIB
1941 else
1942 RANLIB="$ac_cv_prog_RANLIB"
1943 fi
1944
1945 ac_ext=c
1946 ac_cpp='$CPP $CPPFLAGS'
1947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1950 echo "$as_me:1954: checking how to run the C preprocessor" >&5
1951 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
1952 # On Suns, sometimes $CPP names a directory.
1953 if test -n "$CPP" && test -d "$CPP"; then
1954 CPP=
1955 fi
1956 if test -z "$CPP"; then
1957 if test "${ac_cv_prog_CPP+set}" = set; then
1958 echo $ECHO_N "(cached) $ECHO_C" >&6
1959 else
1960 # Double quotes because CPP needs to be expanded
1961 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
1962 do
1963 # break 2 since there is a loop in there.
1964 ac_preproc_ok=false
1965 for ac_c_preproc_warn_flag in '' yes
1966 do
1967 # Use a header file that comes with gcc, so configuring glibc
1968 # with a fresh cross-compiler works.
1969 # On the NeXT, cc -E runs the code through the compiler's parser,
1970 # not just through cpp. "Syntax error" is here to catch this case.
1971 cat >conftest.$ac_ext <<_ACEOF
1972 #line 1976 "configure"
1973 #include "confdefs.h"
1974 #include <assert.h>
1975 Syntax error
1976 _ACEOF
1977 if { (eval echo "$as_me:1981: \"$ac_cpp conftest.$ac_ext\"") >&5
1978 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
1979 ac_status=$?
1980 egrep -v '^ *\+' conftest.er1 >conftest.err
1981 rm -f conftest.er1
1982 cat conftest.err >&5
1983 echo "$as_me:1987: \$? = $ac_status" >&5
1984 (exit $ac_status); } >/dev/null; then
1985 if test -s conftest.err; then
1986 ac_cpp_err=$ac_c_preproc_warn_flag
1987 else
1988 ac_cpp_err=
1989 fi
1990 else
1991 ac_cpp_err=yes
1992 fi
1993 if test -z "$ac_cpp_err"; then
1994 :
1995 else
1996 echo "$as_me: failed program was:" >&5
1997 cat conftest.$ac_ext >&5
1998 # Broken: fails on valid input.
1999 continue
2000 fi
2001 rm -f conftest.err conftest.$ac_ext
2002
2003 # OK, works on sane cases. Now check whether non-existent headers
2004 # can be detected and how.
2005 cat >conftest.$ac_ext <<_ACEOF
2006 #line 2010 "configure"
2007 #include "confdefs.h"
2008 #include <ac_nonexistent.h>
2009 _ACEOF
2010 if { (eval echo "$as_me:2014: \"$ac_cpp conftest.$ac_ext\"") >&5
2011 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2012 ac_status=$?
2013 egrep -v '^ *\+' conftest.er1 >conftest.err
2014 rm -f conftest.er1
2015 cat conftest.err >&5
2016 echo "$as_me:2020: \$? = $ac_status" >&5
2017 (exit $ac_status); } >/dev/null; then
2018 if test -s conftest.err; then
2019 ac_cpp_err=$ac_c_preproc_warn_flag
2020 else
2021 ac_cpp_err=
2022 fi
2023 else
2024 ac_cpp_err=yes
2025 fi
2026 if test -z "$ac_cpp_err"; then
2027 # Broken: success on invalid input.
2028 continue
2029 else
2030 echo "$as_me: failed program was:" >&5
2031 cat conftest.$ac_ext >&5
2032 # Passes both tests.
2033 ac_preproc_ok=:
2034 break
2035 fi
2036 rm -f conftest.err conftest.$ac_ext
2037
2038 done
2039 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2040 rm -f conftest.err conftest.$ac_ext
2041 if $ac_preproc_ok; then
2042 break 2
2043 fi
2044
2045 done
2046 ac_cv_prog_CPP=$CPP
2047
2048 fi
2049 CPP=$ac_cv_prog_CPP
2050 else
2051 ac_cv_prog_CPP=$CPP
2052 fi
2053 echo "$as_me:2057: result: $CPP" >&5
2054 echo "${ECHO_T}$CPP" >&6
2055 ac_preproc_ok=false
2056 for ac_c_preproc_warn_flag in '' yes
2057 do
2058 # Use a header file that comes with gcc, so configuring glibc
2059 # with a fresh cross-compiler works.
2060 # On the NeXT, cc -E runs the code through the compiler's parser,
2061 # not just through cpp. "Syntax error" is here to catch this case.
2062 cat >conftest.$ac_ext <<_ACEOF
2063 #line 2067 "configure"
2064 #include "confdefs.h"
2065 #include <assert.h>
2066 Syntax error
2067 _ACEOF
2068 if { (eval echo "$as_me:2072: \"$ac_cpp conftest.$ac_ext\"") >&5
2069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2070 ac_status=$?
2071 egrep -v '^ *\+' conftest.er1 >conftest.err
2072 rm -f conftest.er1
2073 cat conftest.err >&5
2074 echo "$as_me:2078: \$? = $ac_status" >&5
2075 (exit $ac_status); } >/dev/null; then
2076 if test -s conftest.err; then
2077 ac_cpp_err=$ac_c_preproc_warn_flag
2078 else
2079 ac_cpp_err=
2080 fi
2081 else
2082 ac_cpp_err=yes
2083 fi
2084 if test -z "$ac_cpp_err"; then
2085 :
2086 else
2087 echo "$as_me: failed program was:" >&5
2088 cat conftest.$ac_ext >&5
2089 # Broken: fails on valid input.
2090 continue
2091 fi
2092 rm -f conftest.err conftest.$ac_ext
2093
2094 # OK, works on sane cases. Now check whether non-existent headers
2095 # can be detected and how.
2096 cat >conftest.$ac_ext <<_ACEOF
2097 #line 2101 "configure"
2098 #include "confdefs.h"
2099 #include <ac_nonexistent.h>
2100 _ACEOF
2101 if { (eval echo "$as_me:2105: \"$ac_cpp conftest.$ac_ext\"") >&5
2102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2103 ac_status=$?
2104 egrep -v '^ *\+' conftest.er1 >conftest.err
2105 rm -f conftest.er1
2106 cat conftest.err >&5
2107 echo "$as_me:2111: \$? = $ac_status" >&5
2108 (exit $ac_status); } >/dev/null; then
2109 if test -s conftest.err; then
2110 ac_cpp_err=$ac_c_preproc_warn_flag
2111 else
2112 ac_cpp_err=
2113 fi
2114 else
2115 ac_cpp_err=yes
2116 fi
2117 if test -z "$ac_cpp_err"; then
2118 # Broken: success on invalid input.
2119 continue
2120 else
2121 echo "$as_me: failed program was:" >&5
2122 cat conftest.$ac_ext >&5
2123 # Passes both tests.
2124 ac_preproc_ok=:
2125 break
2126 fi
2127 rm -f conftest.err conftest.$ac_ext
2128
2129 done
2130 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2131 rm -f conftest.err conftest.$ac_ext
2132 if $ac_preproc_ok; then
2133 :
2134 else
2135 { { echo "$as_me:2139: error: C preprocessor \"$CPP\" fails sanity check" >&5
2136 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2137 { (exit 1); exit 1; }; }
2138 fi
2139
2140 ac_ext=c
2141 ac_cpp='$CPP $CPPFLAGS'
2142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2145
2146 echo "$as_me:2150: checking for ANSI C header files" >&5
2147 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2148 if test "${ac_cv_header_stdc+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 else
2151 cat >conftest.$ac_ext <<_ACEOF
2152 #line 2156 "configure"
2153 #include "confdefs.h"
2154 #include <stdlib.h>
2155 #include <stdarg.h>
2156 #include <string.h>
2157 #include <float.h>
2158
2159 _ACEOF
2160 if { (eval echo "$as_me:2164: \"$ac_cpp conftest.$ac_ext\"") >&5
2161 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2162 ac_status=$?
2163 egrep -v '^ *\+' conftest.er1 >conftest.err
2164 rm -f conftest.er1
2165 cat conftest.err >&5
2166 echo "$as_me:2170: \$? = $ac_status" >&5
2167 (exit $ac_status); } >/dev/null; then
2168 if test -s conftest.err; then
2169 ac_cpp_err=$ac_c_preproc_warn_flag
2170 else
2171 ac_cpp_err=
2172 fi
2173 else
2174 ac_cpp_err=yes
2175 fi
2176 if test -z "$ac_cpp_err"; then
2177 ac_cv_header_stdc=yes
2178 else
2179 echo "$as_me: failed program was:" >&5
2180 cat conftest.$ac_ext >&5
2181 ac_cv_header_stdc=no
2182 fi
2183 rm -f conftest.err conftest.$ac_ext
2184
2185 if test $ac_cv_header_stdc = yes; then
2186 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2187 cat >conftest.$ac_ext <<_ACEOF
2188 #line 2192 "configure"
2189 #include "confdefs.h"
2190 #include <string.h>
2191
2192 _ACEOF
2193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2194 egrep "memchr" >/dev/null 2>&1; then
2195 :
2196 else
2197 ac_cv_header_stdc=no
2198 fi
2199 rm -f conftest*
2200
2201 fi
2202
2203 if test $ac_cv_header_stdc = yes; then
2204 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2205 cat >conftest.$ac_ext <<_ACEOF
2206 #line 2210 "configure"
2207 #include "confdefs.h"
2208 #include <stdlib.h>
2209
2210 _ACEOF
2211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2212 egrep "free" >/dev/null 2>&1; then
2213 :
2214 else
2215 ac_cv_header_stdc=no
2216 fi
2217 rm -f conftest*
2218
2219 fi
2220
2221 if test $ac_cv_header_stdc = yes; then
2222 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2223 if test "$cross_compiling" = yes; then
2224 :
2225 else
2226 cat >conftest.$ac_ext <<_ACEOF
2227 #line 2231 "configure"
2228 #include "confdefs.h"
2229 #include <ctype.h>
2230 #if ((' ' & 0x0FF) == 0x020)
2231 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2232 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2233 #else
2234 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2235 || ('j' <= (c) && (c) <= 'r') \
2236 || ('s' <= (c) && (c) <= 'z'))
2237 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2238 #endif
2239
2240 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2241 int
2242 main ()
2243 {
2244 int i;
2245 for (i = 0; i < 256; i++)
2246 if (XOR (islower (i), ISLOWER (i))
2247 || toupper (i) != TOUPPER (i))
2248 exit(2);
2249 exit (0);
2250 }
2251 _ACEOF
2252 rm -f conftest$ac_exeext
2253 if { (eval echo "$as_me:2257: \"$ac_link\"") >&5
2254 (eval $ac_link) 2>&5
2255 ac_status=$?
2256 echo "$as_me:2260: \$? = $ac_status" >&5
2257 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2258 { (eval echo "$as_me:2262: \"$ac_try\"") >&5
2259 (eval $ac_try) 2>&5
2260 ac_status=$?
2261 echo "$as_me:2265: \$? = $ac_status" >&5
2262 (exit $ac_status); }; }; then
2263 :
2264 else
2265 echo "$as_me: program exited with status $ac_status" >&5
2266 echo "$as_me: failed program was:" >&5
2267 cat conftest.$ac_ext >&5
2268 ac_cv_header_stdc=no
2269 fi
2270 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_ext
2271 fi
2272 fi
2273 fi
2274 echo "$as_me:2278: result: $ac_cv_header_stdc" >&5
2275 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2276 if test $ac_cv_header_stdc = yes; then
2277
2278 cat >>confdefs.h <<\EOF
2279 #define STDC_HEADERS 1
2280 EOF
2281
2282 fi
2283
2284 for ac_header in limits.h
2285 do
2286 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
2287 echo "$as_me:2291: checking for $ac_header" >&5
2288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2289 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2291 else
2292 cat >conftest.$ac_ext <<_ACEOF
2293 #line 2297 "configure"
2294 #include "confdefs.h"
2295 #include <$ac_header>
2296 _ACEOF
2297 if { (eval echo "$as_me:2301: \"$ac_cpp conftest.$ac_ext\"") >&5
2298 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2299 ac_status=$?
2300 egrep -v '^ *\+' conftest.er1 >conftest.err
2301 rm -f conftest.er1
2302 cat conftest.err >&5
2303 echo "$as_me:2307: \$? = $ac_status" >&5
2304 (exit $ac_status); } >/dev/null; then
2305 if test -s conftest.err; then
2306 ac_cpp_err=$ac_c_preproc_warn_flag
2307 else
2308 ac_cpp_err=
2309 fi
2310 else
2311 ac_cpp_err=yes
2312 fi
2313 if test -z "$ac_cpp_err"; then
2314 eval "$ac_ac_Header=yes"
2315 else
2316 echo "$as_me: failed program was:" >&5
2317 cat conftest.$ac_ext >&5
2318 eval "$ac_ac_Header=no"
2319 fi
2320 rm -f conftest.err conftest.$ac_ext
2321 fi
2322 echo "$as_me:2326: result: `eval echo '${'$ac_ac_Header'}'`" >&5
2323 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
2324 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
2325 cat >>confdefs.h <<EOF
2326 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
2327 EOF
2328
2329 fi
2330 done
2331
2332 echo "$as_me:2336: checking for $CC option to accept ANSI C" >&5
2333 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2334 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2336 else
2337 ac_cv_prog_cc_stdc=no
2338 ac_save_CC=$CC
2339 cat >conftest.$ac_ext <<_ACEOF
2340 #line 2344 "configure"
2341 #include "confdefs.h"
2342 #include <stdarg.h>
2343 #include <stdio.h>
2344 #include <sys/types.h>
2345 #include <sys/stat.h>
2346 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2347 struct buf { int x; };
2348 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2349 static char *e (p, i)
2350 char **p;
2351 int i;
2352 {
2353 return p[i];
2354 }
2355 static char *f (char * (*g) (char **, int), char **p, ...)
2356 {
2357 char *s;
2358 va_list v;
2359 va_start (v,p);
2360 s = g (p, va_arg (v,int));
2361 va_end (v);
2362 return s;
2363 }
2364 int test (int i, double x);
2365 struct s1 {int (*f) (int a);};
2366 struct s2 {int (*f) (double a);};
2367 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2368 int argc;
2369 char **argv;
2370 int
2371 main ()
2372 {
2373 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2374 ;
2375 return 0;
2376 }
2377 _ACEOF
2378 # Don't try gcc -ansi; that turns off useful extensions and
2379 # breaks some systems' header files.
2380 # AIX -qlanglvl=ansi
2381 # Ultrix and OSF/1 -std1
2382 # HP-UX 10.20 and later -Ae
2383 # HP-UX older versions -Aa -D_HPUX_SOURCE
2384 # SVR4 -Xc -D__EXTENSIONS__
2385 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2386 do
2387 CC="$ac_save_CC $ac_arg"
2388 rm -f conftest.$ac_objext
2389 if { (eval echo "$as_me:2393: \"$ac_compile\"") >&5
2390 (eval $ac_compile) 2>&5
2391 ac_status=$?
2392 echo "$as_me:2396: \$? = $ac_status" >&5
2393 (exit $ac_status); } &&
2394 { ac_try='test -s conftest.$ac_objext'
2395 { (eval echo "$as_me:2399: \"$ac_try\"") >&5
2396 (eval $ac_try) 2>&5
2397 ac_status=$?
2398 echo "$as_me:2402: \$? = $ac_status" >&5
2399 (exit $ac_status); }; }; then
2400 ac_cv_prog_cc_stdc=$ac_arg
2401 break
2402 else
2403 echo "$as_me: failed program was:" >&5
2404 cat conftest.$ac_ext >&5
2405 fi
2406 rm -f conftest.$ac_objext
2407 done
2408 rm -f conftest.$ac_ext conftest.$ac_objext
2409 CC=$ac_save_CC
2410
2411 fi
2412
2413 case "x$ac_cv_prog_cc_stdc" in
2414 x|xno)
2415 echo "$as_me:2419: result: none needed" >&5
2416 echo "${ECHO_T}none needed" >&6 ;;
2417 *)
2418 echo "$as_me:2422: result: $ac_cv_prog_cc_stdc" >&5
2419 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2420 CC="$CC $ac_cv_prog_cc_stdc" ;;
2421 esac
2422
2423 echo "$as_me:2427: checking for an ANSI C-conforming const" >&5
2424 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2425 if test "${ac_cv_c_const+set}" = set; then
2426 echo $ECHO_N "(cached) $ECHO_C" >&6
2427 else
2428 cat >conftest.$ac_ext <<_ACEOF
2429 #line 2433 "configure"
2430 #include "confdefs.h"
2431
2432 int
2433 main ()
2434 {
2435 /* FIXME: Include the comments suggested by Paul. */
2436 #ifndef __cplusplus
2437 /* Ultrix mips cc rejects this. */
2438 typedef int charset[2];
2439 const charset x;
2440 /* SunOS 4.1.1 cc rejects this. */
2441 char const *const *ccp;
2442 char **p;
2443 /* NEC SVR4.0.2 mips cc rejects this. */
2444 struct point {int x, y;};
2445 static struct point const zero = {0,0};
2446 /* AIX XL C 1.02.0.0 rejects this.
2447 It does not let you subtract one const X* pointer from another in
2448 an arm of an if-expression whose if-part is not a constant
2449 expression */
2450 const char *g = "string";
2451 ccp = &g + (g ? g-g : 0);
2452 /* HPUX 7.0 cc rejects these. */
2453 ++ccp;
2454 p = (char**) ccp;
2455 ccp = (char const *const *) p;
2456 { /* SCO 3.2v4 cc rejects this. */
2457 char *t;
2458 char const *s = 0 ? (char *) 0 : (char const *) 0;
2459
2460 *t++ = 0;
2461 }
2462 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2463 int x[] = {25, 17};
2464 const int *foo = &x[0];
2465 ++foo;
2466 }
2467 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2468 typedef const int *iptr;
2469 iptr p = 0;
2470 ++p;
2471 }
2472 { /* AIX XL C 1.02.0.0 rejects this saying
2473 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2474 struct s { int j; const int *ap[3]; };
2475 struct s *b; b->j = 5;
2476 }
2477 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2478 const int foo = 10;
2479 }
2480 #endif
2481
2482 ;
2483 return 0;
2484 }
2485 _ACEOF
2486 rm -f conftest.$ac_objext
2487 if { (eval echo "$as_me:2491: \"$ac_compile\"") >&5
2488 (eval $ac_compile) 2>&5
2489 ac_status=$?
2490 echo "$as_me:2494: \$? = $ac_status" >&5
2491 (exit $ac_status); } &&
2492 { ac_try='test -s conftest.$ac_objext'
2493 { (eval echo "$as_me:2497: \"$ac_try\"") >&5
2494 (eval $ac_try) 2>&5
2495 ac_status=$?
2496 echo "$as_me:2500: \$? = $ac_status" >&5
2497 (exit $ac_status); }; }; then
2498 ac_cv_c_const=yes
2499 else
2500 echo "$as_me: failed program was:" >&5
2501 cat conftest.$ac_ext >&5
2502 ac_cv_c_const=no
2503 fi
2504 rm -f conftest.$ac_objext conftest.$ac_ext
2505 fi
2506 echo "$as_me:2510: result: $ac_cv_c_const" >&5
2507 echo "${ECHO_T}$ac_cv_c_const" >&6
2508 if test $ac_cv_c_const = no; then
2509
2510 cat >>confdefs.h <<\EOF
2511 #define const
2512 EOF
2513
2514 fi
2515
2516 for ac_header in stdlib.h string.h memory.h strings.h inttypes.h unistd.h
2517 do
2518 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
2519 echo "$as_me:2523: checking for $ac_header" >&5
2520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2521 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
2522 echo $ECHO_N "(cached) $ECHO_C" >&6
2523 else
2524 cat >conftest.$ac_ext <<_ACEOF
2525 #line 2529 "configure"
2526 #include "confdefs.h"
2527 #include <$ac_header>
2528 _ACEOF
2529 if { (eval echo "$as_me:2533: \"$ac_cpp conftest.$ac_ext\"") >&5
2530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2531 ac_status=$?
2532 egrep -v '^ *\+' conftest.er1 >conftest.err
2533 rm -f conftest.er1
2534 cat conftest.err >&5
2535 echo "$as_me:2539: \$? = $ac_status" >&5
2536 (exit $ac_status); } >/dev/null; then
2537 if test -s conftest.err; then
2538 ac_cpp_err=$ac_c_preproc_warn_flag
2539 else
2540 ac_cpp_err=
2541 fi
2542 else
2543 ac_cpp_err=yes
2544 fi
2545 if test -z "$ac_cpp_err"; then
2546 eval "$ac_ac_Header=yes"
2547 else
2548 echo "$as_me: failed program was:" >&5
2549 cat conftest.$ac_ext >&5
2550 eval "$ac_ac_Header=no"
2551 fi
2552 rm -f conftest.err conftest.$ac_ext
2553 fi
2554 echo "$as_me:2558: result: `eval echo '${'$ac_ac_Header'}'`" >&5
2555 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
2556 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
2557 cat >>confdefs.h <<EOF
2558 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
2559 EOF
2560
2561 fi
2562 done
2563
2564 echo "$as_me:2568: checking for size_t" >&5
2565 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
2566 if test "${ac_cv_type_size_t+set}" = set; then
2567 echo $ECHO_N "(cached) $ECHO_C" >&6
2568 else
2569 cat >conftest.$ac_ext <<_ACEOF
2570 #line 2574 "configure"
2571 #include "confdefs.h"
2572 $ac_includes_default
2573 int
2574 main ()
2575 {
2576 if ((size_t *) 0)
2577 return 0;
2578 if (sizeof (size_t))
2579 return 0;
2580 ;
2581 return 0;
2582 }
2583 _ACEOF
2584 rm -f conftest.$ac_objext
2585 if { (eval echo "$as_me:2589: \"$ac_compile\"") >&5
2586 (eval $ac_compile) 2>&5
2587 ac_status=$?
2588 echo "$as_me:2592: \$? = $ac_status" >&5
2589 (exit $ac_status); } &&
2590 { ac_try='test -s conftest.$ac_objext'
2591 { (eval echo "$as_me:2595: \"$ac_try\"") >&5
2592 (eval $ac_try) 2>&5
2593 ac_status=$?
2594 echo "$as_me:2598: \$? = $ac_status" >&5
2595 (exit $ac_status); }; }; then
2596 ac_cv_type_size_t=yes
2597 else
2598 echo "$as_me: failed program was:" >&5
2599 cat conftest.$ac_ext >&5
2600 ac_cv_type_size_t=no
2601 fi
2602 rm -f conftest.$ac_objext conftest.$ac_ext
2603 fi
2604 echo "$as_me:2608: result: $ac_cv_type_size_t" >&5
2605 echo "${ECHO_T}$ac_cv_type_size_t" >&6
2606 if test $ac_cv_type_size_t = yes; then
2607 :
2608 else
2609
2610 cat >>confdefs.h <<EOF
2611 #define size_t unsigned
2612 EOF
2613
2614 fi
2615
2616 for ac_func in bcopy memmove strerror
2617 do
2618 ac_ac_var=`echo "ac_cv_func_$ac_func" | $ac_tr_sh`
2619 echo "$as_me:2623: checking for $ac_func" >&5
2620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2621 if eval "test \"\${$ac_ac_var+set}\" = set"; then
2622 echo $ECHO_N "(cached) $ECHO_C" >&6
2623 else
2624 cat >conftest.$ac_ext <<_ACEOF
2625 #line 2629 "configure"
2626 #include "confdefs.h"
2627 /* System header to define __stub macros and hopefully few prototypes,
2628 which can conflict with char $ac_func (); below. */
2629 #include <assert.h>
2630 /* Override any gcc2 internal prototype to avoid an error. */
2631 #ifdef __cplusplus
2632 extern "C"
2633 #endif
2634 /* We use char because int might match the return type of a gcc2
2635 builtin and then its argument prototype would still apply. */
2636 char $ac_func ();
2637 char (*f) ();
2638
2639 int
2640 main ()
2641 {
2642 /* The GNU C library defines this for functions which it implements
2643 to always fail with ENOSYS. Some functions are actually named
2644 something starting with __ and the normal name is an alias. */
2645 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2646 choke me
2647 #else
2648 f = $ac_func;
2649 #endif
2650
2651 ;
2652 return 0;
2653 }
2654 _ACEOF
2655 rm -f conftest.$ac_objext conftest$ac_exeext
2656 if { (eval echo "$as_me:2660: \"$ac_link\"") >&5
2657 (eval $ac_link) 2>&5
2658 ac_status=$?
2659 echo "$as_me:2663: \$? = $ac_status" >&5
2660 (exit $ac_status); } &&
2661 { ac_try='test -s conftest$ac_exeext'
2662 { (eval echo "$as_me:2666: \"$ac_try\"") >&5
2663 (eval $ac_try) 2>&5
2664 ac_status=$?
2665 echo "$as_me:2669: \$? = $ac_status" >&5
2666 (exit $ac_status); }; }; then
2667 eval "$ac_ac_var=yes"
2668 else
2669 echo "$as_me: failed program was:" >&5
2670 cat conftest.$ac_ext >&5
2671 eval "$ac_ac_var=no"
2672 fi
2673 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2674 fi
2675 echo "$as_me:2679: result: `eval echo '${'$ac_ac_var'}'`" >&5
2676 echo "${ECHO_T}`eval echo '${'$ac_ac_var'}'`" >&6
2677 if test `eval echo '${'$ac_ac_var'}'` = yes; then
2678 cat >>confdefs.h <<EOF
2679 #define `echo "HAVE_$ac_func" | $ac_tr_cpp` 1
2680 EOF
2681
2682 fi
2683 done
2684
2685 # Check whether --enable-utf8 or --disable-utf8 was given.
2686 if test "${enable_utf8+set}" = set; then
2687 enableval="$enable_utf8"
2688 if test "$enableval" = "yes"; then
2689 UTF8=-DSUPPORT_UTF8
2690 fi
2691
2692 fi;
2693
2694 # Check whether --enable-newline-is-cr or --disable-newline-is-cr was given.
2695 if test "${enable_newline_is_cr+set}" = set; then
2696 enableval="$enable_newline_is_cr"
2697 if test "$enableval" = "yes"; then
2698 NEWLINE=-DNEWLINE=13
2699 fi
2700
2701 fi;
2702
2703 # Check whether --enable-newline-is-lf or --disable-newline-is-lf was given.
2704 if test "${enable_newline_is_lf+set}" = set; then
2705 enableval="$enable_newline_is_lf"
2706 if test "$enableval" = "yes"; then
2707 NEWLINE=-DNEWLINE=10
2708 fi
2709
2710 fi;
2711
2712 # Check whether --enable-shared or --disable-shared was given.
2713 if test "${enable_shared+set}" = set; then
2714 enableval="$enable_shared"
2715 p=${PACKAGE-default}
2716 case $enableval in
2717 yes) enable_shared=yes ;;
2718 no) enable_shared=no ;;
2719 *)
2720 enable_shared=no
2721 # Look at the argument we got. We use all the common list separators.
2722 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2723 for pkg in $enableval; do
2724 if test "X$pkg" = "X$p"; then
2725 enable_shared=yes
2726 fi
2727 done
2728 IFS="$ac_save_ifs"
2729 ;;
2730 esac
2731 else
2732 enable_shared=yes
2733 fi;
2734 # Check whether --enable-static or --disable-static was given.
2735 if test "${enable_static+set}" = set; then
2736 enableval="$enable_static"
2737 p=${PACKAGE-default}
2738 case $enableval in
2739 yes) enable_static=yes ;;
2740 no) enable_static=no ;;
2741 *)
2742 enable_static=no
2743 # Look at the argument we got. We use all the common list separators.
2744 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2745 for pkg in $enableval; do
2746 if test "X$pkg" = "X$p"; then
2747 enable_static=yes
2748 fi
2749 done
2750 IFS="$ac_save_ifs"
2751 ;;
2752 esac
2753 else
2754 enable_static=yes
2755 fi;
2756 # Check whether --enable-fast-install or --disable-fast-install was given.
2757 if test "${enable_fast_install+set}" = set; then
2758 enableval="$enable_fast_install"
2759 p=${PACKAGE-default}
2760 case $enableval in
2761 yes) enable_fast_install=yes ;;
2762 no) enable_fast_install=no ;;
2763 *)
2764 enable_fast_install=no
2765 # Look at the argument we got. We use all the common list separators.
2766 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
2767 for pkg in $enableval; do
2768 if test "X$pkg" = "X$p"; then
2769 enable_fast_install=yes
2770 fi
2771 done
2772 IFS="$ac_save_ifs"
2773 ;;
2774 esac
2775 else
2776 enable_fast_install=yes
2777 fi;
2778 # Make sure we can run config.sub.
2779 $ac_config_sub sun4 >/dev/null 2>&1 ||
2780 { { echo "$as_me:2784: error: cannot run $ac_config_sub" >&5
2781 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2782 { (exit 1); exit 1; }; }
2783
2784 echo "$as_me:2788: checking build system type" >&5
2785 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2786 if test "${ac_cv_build+set}" = set; then
2787 echo $ECHO_N "(cached) $ECHO_C" >&6
2788 else
2789 ac_cv_build_alias=$build_alias
2790 test -z "$ac_cv_build_alias" &&
2791 ac_cv_build_alias=`$ac_config_guess`
2792 test -z "$ac_cv_build_alias" &&
2793 { { echo "$as_me:2797: error: cannot guess build type; you must specify one" >&5
2794 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2795 { (exit 1); exit 1; }; }
2796 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2797 { { echo "$as_me:2801: error: $ac_config_sub $ac_cv_build_alias failed." >&5
2798 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed." >&2;}
2799 { (exit 1); exit 1; }; }
2800
2801 fi
2802 echo "$as_me:2806: result: $ac_cv_build" >&5
2803 echo "${ECHO_T}$ac_cv_build" >&6
2804 build=$ac_cv_build
2805 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2806 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2807 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2808
2809 echo "$as_me:2813: checking host system type" >&5
2810 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2811 if test "${ac_cv_host+set}" = set; then
2812 echo $ECHO_N "(cached) $ECHO_C" >&6
2813 else
2814 ac_cv_host_alias=$host_alias
2815 test -z "$ac_cv_host_alias" &&
2816 ac_cv_host_alias=$ac_cv_build_alias
2817 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2818 { { echo "$as_me:2822: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2819 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2820 { (exit 1); exit 1; }; }
2821
2822 fi
2823 echo "$as_me:2827: result: $ac_cv_host" >&5
2824 echo "${ECHO_T}$ac_cv_host" >&6
2825 host=$ac_cv_host
2826 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2827 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2828 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2829
2830 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2831 if test "${with_gnu_ld+set}" = set; then
2832 withval="$with_gnu_ld"
2833 test "$withval" = no || with_gnu_ld=yes
2834 else
2835 with_gnu_ld=no
2836 fi;
2837 ac_prog=ld
2838 if test "$GCC" = yes; then
2839 # Check if gcc -print-prog-name=ld gives a path.
2840 echo "$as_me:2844: checking for ld used by GCC" >&5
2841 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2842 case $host in
2843 *-*-mingw*)
2844 # gcc leaves a trailing carriage return which upsets mingw
2845 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2846 *)
2847 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2848 esac
2849 case $ac_prog in
2850 # Accept absolute paths.
2851 [\\/]* | [A-Za-z]:[\\/]*)
2852 re_direlt='/[^/][^/]*/\.\./'
2853 # Canonicalize the path of ld
2854 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2855 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2856 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2857 done
2858 test -z "$LD" && LD="$ac_prog"
2859 ;;
2860 "")
2861 # If it fails, then pretend we aren't using GCC.
2862 ac_prog=ld
2863 ;;
2864 *)
2865 # If it is relative, then search for the first ld in PATH.
2866 with_gnu_ld=unknown
2867 ;;
2868 esac
2869 elif test "$with_gnu_ld" = yes; then
2870 echo "$as_me:2874: checking for GNU ld" >&5
2871 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2872 else
2873 echo "$as_me:2877: checking for non-GNU ld" >&5
2874 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2875 fi
2876 if test "${lt_cv_path_LD+set}" = set; then
2877 echo $ECHO_N "(cached) $ECHO_C" >&6
2878 else
2879 if test -z "$LD"; then
2880 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2881 for ac_dir in $PATH; do
2882 test -z "$ac_dir" && ac_dir=.
2883 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2884 lt_cv_path_LD="$ac_dir/$ac_prog"
2885 # Check to see if the program is GNU ld. I'd rather use --version,
2886 # but apparently some GNU ld's only accept -v.
2887 # Break only if it was the GNU/non-GNU ld that we prefer.
2888 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2889 test "$with_gnu_ld" != no && break
2890 else
2891 test "$with_gnu_ld" != yes && break
2892 fi
2893 fi
2894 done
2895 IFS="$ac_save_ifs"
2896 else
2897 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2898 fi
2899 fi
2900
2901 LD="$lt_cv_path_LD"
2902 if test -n "$LD"; then
2903 echo "$as_me:2907: result: $LD" >&5
2904 echo "${ECHO_T}$LD" >&6
2905 else
2906 echo "$as_me:2910: result: no" >&5
2907 echo "${ECHO_T}no" >&6
2908 fi
2909 test -z "$LD" && { { echo "$as_me:2913: error: no acceptable ld found in \$PATH" >&5
2910 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2911 { (exit 1); exit 1; }; }
2912 echo "$as_me:2916: checking if the linker ($LD) is GNU ld" >&5
2913 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2914 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2915 echo $ECHO_N "(cached) $ECHO_C" >&6
2916 else
2917 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2918 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2919 lt_cv_prog_gnu_ld=yes
2920 else
2921 lt_cv_prog_gnu_ld=no
2922 fi
2923 fi
2924 echo "$as_me:2928: result: $lt_cv_prog_gnu_ld" >&5
2925 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2926 with_gnu_ld=$lt_cv_prog_gnu_ld
2927
2928 echo "$as_me:2932: checking for $LD option to reload object files" >&5
2929 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2930 if test "${lt_cv_ld_reload_flag+set}" = set; then
2931 echo $ECHO_N "(cached) $ECHO_C" >&6
2932 else
2933 lt_cv_ld_reload_flag='-r'
2934 fi
2935 echo "$as_me:2939: result: $lt_cv_ld_reload_flag" >&5
2936 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2937 reload_flag=$lt_cv_ld_reload_flag
2938 test -n "$reload_flag" && reload_flag=" $reload_flag"
2939
2940 echo "$as_me:2944: checking for BSD-compatible nm" >&5
2941 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2942 if test "${lt_cv_path_NM+set}" = set; then
2943 echo $ECHO_N "(cached) $ECHO_C" >&6
2944 else
2945 if test -n "$NM"; then
2946 # Let the user override the test.
2947 lt_cv_path_NM="$NM"
2948 else
2949 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
2950 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2951 test -z "$ac_dir" && ac_dir=.
2952 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2953 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2954 # Check to see if the nm accepts a BSD-compat flag.
2955 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2956 # nm: unknown option "B" ignored
2957 # Tru64's nm complains that /dev/null is an invalid object file
2958 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2959 lt_cv_path_NM="$tmp_nm -B"
2960 break
2961 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2962 lt_cv_path_NM="$tmp_nm -p"
2963 break
2964 else
2965 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2966 continue # so that we can try to find one that supports BSD flags
2967 fi
2968 fi
2969 done
2970 IFS="$ac_save_ifs"
2971 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2972 fi
2973 fi
2974
2975 NM="$lt_cv_path_NM"
2976 echo "$as_me:2980: result: $NM" >&5
2977 echo "${ECHO_T}$NM" >&6
2978
2979 echo "$as_me:2983: checking whether ln -s works" >&5
2980 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2981 LN_S=$as_ln_s
2982 if test "$LN_S" = "ln -s"; then
2983 echo "$as_me:2987: result: yes" >&5
2984 echo "${ECHO_T}yes" >&6
2985 else
2986 echo "$as_me:2990: result: no, using $LN_S" >&5
2987 echo "${ECHO_T}no, using $LN_S" >&6
2988 fi
2989
2990 echo "$as_me:2994: checking how to recognise dependant libraries" >&5
2991 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2992 if test "${lt_cv_deplibs_check_method+set}" = set; then
2993 echo $ECHO_N "(cached) $ECHO_C" >&6
2994 else
2995 lt_cv_file_magic_cmd='$MAGIC_CMD'
2996 lt_cv_file_magic_test_file=
2997 lt_cv_deplibs_check_method='unknown'
2998 # Need to set the preceding variable on all platforms that support
2999 # interlibrary dependencies.
3000 # 'none' -- dependencies not supported.
3001 # `unknown' -- same as none, but documents that we really don't know.
3002 # 'pass_all' -- all dependencies passed with no checks.
3003 # 'test_compile' -- check by making test program.
3004 # ['file_magic [regex]'] -- check by looking for files in library path
3005 # which responds to the $file_magic_cmd with a given egrep regex.
3006 # If you have `file' or equivalent on your system and you're not sure
3007 # whether `pass_all' will *always* work, you probably want this one.
3008
3009 case $host_os in
3010 aix4* | aix5*)
3011 lt_cv_deplibs_check_method=pass_all
3012 ;;
3013
3014 beos*)
3015 lt_cv_deplibs_check_method=pass_all
3016 ;;
3017
3018 bsdi4*)
3019 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3020 lt_cv_file_magic_cmd='/usr/bin/file -L'
3021 lt_cv_file_magic_test_file=/shlib/libc.so
3022 ;;
3023
3024 cygwin* | mingw* | pw32*)
3025 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3026 lt_cv_file_magic_cmd='$OBJDUMP -f'
3027 ;;
3028
3029 darwin* | rhapsody*)
3030 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3031 lt_cv_file_magic_cmd='/usr/bin/file -L'
3032 case "$host_os" in
3033 rhapsody* | darwin1.012)
3034 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3035 ;;
3036 *) # Darwin 1.3 on
3037 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3038 ;;
3039 esac
3040 ;;
3041
3042 freebsd*)
3043 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3044 case $host_cpu in
3045 i*86 )
3046 # Not sure whether the presence of OpenBSD here was a mistake.
3047 # Let's accept both of them until this is cleared up.
3048 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3049 lt_cv_file_magic_cmd=/usr/bin/file
3050 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3051 ;;
3052 esac
3053 else
3054 lt_cv_deplibs_check_method=pass_all
3055 fi
3056 ;;
3057
3058 gnu*)
3059 lt_cv_deplibs_check_method=pass_all
3060 ;;
3061
3062 hpux10.20*|hpux11*)
3063 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3064 lt_cv_file_magic_cmd=/usr/bin/file
3065 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3066 ;;
3067
3068 irix5* | irix6*)
3069 case $host_os in
3070 irix5*)
3071 # this will be overridden with pass_all, but let us keep it just in case
3072 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3073 ;;
3074 *)
3075 case $LD in
3076 *-32|*"-32 ") libmagic=32-bit;;
3077 *-n32|*"-n32 ") libmagic=N32;;
3078 *-64|*"-64 ") libmagic=64-bit;;
3079 *) libmagic=never-match;;
3080 esac
3081 # this will be overridden with pass_all, but let us keep it just in case
3082 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3083 ;;
3084 esac
3085 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3086 lt_cv_deplibs_check_method=pass_all
3087 ;;
3088
3089 # This must be Linux ELF.
3090 linux-gnu*)
3091 case $host_cpu in
3092 alpha* | i*86 | powerpc* | sparc* | ia64* )
3093 lt_cv_deplibs_check_method=pass_all ;;
3094 *)
3095 # glibc up to 2.1.1 does not perform some relocations on ARM
3096 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3097 esac
3098 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3099 ;;
3100
3101 netbsd*)
3102 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3103 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3104 else
3105 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3106 fi
3107 ;;
3108
3109 newos6*)
3110 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3111 lt_cv_file_magic_cmd=/usr/bin/file
3112 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3113 ;;
3114
3115 osf3* | osf4* | osf5*)
3116 # this will be overridden with pass_all, but let us keep it just in case
3117 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3118 lt_cv_file_magic_test_file=/shlib/libc.so
3119 lt_cv_deplibs_check_method=pass_all
3120 ;;
3121
3122 sco3.2v5*)
3123 lt_cv_deplibs_check_method=pass_all
3124 ;;
3125
3126 solaris*)
3127 lt_cv_deplibs_check_method=pass_all
3128 lt_cv_file_magic_test_file=/lib/libc.so
3129 ;;
3130
3131 sysv5uw[78]* | sysv4*uw2*)
3132 lt_cv_deplibs_check_method=pass_all
3133 ;;
3134
3135 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3136 case $host_vendor in
3137 motorola)
3138 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]'
3139 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3140 ;;
3141 ncr)
3142 lt_cv_deplibs_check_method=pass_all
3143 ;;
3144 sequent)
3145 lt_cv_file_magic_cmd='/bin/file'
3146 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3147 ;;
3148 sni)
3149 lt_cv_file_magic_cmd='/bin/file'
3150 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3151 lt_cv_file_magic_test_file=/lib/libc.so
3152 ;;
3153 esac
3154 ;;
3155 esac
3156
3157 fi
3158 echo "$as_me:3162: result: $lt_cv_deplibs_check_method" >&5
3159 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3160 file_magic_cmd=$lt_cv_file_magic_cmd
3161 deplibs_check_method=$lt_cv_deplibs_check_method
3162
3163 # Check for command to grab the raw symbol name followed by C symbol from nm.
3164 echo "$as_me:3168: checking command to parse $NM output" >&5
3165 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3166 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3167 echo $ECHO_N "(cached) $ECHO_C" >&6
3168 else
3169
3170 # These are sane defaults that work on at least a few old systems.
3171 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3172
3173 # Character class describing NM global symbol codes.
3174 symcode='[BCDEGRST]'
3175
3176 # Regexp to match symbols that can be accessed directly from C.
3177 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3178
3179 # Transform the above into a raw symbol and a C symbol.
3180 symxfrm='\1 \2\3 \3'
3181
3182 # Transform an extracted symbol line into a proper C declaration
3183 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3184
3185 # Define system-specific variables.
3186 case $host_os in
3187 aix*)
3188 symcode='[BCDT]'
3189 ;;
3190 cygwin* | mingw* | pw32*)
3191 symcode='[ABCDGISTW]'
3192 ;;
3193 hpux*) # Its linker distinguishes data from code symbols
3194 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3195 ;;
3196 irix*)
3197 symcode='[BCDEGRST]'
3198 ;;
3199 solaris* | sysv5*)
3200 symcode='[BDT]'
3201 ;;
3202 sysv4)
3203 symcode='[DFNSTU]'
3204 ;;
3205 esac
3206
3207 # Handle CRLF in mingw tool chain
3208 opt_cr=
3209 case $host_os in
3210 mingw*)
3211 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3212 ;;
3213 esac
3214
3215 # If we're using GNU nm, then use its standard symbol codes.
3216 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3217 symcode='[ABCDGISTW]'
3218 fi
3219
3220 # Try without a prefix undercore, then with it.
3221 for ac_symprfx in "" "_"; do
3222
3223 # Write the raw and C identifiers.
3224 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3225
3226 # Check to see that the pipe works correctly.
3227 pipe_works=no
3228 rm -f conftest*
3229 cat > conftest.$ac_ext <<EOF
3230 #ifdef __cplusplus
3231 extern "C" {
3232 #endif
3233 char nm_test_var;
3234 void nm_test_func(){}
3235 #ifdef __cplusplus
3236 }
3237 #endif
3238 int main(){nm_test_var='a';nm_test_func();return(0);}
3239 EOF
3240
3241 if { (eval echo "$as_me:3245: \"$ac_compile\"") >&5
3242 (eval $ac_compile) 2>&5
3243 ac_status=$?
3244 echo "$as_me:3248: \$? = $ac_status" >&5
3245 (exit $ac_status); }; then
3246 # Now try to grab the symbols.
3247 nlist=conftest.nm
3248 if { (eval echo "$as_me:3252: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3249 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3250 ac_status=$?
3251 echo "$as_me:3255: \$? = $ac_status" >&5
3252 (exit $ac_status); } && test -s "$nlist"; then
3253 # Try sorting and uniquifying the output.
3254 if sort "$nlist" | uniq > "$nlist"T; then
3255 mv -f "$nlist"T "$nlist"
3256 else
3257 rm -f "$nlist"T
3258 fi
3259
3260 # Make sure that we snagged all the symbols we need.
3261 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3262 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3263 cat <<EOF > conftest.$ac_ext
3264 #ifdef __cplusplus
3265 extern "C" {
3266 #endif
3267
3268 EOF
3269 # Now generate the symbol file.
3270 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3271
3272 cat <<EOF >> conftest.$ac_ext
3273 #if defined (__STDC__) && __STDC__
3274 # define lt_ptr_t void *
3275 #else
3276 # define lt_ptr_t char *
3277 # define const
3278 #endif
3279
3280 /* The mapping between symbol names and symbols. */
3281 const struct {
3282 const char *name;
3283 lt_ptr_t address;
3284 }
3285 lt_preloaded_symbols[] =
3286 {
3287 EOF
3288 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" >> conftest.$ac_ext
3289 cat <<\EOF >> conftest.$ac_ext
3290 {0, (lt_ptr_t) 0}
3291 };
3292
3293 #ifdef __cplusplus
3294 }
3295 #endif
3296 EOF
3297 # Now try linking the two files.
3298 mv conftest.$ac_objext conftstm.$ac_objext
3299 save_LIBS="$LIBS"
3300 save_CFLAGS="$CFLAGS"
3301 LIBS="conftstm.$ac_objext"
3302 CFLAGS="$CFLAGS$no_builtin_flag"
3303 if { (eval echo "$as_me:3307: \"$ac_link\"") >&5
3304 (eval $ac_link) 2>&5
3305 ac_status=$?
3306 echo "$as_me:3310: \$? = $ac_status" >&5
3307 (exit $ac_status); } && test -s conftest; then
3308 pipe_works=yes
3309 fi
3310 LIBS="$save_LIBS"
3311 CFLAGS="$save_CFLAGS"
3312 else
3313 echo "cannot find nm_test_func in $nlist" >&5
3314 fi
3315 else
3316 echo "cannot find nm_test_var in $nlist" >&5
3317 fi
3318 else
3319 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3320 fi
3321 else
3322 echo "$progname: failed program was:" >&5
3323 cat conftest.$ac_ext >&5
3324 fi
3325 rm -f conftest* conftst*
3326
3327 # Do not use the global_symbol_pipe unless it works.
3328 if test "$pipe_works" = yes; then
3329 break
3330 else
3331 lt_cv_sys_global_symbol_pipe=
3332 fi
3333 done
3334
3335 fi
3336
3337 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3338 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3339 global_symbol_to_cdecl=
3340 else
3341 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3342 fi
3343 if test -z "$global_symbol_pipe$global_symbol_to_cdecl"; then
3344 echo "$as_me:3348: result: failed" >&5
3345 echo "${ECHO_T}failed" >&6
3346 else
3347 echo "$as_me:3351: result: ok" >&5
3348 echo "${ECHO_T}ok" >&6
3349 fi
3350
3351 for ac_header in dlfcn.h
3352 do
3353 ac_ac_Header=`echo "ac_cv_header_$ac_header" | $ac_tr_sh`
3354 echo "$as_me:3358: checking for $ac_header" >&5
3355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3356 if eval "test \"\${$ac_ac_Header+set}\" = set"; then
3357 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 else
3359 cat >conftest.$ac_ext <<_ACEOF
3360 #line 3364 "configure"
3361 #include "confdefs.h"
3362 #include <$ac_header>
3363 _ACEOF
3364 if { (eval echo "$as_me:3368: \"$ac_cpp conftest.$ac_ext\"") >&5
3365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3366 ac_status=$?
3367 egrep -v '^ *\+' conftest.er1 >conftest.err
3368 rm -f conftest.er1
3369 cat conftest.err >&5
3370 echo "$as_me:3374: \$? = $ac_status" >&5
3371 (exit $ac_status); } >/dev/null; then
3372 if test -s conftest.err; then
3373 ac_cpp_err=$ac_c_preproc_warn_flag
3374 else
3375 ac_cpp_err=
3376 fi
3377 else
3378 ac_cpp_err=yes
3379 fi
3380 if test -z "$ac_cpp_err"; then
3381 eval "$ac_ac_Header=yes"
3382 else
3383 echo "$as_me: failed program was:" >&5
3384 cat conftest.$ac_ext >&5
3385 eval "$ac_ac_Header=no"
3386 fi
3387 rm -f conftest.err conftest.$ac_ext
3388 fi
3389 echo "$as_me:3393: result: `eval echo '${'$ac_ac_Header'}'`" >&5
3390 echo "${ECHO_T}`eval echo '${'$ac_ac_Header'}'`" >&6
3391 if test `eval echo '${'$ac_ac_Header'}'` = yes; then
3392 cat >>confdefs.h <<EOF
3393 #define `echo "HAVE_$ac_header" | $ac_tr_cpp` 1
3394 EOF
3395
3396 fi
3397 done
3398
3399 # Only perform the check for file, if the check method requires it
3400 case $deplibs_check_method in
3401 file_magic*)
3402 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3403 echo "$as_me:3407: checking for ${ac_tool_prefix}file" >&5
3404 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3405 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3407 else
3408 case $MAGIC_CMD in
3409 /*)
3410 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3411 ;;
3412 ?:/*)
3413 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3414 ;;
3415 *)
3416 ac_save_MAGIC_CMD="$MAGIC_CMD"
3417 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3418 ac_dummy="/usr/bin:$PATH"
3419 for ac_dir in $ac_dummy; do
3420 test -z "$ac_dir" && ac_dir=.
3421 if test -f $ac_dir/${ac_tool_prefix}file; then
3422 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3423 if test -n "$file_magic_test_file"; then
3424 case $deplibs_check_method in
3425 "file_magic "*)
3426 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3427 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3428 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3429 egrep "$file_magic_regex" > /dev/null; then
3430 :
3431 else
3432 cat <<EOF 1>&2
3433
3434 *** Warning: the command libtool uses to detect shared libraries,
3435 *** $file_magic_cmd, produces output that libtool cannot recognize.
3436 *** The result is that libtool may fail to recognize shared libraries
3437 *** as such. This will affect the creation of libtool libraries that
3438 *** depend on shared libraries, but programs linked with such libtool
3439 *** libraries will work regardless of this problem. Nevertheless, you
3440 *** may want to report the problem to your system manager and/or to
3441 *** bug-libtool@gnu.org
3442
3443 EOF
3444 fi ;;
3445 esac
3446 fi
3447 break
3448 fi
3449 done
3450 IFS="$ac_save_ifs"
3451 MAGIC_CMD="$ac_save_MAGIC_CMD"
3452 ;;
3453 esac
3454 fi
3455
3456 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3457 if test -n "$MAGIC_CMD"; then
3458 echo "$as_me:3462: result: $MAGIC_CMD" >&5
3459 echo "${ECHO_T}$MAGIC_CMD" >&6
3460 else
3461 echo "$as_me:3465: result: no" >&5
3462 echo "${ECHO_T}no" >&6
3463 fi
3464
3465 if test -z "$lt_cv_path_MAGIC_CMD"; then
3466 if test -n "$ac_tool_prefix"; then
3467 echo "$as_me:3471: checking for file" >&5
3468 echo $ECHO_N "checking for file... $ECHO_C" >&6
3469 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3470 echo $ECHO_N "(cached) $ECHO_C" >&6
3471 else
3472 case $MAGIC_CMD in
3473 /*)
3474 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3475 ;;
3476 ?:/*)
3477 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3478 ;;
3479 *)
3480 ac_save_MAGIC_CMD="$MAGIC_CMD"
3481 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3482 ac_dummy="/usr/bin:$PATH"
3483 for ac_dir in $ac_dummy; do
3484 test -z "$ac_dir" && ac_dir=.
3485 if test -f $ac_dir/file; then
3486 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3487 if test -n "$file_magic_test_file"; then
3488 case $deplibs_check_method in
3489 "file_magic "*)
3490 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3491 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3492 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3493 egrep "$file_magic_regex" > /dev/null; then
3494 :
3495 else
3496 cat <<EOF 1>&2
3497
3498 *** Warning: the command libtool uses to detect shared libraries,
3499 *** $file_magic_cmd, produces output that libtool cannot recognize.
3500 *** The result is that libtool may fail to recognize shared libraries
3501 *** as such. This will affect the creation of libtool libraries that
3502 *** depend on shared libraries, but programs linked with such libtool
3503 *** libraries will work regardless of this problem. Nevertheless, you
3504 *** may want to report the problem to your system manager and/or to
3505 *** bug-libtool@gnu.org
3506
3507 EOF
3508 fi ;;
3509 esac
3510 fi
3511 break
3512 fi
3513 done
3514 IFS="$ac_save_ifs"
3515 MAGIC_CMD="$ac_save_MAGIC_CMD"
3516 ;;
3517 esac
3518 fi
3519
3520 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3521 if test -n "$MAGIC_CMD"; then
3522 echo "$as_me:3526: result: $MAGIC_CMD" >&5
3523 echo "${ECHO_T}$MAGIC_CMD" >&6
3524 else
3525 echo "$as_me:3529: result: no" >&5
3526 echo "${ECHO_T}no" >&6
3527 fi
3528
3529 else
3530 MAGIC_CMD=:
3531 fi
3532 fi
3533
3534 fi
3535 ;;
3536 esac
3537
3538 if test -n "$ac_tool_prefix"; then
3539 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3540 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3541 echo "$as_me:3545: checking for $ac_word" >&5
3542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3543 if test "${ac_cv_prog_RANLIB+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546 if test -n "$RANLIB"; then
3547 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3548 else
3549 ac_save_IFS=$IFS; IFS=$ac_path_separator
3550 ac_dummy="$PATH"
3551 for ac_dir in $ac_dummy; do
3552 IFS=$ac_save_IFS
3553 test -z "$ac_dir" && ac_dir=.
3554 $as_executable_p "$ac_dir/$ac_word" || continue
3555 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3556 echo "$as_me:3560: found $ac_dir/$ac_word" >&5
3557 break
3558 done
3559
3560 fi
3561 fi
3562 RANLIB=$ac_cv_prog_RANLIB
3563 if test -n "$RANLIB"; then
3564 echo "$as_me:3568: result: $RANLIB" >&5
3565 echo "${ECHO_T}$RANLIB" >&6
3566 else
3567 echo "$as_me:3571: result: no" >&5
3568 echo "${ECHO_T}no" >&6
3569 fi
3570
3571 fi
3572 if test -z "$ac_cv_prog_RANLIB"; then
3573 ac_ct_RANLIB=$RANLIB
3574 # Extract the first word of "ranlib", so it can be a program name with args.
3575 set dummy ranlib; ac_word=$2
3576 echo "$as_me:3580: checking for $ac_word" >&5
3577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3578 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3579 echo $ECHO_N "(cached) $ECHO_C" >&6
3580 else
3581 if test -n "$ac_ct_RANLIB"; then
3582 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3583 else
3584 ac_save_IFS=$IFS; IFS=$ac_path_separator
3585 ac_dummy="$PATH"
3586 for ac_dir in $ac_dummy; do
3587 IFS=$ac_save_IFS
3588 test -z "$ac_dir" && ac_dir=.
3589 $as_executable_p "$ac_dir/$ac_word" || continue
3590 ac_cv_prog_ac_ct_RANLIB="ranlib"
3591 echo "$as_me:3595: found $ac_dir/$ac_word" >&5
3592 break
3593 done
3594
3595 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3596 fi
3597 fi
3598 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3599 if test -n "$ac_ct_RANLIB"; then
3600 echo "$as_me:3604: result: $ac_ct_RANLIB" >&5
3601 echo "${ECHO_T}$ac_ct_RANLIB" >&6
3602 else
3603 echo "$as_me:3607: result: no" >&5
3604 echo "${ECHO_T}no" >&6
3605 fi
3606
3607 RANLIB=$ac_ct_RANLIB
3608 else
3609 RANLIB="$ac_cv_prog_RANLIB"
3610 fi
3611
3612 if test -n "$ac_tool_prefix"; then
3613 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3614 set dummy ${ac_tool_prefix}strip; ac_word=$2
3615 echo "$as_me:3619: checking for $ac_word" >&5
3616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3617 if test "${ac_cv_prog_STRIP+set}" = set; then
3618 echo $ECHO_N "(cached) $ECHO_C" >&6
3619 else
3620 if test -n "$STRIP"; then
3621 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3622 else
3623 ac_save_IFS=$IFS; IFS=$ac_path_separator
3624 ac_dummy="$PATH"
3625 for ac_dir in $ac_dummy; do
3626 IFS=$ac_save_IFS
3627 test -z "$ac_dir" && ac_dir=.
3628 $as_executable_p "$ac_dir/$ac_word" || continue
3629 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3630 echo "$as_me:3634: found $ac_dir/$ac_word" >&5
3631 break
3632 done
3633
3634 fi
3635 fi
3636 STRIP=$ac_cv_prog_STRIP
3637 if test -n "$STRIP"; then
3638 echo "$as_me:3642: result: $STRIP" >&5
3639 echo "${ECHO_T}$STRIP" >&6
3640 else
3641 echo "$as_me:3645: result: no" >&5
3642 echo "${ECHO_T}no" >&6
3643 fi
3644
3645 fi
3646 if test -z "$ac_cv_prog_STRIP"; then
3647 ac_ct_STRIP=$STRIP
3648 # Extract the first word of "strip", so it can be a program name with args.
3649 set dummy strip; ac_word=$2
3650 echo "$as_me:3654: checking for $ac_word" >&5
3651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3652 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3653 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 else
3655 if test -n "$ac_ct_STRIP"; then
3656 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3657 else
3658 ac_save_IFS=$IFS; IFS=$ac_path_separator
3659 ac_dummy="$PATH"
3660 for ac_dir in $ac_dummy; do
3661 IFS=$ac_save_IFS
3662 test -z "$ac_dir" && ac_dir=.
3663 $as_executable_p "$ac_dir/$ac_word" || continue
3664 ac_cv_prog_ac_ct_STRIP="strip"
3665 echo "$as_me:3669: found $ac_dir/$ac_word" >&5
3666 break
3667 done
3668
3669 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3670 fi
3671 fi
3672 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3673 if test -n "$ac_ct_STRIP"; then
3674 echo "$as_me:3678: result: $ac_ct_STRIP" >&5
3675 echo "${ECHO_T}$ac_ct_STRIP" >&6
3676 else
3677 echo "$as_me:3681: result: no" >&5
3678 echo "${ECHO_T}no" >&6
3679 fi
3680
3681 STRIP=$ac_ct_STRIP
3682 else
3683 STRIP="$ac_cv_prog_STRIP"
3684 fi
3685
3686 enable_dlopen=no
3687 enable_win32_dll=no
3688
3689 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3690 if test "${enable_libtool_lock+set}" = set; then
3691 enableval="$enable_libtool_lock"
3692
3693 fi;
3694 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3695
3696 # Some flags need to be propagated to the compiler or linker for good
3697 # libtool support.
3698 case $host in
3699 *-*-irix6*)
3700 # Find out which ABI we are using.
3701 echo '#line 3705 "configure"' > conftest.$ac_ext
3702 if { (eval echo "$as_me:3706: \"$ac_compile\"") >&5
3703 (eval $ac_compile) 2>&5
3704 ac_status=$?
3705 echo "$as_me:3709: \$? = $ac_status" >&5
3706 (exit $ac_status); }; then
3707 case `/usr/bin/file conftest.$ac_objext` in
3708 *32-bit*)
3709 LD="${LD-ld} -32"
3710 ;;
3711 *N32*)
3712 LD="${LD-ld} -n32"
3713 ;;
3714 *64-bit*)
3715 LD="${LD-ld} -64"
3716 ;;
3717 esac
3718 fi
3719 rm -rf conftest*
3720 ;;
3721
3722 *-*-sco3.2v5*)
3723 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3724 SAVE_CFLAGS="$CFLAGS"
3725 CFLAGS="$CFLAGS -belf"
3726 echo "$as_me:3730: checking whether the C compiler needs -belf" >&5
3727 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3728 if test "${lt_cv_cc_needs_belf+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3730 else
3731
3732 ac_ext=c
3733 ac_cpp='$CPP $CPPFLAGS'
3734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3737
3738 cat >conftest.$ac_ext <<_ACEOF
3739 #line 3743 "configure"
3740 #include "confdefs.h"
3741
3742 int
3743 main ()
3744 {
3745
3746 ;
3747 return 0;
3748 }
3749 _ACEOF
3750 rm -f conftest.$ac_objext conftest$ac_exeext
3751 if { (eval echo "$as_me:3755: \"$ac_link\"") >&5
3752 (eval $ac_link) 2>&5
3753 ac_status=$?
3754 echo "$as_me:3758: \$? = $ac_status" >&5
3755 (exit $ac_status); } &&
3756 { ac_try='test -s conftest$ac_exeext'
3757 { (eval echo "$as_me:3761: \"$ac_try\"") >&5
3758 (eval $ac_try) 2>&5
3759 ac_status=$?
3760 echo "$as_me:3764: \$? = $ac_status" >&5
3761 (exit $ac_status); }; }; then
3762 lt_cv_cc_needs_belf=yes
3763 else
3764 echo "$as_me: failed program was:" >&5
3765 cat conftest.$ac_ext >&5
3766 lt_cv_cc_needs_belf=no
3767 fi
3768 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3769 ac_ext=c
3770 ac_cpp='$CPP $CPPFLAGS'
3771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3774
3775 fi
3776 echo "$as_me:3780: result: $lt_cv_cc_needs_belf" >&5
3777 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3778 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3779 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3780 CFLAGS="$SAVE_CFLAGS"
3781 fi
3782 ;;
3783
3784 esac
3785
3786 # Sed substitution that helps us do robust quoting. It backslashifies
3787 # metacharacters that are still active within double-quoted strings.
3788 Xsed='sed -e s/^X//'
3789 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
3790
3791 # Same as above, but do not quote variable references.
3792 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
3793
3794 # Sed substitution to delay expansion of an escaped shell variable in a
3795 # double_quote_subst'ed string.
3796 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3797
3798 # Constants:
3799 rm="rm -f"
3800
3801 # Global variables:
3802 default_ofile=libtool
3803 can_build_shared=yes
3804
3805 # All known linkers require a `.a' archive for static linking (except M$VC,
3806 # which needs '.lib').
3807 libext=a
3808 ltmain="$ac_aux_dir/ltmain.sh"
3809 ofile="$default_ofile"
3810 with_gnu_ld="$lt_cv_prog_gnu_ld"
3811 need_locks="$enable_libtool_lock"
3812
3813 old_CC="$CC"
3814 old_CFLAGS="$CFLAGS"
3815
3816 # Set sane defaults for various variables
3817 test -z "$AR" && AR=ar
3818 test -z "$AR_FLAGS" && AR_FLAGS=cru
3819 test -z "$AS" && AS=as
3820 test -z "$CC" && CC=cc
3821 test -z "$DLLTOOL" && DLLTOOL=dlltool
3822 test -z "$LD" && LD=ld
3823 test -z "$LN_S" && LN_S="ln -s"
3824 test -z "$MAGIC_CMD" && MAGIC_CMD=file
3825 test -z "$NM" && NM=nm
3826 test -z "$OBJDUMP" && OBJDUMP=objdump
3827 test -z "$RANLIB" && RANLIB=:
3828 test -z "$STRIP" && STRIP=:
3829 test -z "$ac_objext" && ac_objext=o
3830
3831 if test x"$host" != x"$build"; then
3832 ac_tool_prefix=${host_alias}-
3833 else
3834 ac_tool_prefix=
3835 fi
3836
3837 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
3838 case $host_os in
3839 linux-gnu*) ;;
3840 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
3841 esac
3842
3843 case $host_os in
3844 aix3*)
3845 # AIX sometimes has problems with the GCC collect2 program. For some
3846 # reason, if we set the COLLECT_NAMES environment variable, the problems
3847 # vanish in a puff of smoke.
3848 if test "X${COLLECT_NAMES+set}" != Xset; then
3849 COLLECT_NAMES=
3850 export COLLECT_NAMES
3851 fi
3852 ;;
3853 esac
3854
3855 # Determine commands to create old-style static archives.
3856 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
3857 old_postinstall_cmds='chmod 644 $oldlib'
3858 old_postuninstall_cmds=
3859
3860 if test -n "$RANLIB"; then
3861 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
3862 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
3863 fi
3864
3865 # Allow CC to be a program name with arguments.
3866 set dummy $CC
3867 compiler="$2"
3868
3869 ## FIXME: this should be a separate macro
3870 ##
3871 echo "$as_me:3875: checking for objdir" >&5
3872 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
3873 rm -f .libs 2>/dev/null
3874 mkdir .libs 2>/dev/null
3875 if test -d .libs; then
3876 objdir=.libs
3877 else
3878 # MS-DOS does not allow filenames that begin with a dot.
3879 objdir=_libs
3880 fi
3881 rmdir .libs 2>/dev/null
3882 echo "$as_me:3886: result: $objdir" >&5
3883 echo "${ECHO_T}$objdir" >&6
3884 ##
3885 ## END FIXME
3886
3887 ## FIXME: this should be a separate macro
3888 ##
3889
3890 # Check whether --with-pic or --without-pic was given.
3891 if test "${with_pic+set}" = set; then
3892 withval="$with_pic"
3893 pic_mode="$withval"
3894 else
3895 pic_mode=default
3896 fi;
3897 test -z "$pic_mode" && pic_mode=default
3898
3899 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
3900 # in isolation, and that seeing it set (from the cache) indicates that
3901 # the associated values are set (in the cache) correctly too.
3902 echo "$as_me:3906: checking for $compiler option to produce PIC" >&5
3903 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
3904 if test "${lt_cv_prog_cc_pic+set}" = set; then
3905 echo $ECHO_N "(cached) $ECHO_C" >&6
3906 else
3907 lt_cv_prog_cc_pic=
3908 lt_cv_prog_cc_shlib=
3909 lt_cv_prog_cc_wl=
3910 lt_cv_prog_cc_static=
3911 lt_cv_prog_cc_no_builtin=
3912 lt_cv_prog_cc_can_build_shared=$can_build_shared
3913
3914 if test "$GCC" = yes; then
3915 lt_cv_prog_cc_wl='-Wl,'
3916 lt_cv_prog_cc_static='-static'
3917
3918 case $host_os in
3919 aix*)
3920 # Below there is a dirty hack to force normal static linking with -ldl
3921 # The problem is because libdl dynamically linked with both libc and
3922 # libC (AIX C++ library), which obviously doesn't included in libraries
3923 # list by gcc. This cause undefined symbols with -static flags.
3924 # This hack allows C programs to be linked with "-static -ldl", but
3925 # we not sure about C++ programs.
3926 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
3927 ;;
3928 amigaos*)
3929 # FIXME: we need at least 68020 code to build shared libraries, but
3930 # adding the `-m68020' flag to GCC prevents building anything better,
3931 # like `-m68040'.
3932 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
3933 ;;
3934 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
3935 # PIC is the default for these OSes.
3936 ;;
3937 darwin* | rhapsody*)
3938 # PIC is the default on this platform
3939 # Common symbols not allowed in MH_DYLIB files
3940 lt_cv_prog_cc_pic='-fno-common'
3941 ;;
3942 cygwin* | mingw* | pw32* | os2*)
3943 # This hack is so that the source file can tell whether it is being
3944 # built for inclusion in a dll (and should export symbols for example).
3945 lt_cv_prog_cc_pic='-DDLL_EXPORT'
3946 ;;
3947 sysv4*MP*)
3948 if test -d /usr/nec; then
3949 lt_cv_prog_cc_pic=-Kconform_pic
3950 fi
3951 ;;
3952 *)
3953 lt_cv_prog_cc_pic='-fPIC'
3954 ;;
3955 esac
3956 else
3957 # PORTME Check for PIC flags for the system compiler.
3958 case $host_os in
3959 aix3* | aix4* | aix5*)
3960 # All AIX code is PIC.
3961 if test "$host_cpu" = ia64; then
3962 # AIX 5 now supports IA64 processor
3963 lt_cv_prog_cc_static='-Bstatic'
3964 lt_cv_prog_cc_wl='-Wl,'
3965 else
3966 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
3967 fi
3968 ;;
3969
3970 hpux9* | hpux10* | hpux11*)
3971 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
3972 lt_cv_prog_cc_wl='-Wl,'
3973 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
3974 lt_cv_prog_cc_pic='+Z'
3975 ;;
3976
3977 irix5* | irix6*)
3978 lt_cv_prog_cc_wl='-Wl,'
3979 lt_cv_prog_cc_static='-non_shared'
3980 # PIC (with -KPIC) is the default.
3981 ;;
3982
3983 cygwin* | mingw* | pw32* | os2*)
3984 # This hack is so that the source file can tell whether it is being
3985 # built for inclusion in a dll (and should export symbols for example).
3986 lt_cv_prog_cc_pic='-DDLL_EXPORT'
3987 ;;
3988
3989 newsos6)
3990 lt_cv_prog_cc_pic='-KPIC'
3991 lt_cv_prog_cc_static='-Bstatic'
3992 ;;
3993
3994 osf3* | osf4* | osf5*)
3995 # All OSF/1 code is PIC.
3996 lt_cv_prog_cc_wl='-Wl,'
3997 lt_cv_prog_cc_static='-non_shared'
3998 ;;
3999
4000 sco3.2v5*)
4001 lt_cv_prog_cc_pic='-Kpic'
4002 lt_cv_prog_cc_static='-dn'
4003 lt_cv_prog_cc_shlib='-belf'
4004 ;;
4005
4006 solaris*)
4007 lt_cv_prog_cc_pic='-KPIC'
4008 lt_cv_prog_cc_static='-Bstatic'
4009 lt_cv_prog_cc_wl='-Wl,'
4010 ;;
4011
4012 sunos4*)
4013 lt_cv_prog_cc_pic='-PIC'
4014 lt_cv_prog_cc_static='-Bstatic'
4015 lt_cv_prog_cc_wl='-Qoption ld '
4016 ;;
4017
4018 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4019 lt_cv_prog_cc_pic='-KPIC'
4020 lt_cv_prog_cc_static='-Bstatic'
4021 if test "x$host_vendor" = xsni; then
4022 lt_cv_prog_cc_wl='-LD'
4023 else
4024 lt_cv_prog_cc_wl='-Wl,'
4025 fi
4026 ;;
4027
4028 uts4*)
4029 lt_cv_prog_cc_pic='-pic'
4030 lt_cv_prog_cc_static='-Bstatic'
4031 ;;
4032
4033 sysv4*MP*)
4034 if test -d /usr/nec ;then
4035 lt_cv_prog_cc_pic='-Kconform_pic'
4036 lt_cv_prog_cc_static='-Bstatic'
4037 fi
4038 ;;
4039
4040 *)
4041 lt_cv_prog_cc_can_build_shared=no
4042 ;;
4043 esac
4044 fi
4045
4046 fi
4047
4048 if test -z "$lt_cv_prog_cc_pic"; then
4049 echo "$as_me:4053: result: none" >&5
4050 echo "${ECHO_T}none" >&6
4051 else
4052 echo "$as_me:4056: result: $lt_cv_prog_cc_pic" >&5
4053 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4054
4055 # Check to make sure the pic_flag actually works.
4056 echo "$as_me:4060: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4057 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4058 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 else
4061 save_CFLAGS="$CFLAGS"
4062 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4063 cat >conftest.$ac_ext <<_ACEOF
4064 #line 4068 "configure"
4065 #include "confdefs.h"
4066
4067 int
4068 main ()
4069 {
4070
4071 ;
4072 return 0;
4073 }
4074 _ACEOF
4075 rm -f conftest.$ac_objext
4076 if { (eval echo "$as_me:4080: \"$ac_compile\"") >&5
4077 (eval $ac_compile) 2>&5
4078 ac_status=$?
4079 echo "$as_me:4083: \$? = $ac_status" >&5
4080 (exit $ac_status); } &&
4081 { ac_try='test -s conftest.$ac_objext'
4082 { (eval echo "$as_me:4086: \"$ac_try\"") >&5
4083 (eval $ac_try) 2>&5
4084 ac_status=$?
4085 echo "$as_me:4089: \$? = $ac_status" >&5
4086 (exit $ac_status); }; }; then
4087 case $host_os in
4088 hpux9* | hpux10* | hpux11*)
4089 # On HP-UX, both CC and GCC only warn that PIC is supported... then
4090 # they create non-PIC objects. So, if there were any warnings, we
4091 # assume that PIC is not supported.
4092 if test -s conftest.err; then
4093 lt_cv_prog_cc_pic_works=no
4094 else
4095 lt_cv_prog_cc_pic_works=yes
4096 fi
4097 ;;
4098 *)
4099 lt_cv_prog_cc_pic_works=yes
4100 ;;
4101 esac
4102
4103 else
4104 echo "$as_me: failed program was:" >&5
4105 cat conftest.$ac_ext >&5
4106 lt_cv_prog_cc_pic_works=no
4107
4108 fi
4109 rm -f conftest.$ac_objext conftest.$ac_ext
4110 CFLAGS="$save_CFLAGS"
4111
4112 fi
4113
4114 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4115 lt_cv_prog_cc_pic=
4116 lt_cv_prog_cc_can_build_shared=no
4117 else
4118 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4119 fi
4120
4121 echo "$as_me:4125: result: $lt_cv_prog_cc_pic_works" >&5
4122 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4123 fi
4124 ##
4125 ## END FIXME
4126
4127 # Check for any special shared library compilation flags.
4128 if test -n "$lt_cv_prog_cc_shlib"; then
4129 { echo "$as_me:4133: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4130 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4131 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4132 else
4133 { echo "$as_me:4137: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4134 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4135 lt_cv_prog_cc_can_build_shared=no
4136 fi
4137 fi
4138
4139 ## FIXME: this should be a separate macro
4140 ##
4141 echo "$as_me:4145: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4142 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4143 if test "${lt_cv_prog_cc_static_works+set}" = set; then
4144 echo $ECHO_N "(cached) $ECHO_C" >&6
4145 else
4146 lt_cv_prog_cc_static_works=no
4147 save_LDFLAGS="$LDFLAGS"
4148 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4149 cat >conftest.$ac_ext <<_ACEOF
4150 #line 4154 "configure"
4151 #include "confdefs.h"
4152
4153 int
4154 main ()
4155 {
4156
4157 ;
4158 return 0;
4159 }
4160 _ACEOF
4161 rm -f conftest.$ac_objext conftest$ac_exeext
4162 if { (eval echo "$as_me:4166: \"$ac_link\"") >&5
4163 (eval $ac_link) 2>&5
4164 ac_status=$?
4165 echo "$as_me:4169: \$? = $ac_status" >&5
4166 (exit $ac_status); } &&
4167 { ac_try='test -s conftest$ac_exeext'
4168 { (eval echo "$as_me:4172: \"$ac_try\"") >&5
4169 (eval $ac_try) 2>&5
4170 ac_status=$?
4171 echo "$as_me:4175: \$? = $ac_status" >&5
4172 (exit $ac_status); }; }; then
4173 lt_cv_prog_cc_static_works=yes
4174 else
4175 echo "$as_me: failed program was:" >&5
4176 cat conftest.$ac_ext >&5
4177 fi
4178 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4179 LDFLAGS="$save_LDFLAGS"
4180
4181 fi
4182
4183 # Belt *and* braces to stop my trousers falling down:
4184 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4185 echo "$as_me:4189: result: $lt_cv_prog_cc_static_works" >&5
4186 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4187
4188 pic_flag="$lt_cv_prog_cc_pic"
4189 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4190 wl="$lt_cv_prog_cc_wl"
4191 link_static_flag="$lt_cv_prog_cc_static"
4192 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4193 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4194 ##
4195 ## END FIXME
4196
4197 ## FIXME: this should be a separate macro
4198 ##
4199 # Check to see if options -o and -c are simultaneously supported by compiler
4200 echo "$as_me:4204: checking if $compiler supports -c -o file.$ac_objext" >&5
4201 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4202 if test "${lt_cv_compiler_c_o+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205
4206 $rm -r conftest 2>/dev/null
4207 mkdir conftest
4208 cd conftest
4209 echo "int some_variable = 0;" > conftest.$ac_ext
4210 mkdir out
4211 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4212 # that will create temporary files in the current directory regardless of
4213 # the output directory. Thus, making CWD read-only will cause this test
4214 # to fail, enabling locking or at least warning the user not to do parallel
4215 # builds.
4216 chmod -w .
4217 save_CFLAGS="$CFLAGS"
4218 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4219 compiler_c_o=no
4220 if { (eval echo configure:4224: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4221 # The compiler can only warn and ignore the option if not recognized
4222 # So say no if there are warnings
4223 if test -s out/conftest.err; then
4224 lt_cv_compiler_c_o=no
4225 else
4226 lt_cv_compiler_c_o=yes
4227 fi
4228 else
4229 # Append any errors to the config.log.
4230 cat out/conftest.err 1>&5
4231 lt_cv_compiler_c_o=no
4232 fi
4233 CFLAGS="$save_CFLAGS"
4234 chmod u+w .
4235 $rm conftest* out/*
4236 rmdir out
4237 cd ..
4238 rmdir conftest
4239 $rm -r conftest 2>/dev/null
4240
4241 fi
4242
4243 compiler_c_o=$lt_cv_compiler_c_o
4244 echo "$as_me:4248: result: $compiler_c_o" >&5
4245 echo "${ECHO_T}$compiler_c_o" >&6
4246
4247 if test x"$compiler_c_o" = x"yes"; then
4248 # Check to see if we can write to a .lo
4249 echo "$as_me:4253: checking if $compiler supports -c -o file.lo" >&5
4250 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4251 if test "${lt_cv_compiler_o_lo+set}" = set; then
4252 echo $ECHO_N "(cached) $ECHO_C" >&6
4253 else
4254
4255 lt_cv_compiler_o_lo=no
4256 save_CFLAGS="$CFLAGS"
4257 CFLAGS="$CFLAGS -c -o conftest.lo"
4258 cat >conftest.$ac_ext <<_ACEOF
4259 #line 4263 "configure"
4260 #include "confdefs.h"
4261
4262 int
4263 main ()
4264 {
4265 int some_variable = 0;
4266 ;
4267 return 0;
4268 }
4269 _ACEOF
4270 rm -f conftest.$ac_objext
4271 if { (eval echo "$as_me:4275: \"$ac_compile\"") >&5
4272 (eval $ac_compile) 2>&5
4273 ac_status=$?
4274 echo "$as_me:4278: \$? = $ac_status" >&5
4275 (exit $ac_status); } &&
4276 { ac_try='test -s conftest.$ac_objext'
4277 { (eval echo "$as_me:4281: \"$ac_try\"") >&5
4278 (eval $ac_try) 2>&5
4279 ac_status=$?
4280 echo "$as_me:4284: \$? = $ac_status" >&5
4281 (exit $ac_status); }; }; then
4282 # The compiler can only warn and ignore the option if not recognized
4283 # So say no if there are warnings
4284 if test -s conftest.err; then
4285 lt_cv_compiler_o_lo=no
4286 else
4287 lt_cv_compiler_o_lo=yes
4288 fi
4289
4290 else
4291 echo "$as_me: failed program was:" >&5
4292 cat conftest.$ac_ext >&5
4293 fi
4294 rm -f conftest.$ac_objext conftest.$ac_ext
4295 CFLAGS="$save_CFLAGS"
4296
4297 fi
4298
4299 compiler_o_lo=$lt_cv_compiler_o_lo
4300 echo "$as_me:4304: result: $compiler_c_lo" >&5
4301 echo "${ECHO_T}$compiler_c_lo" >&6
4302 else
4303 compiler_o_lo=no
4304 fi
4305 ##
4306 ## END FIXME
4307
4308 ## FIXME: this should be a separate macro
4309 ##
4310 # Check to see if we can do hard links to lock some files if needed
4311 hard_links="nottested"
4312 if test "$compiler_c_o" = no && test "$need_locks" != no; then
4313 # do not overwrite the value of need_locks provided by the user
4314 echo "$as_me:4318: checking if we can lock with hard links" >&5
4315 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4316 hard_links=yes
4317 $rm conftest*
4318 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4319 touch conftest.a
4320 ln conftest.a conftest.b 2>&5 || hard_links=no
4321 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4322 echo "$as_me:4326: result: $hard_links" >&5
4323 echo "${ECHO_T}$hard_links" >&6
4324 if test "$hard_links" = no; then
4325 { echo "$as_me:4329: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4326 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4327 need_locks=warn
4328 fi
4329 else
4330 need_locks=no
4331 fi
4332 ##
4333 ## END FIXME
4334
4335 ## FIXME: this should be a separate macro
4336 ##
4337 if test "$GCC" = yes; then
4338 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4339 echo "$as_me:4343: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4340 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4341 echo "int some_variable = 0;" > conftest.$ac_ext
4342 save_CFLAGS="$CFLAGS"
4343 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4344 compiler_rtti_exceptions=no
4345 cat >conftest.$ac_ext <<_ACEOF
4346 #line 4350 "configure"
4347 #include "confdefs.h"
4348
4349 int
4350 main ()
4351 {
4352 int some_variable = 0;
4353 ;
4354 return 0;
4355 }
4356 _ACEOF
4357 rm -f conftest.$ac_objext
4358 if { (eval echo "$as_me:4362: \"$ac_compile\"") >&5
4359 (eval $ac_compile) 2>&5
4360 ac_status=$?
4361 echo "$as_me:4365: \$? = $ac_status" >&5
4362 (exit $ac_status); } &&
4363 { ac_try='test -s conftest.$ac_objext'
4364 { (eval echo "$as_me:4368: \"$ac_try\"") >&5
4365 (eval $ac_try) 2>&5
4366 ac_status=$?
4367 echo "$as_me:4371: \$? = $ac_status" >&5
4368 (exit $ac_status); }; }; then
4369 # The compiler can only warn and ignore the option if not recognized
4370 # So say no if there are warnings
4371 if test -s conftest.err; then
4372 compiler_rtti_exceptions=no
4373 else
4374 compiler_rtti_exceptions=yes
4375 fi
4376
4377 else
4378 echo "$as_me: failed program was:" >&5
4379 cat conftest.$ac_ext >&5
4380 fi
4381 rm -f conftest.$ac_objext conftest.$ac_ext
4382 CFLAGS="$save_CFLAGS"
4383 echo "$as_me:4387: result: $compiler_rtti_exceptions" >&5
4384 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4385
4386 if test "$compiler_rtti_exceptions" = "yes"; then
4387 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4388 else
4389 no_builtin_flag=' -fno-builtin'
4390 fi
4391 fi
4392 ##
4393 ## END FIXME
4394
4395 ## FIXME: this should be a separate macro
4396 ##
4397 # See if the linker supports building shared libraries.
4398 echo "$as_me:4402: checking whether the linker ($LD) supports shared libraries" >&5
4399 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4400
4401 allow_undefined_flag=
4402 no_undefined_flag=
4403 need_lib_prefix=unknown
4404 need_version=unknown
4405 # when you set need_version to no, make sure it does not cause -set_version
4406 # flags to be left without arguments
4407 archive_cmds=
4408 archive_expsym_cmds=
4409 old_archive_from_new_cmds=
4410 old_archive_from_expsyms_cmds=
4411 export_dynamic_flag_spec=
4412 whole_archive_flag_spec=
4413 thread_safe_flag_spec=
4414 hardcode_into_libs=no
4415 hardcode_libdir_flag_spec=
4416 hardcode_libdir_separator=
4417 hardcode_direct=no
4418 hardcode_minus_L=no
4419 hardcode_shlibpath_var=unsupported
4420 runpath_var=
4421 link_all_deplibs=unknown
4422 always_export_symbols=no
4423 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4424 # include_expsyms should be a list of space-separated symbols to be *always*
4425 # included in the symbol list
4426 include_expsyms=
4427 # exclude_expsyms can be an egrep regular expression of symbols to exclude
4428 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4429 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4430 # as well as any symbol that contains `d'.
4431 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4432 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4433 # platforms (ab)use it in PIC code, but their linkers get confused if
4434 # the symbol is explicitly referenced. Since portable code cannot
4435 # rely on this symbol name, it's probably fine to never include it in
4436 # preloaded symbol tables.
4437 extract_expsyms_cmds=
4438
4439 case $host_os in
4440 cygwin* | mingw* | pw32* )
4441 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4442 # When not using gcc, we currently assume that we are using
4443 # Microsoft Visual C++.
4444 if test "$GCC" != yes; then
4445 with_gnu_ld=no
4446 fi
4447 ;;
4448
4449 esac
4450
4451 ld_shlibs=yes
4452 if test "$with_gnu_ld" = yes; then
4453 # If archive_cmds runs LD, not CC, wlarc should be empty
4454 wlarc='${wl}'
4455
4456 # See if GNU ld supports shared libraries.
4457 case $host_os in
4458 aix3* | aix4* | aix5*)
4459 # On AIX, the GNU linker is very broken
4460 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4461 ld_shlibs=no
4462 cat <<EOF 1>&2
4463
4464 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4465 *** to be unable to reliably create shared libraries on AIX.
4466 *** Therefore, libtool is disabling shared libraries support. If you
4467 *** really care for shared libraries, you may want to modify your PATH
4468 *** so that a non-GNU linker is found, and then restart.
4469
4470 EOF
4471 ;;
4472
4473 amigaos*)
4474 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4475 hardcode_libdir_flag_spec='-L$libdir'
4476 hardcode_minus_L=yes
4477
4478 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4479 # that the semantics of dynamic libraries on AmigaOS, at least up
4480 # to version 4, is to share data among multiple programs linked
4481 # with the same dynamic library. Since this doesn't match the
4482 # behavior of shared libraries on other platforms, we can use
4483 # them.
4484 ld_shlibs=no
4485 ;;
4486
4487 beos*)
4488 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4489 allow_undefined_flag=unsupported
4490 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4491 # support --undefined. This deserves some investigation. FIXME
4492 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4493 else
4494 ld_shlibs=no
4495 fi
4496 ;;
4497
4498 cygwin* | mingw* | pw32*)
4499 # hardcode_libdir_flag_spec is actually meaningless, as there is
4500 # no search path for DLLs.
4501 hardcode_libdir_flag_spec='-L$libdir'
4502 allow_undefined_flag=unsupported
4503 always_export_symbols=yes
4504
4505 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
4506 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4507 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4508 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4509 else $CC -o impgen impgen.c ; fi)~
4510 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4511
4512 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4513
4514 # cygwin and mingw dlls have different entry points and sets of symbols
4515 # to exclude.
4516 # FIXME: what about values for MSVC?
4517 dll_entry=__cygwin_dll_entry@12
4518 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
4519 case $host_os in
4520 mingw*)
4521 # mingw values
4522 dll_entry=_DllMainCRTStartup@12
4523 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4524 ;;
4525 esac
4526
4527 # mingw and cygwin differ, and it's simplest to just exclude the union
4528 # of the two symbol sets.
4529 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
4530
4531 # recent cygwin and mingw systems supply a stub DllMain which the user
4532 # can override, but on older systems we have to supply one (in ltdll.c)
4533 if test "x$lt_cv_need_dllmain" = "xyes"; then
4534 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
4535 ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < [$]0 > $output_objdir/$soname-ltdll.c~
4536 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
4537 else
4538 ltdll_obj=
4539 ltdll_cmds=
4540 fi
4541
4542 # Extract the symbol export list from an `--export-all' def file,
4543 # then regenerate the def file from the symbol export list, so that
4544 # the compiled dll only exports the symbol export list.
4545 # Be careful not to strip the DATA tag left be newer dlltools.
4546 export_symbols_cmds="$ltdll_cmds"'
4547 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
4548 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
4549
4550 # If the export-symbols file already is a .def file (1st line
4551 # is EXPORTS), use it as is.
4552 # If DATA tags from a recent dlltool are present, honour them!
4553 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
4554 cp $export_symbols $output_objdir/$soname-def;
4555 else
4556 echo EXPORTS > $output_objdir/$soname-def;
4557 _lt_hint=1;
4558 cat $export_symbols | while read symbol; do
4559 set dummy \$symbol;
4560 case \$# in
4561 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
4562 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
4563 esac;
4564 _lt_hint=`expr 1 + \$_lt_hint`;
4565 done;
4566 fi~
4567 '"$ltdll_cmds"'
4568 $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4569 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
4570 $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
4571 $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
4572 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
4573 ;;
4574
4575 netbsd*)
4576 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4577 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
4578 wlarc=
4579 else
4580 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4581 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4582 fi
4583 ;;
4584
4585 solaris* | sysv5*)
4586 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
4587 ld_shlibs=no
4588 cat <<EOF 1>&2
4589
4590 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
4591 *** create shared libraries on Solaris systems. Therefore, libtool
4592 *** is disabling shared libraries support. We urge you to upgrade GNU
4593 *** binutils to release 2.9.1 or newer. Another option is to modify
4594 *** your PATH or compiler configuration so that the native linker is
4595 *** used, and then restart.
4596
4597 EOF
4598 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4599 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4600 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4601 else
4602 ld_shlibs=no
4603 fi
4604 ;;
4605
4606 sunos4*)
4607 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4608 wlarc=
4609 hardcode_direct=yes
4610 hardcode_shlibpath_var=no
4611 ;;
4612
4613 *)
4614 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4615 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4616 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
4617 else
4618 ld_shlibs=no
4619 fi
4620 ;;
4621 esac
4622
4623 if test "$ld_shlibs" = yes; then
4624 runpath_var=LD_RUN_PATH
4625 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
4626 export_dynamic_flag_spec='${wl}--export-dynamic'
4627 case $host_os in
4628 cygwin* | mingw* | pw32*)
4629 # dlltool doesn't understand --whole-archive et. al.
4630 whole_archive_flag_spec=
4631 ;;
4632 *)
4633 # ancient GNU ld didn't support --whole-archive et. al.
4634 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
4635 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
4636 else
4637 whole_archive_flag_spec=
4638 fi
4639 ;;
4640 esac
4641 fi
4642 else
4643 # PORTME fill in a description of your system's linker (not GNU ld)
4644 case $host_os in
4645 aix3*)
4646 allow_undefined_flag=unsupported
4647 always_export_symbols=yes
4648 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
4649 # Note: this linker hardcodes the directories in LIBPATH if there
4650 # are no directories specified by -L.
4651 hardcode_minus_L=yes
4652 if test "$GCC" = yes && test -z "$link_static_flag"; then
4653 # Neither direct hardcoding nor static linking is supported with a
4654 # broken collect2.
4655 hardcode_direct=unsupported
4656 fi
4657 ;;
4658
4659 aix4* | aix5*)
4660 # When large executables or shared objects are built, AIX ld can
4661 # have problems creating the table of contents. If linking a library
4662 # or program results in "error TOC overflow" add -mminimal-toc to
4663 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
4664 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
4665
4666 archive_cmds=''
4667 hardcode_libdir_separator=':'
4668 if test "$GCC" = yes; then
4669 collect2name=`${CC} -print-prog-name=collect2`
4670 if test -f "$collect2name" && \
4671 strings "$collect2name" | grep resolve_lib_name >/dev/null
4672 then
4673 # We have reworked collect2
4674 hardcode_direct=yes
4675 else
4676 # We have old collect2
4677 hardcode_direct=unsupported
4678 # It fails to find uninstalled libraries when the uninstalled
4679 # path is not listed in the libpath. Setting hardcode_minus_L
4680 # to unsupported forces relinking
4681 hardcode_minus_L=yes
4682 hardcode_libdir_flag_spec='-L$libdir'
4683 hardcode_libdir_separator=
4684 fi
4685 shared_flag='-shared'
4686 else
4687 if test "$host_cpu" = ia64; then
4688 shared_flag='-G'
4689 else
4690 shared_flag='${wl}-bM:SRE'
4691 fi
4692 hardcode_direct=yes
4693 fi
4694
4695 if test "$host_cpu" = ia64; then
4696 # On IA64, the linker does run time linking by default, so we don't
4697 # have to do anything special.
4698 aix_use_runtimelinking=no
4699 exp_sym_flag='-Bexport'
4700 no_entry_flag=""
4701 else
4702 # Test if we are trying to use run time linking, or normal AIX style linking.
4703 # If -brtl is somewhere in LDFLAGS, we need to do run time linking.
4704 aix_use_runtimelinking=no
4705 for ld_flag in $LDFLAGS; do
4706 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
4707 aix_use_runtimelinking=yes
4708 break
4709 fi
4710 done
4711 exp_sym_flag='-bexport'
4712 no_entry_flag='-bnoentry'
4713 fi
4714 # It seems that -bexpall can do strange things, so it is better to
4715 # generate a list of symbols to export.
4716 always_export_symbols=yes
4717 if test "$aix_use_runtimelinking" = yes; then
4718 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
4719 allow_undefined_flag=' -Wl,-G'
4720 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
4721 else
4722 if test "$host_cpu" = ia64; then
4723 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
4724 allow_undefined_flag="-znodefs"
4725 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
4726 else
4727 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
4728 # Warning - without using the other run time loading flags, -berok will
4729 # link without error, but may produce a broken library.
4730 allow_undefined_flag='${wl}-berok"
4731 # This is a bit strange, but is similar to how AIX traditionally builds
4732 # it's shared libraries.
4733 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
4734 fi
4735 fi
4736 ;;
4737
4738 amigaos*)
4739 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
4740 hardcode_libdir_flag_spec='-L$libdir'
4741 hardcode_minus_L=yes
4742 # see comment about different semantics on the GNU ld section
4743 ld_shlibs=no
4744 ;;
4745
4746 cygwin* | mingw* | pw32*)
4747 # When not using gcc, we currently assume that we are using
4748 # Microsoft Visual C++.
4749 # hardcode_libdir_flag_spec is actually meaningless, as there is
4750 # no search path for DLLs.
4751 hardcode_libdir_flag_spec=' '
4752 allow_undefined_flag=unsupported
4753 # Tell ltmain to make .lib files, not .a files.
4754 libext=lib
4755 # FIXME: Setting linknames here is a bad hack.
4756 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
4757 # The linker will automatically build a .lib file if we build a DLL.
4758 old_archive_from_new_cmds='true'
4759 # FIXME: Should let the user specify the lib program.
4760 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
4761 fix_srcfile_path='`cygpath -w "$srcfile"`'
4762 ;;
4763
4764 darwin* | rhapsody*)
4765 allow_undefined_flag='-undefined suppress'
4766 # FIXME: Relying on posixy $() will cause problems for
4767 # cross-compilation, but unfortunately the echo tests do not
4768 # yet detect zsh echo's removal of \ escapes.
4769 archive_cmds='$CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linkopts -install_name $rpath/$soname $(test -n "$verstring" -a x$verstring != x0.0 && echo $verstring)'
4770 # We need to add '_' to the symbols in $export_symbols first
4771 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
4772 hardcode_direct=yes
4773 hardcode_shlibpath_var=no
4774 whole_archive_flag_spec='-all_load $convenience'
4775 ;;
4776
4777 freebsd1*)
4778 ld_shlibs=no
4779 ;;
4780
4781 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
4782 # support. Future versions do this automatically, but an explicit c++rt0.o
4783 # does not break anything, and helps significantly (at the cost of a little
4784 # extra space).
4785 freebsd2.2*)
4786 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
4787 hardcode_libdir_flag_spec='-R$libdir'
4788 hardcode_direct=yes
4789 hardcode_shlibpath_var=no
4790 ;;
4791
4792 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
4793 freebsd2*)
4794 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4795 hardcode_direct=yes
4796 hardcode_minus_L=yes
4797 hardcode_shlibpath_var=no
4798 ;;
4799
4800 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
4801 freebsd*)
4802 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
4803 hardcode_libdir_flag_spec='-R$libdir'
4804 hardcode_direct=yes
4805 hardcode_shlibpath_var=no
4806 ;;
4807
4808 hpux9* | hpux10* | hpux11*)
4809 case $host_os in
4810 hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
4811 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
4812 esac
4813 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
4814 hardcode_libdir_separator=:
4815 hardcode_direct=yes
4816 hardcode_minus_L=yes # Not in the search PATH, but as the default
4817 # location of the library.
4818 export_dynamic_flag_spec='${wl}-E'
4819 ;;
4820
4821 irix5* | irix6*)
4822 if test "$GCC" = yes; then
4823 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4824 else
4825 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4826 fi
4827 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4828 hardcode_libdir_separator=:
4829 link_all_deplibs=yes
4830 ;;
4831
4832 netbsd*)
4833 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
4834 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
4835 else
4836 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
4837 fi
4838 hardcode_libdir_flag_spec='-R$libdir'
4839 hardcode_direct=yes
4840 hardcode_shlibpath_var=no
4841 ;;
4842
4843 newsos6)
4844 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
4845 hardcode_direct=yes
4846 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4847 hardcode_libdir_separator=:
4848 hardcode_shlibpath_var=no
4849 ;;
4850
4851 openbsd*)
4852 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
4853 hardcode_libdir_flag_spec='-R$libdir'
4854 hardcode_direct=yes
4855 hardcode_shlibpath_var=no
4856 ;;
4857
4858 os2*)
4859 hardcode_libdir_flag_spec='-L$libdir'
4860 hardcode_minus_L=yes
4861 allow_undefined_flag=unsupported
4862 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
4863 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
4864 ;;
4865
4866 osf3*)
4867 if test "$GCC" = yes; then
4868 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4869 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4870 else
4871 allow_undefined_flag=' -expect_unresolved \*'
4872 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4873 fi
4874 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4875 hardcode_libdir_separator=:
4876 ;;
4877
4878 osf4* | osf5*) # as osf3* with the addition of -msym flag
4879 if test "$GCC" = yes; then
4880 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
4881 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
4882 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
4883 else
4884 allow_undefined_flag=' -expect_unresolved \*'
4885 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
4886 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
4887 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
4888
4889 #Both c and cxx compiler support -rpath directly
4890 hardcode_libdir_flag_spec='-rpath $libdir'
4891 fi
4892 hardcode_libdir_separator=:
4893 ;;
4894
4895 sco3.2v5*)
4896 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4897 hardcode_shlibpath_var=no
4898 runpath_var=LD_RUN_PATH
4899 hardcode_runpath_var=yes
4900 ;;
4901
4902 solaris*)
4903 no_undefined_flag=' -z defs'
4904 # $CC -shared without GNU ld will not create a library from C++
4905 # object files and a static libstdc++, better avoid it by now
4906 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4907 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4908 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4909 hardcode_libdir_flag_spec='-R$libdir'
4910 hardcode_shlibpath_var=no
4911 case $host_os in
4912 solaris2.[0-5] | solaris2.[0-5].*) ;;
4913 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
4914 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
4915 esac
4916 link_all_deplibs=yes
4917 ;;
4918
4919 sunos4*)
4920 if test "x$host_vendor" = xsequent; then
4921 # Use $CC to link under sequent, because it throws in some extra .o
4922 # files that make .init and .fini sections work.
4923 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
4924 else
4925 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
4926 fi
4927 hardcode_libdir_flag_spec='-L$libdir'
4928 hardcode_direct=yes
4929 hardcode_minus_L=yes
4930 hardcode_shlibpath_var=no
4931 ;;
4932
4933 sysv4)
4934 if test "x$host_vendor" = xsno; then
4935 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linkopts'
4936 hardcode_direct=yes # is this really true???
4937 else
4938 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4939 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
4940 fi
4941 runpath_var='LD_RUN_PATH'
4942 hardcode_shlibpath_var=no
4943 ;;
4944
4945 sysv4.3*)
4946 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4947 hardcode_shlibpath_var=no
4948 export_dynamic_flag_spec='-Bexport'
4949 ;;
4950
4951 sysv5*)
4952 no_undefined_flag=' -z text'
4953 # $CC -shared without GNU ld will not create a library from C++
4954 # object files and a static libstdc++, better avoid it by now
4955 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
4956 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
4957 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
4958 hardcode_libdir_flag_spec=
4959 hardcode_shlibpath_var=no
4960 runpath_var='LD_RUN_PATH'
4961 ;;
4962
4963 uts4*)
4964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4965 hardcode_libdir_flag_spec='-L$libdir'
4966 hardcode_shlibpath_var=no
4967 ;;
4968
4969 dgux*)
4970 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4971 hardcode_libdir_flag_spec='-L$libdir'
4972 hardcode_shlibpath_var=no
4973 ;;
4974
4975 sysv4*MP*)
4976 if test -d /usr/nec; then
4977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
4978 hardcode_shlibpath_var=no
4979 runpath_var=LD_RUN_PATH
4980 hardcode_runpath_var=yes
4981 ld_shlibs=yes
4982 fi
4983 ;;
4984
4985 sysv4.2uw2*)
4986 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
4987 hardcode_direct=yes
4988 hardcode_minus_L=no
4989 hardcode_shlibpath_var=no
4990 hardcode_runpath_var=yes
4991 runpath_var=LD_RUN_PATH
4992 ;;
4993
4994 sysv5uw7* | unixware7*)
4995 no_undefined_flag='${wl}-z ${wl}text'
4996 if test "$GCC" = yes; then
4997 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
4998 else
4999 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5000 fi
5001 runpath_var='LD_RUN_PATH'
5002 hardcode_shlibpath_var=no
5003 ;;
5004
5005 *)
5006 ld_shlibs=no
5007 ;;
5008 esac
5009 fi
5010 echo "$as_me:5014: result: $ld_shlibs" >&5
5011 echo "${ECHO_T}$ld_shlibs" >&6
5012 test "$ld_shlibs" = no && can_build_shared=no
5013 ##
5014 ## END FIXME
5015
5016 ## FIXME: this should be a separate macro
5017 ##
5018 # Check hardcoding attributes.
5019 echo "$as_me:5023: checking how to hardcode library paths into programs" >&5
5020 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5021 hardcode_action=
5022 if test -n "$hardcode_libdir_flag_spec" || \
5023 test -n "$runpath_var"; then
5024
5025 # We can hardcode non-existant directories.
5026 if test "$hardcode_direct" != no &&
5027 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5028 # have to relink, otherwise we might link with an installed library
5029 # when we should be linking with a yet-to-be-installed one
5030 ## test "$hardcode_shlibpath_var" != no &&
5031 test "$hardcode_minus_L" != no; then
5032 # Linking always hardcodes the temporary library directory.
5033 hardcode_action=relink
5034 else
5035 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5036 hardcode_action=immediate
5037 fi
5038 else
5039 # We cannot hardcode anything, or else we can only hardcode existing
5040 # directories.
5041 hardcode_action=unsupported
5042 fi
5043 echo "$as_me:5047: result: $hardcode_action" >&5
5044 echo "${ECHO_T}$hardcode_action" >&6
5045 ##
5046 ## END FIXME
5047
5048 ## FIXME: this should be a separate macro
5049 ##
5050 striplib=
5051 old_striplib=
5052 echo "$as_me:5056: checking whether stripping libraries is possible" >&5
5053 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5054 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5055 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5056 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5057 echo "$as_me:5061: result: yes" >&5
5058 echo "${ECHO_T}yes" >&6
5059 else
5060 echo "$as_me:5064: result: no" >&5
5061 echo "${ECHO_T}no" >&6
5062 fi
5063 ##
5064 ## END FIXME
5065
5066 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5067 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5068
5069 ## FIXME: this should be a separate macro
5070 ##
5071 # PORTME Fill in your ld.so characteristics
5072 echo "$as_me:5076: checking dynamic linker characteristics" >&5
5073 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5074 library_names_spec=
5075 libname_spec='lib$name'
5076 soname_spec=
5077 postinstall_cmds=
5078 postuninstall_cmds=
5079 finish_cmds=
5080 finish_eval=
5081 shlibpath_var=
5082 shlibpath_overrides_runpath=unknown
5083 version_type=none
5084 dynamic_linker="$host_os ld.so"
5085 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5086 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5087
5088 case $host_os in
5089 aix3*)
5090 version_type=linux
5091 library_names_spec='${libname}${release}.so$versuffix $libname.a'
5092 shlibpath_var=LIBPATH
5093
5094 # AIX has no versioning support, so we append a major version to the name.
5095 soname_spec='${libname}${release}.so$major'
5096 ;;
5097
5098 aix4* | aix5*)
5099 version_type=linux
5100 if test "$host_cpu" = ia64; then
5101 # AIX 5 supports IA64
5102 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5103 shlibpath_var=LD_LIBRARY_PATH
5104 else
5105 # With GCC up to 2.95.x, collect2 would create an import file
5106 # for dependence libraries. The import file would start with
5107 # the line `#! .'. This would cause the generated library to
5108 # depend on `.', always an invalid library. This was fixed in
5109 # development snapshots of GCC prior to 3.0.
5110 case $host_os in
5111 aix4 | aix4.[01] | aix4.[01].*)
5112 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5113 echo ' yes '
5114 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5115 :
5116 else
5117 can_build_shared=no
5118 fi
5119 ;;
5120 esac
5121 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
5122 # soname into executable. Probably we can add versioning support to
5123 # collect2, so additional links can be useful in future.
5124 if test "$aix_use_runtimelinking" = yes; then
5125 # If using run time linking (on AIX 4.2 or later) use lib<name>.so instead of
5126 # lib<name>.a to let people know that these are not typical AIX shared libraries.
5127 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5128 else
5129 # We preserve .a as extension for shared libraries through AIX4.2
5130 # and later when we are not doing run time linking.
5131 library_names_spec='${libname}${release}.a $libname.a'
5132 soname_spec='${libname}${release}.so$major'
5133 fi
5134 shlibpath_var=LIBPATH
5135 deplibs_check_method=pass_all
5136 fi
5137 ;;
5138
5139 amigaos*)
5140 library_names_spec='$libname.ixlibrary $libname.a'
5141 # Create ${libname}_ixlibrary.a entries in /sys/libs.
5142 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done'
5143 ;;
5144
5145 beos*)
5146 library_names_spec='${libname}.so'
5147 dynamic_linker="$host_os ld.so"
5148 shlibpath_var=LIBRARY_PATH
5149 ;;
5150
5151 bsdi4*)
5152 version_type=linux
5153 need_version=no
5154 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5155 soname_spec='${libname}${release}.so$major'
5156 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5157 shlibpath_var=LD_LIBRARY_PATH
5158 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5159 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5160 export_dynamic_flag_spec=-rdynamic
5161 # the default ld.so.conf also contains /usr/contrib/lib and
5162 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5163 # libtool to hard-code these into programs
5164 ;;
5165
5166 cygwin* | mingw* | pw32*)
5167 version_type=windows
5168 need_version=no
5169 need_lib_prefix=no
5170 case $GCC,$host_os in
5171 yes,cygwin*)
5172 library_names_spec='$libname.dll.a'
5173 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5174 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5175 dldir=$destdir/`dirname \$dlpath`~
5176 test -d \$dldir || mkdir -p \$dldir~
5177 $install_prog .libs/$dlname \$dldir/$dlname'
5178 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5179 dlpath=$dir/\$dldll~
5180 $rm \$dlpath'
5181 ;;
5182 yes,mingw*)
5183 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5184 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5185 ;;
5186 yes,pw32*)
5187 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5188 ;;
5189 *)
5190 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5191 ;;
5192 esac
5193 dynamic_linker='Win32 ld.exe'
5194 # FIXME: first we should search . and the directory the executable is in
5195 shlibpath_var=PATH
5196 ;;
5197
5198 darwin* | rhapsody*)
5199 dynamic_linker="$host_os dyld"
5200 version_type=darwin
5201 need_lib_prefix=no
5202 need_version=no
5203 # FIXME: Relying on posixy $() will cause problems for
5204 # cross-compilation, but unfortunately the echo tests do not
5205 # yet detect zsh echo's removal of \ escapes.
5206 library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
5207 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5208 shlibpath_overrides_runpath=yes
5209 shlibpath_var=DYLD_LIBRARY_PATH
5210 ;;
5211
5212 freebsd1*)
5213 dynamic_linker=no
5214 ;;
5215
5216 freebsd*)
5217 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5218 version_type=freebsd-$objformat
5219 case $version_type in
5220 freebsd-elf*)
5221 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5222 need_version=no
5223 need_lib_prefix=no
5224 ;;
5225 freebsd-*)
5226 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5227 need_version=yes
5228 ;;
5229 esac
5230 shlibpath_var=LD_LIBRARY_PATH
5231 case $host_os in
5232 freebsd2*)
5233 shlibpath_overrides_runpath=yes
5234 ;;
5235 *)
5236 shlibpath_overrides_runpath=no
5237 hardcode_into_libs=yes
5238 ;;
5239 esac
5240 ;;
5241
5242 gnu*)
5243 version_type=linux
5244 need_lib_prefix=no
5245 need_version=no
5246 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5247 soname_spec='${libname}${release}.so$major'
5248 shlibpath_var=LD_LIBRARY_PATH
5249 hardcode_into_libs=yes
5250 ;;
5251
5252 hpux9* | hpux10* | hpux11*)
5253 # Give a soname corresponding to the major version so that dld.sl refuses to
5254 # link against other versions.
5255 dynamic_linker="$host_os dld.sl"
5256 version_type=sunos
5257 need_lib_prefix=no
5258 need_version=no
5259 shlibpath_var=SHLIB_PATH
5260 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5261 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5262 soname_spec='${libname}${release}.sl$major'
5263 # HP-UX runs *really* slowly unless shared libraries are mode 555.
5264 postinstall_cmds='chmod 555 $lib'
5265 ;;
5266
5267 irix5* | irix6*)
5268 version_type=irix
5269 need_lib_prefix=no
5270 need_version=no
5271 soname_spec='${libname}${release}.so$major'
5272 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5273 case $host_os in
5274 irix5*)
5275 libsuff= shlibsuff=
5276 ;;
5277 *)
5278 case $LD in # libtool.m4 will add one of these switches to LD
5279 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5280 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5281 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5282 *) libsuff= shlibsuff= libmagic=never-match;;
5283 esac
5284 ;;
5285 esac
5286 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5287 shlibpath_overrides_runpath=no
5288 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5289 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5290 ;;
5291
5292 # No shared lib support for Linux oldld, aout, or coff.
5293 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5294 dynamic_linker=no
5295 ;;
5296
5297 # This must be Linux ELF.
5298 linux-gnu*)
5299 version_type=linux
5300 need_lib_prefix=no
5301 need_version=no
5302 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5303 soname_spec='${libname}${release}.so$major'
5304 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5305 shlibpath_var=LD_LIBRARY_PATH
5306 shlibpath_overrides_runpath=no
5307 # This implies no fast_install, which is unacceptable.
5308 # Some rework will be needed to allow for fast_install
5309 # before this can be enabled.
5310 hardcode_into_libs=yes
5311
5312 # We used to test for /lib/ld.so.1 and disable shared libraries on
5313 # powerpc, because MkLinux only supported shared libraries with the
5314 # GNU dynamic linker. Since this was broken with cross compilers,
5315 # most powerpc-linux boxes support dynamic linking these days and
5316 # people can always --disable-shared, the test was removed, and we
5317 # assume the GNU/Linux dynamic linker is in use.
5318 dynamic_linker='GNU/Linux ld.so'
5319 ;;
5320
5321 netbsd*)
5322 version_type=sunos
5323 need_lib_prefix=no
5324 need_version=no
5325 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5326 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5327 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5328 dynamic_linker='NetBSD (a.out) ld.so'
5329 else
5330 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5331 soname_spec='${libname}${release}.so$major'
5332 dynamic_linker='NetBSD ld.elf_so'
5333 fi
5334 shlibpath_var=LD_LIBRARY_PATH
5335 shlibpath_overrides_runpath=yes
5336 hardcode_into_libs=yes
5337 ;;
5338
5339 newsos6)
5340 version_type=linux
5341 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5342 shlibpath_var=LD_LIBRARY_PATH
5343 shlibpath_overrides_runpath=yes
5344 ;;
5345
5346 openbsd*)
5347 version_type=sunos
5348 if test "$with_gnu_ld" = yes; then
5349 need_lib_prefix=no
5350 need_version=no
5351 fi
5352 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5353 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5354 shlibpath_var=LD_LIBRARY_PATH
5355 ;;
5356
5357 os2*)
5358 libname_spec='$name'
5359 need_lib_prefix=no
5360 library_names_spec='$libname.dll $libname.a'
5361 dynamic_linker='OS/2 ld.exe'
5362 shlibpath_var=LIBPATH
5363 ;;
5364
5365 osf3* | osf4* | osf5*)
5366 version_type=osf
5367 need_version=no
5368 soname_spec='${libname}${release}.so'
5369 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5370 shlibpath_var=LD_LIBRARY_PATH
5371 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5372 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5373 ;;
5374
5375 sco3.2v5*)
5376 version_type=osf
5377 soname_spec='${libname}${release}.so$major'
5378 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5379 shlibpath_var=LD_LIBRARY_PATH
5380 ;;
5381
5382 solaris*)
5383 version_type=linux
5384 need_lib_prefix=no
5385 need_version=no
5386 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5387 soname_spec='${libname}${release}.so$major'
5388 shlibpath_var=LD_LIBRARY_PATH
5389 shlibpath_overrides_runpath=yes
5390 hardcode_into_libs=yes
5391 # ldd complains unless libraries are executable
5392 postinstall_cmds='chmod +x $lib'
5393 ;;
5394
5395 sunos4*)
5396 version_type=sunos
5397 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5398 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5399 shlibpath_var=LD_LIBRARY_PATH
5400 shlibpath_overrides_runpath=yes
5401 if test "$with_gnu_ld" = yes; then
5402 need_lib_prefix=no
5403 fi
5404 need_version=yes
5405 ;;
5406
5407 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5408 version_type=linux
5409 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5410 soname_spec='${libname}${release}.so$major'
5411 shlibpath_var=LD_LIBRARY_PATH
5412 case $host_vendor in
5413 sni)
5414 shlibpath_overrides_runpath=no
5415 ;;
5416 motorola)
5417 need_lib_prefix=no
5418 need_version=no
5419 shlibpath_overrides_runpath=no
5420 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5421 ;;
5422 esac
5423 ;;
5424
5425 uts4*)
5426 version_type=linux
5427 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5428 soname_spec='${libname}${release}.so$major'
5429 shlibpath_var=LD_LIBRARY_PATH
5430 ;;
5431
5432 dgux*)
5433 version_type=linux
5434 need_lib_prefix=no
5435 need_version=no
5436 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5437 soname_spec='${libname}${release}.so$major'
5438 shlibpath_var=LD_LIBRARY_PATH
5439 ;;
5440
5441 sysv4*MP*)
5442 if test -d /usr/nec ;then
5443 version_type=linux
5444 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5445 soname_spec='$libname.so.$major'
5446 shlibpath_var=LD_LIBRARY_PATH
5447 fi
5448 ;;
5449
5450 *)
5451 dynamic_linker=no
5452 ;;
5453 esac
5454 echo "$as_me:5458: result: $dynamic_linker" >&5
5455 echo "${ECHO_T}$dynamic_linker" >&6
5456 test "$dynamic_linker" = no && can_build_shared=no
5457 ##
5458 ## END FIXME
5459
5460 ## FIXME: this should be a separate macro
5461 ##
5462 # Report the final consequences.
5463 echo "$as_me:5467: checking if libtool supports shared libraries" >&5
5464 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
5465 echo "$as_me:5469: result: $can_build_shared" >&5
5466 echo "${ECHO_T}$can_build_shared" >&6
5467 ##
5468 ## END FIXME
5469
5470 if test "$hardcode_action" = relink; then
5471 # Fast installation is not supported
5472 enable_fast_install=no
5473 elif test "$shlibpath_overrides_runpath" = yes ||
5474 test "$enable_shared" = no; then
5475 # Fast installation is not necessary
5476 enable_fast_install=needless
5477 fi
5478
5479 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
5480 if test "$GCC" = yes; then
5481 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
5482 fi
5483
5484 if test "x$enable_dlopen" != xyes; then
5485 enable_dlopen=unknown
5486 enable_dlopen_self=unknown
5487 enable_dlopen_self_static=unknown
5488 else
5489 lt_cv_dlopen=no
5490 lt_cv_dlopen_libs=
5491
5492 case $host_os in
5493 beos*)
5494 lt_cv_dlopen="load_add_on"
5495 lt_cv_dlopen_libs=
5496 lt_cv_dlopen_self=yes
5497 ;;
5498
5499 cygwin* | mingw* | pw32*)
5500 lt_cv_dlopen="LoadLibrary"
5501 lt_cv_dlopen_libs=
5502 ;;
5503
5504 *)
5505 echo "$as_me:5509: checking for dlopen in -ldl" >&5
5506 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
5507 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
5508 echo $ECHO_N "(cached) $ECHO_C" >&6
5509 else
5510 ac_check_lib_save_LIBS=$LIBS
5511 LIBS="-ldl $LIBS"
5512 cat >conftest.$ac_ext <<_ACEOF
5513 #line 5517 "configure"
5514 #include "confdefs.h"
5515
5516 /* Override any gcc2 internal prototype to avoid an error. */
5517 #ifdef __cplusplus
5518 extern "C"
5519 #endif
5520 /* We use char because int might match the return type of a gcc2
5521 builtin and then its argument prototype would still apply. */
5522 char dlopen ();
5523 int
5524 main ()
5525 {
5526 dlopen ();
5527 ;
5528 return 0;
5529 }
5530 _ACEOF
5531 rm -f conftest.$ac_objext conftest$ac_exeext
5532 if { (eval echo "$as_me:5536: \"$ac_link\"") >&5
5533 (eval $ac_link) 2>&5
5534 ac_status=$?
5535 echo "$as_me:5539: \$? = $ac_status" >&5
5536 (exit $ac_status); } &&
5537 { ac_try='test -s conftest$ac_exeext'
5538 { (eval echo "$as_me:5542: \"$ac_try\"") >&5
5539 (eval $ac_try) 2>&5
5540 ac_status=$?
5541 echo "$as_me:5545: \$? = $ac_status" >&5
5542 (exit $ac_status); }; }; then
5543 ac_cv_lib_dl_dlopen=yes
5544 else
5545 echo "$as_me: failed program was:" >&5
5546 cat conftest.$ac_ext >&5
5547 ac_cv_lib_dl_dlopen=no
5548 fi
5549 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5550 LIBS=$ac_check_lib_save_LIBS
5551 fi
5552 echo "$as_me:5556: result: $ac_cv_lib_dl_dlopen" >&5
5553 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
5554 if test $ac_cv_lib_dl_dlopen = yes; then
5555 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
5556 else
5557 echo "$as_me:5561: checking for dlopen" >&5
5558 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
5559 if test "${ac_cv_func_dlopen+set}" = set; then
5560 echo $ECHO_N "(cached) $ECHO_C" >&6
5561 else
5562 cat >conftest.$ac_ext <<_ACEOF
5563 #line 5567 "configure"
5564 #include "confdefs.h"
5565 /* System header to define __stub macros and hopefully few prototypes,
5566 which can conflict with char dlopen (); below. */
5567 #include <assert.h>
5568 /* Override any gcc2 internal prototype to avoid an error. */
5569 #ifdef __cplusplus
5570 extern "C"
5571 #endif
5572 /* We use char because int might match the return type of a gcc2
5573 builtin and then its argument prototype would still apply. */
5574 char dlopen ();
5575 char (*f) ();
5576
5577 int
5578 main ()
5579 {
5580 /* The GNU C library defines this for functions which it implements
5581 to always fail with ENOSYS. Some functions are actually named
5582 something starting with __ and the normal name is an alias. */
5583 #if defined (__stub_dlopen) || defined (__stub___dlopen)
5584 choke me
5585 #else
5586 f = dlopen;
5587 #endif
5588
5589 ;
5590 return 0;
5591 }
5592 _ACEOF
5593 rm -f conftest.$ac_objext conftest$ac_exeext
5594 if { (eval echo "$as_me:5598: \"$ac_link\"") >&5
5595 (eval $ac_link) 2>&5
5596 ac_status=$?
5597 echo "$as_me:5601: \$? = $ac_status" >&5
5598 (exit $ac_status); } &&
5599 { ac_try='test -s conftest$ac_exeext'
5600 { (eval echo "$as_me:5604: \"$ac_try\"") >&5
5601 (eval $ac_try) 2>&5
5602 ac_status=$?
5603 echo "$as_me:5607: \$? = $ac_status" >&5
5604 (exit $ac_status); }; }; then
5605 ac_cv_func_dlopen=yes
5606 else
5607 echo "$as_me: failed program was:" >&5
5608 cat conftest.$ac_ext >&5
5609 ac_cv_func_dlopen=no
5610 fi
5611 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5612 fi
5613 echo "$as_me:5617: result: $ac_cv_func_dlopen" >&5
5614 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
5615 if test $ac_cv_func_dlopen = yes; then
5616 lt_cv_dlopen="dlopen"
5617 else
5618 echo "$as_me:5622: checking for shl_load" >&5
5619 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
5620 if test "${ac_cv_func_shl_load+set}" = set; then
5621 echo $ECHO_N "(cached) $ECHO_C" >&6
5622 else
5623 cat >conftest.$ac_ext <<_ACEOF
5624 #line 5628 "configure"
5625 #include "confdefs.h"
5626 /* System header to define __stub macros and hopefully few prototypes,
5627 which can conflict with char shl_load (); below. */
5628 #include <assert.h>
5629 /* Override any gcc2 internal prototype to avoid an error. */
5630 #ifdef __cplusplus
5631 extern "C"
5632 #endif
5633 /* We use char because int might match the return type of a gcc2
5634 builtin and then its argument prototype would still apply. */
5635 char shl_load ();
5636 char (*f) ();
5637
5638 int
5639 main ()
5640 {
5641 /* The GNU C library defines this for functions which it implements
5642 to always fail with ENOSYS. Some functions are actually named
5643 something starting with __ and the normal name is an alias. */
5644 #if defined (__stub_shl_load) || defined (__stub___shl_load)
5645 choke me
5646 #else
5647 f = shl_load;
5648 #endif
5649
5650 ;
5651 return 0;
5652 }
5653 _ACEOF
5654 rm -f conftest.$ac_objext conftest$ac_exeext
5655 if { (eval echo "$as_me:5659: \"$ac_link\"") >&5
5656 (eval $ac_link) 2>&5
5657 ac_status=$?
5658 echo "$as_me:5662: \$? = $ac_status" >&5
5659 (exit $ac_status); } &&
5660 { ac_try='test -s conftest$ac_exeext'
5661 { (eval echo "$as_me:5665: \"$ac_try\"") >&5
5662 (eval $ac_try) 2>&5
5663 ac_status=$?
5664 echo "$as_me:5668: \$? = $ac_status" >&5
5665 (exit $ac_status); }; }; then
5666 ac_cv_func_shl_load=yes
5667 else
5668 echo "$as_me: failed program was:" >&5
5669 cat conftest.$ac_ext >&5
5670 ac_cv_func_shl_load=no
5671 fi
5672 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5673 fi
5674 echo "$as_me:5678: result: $ac_cv_func_shl_load" >&5
5675 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
5676 if test $ac_cv_func_shl_load = yes; then
5677 lt_cv_dlopen="shl_load"
5678 else
5679 echo "$as_me:5683: checking for dlopen in -lsvld" >&5
5680 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
5681 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
5682 echo $ECHO_N "(cached) $ECHO_C" >&6
5683 else
5684 ac_check_lib_save_LIBS=$LIBS
5685 LIBS="-lsvld $LIBS"
5686 cat >conftest.$ac_ext <<_ACEOF
5687 #line 5691 "configure"
5688 #include "confdefs.h"
5689
5690 /* Override any gcc2 internal prototype to avoid an error. */
5691 #ifdef __cplusplus
5692 extern "C"
5693 #endif
5694 /* We use char because int might match the return type of a gcc2
5695 builtin and then its argument prototype would still apply. */
5696 char dlopen ();
5697 int
5698 main ()
5699 {
5700 dlopen ();
5701 ;
5702 return 0;
5703 }
5704 _ACEOF
5705 rm -f conftest.$ac_objext conftest$ac_exeext
5706 if { (eval echo "$as_me:5710: \"$ac_link\"") >&5
5707 (eval $ac_link) 2>&5
5708 ac_status=$?
5709 echo "$as_me:5713: \$? = $ac_status" >&5
5710 (exit $ac_status); } &&
5711 { ac_try='test -s conftest$ac_exeext'
5712 { (eval echo "$as_me:5716: \"$ac_try\"") >&5
5713 (eval $ac_try) 2>&5
5714 ac_status=$?
5715 echo "$as_me:5719: \$? = $ac_status" >&5
5716 (exit $ac_status); }; }; then
5717 ac_cv_lib_svld_dlopen=yes
5718 else
5719 echo "$as_me: failed program was:" >&5
5720 cat conftest.$ac_ext >&5
5721 ac_cv_lib_svld_dlopen=no
5722 fi
5723 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5724 LIBS=$ac_check_lib_save_LIBS
5725 fi
5726 echo "$as_me:5730: result: $ac_cv_lib_svld_dlopen" >&5
5727 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
5728 if test $ac_cv_lib_svld_dlopen = yes; then
5729 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
5730 else
5731 echo "$as_me:5735: checking for shl_load in -ldld" >&5
5732 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
5733 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
5734 echo $ECHO_N "(cached) $ECHO_C" >&6
5735 else
5736 ac_check_lib_save_LIBS=$LIBS
5737 LIBS="-ldld $LIBS"
5738 cat >conftest.$ac_ext <<_ACEOF
5739 #line 5743 "configure"
5740 #include "confdefs.h"
5741
5742 /* Override any gcc2 internal prototype to avoid an error. */
5743 #ifdef __cplusplus
5744 extern "C"
5745 #endif
5746 /* We use char because int might match the return type of a gcc2
5747 builtin and then its argument prototype would still apply. */
5748 char shl_load ();
5749 int
5750 main ()
5751 {
5752 shl_load ();
5753 ;
5754 return 0;
5755 }
5756 _ACEOF
5757 rm -f conftest.$ac_objext conftest$ac_exeext
5758 if { (eval echo "$as_me:5762: \"$ac_link\"") >&5
5759 (eval $ac_link) 2>&5
5760 ac_status=$?
5761 echo "$as_me:5765: \$? = $ac_status" >&5
5762 (exit $ac_status); } &&
5763 { ac_try='test -s conftest$ac_exeext'
5764 { (eval echo "$as_me:5768: \"$ac_try\"") >&5
5765 (eval $ac_try) 2>&5
5766 ac_status=$?
5767 echo "$as_me:5771: \$? = $ac_status" >&5
5768 (exit $ac_status); }; }; then
5769 ac_cv_lib_dld_shl_load=yes
5770 else
5771 echo "$as_me: failed program was:" >&5
5772 cat conftest.$ac_ext >&5
5773 ac_cv_lib_dld_shl_load=no
5774 fi
5775 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5776 LIBS=$ac_check_lib_save_LIBS
5777 fi
5778 echo "$as_me:5782: result: $ac_cv_lib_dld_shl_load" >&5
5779 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
5780 if test $ac_cv_lib_dld_shl_load = yes; then
5781 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
5782 fi
5783
5784 fi
5785
5786 fi
5787
5788 fi
5789
5790 fi
5791
5792 ;;
5793 esac
5794
5795 if test "x$lt_cv_dlopen" != xno; then
5796 enable_dlopen=yes
5797 else
5798 enable_dlopen=no
5799 fi
5800
5801 case $lt_cv_dlopen in
5802 dlopen)
5803 save_CPPFLAGS="$CPPFLAGS"
5804 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
5805
5806 save_LDFLAGS="$LDFLAGS"
5807 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
5808
5809 save_LIBS="$LIBS"
5810 LIBS="$lt_cv_dlopen_libs $LIBS"
5811
5812 echo "$as_me:5816: checking whether a program can dlopen itself" >&5
5813 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
5814 if test "${lt_cv_dlopen_self+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5816 else
5817 if test "$cross_compiling" = yes; then :
5818 lt_cv_dlopen_self=cross
5819 else
5820 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5821 lt_status=$lt_dlunknown
5822 cat > conftest.$ac_ext <<EOF
5823 #line 5827 "configure"
5824 #include "confdefs.h"
5825
5826 #if HAVE_DLFCN_H
5827 #include <dlfcn.h>
5828 #endif
5829
5830 #include <stdio.h>
5831
5832 #ifdef RTLD_GLOBAL
5833 # define LT_DLGLOBAL RTLD_GLOBAL
5834 #else
5835 # ifdef DL_GLOBAL
5836 # define LT_DLGLOBAL DL_GLOBAL
5837 # else
5838 # define LT_DLGLOBAL 0
5839 # endif
5840 #endif
5841
5842 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5843 find out it does not work in some platform. */
5844 #ifndef LT_DLLAZY_OR_NOW
5845 # ifdef RTLD_LAZY
5846 # define LT_DLLAZY_OR_NOW RTLD_LAZY
5847 # else
5848 # ifdef DL_LAZY
5849 # define LT_DLLAZY_OR_NOW DL_LAZY
5850 # else
5851 # ifdef RTLD_NOW
5852 # define LT_DLLAZY_OR_NOW RTLD_NOW
5853 # else
5854 # ifdef DL_NOW
5855 # define LT_DLLAZY_OR_NOW DL_NOW
5856 # else
5857 # define LT_DLLAZY_OR_NOW 0
5858 # endif
5859 # endif
5860 # endif
5861 # endif
5862 #endif
5863
5864 #ifdef __cplusplus
5865 extern "C" void exit (int);
5866 #endif
5867
5868 void fnord() { int i=42;}
5869 int main ()
5870 {
5871 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5872 int status = $lt_dlunknown;
5873
5874 if (self)
5875 {
5876 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
5877 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5878 /* dlclose (self); */
5879 }
5880
5881 exit (status);
5882 }
5883 EOF
5884 if { (eval echo "$as_me:5888: \"$ac_link\"") >&5
5885 (eval $ac_link) 2>&5
5886 ac_status=$?
5887 echo "$as_me:5891: \$? = $ac_status" >&5
5888 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
5889 (./conftest; exit; ) 2>/dev/null
5890 lt_status=$?
5891 case x$lt_status in
5892 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
5893 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
5894 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
5895 esac
5896 else :
5897 # compilation failed
5898 lt_cv_dlopen_self=no
5899 fi
5900 fi
5901 rm -fr conftest*
5902
5903 fi
5904 echo "$as_me:5908: result: $lt_cv_dlopen_self" >&5
5905 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
5906
5907 if test "x$lt_cv_dlopen_self" = xyes; then
5908 LDFLAGS="$LDFLAGS $link_static_flag"
5909 echo "$as_me:5913: checking whether a statically linked program can dlopen itself" >&5
5910 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
5911 if test "${lt_cv_dlopen_self_static+set}" = set; then
5912 echo $ECHO_N "(cached) $ECHO_C" >&6
5913 else
5914 if test "$cross_compiling" = yes; then :
5915 lt_cv_dlopen_self_static=cross
5916 else
5917 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
5918 lt_status=$lt_dlunknown
5919 cat > conftest.$ac_ext <<EOF
5920 #line 5924 "configure"
5921 #include "confdefs.h"
5922
5923 #if HAVE_DLFCN_H
5924 #include <dlfcn.h>
5925 #endif
5926
5927 #include <stdio.h>
5928
5929 #ifdef RTLD_GLOBAL
5930 # define LT_DLGLOBAL RTLD_GLOBAL
5931 #else
5932 # ifdef DL_GLOBAL
5933 # define LT_DLGLOBAL DL_GLOBAL
5934 # else
5935 # define LT_DLGLOBAL 0
5936 # endif
5937 #endif
5938
5939 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
5940 find out it does not work in some platform. */
5941 #ifndef LT_DLLAZY_OR_NOW
5942 # ifdef RTLD_LAZY
5943 # define LT_DLLAZY_OR_NOW RTLD_LAZY
5944 # else
5945 # ifdef DL_LAZY
5946 # define LT_DLLAZY_OR_NOW DL_LAZY
5947 # else
5948 # ifdef RTLD_NOW
5949 # define LT_DLLAZY_OR_NOW RTLD_NOW
5950 # else
5951 # ifdef DL_NOW
5952 # define LT_DLLAZY_OR_NOW DL_NOW
5953 # else
5954 # define LT_DLLAZY_OR_NOW 0
5955 # endif
5956 # endif
5957 # endif
5958 # endif
5959 #endif
5960
5961 #ifdef __cplusplus
5962 extern "C" void exit (int);
5963 #endif
5964
5965 void fnord() { int i=42;}
5966 int main ()
5967 {
5968 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
5969 int status = $lt_dlunknown;
5970
5971 if (self)
5972 {
5973 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
5974 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
5975 /* dlclose (self); */
5976 }
5977
5978 exit (status);
5979 }
5980 EOF
5981 if { (eval echo "$as_me:5985: \"$ac_link\"") >&5
5982 (eval $ac_link) 2>&5
5983 ac_status=$?
5984 echo "$as_me:5988: \$? = $ac_status" >&5
5985 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
5986 (./conftest; exit; ) 2>/dev/null
5987 lt_status=$?
5988 case x$lt_status in
5989 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
5990 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
5991 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
5992 esac
5993 else :
5994 # compilation failed
5995 lt_cv_dlopen_self_static=no
5996 fi
5997 fi
5998 rm -fr conftest*
5999
6000 fi
6001 echo "$as_me:6005: result: $lt_cv_dlopen_self_static" >&5
6002 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6003 fi
6004
6005 CPPFLAGS="$save_CPPFLAGS"
6006 LDFLAGS="$save_LDFLAGS"
6007 LIBS="$save_LIBS"
6008 ;;
6009 esac
6010
6011 case $lt_cv_dlopen_self in
6012 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6013 *) enable_dlopen_self=unknown ;;
6014 esac
6015
6016 case $lt_cv_dlopen_self_static in
6017 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6018 *) enable_dlopen_self_static=unknown ;;
6019 esac
6020 fi
6021
6022 ## FIXME: this should be a separate macro
6023 ##
6024 if test "$enable_shared" = yes && test "$GCC" = yes; then
6025 case $archive_cmds in
6026 *'~'*)
6027 # FIXME: we may have to deal with multi-command sequences.
6028 ;;
6029 '$CC '*)
6030 # Test whether the compiler implicitly links with -lc since on some
6031 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6032 # to ld, don't add -lc before -lgcc.
6033 echo "$as_me:6037: checking whether -lc should be explicitly linked in" >&5
6034 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6035 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6036 echo $ECHO_N "(cached) $ECHO_C" >&6
6037 else
6038 $rm conftest*
6039 echo 'static int dummy;' > conftest.$ac_ext
6040
6041 if { (eval echo "$as_me:6045: \"$ac_compile\"") >&5
6042 (eval $ac_compile) 2>&5
6043 ac_status=$?
6044 echo "$as_me:6048: \$? = $ac_status" >&5
6045 (exit $ac_status); }; then
6046 soname=conftest
6047 lib=conftest
6048 libobjs=conftest.$ac_objext
6049 deplibs=
6050 wl=$lt_cv_prog_cc_wl
6051 compiler_flags=-v
6052 linker_flags=-v
6053 verstring=
6054 output_objdir=.
6055 libname=conftest
6056 save_allow_undefined_flag=$allow_undefined_flag
6057 allow_undefined_flag=
6058 if { (eval echo "$as_me:6062: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6059 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6060 ac_status=$?
6061 echo "$as_me:6065: \$? = $ac_status" >&5
6062 (exit $ac_status); }
6063 then
6064 lt_cv_archive_cmds_need_lc=no
6065 else
6066 lt_cv_archive_cmds_need_lc=yes
6067 fi
6068 allow_undefined_flag=$save_allow_undefined_flag
6069 else
6070 cat conftest.err 1>&5
6071 fi
6072 fi
6073
6074 echo "$as_me:6078: result: $lt_cv_archive_cmds_need_lc" >&5
6075 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6076 ;;
6077 esac
6078 fi
6079 need_lc=${lt_cv_archive_cmds_need_lc-yes}
6080 ##
6081 ## END FIXME
6082
6083 ## FIXME: this should be a separate macro
6084 ##
6085 # The second clause should only fire when bootstrapping the
6086 # libtool distribution, otherwise you forgot to ship ltmain.sh
6087 # with your package, and you will get complaints that there are
6088 # no rules to generate ltmain.sh.
6089 if test -f "$ltmain"; then
6090 :
6091 else
6092 # If there is no Makefile yet, we rely on a make rule to execute
6093 # `config.status --recheck' to rerun these tests and create the
6094 # libtool script then.
6095 test -f Makefile && make "$ltmain"
6096 fi
6097
6098 if test -f "$ltmain"; then
6099 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6100 $rm -f "${ofile}T"
6101
6102 echo creating $ofile
6103
6104 # Now quote all the things that may contain metacharacters while being
6105 # careful not to overquote the AC_SUBSTed values. We take copies of the
6106 # variables and quote the copies for generation of the libtool script.
6107 for var in echo old_CC old_CFLAGS \
6108 AR AR_FLAGS CC LD LN_S NM SHELL \
6109 reload_flag reload_cmds wl \
6110 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6111 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6112 library_names_spec soname_spec \
6113 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6114 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6115 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6116 old_striplib striplib file_magic_cmd export_symbols_cmds \
6117 deplibs_check_method allow_undefined_flag no_undefined_flag \
6118 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6119 hardcode_libdir_flag_spec hardcode_libdir_separator \
6120 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6121 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6122
6123 case $var in
6124 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6125 old_postinstall_cmds | old_postuninstall_cmds | \
6126 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6127 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6128 postinstall_cmds | postuninstall_cmds | \
6129 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6130 # Double-quote double-evaled strings.
6131 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6132 ;;
6133 *)
6134 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6135 ;;
6136 esac
6137 done
6138
6139 cat <<__EOF__ > "${ofile}T"
6140 #! $SHELL
6141
6142 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6143 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6144 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
6145 #
6146 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
6147 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6148 #
6149 # This program is free software; you can redistribute it and/or modify
6150 # it under the terms of the GNU General Public License as published by
6151 # the Free Software Foundation; either version 2 of the License, or
6152 # (at your option) any later version.
6153 #
6154 # This program is distributed in the hope that it will be useful, but
6155 # WITHOUT ANY WARRANTY; without even the implied warranty of
6156 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6157 # General Public License for more details.
6158 #
6159 # You should have received a copy of the GNU General Public License
6160 # along with this program; if not, write to the Free Software
6161 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6162 #
6163 # As a special exception to the GNU General Public License, if you
6164 # distribute this file as part of a program that contains a
6165 # configuration script generated by Autoconf, you may include it under
6166 # the same distribution terms that you use for the rest of that program.
6167
6168 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
6169 Xsed="sed -e s/^X//"
6170
6171 # The HP-UX ksh and POSIX shell print the target directory to stdout
6172 # if CDPATH is set.
6173 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6174
6175 # ### BEGIN LIBTOOL CONFIG
6176
6177 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6178
6179 # Shell to use when invoking shell scripts.
6180 SHELL=$lt_SHELL
6181
6182 # Whether or not to build shared libraries.
6183 build_libtool_libs=$enable_shared
6184
6185 # Whether or not to add -lc for building shared libraries.
6186 build_libtool_need_lc=$need_lc
6187
6188 # Whether or not to build static libraries.
6189 build_old_libs=$enable_static
6190
6191 # Whether or not to optimize for fast installation.
6192 fast_install=$enable_fast_install
6193
6194 # The host system.
6195 host_alias=$host_alias
6196 host=$host
6197
6198 # An echo program that does not interpret backslashes.
6199 echo=$lt_echo
6200
6201 # The archiver.
6202 AR=$lt_AR
6203 AR_FLAGS=$lt_AR_FLAGS
6204
6205 # The default C compiler.
6206 CC=$lt_CC
6207
6208 # Is the compiler the GNU C compiler?
6209 with_gcc=$GCC
6210
6211 # The linker used to build libraries.
6212 LD=$lt_LD
6213
6214 # Whether we need hard or soft links.
6215 LN_S=$lt_LN_S
6216
6217 # A BSD-compatible nm program.
6218 NM=$lt_NM
6219
6220 # A symbol stripping program
6221 STRIP=$STRIP
6222
6223 # Used to examine libraries when file_magic_cmd begins "file"
6224 MAGIC_CMD=$MAGIC_CMD
6225
6226 # Used on cygwin: DLL creation program.
6227 DLLTOOL="$DLLTOOL"
6228
6229 # Used on cygwin: object dumper.
6230 OBJDUMP="$OBJDUMP"
6231
6232 # Used on cygwin: assembler.
6233 AS="$AS"
6234
6235 # The name of the directory that contains temporary libtool files.
6236 objdir=$objdir
6237
6238 # How to create reloadable object files.
6239 reload_flag=$lt_reload_flag
6240 reload_cmds=$lt_reload_cmds
6241
6242 # How to pass a linker flag through the compiler.
6243 wl=$lt_wl
6244
6245 # Object file suffix (normally "o").
6246 objext="$ac_objext"
6247
6248 # Old archive suffix (normally "a").
6249 libext="$libext"
6250
6251 # Executable file suffix (normally "").
6252 exeext="$exeext"
6253
6254 # Additional compiler flags for building library objects.
6255 pic_flag=$lt_pic_flag
6256 pic_mode=$pic_mode
6257
6258 # Does compiler simultaneously support -c and -o options?
6259 compiler_c_o=$lt_compiler_c_o
6260
6261 # Can we write directly to a .lo ?
6262 compiler_o_lo=$lt_compiler_o_lo
6263
6264 # Must we lock files when doing compilation ?
6265 need_locks=$lt_need_locks
6266
6267 # Do we need the lib prefix for modules?
6268 need_lib_prefix=$need_lib_prefix
6269
6270 # Do we need a version for libraries?
6271 need_version=$need_version
6272
6273 # Whether dlopen is supported.
6274 dlopen_support=$enable_dlopen
6275
6276 # Whether dlopen of programs is supported.
6277 dlopen_self=$enable_dlopen_self
6278
6279 # Whether dlopen of statically linked programs is supported.
6280 dlopen_self_static=$enable_dlopen_self_static
6281
6282 # Compiler flag to prevent dynamic linking.
6283 link_static_flag=$lt_link_static_flag
6284
6285 # Compiler flag to turn off builtin functions.
6286 no_builtin_flag=$lt_no_builtin_flag
6287
6288 # Compiler flag to allow reflexive dlopens.
6289 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6290
6291 # Compiler flag to generate shared objects directly from archives.
6292 whole_archive_flag_spec=$lt_whole_archive_flag_spec
6293
6294 # Compiler flag to generate thread-safe objects.
6295 thread_safe_flag_spec=$lt_thread_safe_flag_spec
6296
6297 # Library versioning type.
6298 version_type=$version_type
6299
6300 # Format of library name prefix.
6301 libname_spec=$lt_libname_spec
6302
6303 # List of archive names. First name is the real one, the rest are links.
6304 # The last name is the one that the linker finds with -lNAME.
6305 library_names_spec=$lt_library_names_spec
6306
6307 # The coded name of the library, if different from the real name.
6308 soname_spec=$lt_soname_spec
6309
6310 # Commands used to build and install an old-style archive.
6311 RANLIB=$lt_RANLIB
6312 old_archive_cmds=$lt_old_archive_cmds
6313 old_postinstall_cmds=$lt_old_postinstall_cmds
6314 old_postuninstall_cmds=$lt_old_postuninstall_cmds
6315
6316 # Create an old-style archive from a shared archive.
6317 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
6318
6319 # Create a temporary old-style archive to link instead of a shared archive.
6320 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
6321
6322 # Commands used to build and install a shared archive.
6323 archive_cmds=$lt_archive_cmds
6324 archive_expsym_cmds=$lt_archive_expsym_cmds
6325 postinstall_cmds=$lt_postinstall_cmds
6326 postuninstall_cmds=$lt_postuninstall_cmds
6327
6328 # Commands to strip libraries.
6329 old_striplib=$lt_old_striplib
6330 striplib=$lt_striplib
6331
6332 # Method to check whether dependent libraries are shared objects.
6333 deplibs_check_method=$lt_deplibs_check_method
6334
6335 # Command to use when deplibs_check_method == file_magic.
6336 file_magic_cmd=$lt_file_magic_cmd
6337
6338 # Flag that allows shared libraries with undefined symbols to be built.
6339 allow_undefined_flag=$lt_allow_undefined_flag
6340
6341 # Flag that forces no undefined symbols.
6342 no_undefined_flag=$lt_no_undefined_flag
6343
6344 # Commands used to finish a libtool library installation in a directory.
6345 finish_cmds=$lt_finish_cmds
6346
6347 # Same as above, but a single script fragment to be evaled but not shown.
6348 finish_eval=$lt_finish_eval
6349
6350 # Take the output of nm and produce a listing of raw symbols and C names.
6351 global_symbol_pipe=$lt_global_symbol_pipe
6352
6353 # Transform the output of nm in a proper C declaration
6354 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
6355
6356 # This is the shared library runtime path variable.
6357 runpath_var=$runpath_var
6358
6359 # This is the shared library path variable.
6360 shlibpath_var=$shlibpath_var
6361
6362 # Is shlibpath searched before the hard-coded library search path?
6363 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
6364
6365 # How to hardcode a shared library path into an executable.
6366 hardcode_action=$hardcode_action
6367
6368 # Whether we should hardcode library paths into libraries.
6369 hardcode_into_libs=$hardcode_into_libs
6370
6371 # Flag to hardcode \$libdir into a binary during linking.
6372 # This must work even if \$libdir does not exist.
6373 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
6374
6375 # Whether we need a single -rpath flag with a separated argument.
6376 hardcode_libdir_separator=$lt_hardcode_libdir_separator
6377
6378 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
6379 # resulting binary.
6380 hardcode_direct=$hardcode_direct
6381
6382 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
6383 # resulting binary.
6384 hardcode_minus_L=$hardcode_minus_L
6385
6386 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
6387 # the resulting binary.
6388 hardcode_shlibpath_var=$hardcode_shlibpath_var
6389
6390 # Variables whose values should be saved in libtool wrapper scripts and
6391 # restored at relink time.
6392 variables_saved_for_relink="$variables_saved_for_relink"
6393
6394 # Whether libtool must link a program against all its dependency libraries.
6395 link_all_deplibs=$link_all_deplibs
6396
6397 # Compile-time system search path for libraries
6398 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
6399
6400 # Run-time system search path for libraries
6401 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
6402
6403 # Fix the shell variable \$srcfile for the compiler.
6404 fix_srcfile_path="$fix_srcfile_path"
6405
6406 # Set to yes if exported symbols are required.
6407 always_export_symbols=$always_export_symbols
6408
6409 # The commands to list exported symbols.
6410 export_symbols_cmds=$lt_export_symbols_cmds
6411
6412 # The commands to extract the exported symbol list from a shared archive.
6413 extract_expsyms_cmds=$lt_extract_expsyms_cmds
6414
6415 # Symbols that should not be listed in the preloaded symbols.
6416 exclude_expsyms=$lt_exclude_expsyms
6417
6418 # Symbols that must always be exported.
6419 include_expsyms=$lt_include_expsyms
6420
6421 # ### END LIBTOOL CONFIG
6422
6423 __EOF__
6424
6425 case $host_os in
6426 aix3*)
6427 cat <<\EOF >> "${ofile}T"
6428
6429 # AIX sometimes has problems with the GCC collect2 program. For some
6430 # reason, if we set the COLLECT_NAMES environment variable, the problems
6431 # vanish in a puff of smoke.
6432 if test "X${COLLECT_NAMES+set}" != Xset; then
6433 COLLECT_NAMES=
6434 export COLLECT_NAMES
6435 fi
6436 EOF
6437 ;;
6438 esac
6439
6440 case $host_os in
6441 cygwin* | mingw* | pw32* | os2*)
6442 cat <<'EOF' >> "${ofile}T"
6443 # This is a source program that is used to create dlls on Windows
6444 # Don't remove nor modify the starting and closing comments
6445 # /* ltdll.c starts here */
6446 # #define WIN32_LEAN_AND_MEAN
6447 # #include <windows.h>
6448 # #undef WIN32_LEAN_AND_MEAN
6449 # #include <stdio.h>
6450 #
6451 # #ifndef __CYGWIN__
6452 # # ifdef __CYGWIN32__
6453 # # define __CYGWIN__ __CYGWIN32__
6454 # # endif
6455 # #endif
6456 #
6457 # #ifdef __cplusplus
6458 # extern "C" {
6459 # #endif
6460 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6461 # #ifdef __cplusplus
6462 # }
6463 # #endif
6464 #
6465 # #ifdef __CYGWIN__
6466 # #include <cygwin/cygwin_dll.h>
6467 # DECLARE_CYGWIN_DLL( DllMain );
6468 # #endif
6469 # HINSTANCE __hDllInstance_base;
6470 #
6471 # BOOL APIENTRY
6472 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6473 # {
6474 # __hDllInstance_base = hInst;
6475 # return TRUE;
6476 # }
6477 # /* ltdll.c ends here */
6478 # This is a source program that is used to create import libraries
6479 # on Windows for dlls which lack them. Don't remove nor modify the
6480 # starting and closing comments
6481 # /* impgen.c starts here */
6482 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
6483 #
6484 # This file is part of GNU libtool.
6485 #
6486 # This program is free software; you can redistribute it and/or modify
6487 # it under the terms of the GNU General Public License as published by
6488 # the Free Software Foundation; either version 2 of the License, or
6489 # (at your option) any later version.
6490 #
6491 # This program is distributed in the hope that it will be useful,
6492 # but WITHOUT ANY WARRANTY; without even the implied warranty of
6493 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
6494 # GNU General Public License for more details.
6495 #
6496 # You should have received a copy of the GNU General Public License
6497 # along with this program; if not, write to the Free Software
6498 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6499 # */
6500 #
6501 # #include <stdio.h> /* for printf() */
6502 # #include <unistd.h> /* for open(), lseek(), read() */
6503 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
6504 # #include <string.h> /* for strdup() */
6505 #
6506 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
6507 # #ifndef O_BINARY
6508 # #define O_BINARY 0
6509 # #endif
6510 #
6511 # static unsigned int
6512 # pe_get16 (fd, offset)
6513 # int fd;
6514 # int offset;
6515 # {
6516 # unsigned char b[2];
6517 # lseek (fd, offset, SEEK_SET);
6518 # read (fd, b, 2);
6519 # return b[0] + (b[1]<<8);
6520 # }
6521 #
6522 # static unsigned int
6523 # pe_get32 (fd, offset)
6524 # int fd;
6525 # int offset;
6526 # {
6527 # unsigned char b[4];
6528 # lseek (fd, offset, SEEK_SET);
6529 # read (fd, b, 4);
6530 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6531 # }
6532 #
6533 # static unsigned int
6534 # pe_as32 (ptr)
6535 # void *ptr;
6536 # {
6537 # unsigned char *b = ptr;
6538 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
6539 # }
6540 #
6541 # int
6542 # main (argc, argv)
6543 # int argc;
6544 # char *argv[];
6545 # {
6546 # int dll;
6547 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
6548 # unsigned long export_rva, export_size, nsections, secptr, expptr;
6549 # unsigned long name_rvas, nexp;
6550 # unsigned char *expdata, *erva;
6551 # char *filename, *dll_name;
6552 #
6553 # filename = argv[1];
6554 #
6555 # dll = open(filename, O_RDONLY|O_BINARY);
6556 # if (dll < 1)
6557 # return 1;
6558 #
6559 # dll_name = filename;
6560 #
6561 # for (i=0; filename[i]; i++)
6562 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
6563 # dll_name = filename + i +1;
6564 #
6565 # pe_header_offset = pe_get32 (dll, 0x3c);
6566 # opthdr_ofs = pe_header_offset + 4 + 20;
6567 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
6568 #
6569 # if (num_entries < 1) /* no exports */
6570 # return 1;
6571 #
6572 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
6573 # export_size = pe_get32 (dll, opthdr_ofs + 100);
6574 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
6575 # secptr = (pe_header_offset + 4 + 20 +
6576 # pe_get16 (dll, pe_header_offset + 4 + 16));
6577 #
6578 # expptr = 0;
6579 # for (i = 0; i < nsections; i++)
6580 # {
6581 # char sname[8];
6582 # unsigned long secptr1 = secptr + 40 * i;
6583 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
6584 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
6585 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
6586 # lseek(dll, secptr1, SEEK_SET);
6587 # read(dll, sname, 8);
6588 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
6589 # {
6590 # expptr = fptr + (export_rva - vaddr);
6591 # if (export_rva + export_size > vaddr + vsize)
6592 # export_size = vsize - (export_rva - vaddr);
6593 # break;
6594 # }
6595 # }
6596 #