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

Contents of /code/trunk/configure

Parent Directory Parent Directory | Revision Log Revision Log


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