]> git.saurik.com Git - wxWidgets.git/blob - src/expat/configure
1. Yet another unit test for new stirng stuff
[wxWidgets.git] / src / expat / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
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 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS=" $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243 # Find the correct PATH separator. Usually this is `:', but
244 # DJGPP uses `;' like DOS.
245 if test "X${PATH_SEPARATOR+set}" != Xset; then
246 UNAME=${UNAME-`uname 2>/dev/null`}
247 case X$UNAME in
248 *-DOS) lt_cv_sys_path_separator=';' ;;
249 *) lt_cv_sys_path_separator=':' ;;
250 esac
251 PATH_SEPARATOR=$lt_cv_sys_path_separator
252 fi
253
254
255 # Check that we are running under the correct shell.
256 SHELL=${CONFIG_SHELL-/bin/sh}
257
258 case X$ECHO in
259 X*--fallback-echo)
260 # Remove one level of quotation (which was required for Make).
261 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
262 ;;
263 esac
264
265 echo=${ECHO-echo}
266 if test "X$1" = X--no-reexec; then
267 # Discard the --no-reexec flag, and continue.
268 shift
269 elif test "X$1" = X--fallback-echo; then
270 # Avoid inline document here, it may be left over
271 :
272 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
273 # Yippee, $echo works!
274 :
275 else
276 # Restart under the correct shell.
277 exec $SHELL "$0" --no-reexec ${1+"$@"}
278 fi
279
280 if test "X$1" = X--fallback-echo; then
281 # used as fallback echo
282 shift
283 cat <<EOF
284
285 EOF
286 exit 0
287 fi
288
289 # The HP-UX ksh and POSIX shell print the target directory to stdout
290 # if CDPATH is set.
291 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
292
293 if test -z "$ECHO"; then
294 if test "X${echo_test_string+set}" != Xset; then
295 # find a string as large as possible, as long as the shell can cope with it
296 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
297 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
298 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
299 echo_test_string="`eval $cmd`" &&
300 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
301 then
302 break
303 fi
304 done
305 fi
306
307 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
308 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
309 test "X$echo_testing_string" = "X$echo_test_string"; then
310 :
311 else
312 # The Solaris, AIX, and Digital Unix default echo programs unquote
313 # backslashes. This makes it impossible to quote backslashes using
314 # echo "$something" | sed 's/\\/\\\\/g'
315 #
316 # So, first we look for a working echo in the user's PATH.
317
318 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
319 for dir in $PATH /usr/ucb; do
320 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323 test "X$echo_testing_string" = "X$echo_test_string"; then
324 echo="$dir/echo"
325 break
326 fi
327 done
328 IFS="$save_ifs"
329
330 if test "X$echo" = Xecho; then
331 # We didn't find a better echo, so look for alternatives.
332 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334 test "X$echo_testing_string" = "X$echo_test_string"; then
335 # This shell has a builtin print -r that does the trick.
336 echo='print -r'
337 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338 test "X$CONFIG_SHELL" != X/bin/ksh; then
339 # If we have ksh, try running configure again with it.
340 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341 export ORIGINAL_CONFIG_SHELL
342 CONFIG_SHELL=/bin/ksh
343 export CONFIG_SHELL
344 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345 else
346 # Try using printf.
347 echo='printf %s\n'
348 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350 test "X$echo_testing_string" = "X$echo_test_string"; then
351 # Cool, printf works
352 :
353 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358 export CONFIG_SHELL
359 SHELL="$CONFIG_SHELL"
360 export SHELL
361 echo="$CONFIG_SHELL $0 --fallback-echo"
362 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363 test "X$echo_testing_string" = 'X\t' &&
364 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365 test "X$echo_testing_string" = "X$echo_test_string"; then
366 echo="$CONFIG_SHELL $0 --fallback-echo"
367 else
368 # maybe with a smaller string...
369 prev=:
370
371 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373 then
374 break
375 fi
376 prev="$cmd"
377 done
378
379 if test "$prev" != 'sed 50q "$0"'; then
380 echo_test_string=`eval $prev`
381 export echo_test_string
382 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383 else
384 # Oops. We lost completely, so just stick with echo.
385 echo=echo
386 fi
387 fi
388 fi
389 fi
390 fi
391 fi
392
393 # Copy echo and quote the copy suitably for passing to libtool from
394 # the Makefile, instead of quoting the original, which is used later.
395 ECHO=$echo
396 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398 fi
399
400
401
402 # Name of the host.
403 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
404 # so uname gets run too.
405 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
406
407 exec 6>&1
408
409 #
410 # Initializations.
411 #
412 ac_default_prefix=/usr/local
413 ac_config_libobj_dir=.
414 cross_compiling=no
415 subdirs=
416 MFLAGS=
417 MAKEFLAGS=
418 SHELL=${CONFIG_SHELL-/bin/sh}
419
420 # Maximum number of lines to put in a shell here document.
421 # This variable seems obsolete. It should probably be removed, and
422 # only ac_max_sed_lines should be used.
423 : ${ac_max_here_lines=38}
424
425 # Identity of this package.
426 PACKAGE_NAME=
427 PACKAGE_TARNAME=
428 PACKAGE_VERSION=
429 PACKAGE_STRING=
430 PACKAGE_BUGREPORT=
431
432 ac_unique_file="expat"
433 ac_unique_file="Makefile.in"
434 # Factoring default headers for most tests.
435 ac_includes_default="\
436 #include <stdio.h>
437 #if HAVE_SYS_TYPES_H
438 # include <sys/types.h>
439 #endif
440 #if HAVE_SYS_STAT_H
441 # include <sys/stat.h>
442 #endif
443 #if STDC_HEADERS
444 # include <stdlib.h>
445 # include <stddef.h>
446 #else
447 # if HAVE_STDLIB_H
448 # include <stdlib.h>
449 # endif
450 #endif
451 #if HAVE_STRING_H
452 # if !STDC_HEADERS && HAVE_MEMORY_H
453 # include <memory.h>
454 # endif
455 # include <string.h>
456 #endif
457 #if HAVE_STRINGS_H
458 # include <strings.h>
459 #endif
460 #if HAVE_INTTYPES_H
461 # include <inttypes.h>
462 #else
463 # if HAVE_STDINT_H
464 # include <stdint.h>
465 # endif
466 #endif
467 #if HAVE_UNISTD_H
468 # include <unistd.h>
469 #endif"
470
471 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LN_S ECHO RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP EGREP LIBTOOL LIBCURRENT LIBREVISION LIBAGE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LIBOBJS FILEMAP LTLIBOBJS'
472 ac_subst_files=''
473
474 # Initialize some variables set by options.
475 ac_init_help=
476 ac_init_version=false
477 # The variables have the same names as the options, with
478 # dashes changed to underlines.
479 cache_file=/dev/null
480 exec_prefix=NONE
481 no_create=
482 no_recursion=
483 prefix=NONE
484 program_prefix=NONE
485 program_suffix=NONE
486 program_transform_name=s,x,x,
487 silent=
488 site=
489 srcdir=
490 verbose=
491 x_includes=NONE
492 x_libraries=NONE
493
494 # Installation directory options.
495 # These are left unexpanded so users can "make install exec_prefix=/foo"
496 # and all the variables that are supposed to be based on exec_prefix
497 # by default will actually change.
498 # Use braces instead of parens because sh, perl, etc. also accept them.
499 bindir='${exec_prefix}/bin'
500 sbindir='${exec_prefix}/sbin'
501 libexecdir='${exec_prefix}/libexec'
502 datadir='${prefix}/share'
503 sysconfdir='${prefix}/etc'
504 sharedstatedir='${prefix}/com'
505 localstatedir='${prefix}/var'
506 libdir='${exec_prefix}/lib'
507 includedir='${prefix}/include'
508 oldincludedir='/usr/include'
509 infodir='${prefix}/info'
510 mandir='${prefix}/man'
511
512 ac_prev=
513 for ac_option
514 do
515 # If the previous option needs an argument, assign it.
516 if test -n "$ac_prev"; then
517 eval "$ac_prev=\$ac_option"
518 ac_prev=
519 continue
520 fi
521
522 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
523
524 # Accept the important Cygnus configure options, so we can diagnose typos.
525
526 case $ac_option in
527
528 -bindir | --bindir | --bindi | --bind | --bin | --bi)
529 ac_prev=bindir ;;
530 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
531 bindir=$ac_optarg ;;
532
533 -build | --build | --buil | --bui | --bu)
534 ac_prev=build_alias ;;
535 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
536 build_alias=$ac_optarg ;;
537
538 -cache-file | --cache-file | --cache-fil | --cache-fi \
539 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
540 ac_prev=cache_file ;;
541 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
542 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
543 cache_file=$ac_optarg ;;
544
545 --config-cache | -C)
546 cache_file=config.cache ;;
547
548 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
549 ac_prev=datadir ;;
550 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
551 | --da=*)
552 datadir=$ac_optarg ;;
553
554 -disable-* | --disable-*)
555 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
556 # Reject names that are not valid shell variable names.
557 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
558 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
559 { (exit 1); exit 1; }; }
560 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
561 eval "enable_$ac_feature=no" ;;
562
563 -enable-* | --enable-*)
564 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
565 # Reject names that are not valid shell variable names.
566 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
567 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
568 { (exit 1); exit 1; }; }
569 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
570 case $ac_option in
571 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
572 *) ac_optarg=yes ;;
573 esac
574 eval "enable_$ac_feature='$ac_optarg'" ;;
575
576 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
577 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
578 | --exec | --exe | --ex)
579 ac_prev=exec_prefix ;;
580 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
581 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
582 | --exec=* | --exe=* | --ex=*)
583 exec_prefix=$ac_optarg ;;
584
585 -gas | --gas | --ga | --g)
586 # Obsolete; use --with-gas.
587 with_gas=yes ;;
588
589 -help | --help | --hel | --he | -h)
590 ac_init_help=long ;;
591 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
592 ac_init_help=recursive ;;
593 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
594 ac_init_help=short ;;
595
596 -host | --host | --hos | --ho)
597 ac_prev=host_alias ;;
598 -host=* | --host=* | --hos=* | --ho=*)
599 host_alias=$ac_optarg ;;
600
601 -includedir | --includedir | --includedi | --included | --include \
602 | --includ | --inclu | --incl | --inc)
603 ac_prev=includedir ;;
604 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
605 | --includ=* | --inclu=* | --incl=* | --inc=*)
606 includedir=$ac_optarg ;;
607
608 -infodir | --infodir | --infodi | --infod | --info | --inf)
609 ac_prev=infodir ;;
610 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
611 infodir=$ac_optarg ;;
612
613 -libdir | --libdir | --libdi | --libd)
614 ac_prev=libdir ;;
615 -libdir=* | --libdir=* | --libdi=* | --libd=*)
616 libdir=$ac_optarg ;;
617
618 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
619 | --libexe | --libex | --libe)
620 ac_prev=libexecdir ;;
621 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
622 | --libexe=* | --libex=* | --libe=*)
623 libexecdir=$ac_optarg ;;
624
625 -localstatedir | --localstatedir | --localstatedi | --localstated \
626 | --localstate | --localstat | --localsta | --localst \
627 | --locals | --local | --loca | --loc | --lo)
628 ac_prev=localstatedir ;;
629 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
630 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
631 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
632 localstatedir=$ac_optarg ;;
633
634 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
635 ac_prev=mandir ;;
636 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 mandir=$ac_optarg ;;
638
639 -nfp | --nfp | --nf)
640 # Obsolete; use --without-fp.
641 with_fp=no ;;
642
643 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
644 | --no-cr | --no-c | -n)
645 no_create=yes ;;
646
647 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
648 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
649 no_recursion=yes ;;
650
651 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
652 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
653 | --oldin | --oldi | --old | --ol | --o)
654 ac_prev=oldincludedir ;;
655 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
656 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
657 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
658 oldincludedir=$ac_optarg ;;
659
660 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
661 ac_prev=prefix ;;
662 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
663 prefix=$ac_optarg ;;
664
665 -program-prefix | --program-prefix | --program-prefi | --program-pref \
666 | --program-pre | --program-pr | --program-p)
667 ac_prev=program_prefix ;;
668 -program-prefix=* | --program-prefix=* | --program-prefi=* \
669 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
670 program_prefix=$ac_optarg ;;
671
672 -program-suffix | --program-suffix | --program-suffi | --program-suff \
673 | --program-suf | --program-su | --program-s)
674 ac_prev=program_suffix ;;
675 -program-suffix=* | --program-suffix=* | --program-suffi=* \
676 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
677 program_suffix=$ac_optarg ;;
678
679 -program-transform-name | --program-transform-name \
680 | --program-transform-nam | --program-transform-na \
681 | --program-transform-n | --program-transform- \
682 | --program-transform | --program-transfor \
683 | --program-transfo | --program-transf \
684 | --program-trans | --program-tran \
685 | --progr-tra | --program-tr | --program-t)
686 ac_prev=program_transform_name ;;
687 -program-transform-name=* | --program-transform-name=* \
688 | --program-transform-nam=* | --program-transform-na=* \
689 | --program-transform-n=* | --program-transform-=* \
690 | --program-transform=* | --program-transfor=* \
691 | --program-transfo=* | --program-transf=* \
692 | --program-trans=* | --program-tran=* \
693 | --progr-tra=* | --program-tr=* | --program-t=*)
694 program_transform_name=$ac_optarg ;;
695
696 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
697 | -silent | --silent | --silen | --sile | --sil)
698 silent=yes ;;
699
700 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
701 ac_prev=sbindir ;;
702 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
703 | --sbi=* | --sb=*)
704 sbindir=$ac_optarg ;;
705
706 -sharedstatedir | --sharedstatedir | --sharedstatedi \
707 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
708 | --sharedst | --shareds | --shared | --share | --shar \
709 | --sha | --sh)
710 ac_prev=sharedstatedir ;;
711 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
712 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
713 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
714 | --sha=* | --sh=*)
715 sharedstatedir=$ac_optarg ;;
716
717 -site | --site | --sit)
718 ac_prev=site ;;
719 -site=* | --site=* | --sit=*)
720 site=$ac_optarg ;;
721
722 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
723 ac_prev=srcdir ;;
724 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
725 srcdir=$ac_optarg ;;
726
727 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
728 | --syscon | --sysco | --sysc | --sys | --sy)
729 ac_prev=sysconfdir ;;
730 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
731 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
732 sysconfdir=$ac_optarg ;;
733
734 -target | --target | --targe | --targ | --tar | --ta | --t)
735 ac_prev=target_alias ;;
736 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
737 target_alias=$ac_optarg ;;
738
739 -v | -verbose | --verbose | --verbos | --verbo | --verb)
740 verbose=yes ;;
741
742 -version | --version | --versio | --versi | --vers | -V)
743 ac_init_version=: ;;
744
745 -with-* | --with-*)
746 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
747 # Reject names that are not valid shell variable names.
748 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
749 { echo "$as_me: error: invalid package name: $ac_package" >&2
750 { (exit 1); exit 1; }; }
751 ac_package=`echo $ac_package| sed 's/-/_/g'`
752 case $ac_option in
753 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
754 *) ac_optarg=yes ;;
755 esac
756 eval "with_$ac_package='$ac_optarg'" ;;
757
758 -without-* | --without-*)
759 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
760 # Reject names that are not valid shell variable names.
761 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
762 { echo "$as_me: error: invalid package name: $ac_package" >&2
763 { (exit 1); exit 1; }; }
764 ac_package=`echo $ac_package | sed 's/-/_/g'`
765 eval "with_$ac_package=no" ;;
766
767 --x)
768 # Obsolete; use --with-x.
769 with_x=yes ;;
770
771 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
772 | --x-incl | --x-inc | --x-in | --x-i)
773 ac_prev=x_includes ;;
774 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
775 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
776 x_includes=$ac_optarg ;;
777
778 -x-libraries | --x-libraries | --x-librarie | --x-librari \
779 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
780 ac_prev=x_libraries ;;
781 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
782 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
783 x_libraries=$ac_optarg ;;
784
785 -*) { echo "$as_me: error: unrecognized option: $ac_option
786 Try \`$0 --help' for more information." >&2
787 { (exit 1); exit 1; }; }
788 ;;
789
790 *=*)
791 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
792 # Reject names that are not valid shell variable names.
793 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
794 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
795 { (exit 1); exit 1; }; }
796 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
797 eval "$ac_envvar='$ac_optarg'"
798 export $ac_envvar ;;
799
800 *)
801 # FIXME: should be removed in autoconf 3.0.
802 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
803 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
804 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
805 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
806 ;;
807
808 esac
809 done
810
811 if test -n "$ac_prev"; then
812 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
813 { echo "$as_me: error: missing argument to $ac_option" >&2
814 { (exit 1); exit 1; }; }
815 fi
816
817 # Be sure to have absolute paths.
818 for ac_var in exec_prefix prefix
819 do
820 eval ac_val=$`echo $ac_var`
821 case $ac_val in
822 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
823 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
824 { (exit 1); exit 1; }; };;
825 esac
826 done
827
828 # Be sure to have absolute paths.
829 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
830 localstatedir libdir includedir oldincludedir infodir mandir
831 do
832 eval ac_val=$`echo $ac_var`
833 case $ac_val in
834 [\\/$]* | ?:[\\/]* ) ;;
835 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
836 { (exit 1); exit 1; }; };;
837 esac
838 done
839
840 # There might be people who depend on the old broken behavior: `$host'
841 # used to hold the argument of --host etc.
842 # FIXME: To remove some day.
843 build=$build_alias
844 host=$host_alias
845 target=$target_alias
846
847 # FIXME: To remove some day.
848 if test "x$host_alias" != x; then
849 if test "x$build_alias" = x; then
850 cross_compiling=maybe
851 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
852 If a cross compiler is detected then cross compile mode will be used." >&2
853 elif test "x$build_alias" != "x$host_alias"; then
854 cross_compiling=yes
855 fi
856 fi
857
858 ac_tool_prefix=
859 test -n "$host_alias" && ac_tool_prefix=$host_alias-
860
861 test "$silent" = yes && exec 6>/dev/null
862
863
864 # Find the source files, if location was not specified.
865 if test -z "$srcdir"; then
866 ac_srcdir_defaulted=yes
867 # Try the directory containing this script, then its parent.
868 ac_confdir=`(dirname "$0") 2>/dev/null ||
869 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
870 X"$0" : 'X\(//\)[^/]' \| \
871 X"$0" : 'X\(//\)$' \| \
872 X"$0" : 'X\(/\)' \| \
873 . : '\(.\)' 2>/dev/null ||
874 echo X"$0" |
875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
876 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
877 /^X\(\/\/\)$/{ s//\1/; q; }
878 /^X\(\/\).*/{ s//\1/; q; }
879 s/.*/./; q'`
880 srcdir=$ac_confdir
881 if test ! -r $srcdir/$ac_unique_file; then
882 srcdir=..
883 fi
884 else
885 ac_srcdir_defaulted=no
886 fi
887 if test ! -r $srcdir/$ac_unique_file; then
888 if test "$ac_srcdir_defaulted" = yes; then
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
890 { (exit 1); exit 1; }; }
891 else
892 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
893 { (exit 1); exit 1; }; }
894 fi
895 fi
896 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
897 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
898 { (exit 1); exit 1; }; }
899 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
900 ac_env_build_alias_set=${build_alias+set}
901 ac_env_build_alias_value=$build_alias
902 ac_cv_env_build_alias_set=${build_alias+set}
903 ac_cv_env_build_alias_value=$build_alias
904 ac_env_host_alias_set=${host_alias+set}
905 ac_env_host_alias_value=$host_alias
906 ac_cv_env_host_alias_set=${host_alias+set}
907 ac_cv_env_host_alias_value=$host_alias
908 ac_env_target_alias_set=${target_alias+set}
909 ac_env_target_alias_value=$target_alias
910 ac_cv_env_target_alias_set=${target_alias+set}
911 ac_cv_env_target_alias_value=$target_alias
912 ac_env_CC_set=${CC+set}
913 ac_env_CC_value=$CC
914 ac_cv_env_CC_set=${CC+set}
915 ac_cv_env_CC_value=$CC
916 ac_env_CFLAGS_set=${CFLAGS+set}
917 ac_env_CFLAGS_value=$CFLAGS
918 ac_cv_env_CFLAGS_set=${CFLAGS+set}
919 ac_cv_env_CFLAGS_value=$CFLAGS
920 ac_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_env_LDFLAGS_value=$LDFLAGS
922 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
923 ac_cv_env_LDFLAGS_value=$LDFLAGS
924 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_env_CPPFLAGS_value=$CPPFLAGS
926 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
927 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
928 ac_env_CPP_set=${CPP+set}
929 ac_env_CPP_value=$CPP
930 ac_cv_env_CPP_set=${CPP+set}
931 ac_cv_env_CPP_value=$CPP
932
933 #
934 # Report the --help message.
935 #
936 if test "$ac_init_help" = "long"; then
937 # Omit some internal or obsolete options to make the list less imposing.
938 # This message is too long to be a string in the A/UX 3.1 sh.
939 cat <<_ACEOF
940 \`configure' configures this package to adapt to many kinds of systems.
941
942 Usage: $0 [OPTION]... [VAR=VALUE]...
943
944 To assign environment variables (e.g., CC, CFLAGS...), specify them as
945 VAR=VALUE. See below for descriptions of some of the useful variables.
946
947 Defaults for the options are specified in brackets.
948
949 Configuration:
950 -h, --help display this help and exit
951 --help=short display options specific to this package
952 --help=recursive display the short help of all the included packages
953 -V, --version display version information and exit
954 -q, --quiet, --silent do not print \`checking...' messages
955 --cache-file=FILE cache test results in FILE [disabled]
956 -C, --config-cache alias for \`--cache-file=config.cache'
957 -n, --no-create do not create output files
958 --srcdir=DIR find the sources in DIR [configure dir or \`..']
959
960 _ACEOF
961
962 cat <<_ACEOF
963 Installation directories:
964 --prefix=PREFIX install architecture-independent files in PREFIX
965 [$ac_default_prefix]
966 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
967 [PREFIX]
968
969 By default, \`make install' will install all the files in
970 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
971 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
972 for instance \`--prefix=\$HOME'.
973
974 For better control, use the options below.
975
976 Fine tuning of the installation directories:
977 --bindir=DIR user executables [EPREFIX/bin]
978 --sbindir=DIR system admin executables [EPREFIX/sbin]
979 --libexecdir=DIR program executables [EPREFIX/libexec]
980 --datadir=DIR read-only architecture-independent data [PREFIX/share]
981 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
982 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
983 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
984 --libdir=DIR object code libraries [EPREFIX/lib]
985 --includedir=DIR C header files [PREFIX/include]
986 --oldincludedir=DIR C header files for non-gcc [/usr/include]
987 --infodir=DIR info documentation [PREFIX/info]
988 --mandir=DIR man documentation [PREFIX/man]
989 _ACEOF
990
991 cat <<\_ACEOF
992
993 System types:
994 --build=BUILD configure for building on BUILD [guessed]
995 --host=HOST cross-compile to build programs to run on HOST [BUILD]
996 _ACEOF
997 fi
998
999 if test -n "$ac_init_help"; then
1000
1001 cat <<\_ACEOF
1002
1003 Optional Features:
1004 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1005 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1006 --enable-shared=PKGS build shared libraries default=yes
1007 --enable-static=PKGS build static libraries default=yes
1008 --enable-fast-install=PKGS optimize for fast installation default=yes
1009 --disable-libtool-lock avoid locking (might break parallel builds)
1010
1011 Optional Packages:
1012 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1013 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1014 --with-gnu-ld assume the C compiler uses GNU ld default=no
1015 --with-pic try to use only PIC/non-PIC objects default=use both
1016
1017 Some influential environment variables:
1018 CC C compiler command
1019 CFLAGS C compiler flags
1020 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1021 nonstandard directory <lib dir>
1022 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1023 headers in a nonstandard directory <include dir>
1024 CPP C preprocessor
1025
1026 Use these variables to override the choices made by `configure' or to help
1027 it to find libraries and programs with nonstandard names/locations.
1028
1029 _ACEOF
1030 fi
1031
1032 if test "$ac_init_help" = "recursive"; then
1033 # If there are subdirs, report their specific --help.
1034 ac_popdir=`pwd`
1035 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1036 test -d $ac_dir || continue
1037 ac_builddir=.
1038
1039 if test "$ac_dir" != .; then
1040 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1041 # A "../" for each directory in $ac_dir_suffix.
1042 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1043 else
1044 ac_dir_suffix= ac_top_builddir=
1045 fi
1046
1047 case $srcdir in
1048 .) # No --srcdir option. We are building in place.
1049 ac_srcdir=.
1050 if test -z "$ac_top_builddir"; then
1051 ac_top_srcdir=.
1052 else
1053 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1054 fi ;;
1055 [\\/]* | ?:[\\/]* ) # Absolute path.
1056 ac_srcdir=$srcdir$ac_dir_suffix;
1057 ac_top_srcdir=$srcdir ;;
1058 *) # Relative path.
1059 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1060 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1061 esac
1062 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1063 # absolute.
1064 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1065 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1066 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1067 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1068
1069 cd $ac_dir
1070 # Check for guested configure; otherwise get Cygnus style configure.
1071 if test -f $ac_srcdir/configure.gnu; then
1072 echo
1073 $SHELL $ac_srcdir/configure.gnu --help=recursive
1074 elif test -f $ac_srcdir/configure; then
1075 echo
1076 $SHELL $ac_srcdir/configure --help=recursive
1077 elif test -f $ac_srcdir/configure.ac ||
1078 test -f $ac_srcdir/configure.in; then
1079 echo
1080 $ac_configure --help
1081 else
1082 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1083 fi
1084 cd $ac_popdir
1085 done
1086 fi
1087
1088 test -n "$ac_init_help" && exit 0
1089 if $ac_init_version; then
1090 cat <<\_ACEOF
1091
1092 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1093 Free Software Foundation, Inc.
1094 This configure script is free software; the Free Software Foundation
1095 gives unlimited permission to copy, distribute and modify it.
1096 _ACEOF
1097 exit 0
1098 fi
1099 exec 5>config.log
1100 cat >&5 <<_ACEOF
1101 This file contains any messages produced by compilers while
1102 running configure, to aid debugging if configure makes a mistake.
1103
1104 It was created by $as_me, which was
1105 generated by GNU Autoconf 2.57. Invocation command line was
1106
1107 $ $0 $@
1108
1109 _ACEOF
1110 {
1111 cat <<_ASUNAME
1112 ## --------- ##
1113 ## Platform. ##
1114 ## --------- ##
1115
1116 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1117 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1118 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1119 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1120 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1121
1122 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1123 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1124
1125 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1126 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1127 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1128 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1129 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1130 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1131 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1132
1133 _ASUNAME
1134
1135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1136 for as_dir in $PATH
1137 do
1138 IFS=$as_save_IFS
1139 test -z "$as_dir" && as_dir=.
1140 echo "PATH: $as_dir"
1141 done
1142
1143 } >&5
1144
1145 cat >&5 <<_ACEOF
1146
1147
1148 ## ----------- ##
1149 ## Core tests. ##
1150 ## ----------- ##
1151
1152 _ACEOF
1153
1154
1155 # Keep a trace of the command line.
1156 # Strip out --no-create and --no-recursion so they do not pile up.
1157 # Strip out --silent because we don't want to record it for future runs.
1158 # Also quote any args containing shell meta-characters.
1159 # Make two passes to allow for proper duplicate-argument suppression.
1160 ac_configure_args=
1161 ac_configure_args0=
1162 ac_configure_args1=
1163 ac_sep=
1164 ac_must_keep_next=false
1165 for ac_pass in 1 2
1166 do
1167 for ac_arg
1168 do
1169 case $ac_arg in
1170 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1172 | -silent | --silent | --silen | --sile | --sil)
1173 continue ;;
1174 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1175 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1176 esac
1177 case $ac_pass in
1178 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1179 2)
1180 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1181 if test $ac_must_keep_next = true; then
1182 ac_must_keep_next=false # Got value, back to normal.
1183 else
1184 case $ac_arg in
1185 *=* | --config-cache | -C | -disable-* | --disable-* \
1186 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1187 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1188 | -with-* | --with-* | -without-* | --without-* | --x)
1189 case "$ac_configure_args0 " in
1190 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1191 esac
1192 ;;
1193 -* ) ac_must_keep_next=true ;;
1194 esac
1195 fi
1196 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1197 # Get rid of the leading space.
1198 ac_sep=" "
1199 ;;
1200 esac
1201 done
1202 done
1203 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1204 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1205
1206 # When interrupted or exit'd, cleanup temporary files, and complete
1207 # config.log. We remove comments because anyway the quotes in there
1208 # would cause problems or look ugly.
1209 # WARNING: Be sure not to use single quotes in there, as some shells,
1210 # such as our DU 5.0 friend, will then `close' the trap.
1211 trap 'exit_status=$?
1212 # Save into config.log some information that might help in debugging.
1213 {
1214 echo
1215
1216 cat <<\_ASBOX
1217 ## ---------------- ##
1218 ## Cache variables. ##
1219 ## ---------------- ##
1220 _ASBOX
1221 echo
1222 # The following way of writing the cache mishandles newlines in values,
1223 {
1224 (set) 2>&1 |
1225 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1226 *ac_space=\ *)
1227 sed -n \
1228 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1229 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1230 ;;
1231 *)
1232 sed -n \
1233 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1234 ;;
1235 esac;
1236 }
1237 echo
1238
1239 cat <<\_ASBOX
1240 ## ----------------- ##
1241 ## Output variables. ##
1242 ## ----------------- ##
1243 _ASBOX
1244 echo
1245 for ac_var in $ac_subst_vars
1246 do
1247 eval ac_val=$`echo $ac_var`
1248 echo "$ac_var='"'"'$ac_val'"'"'"
1249 done | sort
1250 echo
1251
1252 if test -n "$ac_subst_files"; then
1253 cat <<\_ASBOX
1254 ## ------------- ##
1255 ## Output files. ##
1256 ## ------------- ##
1257 _ASBOX
1258 echo
1259 for ac_var in $ac_subst_files
1260 do
1261 eval ac_val=$`echo $ac_var`
1262 echo "$ac_var='"'"'$ac_val'"'"'"
1263 done | sort
1264 echo
1265 fi
1266
1267 if test -s confdefs.h; then
1268 cat <<\_ASBOX
1269 ## ----------- ##
1270 ## confdefs.h. ##
1271 ## ----------- ##
1272 _ASBOX
1273 echo
1274 sed "/^$/d" confdefs.h | sort
1275 echo
1276 fi
1277 test "$ac_signal" != 0 &&
1278 echo "$as_me: caught signal $ac_signal"
1279 echo "$as_me: exit $exit_status"
1280 } >&5
1281 rm -f core core.* *.core &&
1282 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1283 exit $exit_status
1284 ' 0
1285 for ac_signal in 1 2 13 15; do
1286 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1287 done
1288 ac_signal=0
1289
1290 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1291 rm -rf conftest* confdefs.h
1292 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1293 echo >confdefs.h
1294
1295 # Predefined preprocessor variables.
1296
1297 cat >>confdefs.h <<_ACEOF
1298 #define PACKAGE_NAME "$PACKAGE_NAME"
1299 _ACEOF
1300
1301
1302 cat >>confdefs.h <<_ACEOF
1303 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1304 _ACEOF
1305
1306
1307 cat >>confdefs.h <<_ACEOF
1308 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1309 _ACEOF
1310
1311
1312 cat >>confdefs.h <<_ACEOF
1313 #define PACKAGE_STRING "$PACKAGE_STRING"
1314 _ACEOF
1315
1316
1317 cat >>confdefs.h <<_ACEOF
1318 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1319 _ACEOF
1320
1321
1322 # Let the site file select an alternate cache file if it wants to.
1323 # Prefer explicitly selected file to automatically selected ones.
1324 if test -z "$CONFIG_SITE"; then
1325 if test "x$prefix" != xNONE; then
1326 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1327 else
1328 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1329 fi
1330 fi
1331 for ac_site_file in $CONFIG_SITE; do
1332 if test -r "$ac_site_file"; then
1333 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1334 echo "$as_me: loading site script $ac_site_file" >&6;}
1335 sed 's/^/| /' "$ac_site_file" >&5
1336 . "$ac_site_file"
1337 fi
1338 done
1339
1340 if test -r "$cache_file"; then
1341 # Some versions of bash will fail to source /dev/null (special
1342 # files actually), so we avoid doing that.
1343 if test -f "$cache_file"; then
1344 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1345 echo "$as_me: loading cache $cache_file" >&6;}
1346 case $cache_file in
1347 [\\/]* | ?:[\\/]* ) . $cache_file;;
1348 *) . ./$cache_file;;
1349 esac
1350 fi
1351 else
1352 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1353 echo "$as_me: creating cache $cache_file" >&6;}
1354 >$cache_file
1355 fi
1356
1357 # Check that the precious variables saved in the cache have kept the same
1358 # value.
1359 ac_cache_corrupted=false
1360 for ac_var in `(set) 2>&1 |
1361 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1362 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1363 eval ac_new_set=\$ac_env_${ac_var}_set
1364 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1365 eval ac_new_val="\$ac_env_${ac_var}_value"
1366 case $ac_old_set,$ac_new_set in
1367 set,)
1368 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1369 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1370 ac_cache_corrupted=: ;;
1371 ,set)
1372 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1373 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1374 ac_cache_corrupted=: ;;
1375 ,);;
1376 *)
1377 if test "x$ac_old_val" != "x$ac_new_val"; then
1378 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1379 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1380 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1381 echo "$as_me: former value: $ac_old_val" >&2;}
1382 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1383 echo "$as_me: current value: $ac_new_val" >&2;}
1384 ac_cache_corrupted=:
1385 fi;;
1386 esac
1387 # Pass precious variables to config.status.
1388 if test "$ac_new_set" = set; then
1389 case $ac_new_val in
1390 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1391 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1392 *) ac_arg=$ac_var=$ac_new_val ;;
1393 esac
1394 case " $ac_configure_args " in
1395 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1396 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1397 esac
1398 fi
1399 done
1400 if $ac_cache_corrupted; then
1401 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1402 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1403 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1404 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1405 { (exit 1); exit 1; }; }
1406 fi
1407
1408 ac_ext=c
1409 ac_cpp='$CPP $CPPFLAGS'
1410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435 ac_aux_dir=
1436 for ac_dir in conftools $srcdir/conftools; do
1437 if test -f $ac_dir/install-sh; then
1438 ac_aux_dir=$ac_dir
1439 ac_install_sh="$ac_aux_dir/install-sh -c"
1440 break
1441 elif test -f $ac_dir/install.sh; then
1442 ac_aux_dir=$ac_dir
1443 ac_install_sh="$ac_aux_dir/install.sh -c"
1444 break
1445 elif test -f $ac_dir/shtool; then
1446 ac_aux_dir=$ac_dir
1447 ac_install_sh="$ac_aux_dir/shtool install -c"
1448 break
1449 fi
1450 done
1451 if test -z "$ac_aux_dir"; then
1452 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in conftools $srcdir/conftools" >&5
1453 echo "$as_me: error: cannot find install-sh or install.sh in conftools $srcdir/conftools" >&2;}
1454 { (exit 1); exit 1; }; }
1455 fi
1456 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1457 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1458 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1459
1460
1461
1462
1463 LIBCURRENT=4
1464 LIBREVISION=0
1465 LIBAGE=4
1466
1467 ac_config_headers="$ac_config_headers expat_config.h"
1468
1469
1470 # libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
1471 ## Copyright 1996, 1997, 1998, 1999, 2000, 2001
1472 ## Free Software Foundation, Inc.
1473 ## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
1474 ##
1475 ## This program is free software; you can redistribute it and/or modify
1476 ## it under the terms of the GNU General Public License as published by
1477 ## the Free Software Foundation; either version 2 of the License, or
1478 ## (at your option) any later version.
1479 ##
1480 ## This program is distributed in the hope that it will be useful, but
1481 ## WITHOUT ANY WARRANTY; without even the implied warranty of
1482 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1483 ## General Public License for more details.
1484 ##
1485 ## You should have received a copy of the GNU General Public License
1486 ## along with this program; if not, write to the Free Software
1487 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
1488 ##
1489 ## As a special exception to the GNU General Public License, if you
1490 ## distribute this file as part of a program that contains a
1491 ## configuration script generated by Autoconf, you may include it under
1492 ## the same distribution terms that you use for the rest of that program.
1493
1494 # serial 46 AC_PROG_LIBTOOL
1495
1496
1497
1498
1499
1500 # AC_LIBTOOL_HEADER_ASSERT
1501 # ------------------------
1502 # AC_LIBTOOL_HEADER_ASSERT
1503
1504 # _LT_AC_CHECK_DLFCN
1505 # --------------------
1506 # _LT_AC_CHECK_DLFCN
1507
1508 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1509 # ---------------------------------
1510 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
1511
1512 # _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
1513 # ---------------------------------
1514 # _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
1515
1516 # _LT_AC_PROG_ECHO_BACKSLASH
1517 # --------------------------
1518 # Add some code to the start of the generated configure script which
1519 # will find an echo command which doesn't interpret backslashes.
1520 # _LT_AC_PROG_ECHO_BACKSLASH
1521
1522 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1523 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1524 # ------------------------------------------------------------------
1525 # _LT_AC_TRY_DLOPEN_SELF
1526
1527 # AC_LIBTOOL_DLOPEN_SELF
1528 # -------------------
1529 # AC_LIBTOOL_DLOPEN_SELF
1530
1531 # _LT_AC_LTCONFIG_HACK
1532
1533 # AC_LIBTOOL_DLOPEN - enable checks for dlopen support
1534
1535
1536 # AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
1537
1538
1539 # AC_ENABLE_SHARED - implement the --enable-shared flag
1540 # Usage: AC_ENABLE_SHARED[(DEFAULT)]
1541 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
1542 # `yes'.
1543
1544
1545 # AC_DISABLE_SHARED - set the default shared flag to --disable-shared
1546
1547
1548 # AC_ENABLE_STATIC - implement the --enable-static flag
1549 # Usage: AC_ENABLE_STATIC[(DEFAULT)]
1550 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
1551 # `yes'.
1552
1553
1554 # AC_DISABLE_STATIC - set the default static flag to --disable-static
1555
1556
1557
1558 # AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
1559 # Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
1560 # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
1561 # `yes'.
1562
1563
1564 # AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install
1565
1566
1567 # AC_LIBTOOL_PICMODE - implement the --with-pic flag
1568 # Usage: AC_LIBTOOL_PICMODE[(MODE)]
1569 # Where MODE is either `yes' or `no'. If omitted, it defaults to
1570 # `both'.
1571
1572
1573
1574 # AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
1575
1576
1577
1578 # AC_PATH_MAGIC - find a file program which can recognise a shared library
1579
1580
1581
1582 # AC_PROG_LD - find the path to the GNU or non-GNU linker
1583
1584
1585 # AC_PROG_LD_GNU -
1586
1587
1588 # AC_PROG_LD_RELOAD_FLAG - find reload flag for linker
1589 # -- PORTME Some linkers may need a different reload flag.
1590
1591
1592 # AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
1593 # -- PORTME fill in with the dynamic library characteristics
1594
1595
1596
1597 # AC_PROG_NM - find the path to a BSD-compatible name lister
1598
1599
1600 # AC_CHECK_LIBM - check for math library
1601
1602
1603 # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
1604 # the libltdl convenience library and INCLTDL to the include flags for
1605 # the libltdl header and adds --enable-ltdl-convenience to the
1606 # configure arguments. Note that LIBLTDL and INCLTDL are not
1607 # AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
1608 # provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
1609 # with '${top_builddir}/' and INCLTDL will be prefixed with
1610 # '${top_srcdir}/' (note the single quotes!). If your package is not
1611 # flat and you're not using automake, define top_builddir and
1612 # top_srcdir appropriately in the Makefiles.
1613
1614
1615 # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
1616 # the libltdl installable library and INCLTDL to the include flags for
1617 # the libltdl header and adds --enable-ltdl-install to the configure
1618 # arguments. Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is
1619 # AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
1620 # libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
1621 # be prefixed with '${top_builddir}/' and INCLTDL will be prefixed
1622 # with '${top_srcdir}/' (note the single quotes!). If your package is
1623 # not flat and you're not using automake, define top_builddir and
1624 # top_srcdir appropriately in the Makefiles.
1625 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
1626
1627
1628 # old names
1629
1630
1631
1632
1633
1634
1635
1636
1637 # This is just to silence aclocal about the macro not being used
1638
1639
1640
1641
1642
1643
1644 # Check whether --enable-shared or --disable-shared was given.
1645 if test "${enable_shared+set}" = set; then
1646 enableval="$enable_shared"
1647 p=${PACKAGE-default}
1648 case $enableval in
1649 yes) enable_shared=yes ;;
1650 no) enable_shared=no ;;
1651 *)
1652 enable_shared=no
1653 # Look at the argument we got. We use all the common list separators.
1654 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1655 for pkg in $enableval; do
1656 if test "X$pkg" = "X$p"; then
1657 enable_shared=yes
1658 fi
1659 done
1660 IFS="$ac_save_ifs"
1661 ;;
1662 esac
1663 else
1664 enable_shared=yes
1665 fi;
1666 # Check whether --enable-static or --disable-static was given.
1667 if test "${enable_static+set}" = set; then
1668 enableval="$enable_static"
1669 p=${PACKAGE-default}
1670 case $enableval in
1671 yes) enable_static=yes ;;
1672 no) enable_static=no ;;
1673 *)
1674 enable_static=no
1675 # Look at the argument we got. We use all the common list separators.
1676 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1677 for pkg in $enableval; do
1678 if test "X$pkg" = "X$p"; then
1679 enable_static=yes
1680 fi
1681 done
1682 IFS="$ac_save_ifs"
1683 ;;
1684 esac
1685 else
1686 enable_static=yes
1687 fi;
1688 # Check whether --enable-fast-install or --disable-fast-install was given.
1689 if test "${enable_fast_install+set}" = set; then
1690 enableval="$enable_fast_install"
1691 p=${PACKAGE-default}
1692 case $enableval in
1693 yes) enable_fast_install=yes ;;
1694 no) enable_fast_install=no ;;
1695 *)
1696 enable_fast_install=no
1697 # Look at the argument we got. We use all the common list separators.
1698 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
1699 for pkg in $enableval; do
1700 if test "X$pkg" = "X$p"; then
1701 enable_fast_install=yes
1702 fi
1703 done
1704 IFS="$ac_save_ifs"
1705 ;;
1706 esac
1707 else
1708 enable_fast_install=yes
1709 fi;
1710 # Make sure we can run config.sub.
1711 $ac_config_sub sun4 >/dev/null 2>&1 ||
1712 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1713 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1714 { (exit 1); exit 1; }; }
1715
1716 echo "$as_me:$LINENO: checking build system type" >&5
1717 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1718 if test "${ac_cv_build+set}" = set; then
1719 echo $ECHO_N "(cached) $ECHO_C" >&6
1720 else
1721 ac_cv_build_alias=$build_alias
1722 test -z "$ac_cv_build_alias" &&
1723 ac_cv_build_alias=`$ac_config_guess`
1724 test -z "$ac_cv_build_alias" &&
1725 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1726 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1727 { (exit 1); exit 1; }; }
1728 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1729 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1730 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1731 { (exit 1); exit 1; }; }
1732
1733 fi
1734 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1735 echo "${ECHO_T}$ac_cv_build" >&6
1736 build=$ac_cv_build
1737 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1738 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1739 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1740
1741
1742 echo "$as_me:$LINENO: checking host system type" >&5
1743 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1744 if test "${ac_cv_host+set}" = set; then
1745 echo $ECHO_N "(cached) $ECHO_C" >&6
1746 else
1747 ac_cv_host_alias=$host_alias
1748 test -z "$ac_cv_host_alias" &&
1749 ac_cv_host_alias=$ac_cv_build_alias
1750 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1751 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1752 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1753 { (exit 1); exit 1; }; }
1754
1755 fi
1756 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1757 echo "${ECHO_T}$ac_cv_host" >&6
1758 host=$ac_cv_host
1759 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1760 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1761 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1762
1763
1764 ac_ext=c
1765 ac_cpp='$CPP $CPPFLAGS'
1766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1769 if test -n "$ac_tool_prefix"; then
1770 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1771 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1772 echo "$as_me:$LINENO: checking for $ac_word" >&5
1773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1774 if test "${ac_cv_prog_CC+set}" = set; then
1775 echo $ECHO_N "(cached) $ECHO_C" >&6
1776 else
1777 if test -n "$CC"; then
1778 ac_cv_prog_CC="$CC" # Let the user override the test.
1779 else
1780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1781 for as_dir in $PATH
1782 do
1783 IFS=$as_save_IFS
1784 test -z "$as_dir" && as_dir=.
1785 for ac_exec_ext in '' $ac_executable_extensions; do
1786 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1787 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1789 break 2
1790 fi
1791 done
1792 done
1793
1794 fi
1795 fi
1796 CC=$ac_cv_prog_CC
1797 if test -n "$CC"; then
1798 echo "$as_me:$LINENO: result: $CC" >&5
1799 echo "${ECHO_T}$CC" >&6
1800 else
1801 echo "$as_me:$LINENO: result: no" >&5
1802 echo "${ECHO_T}no" >&6
1803 fi
1804
1805 fi
1806 if test -z "$ac_cv_prog_CC"; then
1807 ac_ct_CC=$CC
1808 # Extract the first word of "gcc", so it can be a program name with args.
1809 set dummy gcc; ac_word=$2
1810 echo "$as_me:$LINENO: checking for $ac_word" >&5
1811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1812 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1813 echo $ECHO_N "(cached) $ECHO_C" >&6
1814 else
1815 if test -n "$ac_ct_CC"; then
1816 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1817 else
1818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1819 for as_dir in $PATH
1820 do
1821 IFS=$as_save_IFS
1822 test -z "$as_dir" && as_dir=.
1823 for ac_exec_ext in '' $ac_executable_extensions; do
1824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1825 ac_cv_prog_ac_ct_CC="gcc"
1826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1827 break 2
1828 fi
1829 done
1830 done
1831
1832 fi
1833 fi
1834 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1835 if test -n "$ac_ct_CC"; then
1836 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1837 echo "${ECHO_T}$ac_ct_CC" >&6
1838 else
1839 echo "$as_me:$LINENO: result: no" >&5
1840 echo "${ECHO_T}no" >&6
1841 fi
1842
1843 CC=$ac_ct_CC
1844 else
1845 CC="$ac_cv_prog_CC"
1846 fi
1847
1848 if test -z "$CC"; then
1849 if test -n "$ac_tool_prefix"; then
1850 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1851 set dummy ${ac_tool_prefix}cc; ac_word=$2
1852 echo "$as_me:$LINENO: checking for $ac_word" >&5
1853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1854 if test "${ac_cv_prog_CC+set}" = set; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1856 else
1857 if test -n "$CC"; then
1858 ac_cv_prog_CC="$CC" # Let the user override the test.
1859 else
1860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1861 for as_dir in $PATH
1862 do
1863 IFS=$as_save_IFS
1864 test -z "$as_dir" && as_dir=.
1865 for ac_exec_ext in '' $ac_executable_extensions; do
1866 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1867 ac_cv_prog_CC="${ac_tool_prefix}cc"
1868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1869 break 2
1870 fi
1871 done
1872 done
1873
1874 fi
1875 fi
1876 CC=$ac_cv_prog_CC
1877 if test -n "$CC"; then
1878 echo "$as_me:$LINENO: result: $CC" >&5
1879 echo "${ECHO_T}$CC" >&6
1880 else
1881 echo "$as_me:$LINENO: result: no" >&5
1882 echo "${ECHO_T}no" >&6
1883 fi
1884
1885 fi
1886 if test -z "$ac_cv_prog_CC"; then
1887 ac_ct_CC=$CC
1888 # Extract the first word of "cc", so it can be a program name with args.
1889 set dummy cc; ac_word=$2
1890 echo "$as_me:$LINENO: checking for $ac_word" >&5
1891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1892 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1893 echo $ECHO_N "(cached) $ECHO_C" >&6
1894 else
1895 if test -n "$ac_ct_CC"; then
1896 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1897 else
1898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1899 for as_dir in $PATH
1900 do
1901 IFS=$as_save_IFS
1902 test -z "$as_dir" && as_dir=.
1903 for ac_exec_ext in '' $ac_executable_extensions; do
1904 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1905 ac_cv_prog_ac_ct_CC="cc"
1906 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1907 break 2
1908 fi
1909 done
1910 done
1911
1912 fi
1913 fi
1914 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1915 if test -n "$ac_ct_CC"; then
1916 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1917 echo "${ECHO_T}$ac_ct_CC" >&6
1918 else
1919 echo "$as_me:$LINENO: result: no" >&5
1920 echo "${ECHO_T}no" >&6
1921 fi
1922
1923 CC=$ac_ct_CC
1924 else
1925 CC="$ac_cv_prog_CC"
1926 fi
1927
1928 fi
1929 if test -z "$CC"; then
1930 # Extract the first word of "cc", so it can be a program name with args.
1931 set dummy cc; ac_word=$2
1932 echo "$as_me:$LINENO: checking for $ac_word" >&5
1933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1934 if test "${ac_cv_prog_CC+set}" = set; then
1935 echo $ECHO_N "(cached) $ECHO_C" >&6
1936 else
1937 if test -n "$CC"; then
1938 ac_cv_prog_CC="$CC" # Let the user override the test.
1939 else
1940 ac_prog_rejected=no
1941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1942 for as_dir in $PATH
1943 do
1944 IFS=$as_save_IFS
1945 test -z "$as_dir" && as_dir=.
1946 for ac_exec_ext in '' $ac_executable_extensions; do
1947 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1948 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1949 ac_prog_rejected=yes
1950 continue
1951 fi
1952 ac_cv_prog_CC="cc"
1953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1954 break 2
1955 fi
1956 done
1957 done
1958
1959 if test $ac_prog_rejected = yes; then
1960 # We found a bogon in the path, so make sure we never use it.
1961 set dummy $ac_cv_prog_CC
1962 shift
1963 if test $# != 0; then
1964 # We chose a different compiler from the bogus one.
1965 # However, it has the same basename, so the bogon will be chosen
1966 # first if we set CC to just the basename; use the full file name.
1967 shift
1968 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1969 fi
1970 fi
1971 fi
1972 fi
1973 CC=$ac_cv_prog_CC
1974 if test -n "$CC"; then
1975 echo "$as_me:$LINENO: result: $CC" >&5
1976 echo "${ECHO_T}$CC" >&6
1977 else
1978 echo "$as_me:$LINENO: result: no" >&5
1979 echo "${ECHO_T}no" >&6
1980 fi
1981
1982 fi
1983 if test -z "$CC"; then
1984 if test -n "$ac_tool_prefix"; then
1985 for ac_prog in cl
1986 do
1987 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1988 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1989 echo "$as_me:$LINENO: checking for $ac_word" >&5
1990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1991 if test "${ac_cv_prog_CC+set}" = set; then
1992 echo $ECHO_N "(cached) $ECHO_C" >&6
1993 else
1994 if test -n "$CC"; then
1995 ac_cv_prog_CC="$CC" # Let the user override the test.
1996 else
1997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998 for as_dir in $PATH
1999 do
2000 IFS=$as_save_IFS
2001 test -z "$as_dir" && as_dir=.
2002 for ac_exec_ext in '' $ac_executable_extensions; do
2003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2004 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2006 break 2
2007 fi
2008 done
2009 done
2010
2011 fi
2012 fi
2013 CC=$ac_cv_prog_CC
2014 if test -n "$CC"; then
2015 echo "$as_me:$LINENO: result: $CC" >&5
2016 echo "${ECHO_T}$CC" >&6
2017 else
2018 echo "$as_me:$LINENO: result: no" >&5
2019 echo "${ECHO_T}no" >&6
2020 fi
2021
2022 test -n "$CC" && break
2023 done
2024 fi
2025 if test -z "$CC"; then
2026 ac_ct_CC=$CC
2027 for ac_prog in cl
2028 do
2029 # Extract the first word of "$ac_prog", so it can be a program name with args.
2030 set dummy $ac_prog; ac_word=$2
2031 echo "$as_me:$LINENO: checking for $ac_word" >&5
2032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2033 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
2035 else
2036 if test -n "$ac_ct_CC"; then
2037 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2038 else
2039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040 for as_dir in $PATH
2041 do
2042 IFS=$as_save_IFS
2043 test -z "$as_dir" && as_dir=.
2044 for ac_exec_ext in '' $ac_executable_extensions; do
2045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2046 ac_cv_prog_ac_ct_CC="$ac_prog"
2047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2048 break 2
2049 fi
2050 done
2051 done
2052
2053 fi
2054 fi
2055 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2056 if test -n "$ac_ct_CC"; then
2057 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2058 echo "${ECHO_T}$ac_ct_CC" >&6
2059 else
2060 echo "$as_me:$LINENO: result: no" >&5
2061 echo "${ECHO_T}no" >&6
2062 fi
2063
2064 test -n "$ac_ct_CC" && break
2065 done
2066
2067 CC=$ac_ct_CC
2068 fi
2069
2070 fi
2071
2072
2073 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2074 See \`config.log' for more details." >&5
2075 echo "$as_me: error: no acceptable C compiler found in \$PATH
2076 See \`config.log' for more details." >&2;}
2077 { (exit 1); exit 1; }; }
2078
2079 # Provide some information about the compiler.
2080 echo "$as_me:$LINENO:" \
2081 "checking for C compiler version" >&5
2082 ac_compiler=`set X $ac_compile; echo $2`
2083 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2084 (eval $ac_compiler --version </dev/null >&5) 2>&5
2085 ac_status=$?
2086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2087 (exit $ac_status); }
2088 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2089 (eval $ac_compiler -v </dev/null >&5) 2>&5
2090 ac_status=$?
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }
2093 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2094 (eval $ac_compiler -V </dev/null >&5) 2>&5
2095 ac_status=$?
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }
2098
2099 cat >conftest.$ac_ext <<_ACEOF
2100 #line $LINENO "configure"
2101 /* confdefs.h. */
2102 _ACEOF
2103 cat confdefs.h >>conftest.$ac_ext
2104 cat >>conftest.$ac_ext <<_ACEOF
2105 /* end confdefs.h. */
2106
2107 int
2108 main ()
2109 {
2110
2111 ;
2112 return 0;
2113 }
2114 _ACEOF
2115 ac_clean_files_save=$ac_clean_files
2116 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2117 # Try to create an executable without -o first, disregard a.out.
2118 # It will help us diagnose broken compilers, and finding out an intuition
2119 # of exeext.
2120 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2121 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2122 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2123 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2124 (eval $ac_link_default) 2>&5
2125 ac_status=$?
2126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2127 (exit $ac_status); }; then
2128 # Find the output, starting from the most likely. This scheme is
2129 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2130 # resort.
2131
2132 # Be careful to initialize this variable, since it used to be cached.
2133 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2134 ac_cv_exeext=
2135 # b.out is created by i960 compilers.
2136 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2137 do
2138 test -f "$ac_file" || continue
2139 case $ac_file in
2140 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2141 ;;
2142 conftest.$ac_ext )
2143 # This is the source file.
2144 ;;
2145 [ab].out )
2146 # We found the default executable, but exeext='' is most
2147 # certainly right.
2148 break;;
2149 *.* )
2150 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2151 # FIXME: I believe we export ac_cv_exeext for Libtool,
2152 # but it would be cool to find out if it's true. Does anybody
2153 # maintain Libtool? --akim.
2154 export ac_cv_exeext
2155 break;;
2156 * )
2157 break;;
2158 esac
2159 done
2160 else
2161 echo "$as_me: failed program was:" >&5
2162 sed 's/^/| /' conftest.$ac_ext >&5
2163
2164 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2165 See \`config.log' for more details." >&5
2166 echo "$as_me: error: C compiler cannot create executables
2167 See \`config.log' for more details." >&2;}
2168 { (exit 77); exit 77; }; }
2169 fi
2170
2171 ac_exeext=$ac_cv_exeext
2172 echo "$as_me:$LINENO: result: $ac_file" >&5
2173 echo "${ECHO_T}$ac_file" >&6
2174
2175 # Check the compiler produces executables we can run. If not, either
2176 # the compiler is broken, or we cross compile.
2177 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2178 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2179 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2180 # If not cross compiling, check that we can run a simple program.
2181 if test "$cross_compiling" != yes; then
2182 if { ac_try='./$ac_file'
2183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2184 (eval $ac_try) 2>&5
2185 ac_status=$?
2186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187 (exit $ac_status); }; }; then
2188 cross_compiling=no
2189 else
2190 if test "$cross_compiling" = maybe; then
2191 cross_compiling=yes
2192 else
2193 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2194 If you meant to cross compile, use \`--host'.
2195 See \`config.log' for more details." >&5
2196 echo "$as_me: error: cannot run C compiled programs.
2197 If you meant to cross compile, use \`--host'.
2198 See \`config.log' for more details." >&2;}
2199 { (exit 1); exit 1; }; }
2200 fi
2201 fi
2202 fi
2203 echo "$as_me:$LINENO: result: yes" >&5
2204 echo "${ECHO_T}yes" >&6
2205
2206 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2207 ac_clean_files=$ac_clean_files_save
2208 # Check the compiler produces executables we can run. If not, either
2209 # the compiler is broken, or we cross compile.
2210 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2211 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2212 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2213 echo "${ECHO_T}$cross_compiling" >&6
2214
2215 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2216 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2218 (eval $ac_link) 2>&5
2219 ac_status=$?
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); }; then
2222 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2223 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2224 # work properly (i.e., refer to `conftest.exe'), while it won't with
2225 # `rm'.
2226 for ac_file in conftest.exe conftest conftest.*; do
2227 test -f "$ac_file" || continue
2228 case $ac_file in
2229 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2230 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2231 export ac_cv_exeext
2232 break;;
2233 * ) break;;
2234 esac
2235 done
2236 else
2237 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2238 See \`config.log' for more details." >&5
2239 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2240 See \`config.log' for more details." >&2;}
2241 { (exit 1); exit 1; }; }
2242 fi
2243
2244 rm -f conftest$ac_cv_exeext
2245 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2246 echo "${ECHO_T}$ac_cv_exeext" >&6
2247
2248 rm -f conftest.$ac_ext
2249 EXEEXT=$ac_cv_exeext
2250 ac_exeext=$EXEEXT
2251 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2252 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2253 if test "${ac_cv_objext+set}" = set; then
2254 echo $ECHO_N "(cached) $ECHO_C" >&6
2255 else
2256 cat >conftest.$ac_ext <<_ACEOF
2257 #line $LINENO "configure"
2258 /* confdefs.h. */
2259 _ACEOF
2260 cat confdefs.h >>conftest.$ac_ext
2261 cat >>conftest.$ac_ext <<_ACEOF
2262 /* end confdefs.h. */
2263
2264 int
2265 main ()
2266 {
2267
2268 ;
2269 return 0;
2270 }
2271 _ACEOF
2272 rm -f conftest.o conftest.obj
2273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2274 (eval $ac_compile) 2>&5
2275 ac_status=$?
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }; then
2278 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2279 case $ac_file in
2280 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2281 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2282 break;;
2283 esac
2284 done
2285 else
2286 echo "$as_me: failed program was:" >&5
2287 sed 's/^/| /' conftest.$ac_ext >&5
2288
2289 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2290 See \`config.log' for more details." >&5
2291 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2292 See \`config.log' for more details." >&2;}
2293 { (exit 1); exit 1; }; }
2294 fi
2295
2296 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2297 fi
2298 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2299 echo "${ECHO_T}$ac_cv_objext" >&6
2300 OBJEXT=$ac_cv_objext
2301 ac_objext=$OBJEXT
2302 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2303 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2304 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2306 else
2307 cat >conftest.$ac_ext <<_ACEOF
2308 #line $LINENO "configure"
2309 /* confdefs.h. */
2310 _ACEOF
2311 cat confdefs.h >>conftest.$ac_ext
2312 cat >>conftest.$ac_ext <<_ACEOF
2313 /* end confdefs.h. */
2314
2315 int
2316 main ()
2317 {
2318 #ifndef __GNUC__
2319 choke me
2320 #endif
2321
2322 ;
2323 return 0;
2324 }
2325 _ACEOF
2326 rm -f conftest.$ac_objext
2327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2328 (eval $ac_compile) 2>&5
2329 ac_status=$?
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); } &&
2332 { ac_try='test -s conftest.$ac_objext'
2333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334 (eval $ac_try) 2>&5
2335 ac_status=$?
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; }; then
2338 ac_compiler_gnu=yes
2339 else
2340 echo "$as_me: failed program was:" >&5
2341 sed 's/^/| /' conftest.$ac_ext >&5
2342
2343 ac_compiler_gnu=no
2344 fi
2345 rm -f conftest.$ac_objext conftest.$ac_ext
2346 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2347
2348 fi
2349 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2350 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2351 GCC=`test $ac_compiler_gnu = yes && echo yes`
2352 ac_test_CFLAGS=${CFLAGS+set}
2353 ac_save_CFLAGS=$CFLAGS
2354 CFLAGS="-g"
2355 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2356 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2357 if test "${ac_cv_prog_cc_g+set}" = set; then
2358 echo $ECHO_N "(cached) $ECHO_C" >&6
2359 else
2360 cat >conftest.$ac_ext <<_ACEOF
2361 #line $LINENO "configure"
2362 /* confdefs.h. */
2363 _ACEOF
2364 cat confdefs.h >>conftest.$ac_ext
2365 cat >>conftest.$ac_ext <<_ACEOF
2366 /* end confdefs.h. */
2367
2368 int
2369 main ()
2370 {
2371
2372 ;
2373 return 0;
2374 }
2375 _ACEOF
2376 rm -f conftest.$ac_objext
2377 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2378 (eval $ac_compile) 2>&5
2379 ac_status=$?
2380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2381 (exit $ac_status); } &&
2382 { ac_try='test -s conftest.$ac_objext'
2383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384 (eval $ac_try) 2>&5
2385 ac_status=$?
2386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2387 (exit $ac_status); }; }; then
2388 ac_cv_prog_cc_g=yes
2389 else
2390 echo "$as_me: failed program was:" >&5
2391 sed 's/^/| /' conftest.$ac_ext >&5
2392
2393 ac_cv_prog_cc_g=no
2394 fi
2395 rm -f conftest.$ac_objext conftest.$ac_ext
2396 fi
2397 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2398 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2399 if test "$ac_test_CFLAGS" = set; then
2400 CFLAGS=$ac_save_CFLAGS
2401 elif test $ac_cv_prog_cc_g = yes; then
2402 if test "$GCC" = yes; then
2403 CFLAGS="-g -O2"
2404 else
2405 CFLAGS="-g"
2406 fi
2407 else
2408 if test "$GCC" = yes; then
2409 CFLAGS="-O2"
2410 else
2411 CFLAGS=
2412 fi
2413 fi
2414 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2415 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2416 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2417 echo $ECHO_N "(cached) $ECHO_C" >&6
2418 else
2419 ac_cv_prog_cc_stdc=no
2420 ac_save_CC=$CC
2421 cat >conftest.$ac_ext <<_ACEOF
2422 #line $LINENO "configure"
2423 /* confdefs.h. */
2424 _ACEOF
2425 cat confdefs.h >>conftest.$ac_ext
2426 cat >>conftest.$ac_ext <<_ACEOF
2427 /* end confdefs.h. */
2428 #include <stdarg.h>
2429 #include <stdio.h>
2430 #include <sys/types.h>
2431 #include <sys/stat.h>
2432 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2433 struct buf { int x; };
2434 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2435 static char *e (p, i)
2436 char **p;
2437 int i;
2438 {
2439 return p[i];
2440 }
2441 static char *f (char * (*g) (char **, int), char **p, ...)
2442 {
2443 char *s;
2444 va_list v;
2445 va_start (v,p);
2446 s = g (p, va_arg (v,int));
2447 va_end (v);
2448 return s;
2449 }
2450 int test (int i, double x);
2451 struct s1 {int (*f) (int a);};
2452 struct s2 {int (*f) (double a);};
2453 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2454 int argc;
2455 char **argv;
2456 int
2457 main ()
2458 {
2459 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2460 ;
2461 return 0;
2462 }
2463 _ACEOF
2464 # Don't try gcc -ansi; that turns off useful extensions and
2465 # breaks some systems' header files.
2466 # AIX -qlanglvl=ansi
2467 # Ultrix and OSF/1 -std1
2468 # HP-UX 10.20 and later -Ae
2469 # HP-UX older versions -Aa -D_HPUX_SOURCE
2470 # SVR4 -Xc -D__EXTENSIONS__
2471 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2472 do
2473 CC="$ac_save_CC $ac_arg"
2474 rm -f conftest.$ac_objext
2475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2476 (eval $ac_compile) 2>&5
2477 ac_status=$?
2478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2479 (exit $ac_status); } &&
2480 { ac_try='test -s conftest.$ac_objext'
2481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2482 (eval $ac_try) 2>&5
2483 ac_status=$?
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); }; }; then
2486 ac_cv_prog_cc_stdc=$ac_arg
2487 break
2488 else
2489 echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2491
2492 fi
2493 rm -f conftest.$ac_objext
2494 done
2495 rm -f conftest.$ac_ext conftest.$ac_objext
2496 CC=$ac_save_CC
2497
2498 fi
2499
2500 case "x$ac_cv_prog_cc_stdc" in
2501 x|xno)
2502 echo "$as_me:$LINENO: result: none needed" >&5
2503 echo "${ECHO_T}none needed" >&6 ;;
2504 *)
2505 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2506 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2507 CC="$CC $ac_cv_prog_cc_stdc" ;;
2508 esac
2509
2510 # Some people use a C++ compiler to compile C. Since we use `exit',
2511 # in C++ we need to declare it. In case someone uses the same compiler
2512 # for both compiling C and C++ we need to have the C++ compiler decide
2513 # the declaration of exit, since it's the most demanding environment.
2514 cat >conftest.$ac_ext <<_ACEOF
2515 #ifndef __cplusplus
2516 choke me
2517 #endif
2518 _ACEOF
2519 rm -f conftest.$ac_objext
2520 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2521 (eval $ac_compile) 2>&5
2522 ac_status=$?
2523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2524 (exit $ac_status); } &&
2525 { ac_try='test -s conftest.$ac_objext'
2526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2527 (eval $ac_try) 2>&5
2528 ac_status=$?
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }; }; then
2531 for ac_declaration in \
2532 ''\
2533 '#include <stdlib.h>' \
2534 'extern "C" void std::exit (int) throw (); using std::exit;' \
2535 'extern "C" void std::exit (int); using std::exit;' \
2536 'extern "C" void exit (int) throw ();' \
2537 'extern "C" void exit (int);' \
2538 'void exit (int);'
2539 do
2540 cat >conftest.$ac_ext <<_ACEOF
2541 #line $LINENO "configure"
2542 /* confdefs.h. */
2543 _ACEOF
2544 cat confdefs.h >>conftest.$ac_ext
2545 cat >>conftest.$ac_ext <<_ACEOF
2546 /* end confdefs.h. */
2547 #include <stdlib.h>
2548 $ac_declaration
2549 int
2550 main ()
2551 {
2552 exit (42);
2553 ;
2554 return 0;
2555 }
2556 _ACEOF
2557 rm -f conftest.$ac_objext
2558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2559 (eval $ac_compile) 2>&5
2560 ac_status=$?
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); } &&
2563 { ac_try='test -s conftest.$ac_objext'
2564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2565 (eval $ac_try) 2>&5
2566 ac_status=$?
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; }; then
2569 :
2570 else
2571 echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2573
2574 continue
2575 fi
2576 rm -f conftest.$ac_objext conftest.$ac_ext
2577 cat >conftest.$ac_ext <<_ACEOF
2578 #line $LINENO "configure"
2579 /* confdefs.h. */
2580 _ACEOF
2581 cat confdefs.h >>conftest.$ac_ext
2582 cat >>conftest.$ac_ext <<_ACEOF
2583 /* end confdefs.h. */
2584 $ac_declaration
2585 int
2586 main ()
2587 {
2588 exit (42);
2589 ;
2590 return 0;
2591 }
2592 _ACEOF
2593 rm -f conftest.$ac_objext
2594 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2595 (eval $ac_compile) 2>&5
2596 ac_status=$?
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); } &&
2599 { ac_try='test -s conftest.$ac_objext'
2600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2601 (eval $ac_try) 2>&5
2602 ac_status=$?
2603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604 (exit $ac_status); }; }; then
2605 break
2606 else
2607 echo "$as_me: failed program was:" >&5
2608 sed 's/^/| /' conftest.$ac_ext >&5
2609
2610 fi
2611 rm -f conftest.$ac_objext conftest.$ac_ext
2612 done
2613 rm -f conftest*
2614 if test -n "$ac_declaration"; then
2615 echo '#ifdef __cplusplus' >>confdefs.h
2616 echo $ac_declaration >>confdefs.h
2617 echo '#endif' >>confdefs.h
2618 fi
2619
2620 else
2621 echo "$as_me: failed program was:" >&5
2622 sed 's/^/| /' conftest.$ac_ext >&5
2623
2624 fi
2625 rm -f conftest.$ac_objext conftest.$ac_ext
2626 ac_ext=c
2627 ac_cpp='$CPP $CPPFLAGS'
2628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2631
2632 # Find the correct PATH separator. Usually this is `:', but
2633 # DJGPP uses `;' like DOS.
2634 if test "X${PATH_SEPARATOR+set}" != Xset; then
2635 UNAME=${UNAME-`uname 2>/dev/null`}
2636 case X$UNAME in
2637 *-DOS) lt_cv_sys_path_separator=';' ;;
2638 *) lt_cv_sys_path_separator=':' ;;
2639 esac
2640 PATH_SEPARATOR=$lt_cv_sys_path_separator
2641 fi
2642
2643
2644 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2645 if test "${with_gnu_ld+set}" = set; then
2646 withval="$with_gnu_ld"
2647 test "$withval" = no || with_gnu_ld=yes
2648 else
2649 with_gnu_ld=no
2650 fi;
2651 ac_prog=ld
2652 if test "$GCC" = yes; then
2653 # Check if gcc -print-prog-name=ld gives a path.
2654 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
2655 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
2656 case $host in
2657 *-*-mingw*)
2658 # gcc leaves a trailing carriage return which upsets mingw
2659 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2660 *)
2661 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2662 esac
2663 case $ac_prog in
2664 # Accept absolute paths.
2665 [\\/]* | [A-Za-z]:[\\/]*)
2666 re_direlt='/[^/][^/]*/\.\./'
2667 # Canonicalize the path of ld
2668 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
2669 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2670 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
2671 done
2672 test -z "$LD" && LD="$ac_prog"
2673 ;;
2674 "")
2675 # If it fails, then pretend we aren't using GCC.
2676 ac_prog=ld
2677 ;;
2678 *)
2679 # If it is relative, then search for the first ld in PATH.
2680 with_gnu_ld=unknown
2681 ;;
2682 esac
2683 elif test "$with_gnu_ld" = yes; then
2684 echo "$as_me:$LINENO: checking for GNU ld" >&5
2685 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2686 else
2687 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2688 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2689 fi
2690 if test "${lt_cv_path_LD+set}" = set; then
2691 echo $ECHO_N "(cached) $ECHO_C" >&6
2692 else
2693 if test -z "$LD"; then
2694 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2695 for ac_dir in $PATH; do
2696 test -z "$ac_dir" && ac_dir=.
2697 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2698 lt_cv_path_LD="$ac_dir/$ac_prog"
2699 # Check to see if the program is GNU ld. I'd rather use --version,
2700 # but apparently some GNU ld's only accept -v.
2701 # Break only if it was the GNU/non-GNU ld that we prefer.
2702 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
2703 test "$with_gnu_ld" != no && break
2704 else
2705 test "$with_gnu_ld" != yes && break
2706 fi
2707 fi
2708 done
2709 IFS="$ac_save_ifs"
2710 else
2711 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2712 fi
2713 fi
2714
2715 LD="$lt_cv_path_LD"
2716 if test -n "$LD"; then
2717 echo "$as_me:$LINENO: result: $LD" >&5
2718 echo "${ECHO_T}$LD" >&6
2719 else
2720 echo "$as_me:$LINENO: result: no" >&5
2721 echo "${ECHO_T}no" >&6
2722 fi
2723 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2724 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2725 { (exit 1); exit 1; }; }
2726 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2727 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2728 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2729 echo $ECHO_N "(cached) $ECHO_C" >&6
2730 else
2731 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2732 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
2733 lt_cv_prog_gnu_ld=yes
2734 else
2735 lt_cv_prog_gnu_ld=no
2736 fi
2737 fi
2738 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2739 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2740 with_gnu_ld=$lt_cv_prog_gnu_ld
2741
2742
2743 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2744 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2745 if test "${lt_cv_ld_reload_flag+set}" = set; then
2746 echo $ECHO_N "(cached) $ECHO_C" >&6
2747 else
2748 lt_cv_ld_reload_flag='-r'
2749 fi
2750 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2751 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2752 reload_flag=$lt_cv_ld_reload_flag
2753 test -n "$reload_flag" && reload_flag=" $reload_flag"
2754
2755 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2756 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2757 if test "${lt_cv_path_NM+set}" = set; then
2758 echo $ECHO_N "(cached) $ECHO_C" >&6
2759 else
2760 if test -n "$NM"; then
2761 # Let the user override the test.
2762 lt_cv_path_NM="$NM"
2763 else
2764 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2765 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2766 test -z "$ac_dir" && ac_dir=.
2767 tmp_nm=$ac_dir/${ac_tool_prefix}nm
2768 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
2769 # Check to see if the nm accepts a BSD-compat flag.
2770 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2771 # nm: unknown option "B" ignored
2772 # Tru64's nm complains that /dev/null is an invalid object file
2773 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
2774 lt_cv_path_NM="$tmp_nm -B"
2775 break
2776 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
2777 lt_cv_path_NM="$tmp_nm -p"
2778 break
2779 else
2780 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2781 continue # so that we can try to find one that supports BSD flags
2782 fi
2783 fi
2784 done
2785 IFS="$ac_save_ifs"
2786 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2787 fi
2788 fi
2789
2790 NM="$lt_cv_path_NM"
2791 echo "$as_me:$LINENO: result: $NM" >&5
2792 echo "${ECHO_T}$NM" >&6
2793
2794 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2795 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2796 LN_S=$as_ln_s
2797 if test "$LN_S" = "ln -s"; then
2798 echo "$as_me:$LINENO: result: yes" >&5
2799 echo "${ECHO_T}yes" >&6
2800 else
2801 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2802 echo "${ECHO_T}no, using $LN_S" >&6
2803 fi
2804
2805 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
2806 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
2807 if test "${lt_cv_deplibs_check_method+set}" = set; then
2808 echo $ECHO_N "(cached) $ECHO_C" >&6
2809 else
2810 lt_cv_file_magic_cmd='$MAGIC_CMD'
2811 lt_cv_file_magic_test_file=
2812 lt_cv_deplibs_check_method='unknown'
2813 # Need to set the preceding variable on all platforms that support
2814 # interlibrary dependencies.
2815 # 'none' -- dependencies not supported.
2816 # `unknown' -- same as none, but documents that we really don't know.
2817 # 'pass_all' -- all dependencies passed with no checks.
2818 # 'test_compile' -- check by making test program.
2819 # 'file_magic [[regex]]' -- check by looking for files in library path
2820 # which responds to the $file_magic_cmd with a given egrep regex.
2821 # If you have `file' or equivalent on your system and you're not sure
2822 # whether `pass_all' will *always* work, you probably want this one.
2823
2824 case $host_os in
2825 aix4* | aix5*)
2826 lt_cv_deplibs_check_method=pass_all
2827 ;;
2828
2829 beos*)
2830 lt_cv_deplibs_check_method=pass_all
2831 ;;
2832
2833 bsdi4*)
2834 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2835 lt_cv_file_magic_cmd='/usr/bin/file -L'
2836 lt_cv_file_magic_test_file=/shlib/libc.so
2837 ;;
2838
2839 cygwin* | mingw* | pw32*)
2840 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2841 lt_cv_file_magic_cmd='$OBJDUMP -f'
2842 ;;
2843
2844 darwin* | rhapsody*)
2845 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
2846 lt_cv_file_magic_cmd='/usr/bin/file -L'
2847 case "$host_os" in
2848 rhapsody* | darwin1.[012])
2849 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
2850 ;;
2851 *) # Darwin 1.3 on
2852 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
2853 ;;
2854 esac
2855 ;;
2856
2857 freebsd*)
2858 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2859 case $host_cpu in
2860 i*86 )
2861 # Not sure whether the presence of OpenBSD here was a mistake.
2862 # Let's accept both of them until this is cleared up.
2863 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
2864 lt_cv_file_magic_cmd=/usr/bin/file
2865 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2866 ;;
2867 esac
2868 else
2869 lt_cv_deplibs_check_method=pass_all
2870 fi
2871 ;;
2872
2873 gnu*)
2874 lt_cv_deplibs_check_method=pass_all
2875 ;;
2876
2877 hpux10.20*|hpux11*)
2878 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
2879 lt_cv_file_magic_cmd=/usr/bin/file
2880 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2881 ;;
2882
2883 irix5* | irix6*)
2884 case $host_os in
2885 irix5*)
2886 # this will be overridden with pass_all, but let us keep it just in case
2887 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
2888 ;;
2889 *)
2890 case $LD in
2891 *-32|*"-32 ") libmagic=32-bit;;
2892 *-n32|*"-n32 ") libmagic=N32;;
2893 *-64|*"-64 ") libmagic=64-bit;;
2894 *) libmagic=never-match;;
2895 esac
2896 # this will be overridden with pass_all, but let us keep it just in case
2897 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
2898 ;;
2899 esac
2900 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
2901 lt_cv_deplibs_check_method=pass_all
2902 ;;
2903
2904 # This must be Linux ELF.
2905 linux-gnu*)
2906 case $host_cpu in
2907 alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* )
2908 lt_cv_deplibs_check_method=pass_all ;;
2909 *)
2910 # glibc up to 2.1.1 does not perform some relocations on ARM
2911 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
2912 esac
2913 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
2914 ;;
2915
2916 netbsd*)
2917 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2918 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
2919 else
2920 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
2921 fi
2922 ;;
2923
2924 newos6*)
2925 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
2926 lt_cv_file_magic_cmd=/usr/bin/file
2927 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2928 ;;
2929
2930 openbsd*)
2931 lt_cv_file_magic_cmd=/usr/bin/file
2932 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2933 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2934 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
2935 else
2936 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
2937 fi
2938 ;;
2939
2940 osf3* | osf4* | osf5*)
2941 # this will be overridden with pass_all, but let us keep it just in case
2942 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
2943 lt_cv_file_magic_test_file=/shlib/libc.so
2944 lt_cv_deplibs_check_method=pass_all
2945 ;;
2946
2947 sco3.2v5*)
2948 lt_cv_deplibs_check_method=pass_all
2949 ;;
2950
2951 solaris*)
2952 lt_cv_deplibs_check_method=pass_all
2953 lt_cv_file_magic_test_file=/lib/libc.so
2954 ;;
2955
2956 sysv5uw[78]* | sysv4*uw2*)
2957 lt_cv_deplibs_check_method=pass_all
2958 ;;
2959
2960 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
2961 case $host_vendor in
2962 motorola)
2963 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]'
2964 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2965 ;;
2966 ncr)
2967 lt_cv_deplibs_check_method=pass_all
2968 ;;
2969 sequent)
2970 lt_cv_file_magic_cmd='/bin/file'
2971 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
2972 ;;
2973 sni)
2974 lt_cv_file_magic_cmd='/bin/file'
2975 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
2976 lt_cv_file_magic_test_file=/lib/libc.so
2977 ;;
2978 esac
2979 ;;
2980 esac
2981
2982 fi
2983 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
2984 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
2985 file_magic_cmd=$lt_cv_file_magic_cmd
2986 deplibs_check_method=$lt_cv_deplibs_check_method
2987
2988
2989
2990
2991
2992
2993
2994
2995 # Check for command to grab the raw symbol name followed by C symbol from nm.
2996 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
2997 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
2998 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
2999 echo $ECHO_N "(cached) $ECHO_C" >&6
3000 else
3001
3002 # These are sane defaults that work on at least a few old systems.
3003 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3004
3005 # Character class describing NM global symbol codes.
3006 symcode='[BCDEGRST]'
3007
3008 # Regexp to match symbols that can be accessed directly from C.
3009 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3010
3011 # Transform the above into a raw symbol and a C symbol.
3012 symxfrm='\1 \2\3 \3'
3013
3014 # Transform an extracted symbol line into a proper C declaration
3015 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3016
3017 # Transform an extracted symbol line into symbol name and symbol address
3018 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3019
3020 # Define system-specific variables.
3021 case $host_os in
3022 aix*)
3023 symcode='[BCDT]'
3024 ;;
3025 cygwin* | mingw* | pw32*)
3026 symcode='[ABCDGISTW]'
3027 ;;
3028 hpux*) # Its linker distinguishes data from code symbols
3029 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3030 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
3031 ;;
3032 irix*)
3033 symcode='[BCDEGRST]'
3034 ;;
3035 solaris* | sysv5*)
3036 symcode='[BDT]'
3037 ;;
3038 sysv4)
3039 symcode='[DFNSTU]'
3040 ;;
3041 esac
3042
3043 # Handle CRLF in mingw tool chain
3044 opt_cr=
3045 case $host_os in
3046 mingw*)
3047 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3048 ;;
3049 esac
3050
3051 # If we're using GNU nm, then use its standard symbol codes.
3052 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3053 symcode='[ABCDGISTW]'
3054 fi
3055
3056 # Try without a prefix undercore, then with it.
3057 for ac_symprfx in "" "_"; do
3058
3059 # Write the raw and C identifiers.
3060 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3061
3062 # Check to see that the pipe works correctly.
3063 pipe_works=no
3064 rm -f conftest*
3065 cat > conftest.$ac_ext <<EOF
3066 #ifdef __cplusplus
3067 extern "C" {
3068 #endif
3069 char nm_test_var;
3070 void nm_test_func(){}
3071 #ifdef __cplusplus
3072 }
3073 #endif
3074 int main(){nm_test_var='a';nm_test_func();return(0);}
3075 EOF
3076
3077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3078 (eval $ac_compile) 2>&5
3079 ac_status=$?
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }; then
3082 # Now try to grab the symbols.
3083 nlist=conftest.nm
3084 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3085 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3086 ac_status=$?
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); } && test -s "$nlist"; then
3089 # Try sorting and uniquifying the output.
3090 if sort "$nlist" | uniq > "$nlist"T; then
3091 mv -f "$nlist"T "$nlist"
3092 else
3093 rm -f "$nlist"T
3094 fi
3095
3096 # Make sure that we snagged all the symbols we need.
3097 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3098 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3099 cat <<EOF > conftest.$ac_ext
3100 #ifdef __cplusplus
3101 extern "C" {
3102 #endif
3103
3104 EOF
3105 # Now generate the symbol file.
3106 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3107
3108 cat <<EOF >> conftest.$ac_ext
3109 #if defined (__STDC__) && __STDC__
3110 # define lt_ptr void *
3111 #else
3112 # define lt_ptr char *
3113 # define const
3114 #endif
3115
3116 /* The mapping between symbol names and symbols. */
3117 const struct {
3118 const char *name;
3119 lt_ptr address;
3120 }
3121 lt_preloaded_symbols[] =
3122 {
3123 EOF
3124 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3125 cat <<\EOF >> conftest.$ac_ext
3126 {0, (lt_ptr) 0}
3127 };
3128
3129 #ifdef __cplusplus
3130 }
3131 #endif
3132 EOF
3133 # Now try linking the two files.
3134 mv conftest.$ac_objext conftstm.$ac_objext
3135 save_LIBS="$LIBS"
3136 save_CFLAGS="$CFLAGS"
3137 LIBS="conftstm.$ac_objext"
3138 CFLAGS="$CFLAGS$no_builtin_flag"
3139 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3140 (eval $ac_link) 2>&5
3141 ac_status=$?
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } && test -s conftest; then
3144 pipe_works=yes
3145 fi
3146 LIBS="$save_LIBS"
3147 CFLAGS="$save_CFLAGS"
3148 else
3149 echo "cannot find nm_test_func in $nlist" >&5
3150 fi
3151 else
3152 echo "cannot find nm_test_var in $nlist" >&5
3153 fi
3154 else
3155 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3156 fi
3157 else
3158 echo "$progname: failed program was:" >&5
3159 cat conftest.$ac_ext >&5
3160 fi
3161 rm -f conftest* conftst*
3162
3163 # Do not use the global_symbol_pipe unless it works.
3164 if test "$pipe_works" = yes; then
3165 break
3166 else
3167 lt_cv_sys_global_symbol_pipe=
3168 fi
3169 done
3170
3171 fi
3172
3173 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3174 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3175 global_symbol_to_cdecl=
3176 global_symbol_to_c_name_address=
3177 else
3178 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3179 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3180 fi
3181 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3182 then
3183 echo "$as_me:$LINENO: result: failed" >&5
3184 echo "${ECHO_T}failed" >&6
3185 else
3186 echo "$as_me:$LINENO: result: ok" >&5
3187 echo "${ECHO_T}ok" >&6
3188 fi
3189
3190 ac_ext=c
3191 ac_cpp='$CPP $CPPFLAGS'
3192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3195 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3196 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3197 # On Suns, sometimes $CPP names a directory.
3198 if test -n "$CPP" && test -d "$CPP"; then
3199 CPP=
3200 fi
3201 if test -z "$CPP"; then
3202 if test "${ac_cv_prog_CPP+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3204 else
3205 # Double quotes because CPP needs to be expanded
3206 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3207 do
3208 ac_preproc_ok=false
3209 for ac_c_preproc_warn_flag in '' yes
3210 do
3211 # Use a header file that comes with gcc, so configuring glibc
3212 # with a fresh cross-compiler works.
3213 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3214 # <limits.h> exists even on freestanding compilers.
3215 # On the NeXT, cc -E runs the code through the compiler's parser,
3216 # not just through cpp. "Syntax error" is here to catch this case.
3217 cat >conftest.$ac_ext <<_ACEOF
3218 #line $LINENO "configure"
3219 /* confdefs.h. */
3220 _ACEOF
3221 cat confdefs.h >>conftest.$ac_ext
3222 cat >>conftest.$ac_ext <<_ACEOF
3223 /* end confdefs.h. */
3224 #ifdef __STDC__
3225 # include <limits.h>
3226 #else
3227 # include <assert.h>
3228 #endif
3229 Syntax error
3230 _ACEOF
3231 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3232 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3233 ac_status=$?
3234 grep -v '^ *+' conftest.er1 >conftest.err
3235 rm -f conftest.er1
3236 cat conftest.err >&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); } >/dev/null; then
3239 if test -s conftest.err; then
3240 ac_cpp_err=$ac_c_preproc_warn_flag
3241 else
3242 ac_cpp_err=
3243 fi
3244 else
3245 ac_cpp_err=yes
3246 fi
3247 if test -z "$ac_cpp_err"; then
3248 :
3249 else
3250 echo "$as_me: failed program was:" >&5
3251 sed 's/^/| /' conftest.$ac_ext >&5
3252
3253 # Broken: fails on valid input.
3254 continue
3255 fi
3256 rm -f conftest.err conftest.$ac_ext
3257
3258 # OK, works on sane cases. Now check whether non-existent headers
3259 # can be detected and how.
3260 cat >conftest.$ac_ext <<_ACEOF
3261 #line $LINENO "configure"
3262 /* confdefs.h. */
3263 _ACEOF
3264 cat confdefs.h >>conftest.$ac_ext
3265 cat >>conftest.$ac_ext <<_ACEOF
3266 /* end confdefs.h. */
3267 #include <ac_nonexistent.h>
3268 _ACEOF
3269 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3270 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3271 ac_status=$?
3272 grep -v '^ *+' conftest.er1 >conftest.err
3273 rm -f conftest.er1
3274 cat conftest.err >&5
3275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3276 (exit $ac_status); } >/dev/null; then
3277 if test -s conftest.err; then
3278 ac_cpp_err=$ac_c_preproc_warn_flag
3279 else
3280 ac_cpp_err=
3281 fi
3282 else
3283 ac_cpp_err=yes
3284 fi
3285 if test -z "$ac_cpp_err"; then
3286 # Broken: success on invalid input.
3287 continue
3288 else
3289 echo "$as_me: failed program was:" >&5
3290 sed 's/^/| /' conftest.$ac_ext >&5
3291
3292 # Passes both tests.
3293 ac_preproc_ok=:
3294 break
3295 fi
3296 rm -f conftest.err conftest.$ac_ext
3297
3298 done
3299 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3300 rm -f conftest.err conftest.$ac_ext
3301 if $ac_preproc_ok; then
3302 break
3303 fi
3304
3305 done
3306 ac_cv_prog_CPP=$CPP
3307
3308 fi
3309 CPP=$ac_cv_prog_CPP
3310 else
3311 ac_cv_prog_CPP=$CPP
3312 fi
3313 echo "$as_me:$LINENO: result: $CPP" >&5
3314 echo "${ECHO_T}$CPP" >&6
3315 ac_preproc_ok=false
3316 for ac_c_preproc_warn_flag in '' yes
3317 do
3318 # Use a header file that comes with gcc, so configuring glibc
3319 # with a fresh cross-compiler works.
3320 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3321 # <limits.h> exists even on freestanding compilers.
3322 # On the NeXT, cc -E runs the code through the compiler's parser,
3323 # not just through cpp. "Syntax error" is here to catch this case.
3324 cat >conftest.$ac_ext <<_ACEOF
3325 #line $LINENO "configure"
3326 /* confdefs.h. */
3327 _ACEOF
3328 cat confdefs.h >>conftest.$ac_ext
3329 cat >>conftest.$ac_ext <<_ACEOF
3330 /* end confdefs.h. */
3331 #ifdef __STDC__
3332 # include <limits.h>
3333 #else
3334 # include <assert.h>
3335 #endif
3336 Syntax error
3337 _ACEOF
3338 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3339 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3340 ac_status=$?
3341 grep -v '^ *+' conftest.er1 >conftest.err
3342 rm -f conftest.er1
3343 cat conftest.err >&5
3344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3345 (exit $ac_status); } >/dev/null; then
3346 if test -s conftest.err; then
3347 ac_cpp_err=$ac_c_preproc_warn_flag
3348 else
3349 ac_cpp_err=
3350 fi
3351 else
3352 ac_cpp_err=yes
3353 fi
3354 if test -z "$ac_cpp_err"; then
3355 :
3356 else
3357 echo "$as_me: failed program was:" >&5
3358 sed 's/^/| /' conftest.$ac_ext >&5
3359
3360 # Broken: fails on valid input.
3361 continue
3362 fi
3363 rm -f conftest.err conftest.$ac_ext
3364
3365 # OK, works on sane cases. Now check whether non-existent headers
3366 # can be detected and how.
3367 cat >conftest.$ac_ext <<_ACEOF
3368 #line $LINENO "configure"
3369 /* confdefs.h. */
3370 _ACEOF
3371 cat confdefs.h >>conftest.$ac_ext
3372 cat >>conftest.$ac_ext <<_ACEOF
3373 /* end confdefs.h. */
3374 #include <ac_nonexistent.h>
3375 _ACEOF
3376 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3377 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3378 ac_status=$?
3379 grep -v '^ *+' conftest.er1 >conftest.err
3380 rm -f conftest.er1
3381 cat conftest.err >&5
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); } >/dev/null; then
3384 if test -s conftest.err; then
3385 ac_cpp_err=$ac_c_preproc_warn_flag
3386 else
3387 ac_cpp_err=
3388 fi
3389 else
3390 ac_cpp_err=yes
3391 fi
3392 if test -z "$ac_cpp_err"; then
3393 # Broken: success on invalid input.
3394 continue
3395 else
3396 echo "$as_me: failed program was:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3398
3399 # Passes both tests.
3400 ac_preproc_ok=:
3401 break
3402 fi
3403 rm -f conftest.err conftest.$ac_ext
3404
3405 done
3406 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3407 rm -f conftest.err conftest.$ac_ext
3408 if $ac_preproc_ok; then
3409 :
3410 else
3411 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3412 See \`config.log' for more details." >&5
3413 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3414 See \`config.log' for more details." >&2;}
3415 { (exit 1); exit 1; }; }
3416 fi
3417
3418 ac_ext=c
3419 ac_cpp='$CPP $CPPFLAGS'
3420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3423
3424
3425 echo "$as_me:$LINENO: checking for egrep" >&5
3426 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3427 if test "${ac_cv_prog_egrep+set}" = set; then
3428 echo $ECHO_N "(cached) $ECHO_C" >&6
3429 else
3430 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3431 then ac_cv_prog_egrep='grep -E'
3432 else ac_cv_prog_egrep='egrep'
3433 fi
3434 fi
3435 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3436 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3437 EGREP=$ac_cv_prog_egrep
3438
3439
3440 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3441 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3442 if test "${ac_cv_header_stdc+set}" = set; then
3443 echo $ECHO_N "(cached) $ECHO_C" >&6
3444 else
3445 cat >conftest.$ac_ext <<_ACEOF
3446 #line $LINENO "configure"
3447 /* confdefs.h. */
3448 _ACEOF
3449 cat confdefs.h >>conftest.$ac_ext
3450 cat >>conftest.$ac_ext <<_ACEOF
3451 /* end confdefs.h. */
3452 #include <stdlib.h>
3453 #include <stdarg.h>
3454 #include <string.h>
3455 #include <float.h>
3456
3457 int
3458 main ()
3459 {
3460
3461 ;
3462 return 0;
3463 }
3464 _ACEOF
3465 rm -f conftest.$ac_objext
3466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3467 (eval $ac_compile) 2>&5
3468 ac_status=$?
3469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3470 (exit $ac_status); } &&
3471 { ac_try='test -s conftest.$ac_objext'
3472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3473 (eval $ac_try) 2>&5
3474 ac_status=$?
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); }; }; then
3477 ac_cv_header_stdc=yes
3478 else
3479 echo "$as_me: failed program was:" >&5
3480 sed 's/^/| /' conftest.$ac_ext >&5
3481
3482 ac_cv_header_stdc=no
3483 fi
3484 rm -f conftest.$ac_objext conftest.$ac_ext
3485
3486 if test $ac_cv_header_stdc = yes; then
3487 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3488 cat >conftest.$ac_ext <<_ACEOF
3489 #line $LINENO "configure"
3490 /* confdefs.h. */
3491 _ACEOF
3492 cat confdefs.h >>conftest.$ac_ext
3493 cat >>conftest.$ac_ext <<_ACEOF
3494 /* end confdefs.h. */
3495 #include <string.h>
3496
3497 _ACEOF
3498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3499 $EGREP "memchr" >/dev/null 2>&1; then
3500 :
3501 else
3502 ac_cv_header_stdc=no
3503 fi
3504 rm -f conftest*
3505
3506 fi
3507
3508 if test $ac_cv_header_stdc = yes; then
3509 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3510 cat >conftest.$ac_ext <<_ACEOF
3511 #line $LINENO "configure"
3512 /* confdefs.h. */
3513 _ACEOF
3514 cat confdefs.h >>conftest.$ac_ext
3515 cat >>conftest.$ac_ext <<_ACEOF
3516 /* end confdefs.h. */
3517 #include <stdlib.h>
3518
3519 _ACEOF
3520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3521 $EGREP "free" >/dev/null 2>&1; then
3522 :
3523 else
3524 ac_cv_header_stdc=no
3525 fi
3526 rm -f conftest*
3527
3528 fi
3529
3530 if test $ac_cv_header_stdc = yes; then
3531 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3532 if test "$cross_compiling" = yes; then
3533 :
3534 else
3535 cat >conftest.$ac_ext <<_ACEOF
3536 #line $LINENO "configure"
3537 /* confdefs.h. */
3538 _ACEOF
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h. */
3542 #include <ctype.h>
3543 #if ((' ' & 0x0FF) == 0x020)
3544 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3545 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3546 #else
3547 # define ISLOWER(c) \
3548 (('a' <= (c) && (c) <= 'i') \
3549 || ('j' <= (c) && (c) <= 'r') \
3550 || ('s' <= (c) && (c) <= 'z'))
3551 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3552 #endif
3553
3554 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3555 int
3556 main ()
3557 {
3558 int i;
3559 for (i = 0; i < 256; i++)
3560 if (XOR (islower (i), ISLOWER (i))
3561 || toupper (i) != TOUPPER (i))
3562 exit(2);
3563 exit (0);
3564 }
3565 _ACEOF
3566 rm -f conftest$ac_exeext
3567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3568 (eval $ac_link) 2>&5
3569 ac_status=$?
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3573 (eval $ac_try) 2>&5
3574 ac_status=$?
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); }; }; then
3577 :
3578 else
3579 echo "$as_me: program exited with status $ac_status" >&5
3580 echo "$as_me: failed program was:" >&5
3581 sed 's/^/| /' conftest.$ac_ext >&5
3582
3583 ( exit $ac_status )
3584 ac_cv_header_stdc=no
3585 fi
3586 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3587 fi
3588 fi
3589 fi
3590 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3591 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3592 if test $ac_cv_header_stdc = yes; then
3593
3594 cat >>confdefs.h <<\_ACEOF
3595 #define STDC_HEADERS 1
3596 _ACEOF
3597
3598 fi
3599
3600 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3611 inttypes.h stdint.h unistd.h
3612 do
3613 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3614 echo "$as_me:$LINENO: checking for $ac_header" >&5
3615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3616 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3617 echo $ECHO_N "(cached) $ECHO_C" >&6
3618 else
3619 cat >conftest.$ac_ext <<_ACEOF
3620 #line $LINENO "configure"
3621 /* confdefs.h. */
3622 _ACEOF
3623 cat confdefs.h >>conftest.$ac_ext
3624 cat >>conftest.$ac_ext <<_ACEOF
3625 /* end confdefs.h. */
3626 $ac_includes_default
3627
3628 #include <$ac_header>
3629 _ACEOF
3630 rm -f conftest.$ac_objext
3631 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3632 (eval $ac_compile) 2>&5
3633 ac_status=$?
3634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3635 (exit $ac_status); } &&
3636 { ac_try='test -s conftest.$ac_objext'
3637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3638 (eval $ac_try) 2>&5
3639 ac_status=$?
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); }; }; then
3642 eval "$as_ac_Header=yes"
3643 else
3644 echo "$as_me: failed program was:" >&5
3645 sed 's/^/| /' conftest.$ac_ext >&5
3646
3647 eval "$as_ac_Header=no"
3648 fi
3649 rm -f conftest.$ac_objext conftest.$ac_ext
3650 fi
3651 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3652 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3654 cat >>confdefs.h <<_ACEOF
3655 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3656 _ACEOF
3657
3658 fi
3659
3660 done
3661
3662
3663
3664 for ac_header in dlfcn.h
3665 do
3666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3667 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3668 echo "$as_me:$LINENO: checking for $ac_header" >&5
3669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3671 echo $ECHO_N "(cached) $ECHO_C" >&6
3672 fi
3673 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3674 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3675 else
3676 # Is the header compilable?
3677 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3678 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3679 cat >conftest.$ac_ext <<_ACEOF
3680 #line $LINENO "configure"
3681 /* confdefs.h. */
3682 _ACEOF
3683 cat confdefs.h >>conftest.$ac_ext
3684 cat >>conftest.$ac_ext <<_ACEOF
3685 /* end confdefs.h. */
3686 $ac_includes_default
3687 #include <$ac_header>
3688 _ACEOF
3689 rm -f conftest.$ac_objext
3690 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3691 (eval $ac_compile) 2>&5
3692 ac_status=$?
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); } &&
3695 { ac_try='test -s conftest.$ac_objext'
3696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3697 (eval $ac_try) 2>&5
3698 ac_status=$?
3699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3700 (exit $ac_status); }; }; then
3701 ac_header_compiler=yes
3702 else
3703 echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.$ac_ext >&5
3705
3706 ac_header_compiler=no
3707 fi
3708 rm -f conftest.$ac_objext conftest.$ac_ext
3709 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3710 echo "${ECHO_T}$ac_header_compiler" >&6
3711
3712 # Is the header present?
3713 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3714 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3715 cat >conftest.$ac_ext <<_ACEOF
3716 #line $LINENO "configure"
3717 /* confdefs.h. */
3718 _ACEOF
3719 cat confdefs.h >>conftest.$ac_ext
3720 cat >>conftest.$ac_ext <<_ACEOF
3721 /* end confdefs.h. */
3722 #include <$ac_header>
3723 _ACEOF
3724 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3725 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3726 ac_status=$?
3727 grep -v '^ *+' conftest.er1 >conftest.err
3728 rm -f conftest.er1
3729 cat conftest.err >&5
3730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731 (exit $ac_status); } >/dev/null; then
3732 if test -s conftest.err; then
3733 ac_cpp_err=$ac_c_preproc_warn_flag
3734 else
3735 ac_cpp_err=
3736 fi
3737 else
3738 ac_cpp_err=yes
3739 fi
3740 if test -z "$ac_cpp_err"; then
3741 ac_header_preproc=yes
3742 else
3743 echo "$as_me: failed program was:" >&5
3744 sed 's/^/| /' conftest.$ac_ext >&5
3745
3746 ac_header_preproc=no
3747 fi
3748 rm -f conftest.err conftest.$ac_ext
3749 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3750 echo "${ECHO_T}$ac_header_preproc" >&6
3751
3752 # So? What about this header?
3753 case $ac_header_compiler:$ac_header_preproc in
3754 yes:no )
3755 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3756 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3757 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3758 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3759 (
3760 cat <<\_ASBOX
3761 ## ------------------------------------ ##
3762 ## Report this to bug-autoconf@gnu.org. ##
3763 ## ------------------------------------ ##
3764 _ASBOX
3765 ) |
3766 sed "s/^/$as_me: WARNING: /" >&2
3767 ;;
3768 no:yes )
3769 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3770 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3771 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3772 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3775 (
3776 cat <<\_ASBOX
3777 ## ------------------------------------ ##
3778 ## Report this to bug-autoconf@gnu.org. ##
3779 ## ------------------------------------ ##
3780 _ASBOX
3781 ) |
3782 sed "s/^/$as_me: WARNING: /" >&2
3783 ;;
3784 esac
3785 echo "$as_me:$LINENO: checking for $ac_header" >&5
3786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3787 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3788 echo $ECHO_N "(cached) $ECHO_C" >&6
3789 else
3790 eval "$as_ac_Header=$ac_header_preproc"
3791 fi
3792 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3793 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3794
3795 fi
3796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3797 cat >>confdefs.h <<_ACEOF
3798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3799 _ACEOF
3800
3801 fi
3802
3803 done
3804
3805
3806
3807
3808
3809 # Only perform the check for file, if the check method requires it
3810 case $deplibs_check_method in
3811 file_magic*)
3812 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
3813 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
3814 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
3815 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3816 echo $ECHO_N "(cached) $ECHO_C" >&6
3817 else
3818 case $MAGIC_CMD in
3819 /*)
3820 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3821 ;;
3822 ?:/*)
3823 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3824 ;;
3825 *)
3826 ac_save_MAGIC_CMD="$MAGIC_CMD"
3827 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3828 ac_dummy="/usr/bin:$PATH"
3829 for ac_dir in $ac_dummy; do
3830 test -z "$ac_dir" && ac_dir=.
3831 if test -f $ac_dir/${ac_tool_prefix}file; then
3832 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
3833 if test -n "$file_magic_test_file"; then
3834 case $deplibs_check_method in
3835 "file_magic "*)
3836 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3837 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3838 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3839 egrep "$file_magic_regex" > /dev/null; then
3840 :
3841 else
3842 cat <<EOF 1>&2
3843
3844 *** Warning: the command libtool uses to detect shared libraries,
3845 *** $file_magic_cmd, produces output that libtool cannot recognize.
3846 *** The result is that libtool may fail to recognize shared libraries
3847 *** as such. This will affect the creation of libtool libraries that
3848 *** depend on shared libraries, but programs linked with such libtool
3849 *** libraries will work regardless of this problem. Nevertheless, you
3850 *** may want to report the problem to your system manager and/or to
3851 *** bug-libtool@gnu.org
3852
3853 EOF
3854 fi ;;
3855 esac
3856 fi
3857 break
3858 fi
3859 done
3860 IFS="$ac_save_ifs"
3861 MAGIC_CMD="$ac_save_MAGIC_CMD"
3862 ;;
3863 esac
3864 fi
3865
3866 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3867 if test -n "$MAGIC_CMD"; then
3868 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3869 echo "${ECHO_T}$MAGIC_CMD" >&6
3870 else
3871 echo "$as_me:$LINENO: result: no" >&5
3872 echo "${ECHO_T}no" >&6
3873 fi
3874
3875 if test -z "$lt_cv_path_MAGIC_CMD"; then
3876 if test -n "$ac_tool_prefix"; then
3877 echo "$as_me:$LINENO: checking for file" >&5
3878 echo $ECHO_N "checking for file... $ECHO_C" >&6
3879 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
3880 echo $ECHO_N "(cached) $ECHO_C" >&6
3881 else
3882 case $MAGIC_CMD in
3883 /*)
3884 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
3885 ;;
3886 ?:/*)
3887 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
3888 ;;
3889 *)
3890 ac_save_MAGIC_CMD="$MAGIC_CMD"
3891 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3892 ac_dummy="/usr/bin:$PATH"
3893 for ac_dir in $ac_dummy; do
3894 test -z "$ac_dir" && ac_dir=.
3895 if test -f $ac_dir/file; then
3896 lt_cv_path_MAGIC_CMD="$ac_dir/file"
3897 if test -n "$file_magic_test_file"; then
3898 case $deplibs_check_method in
3899 "file_magic "*)
3900 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
3901 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3902 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3903 egrep "$file_magic_regex" > /dev/null; then
3904 :
3905 else
3906 cat <<EOF 1>&2
3907
3908 *** Warning: the command libtool uses to detect shared libraries,
3909 *** $file_magic_cmd, produces output that libtool cannot recognize.
3910 *** The result is that libtool may fail to recognize shared libraries
3911 *** as such. This will affect the creation of libtool libraries that
3912 *** depend on shared libraries, but programs linked with such libtool
3913 *** libraries will work regardless of this problem. Nevertheless, you
3914 *** may want to report the problem to your system manager and/or to
3915 *** bug-libtool@gnu.org
3916
3917 EOF
3918 fi ;;
3919 esac
3920 fi
3921 break
3922 fi
3923 done
3924 IFS="$ac_save_ifs"
3925 MAGIC_CMD="$ac_save_MAGIC_CMD"
3926 ;;
3927 esac
3928 fi
3929
3930 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
3931 if test -n "$MAGIC_CMD"; then
3932 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
3933 echo "${ECHO_T}$MAGIC_CMD" >&6
3934 else
3935 echo "$as_me:$LINENO: result: no" >&5
3936 echo "${ECHO_T}no" >&6
3937 fi
3938
3939 else
3940 MAGIC_CMD=:
3941 fi
3942 fi
3943
3944 fi
3945 ;;
3946 esac
3947
3948 if test -n "$ac_tool_prefix"; then
3949 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3950 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3951 echo "$as_me:$LINENO: checking for $ac_word" >&5
3952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3953 if test "${ac_cv_prog_RANLIB+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3955 else
3956 if test -n "$RANLIB"; then
3957 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3958 else
3959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960 for as_dir in $PATH
3961 do
3962 IFS=$as_save_IFS
3963 test -z "$as_dir" && as_dir=.
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3966 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3968 break 2
3969 fi
3970 done
3971 done
3972
3973 fi
3974 fi
3975 RANLIB=$ac_cv_prog_RANLIB
3976 if test -n "$RANLIB"; then
3977 echo "$as_me:$LINENO: result: $RANLIB" >&5
3978 echo "${ECHO_T}$RANLIB" >&6
3979 else
3980 echo "$as_me:$LINENO: result: no" >&5
3981 echo "${ECHO_T}no" >&6
3982 fi
3983
3984 fi
3985 if test -z "$ac_cv_prog_RANLIB"; then
3986 ac_ct_RANLIB=$RANLIB
3987 # Extract the first word of "ranlib", so it can be a program name with args.
3988 set dummy ranlib; ac_word=$2
3989 echo "$as_me:$LINENO: checking for $ac_word" >&5
3990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3991 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3992 echo $ECHO_N "(cached) $ECHO_C" >&6
3993 else
3994 if test -n "$ac_ct_RANLIB"; then
3995 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3996 else
3997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3998 for as_dir in $PATH
3999 do
4000 IFS=$as_save_IFS
4001 test -z "$as_dir" && as_dir=.
4002 for ac_exec_ext in '' $ac_executable_extensions; do
4003 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4004 ac_cv_prog_ac_ct_RANLIB="ranlib"
4005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4006 break 2
4007 fi
4008 done
4009 done
4010
4011 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4012 fi
4013 fi
4014 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4015 if test -n "$ac_ct_RANLIB"; then
4016 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4017 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4018 else
4019 echo "$as_me:$LINENO: result: no" >&5
4020 echo "${ECHO_T}no" >&6
4021 fi
4022
4023 RANLIB=$ac_ct_RANLIB
4024 else
4025 RANLIB="$ac_cv_prog_RANLIB"
4026 fi
4027
4028 if test -n "$ac_tool_prefix"; then
4029 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4030 set dummy ${ac_tool_prefix}strip; ac_word=$2
4031 echo "$as_me:$LINENO: checking for $ac_word" >&5
4032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4033 if test "${ac_cv_prog_STRIP+set}" = set; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4035 else
4036 if test -n "$STRIP"; then
4037 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4038 else
4039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4040 for as_dir in $PATH
4041 do
4042 IFS=$as_save_IFS
4043 test -z "$as_dir" && as_dir=.
4044 for ac_exec_ext in '' $ac_executable_extensions; do
4045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4046 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4048 break 2
4049 fi
4050 done
4051 done
4052
4053 fi
4054 fi
4055 STRIP=$ac_cv_prog_STRIP
4056 if test -n "$STRIP"; then
4057 echo "$as_me:$LINENO: result: $STRIP" >&5
4058 echo "${ECHO_T}$STRIP" >&6
4059 else
4060 echo "$as_me:$LINENO: result: no" >&5
4061 echo "${ECHO_T}no" >&6
4062 fi
4063
4064 fi
4065 if test -z "$ac_cv_prog_STRIP"; then
4066 ac_ct_STRIP=$STRIP
4067 # Extract the first word of "strip", so it can be a program name with args.
4068 set dummy strip; ac_word=$2
4069 echo "$as_me:$LINENO: checking for $ac_word" >&5
4070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4071 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4072 echo $ECHO_N "(cached) $ECHO_C" >&6
4073 else
4074 if test -n "$ac_ct_STRIP"; then
4075 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4076 else
4077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078 for as_dir in $PATH
4079 do
4080 IFS=$as_save_IFS
4081 test -z "$as_dir" && as_dir=.
4082 for ac_exec_ext in '' $ac_executable_extensions; do
4083 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4084 ac_cv_prog_ac_ct_STRIP="strip"
4085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4086 break 2
4087 fi
4088 done
4089 done
4090
4091 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4092 fi
4093 fi
4094 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4095 if test -n "$ac_ct_STRIP"; then
4096 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4097 echo "${ECHO_T}$ac_ct_STRIP" >&6
4098 else
4099 echo "$as_me:$LINENO: result: no" >&5
4100 echo "${ECHO_T}no" >&6
4101 fi
4102
4103 STRIP=$ac_ct_STRIP
4104 else
4105 STRIP="$ac_cv_prog_STRIP"
4106 fi
4107
4108
4109 enable_dlopen=no
4110 enable_win32_dll=no
4111
4112 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4113 if test "${enable_libtool_lock+set}" = set; then
4114 enableval="$enable_libtool_lock"
4115
4116 fi;
4117 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4118
4119 # Some flags need to be propagated to the compiler or linker for good
4120 # libtool support.
4121 case $host in
4122 *-*-irix6*)
4123 # Find out which ABI we are using.
4124 echo '#line 4124 "configure"' > conftest.$ac_ext
4125 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4126 (eval $ac_compile) 2>&5
4127 ac_status=$?
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); }; then
4130 case `/usr/bin/file conftest.$ac_objext` in
4131 *32-bit*)
4132 LD="${LD-ld} -32"
4133 ;;
4134 *N32*)
4135 LD="${LD-ld} -n32"
4136 ;;
4137 *64-bit*)
4138 LD="${LD-ld} -64"
4139 ;;
4140 esac
4141 fi
4142 rm -rf conftest*
4143 ;;
4144
4145 *-*-sco3.2v5*)
4146 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4147 SAVE_CFLAGS="$CFLAGS"
4148 CFLAGS="$CFLAGS -belf"
4149 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4150 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4151 if test "${lt_cv_cc_needs_belf+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 else
4154
4155
4156 ac_ext=c
4157 ac_cpp='$CPP $CPPFLAGS'
4158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4161
4162 cat >conftest.$ac_ext <<_ACEOF
4163 #line $LINENO "configure"
4164 /* confdefs.h. */
4165 _ACEOF
4166 cat confdefs.h >>conftest.$ac_ext
4167 cat >>conftest.$ac_ext <<_ACEOF
4168 /* end confdefs.h. */
4169
4170 int
4171 main ()
4172 {
4173
4174 ;
4175 return 0;
4176 }
4177 _ACEOF
4178 rm -f conftest.$ac_objext conftest$ac_exeext
4179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4180 (eval $ac_link) 2>&5
4181 ac_status=$?
4182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183 (exit $ac_status); } &&
4184 { ac_try='test -s conftest$ac_exeext'
4185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186 (eval $ac_try) 2>&5
4187 ac_status=$?
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; }; then
4190 lt_cv_cc_needs_belf=yes
4191 else
4192 echo "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.$ac_ext >&5
4194
4195 lt_cv_cc_needs_belf=no
4196 fi
4197 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4198 ac_ext=c
4199 ac_cpp='$CPP $CPPFLAGS'
4200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4203
4204 fi
4205 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4206 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4207 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4208 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4209 CFLAGS="$SAVE_CFLAGS"
4210 fi
4211 ;;
4212
4213
4214 esac
4215
4216 # Sed substitution that helps us do robust quoting. It backslashifies
4217 # metacharacters that are still active within double-quoted strings.
4218 Xsed='sed -e s/^X//'
4219 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4220
4221 # Same as above, but do not quote variable references.
4222 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4223
4224 # Sed substitution to delay expansion of an escaped shell variable in a
4225 # double_quote_subst'ed string.
4226 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4227
4228 # Constants:
4229 rm="rm -f"
4230
4231 # Global variables:
4232 default_ofile=libtool
4233 can_build_shared=yes
4234
4235 # All known linkers require a `.a' archive for static linking (except M$VC,
4236 # which needs '.lib').
4237 libext=a
4238 ltmain="$ac_aux_dir/ltmain.sh"
4239 ofile="$default_ofile"
4240 with_gnu_ld="$lt_cv_prog_gnu_ld"
4241 need_locks="$enable_libtool_lock"
4242
4243 old_CC="$CC"
4244 old_CFLAGS="$CFLAGS"
4245
4246 # Set sane defaults for various variables
4247 test -z "$AR" && AR=ar
4248 test -z "$AR_FLAGS" && AR_FLAGS=cru
4249 test -z "$AS" && AS=as
4250 test -z "$CC" && CC=cc
4251 test -z "$DLLTOOL" && DLLTOOL=dlltool
4252 test -z "$LD" && LD=ld
4253 test -z "$LN_S" && LN_S="ln -s"
4254 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4255 test -z "$NM" && NM=nm
4256 test -z "$OBJDUMP" && OBJDUMP=objdump
4257 test -z "$RANLIB" && RANLIB=:
4258 test -z "$STRIP" && STRIP=:
4259 test -z "$ac_objext" && ac_objext=o
4260
4261 if test x"$host" != x"$build"; then
4262 ac_tool_prefix=${host_alias}-
4263 else
4264 ac_tool_prefix=
4265 fi
4266
4267 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4268 case $host_os in
4269 linux-gnu*) ;;
4270 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4271 esac
4272
4273 case $host_os in
4274 aix3*)
4275 # AIX sometimes has problems with the GCC collect2 program. For some
4276 # reason, if we set the COLLECT_NAMES environment variable, the problems
4277 # vanish in a puff of smoke.
4278 if test "X${COLLECT_NAMES+set}" != Xset; then
4279 COLLECT_NAMES=
4280 export COLLECT_NAMES
4281 fi
4282 ;;
4283 esac
4284
4285 # Determine commands to create old-style static archives.
4286 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4287 old_postinstall_cmds='chmod 644 $oldlib'
4288 old_postuninstall_cmds=
4289
4290 if test -n "$RANLIB"; then
4291 case $host_os in
4292 openbsd*)
4293 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4294 ;;
4295 *)
4296 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4297 ;;
4298 esac
4299 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4300 fi
4301
4302 # Allow CC to be a program name with arguments.
4303 set dummy $CC
4304 compiler="$2"
4305
4306 ## FIXME: this should be a separate macro
4307 ##
4308 echo "$as_me:$LINENO: checking for objdir" >&5
4309 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4310 rm -f .libs 2>/dev/null
4311 mkdir .libs 2>/dev/null
4312 if test -d .libs; then
4313 objdir=.libs
4314 else
4315 # MS-DOS does not allow filenames that begin with a dot.
4316 objdir=_libs
4317 fi
4318 rmdir .libs 2>/dev/null
4319 echo "$as_me:$LINENO: result: $objdir" >&5
4320 echo "${ECHO_T}$objdir" >&6
4321 ##
4322 ## END FIXME
4323
4324
4325 ## FIXME: this should be a separate macro
4326 ##
4327
4328 # Check whether --with-pic or --without-pic was given.
4329 if test "${with_pic+set}" = set; then
4330 withval="$with_pic"
4331 pic_mode="$withval"
4332 else
4333 pic_mode=default
4334 fi;
4335 test -z "$pic_mode" && pic_mode=default
4336
4337 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4338 # in isolation, and that seeing it set (from the cache) indicates that
4339 # the associated values are set (in the cache) correctly too.
4340 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4341 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4342 if test "${lt_cv_prog_cc_pic+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4344 else
4345 lt_cv_prog_cc_pic=
4346 lt_cv_prog_cc_shlib=
4347 lt_cv_prog_cc_wl=
4348 lt_cv_prog_cc_static=
4349 lt_cv_prog_cc_no_builtin=
4350 lt_cv_prog_cc_can_build_shared=$can_build_shared
4351
4352 if test "$GCC" = yes; then
4353 lt_cv_prog_cc_wl='-Wl,'
4354 lt_cv_prog_cc_static='-static'
4355
4356 case $host_os in
4357 aix*)
4358 # Below there is a dirty hack to force normal static linking with -ldl
4359 # The problem is because libdl dynamically linked with both libc and
4360 # libC (AIX C++ library), which obviously doesn't included in libraries
4361 # list by gcc. This cause undefined symbols with -static flags.
4362 # This hack allows C programs to be linked with "-static -ldl", but
4363 # not sure about C++ programs.
4364 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4365 ;;
4366 amigaos*)
4367 # FIXME: we need at least 68020 code to build shared libraries, but
4368 # adding the `-m68020' flag to GCC prevents building anything better,
4369 # like `-m68040'.
4370 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4371 ;;
4372 beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
4373 # PIC is the default for these OSes.
4374 ;;
4375 darwin* | rhapsody*)
4376 # PIC is the default on this platform
4377 # Common symbols not allowed in MH_DYLIB files
4378 lt_cv_prog_cc_pic='-fno-common'
4379 ;;
4380 cygwin* | mingw* | pw32* | os2*)
4381 # This hack is so that the source file can tell whether it is being
4382 # built for inclusion in a dll (and should export symbols for example).
4383 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4384 ;;
4385 sysv4*MP*)
4386 if test -d /usr/nec; then
4387 lt_cv_prog_cc_pic=-Kconform_pic
4388 fi
4389 ;;
4390 *)
4391 lt_cv_prog_cc_pic='-fPIC'
4392 ;;
4393 esac
4394 else
4395 # PORTME Check for PIC flags for the system compiler.
4396 case $host_os in
4397 aix3* | aix4* | aix5*)
4398 lt_cv_prog_cc_wl='-Wl,'
4399 # All AIX code is PIC.
4400 if test "$host_cpu" = ia64; then
4401 # AIX 5 now supports IA64 processor
4402 lt_cv_prog_cc_static='-Bstatic'
4403 else
4404 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4405 fi
4406 ;;
4407
4408 hpux9* | hpux10* | hpux11*)
4409 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4410 lt_cv_prog_cc_wl='-Wl,'
4411 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4412 lt_cv_prog_cc_pic='+Z'
4413 ;;
4414
4415 irix5* | irix6*)
4416 lt_cv_prog_cc_wl='-Wl,'
4417 lt_cv_prog_cc_static='-non_shared'
4418 # PIC (with -KPIC) is the default.
4419 ;;
4420
4421 cygwin* | mingw* | pw32* | os2*)
4422 # This hack is so that the source file can tell whether it is being
4423 # built for inclusion in a dll (and should export symbols for example).
4424 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4425 ;;
4426
4427 newsos6)
4428 lt_cv_prog_cc_pic='-KPIC'
4429 lt_cv_prog_cc_static='-Bstatic'
4430 ;;
4431
4432 osf3* | osf4* | osf5*)
4433 # All OSF/1 code is PIC.
4434 lt_cv_prog_cc_wl='-Wl,'
4435 lt_cv_prog_cc_static='-non_shared'
4436 ;;
4437
4438 sco3.2v5*)
4439 lt_cv_prog_cc_pic='-Kpic'
4440 lt_cv_prog_cc_static='-dn'
4441 lt_cv_prog_cc_shlib='-belf'
4442 ;;
4443
4444 solaris*)
4445 lt_cv_prog_cc_pic='-KPIC'
4446 lt_cv_prog_cc_static='-Bstatic'
4447 lt_cv_prog_cc_wl='-Wl,'
4448 ;;
4449
4450 sunos4*)
4451 lt_cv_prog_cc_pic='-PIC'
4452 lt_cv_prog_cc_static='-Bstatic'
4453 lt_cv_prog_cc_wl='-Qoption ld '
4454 ;;
4455
4456 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4457 lt_cv_prog_cc_pic='-KPIC'
4458 lt_cv_prog_cc_static='-Bstatic'
4459 if test "x$host_vendor" = xsni; then
4460 lt_cv_prog_cc_wl='-LD'
4461 else
4462 lt_cv_prog_cc_wl='-Wl,'
4463 fi
4464 ;;
4465
4466 uts4*)
4467 lt_cv_prog_cc_pic='-pic'
4468 lt_cv_prog_cc_static='-Bstatic'
4469 ;;
4470
4471 sysv4*MP*)
4472 if test -d /usr/nec ;then
4473 lt_cv_prog_cc_pic='-Kconform_pic'
4474 lt_cv_prog_cc_static='-Bstatic'
4475 fi
4476 ;;
4477
4478 *)
4479 lt_cv_prog_cc_can_build_shared=no
4480 ;;
4481 esac
4482 fi
4483
4484 fi
4485
4486 if test -z "$lt_cv_prog_cc_pic"; then
4487 echo "$as_me:$LINENO: result: none" >&5
4488 echo "${ECHO_T}none" >&6
4489 else
4490 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4491 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4492
4493 # Check to make sure the pic_flag actually works.
4494 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4495 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4496 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4497 echo $ECHO_N "(cached) $ECHO_C" >&6
4498 else
4499 save_CFLAGS="$CFLAGS"
4500 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4501 cat >conftest.$ac_ext <<_ACEOF
4502 #line $LINENO "configure"
4503 /* confdefs.h. */
4504 _ACEOF
4505 cat confdefs.h >>conftest.$ac_ext
4506 cat >>conftest.$ac_ext <<_ACEOF
4507 /* end confdefs.h. */
4508
4509 int
4510 main ()
4511 {
4512
4513 ;
4514 return 0;
4515 }
4516 _ACEOF
4517 rm -f conftest.$ac_objext
4518 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4519 (eval $ac_compile) 2>&5
4520 ac_status=$?
4521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4522 (exit $ac_status); } &&
4523 { ac_try='test -s conftest.$ac_objext'
4524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4525 (eval $ac_try) 2>&5
4526 ac_status=$?
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; }; then
4529 case $host_os in
4530 hpux9* | hpux10* | hpux11*)
4531 # On HP-UX, both CC and GCC only warn that PIC is supported... then
4532 # they create non-PIC objects. So, if there were any warnings, we
4533 # assume that PIC is not supported.
4534 if test -s conftest.err; then
4535 lt_cv_prog_cc_pic_works=no
4536 else
4537 lt_cv_prog_cc_pic_works=yes
4538 fi
4539 ;;
4540 *)
4541 lt_cv_prog_cc_pic_works=yes
4542 ;;
4543 esac
4544
4545 else
4546 echo "$as_me: failed program was:" >&5
4547 sed 's/^/| /' conftest.$ac_ext >&5
4548
4549 lt_cv_prog_cc_pic_works=no
4550
4551 fi
4552 rm -f conftest.$ac_objext conftest.$ac_ext
4553 CFLAGS="$save_CFLAGS"
4554
4555 fi
4556
4557
4558 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4559 lt_cv_prog_cc_pic=
4560 lt_cv_prog_cc_can_build_shared=no
4561 else
4562 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4563 fi
4564
4565 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4566 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4567 fi
4568 ##
4569 ## END FIXME
4570
4571 # Check for any special shared library compilation flags.
4572 if test -n "$lt_cv_prog_cc_shlib"; then
4573 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4574 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4575 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4576 else
4577 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4578 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4579 lt_cv_prog_cc_can_build_shared=no
4580 fi
4581 fi
4582
4583 ## FIXME: this should be a separate macro
4584 ##
4585 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4586 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4587 if test "${lt_cv_prog_cc_static_works+set}" = set; then
4588 echo $ECHO_N "(cached) $ECHO_C" >&6
4589 else
4590 lt_cv_prog_cc_static_works=no
4591 save_LDFLAGS="$LDFLAGS"
4592 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4593 cat >conftest.$ac_ext <<_ACEOF
4594 #line $LINENO "configure"
4595 /* confdefs.h. */
4596 _ACEOF
4597 cat confdefs.h >>conftest.$ac_ext
4598 cat >>conftest.$ac_ext <<_ACEOF
4599 /* end confdefs.h. */
4600
4601 int
4602 main ()
4603 {
4604
4605 ;
4606 return 0;
4607 }
4608 _ACEOF
4609 rm -f conftest.$ac_objext conftest$ac_exeext
4610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4611 (eval $ac_link) 2>&5
4612 ac_status=$?
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); } &&
4615 { ac_try='test -s conftest$ac_exeext'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617 (eval $ac_try) 2>&5
4618 ac_status=$?
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; }; then
4621 lt_cv_prog_cc_static_works=yes
4622 else
4623 echo "$as_me: failed program was:" >&5
4624 sed 's/^/| /' conftest.$ac_ext >&5
4625
4626 fi
4627 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4628 LDFLAGS="$save_LDFLAGS"
4629
4630 fi
4631
4632
4633 # Belt *and* braces to stop my trousers falling down:
4634 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4635 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4636 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4637
4638 pic_flag="$lt_cv_prog_cc_pic"
4639 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4640 wl="$lt_cv_prog_cc_wl"
4641 link_static_flag="$lt_cv_prog_cc_static"
4642 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4643 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4644 ##
4645 ## END FIXME
4646
4647
4648 ## FIXME: this should be a separate macro
4649 ##
4650 # Check to see if options -o and -c are simultaneously supported by compiler
4651 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4652 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4653 if test "${lt_cv_compiler_c_o+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4655 else
4656
4657 $rm -r conftest 2>/dev/null
4658 mkdir conftest
4659 cd conftest
4660 echo "int some_variable = 0;" > conftest.$ac_ext
4661 mkdir out
4662 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4663 # that will create temporary files in the current directory regardless of
4664 # the output directory. Thus, making CWD read-only will cause this test
4665 # to fail, enabling locking or at least warning the user not to do parallel
4666 # builds.
4667 chmod -w .
4668 save_CFLAGS="$CFLAGS"
4669 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4670 compiler_c_o=no
4671 if { (eval echo configure:4671: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4672 # The compiler can only warn and ignore the option if not recognized
4673 # So say no if there are warnings
4674 if test -s out/conftest.err; then
4675 lt_cv_compiler_c_o=no
4676 else
4677 lt_cv_compiler_c_o=yes
4678 fi
4679 else
4680 # Append any errors to the config.log.
4681 cat out/conftest.err 1>&5
4682 lt_cv_compiler_c_o=no
4683 fi
4684 CFLAGS="$save_CFLAGS"
4685 chmod u+w .
4686 $rm conftest* out/*
4687 rmdir out
4688 cd ..
4689 rmdir conftest
4690 $rm -r conftest 2>/dev/null
4691
4692 fi
4693
4694 compiler_c_o=$lt_cv_compiler_c_o
4695 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4696 echo "${ECHO_T}$compiler_c_o" >&6
4697
4698 if test x"$compiler_c_o" = x"yes"; then
4699 # Check to see if we can write to a .lo
4700 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4701 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4702 if test "${lt_cv_compiler_o_lo+set}" = set; then
4703 echo $ECHO_N "(cached) $ECHO_C" >&6
4704 else
4705
4706 lt_cv_compiler_o_lo=no
4707 save_CFLAGS="$CFLAGS"
4708 CFLAGS="$CFLAGS -c -o conftest.lo"
4709 save_objext="$ac_objext"
4710 ac_objext=lo
4711 cat >conftest.$ac_ext <<_ACEOF
4712 #line $LINENO "configure"
4713 /* confdefs.h. */
4714 _ACEOF
4715 cat confdefs.h >>conftest.$ac_ext
4716 cat >>conftest.$ac_ext <<_ACEOF
4717 /* end confdefs.h. */
4718
4719 int
4720 main ()
4721 {
4722 int some_variable = 0;
4723 ;
4724 return 0;
4725 }
4726 _ACEOF
4727 rm -f conftest.$ac_objext
4728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4729 (eval $ac_compile) 2>&5
4730 ac_status=$?
4731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732 (exit $ac_status); } &&
4733 { ac_try='test -s conftest.$ac_objext'
4734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735 (eval $ac_try) 2>&5
4736 ac_status=$?
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); }; }; then
4739 # The compiler can only warn and ignore the option if not recognized
4740 # So say no if there are warnings
4741 if test -s conftest.err; then
4742 lt_cv_compiler_o_lo=no
4743 else
4744 lt_cv_compiler_o_lo=yes
4745 fi
4746
4747 else
4748 echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4750
4751 fi
4752 rm -f conftest.$ac_objext conftest.$ac_ext
4753 ac_objext="$save_objext"
4754 CFLAGS="$save_CFLAGS"
4755
4756 fi
4757
4758 compiler_o_lo=$lt_cv_compiler_o_lo
4759 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
4760 echo "${ECHO_T}$compiler_o_lo" >&6
4761 else
4762 compiler_o_lo=no
4763 fi
4764 ##
4765 ## END FIXME
4766
4767 ## FIXME: this should be a separate macro
4768 ##
4769 # Check to see if we can do hard links to lock some files if needed
4770 hard_links="nottested"
4771 if test "$compiler_c_o" = no && test "$need_locks" != no; then
4772 # do not overwrite the value of need_locks provided by the user
4773 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
4774 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
4775 hard_links=yes
4776 $rm conftest*
4777 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4778 touch conftest.a
4779 ln conftest.a conftest.b 2>&5 || hard_links=no
4780 ln conftest.a conftest.b 2>/dev/null && hard_links=no
4781 echo "$as_me:$LINENO: result: $hard_links" >&5
4782 echo "${ECHO_T}$hard_links" >&6
4783 if test "$hard_links" = no; then
4784 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
4785 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
4786 need_locks=warn
4787 fi
4788 else
4789 need_locks=no
4790 fi
4791 ##
4792 ## END FIXME
4793
4794 ## FIXME: this should be a separate macro
4795 ##
4796 if test "$GCC" = yes; then
4797 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
4798 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
4799 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
4800 echo "int some_variable = 0;" > conftest.$ac_ext
4801 save_CFLAGS="$CFLAGS"
4802 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
4803 compiler_rtti_exceptions=no
4804 cat >conftest.$ac_ext <<_ACEOF
4805 #line $LINENO "configure"
4806 /* confdefs.h. */
4807 _ACEOF
4808 cat confdefs.h >>conftest.$ac_ext
4809 cat >>conftest.$ac_ext <<_ACEOF
4810 /* end confdefs.h. */
4811
4812 int
4813 main ()
4814 {
4815 int some_variable = 0;
4816 ;
4817 return 0;
4818 }
4819 _ACEOF
4820 rm -f conftest.$ac_objext
4821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4822 (eval $ac_compile) 2>&5
4823 ac_status=$?
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); } &&
4826 { ac_try='test -s conftest.$ac_objext'
4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4828 (eval $ac_try) 2>&5
4829 ac_status=$?
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }; }; then
4832 # The compiler can only warn and ignore the option if not recognized
4833 # So say no if there are warnings
4834 if test -s conftest.err; then
4835 compiler_rtti_exceptions=no
4836 else
4837 compiler_rtti_exceptions=yes
4838 fi
4839
4840 else
4841 echo "$as_me: failed program was:" >&5
4842 sed 's/^/| /' conftest.$ac_ext >&5
4843
4844 fi
4845 rm -f conftest.$ac_objext conftest.$ac_ext
4846 CFLAGS="$save_CFLAGS"
4847 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
4848 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
4849
4850 if test "$compiler_rtti_exceptions" = "yes"; then
4851 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
4852 else
4853 no_builtin_flag=' -fno-builtin'
4854 fi
4855 fi
4856 ##
4857 ## END FIXME
4858
4859 ## FIXME: this should be a separate macro
4860 ##
4861 # See if the linker supports building shared libraries.
4862 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
4863 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
4864
4865 allow_undefined_flag=
4866 no_undefined_flag=
4867 need_lib_prefix=unknown
4868 need_version=unknown
4869 # when you set need_version to no, make sure it does not cause -set_version
4870 # flags to be left without arguments
4871 archive_cmds=
4872 archive_expsym_cmds=
4873 old_archive_from_new_cmds=
4874 old_archive_from_expsyms_cmds=
4875 export_dynamic_flag_spec=
4876 whole_archive_flag_spec=
4877 thread_safe_flag_spec=
4878 hardcode_into_libs=no
4879 hardcode_libdir_flag_spec=
4880 hardcode_libdir_separator=
4881 hardcode_direct=no
4882 hardcode_minus_L=no
4883 hardcode_shlibpath_var=unsupported
4884 runpath_var=
4885 link_all_deplibs=unknown
4886 always_export_symbols=no
4887 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
4888 # include_expsyms should be a list of space-separated symbols to be *always*
4889 # included in the symbol list
4890 include_expsyms=
4891 # exclude_expsyms can be an egrep regular expression of symbols to exclude
4892 # it will be wrapped by ` (' and `)$', so one must not match beginning or
4893 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
4894 # as well as any symbol that contains `d'.
4895 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
4896 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4897 # platforms (ab)use it in PIC code, but their linkers get confused if
4898 # the symbol is explicitly referenced. Since portable code cannot
4899 # rely on this symbol name, it's probably fine to never include it in
4900 # preloaded symbol tables.
4901 extract_expsyms_cmds=
4902
4903 case $host_os in
4904 cygwin* | mingw* | pw32*)
4905 # FIXME: the MSVC++ port hasn't been tested in a loooong time
4906 # When not using gcc, we currently assume that we are using
4907 # Microsoft Visual C++.
4908 if test "$GCC" != yes; then
4909 with_gnu_ld=no
4910 fi
4911 ;;
4912 openbsd*)
4913 with_gnu_ld=no
4914 ;;
4915 esac
4916
4917 ld_shlibs=yes
4918 if test "$with_gnu_ld" = yes; then
4919 # If archive_cmds runs LD, not CC, wlarc should be empty
4920 wlarc='${wl}'
4921
4922 # See if GNU ld supports shared libraries.
4923 case $host_os in
4924 aix3* | aix4* | aix5*)
4925 # On AIX, the GNU linker is very broken
4926 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
4927 ld_shlibs=no
4928 cat <<EOF 1>&2
4929
4930 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
4931 *** to be unable to reliably create shared libraries on AIX.
4932 *** Therefore, libtool is disabling shared libraries support. If you
4933 *** really care for shared libraries, you may want to modify your PATH
4934 *** so that a non-GNU linker is found, and then restart.
4935
4936 EOF
4937 ;;
4938
4939 amigaos*)
4940 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)'
4941 hardcode_libdir_flag_spec='-L$libdir'
4942 hardcode_minus_L=yes
4943
4944 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
4945 # that the semantics of dynamic libraries on AmigaOS, at least up
4946 # to version 4, is to share data among multiple programs linked
4947 # with the same dynamic library. Since this doesn't match the
4948 # behavior of shared libraries on other platforms, we can use
4949 # them.
4950 ld_shlibs=no
4951 ;;
4952
4953 beos*)
4954 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
4955 allow_undefined_flag=unsupported
4956 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
4957 # support --undefined. This deserves some investigation. FIXME
4958 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
4959 else
4960 ld_shlibs=no
4961 fi
4962 ;;
4963
4964 cygwin* | mingw* | pw32*)
4965 # hardcode_libdir_flag_spec is actually meaningless, as there is
4966 # no search path for DLLs.
4967 hardcode_libdir_flag_spec='-L$libdir'
4968 allow_undefined_flag=unsupported
4969 always_export_symbols=yes
4970
4971 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
4972 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
4973 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
4974 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
4975 else $CC -o impgen impgen.c ; fi)~
4976 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
4977
4978 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
4979
4980 # cygwin and mingw dlls have different entry points and sets of symbols
4981 # to exclude.
4982 # FIXME: what about values for MSVC?
4983 dll_entry=__cygwin_dll_entry@12
4984 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
4985 case $host_os in
4986 mingw*)
4987 # mingw values
4988 dll_entry=_DllMainCRTStartup@12
4989 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
4990 ;;
4991 esac
4992
4993 # mingw and cygwin differ, and it's simplest to just exclude the union
4994 # of the two symbol sets.
4995 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
4996
4997 # recent cygwin and mingw systems supply a stub DllMain which the user
4998 # can override, but on older systems we have to supply one (in ltdll.c)
4999 if test "x$lt_cv_need_dllmain" = "xyes"; then
5000 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5001 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~
5002 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5003 else
5004 ltdll_obj=
5005 ltdll_cmds=
5006 fi
5007
5008 # Extract the symbol export list from an `--export-all' def file,
5009 # then regenerate the def file from the symbol export list, so that
5010 # the compiled dll only exports the symbol export list.
5011 # Be careful not to strip the DATA tag left be newer dlltools.
5012 export_symbols_cmds="$ltdll_cmds"'
5013 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5014 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5015
5016 # If the export-symbols file already is a .def file (1st line
5017 # is EXPORTS), use it as is.
5018 # If DATA tags from a recent dlltool are present, honour them!
5019 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5020 cp $export_symbols $output_objdir/$soname-def;
5021 else
5022 echo EXPORTS > $output_objdir/$soname-def;
5023 _lt_hint=1;
5024 cat $export_symbols | while read symbol; do
5025 set dummy \$symbol;
5026 case \$# in
5027 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5028 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5029 esac;
5030 _lt_hint=`expr 1 + \$_lt_hint`;
5031 done;
5032 fi~
5033 '"$ltdll_cmds"'
5034 $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~
5035 $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~
5036 $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~
5037 $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~
5038 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5039 ;;
5040
5041 netbsd*)
5042 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5043 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5044 wlarc=
5045 else
5046 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5047 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5048 fi
5049 ;;
5050
5051 solaris* | sysv5*)
5052 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5053 ld_shlibs=no
5054 cat <<EOF 1>&2
5055
5056 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5057 *** create shared libraries on Solaris systems. Therefore, libtool
5058 *** is disabling shared libraries support. We urge you to upgrade GNU
5059 *** binutils to release 2.9.1 or newer. Another option is to modify
5060 *** your PATH or compiler configuration so that the native linker is
5061 *** used, and then restart.
5062
5063 EOF
5064 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5065 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5066 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5067 else
5068 ld_shlibs=no
5069 fi
5070 ;;
5071
5072 sunos4*)
5073 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5074 wlarc=
5075 hardcode_direct=yes
5076 hardcode_shlibpath_var=no
5077 ;;
5078
5079 *)
5080 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5081 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5082 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5083 else
5084 ld_shlibs=no
5085 fi
5086 ;;
5087 esac
5088
5089 if test "$ld_shlibs" = yes; then
5090 runpath_var=LD_RUN_PATH
5091 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5092 export_dynamic_flag_spec='${wl}--export-dynamic'
5093 case $host_os in
5094 cygwin* | mingw* | pw32*)
5095 # dlltool doesn't understand --whole-archive et. al.
5096 whole_archive_flag_spec=
5097 ;;
5098 *)
5099 # ancient GNU ld didn't support --whole-archive et. al.
5100 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5101 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5102 else
5103 whole_archive_flag_spec=
5104 fi
5105 ;;
5106 esac
5107 fi
5108 else
5109 # PORTME fill in a description of your system's linker (not GNU ld)
5110 case $host_os in
5111 aix3*)
5112 allow_undefined_flag=unsupported
5113 always_export_symbols=yes
5114 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'
5115 # Note: this linker hardcodes the directories in LIBPATH if there
5116 # are no directories specified by -L.
5117 hardcode_minus_L=yes
5118 if test "$GCC" = yes && test -z "$link_static_flag"; then
5119 # Neither direct hardcoding nor static linking is supported with a
5120 # broken collect2.
5121 hardcode_direct=unsupported
5122 fi
5123 ;;
5124
5125 aix4* | aix5*)
5126 if test "$host_cpu" = ia64; then
5127 # On IA64, the linker does run time linking by default, so we don't
5128 # have to do anything special.
5129 aix_use_runtimelinking=no
5130 exp_sym_flag='-Bexport'
5131 no_entry_flag=""
5132 else
5133 aix_use_runtimelinking=no
5134
5135 # Test if we are trying to use run time linking or normal
5136 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5137 # need to do runtime linking.
5138 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5139 for ld_flag in $LDFLAGS; do
5140 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5141 aix_use_runtimelinking=yes
5142 break
5143 fi
5144 done
5145 esac
5146
5147 exp_sym_flag='-bexport'
5148 no_entry_flag='-bnoentry'
5149 fi
5150
5151 # When large executables or shared objects are built, AIX ld can
5152 # have problems creating the table of contents. If linking a library
5153 # or program results in "error TOC overflow" add -mminimal-toc to
5154 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5155 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5156
5157 hardcode_direct=yes
5158 archive_cmds=''
5159 hardcode_libdir_separator=':'
5160 if test "$GCC" = yes; then
5161 case $host_os in aix4.[012]|aix4.[012].*)
5162 collect2name=`${CC} -print-prog-name=collect2`
5163 if test -f "$collect2name" && \
5164 strings "$collect2name" | grep resolve_lib_name >/dev/null
5165 then
5166 # We have reworked collect2
5167 hardcode_direct=yes
5168 else
5169 # We have old collect2
5170 hardcode_direct=unsupported
5171 # It fails to find uninstalled libraries when the uninstalled
5172 # path is not listed in the libpath. Setting hardcode_minus_L
5173 # to unsupported forces relinking
5174 hardcode_minus_L=yes
5175 hardcode_libdir_flag_spec='-L$libdir'
5176 hardcode_libdir_separator=
5177 fi
5178 esac
5179
5180 shared_flag='-shared'
5181 else
5182 # not using gcc
5183 if test "$host_cpu" = ia64; then
5184 shared_flag='${wl}-G'
5185 else
5186 if test "$aix_use_runtimelinking" = yes; then
5187 shared_flag='${wl}-G'
5188 else
5189 shared_flag='${wl}-bM:SRE'
5190 fi
5191 fi
5192 fi
5193
5194 # It seems that -bexpall can do strange things, so it is better to
5195 # generate a list of symbols to export.
5196 always_export_symbols=yes
5197 if test "$aix_use_runtimelinking" = yes; then
5198 # Warning - without using the other runtime loading flags (-brtl),
5199 # -berok will link without error, but may produce a broken library.
5200 allow_undefined_flag='-berok'
5201 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5202 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5203 else
5204 if test "$host_cpu" = ia64; then
5205 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5206 allow_undefined_flag="-z nodefs"
5207 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"
5208 else
5209 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5210 # Warning - without using the other run time loading flags,
5211 # -berok will link without error, but may produce a broken library.
5212 allow_undefined_flag='${wl}-berok'
5213 # This is a bit strange, but is similar to how AIX traditionally builds
5214 # it's shared libraries.
5215 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'
5216 fi
5217 fi
5218 ;;
5219
5220 amigaos*)
5221 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)'
5222 hardcode_libdir_flag_spec='-L$libdir'
5223 hardcode_minus_L=yes
5224 # see comment about different semantics on the GNU ld section
5225 ld_shlibs=no
5226 ;;
5227
5228 cygwin* | mingw* | pw32*)
5229 # When not using gcc, we currently assume that we are using
5230 # Microsoft Visual C++.
5231 # hardcode_libdir_flag_spec is actually meaningless, as there is
5232 # no search path for DLLs.
5233 hardcode_libdir_flag_spec=' '
5234 allow_undefined_flag=unsupported
5235 # Tell ltmain to make .lib files, not .a files.
5236 libext=lib
5237 # FIXME: Setting linknames here is a bad hack.
5238 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5239 # The linker will automatically build a .lib file if we build a DLL.
5240 old_archive_from_new_cmds='true'
5241 # FIXME: Should let the user specify the lib program.
5242 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5243 fix_srcfile_path='`cygpath -w "$srcfile"`'
5244 ;;
5245
5246 darwin* | rhapsody*)
5247 case "$host_os" in
5248 rhapsody* | darwin1.[012])
5249 allow_undefined_flag='-undefined suppress'
5250 ;;
5251 *) # Darwin 1.3 on
5252 allow_undefined_flag='-flat_namespace -undefined suppress'
5253 ;;
5254 esac
5255 # FIXME: Relying on posixy $() will cause problems for
5256 # cross-compilation, but unfortunately the echo tests do not
5257 # yet detect zsh echo's removal of \ escapes.
5258 archive_cmds='$nonopt $(test "x$module" = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5259 # We need to add '_' to the symbols in $export_symbols first
5260 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5261 hardcode_direct=yes
5262 hardcode_shlibpath_var=no
5263 whole_archive_flag_spec='-all_load $convenience'
5264 ;;
5265
5266 freebsd1*)
5267 ld_shlibs=no
5268 ;;
5269
5270 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5271 # support. Future versions do this automatically, but an explicit c++rt0.o
5272 # does not break anything, and helps significantly (at the cost of a little
5273 # extra space).
5274 freebsd2.2*)
5275 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5276 hardcode_libdir_flag_spec='-R$libdir'
5277 hardcode_direct=yes
5278 hardcode_shlibpath_var=no
5279 ;;
5280
5281 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5282 freebsd2*)
5283 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5284 hardcode_direct=yes
5285 hardcode_minus_L=yes
5286 hardcode_shlibpath_var=no
5287 ;;
5288
5289 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5290 freebsd*)
5291 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5292 hardcode_libdir_flag_spec='-R$libdir'
5293 hardcode_direct=yes
5294 hardcode_shlibpath_var=no
5295 ;;
5296
5297 hpux9* | hpux10* | hpux11*)
5298 case $host_os in
5299 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' ;;
5300 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5301 esac
5302 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5303 hardcode_libdir_separator=:
5304 hardcode_direct=yes
5305 hardcode_minus_L=yes # Not in the search PATH, but as the default
5306 # location of the library.
5307 export_dynamic_flag_spec='${wl}-E'
5308 ;;
5309
5310 irix5* | irix6*)
5311 if test "$GCC" = yes; then
5312 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'
5313 else
5314 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'
5315 fi
5316 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5317 hardcode_libdir_separator=:
5318 link_all_deplibs=yes
5319 ;;
5320
5321 netbsd*)
5322 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5323 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5324 else
5325 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5326 fi
5327 hardcode_libdir_flag_spec='-R$libdir'
5328 hardcode_direct=yes
5329 hardcode_shlibpath_var=no
5330 ;;
5331
5332 newsos6)
5333 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5334 hardcode_direct=yes
5335 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5336 hardcode_libdir_separator=:
5337 hardcode_shlibpath_var=no
5338 ;;
5339
5340 openbsd*)
5341 hardcode_direct=yes
5342 hardcode_shlibpath_var=no
5343 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5344 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5345 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5346 export_dynamic_flag_spec='${wl}-E'
5347 else
5348 case "$host_os" in
5349 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5350 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5351 hardcode_libdir_flag_spec='-R$libdir'
5352 ;;
5353 *)
5354 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5355 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5356 ;;
5357 esac
5358 fi
5359 ;;
5360
5361 os2*)
5362 hardcode_libdir_flag_spec='-L$libdir'
5363 hardcode_minus_L=yes
5364 allow_undefined_flag=unsupported
5365 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'
5366 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5367 ;;
5368
5369 osf3*)
5370 if test "$GCC" = yes; then
5371 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5372 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'
5373 else
5374 allow_undefined_flag=' -expect_unresolved \*'
5375 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'
5376 fi
5377 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5378 hardcode_libdir_separator=:
5379 ;;
5380
5381 osf4* | osf5*) # as osf3* with the addition of -msym flag
5382 if test "$GCC" = yes; then
5383 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5384 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'
5385 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5386 else
5387 allow_undefined_flag=' -expect_unresolved \*'
5388 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'
5389 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5390 $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'
5391
5392 #Both c and cxx compiler support -rpath directly
5393 hardcode_libdir_flag_spec='-rpath $libdir'
5394 fi
5395 hardcode_libdir_separator=:
5396 ;;
5397
5398 sco3.2v5*)
5399 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5400 hardcode_shlibpath_var=no
5401 runpath_var=LD_RUN_PATH
5402 hardcode_runpath_var=yes
5403 export_dynamic_flag_spec='${wl}-Bexport'
5404 ;;
5405
5406 solaris*)
5407 # gcc --version < 3.0 without binutils cannot create self contained
5408 # shared libraries reliably, requiring libgcc.a to resolve some of
5409 # the object symbols generated in some cases. Libraries that use
5410 # assert need libgcc.a to resolve __eprintf, for example. Linking
5411 # a copy of libgcc.a into every shared library to guarantee resolving
5412 # such symbols causes other problems: According to Tim Van Holder
5413 # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
5414 # (to the application) exception stack for one thing.
5415 no_undefined_flag=' -z defs'
5416 if test "$GCC" = yes; then
5417 case `$CC --version 2>/dev/null` in
5418 [12].*)
5419 cat <<EOF 1>&2
5420
5421 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5422 *** create self contained shared libraries on Solaris systems, without
5423 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5424 *** -no-undefined support, which will at least allow you to build shared
5425 *** libraries. However, you may find that when you link such libraries
5426 *** into an application without using GCC, you have to manually add
5427 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5428 *** upgrade to a newer version of GCC. Another option is to rebuild your
5429 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5430
5431 EOF
5432 no_undefined_flag=
5433 ;;
5434 esac
5435 fi
5436 # $CC -shared without GNU ld will not create a library from C++
5437 # object files and a static libstdc++, better avoid it by now
5438 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5439 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5440 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5441 hardcode_libdir_flag_spec='-R$libdir'
5442 hardcode_shlibpath_var=no
5443 case $host_os in
5444 solaris2.[0-5] | solaris2.[0-5].*) ;;
5445 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5446 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5447 esac
5448 link_all_deplibs=yes
5449 ;;
5450
5451 sunos4*)
5452 if test "x$host_vendor" = xsequent; then
5453 # Use $CC to link under sequent, because it throws in some extra .o
5454 # files that make .init and .fini sections work.
5455 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5456 else
5457 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5458 fi
5459 hardcode_libdir_flag_spec='-L$libdir'
5460 hardcode_direct=yes
5461 hardcode_minus_L=yes
5462 hardcode_shlibpath_var=no
5463 ;;
5464
5465 sysv4)
5466 if test "x$host_vendor" = xsno; then
5467 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5468 hardcode_direct=yes # is this really true???
5469 else
5470 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5471 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5472 fi
5473 runpath_var='LD_RUN_PATH'
5474 hardcode_shlibpath_var=no
5475 ;;
5476
5477 sysv4.3*)
5478 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5479 hardcode_shlibpath_var=no
5480 export_dynamic_flag_spec='-Bexport'
5481 ;;
5482
5483 sysv5*)
5484 no_undefined_flag=' -z text'
5485 # $CC -shared without GNU ld will not create a library from C++
5486 # object files and a static libstdc++, better avoid it by now
5487 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5488 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5489 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5490 hardcode_libdir_flag_spec=
5491 hardcode_shlibpath_var=no
5492 runpath_var='LD_RUN_PATH'
5493 ;;
5494
5495 uts4*)
5496 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5497 hardcode_libdir_flag_spec='-L$libdir'
5498 hardcode_shlibpath_var=no
5499 ;;
5500
5501 dgux*)
5502 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5503 hardcode_libdir_flag_spec='-L$libdir'
5504 hardcode_shlibpath_var=no
5505 ;;
5506
5507 sysv4*MP*)
5508 if test -d /usr/nec; then
5509 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5510 hardcode_shlibpath_var=no
5511 runpath_var=LD_RUN_PATH
5512 hardcode_runpath_var=yes
5513 ld_shlibs=yes
5514 fi
5515 ;;
5516
5517 sysv4.2uw2*)
5518 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5519 hardcode_direct=yes
5520 hardcode_minus_L=no
5521 hardcode_shlibpath_var=no
5522 hardcode_runpath_var=yes
5523 runpath_var=LD_RUN_PATH
5524 ;;
5525
5526 sysv5uw7* | unixware7*)
5527 no_undefined_flag='${wl}-z ${wl}text'
5528 if test "$GCC" = yes; then
5529 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5530 else
5531 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5532 fi
5533 runpath_var='LD_RUN_PATH'
5534 hardcode_shlibpath_var=no
5535 ;;
5536
5537 *)
5538 ld_shlibs=no
5539 ;;
5540 esac
5541 fi
5542 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5543 echo "${ECHO_T}$ld_shlibs" >&6
5544 test "$ld_shlibs" = no && can_build_shared=no
5545 ##
5546 ## END FIXME
5547
5548 ## FIXME: this should be a separate macro
5549 ##
5550 # Check hardcoding attributes.
5551 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5552 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5553 hardcode_action=
5554 if test -n "$hardcode_libdir_flag_spec" || \
5555 test -n "$runpath_var"; then
5556
5557 # We can hardcode non-existant directories.
5558 if test "$hardcode_direct" != no &&
5559 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5560 # have to relink, otherwise we might link with an installed library
5561 # when we should be linking with a yet-to-be-installed one
5562 ## test "$hardcode_shlibpath_var" != no &&
5563 test "$hardcode_minus_L" != no; then
5564 # Linking always hardcodes the temporary library directory.
5565 hardcode_action=relink
5566 else
5567 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5568 hardcode_action=immediate
5569 fi
5570 else
5571 # We cannot hardcode anything, or else we can only hardcode existing
5572 # directories.
5573 hardcode_action=unsupported
5574 fi
5575 echo "$as_me:$LINENO: result: $hardcode_action" >&5
5576 echo "${ECHO_T}$hardcode_action" >&6
5577 ##
5578 ## END FIXME
5579
5580 ## FIXME: this should be a separate macro
5581 ##
5582 striplib=
5583 old_striplib=
5584 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5585 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5586 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5587 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5588 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5589 echo "$as_me:$LINENO: result: yes" >&5
5590 echo "${ECHO_T}yes" >&6
5591 else
5592 echo "$as_me:$LINENO: result: no" >&5
5593 echo "${ECHO_T}no" >&6
5594 fi
5595 ##
5596 ## END FIXME
5597
5598 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5599 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5600
5601 ## FIXME: this should be a separate macro
5602 ##
5603 # PORTME Fill in your ld.so characteristics
5604 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5605 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5606 library_names_spec=
5607 libname_spec='lib$name'
5608 soname_spec=
5609 postinstall_cmds=
5610 postuninstall_cmds=
5611 finish_cmds=
5612 finish_eval=
5613 shlibpath_var=
5614 shlibpath_overrides_runpath=unknown
5615 version_type=none
5616 dynamic_linker="$host_os ld.so"
5617 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5618 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5619
5620 case $host_os in
5621 aix3*)
5622 version_type=linux
5623 library_names_spec='${libname}${release}.so$versuffix $libname.a'
5624 shlibpath_var=LIBPATH
5625
5626 # AIX has no versioning support, so we append a major version to the name.
5627 soname_spec='${libname}${release}.so$major'
5628 ;;
5629
5630 aix4* | aix5*)
5631 version_type=linux
5632 if test "$host_cpu" = ia64; then
5633 # AIX 5 supports IA64
5634 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5635 shlibpath_var=LD_LIBRARY_PATH
5636 else
5637 # With GCC up to 2.95.x, collect2 would create an import file
5638 # for dependence libraries. The import file would start with
5639 # the line `#! .'. This would cause the generated library to
5640 # depend on `.', always an invalid library. This was fixed in
5641 # development snapshots of GCC prior to 3.0.
5642 case $host_os in
5643 aix4 | aix4.[01] | aix4.[01].*)
5644 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5645 echo ' yes '
5646 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5647 :
5648 else
5649 can_build_shared=no
5650 fi
5651 ;;
5652 esac
5653 # AIX (on Power*) has no versioning support, so currently we can
5654 # not hardcode correct soname into executable. Probably we can
5655 # add versioning support to collect2, so additional links can
5656 # be useful in future.
5657 if test "$aix_use_runtimelinking" = yes; then
5658 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5659 # instead of lib<name>.a to let people know that these are not
5660 # typical AIX shared libraries.
5661 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5662 else
5663 # We preserve .a as extension for shared libraries through AIX4.2
5664 # and later when we are not doing run time linking.
5665 library_names_spec='${libname}${release}.a $libname.a'
5666 soname_spec='${libname}${release}.so$major'
5667 fi
5668 shlibpath_var=LIBPATH
5669 fi
5670 ;;
5671
5672 amigaos*)
5673 library_names_spec='$libname.ixlibrary $libname.a'
5674 # Create ${libname}_ixlibrary.a entries in /sys/libs.
5675 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'
5676 ;;
5677
5678 beos*)
5679 library_names_spec='${libname}.so'
5680 dynamic_linker="$host_os ld.so"
5681 shlibpath_var=LIBRARY_PATH
5682 ;;
5683
5684 bsdi4*)
5685 version_type=linux
5686 need_version=no
5687 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5688 soname_spec='${libname}${release}.so$major'
5689 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5690 shlibpath_var=LD_LIBRARY_PATH
5691 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5692 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5693 export_dynamic_flag_spec=-rdynamic
5694 # the default ld.so.conf also contains /usr/contrib/lib and
5695 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5696 # libtool to hard-code these into programs
5697 ;;
5698
5699 cygwin* | mingw* | pw32*)
5700 version_type=windows
5701 need_version=no
5702 need_lib_prefix=no
5703 case $GCC,$host_os in
5704 yes,cygwin*)
5705 library_names_spec='$libname.dll.a'
5706 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5707 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5708 dldir=$destdir/`dirname \$dlpath`~
5709 test -d \$dldir || mkdir -p \$dldir~
5710 $install_prog .libs/$dlname \$dldir/$dlname'
5711 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5712 dlpath=$dir/\$dldll~
5713 $rm \$dlpath'
5714 ;;
5715 yes,mingw*)
5716 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5717 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5718 ;;
5719 yes,pw32*)
5720 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5721 ;;
5722 *)
5723 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5724 ;;
5725 esac
5726 dynamic_linker='Win32 ld.exe'
5727 # FIXME: first we should search . and the directory the executable is in
5728 shlibpath_var=PATH
5729 ;;
5730
5731 darwin* | rhapsody*)
5732 dynamic_linker="$host_os dyld"
5733 version_type=darwin
5734 need_lib_prefix=no
5735 need_version=no
5736 # FIXME: Relying on posixy $() will cause problems for
5737 # cross-compilation, but unfortunately the echo tests do not
5738 # yet detect zsh echo's removal of \ escapes.
5739 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)'
5740 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5741 shlibpath_overrides_runpath=yes
5742 shlibpath_var=DYLD_LIBRARY_PATH
5743 ;;
5744
5745 freebsd1*)
5746 dynamic_linker=no
5747 ;;
5748
5749 freebsd*)
5750 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5751 version_type=freebsd-$objformat
5752 case $version_type in
5753 freebsd-elf*)
5754 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5755 need_version=no
5756 need_lib_prefix=no
5757 ;;
5758 freebsd-*)
5759 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5760 need_version=yes
5761 ;;
5762 esac
5763 shlibpath_var=LD_LIBRARY_PATH
5764 case $host_os in
5765 freebsd2*)
5766 shlibpath_overrides_runpath=yes
5767 ;;
5768 *)
5769 shlibpath_overrides_runpath=no
5770 hardcode_into_libs=yes
5771 ;;
5772 esac
5773 ;;
5774
5775 gnu*)
5776 version_type=linux
5777 need_lib_prefix=no
5778 need_version=no
5779 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
5780 soname_spec='${libname}${release}.so$major'
5781 shlibpath_var=LD_LIBRARY_PATH
5782 hardcode_into_libs=yes
5783 ;;
5784
5785 hpux9* | hpux10* | hpux11*)
5786 # Give a soname corresponding to the major version so that dld.sl refuses to
5787 # link against other versions.
5788 dynamic_linker="$host_os dld.sl"
5789 version_type=sunos
5790 need_lib_prefix=no
5791 need_version=no
5792 shlibpath_var=SHLIB_PATH
5793 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
5794 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
5795 soname_spec='${libname}${release}.sl$major'
5796 # HP-UX runs *really* slowly unless shared libraries are mode 555.
5797 postinstall_cmds='chmod 555 $lib'
5798 ;;
5799
5800 irix5* | irix6*)
5801 version_type=irix
5802 need_lib_prefix=no
5803 need_version=no
5804 soname_spec='${libname}${release}.so$major'
5805 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
5806 case $host_os in
5807 irix5*)
5808 libsuff= shlibsuff=
5809 ;;
5810 *)
5811 case $LD in # libtool.m4 will add one of these switches to LD
5812 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
5813 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
5814 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
5815 *) libsuff= shlibsuff= libmagic=never-match;;
5816 esac
5817 ;;
5818 esac
5819 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
5820 shlibpath_overrides_runpath=no
5821 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
5822 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
5823 ;;
5824
5825 # No shared lib support for Linux oldld, aout, or coff.
5826 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
5827 dynamic_linker=no
5828 ;;
5829
5830 # This must be Linux ELF.
5831 linux-gnu*)
5832 version_type=linux
5833 need_lib_prefix=no
5834 need_version=no
5835 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5836 soname_spec='${libname}${release}.so$major'
5837 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
5838 shlibpath_var=LD_LIBRARY_PATH
5839 shlibpath_overrides_runpath=no
5840 # This implies no fast_install, which is unacceptable.
5841 # Some rework will be needed to allow for fast_install
5842 # before this can be enabled.
5843 hardcode_into_libs=yes
5844
5845 # We used to test for /lib/ld.so.1 and disable shared libraries on
5846 # powerpc, because MkLinux only supported shared libraries with the
5847 # GNU dynamic linker. Since this was broken with cross compilers,
5848 # most powerpc-linux boxes support dynamic linking these days and
5849 # people can always --disable-shared, the test was removed, and we
5850 # assume the GNU/Linux dynamic linker is in use.
5851 dynamic_linker='GNU/Linux ld.so'
5852 ;;
5853
5854 netbsd*)
5855 version_type=sunos
5856 need_lib_prefix=no
5857 need_version=no
5858 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5859 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5860 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5861 dynamic_linker='NetBSD (a.out) ld.so'
5862 else
5863 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
5864 soname_spec='${libname}${release}.so$major'
5865 dynamic_linker='NetBSD ld.elf_so'
5866 fi
5867 shlibpath_var=LD_LIBRARY_PATH
5868 shlibpath_overrides_runpath=yes
5869 hardcode_into_libs=yes
5870 ;;
5871
5872 newsos6)
5873 version_type=linux
5874 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5875 shlibpath_var=LD_LIBRARY_PATH
5876 shlibpath_overrides_runpath=yes
5877 ;;
5878
5879 openbsd*)
5880 version_type=sunos
5881 need_lib_prefix=no
5882 need_version=no
5883 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5884 case "$host_os" in
5885 openbsd2.[89] | openbsd2.[89].*)
5886 shlibpath_overrides_runpath=no
5887 ;;
5888 *)
5889 shlibpath_overrides_runpath=yes
5890 ;;
5891 esac
5892 else
5893 shlibpath_overrides_runpath=yes
5894 fi
5895 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5896 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
5897 shlibpath_var=LD_LIBRARY_PATH
5898 ;;
5899
5900 os2*)
5901 libname_spec='$name'
5902 need_lib_prefix=no
5903 library_names_spec='$libname.dll $libname.a'
5904 dynamic_linker='OS/2 ld.exe'
5905 shlibpath_var=LIBPATH
5906 ;;
5907
5908 osf3* | osf4* | osf5*)
5909 version_type=osf
5910 need_version=no
5911 soname_spec='${libname}${release}.so'
5912 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5913 shlibpath_var=LD_LIBRARY_PATH
5914 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
5915 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
5916 ;;
5917
5918 sco3.2v5*)
5919 version_type=osf
5920 soname_spec='${libname}${release}.so$major'
5921 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5922 shlibpath_var=LD_LIBRARY_PATH
5923 ;;
5924
5925 solaris*)
5926 version_type=linux
5927 need_lib_prefix=no
5928 need_version=no
5929 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5930 soname_spec='${libname}${release}.so$major'
5931 shlibpath_var=LD_LIBRARY_PATH
5932 shlibpath_overrides_runpath=yes
5933 hardcode_into_libs=yes
5934 # ldd complains unless libraries are executable
5935 postinstall_cmds='chmod +x $lib'
5936 ;;
5937
5938 sunos4*)
5939 version_type=sunos
5940 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
5941 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
5942 shlibpath_var=LD_LIBRARY_PATH
5943 shlibpath_overrides_runpath=yes
5944 if test "$with_gnu_ld" = yes; then
5945 need_lib_prefix=no
5946 fi
5947 need_version=yes
5948 ;;
5949
5950 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5951 version_type=linux
5952 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5953 soname_spec='${libname}${release}.so$major'
5954 shlibpath_var=LD_LIBRARY_PATH
5955 case $host_vendor in
5956 sni)
5957 shlibpath_overrides_runpath=no
5958 ;;
5959 motorola)
5960 need_lib_prefix=no
5961 need_version=no
5962 shlibpath_overrides_runpath=no
5963 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
5964 ;;
5965 esac
5966 ;;
5967
5968 uts4*)
5969 version_type=linux
5970 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5971 soname_spec='${libname}${release}.so$major'
5972 shlibpath_var=LD_LIBRARY_PATH
5973 ;;
5974
5975 dgux*)
5976 version_type=linux
5977 need_lib_prefix=no
5978 need_version=no
5979 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5980 soname_spec='${libname}${release}.so$major'
5981 shlibpath_var=LD_LIBRARY_PATH
5982 ;;
5983
5984 sysv4*MP*)
5985 if test -d /usr/nec ;then
5986 version_type=linux
5987 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
5988 soname_spec='$libname.so.$major'
5989 shlibpath_var=LD_LIBRARY_PATH
5990 fi
5991 ;;
5992
5993 *)
5994 dynamic_linker=no
5995 ;;
5996 esac
5997 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
5998 echo "${ECHO_T}$dynamic_linker" >&6
5999 test "$dynamic_linker" = no && can_build_shared=no
6000 ##
6001 ## END FIXME
6002
6003 ## FIXME: this should be a separate macro
6004 ##
6005 # Report the final consequences.
6006 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6007 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6008 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6009 echo "${ECHO_T}$can_build_shared" >&6
6010 ##
6011 ## END FIXME
6012
6013 ## FIXME: this should be a separate macro
6014 ##
6015 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6016 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6017 test "$can_build_shared" = "no" && enable_shared=no
6018
6019 # On AIX, shared libraries and static libraries use the same namespace, and
6020 # are all built from PIC.
6021 case "$host_os" in
6022 aix3*)
6023 test "$enable_shared" = yes && enable_static=no
6024 if test -n "$RANLIB"; then
6025 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6026 postinstall_cmds='$RANLIB $lib'
6027 fi
6028 ;;
6029
6030 aix4*)
6031 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6032 test "$enable_shared" = yes && enable_static=no
6033 fi
6034 ;;
6035 esac
6036 echo "$as_me:$LINENO: result: $enable_shared" >&5
6037 echo "${ECHO_T}$enable_shared" >&6
6038 ##
6039 ## END FIXME
6040
6041 ## FIXME: this should be a separate macro
6042 ##
6043 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6044 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6045 # Make sure either enable_shared or enable_static is yes.
6046 test "$enable_shared" = yes || enable_static=yes
6047 echo "$as_me:$LINENO: result: $enable_static" >&5
6048 echo "${ECHO_T}$enable_static" >&6
6049 ##
6050 ## END FIXME
6051
6052 if test "$hardcode_action" = relink; then
6053 # Fast installation is not supported
6054 enable_fast_install=no
6055 elif test "$shlibpath_overrides_runpath" = yes ||
6056 test "$enable_shared" = no; then
6057 # Fast installation is not necessary
6058 enable_fast_install=needless
6059 fi
6060
6061 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6062 if test "$GCC" = yes; then
6063 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6064 fi
6065
6066 if test "x$enable_dlopen" != xyes; then
6067 enable_dlopen=unknown
6068 enable_dlopen_self=unknown
6069 enable_dlopen_self_static=unknown
6070 else
6071 lt_cv_dlopen=no
6072 lt_cv_dlopen_libs=
6073
6074 case $host_os in
6075 beos*)
6076 lt_cv_dlopen="load_add_on"
6077 lt_cv_dlopen_libs=
6078 lt_cv_dlopen_self=yes
6079 ;;
6080
6081 cygwin* | mingw* | pw32*)
6082 lt_cv_dlopen="LoadLibrary"
6083 lt_cv_dlopen_libs=
6084 ;;
6085
6086 *)
6087 echo "$as_me:$LINENO: checking for shl_load" >&5
6088 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6089 if test "${ac_cv_func_shl_load+set}" = set; then
6090 echo $ECHO_N "(cached) $ECHO_C" >&6
6091 else
6092 cat >conftest.$ac_ext <<_ACEOF
6093 #line $LINENO "configure"
6094 /* confdefs.h. */
6095 _ACEOF
6096 cat confdefs.h >>conftest.$ac_ext
6097 cat >>conftest.$ac_ext <<_ACEOF
6098 /* end confdefs.h. */
6099 /* System header to define __stub macros and hopefully few prototypes,
6100 which can conflict with char shl_load (); below.
6101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6102 <limits.h> exists even on freestanding compilers. */
6103 #ifdef __STDC__
6104 # include <limits.h>
6105 #else
6106 # include <assert.h>
6107 #endif
6108 /* Override any gcc2 internal prototype to avoid an error. */
6109 #ifdef __cplusplus
6110 extern "C"
6111 {
6112 #endif
6113 /* We use char because int might match the return type of a gcc2
6114 builtin and then its argument prototype would still apply. */
6115 char shl_load ();
6116 /* The GNU C library defines this for functions which it implements
6117 to always fail with ENOSYS. Some functions are actually named
6118 something starting with __ and the normal name is an alias. */
6119 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6120 choke me
6121 #else
6122 char (*f) () = shl_load;
6123 #endif
6124 #ifdef __cplusplus
6125 }
6126 #endif
6127
6128 int
6129 main ()
6130 {
6131 return f != shl_load;
6132 ;
6133 return 0;
6134 }
6135 _ACEOF
6136 rm -f conftest.$ac_objext conftest$ac_exeext
6137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6138 (eval $ac_link) 2>&5
6139 ac_status=$?
6140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6141 (exit $ac_status); } &&
6142 { ac_try='test -s conftest$ac_exeext'
6143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6144 (eval $ac_try) 2>&5
6145 ac_status=$?
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); }; }; then
6148 ac_cv_func_shl_load=yes
6149 else
6150 echo "$as_me: failed program was:" >&5
6151 sed 's/^/| /' conftest.$ac_ext >&5
6152
6153 ac_cv_func_shl_load=no
6154 fi
6155 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6156 fi
6157 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6158 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6159 if test $ac_cv_func_shl_load = yes; then
6160 lt_cv_dlopen="shl_load"
6161 else
6162 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6163 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6164 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6165 echo $ECHO_N "(cached) $ECHO_C" >&6
6166 else
6167 ac_check_lib_save_LIBS=$LIBS
6168 LIBS="-ldld $LIBS"
6169 cat >conftest.$ac_ext <<_ACEOF
6170 #line $LINENO "configure"
6171 /* confdefs.h. */
6172 _ACEOF
6173 cat confdefs.h >>conftest.$ac_ext
6174 cat >>conftest.$ac_ext <<_ACEOF
6175 /* end confdefs.h. */
6176
6177 /* Override any gcc2 internal prototype to avoid an error. */
6178 #ifdef __cplusplus
6179 extern "C"
6180 #endif
6181 /* We use char because int might match the return type of a gcc2
6182 builtin and then its argument prototype would still apply. */
6183 char shl_load ();
6184 int
6185 main ()
6186 {
6187 shl_load ();
6188 ;
6189 return 0;
6190 }
6191 _ACEOF
6192 rm -f conftest.$ac_objext conftest$ac_exeext
6193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6194 (eval $ac_link) 2>&5
6195 ac_status=$?
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); } &&
6198 { ac_try='test -s conftest$ac_exeext'
6199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6200 (eval $ac_try) 2>&5
6201 ac_status=$?
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); }; }; then
6204 ac_cv_lib_dld_shl_load=yes
6205 else
6206 echo "$as_me: failed program was:" >&5
6207 sed 's/^/| /' conftest.$ac_ext >&5
6208
6209 ac_cv_lib_dld_shl_load=no
6210 fi
6211 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6212 LIBS=$ac_check_lib_save_LIBS
6213 fi
6214 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6215 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6216 if test $ac_cv_lib_dld_shl_load = yes; then
6217 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6218 else
6219 echo "$as_me:$LINENO: checking for dlopen" >&5
6220 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6221 if test "${ac_cv_func_dlopen+set}" = set; then
6222 echo $ECHO_N "(cached) $ECHO_C" >&6
6223 else
6224 cat >conftest.$ac_ext <<_ACEOF
6225 #line $LINENO "configure"
6226 /* confdefs.h. */
6227 _ACEOF
6228 cat confdefs.h >>conftest.$ac_ext
6229 cat >>conftest.$ac_ext <<_ACEOF
6230 /* end confdefs.h. */
6231 /* System header to define __stub macros and hopefully few prototypes,
6232 which can conflict with char dlopen (); below.
6233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6234 <limits.h> exists even on freestanding compilers. */
6235 #ifdef __STDC__
6236 # include <limits.h>
6237 #else
6238 # include <assert.h>
6239 #endif
6240 /* Override any gcc2 internal prototype to avoid an error. */
6241 #ifdef __cplusplus
6242 extern "C"
6243 {
6244 #endif
6245 /* We use char because int might match the return type of a gcc2
6246 builtin and then its argument prototype would still apply. */
6247 char dlopen ();
6248 /* The GNU C library defines this for functions which it implements
6249 to always fail with ENOSYS. Some functions are actually named
6250 something starting with __ and the normal name is an alias. */
6251 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6252 choke me
6253 #else
6254 char (*f) () = dlopen;
6255 #endif
6256 #ifdef __cplusplus
6257 }
6258 #endif
6259
6260 int
6261 main ()
6262 {
6263 return f != dlopen;
6264 ;
6265 return 0;
6266 }
6267 _ACEOF
6268 rm -f conftest.$ac_objext conftest$ac_exeext
6269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6270 (eval $ac_link) 2>&5
6271 ac_status=$?
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); } &&
6274 { ac_try='test -s conftest$ac_exeext'
6275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6276 (eval $ac_try) 2>&5
6277 ac_status=$?
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); }; }; then
6280 ac_cv_func_dlopen=yes
6281 else
6282 echo "$as_me: failed program was:" >&5
6283 sed 's/^/| /' conftest.$ac_ext >&5
6284
6285 ac_cv_func_dlopen=no
6286 fi
6287 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6288 fi
6289 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6290 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6291 if test $ac_cv_func_dlopen = yes; then
6292 lt_cv_dlopen="dlopen"
6293 else
6294 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6295 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6296 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 else
6299 ac_check_lib_save_LIBS=$LIBS
6300 LIBS="-ldl $LIBS"
6301 cat >conftest.$ac_ext <<_ACEOF
6302 #line $LINENO "configure"
6303 /* confdefs.h. */
6304 _ACEOF
6305 cat confdefs.h >>conftest.$ac_ext
6306 cat >>conftest.$ac_ext <<_ACEOF
6307 /* end confdefs.h. */
6308
6309 /* Override any gcc2 internal prototype to avoid an error. */
6310 #ifdef __cplusplus
6311 extern "C"
6312 #endif
6313 /* We use char because int might match the return type of a gcc2
6314 builtin and then its argument prototype would still apply. */
6315 char dlopen ();
6316 int
6317 main ()
6318 {
6319 dlopen ();
6320 ;
6321 return 0;
6322 }
6323 _ACEOF
6324 rm -f conftest.$ac_objext conftest$ac_exeext
6325 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6326 (eval $ac_link) 2>&5
6327 ac_status=$?
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); } &&
6330 { ac_try='test -s conftest$ac_exeext'
6331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6332 (eval $ac_try) 2>&5
6333 ac_status=$?
6334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6335 (exit $ac_status); }; }; then
6336 ac_cv_lib_dl_dlopen=yes
6337 else
6338 echo "$as_me: failed program was:" >&5
6339 sed 's/^/| /' conftest.$ac_ext >&5
6340
6341 ac_cv_lib_dl_dlopen=no
6342 fi
6343 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6344 LIBS=$ac_check_lib_save_LIBS
6345 fi
6346 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6347 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6348 if test $ac_cv_lib_dl_dlopen = yes; then
6349 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6350 else
6351 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6352 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6353 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
6355 else
6356 ac_check_lib_save_LIBS=$LIBS
6357 LIBS="-lsvld $LIBS"
6358 cat >conftest.$ac_ext <<_ACEOF
6359 #line $LINENO "configure"
6360 /* confdefs.h. */
6361 _ACEOF
6362 cat confdefs.h >>conftest.$ac_ext
6363 cat >>conftest.$ac_ext <<_ACEOF
6364 /* end confdefs.h. */
6365
6366 /* Override any gcc2 internal prototype to avoid an error. */
6367 #ifdef __cplusplus
6368 extern "C"
6369 #endif
6370 /* We use char because int might match the return type of a gcc2
6371 builtin and then its argument prototype would still apply. */
6372 char dlopen ();
6373 int
6374 main ()
6375 {
6376 dlopen ();
6377 ;
6378 return 0;
6379 }
6380 _ACEOF
6381 rm -f conftest.$ac_objext conftest$ac_exeext
6382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6383 (eval $ac_link) 2>&5
6384 ac_status=$?
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); } &&
6387 { ac_try='test -s conftest$ac_exeext'
6388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6389 (eval $ac_try) 2>&5
6390 ac_status=$?
6391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6392 (exit $ac_status); }; }; then
6393 ac_cv_lib_svld_dlopen=yes
6394 else
6395 echo "$as_me: failed program was:" >&5
6396 sed 's/^/| /' conftest.$ac_ext >&5
6397
6398 ac_cv_lib_svld_dlopen=no
6399 fi
6400 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6401 LIBS=$ac_check_lib_save_LIBS
6402 fi
6403 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6404 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6405 if test $ac_cv_lib_svld_dlopen = yes; then
6406 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6407 else
6408 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6409 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6410 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
6412 else
6413 ac_check_lib_save_LIBS=$LIBS
6414 LIBS="-ldld $LIBS"
6415 cat >conftest.$ac_ext <<_ACEOF
6416 #line $LINENO "configure"
6417 /* confdefs.h. */
6418 _ACEOF
6419 cat confdefs.h >>conftest.$ac_ext
6420 cat >>conftest.$ac_ext <<_ACEOF
6421 /* end confdefs.h. */
6422
6423 /* Override any gcc2 internal prototype to avoid an error. */
6424 #ifdef __cplusplus
6425 extern "C"
6426 #endif
6427 /* We use char because int might match the return type of a gcc2
6428 builtin and then its argument prototype would still apply. */
6429 char dld_link ();
6430 int
6431 main ()
6432 {
6433 dld_link ();
6434 ;
6435 return 0;
6436 }
6437 _ACEOF
6438 rm -f conftest.$ac_objext conftest$ac_exeext
6439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6440 (eval $ac_link) 2>&5
6441 ac_status=$?
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); } &&
6444 { ac_try='test -s conftest$ac_exeext'
6445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6446 (eval $ac_try) 2>&5
6447 ac_status=$?
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); }; }; then
6450 ac_cv_lib_dld_dld_link=yes
6451 else
6452 echo "$as_me: failed program was:" >&5
6453 sed 's/^/| /' conftest.$ac_ext >&5
6454
6455 ac_cv_lib_dld_dld_link=no
6456 fi
6457 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6458 LIBS=$ac_check_lib_save_LIBS
6459 fi
6460 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6461 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6462 if test $ac_cv_lib_dld_dld_link = yes; then
6463 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6464 fi
6465
6466
6467 fi
6468
6469
6470 fi
6471
6472
6473 fi
6474
6475
6476 fi
6477
6478
6479 fi
6480
6481 ;;
6482 esac
6483
6484 if test "x$lt_cv_dlopen" != xno; then
6485 enable_dlopen=yes
6486 else
6487 enable_dlopen=no
6488 fi
6489
6490 case $lt_cv_dlopen in
6491 dlopen)
6492 save_CPPFLAGS="$CPPFLAGS"
6493 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6494
6495 save_LDFLAGS="$LDFLAGS"
6496 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6497
6498 save_LIBS="$LIBS"
6499 LIBS="$lt_cv_dlopen_libs $LIBS"
6500
6501 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6502 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6503 if test "${lt_cv_dlopen_self+set}" = set; then
6504 echo $ECHO_N "(cached) $ECHO_C" >&6
6505 else
6506 if test "$cross_compiling" = yes; then :
6507 lt_cv_dlopen_self=cross
6508 else
6509 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6510 lt_status=$lt_dlunknown
6511 cat > conftest.$ac_ext <<EOF
6512 #line 6512 "configure"
6513 #include "confdefs.h"
6514
6515 #if HAVE_DLFCN_H
6516 #include <dlfcn.h>
6517 #endif
6518
6519 #include <stdio.h>
6520
6521 #ifdef RTLD_GLOBAL
6522 # define LT_DLGLOBAL RTLD_GLOBAL
6523 #else
6524 # ifdef DL_GLOBAL
6525 # define LT_DLGLOBAL DL_GLOBAL
6526 # else
6527 # define LT_DLGLOBAL 0
6528 # endif
6529 #endif
6530
6531 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6532 find out it does not work in some platform. */
6533 #ifndef LT_DLLAZY_OR_NOW
6534 # ifdef RTLD_LAZY
6535 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6536 # else
6537 # ifdef DL_LAZY
6538 # define LT_DLLAZY_OR_NOW DL_LAZY
6539 # else
6540 # ifdef RTLD_NOW
6541 # define LT_DLLAZY_OR_NOW RTLD_NOW
6542 # else
6543 # ifdef DL_NOW
6544 # define LT_DLLAZY_OR_NOW DL_NOW
6545 # else
6546 # define LT_DLLAZY_OR_NOW 0
6547 # endif
6548 # endif
6549 # endif
6550 # endif
6551 #endif
6552
6553 #ifdef __cplusplus
6554 extern "C" void exit (int);
6555 #endif
6556
6557 void fnord() { int i=42;}
6558 int main ()
6559 {
6560 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6561 int status = $lt_dlunknown;
6562
6563 if (self)
6564 {
6565 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6566 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6567 /* dlclose (self); */
6568 }
6569
6570 exit (status);
6571 }
6572 EOF
6573 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6574 (eval $ac_link) 2>&5
6575 ac_status=$?
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6578 (./conftest; exit; ) 2>/dev/null
6579 lt_status=$?
6580 case x$lt_status in
6581 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6582 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6583 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6584 esac
6585 else :
6586 # compilation failed
6587 lt_cv_dlopen_self=no
6588 fi
6589 fi
6590 rm -fr conftest*
6591
6592
6593 fi
6594 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6595 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6596
6597 if test "x$lt_cv_dlopen_self" = xyes; then
6598 LDFLAGS="$LDFLAGS $link_static_flag"
6599 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6600 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6601 if test "${lt_cv_dlopen_self_static+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
6603 else
6604 if test "$cross_compiling" = yes; then :
6605 lt_cv_dlopen_self_static=cross
6606 else
6607 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6608 lt_status=$lt_dlunknown
6609 cat > conftest.$ac_ext <<EOF
6610 #line 6610 "configure"
6611 #include "confdefs.h"
6612
6613 #if HAVE_DLFCN_H
6614 #include <dlfcn.h>
6615 #endif
6616
6617 #include <stdio.h>
6618
6619 #ifdef RTLD_GLOBAL
6620 # define LT_DLGLOBAL RTLD_GLOBAL
6621 #else
6622 # ifdef DL_GLOBAL
6623 # define LT_DLGLOBAL DL_GLOBAL
6624 # else
6625 # define LT_DLGLOBAL 0
6626 # endif
6627 #endif
6628
6629 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6630 find out it does not work in some platform. */
6631 #ifndef LT_DLLAZY_OR_NOW
6632 # ifdef RTLD_LAZY
6633 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6634 # else
6635 # ifdef DL_LAZY
6636 # define LT_DLLAZY_OR_NOW DL_LAZY
6637 # else
6638 # ifdef RTLD_NOW
6639 # define LT_DLLAZY_OR_NOW RTLD_NOW
6640 # else
6641 # ifdef DL_NOW
6642 # define LT_DLLAZY_OR_NOW DL_NOW
6643 # else
6644 # define LT_DLLAZY_OR_NOW 0
6645 # endif
6646 # endif
6647 # endif
6648 # endif
6649 #endif
6650
6651 #ifdef __cplusplus
6652 extern "C" void exit (int);
6653 #endif
6654
6655 void fnord() { int i=42;}
6656 int main ()
6657 {
6658 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6659 int status = $lt_dlunknown;
6660
6661 if (self)
6662 {
6663 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6664 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6665 /* dlclose (self); */
6666 }
6667
6668 exit (status);
6669 }
6670 EOF
6671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6672 (eval $ac_link) 2>&5
6673 ac_status=$?
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6676 (./conftest; exit; ) 2>/dev/null
6677 lt_status=$?
6678 case x$lt_status in
6679 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6680 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6681 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6682 esac
6683 else :
6684 # compilation failed
6685 lt_cv_dlopen_self_static=no
6686 fi
6687 fi
6688 rm -fr conftest*
6689
6690
6691 fi
6692 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6693 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6694 fi
6695
6696 CPPFLAGS="$save_CPPFLAGS"
6697 LDFLAGS="$save_LDFLAGS"
6698 LIBS="$save_LIBS"
6699 ;;
6700 esac
6701
6702 case $lt_cv_dlopen_self in
6703 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6704 *) enable_dlopen_self=unknown ;;
6705 esac
6706
6707 case $lt_cv_dlopen_self_static in
6708 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6709 *) enable_dlopen_self_static=unknown ;;
6710 esac
6711 fi
6712
6713
6714 ## FIXME: this should be a separate macro
6715 ##
6716 if test "$enable_shared" = yes && test "$GCC" = yes; then
6717 case $archive_cmds in
6718 *'~'*)
6719 # FIXME: we may have to deal with multi-command sequences.
6720 ;;
6721 '$CC '*)
6722 # Test whether the compiler implicitly links with -lc since on some
6723 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6724 # to ld, don't add -lc before -lgcc.
6725 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6726 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6727 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6728 echo $ECHO_N "(cached) $ECHO_C" >&6
6729 else
6730 $rm conftest*
6731 echo 'static int dummy;' > conftest.$ac_ext
6732
6733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6734 (eval $ac_compile) 2>&5
6735 ac_status=$?
6736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737 (exit $ac_status); }; then
6738 soname=conftest
6739 lib=conftest
6740 libobjs=conftest.$ac_objext
6741 deplibs=
6742 wl=$lt_cv_prog_cc_wl
6743 compiler_flags=-v
6744 linker_flags=-v
6745 verstring=
6746 output_objdir=.
6747 libname=conftest
6748 save_allow_undefined_flag=$allow_undefined_flag
6749 allow_undefined_flag=
6750 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6751 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6752 ac_status=$?
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); }
6755 then
6756 lt_cv_archive_cmds_need_lc=no
6757 else
6758 lt_cv_archive_cmds_need_lc=yes
6759 fi
6760 allow_undefined_flag=$save_allow_undefined_flag
6761 else
6762 cat conftest.err 1>&5
6763 fi
6764 fi
6765
6766 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6767 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6768 ;;
6769 esac
6770 fi
6771 need_lc=${lt_cv_archive_cmds_need_lc-yes}
6772 ##
6773 ## END FIXME
6774
6775 ## FIXME: this should be a separate macro
6776 ##
6777 # The second clause should only fire when bootstrapping the
6778 # libtool distribution, otherwise you forgot to ship ltmain.sh
6779 # with your package, and you will get complaints that there are
6780 # no rules to generate ltmain.sh.
6781 if test -f "$ltmain"; then
6782 :
6783 else
6784 # If there is no Makefile yet, we rely on a make rule to execute
6785 # `config.status --recheck' to rerun these tests and create the
6786 # libtool script then.
6787 test -f Makefile && make "$ltmain"
6788 fi
6789
6790 if test -f "$ltmain"; then
6791 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6792 $rm -f "${ofile}T"
6793
6794 echo creating $ofile
6795
6796 # Now quote all the things that may contain metacharacters while being
6797 # careful not to overquote the AC_SUBSTed values. We take copies of the
6798 # variables and quote the copies for generation of the libtool script.
6799 for var in echo old_CC old_CFLAGS \
6800 AR AR_FLAGS CC LD LN_S NM SHELL \
6801 reload_flag reload_cmds wl \
6802 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
6803 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
6804 library_names_spec soname_spec \
6805 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
6806 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
6807 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
6808 old_striplib striplib file_magic_cmd export_symbols_cmds \
6809 deplibs_check_method allow_undefined_flag no_undefined_flag \
6810 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
6811 global_symbol_to_c_name_address \
6812 hardcode_libdir_flag_spec hardcode_libdir_separator \
6813 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
6814 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
6815
6816 case $var in
6817 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
6818 old_postinstall_cmds | old_postuninstall_cmds | \
6819 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
6820 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
6821 postinstall_cmds | postuninstall_cmds | \
6822 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
6823 # Double-quote double-evaled strings.
6824 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
6825 ;;
6826 *)
6827 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
6828 ;;
6829 esac
6830 done
6831
6832 cat <<__EOF__ > "${ofile}T"
6833 #! $SHELL
6834
6835 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
6836 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
6837 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
6838 #
6839 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
6840 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6841 #
6842 # This program is free software; you can redistribute it and/or modify
6843 # it under the terms of the GNU General Public License as published by
6844 # the Free Software Foundation; either version 2 of the License, or
6845 # (at your option) any later version.
6846 #
6847 # This program is distributed in the hope that it will be useful, but
6848 # WITHOUT ANY WARRANTY; without even the implied warranty of
6849 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6850 # General Public License for more details.
6851 #
6852 # You should have received a copy of the GNU General Public License
6853 # along with this program; if not, write to the Free Software
6854 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6855 #
6856 # As a special exception to the GNU General Public License, if you
6857 # distribute this file as part of a program that contains a
6858 # configuration script generated by Autoconf, you may include it under
6859 # the same distribution terms that you use for the rest of that program.
6860
6861 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
6862 Xsed="sed -e s/^X//"
6863
6864 # The HP-UX ksh and POSIX shell print the target directory to stdout
6865 # if CDPATH is set.
6866 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
6867
6868 # ### BEGIN LIBTOOL CONFIG
6869
6870 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
6871
6872 # Shell to use when invoking shell scripts.
6873 SHELL=$lt_SHELL
6874
6875 # Whether or not to build shared libraries.
6876 build_libtool_libs=$enable_shared
6877
6878 # Whether or not to build static libraries.
6879 build_old_libs=$enable_static
6880
6881 # Whether or not to add -lc for building shared libraries.
6882 build_libtool_need_lc=$need_lc
6883
6884 # Whether or not to optimize for fast installation.
6885 fast_install=$enable_fast_install
6886
6887 # The host system.
6888 host_alias=$host_alias
6889 host=$host
6890
6891 # An echo program that does not interpret backslashes.
6892 echo=$lt_echo
6893
6894 # The archiver.
6895 AR=$lt_AR
6896 AR_FLAGS=$lt_AR_FLAGS
6897
6898 # The default C compiler.
6899 CC=$lt_CC
6900
6901 # Is the compiler the GNU C compiler?
6902 with_gcc=$GCC
6903
6904 # The linker used to build libraries.
6905 LD=$lt_LD
6906
6907 # Whether we need hard or soft links.
6908 LN_S=$lt_LN_S
6909
6910 # A BSD-compatible nm program.
6911 NM=$lt_NM
6912
6913 # A symbol stripping program
6914 STRIP=$STRIP
6915
6916 # Used to examine libraries when file_magic_cmd begins "file"
6917 MAGIC_CMD=$MAGIC_CMD
6918
6919 # Used on cygwin: DLL creation program.
6920 DLLTOOL="$DLLTOOL"
6921
6922 # Used on cygwin: object dumper.
6923 OBJDUMP="$OBJDUMP"
6924
6925 # Used on cygwin: assembler.
6926 AS="$AS"
6927
6928 # The name of the directory that contains temporary libtool files.
6929 objdir=$objdir
6930
6931 # How to create reloadable object files.
6932 reload_flag=$lt_reload_flag
6933 reload_cmds=$lt_reload_cmds
6934
6935 # How to pass a linker flag through the compiler.
6936 wl=$lt_wl
6937
6938 # Object file suffix (normally "o").
6939 objext="$ac_objext"
6940
6941 # Old archive suffix (normally "a").
6942 libext="$libext"
6943
6944 # Executable file suffix (normally "").
6945 exeext="$exeext"
6946
6947 # Additional compiler flags for building library objects.
6948 pic_flag=$lt_pic_flag
6949 pic_mode=$pic_mode
6950
6951 # Does compiler simultaneously support -c and -o options?
6952 compiler_c_o=$lt_compiler_c_o
6953
6954 # Can we write directly to a .lo ?
6955 compiler_o_lo=$lt_compiler_o_lo
6956
6957 # Must we lock files when doing compilation ?
6958 need_locks=$lt_need_locks
6959
6960 # Do we need the lib prefix for modules?
6961 need_lib_prefix=$need_lib_prefix
6962
6963 # Do we need a version for libraries?
6964 need_version=$need_version
6965
6966 # Whether dlopen is supported.
6967 dlopen_support=$enable_dlopen
6968
6969 # Whether dlopen of programs is supported.
6970 dlopen_self=$enable_dlopen_self
6971
6972 # Whether dlopen of statically linked programs is supported.
6973 dlopen_self_static=$enable_dlopen_self_static
6974
6975 # Compiler flag to prevent dynamic linking.
6976 link_static_flag=$lt_link_static_flag
6977
6978 # Compiler flag to turn off builtin functions.
6979 no_builtin_flag=$lt_no_builtin_flag
6980
6981 # Compiler flag to allow reflexive dlopens.
6982 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
6983
6984 # Compiler flag to generate shared objects directly from archives.
6985 whole_archive_flag_spec=$lt_whole_archive_flag_spec
6986
6987 # Compiler flag to generate thread-safe objects.
6988 thread_safe_flag_spec=$lt_thread_safe_flag_spec
6989
6990 # Library versioning type.
6991 version_type=$version_type
6992
6993 # Format of library name prefix.
6994 libname_spec=$lt_libname_spec
6995
6996 # List of archive names. First name is the real one, the rest are links.
6997 # The last name is the one that the linker finds with -lNAME.
6998 library_names_spec=$lt_library_names_spec
6999
7000 # The coded name of the library, if different from the real name.
7001 soname_spec=$lt_soname_spec
7002
7003 # Commands used to build and install an old-style archive.
7004 RANLIB=$lt_RANLIB
7005 old_archive_cmds=$lt_old_archive_cmds
7006 old_postinstall_cmds=$lt_old_postinstall_cmds
7007 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7008
7009 # Create an old-style archive from a shared archive.
7010 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7011
7012 # Create a temporary old-style archive to link instead of a shared archive.
7013 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7014
7015 # Commands used to build and install a shared archive.
7016 archive_cmds=$lt_archive_cmds
7017 archive_expsym_cmds=$lt_archive_expsym_cmds
7018 postinstall_cmds=$lt_postinstall_cmds
7019 postuninstall_cmds=$lt_postuninstall_cmds
7020
7021 # Commands to strip libraries.
7022 old_striplib=$lt_old_striplib
7023 striplib=$lt_striplib
7024
7025 # Method to check whether dependent libraries are shared objects.
7026 deplibs_check_method=$lt_deplibs_check_method
7027
7028 # Command to use when deplibs_check_method == file_magic.
7029 file_magic_cmd=$lt_file_magic_cmd
7030
7031 # Flag that allows shared libraries with undefined symbols to be built.
7032 allow_undefined_flag=$lt_allow_undefined_flag
7033
7034 # Flag that forces no undefined symbols.
7035 no_undefined_flag=$lt_no_undefined_flag
7036
7037 # Commands used to finish a libtool library installation in a directory.
7038 finish_cmds=$lt_finish_cmds
7039
7040 # Same as above, but a single script fragment to be evaled but not shown.
7041 finish_eval=$lt_finish_eval
7042
7043 # Take the output of nm and produce a listing of raw symbols and C names.
7044 global_symbol_pipe=$lt_global_symbol_pipe
7045
7046 # Transform the output of nm in a proper C declaration
7047 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7048
7049 # Transform the output of nm in a C name address pair
7050 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7051
7052 # This is the shared library runtime path variable.
7053 runpath_var=$runpath_var
7054
7055 # This is the shared library path variable.
7056 shlibpath_var=$shlibpath_var
7057
7058 # Is shlibpath searched before the hard-coded library search path?
7059 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7060
7061 # How to hardcode a shared library path into an executable.
7062 hardcode_action=$hardcode_action
7063
7064 # Whether we should hardcode library paths into libraries.
7065 hardcode_into_libs=$hardcode_into_libs
7066
7067 # Flag to hardcode \$libdir into a binary during linking.
7068 # This must work even if \$libdir does not exist.
7069 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7070
7071 # Whether we need a single -rpath flag with a separated argument.
7072 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7073
7074 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7075 # resulting binary.
7076 hardcode_direct=$hardcode_direct
7077
7078 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7079 # resulting binary.
7080 hardcode_minus_L=$hardcode_minus_L
7081
7082 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7083 # the resulting binary.
7084 hardcode_shlibpath_var=$hardcode_shlibpath_var
7085
7086 # Variables whose values should be saved in libtool wrapper scripts and
7087 # restored at relink time.
7088 variables_saved_for_relink="$variables_saved_for_relink"
7089
7090 # Whether libtool must link a program against all its dependency libraries.
7091 link_all_deplibs=$link_all_deplibs
7092
7093 # Compile-time system search path for libraries
7094 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7095
7096 # Run-time system search path for libraries
7097 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7098
7099 # Fix the shell variable \$srcfile for the compiler.
7100 fix_srcfile_path="$fix_srcfile_path"
7101
7102 # Set to yes if exported symbols are required.
7103 always_export_symbols=$always_export_symbols
7104
7105 # The commands to list exported symbols.
7106 export_symbols_cmds=$lt_export_symbols_cmds
7107
7108 # The commands to extract the exported symbol list from a shared archive.
7109 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7110
7111 # Symbols that should not be listed in the preloaded symbols.
7112 exclude_expsyms=$lt_exclude_expsyms
7113
7114 # Symbols that must always be exported.
7115 include_expsyms=$lt_include_expsyms
7116
7117 # ### END LIBTOOL CONFIG
7118
7119 __EOF__
7120
7121 case $host_os in
7122 aix3*)
7123 cat <<\EOF >> "${ofile}T"
7124
7125 # AIX sometimes has problems with the GCC collect2 program. For some
7126 # reason, if we set the COLLECT_NAMES environment variable, the problems
7127 # vanish in a puff of smoke.
7128 if test "X${COLLECT_NAMES+set}" != Xset; then
7129 COLLECT_NAMES=
7130 export COLLECT_NAMES
7131 fi
7132 EOF
7133 ;;
7134 esac
7135
7136 case $host_os in
7137 cygwin* | mingw* | pw32* | os2*)
7138 cat <<'EOF' >> "${ofile}T"
7139 # This is a source program that is used to create dlls on Windows
7140 # Don't remove nor modify the starting and closing comments
7141 # /* ltdll.c starts here */
7142 # #define WIN32_LEAN_AND_MEAN
7143 # #include <windows.h>
7144 # #undef WIN32_LEAN_AND_MEAN
7145 # #include <stdio.h>
7146 #
7147 # #ifndef __CYGWIN__
7148 # # ifdef __CYGWIN32__
7149 # # define __CYGWIN__ __CYGWIN32__
7150 # # endif
7151 # #endif
7152 #
7153 # #ifdef __cplusplus
7154 # extern "C" {
7155 # #endif
7156 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7157 # #ifdef __cplusplus
7158 # }
7159 # #endif
7160 #
7161 # #ifdef __CYGWIN__
7162 # #include <cygwin/cygwin_dll.h>
7163 # DECLARE_CYGWIN_DLL( DllMain );
7164 # #endif
7165 # HINSTANCE __hDllInstance_base;
7166 #
7167 # BOOL APIENTRY
7168 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7169 # {
7170 # __hDllInstance_base = hInst;
7171 # return TRUE;
7172 # }
7173 # /* ltdll.c ends here */
7174 # This is a source program that is used to create import libraries
7175 # on Windows for dlls which lack them. Don't remove nor modify the
7176 # starting and closing comments
7177 # /* impgen.c starts here */
7178 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7179 #
7180 # This file is part of GNU libtool.
7181 #
7182 # This program is free software; you can redistribute it and/or modify
7183 # it under the terms of the GNU General Public License as published by
7184 # the Free Software Foundation; either version 2 of the License, or
7185 # (at your option) any later version.
7186 #
7187 # This program is distributed in the hope that it will be useful,
7188 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7189 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7190 # GNU General Public License for more details.
7191 #
7192 # You should have received a copy of the GNU General Public License
7193 # along with this program; if not, write to the Free Software
7194 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7195 # */
7196 #
7197 # #include <stdio.h> /* for printf() */
7198 # #include <unistd.h> /* for open(), lseek(), read() */
7199 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7200 # #include <string.h> /* for strdup() */
7201 #
7202 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7203 # #ifndef O_BINARY
7204 # #define O_BINARY 0
7205 # #endif
7206 #
7207 # static unsigned int
7208 # pe_get16 (fd, offset)
7209 # int fd;
7210 # int offset;
7211 # {
7212 # unsigned char b[2];
7213 # lseek (fd, offset, SEEK_SET);
7214 # read (fd, b, 2);
7215 # return b[0] + (b[1]<<8);
7216 # }
7217 #
7218 # static unsigned int
7219 # pe_get32 (fd, offset)
7220 # int fd;
7221 # int offset;
7222 # {
7223 # unsigned char b[4];
7224 # lseek (fd, offset, SEEK_SET);
7225 # read (fd, b, 4);
7226 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7227 # }
7228 #
7229 # static unsigned int
7230 # pe_as32 (ptr)
7231 # void *ptr;
7232 # {
7233 # unsigned char *b = ptr;
7234 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7235 # }
7236 #
7237 # int
7238 # main (argc, argv)
7239 # int argc;
7240 # char *argv[];
7241 # {
7242 # int dll;
7243 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7244 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7245 # unsigned long name_rvas, nexp;
7246 # unsigned char *expdata, *erva;
7247 # char *filename, *dll_name;
7248 #
7249 # filename = argv[1];
7250 #
7251 # dll = open(filename, O_RDONLY|O_BINARY);
7252 # if (dll < 1)
7253 # return 1;
7254 #
7255 # dll_name = filename;
7256 #
7257 # for (i=0; filename[i]; i++)
7258 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7259 # dll_name = filename + i +1;
7260 #
7261 # pe_header_offset = pe_get32 (dll, 0x3c);
7262 # opthdr_ofs = pe_header_offset + 4 + 20;
7263 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7264 #
7265 # if (num_entries < 1) /* no exports */
7266 # return 1;
7267 #
7268 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7269 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7270 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7271 # secptr = (pe_header_offset + 4 + 20 +
7272 # pe_get16 (dll, pe_header_offset + 4 + 16));
7273 #
7274 # expptr = 0;
7275 # for (i = 0; i < nsections; i++)
7276 # {
7277 # char sname[8];
7278 # unsigned long secptr1 = secptr + 40 * i;
7279 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7280 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7281 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7282 # lseek(dll, secptr1, SEEK_SET);
7283 # read(dll, sname, 8);
7284 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7285 # {
7286 # expptr = fptr + (export_rva - vaddr);
7287 # if (export_rva + export_size > vaddr + vsize)
7288 # export_size = vsize - (export_rva - vaddr);
7289 # break;
7290 # }
7291 # }
7292 #
7293 # expdata = (unsigned char*)malloc(export_size);
7294 # lseek (dll, expptr, SEEK_SET);
7295 # read (dll, expdata, export_size);
7296 # erva = expdata - export_rva;
7297 #
7298 # nexp = pe_as32 (expdata+24);
7299 # name_rvas = pe_as32 (expdata+32);
7300 #
7301 # printf ("EXPORTS\n");
7302 # for (i = 0; i<nexp; i++)
7303 # {
7304 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7305 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7306 # }
7307 #
7308 # return 0;
7309 # }
7310 # /* impgen.c ends here */
7311
7312 EOF
7313 ;;
7314 esac
7315
7316 # We use sed instead of cat because bash on DJGPP gets confused if
7317 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7318 # text mode, it properly converts lines to CR/LF. This bash problem
7319 # is reportedly fixed, but why not run on old versions too?
7320 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7321
7322 mv -f "${ofile}T" "$ofile" || \
7323 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7324 chmod +x "$ofile"
7325 fi
7326 ##
7327 ## END FIXME
7328
7329
7330
7331
7332
7333 # This can be used to rebuild libtool when needed
7334 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7335
7336 # Always use our own libtool.
7337 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7338
7339 # Prevent multiple expansion
7340
7341
7342
7343
7344
7345
7346
7347 ac_ext=c
7348 ac_cpp='$CPP $CPPFLAGS'
7349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7352 if test -n "$ac_tool_prefix"; then
7353 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7354 set dummy ${ac_tool_prefix}gcc; ac_word=$2
7355 echo "$as_me:$LINENO: checking for $ac_word" >&5
7356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7357 if test "${ac_cv_prog_CC+set}" = set; then
7358 echo $ECHO_N "(cached) $ECHO_C" >&6
7359 else
7360 if test -n "$CC"; then
7361 ac_cv_prog_CC="$CC" # Let the user override the test.
7362 else
7363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364 for as_dir in $PATH
7365 do
7366 IFS=$as_save_IFS
7367 test -z "$as_dir" && as_dir=.
7368 for ac_exec_ext in '' $ac_executable_extensions; do
7369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7370 ac_cv_prog_CC="${ac_tool_prefix}gcc"
7371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7372 break 2
7373 fi
7374 done
7375 done
7376
7377 fi
7378 fi
7379 CC=$ac_cv_prog_CC
7380 if test -n "$CC"; then
7381 echo "$as_me:$LINENO: result: $CC" >&5
7382 echo "${ECHO_T}$CC" >&6
7383 else
7384 echo "$as_me:$LINENO: result: no" >&5
7385 echo "${ECHO_T}no" >&6
7386 fi
7387
7388 fi
7389 if test -z "$ac_cv_prog_CC"; then
7390 ac_ct_CC=$CC
7391 # Extract the first word of "gcc", so it can be a program name with args.
7392 set dummy gcc; ac_word=$2
7393 echo "$as_me:$LINENO: checking for $ac_word" >&5
7394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7395 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7396 echo $ECHO_N "(cached) $ECHO_C" >&6
7397 else
7398 if test -n "$ac_ct_CC"; then
7399 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7400 else
7401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7402 for as_dir in $PATH
7403 do
7404 IFS=$as_save_IFS
7405 test -z "$as_dir" && as_dir=.
7406 for ac_exec_ext in '' $ac_executable_extensions; do
7407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7408 ac_cv_prog_ac_ct_CC="gcc"
7409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7410 break 2
7411 fi
7412 done
7413 done
7414
7415 fi
7416 fi
7417 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7418 if test -n "$ac_ct_CC"; then
7419 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7420 echo "${ECHO_T}$ac_ct_CC" >&6
7421 else
7422 echo "$as_me:$LINENO: result: no" >&5
7423 echo "${ECHO_T}no" >&6
7424 fi
7425
7426 CC=$ac_ct_CC
7427 else
7428 CC="$ac_cv_prog_CC"
7429 fi
7430
7431 if test -z "$CC"; then
7432 if test -n "$ac_tool_prefix"; then
7433 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7434 set dummy ${ac_tool_prefix}cc; ac_word=$2
7435 echo "$as_me:$LINENO: checking for $ac_word" >&5
7436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7437 if test "${ac_cv_prog_CC+set}" = set; then
7438 echo $ECHO_N "(cached) $ECHO_C" >&6
7439 else
7440 if test -n "$CC"; then
7441 ac_cv_prog_CC="$CC" # Let the user override the test.
7442 else
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7444 for as_dir in $PATH
7445 do
7446 IFS=$as_save_IFS
7447 test -z "$as_dir" && as_dir=.
7448 for ac_exec_ext in '' $ac_executable_extensions; do
7449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7450 ac_cv_prog_CC="${ac_tool_prefix}cc"
7451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7452 break 2
7453 fi
7454 done
7455 done
7456
7457 fi
7458 fi
7459 CC=$ac_cv_prog_CC
7460 if test -n "$CC"; then
7461 echo "$as_me:$LINENO: result: $CC" >&5
7462 echo "${ECHO_T}$CC" >&6
7463 else
7464 echo "$as_me:$LINENO: result: no" >&5
7465 echo "${ECHO_T}no" >&6
7466 fi
7467
7468 fi
7469 if test -z "$ac_cv_prog_CC"; then
7470 ac_ct_CC=$CC
7471 # Extract the first word of "cc", so it can be a program name with args.
7472 set dummy cc; ac_word=$2
7473 echo "$as_me:$LINENO: checking for $ac_word" >&5
7474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7475 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7476 echo $ECHO_N "(cached) $ECHO_C" >&6
7477 else
7478 if test -n "$ac_ct_CC"; then
7479 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7480 else
7481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7482 for as_dir in $PATH
7483 do
7484 IFS=$as_save_IFS
7485 test -z "$as_dir" && as_dir=.
7486 for ac_exec_ext in '' $ac_executable_extensions; do
7487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7488 ac_cv_prog_ac_ct_CC="cc"
7489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7490 break 2
7491 fi
7492 done
7493 done
7494
7495 fi
7496 fi
7497 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7498 if test -n "$ac_ct_CC"; then
7499 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7500 echo "${ECHO_T}$ac_ct_CC" >&6
7501 else
7502 echo "$as_me:$LINENO: result: no" >&5
7503 echo "${ECHO_T}no" >&6
7504 fi
7505
7506 CC=$ac_ct_CC
7507 else
7508 CC="$ac_cv_prog_CC"
7509 fi
7510
7511 fi
7512 if test -z "$CC"; then
7513 # Extract the first word of "cc", so it can be a program name with args.
7514 set dummy cc; ac_word=$2
7515 echo "$as_me:$LINENO: checking for $ac_word" >&5
7516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7517 if test "${ac_cv_prog_CC+set}" = set; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
7519 else
7520 if test -n "$CC"; then
7521 ac_cv_prog_CC="$CC" # Let the user override the test.
7522 else
7523 ac_prog_rejected=no
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 for as_dir in $PATH
7526 do
7527 IFS=$as_save_IFS
7528 test -z "$as_dir" && as_dir=.
7529 for ac_exec_ext in '' $ac_executable_extensions; do
7530 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7531 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
7532 ac_prog_rejected=yes
7533 continue
7534 fi
7535 ac_cv_prog_CC="cc"
7536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7537 break 2
7538 fi
7539 done
7540 done
7541
7542 if test $ac_prog_rejected = yes; then
7543 # We found a bogon in the path, so make sure we never use it.
7544 set dummy $ac_cv_prog_CC
7545 shift
7546 if test $# != 0; then
7547 # We chose a different compiler from the bogus one.
7548 # However, it has the same basename, so the bogon will be chosen
7549 # first if we set CC to just the basename; use the full file name.
7550 shift
7551 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
7552 fi
7553 fi
7554 fi
7555 fi
7556 CC=$ac_cv_prog_CC
7557 if test -n "$CC"; then
7558 echo "$as_me:$LINENO: result: $CC" >&5
7559 echo "${ECHO_T}$CC" >&6
7560 else
7561 echo "$as_me:$LINENO: result: no" >&5
7562 echo "${ECHO_T}no" >&6
7563 fi
7564
7565 fi
7566 if test -z "$CC"; then
7567 if test -n "$ac_tool_prefix"; then
7568 for ac_prog in cl
7569 do
7570 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7571 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7572 echo "$as_me:$LINENO: checking for $ac_word" >&5
7573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7574 if test "${ac_cv_prog_CC+set}" = set; then
7575 echo $ECHO_N "(cached) $ECHO_C" >&6
7576 else
7577 if test -n "$CC"; then
7578 ac_cv_prog_CC="$CC" # Let the user override the test.
7579 else
7580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581 for as_dir in $PATH
7582 do
7583 IFS=$as_save_IFS
7584 test -z "$as_dir" && as_dir=.
7585 for ac_exec_ext in '' $ac_executable_extensions; do
7586 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7587 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7589 break 2
7590 fi
7591 done
7592 done
7593
7594 fi
7595 fi
7596 CC=$ac_cv_prog_CC
7597 if test -n "$CC"; then
7598 echo "$as_me:$LINENO: result: $CC" >&5
7599 echo "${ECHO_T}$CC" >&6
7600 else
7601 echo "$as_me:$LINENO: result: no" >&5
7602 echo "${ECHO_T}no" >&6
7603 fi
7604
7605 test -n "$CC" && break
7606 done
7607 fi
7608 if test -z "$CC"; then
7609 ac_ct_CC=$CC
7610 for ac_prog in cl
7611 do
7612 # Extract the first word of "$ac_prog", so it can be a program name with args.
7613 set dummy $ac_prog; ac_word=$2
7614 echo "$as_me:$LINENO: checking for $ac_word" >&5
7615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7616 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
7617 echo $ECHO_N "(cached) $ECHO_C" >&6
7618 else
7619 if test -n "$ac_ct_CC"; then
7620 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7621 else
7622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7623 for as_dir in $PATH
7624 do
7625 IFS=$as_save_IFS
7626 test -z "$as_dir" && as_dir=.
7627 for ac_exec_ext in '' $ac_executable_extensions; do
7628 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7629 ac_cv_prog_ac_ct_CC="$ac_prog"
7630 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7631 break 2
7632 fi
7633 done
7634 done
7635
7636 fi
7637 fi
7638 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7639 if test -n "$ac_ct_CC"; then
7640 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
7641 echo "${ECHO_T}$ac_ct_CC" >&6
7642 else
7643 echo "$as_me:$LINENO: result: no" >&5
7644 echo "${ECHO_T}no" >&6
7645 fi
7646
7647 test -n "$ac_ct_CC" && break
7648 done
7649
7650 CC=$ac_ct_CC
7651 fi
7652
7653 fi
7654
7655
7656 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
7657 See \`config.log' for more details." >&5
7658 echo "$as_me: error: no acceptable C compiler found in \$PATH
7659 See \`config.log' for more details." >&2;}
7660 { (exit 1); exit 1; }; }
7661
7662 # Provide some information about the compiler.
7663 echo "$as_me:$LINENO:" \
7664 "checking for C compiler version" >&5
7665 ac_compiler=`set X $ac_compile; echo $2`
7666 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7667 (eval $ac_compiler --version </dev/null >&5) 2>&5
7668 ac_status=$?
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); }
7671 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7672 (eval $ac_compiler -v </dev/null >&5) 2>&5
7673 ac_status=$?
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); }
7676 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7677 (eval $ac_compiler -V </dev/null >&5) 2>&5
7678 ac_status=$?
7679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7680 (exit $ac_status); }
7681
7682 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
7683 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
7684 if test "${ac_cv_c_compiler_gnu+set}" = set; then
7685 echo $ECHO_N "(cached) $ECHO_C" >&6
7686 else
7687 cat >conftest.$ac_ext <<_ACEOF
7688 #line $LINENO "configure"
7689 /* confdefs.h. */
7690 _ACEOF
7691 cat confdefs.h >>conftest.$ac_ext
7692 cat >>conftest.$ac_ext <<_ACEOF
7693 /* end confdefs.h. */
7694
7695 int
7696 main ()
7697 {
7698 #ifndef __GNUC__
7699 choke me
7700 #endif
7701
7702 ;
7703 return 0;
7704 }
7705 _ACEOF
7706 rm -f conftest.$ac_objext
7707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7708 (eval $ac_compile) 2>&5
7709 ac_status=$?
7710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7711 (exit $ac_status); } &&
7712 { ac_try='test -s conftest.$ac_objext'
7713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7714 (eval $ac_try) 2>&5
7715 ac_status=$?
7716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7717 (exit $ac_status); }; }; then
7718 ac_compiler_gnu=yes
7719 else
7720 echo "$as_me: failed program was:" >&5
7721 sed 's/^/| /' conftest.$ac_ext >&5
7722
7723 ac_compiler_gnu=no
7724 fi
7725 rm -f conftest.$ac_objext conftest.$ac_ext
7726 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7727
7728 fi
7729 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
7730 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
7731 GCC=`test $ac_compiler_gnu = yes && echo yes`
7732 ac_test_CFLAGS=${CFLAGS+set}
7733 ac_save_CFLAGS=$CFLAGS
7734 CFLAGS="-g"
7735 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
7736 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
7737 if test "${ac_cv_prog_cc_g+set}" = set; then
7738 echo $ECHO_N "(cached) $ECHO_C" >&6
7739 else
7740 cat >conftest.$ac_ext <<_ACEOF
7741 #line $LINENO "configure"
7742 /* confdefs.h. */
7743 _ACEOF
7744 cat confdefs.h >>conftest.$ac_ext
7745 cat >>conftest.$ac_ext <<_ACEOF
7746 /* end confdefs.h. */
7747
7748 int
7749 main ()
7750 {
7751
7752 ;
7753 return 0;
7754 }
7755 _ACEOF
7756 rm -f conftest.$ac_objext
7757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7758 (eval $ac_compile) 2>&5
7759 ac_status=$?
7760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7761 (exit $ac_status); } &&
7762 { ac_try='test -s conftest.$ac_objext'
7763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7764 (eval $ac_try) 2>&5
7765 ac_status=$?
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); }; }; then
7768 ac_cv_prog_cc_g=yes
7769 else
7770 echo "$as_me: failed program was:" >&5
7771 sed 's/^/| /' conftest.$ac_ext >&5
7772
7773 ac_cv_prog_cc_g=no
7774 fi
7775 rm -f conftest.$ac_objext conftest.$ac_ext
7776 fi
7777 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
7778 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
7779 if test "$ac_test_CFLAGS" = set; then
7780 CFLAGS=$ac_save_CFLAGS
7781 elif test $ac_cv_prog_cc_g = yes; then
7782 if test "$GCC" = yes; then
7783 CFLAGS="-g -O2"
7784 else
7785 CFLAGS="-g"
7786 fi
7787 else
7788 if test "$GCC" = yes; then
7789 CFLAGS="-O2"
7790 else
7791 CFLAGS=
7792 fi
7793 fi
7794 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
7795 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
7796 if test "${ac_cv_prog_cc_stdc+set}" = set; then
7797 echo $ECHO_N "(cached) $ECHO_C" >&6
7798 else
7799 ac_cv_prog_cc_stdc=no
7800 ac_save_CC=$CC
7801 cat >conftest.$ac_ext <<_ACEOF
7802 #line $LINENO "configure"
7803 /* confdefs.h. */
7804 _ACEOF
7805 cat confdefs.h >>conftest.$ac_ext
7806 cat >>conftest.$ac_ext <<_ACEOF
7807 /* end confdefs.h. */
7808 #include <stdarg.h>
7809 #include <stdio.h>
7810 #include <sys/types.h>
7811 #include <sys/stat.h>
7812 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7813 struct buf { int x; };
7814 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7815 static char *e (p, i)
7816 char **p;
7817 int i;
7818 {
7819 return p[i];
7820 }
7821 static char *f (char * (*g) (char **, int), char **p, ...)
7822 {
7823 char *s;
7824 va_list v;
7825 va_start (v,p);
7826 s = g (p, va_arg (v,int));
7827 va_end (v);
7828 return s;
7829 }
7830 int test (int i, double x);
7831 struct s1 {int (*f) (int a);};
7832 struct s2 {int (*f) (double a);};
7833 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7834 int argc;
7835 char **argv;
7836 int
7837 main ()
7838 {
7839 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7840 ;
7841 return 0;
7842 }
7843 _ACEOF
7844 # Don't try gcc -ansi; that turns off useful extensions and
7845 # breaks some systems' header files.
7846 # AIX -qlanglvl=ansi
7847 # Ultrix and OSF/1 -std1
7848 # HP-UX 10.20 and later -Ae
7849 # HP-UX older versions -Aa -D_HPUX_SOURCE
7850 # SVR4 -Xc -D__EXTENSIONS__
7851 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7852 do
7853 CC="$ac_save_CC $ac_arg"
7854 rm -f conftest.$ac_objext
7855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7856 (eval $ac_compile) 2>&5
7857 ac_status=$?
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); } &&
7860 { ac_try='test -s conftest.$ac_objext'
7861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7862 (eval $ac_try) 2>&5
7863 ac_status=$?
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); }; }; then
7866 ac_cv_prog_cc_stdc=$ac_arg
7867 break
7868 else
7869 echo "$as_me: failed program was:" >&5
7870 sed 's/^/| /' conftest.$ac_ext >&5
7871
7872 fi
7873 rm -f conftest.$ac_objext
7874 done
7875 rm -f conftest.$ac_ext conftest.$ac_objext
7876 CC=$ac_save_CC
7877
7878 fi
7879
7880 case "x$ac_cv_prog_cc_stdc" in
7881 x|xno)
7882 echo "$as_me:$LINENO: result: none needed" >&5
7883 echo "${ECHO_T}none needed" >&6 ;;
7884 *)
7885 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
7886 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
7887 CC="$CC $ac_cv_prog_cc_stdc" ;;
7888 esac
7889
7890 # Some people use a C++ compiler to compile C. Since we use `exit',
7891 # in C++ we need to declare it. In case someone uses the same compiler
7892 # for both compiling C and C++ we need to have the C++ compiler decide
7893 # the declaration of exit, since it's the most demanding environment.
7894 cat >conftest.$ac_ext <<_ACEOF
7895 #ifndef __cplusplus
7896 choke me
7897 #endif
7898 _ACEOF
7899 rm -f conftest.$ac_objext
7900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7901 (eval $ac_compile) 2>&5
7902 ac_status=$?
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); } &&
7905 { ac_try='test -s conftest.$ac_objext'
7906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7907 (eval $ac_try) 2>&5
7908 ac_status=$?
7909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7910 (exit $ac_status); }; }; then
7911 for ac_declaration in \
7912 ''\
7913 '#include <stdlib.h>' \
7914 'extern "C" void std::exit (int) throw (); using std::exit;' \
7915 'extern "C" void std::exit (int); using std::exit;' \
7916 'extern "C" void exit (int) throw ();' \
7917 'extern "C" void exit (int);' \
7918 'void exit (int);'
7919 do
7920 cat >conftest.$ac_ext <<_ACEOF
7921 #line $LINENO "configure"
7922 /* confdefs.h. */
7923 _ACEOF
7924 cat confdefs.h >>conftest.$ac_ext
7925 cat >>conftest.$ac_ext <<_ACEOF
7926 /* end confdefs.h. */
7927 #include <stdlib.h>
7928 $ac_declaration
7929 int
7930 main ()
7931 {
7932 exit (42);
7933 ;
7934 return 0;
7935 }
7936 _ACEOF
7937 rm -f conftest.$ac_objext
7938 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7939 (eval $ac_compile) 2>&5
7940 ac_status=$?
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); } &&
7943 { ac_try='test -s conftest.$ac_objext'
7944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7945 (eval $ac_try) 2>&5
7946 ac_status=$?
7947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7948 (exit $ac_status); }; }; then
7949 :
7950 else
7951 echo "$as_me: failed program was:" >&5
7952 sed 's/^/| /' conftest.$ac_ext >&5
7953
7954 continue
7955 fi
7956 rm -f conftest.$ac_objext conftest.$ac_ext
7957 cat >conftest.$ac_ext <<_ACEOF
7958 #line $LINENO "configure"
7959 /* confdefs.h. */
7960 _ACEOF
7961 cat confdefs.h >>conftest.$ac_ext
7962 cat >>conftest.$ac_ext <<_ACEOF
7963 /* end confdefs.h. */
7964 $ac_declaration
7965 int
7966 main ()
7967 {
7968 exit (42);
7969 ;
7970 return 0;
7971 }
7972 _ACEOF
7973 rm -f conftest.$ac_objext
7974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7975 (eval $ac_compile) 2>&5
7976 ac_status=$?
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); } &&
7979 { ac_try='test -s conftest.$ac_objext'
7980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7981 (eval $ac_try) 2>&5
7982 ac_status=$?
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); }; }; then
7985 break
7986 else
7987 echo "$as_me: failed program was:" >&5
7988 sed 's/^/| /' conftest.$ac_ext >&5
7989
7990 fi
7991 rm -f conftest.$ac_objext conftest.$ac_ext
7992 done
7993 rm -f conftest*
7994 if test -n "$ac_declaration"; then
7995 echo '#ifdef __cplusplus' >>confdefs.h
7996 echo $ac_declaration >>confdefs.h
7997 echo '#endif' >>confdefs.h
7998 fi
7999
8000 else
8001 echo "$as_me: failed program was:" >&5
8002 sed 's/^/| /' conftest.$ac_ext >&5
8003
8004 fi
8005 rm -f conftest.$ac_objext conftest.$ac_ext
8006 ac_ext=c
8007 ac_cpp='$CPP $CPPFLAGS'
8008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8011
8012 # Find a good install program. We prefer a C program (faster),
8013 # so one script is as good as another. But avoid the broken or
8014 # incompatible versions:
8015 # SysV /etc/install, /usr/sbin/install
8016 # SunOS /usr/etc/install
8017 # IRIX /sbin/install
8018 # AIX /bin/install
8019 # AmigaOS /C/install, which installs bootblocks on floppy discs
8020 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8021 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8022 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8023 # ./install, which can be erroneously created by make from ./install.sh.
8024 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8025 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
8026 if test -z "$INSTALL"; then
8027 if test "${ac_cv_path_install+set}" = set; then
8028 echo $ECHO_N "(cached) $ECHO_C" >&6
8029 else
8030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031 for as_dir in $PATH
8032 do
8033 IFS=$as_save_IFS
8034 test -z "$as_dir" && as_dir=.
8035 # Account for people who put trailing slashes in PATH elements.
8036 case $as_dir/ in
8037 ./ | .// | /cC/* | \
8038 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8039 /usr/ucb/* ) ;;
8040 *)
8041 # OSF1 and SCO ODT 3.0 have their own names for install.
8042 # Don't use installbsd from OSF since it installs stuff as root
8043 # by default.
8044 for ac_prog in ginstall scoinst install; do
8045 for ac_exec_ext in '' $ac_executable_extensions; do
8046 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8047 if test $ac_prog = install &&
8048 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8049 # AIX install. It has an incompatible calling convention.
8050 :
8051 elif test $ac_prog = install &&
8052 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8053 # program-specific install script used by HP pwplus--don't use.
8054 :
8055 else
8056 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8057 break 3
8058 fi
8059 fi
8060 done
8061 done
8062 ;;
8063 esac
8064 done
8065
8066
8067 fi
8068 if test "${ac_cv_path_install+set}" = set; then
8069 INSTALL=$ac_cv_path_install
8070 else
8071 # As a last resort, use the slow shell script. We don't cache a
8072 # path for INSTALL within a source directory, because that will
8073 # break other packages using the cache if that directory is
8074 # removed, or if the path is relative.
8075 INSTALL=$ac_install_sh
8076 fi
8077 fi
8078 echo "$as_me:$LINENO: result: $INSTALL" >&5
8079 echo "${ECHO_T}$INSTALL" >&6
8080
8081 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8082 # It thinks the first close brace ends the variable substitution.
8083 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8084
8085 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8086
8087 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8088
8089
8090 if test "$GCC" = yes ; then
8091 OLDCFLAGS="$CFLAGS -Wall -Wmissing-prototypes -Wstrict-prototypes"
8092 CFLAGS="$OLDCFLAGS -fexceptions"
8093 echo "$as_me:$LINENO: checking whether gcc accepts -fexceptions" >&5
8094 echo $ECHO_N "checking whether gcc accepts -fexceptions... $ECHO_C" >&6
8095 cat >conftest.$ac_ext <<_ACEOF
8096 #line $LINENO "configure"
8097 /* confdefs.h. */
8098 _ACEOF
8099 cat confdefs.h >>conftest.$ac_ext
8100 cat >>conftest.$ac_ext <<_ACEOF
8101 /* end confdefs.h. */
8102
8103 int
8104 main ()
8105 {
8106 (void)1
8107 ;
8108 return 0;
8109 }
8110 _ACEOF
8111 rm -f conftest.$ac_objext
8112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8113 (eval $ac_compile) 2>&5
8114 ac_status=$?
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); } &&
8117 { ac_try='test -s conftest.$ac_objext'
8118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8119 (eval $ac_try) 2>&5
8120 ac_status=$?
8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122 (exit $ac_status); }; }; then
8123 echo "$as_me:$LINENO: result: yes" >&5
8124 echo "${ECHO_T}yes" >&6
8125 else
8126 echo "$as_me: failed program was:" >&5
8127 sed 's/^/| /' conftest.$ac_ext >&5
8128
8129 echo "$as_me:$LINENO: result: no" >&5
8130 echo "${ECHO_T}no" >&6; CFLAGS="$OLDCFLAGS"
8131 fi
8132 rm -f conftest.$ac_objext conftest.$ac_ext
8133 fi
8134
8135 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
8136 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
8137 if test "${ac_cv_header_stdc+set}" = set; then
8138 echo $ECHO_N "(cached) $ECHO_C" >&6
8139 else
8140 cat >conftest.$ac_ext <<_ACEOF
8141 #line $LINENO "configure"
8142 /* confdefs.h. */
8143 _ACEOF
8144 cat confdefs.h >>conftest.$ac_ext
8145 cat >>conftest.$ac_ext <<_ACEOF
8146 /* end confdefs.h. */
8147 #include <stdlib.h>
8148 #include <stdarg.h>
8149 #include <string.h>
8150 #include <float.h>
8151
8152 int
8153 main ()
8154 {
8155
8156 ;
8157 return 0;
8158 }
8159 _ACEOF
8160 rm -f conftest.$ac_objext
8161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8162 (eval $ac_compile) 2>&5
8163 ac_status=$?
8164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8165 (exit $ac_status); } &&
8166 { ac_try='test -s conftest.$ac_objext'
8167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8168 (eval $ac_try) 2>&5
8169 ac_status=$?
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); }; }; then
8172 ac_cv_header_stdc=yes
8173 else
8174 echo "$as_me: failed program was:" >&5
8175 sed 's/^/| /' conftest.$ac_ext >&5
8176
8177 ac_cv_header_stdc=no
8178 fi
8179 rm -f conftest.$ac_objext conftest.$ac_ext
8180
8181 if test $ac_cv_header_stdc = yes; then
8182 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8183 cat >conftest.$ac_ext <<_ACEOF
8184 #line $LINENO "configure"
8185 /* confdefs.h. */
8186 _ACEOF
8187 cat confdefs.h >>conftest.$ac_ext
8188 cat >>conftest.$ac_ext <<_ACEOF
8189 /* end confdefs.h. */
8190 #include <string.h>
8191
8192 _ACEOF
8193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8194 $EGREP "memchr" >/dev/null 2>&1; then
8195 :
8196 else
8197 ac_cv_header_stdc=no
8198 fi
8199 rm -f conftest*
8200
8201 fi
8202
8203 if test $ac_cv_header_stdc = yes; then
8204 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8205 cat >conftest.$ac_ext <<_ACEOF
8206 #line $LINENO "configure"
8207 /* confdefs.h. */
8208 _ACEOF
8209 cat confdefs.h >>conftest.$ac_ext
8210 cat >>conftest.$ac_ext <<_ACEOF
8211 /* end confdefs.h. */
8212 #include <stdlib.h>
8213
8214 _ACEOF
8215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8216 $EGREP "free" >/dev/null 2>&1; then
8217 :
8218 else
8219 ac_cv_header_stdc=no
8220 fi
8221 rm -f conftest*
8222
8223 fi
8224
8225 if test $ac_cv_header_stdc = yes; then
8226 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8227 if test "$cross_compiling" = yes; then
8228 :
8229 else
8230 cat >conftest.$ac_ext <<_ACEOF
8231 #line $LINENO "configure"
8232 /* confdefs.h. */
8233 _ACEOF
8234 cat confdefs.h >>conftest.$ac_ext
8235 cat >>conftest.$ac_ext <<_ACEOF
8236 /* end confdefs.h. */
8237 #include <ctype.h>
8238 #if ((' ' & 0x0FF) == 0x020)
8239 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8240 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8241 #else
8242 # define ISLOWER(c) \
8243 (('a' <= (c) && (c) <= 'i') \
8244 || ('j' <= (c) && (c) <= 'r') \
8245 || ('s' <= (c) && (c) <= 'z'))
8246 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8247 #endif
8248
8249 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8250 int
8251 main ()
8252 {
8253 int i;
8254 for (i = 0; i < 256; i++)
8255 if (XOR (islower (i), ISLOWER (i))
8256 || toupper (i) != TOUPPER (i))
8257 exit(2);
8258 exit (0);
8259 }
8260 _ACEOF
8261 rm -f conftest$ac_exeext
8262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8263 (eval $ac_link) 2>&5
8264 ac_status=$?
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8268 (eval $ac_try) 2>&5
8269 ac_status=$?
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); }; }; then
8272 :
8273 else
8274 echo "$as_me: program exited with status $ac_status" >&5
8275 echo "$as_me: failed program was:" >&5
8276 sed 's/^/| /' conftest.$ac_ext >&5
8277
8278 ( exit $ac_status )
8279 ac_cv_header_stdc=no
8280 fi
8281 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8282 fi
8283 fi
8284 fi
8285 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8286 echo "${ECHO_T}$ac_cv_header_stdc" >&6
8287 if test $ac_cv_header_stdc = yes; then
8288
8289 cat >>confdefs.h <<\_ACEOF
8290 #define STDC_HEADERS 1
8291 _ACEOF
8292
8293 fi
8294
8295
8296
8297 for ac_header in fcntl.h unistd.h
8298 do
8299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8300 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8301 echo "$as_me:$LINENO: checking for $ac_header" >&5
8302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8304 echo $ECHO_N "(cached) $ECHO_C" >&6
8305 fi
8306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8307 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8308 else
8309 # Is the header compilable?
8310 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8311 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8312 cat >conftest.$ac_ext <<_ACEOF
8313 #line $LINENO "configure"
8314 /* confdefs.h. */
8315 _ACEOF
8316 cat confdefs.h >>conftest.$ac_ext
8317 cat >>conftest.$ac_ext <<_ACEOF
8318 /* end confdefs.h. */
8319 $ac_includes_default
8320 #include <$ac_header>
8321 _ACEOF
8322 rm -f conftest.$ac_objext
8323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8324 (eval $ac_compile) 2>&5
8325 ac_status=$?
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); } &&
8328 { ac_try='test -s conftest.$ac_objext'
8329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330 (eval $ac_try) 2>&5
8331 ac_status=$?
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); }; }; then
8334 ac_header_compiler=yes
8335 else
8336 echo "$as_me: failed program was:" >&5
8337 sed 's/^/| /' conftest.$ac_ext >&5
8338
8339 ac_header_compiler=no
8340 fi
8341 rm -f conftest.$ac_objext conftest.$ac_ext
8342 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8343 echo "${ECHO_T}$ac_header_compiler" >&6
8344
8345 # Is the header present?
8346 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8347 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8348 cat >conftest.$ac_ext <<_ACEOF
8349 #line $LINENO "configure"
8350 /* confdefs.h. */
8351 _ACEOF
8352 cat confdefs.h >>conftest.$ac_ext
8353 cat >>conftest.$ac_ext <<_ACEOF
8354 /* end confdefs.h. */
8355 #include <$ac_header>
8356 _ACEOF
8357 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8358 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8359 ac_status=$?
8360 grep -v '^ *+' conftest.er1 >conftest.err
8361 rm -f conftest.er1
8362 cat conftest.err >&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); } >/dev/null; then
8365 if test -s conftest.err; then
8366 ac_cpp_err=$ac_c_preproc_warn_flag
8367 else
8368 ac_cpp_err=
8369 fi
8370 else
8371 ac_cpp_err=yes
8372 fi
8373 if test -z "$ac_cpp_err"; then
8374 ac_header_preproc=yes
8375 else
8376 echo "$as_me: failed program was:" >&5
8377 sed 's/^/| /' conftest.$ac_ext >&5
8378
8379 ac_header_preproc=no
8380 fi
8381 rm -f conftest.err conftest.$ac_ext
8382 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8383 echo "${ECHO_T}$ac_header_preproc" >&6
8384
8385 # So? What about this header?
8386 case $ac_header_compiler:$ac_header_preproc in
8387 yes:no )
8388 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8389 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8391 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8392 (
8393 cat <<\_ASBOX
8394 ## ------------------------------------ ##
8395 ## Report this to bug-autoconf@gnu.org. ##
8396 ## ------------------------------------ ##
8397 _ASBOX
8398 ) |
8399 sed "s/^/$as_me: WARNING: /" >&2
8400 ;;
8401 no:yes )
8402 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8403 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8404 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8405 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8408 (
8409 cat <<\_ASBOX
8410 ## ------------------------------------ ##
8411 ## Report this to bug-autoconf@gnu.org. ##
8412 ## ------------------------------------ ##
8413 _ASBOX
8414 ) |
8415 sed "s/^/$as_me: WARNING: /" >&2
8416 ;;
8417 esac
8418 echo "$as_me:$LINENO: checking for $ac_header" >&5
8419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8421 echo $ECHO_N "(cached) $ECHO_C" >&6
8422 else
8423 eval "$as_ac_Header=$ac_header_preproc"
8424 fi
8425 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8426 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8427
8428 fi
8429 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8430 cat >>confdefs.h <<_ACEOF
8431 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8432 _ACEOF
8433
8434 fi
8435
8436 done
8437
8438
8439
8440 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
8441 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
8442 if test "${ac_cv_c_bigendian+set}" = set; then
8443 echo $ECHO_N "(cached) $ECHO_C" >&6
8444 else
8445 ac_cv_c_bigendian=unknown
8446 # See if sys/param.h defines the BYTE_ORDER macro.
8447 cat >conftest.$ac_ext <<_ACEOF
8448 #line $LINENO "configure"
8449 /* confdefs.h. */
8450 _ACEOF
8451 cat confdefs.h >>conftest.$ac_ext
8452 cat >>conftest.$ac_ext <<_ACEOF
8453 /* end confdefs.h. */
8454 #include <sys/types.h>
8455 #include <sys/param.h>
8456 int
8457 main ()
8458 {
8459
8460 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
8461 bogus endian macros
8462 #endif
8463 ;
8464 return 0;
8465 }
8466 _ACEOF
8467 rm -f conftest.$ac_objext
8468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8469 (eval $ac_compile) 2>&5
8470 ac_status=$?
8471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8472 (exit $ac_status); } &&
8473 { ac_try='test -s conftest.$ac_objext'
8474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8475 (eval $ac_try) 2>&5
8476 ac_status=$?
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); }; }; then
8479 # It does; now see whether it defined to BIG_ENDIAN or not.
8480 cat >conftest.$ac_ext <<_ACEOF
8481 #line $LINENO "configure"
8482 /* confdefs.h. */
8483 _ACEOF
8484 cat confdefs.h >>conftest.$ac_ext
8485 cat >>conftest.$ac_ext <<_ACEOF
8486 /* end confdefs.h. */
8487 #include <sys/types.h>
8488 #include <sys/param.h>
8489 int
8490 main ()
8491 {
8492
8493 #if BYTE_ORDER != BIG_ENDIAN
8494 not big endian
8495 #endif
8496 ;
8497 return 0;
8498 }
8499 _ACEOF
8500 rm -f conftest.$ac_objext
8501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8502 (eval $ac_compile) 2>&5
8503 ac_status=$?
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); } &&
8506 { ac_try='test -s conftest.$ac_objext'
8507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8508 (eval $ac_try) 2>&5
8509 ac_status=$?
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); }; }; then
8512 ac_cv_c_bigendian=yes
8513 else
8514 echo "$as_me: failed program was:" >&5
8515 sed 's/^/| /' conftest.$ac_ext >&5
8516
8517 ac_cv_c_bigendian=no
8518 fi
8519 rm -f conftest.$ac_objext conftest.$ac_ext
8520 else
8521 echo "$as_me: failed program was:" >&5
8522 sed 's/^/| /' conftest.$ac_ext >&5
8523
8524 fi
8525 rm -f conftest.$ac_objext conftest.$ac_ext
8526 if test $ac_cv_c_bigendian = unknown; then
8527 if test "$cross_compiling" = yes; then
8528 echo $ac_n "cross-compiling... " 2>&6
8529 else
8530 cat >conftest.$ac_ext <<_ACEOF
8531 #line $LINENO "configure"
8532 /* confdefs.h. */
8533 _ACEOF
8534 cat confdefs.h >>conftest.$ac_ext
8535 cat >>conftest.$ac_ext <<_ACEOF
8536 /* end confdefs.h. */
8537 main () {
8538 /* Are we little or big endian? From Harbison&Steele. */
8539 union
8540 {
8541 long l;
8542 char c[sizeof (long)];
8543 } u;
8544 u.l = 1;
8545 exit (u.c[sizeof (long) - 1] == 1);
8546 }
8547 _ACEOF
8548 rm -f conftest$ac_exeext
8549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8550 (eval $ac_link) 2>&5
8551 ac_status=$?
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8555 (eval $ac_try) 2>&5
8556 ac_status=$?
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); }; }; then
8559 ac_cv_c_bigendian=no
8560 else
8561 echo "$as_me: program exited with status $ac_status" >&5
8562 echo "$as_me: failed program was:" >&5
8563 sed 's/^/| /' conftest.$ac_ext >&5
8564
8565 ( exit $ac_status )
8566 ac_cv_c_bigendian=yes
8567 fi
8568 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8569 fi
8570 fi
8571 fi
8572 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8573 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8574 if test $ac_cv_c_bigendian = unknown; then
8575 echo "$as_me:$LINENO: checking to probe for byte ordering" >&5
8576 echo $ECHO_N "checking to probe for byte ordering... $ECHO_C" >&6
8577
8578 cat >conftest.c <<EOF
8579 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
8580 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
8581 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
8582 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
8583 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
8584 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
8585 int main() { _ascii (); _ebcdic (); return 0; }
8586 EOF
8587 if test -f conftest.c ; then
8588 if ${CC-cc} -c conftest.c -o conftest.o && test -f conftest.o ; then
8589 if test `grep -l BIGenDianSyS conftest.o` ; then
8590 echo $ac_n ' big endian probe OK, ' 1>&6
8591 ac_cv_c_bigendian=yes
8592 fi
8593 if test `grep -l LiTTleEnDian conftest.o` ; then
8594 echo $ac_n ' little endian probe OK, ' 1>&6
8595 if test $ac_cv_c_bigendian = yes ; then
8596 ac_cv_c_bigendian=unknown;
8597 else
8598 ac_cv_c_bigendian=no
8599 fi
8600 fi
8601 echo $ac_n 'guessing bigendian ... ' >&6
8602 fi
8603 fi
8604 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
8605 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
8606 fi
8607 if test $ac_cv_c_bigendian = yes; then
8608
8609 cat >>confdefs.h <<\_ACEOF
8610 #define WORDS_BIGENDIAN 1
8611 _ACEOF
8612
8613 BYTEORDER=4321
8614 else
8615 BYTEORDER=1234
8616 fi
8617
8618 cat >>confdefs.h <<_ACEOF
8619 #define BYTEORDER $BYTEORDER
8620 _ACEOF
8621
8622 if test $ac_cv_c_bigendian = unknown; then
8623 { { echo "$as_me:$LINENO: error: unknown endianess - sorry" >&5
8624 echo "$as_me: error: unknown endianess - sorry" >&2;}
8625 { (exit please pre-set ac_cv_c_bigendian); exit please pre-set ac_cv_c_bigendian; }; }
8626 fi
8627
8628
8629 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8630 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8631 if test "${ac_cv_c_const+set}" = set; then
8632 echo $ECHO_N "(cached) $ECHO_C" >&6
8633 else
8634 cat >conftest.$ac_ext <<_ACEOF
8635 #line $LINENO "configure"
8636 /* confdefs.h. */
8637 _ACEOF
8638 cat confdefs.h >>conftest.$ac_ext
8639 cat >>conftest.$ac_ext <<_ACEOF
8640 /* end confdefs.h. */
8641
8642 int
8643 main ()
8644 {
8645 /* FIXME: Include the comments suggested by Paul. */
8646 #ifndef __cplusplus
8647 /* Ultrix mips cc rejects this. */
8648 typedef int charset[2];
8649 const charset x;
8650 /* SunOS 4.1.1 cc rejects this. */
8651 char const *const *ccp;
8652 char **p;
8653 /* NEC SVR4.0.2 mips cc rejects this. */
8654 struct point {int x, y;};
8655 static struct point const zero = {0,0};
8656 /* AIX XL C 1.02.0.0 rejects this.
8657 It does not let you subtract one const X* pointer from another in
8658 an arm of an if-expression whose if-part is not a constant
8659 expression */
8660 const char *g = "string";
8661 ccp = &g + (g ? g-g : 0);
8662 /* HPUX 7.0 cc rejects these. */
8663 ++ccp;
8664 p = (char**) ccp;
8665 ccp = (char const *const *) p;
8666 { /* SCO 3.2v4 cc rejects this. */
8667 char *t;
8668 char const *s = 0 ? (char *) 0 : (char const *) 0;
8669
8670 *t++ = 0;
8671 }
8672 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8673 int x[] = {25, 17};
8674 const int *foo = &x[0];
8675 ++foo;
8676 }
8677 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8678 typedef const int *iptr;
8679 iptr p = 0;
8680 ++p;
8681 }
8682 { /* AIX XL C 1.02.0.0 rejects this saying
8683 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8684 struct s { int j; const int *ap[3]; };
8685 struct s *b; b->j = 5;
8686 }
8687 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8688 const int foo = 10;
8689 }
8690 #endif
8691
8692 ;
8693 return 0;
8694 }
8695 _ACEOF
8696 rm -f conftest.$ac_objext
8697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8698 (eval $ac_compile) 2>&5
8699 ac_status=$?
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); } &&
8702 { ac_try='test -s conftest.$ac_objext'
8703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8704 (eval $ac_try) 2>&5
8705 ac_status=$?
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); }; }; then
8708 ac_cv_c_const=yes
8709 else
8710 echo "$as_me: failed program was:" >&5
8711 sed 's/^/| /' conftest.$ac_ext >&5
8712
8713 ac_cv_c_const=no
8714 fi
8715 rm -f conftest.$ac_objext conftest.$ac_ext
8716 fi
8717 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8718 echo "${ECHO_T}$ac_cv_c_const" >&6
8719 if test $ac_cv_c_const = no; then
8720
8721 cat >>confdefs.h <<\_ACEOF
8722 #define const
8723 _ACEOF
8724
8725 fi
8726
8727 echo "$as_me:$LINENO: checking for off_t" >&5
8728 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
8729 if test "${ac_cv_type_off_t+set}" = set; then
8730 echo $ECHO_N "(cached) $ECHO_C" >&6
8731 else
8732 cat >conftest.$ac_ext <<_ACEOF
8733 #line $LINENO "configure"
8734 /* confdefs.h. */
8735 _ACEOF
8736 cat confdefs.h >>conftest.$ac_ext
8737 cat >>conftest.$ac_ext <<_ACEOF
8738 /* end confdefs.h. */
8739 $ac_includes_default
8740 int
8741 main ()
8742 {
8743 if ((off_t *) 0)
8744 return 0;
8745 if (sizeof (off_t))
8746 return 0;
8747 ;
8748 return 0;
8749 }
8750 _ACEOF
8751 rm -f conftest.$ac_objext
8752 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8753 (eval $ac_compile) 2>&5
8754 ac_status=$?
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); } &&
8757 { ac_try='test -s conftest.$ac_objext'
8758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8759 (eval $ac_try) 2>&5
8760 ac_status=$?
8761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762 (exit $ac_status); }; }; then
8763 ac_cv_type_off_t=yes
8764 else
8765 echo "$as_me: failed program was:" >&5
8766 sed 's/^/| /' conftest.$ac_ext >&5
8767
8768 ac_cv_type_off_t=no
8769 fi
8770 rm -f conftest.$ac_objext conftest.$ac_ext
8771 fi
8772 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8773 echo "${ECHO_T}$ac_cv_type_off_t" >&6
8774 if test $ac_cv_type_off_t = yes; then
8775 :
8776 else
8777
8778 cat >>confdefs.h <<_ACEOF
8779 #define off_t long
8780 _ACEOF
8781
8782 fi
8783
8784 echo "$as_me:$LINENO: checking for size_t" >&5
8785 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
8786 if test "${ac_cv_type_size_t+set}" = set; then
8787 echo $ECHO_N "(cached) $ECHO_C" >&6
8788 else
8789 cat >conftest.$ac_ext <<_ACEOF
8790 #line $LINENO "configure"
8791 /* confdefs.h. */
8792 _ACEOF
8793 cat confdefs.h >>conftest.$ac_ext
8794 cat >>conftest.$ac_ext <<_ACEOF
8795 /* end confdefs.h. */
8796 $ac_includes_default
8797 int
8798 main ()
8799 {
8800 if ((size_t *) 0)
8801 return 0;
8802 if (sizeof (size_t))
8803 return 0;
8804 ;
8805 return 0;
8806 }
8807 _ACEOF
8808 rm -f conftest.$ac_objext
8809 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8810 (eval $ac_compile) 2>&5
8811 ac_status=$?
8812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 (exit $ac_status); } &&
8814 { ac_try='test -s conftest.$ac_objext'
8815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8816 (eval $ac_try) 2>&5
8817 ac_status=$?
8818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8819 (exit $ac_status); }; }; then
8820 ac_cv_type_size_t=yes
8821 else
8822 echo "$as_me: failed program was:" >&5
8823 sed 's/^/| /' conftest.$ac_ext >&5
8824
8825 ac_cv_type_size_t=no
8826 fi
8827 rm -f conftest.$ac_objext conftest.$ac_ext
8828 fi
8829 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8830 echo "${ECHO_T}$ac_cv_type_size_t" >&6
8831 if test $ac_cv_type_size_t = yes; then
8832 :
8833 else
8834
8835 cat >>confdefs.h <<_ACEOF
8836 #define size_t unsigned
8837 _ACEOF
8838
8839 fi
8840
8841
8842
8843 echo "$as_me:$LINENO: checking for working memcmp" >&5
8844 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
8845 if test "${ac_cv_func_memcmp_working+set}" = set; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8847 else
8848 if test "$cross_compiling" = yes; then
8849 ac_cv_func_memcmp_working=no
8850 else
8851 cat >conftest.$ac_ext <<_ACEOF
8852 #line $LINENO "configure"
8853 /* confdefs.h. */
8854 _ACEOF
8855 cat confdefs.h >>conftest.$ac_ext
8856 cat >>conftest.$ac_ext <<_ACEOF
8857 /* end confdefs.h. */
8858
8859 int
8860 main ()
8861 {
8862
8863 /* Some versions of memcmp are not 8-bit clean. */
8864 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
8865 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8866 exit (1);
8867
8868 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8869 or more and with at least one buffer not starting on a 4-byte boundary.
8870 William Lewis provided this test program. */
8871 {
8872 char foo[21];
8873 char bar[21];
8874 int i;
8875 for (i = 0; i < 4; i++)
8876 {
8877 char *a = foo + i;
8878 char *b = bar + i;
8879 strcpy (a, "--------01111111");
8880 strcpy (b, "--------10000000");
8881 if (memcmp (a, b, 16) >= 0)
8882 exit (1);
8883 }
8884 exit (0);
8885 }
8886
8887 ;
8888 return 0;
8889 }
8890 _ACEOF
8891 rm -f conftest$ac_exeext
8892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8893 (eval $ac_link) 2>&5
8894 ac_status=$?
8895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8898 (eval $ac_try) 2>&5
8899 ac_status=$?
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); }; }; then
8902 ac_cv_func_memcmp_working=yes
8903 else
8904 echo "$as_me: program exited with status $ac_status" >&5
8905 echo "$as_me: failed program was:" >&5
8906 sed 's/^/| /' conftest.$ac_ext >&5
8907
8908 ( exit $ac_status )
8909 ac_cv_func_memcmp_working=no
8910 fi
8911 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8912 fi
8913 fi
8914 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
8915 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
8916 test $ac_cv_func_memcmp_working = no && LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8917
8918
8919
8920 for ac_header in stdlib.h unistd.h
8921 do
8922 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8924 echo "$as_me:$LINENO: checking for $ac_header" >&5
8925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8926 if eval "test \"\${$as_ac_Header+set}\" = set"; then
8927 echo $ECHO_N "(cached) $ECHO_C" >&6
8928 fi
8929 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8930 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8931 else
8932 # Is the header compilable?
8933 echo "$as_me:$LINENO: checking $ac_header usability" >&5
8934 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8935 cat >conftest.$ac_ext <<_ACEOF
8936 #line $LINENO "configure"
8937 /* confdefs.h. */
8938 _ACEOF
8939 cat confdefs.h >>conftest.$ac_ext
8940 cat >>conftest.$ac_ext <<_ACEOF
8941 /* end confdefs.h. */
8942 $ac_includes_default
8943 #include <$ac_header>
8944 _ACEOF
8945 rm -f conftest.$ac_objext
8946 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8947 (eval $ac_compile) 2>&5
8948 ac_status=$?
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 (exit $ac_status); } &&
8951 { ac_try='test -s conftest.$ac_objext'
8952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8953 (eval $ac_try) 2>&5
8954 ac_status=$?
8955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956 (exit $ac_status); }; }; then
8957 ac_header_compiler=yes
8958 else
8959 echo "$as_me: failed program was:" >&5
8960 sed 's/^/| /' conftest.$ac_ext >&5
8961
8962 ac_header_compiler=no
8963 fi
8964 rm -f conftest.$ac_objext conftest.$ac_ext
8965 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8966 echo "${ECHO_T}$ac_header_compiler" >&6
8967
8968 # Is the header present?
8969 echo "$as_me:$LINENO: checking $ac_header presence" >&5
8970 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8971 cat >conftest.$ac_ext <<_ACEOF
8972 #line $LINENO "configure"
8973 /* confdefs.h. */
8974 _ACEOF
8975 cat confdefs.h >>conftest.$ac_ext
8976 cat >>conftest.$ac_ext <<_ACEOF
8977 /* end confdefs.h. */
8978 #include <$ac_header>
8979 _ACEOF
8980 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8981 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8982 ac_status=$?
8983 grep -v '^ *+' conftest.er1 >conftest.err
8984 rm -f conftest.er1
8985 cat conftest.err >&5
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); } >/dev/null; then
8988 if test -s conftest.err; then
8989 ac_cpp_err=$ac_c_preproc_warn_flag
8990 else
8991 ac_cpp_err=
8992 fi
8993 else
8994 ac_cpp_err=yes
8995 fi
8996 if test -z "$ac_cpp_err"; then
8997 ac_header_preproc=yes
8998 else
8999 echo "$as_me: failed program was:" >&5
9000 sed 's/^/| /' conftest.$ac_ext >&5
9001
9002 ac_header_preproc=no
9003 fi
9004 rm -f conftest.err conftest.$ac_ext
9005 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9006 echo "${ECHO_T}$ac_header_preproc" >&6
9007
9008 # So? What about this header?
9009 case $ac_header_compiler:$ac_header_preproc in
9010 yes:no )
9011 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9012 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9014 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9015 (
9016 cat <<\_ASBOX
9017 ## ------------------------------------ ##
9018 ## Report this to bug-autoconf@gnu.org. ##
9019 ## ------------------------------------ ##
9020 _ASBOX
9021 ) |
9022 sed "s/^/$as_me: WARNING: /" >&2
9023 ;;
9024 no:yes )
9025 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9026 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9027 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9028 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9029 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9030 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9031 (
9032 cat <<\_ASBOX
9033 ## ------------------------------------ ##
9034 ## Report this to bug-autoconf@gnu.org. ##
9035 ## ------------------------------------ ##
9036 _ASBOX
9037 ) |
9038 sed "s/^/$as_me: WARNING: /" >&2
9039 ;;
9040 esac
9041 echo "$as_me:$LINENO: checking for $ac_header" >&5
9042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9044 echo $ECHO_N "(cached) $ECHO_C" >&6
9045 else
9046 eval "$as_ac_Header=$ac_header_preproc"
9047 fi
9048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9050
9051 fi
9052 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9053 cat >>confdefs.h <<_ACEOF
9054 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9055 _ACEOF
9056
9057 fi
9058
9059 done
9060
9061
9062 for ac_func in getpagesize
9063 do
9064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9065 echo "$as_me:$LINENO: checking for $ac_func" >&5
9066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9067 if eval "test \"\${$as_ac_var+set}\" = set"; then
9068 echo $ECHO_N "(cached) $ECHO_C" >&6
9069 else
9070 cat >conftest.$ac_ext <<_ACEOF
9071 #line $LINENO "configure"
9072 /* confdefs.h. */
9073 _ACEOF
9074 cat confdefs.h >>conftest.$ac_ext
9075 cat >>conftest.$ac_ext <<_ACEOF
9076 /* end confdefs.h. */
9077 /* System header to define __stub macros and hopefully few prototypes,
9078 which can conflict with char $ac_func (); below.
9079 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9080 <limits.h> exists even on freestanding compilers. */
9081 #ifdef __STDC__
9082 # include <limits.h>
9083 #else
9084 # include <assert.h>
9085 #endif
9086 /* Override any gcc2 internal prototype to avoid an error. */
9087 #ifdef __cplusplus
9088 extern "C"
9089 {
9090 #endif
9091 /* We use char because int might match the return type of a gcc2
9092 builtin and then its argument prototype would still apply. */
9093 char $ac_func ();
9094 /* The GNU C library defines this for functions which it implements
9095 to always fail with ENOSYS. Some functions are actually named
9096 something starting with __ and the normal name is an alias. */
9097 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9098 choke me
9099 #else
9100 char (*f) () = $ac_func;
9101 #endif
9102 #ifdef __cplusplus
9103 }
9104 #endif
9105
9106 int
9107 main ()
9108 {
9109 return f != $ac_func;
9110 ;
9111 return 0;
9112 }
9113 _ACEOF
9114 rm -f conftest.$ac_objext conftest$ac_exeext
9115 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9116 (eval $ac_link) 2>&5
9117 ac_status=$?
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); } &&
9120 { ac_try='test -s conftest$ac_exeext'
9121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9122 (eval $ac_try) 2>&5
9123 ac_status=$?
9124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9125 (exit $ac_status); }; }; then
9126 eval "$as_ac_var=yes"
9127 else
9128 echo "$as_me: failed program was:" >&5
9129 sed 's/^/| /' conftest.$ac_ext >&5
9130
9131 eval "$as_ac_var=no"
9132 fi
9133 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9134 fi
9135 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9136 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9137 if test `eval echo '${'$as_ac_var'}'` = yes; then
9138 cat >>confdefs.h <<_ACEOF
9139 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9140 _ACEOF
9141
9142 fi
9143 done
9144
9145 echo "$as_me:$LINENO: checking for working mmap" >&5
9146 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
9147 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9148 echo $ECHO_N "(cached) $ECHO_C" >&6
9149 else
9150 if test "$cross_compiling" = yes; then
9151 ac_cv_func_mmap_fixed_mapped=no
9152 else
9153 cat >conftest.$ac_ext <<_ACEOF
9154 #line $LINENO "configure"
9155 /* confdefs.h. */
9156 _ACEOF
9157 cat confdefs.h >>conftest.$ac_ext
9158 cat >>conftest.$ac_ext <<_ACEOF
9159 /* end confdefs.h. */
9160 $ac_includes_default
9161 /* malloc might have been renamed as rpl_malloc. */
9162 #undef malloc
9163
9164 /* Thanks to Mike Haertel and Jim Avera for this test.
9165 Here is a matrix of mmap possibilities:
9166 mmap private not fixed
9167 mmap private fixed at somewhere currently unmapped
9168 mmap private fixed at somewhere already mapped
9169 mmap shared not fixed
9170 mmap shared fixed at somewhere currently unmapped
9171 mmap shared fixed at somewhere already mapped
9172 For private mappings, we should verify that changes cannot be read()
9173 back from the file, nor mmap's back from the file at a different
9174 address. (There have been systems where private was not correctly
9175 implemented like the infamous i386 svr4.0, and systems where the
9176 VM page cache was not coherent with the file system buffer cache
9177 like early versions of FreeBSD and possibly contemporary NetBSD.)
9178 For shared mappings, we should conversely verify that changes get
9179 propagated back to all the places they're supposed to be.
9180
9181 Grep wants private fixed already mapped.
9182 The main things grep needs to know about mmap are:
9183 * does it exist and is it safe to write into the mmap'd area
9184 * how to use it (BSD variants) */
9185
9186 #include <fcntl.h>
9187 #include <sys/mman.h>
9188
9189 #if !STDC_HEADERS && !HAVE_STDLIB_H
9190 char *malloc ();
9191 #endif
9192
9193 /* This mess was copied from the GNU getpagesize.h. */
9194 #if !HAVE_GETPAGESIZE
9195 /* Assume that all systems that can run configure have sys/param.h. */
9196 # if !HAVE_SYS_PARAM_H
9197 # define HAVE_SYS_PARAM_H 1
9198 # endif
9199
9200 # ifdef _SC_PAGESIZE
9201 # define getpagesize() sysconf(_SC_PAGESIZE)
9202 # else /* no _SC_PAGESIZE */
9203 # if HAVE_SYS_PARAM_H
9204 # include <sys/param.h>
9205 # ifdef EXEC_PAGESIZE
9206 # define getpagesize() EXEC_PAGESIZE
9207 # else /* no EXEC_PAGESIZE */
9208 # ifdef NBPG
9209 # define getpagesize() NBPG * CLSIZE
9210 # ifndef CLSIZE
9211 # define CLSIZE 1
9212 # endif /* no CLSIZE */
9213 # else /* no NBPG */
9214 # ifdef NBPC
9215 # define getpagesize() NBPC
9216 # else /* no NBPC */
9217 # ifdef PAGESIZE
9218 # define getpagesize() PAGESIZE
9219 # endif /* PAGESIZE */
9220 # endif /* no NBPC */
9221 # endif /* no NBPG */
9222 # endif /* no EXEC_PAGESIZE */
9223 # else /* no HAVE_SYS_PARAM_H */
9224 # define getpagesize() 8192 /* punt totally */
9225 # endif /* no HAVE_SYS_PARAM_H */
9226 # endif /* no _SC_PAGESIZE */
9227
9228 #endif /* no HAVE_GETPAGESIZE */
9229
9230 int
9231 main ()
9232 {
9233 char *data, *data2, *data3;
9234 int i, pagesize;
9235 int fd;
9236
9237 pagesize = getpagesize ();
9238
9239 /* First, make a file with some known garbage in it. */
9240 data = (char *) malloc (pagesize);
9241 if (!data)
9242 exit (1);
9243 for (i = 0; i < pagesize; ++i)
9244 *(data + i) = rand ();
9245 umask (0);
9246 fd = creat ("conftest.mmap", 0600);
9247 if (fd < 0)
9248 exit (1);
9249 if (write (fd, data, pagesize) != pagesize)
9250 exit (1);
9251 close (fd);
9252
9253 /* Next, try to mmap the file at a fixed address which already has
9254 something else allocated at it. If we can, also make sure that
9255 we see the same garbage. */
9256 fd = open ("conftest.mmap", O_RDWR);
9257 if (fd < 0)
9258 exit (1);
9259 data2 = (char *) malloc (2 * pagesize);
9260 if (!data2)
9261 exit (1);
9262 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
9263 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9264 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9265 exit (1);
9266 for (i = 0; i < pagesize; ++i)
9267 if (*(data + i) != *(data2 + i))
9268 exit (1);
9269
9270 /* Finally, make sure that changes to the mapped area do not
9271 percolate back to the file as seen by read(). (This is a bug on
9272 some variants of i386 svr4.0.) */
9273 for (i = 0; i < pagesize; ++i)
9274 *(data2 + i) = *(data2 + i) + 1;
9275 data3 = (char *) malloc (pagesize);
9276 if (!data3)
9277 exit (1);
9278 if (read (fd, data3, pagesize) != pagesize)
9279 exit (1);
9280 for (i = 0; i < pagesize; ++i)
9281 if (*(data + i) != *(data3 + i))
9282 exit (1);
9283 close (fd);
9284 exit (0);
9285 }
9286 _ACEOF
9287 rm -f conftest$ac_exeext
9288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9289 (eval $ac_link) 2>&5
9290 ac_status=$?
9291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9294 (eval $ac_try) 2>&5
9295 ac_status=$?
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); }; }; then
9298 ac_cv_func_mmap_fixed_mapped=yes
9299 else
9300 echo "$as_me: program exited with status $ac_status" >&5
9301 echo "$as_me: failed program was:" >&5
9302 sed 's/^/| /' conftest.$ac_ext >&5
9303
9304 ( exit $ac_status )
9305 ac_cv_func_mmap_fixed_mapped=no
9306 fi
9307 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9308 fi
9309 fi
9310 echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9311 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
9312 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9313
9314 cat >>confdefs.h <<\_ACEOF
9315 #define HAVE_MMAP 1
9316 _ACEOF
9317
9318 fi
9319 rm -f conftest.mmap
9320
9321
9322 if test "$ac_cv_func_mmap_fixed_mapped" = "yes"; then
9323 FILEMAP=unixfilemap
9324 else
9325 FILEMAP=readfilemap
9326 fi
9327
9328
9329
9330
9331 for ac_func in memmove bcopy
9332 do
9333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9334 echo "$as_me:$LINENO: checking for $ac_func" >&5
9335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9336 if eval "test \"\${$as_ac_var+set}\" = set"; then
9337 echo $ECHO_N "(cached) $ECHO_C" >&6
9338 else
9339 cat >conftest.$ac_ext <<_ACEOF
9340 #line $LINENO "configure"
9341 /* confdefs.h. */
9342 _ACEOF
9343 cat confdefs.h >>conftest.$ac_ext
9344 cat >>conftest.$ac_ext <<_ACEOF
9345 /* end confdefs.h. */
9346 /* System header to define __stub macros and hopefully few prototypes,
9347 which can conflict with char $ac_func (); below.
9348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9349 <limits.h> exists even on freestanding compilers. */
9350 #ifdef __STDC__
9351 # include <limits.h>
9352 #else
9353 # include <assert.h>
9354 #endif
9355 /* Override any gcc2 internal prototype to avoid an error. */
9356 #ifdef __cplusplus
9357 extern "C"
9358 {
9359 #endif
9360 /* We use char because int might match the return type of a gcc2
9361 builtin and then its argument prototype would still apply. */
9362 char $ac_func ();
9363 /* The GNU C library defines this for functions which it implements
9364 to always fail with ENOSYS. Some functions are actually named
9365 something starting with __ and the normal name is an alias. */
9366 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9367 choke me
9368 #else
9369 char (*f) () = $ac_func;
9370 #endif
9371 #ifdef __cplusplus
9372 }
9373 #endif
9374
9375 int
9376 main ()
9377 {
9378 return f != $ac_func;
9379 ;
9380 return 0;
9381 }
9382 _ACEOF
9383 rm -f conftest.$ac_objext conftest$ac_exeext
9384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9385 (eval $ac_link) 2>&5
9386 ac_status=$?
9387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9388 (exit $ac_status); } &&
9389 { ac_try='test -s conftest$ac_exeext'
9390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9391 (eval $ac_try) 2>&5
9392 ac_status=$?
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); }; }; then
9395 eval "$as_ac_var=yes"
9396 else
9397 echo "$as_me: failed program was:" >&5
9398 sed 's/^/| /' conftest.$ac_ext >&5
9399
9400 eval "$as_ac_var=no"
9401 fi
9402 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9403 fi
9404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9405 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9406 if test `eval echo '${'$as_ac_var'}'` = yes; then
9407 cat >>confdefs.h <<_ACEOF
9408 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9409 _ACEOF
9410
9411 fi
9412 done
9413
9414
9415
9416 cat >>confdefs.h <<\_ACEOF
9417 #define XML_NS 1
9418 _ACEOF
9419
9420
9421 cat >>confdefs.h <<\_ACEOF
9422 #define XML_DTD 1
9423 _ACEOF
9424
9425
9426 cat >>confdefs.h <<\_ACEOF
9427 #define XML_CONTEXT_BYTES 1024
9428 _ACEOF
9429
9430
9431 ac_config_files="$ac_config_files Makefile"
9432
9433 cat >confcache <<\_ACEOF
9434 # This file is a shell script that caches the results of configure
9435 # tests run on this system so they can be shared between configure
9436 # scripts and configure runs, see configure's option --config-cache.
9437 # It is not useful on other systems. If it contains results you don't
9438 # want to keep, you may remove or edit it.
9439 #
9440 # config.status only pays attention to the cache file if you give it
9441 # the --recheck option to rerun configure.
9442 #
9443 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9444 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9445 # following values.
9446
9447 _ACEOF
9448
9449 # The following way of writing the cache mishandles newlines in values,
9450 # but we know of no workaround that is simple, portable, and efficient.
9451 # So, don't put newlines in cache variables' values.
9452 # Ultrix sh set writes to stderr and can't be redirected directly,
9453 # and sets the high bit in the cache file unless we assign to the vars.
9454 {
9455 (set) 2>&1 |
9456 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9457 *ac_space=\ *)
9458 # `set' does not quote correctly, so add quotes (double-quote
9459 # substitution turns \\\\ into \\, and sed turns \\ into \).
9460 sed -n \
9461 "s/'/'\\\\''/g;
9462 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9463 ;;
9464 *)
9465 # `set' quotes correctly as required by POSIX, so do not add quotes.
9466 sed -n \
9467 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9468 ;;
9469 esac;
9470 } |
9471 sed '
9472 t clear
9473 : clear
9474 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9475 t end
9476 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9477 : end' >>confcache
9478 if diff $cache_file confcache >/dev/null 2>&1; then :; else
9479 if test -w $cache_file; then
9480 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9481 cat confcache >$cache_file
9482 else
9483 echo "not updating unwritable cache $cache_file"
9484 fi
9485 fi
9486 rm -f confcache
9487
9488 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9489 # Let make expand exec_prefix.
9490 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9491
9492 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9493 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9494 # trailing colons and then remove the whole line if VPATH becomes empty
9495 # (actually we leave an empty line to preserve line numbers).
9496 if test "x$srcdir" = x.; then
9497 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9498 s/:*\$(srcdir):*/:/;
9499 s/:*\${srcdir}:*/:/;
9500 s/:*@srcdir@:*/:/;
9501 s/^\([^=]*=[ ]*\):*/\1/;
9502 s/:*$//;
9503 s/^[^=]*=[ ]*$//;
9504 }'
9505 fi
9506
9507 DEFS=-DHAVE_CONFIG_H
9508
9509 ac_libobjs=
9510 ac_ltlibobjs=
9511 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
9512 # 1. Remove the extension, and $U if already installed.
9513 ac_i=`echo "$ac_i" |
9514 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
9515 # 2. Add them.
9516 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
9517 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
9518 done
9519 LIBOBJS=$ac_libobjs
9520
9521 LTLIBOBJS=$ac_ltlibobjs
9522
9523
9524
9525 : ${CONFIG_STATUS=./config.status}
9526 ac_clean_files_save=$ac_clean_files
9527 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
9528 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
9529 echo "$as_me: creating $CONFIG_STATUS" >&6;}
9530 cat >$CONFIG_STATUS <<_ACEOF
9531 #! $SHELL
9532 # Generated by $as_me.
9533 # Run this file to recreate the current configuration.
9534 # Compiler output produced by configure, useful for debugging
9535 # configure, is in config.log if it exists.
9536
9537 debug=false
9538 ac_cs_recheck=false
9539 ac_cs_silent=false
9540 SHELL=\${CONFIG_SHELL-$SHELL}
9541 _ACEOF
9542
9543 cat >>$CONFIG_STATUS <<\_ACEOF
9544 ## --------------------- ##
9545 ## M4sh Initialization. ##
9546 ## --------------------- ##
9547
9548 # Be Bourne compatible
9549 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
9550 emulate sh
9551 NULLCMD=:
9552 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
9553 # is contrary to our usage. Disable this feature.
9554 alias -g '${1+"$@"}'='"$@"'
9555 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
9556 set -o posix
9557 fi
9558
9559 # Support unset when possible.
9560 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
9561 as_unset=unset
9562 else
9563 as_unset=false
9564 fi
9565
9566
9567 # Work around bugs in pre-3.0 UWIN ksh.
9568 $as_unset ENV MAIL MAILPATH
9569 PS1='$ '
9570 PS2='> '
9571 PS4='+ '
9572
9573 # NLS nuisances.
9574 for as_var in \
9575 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9576 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9577 LC_TELEPHONE LC_TIME
9578 do
9579 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
9580 eval $as_var=C; export $as_var
9581 else
9582 $as_unset $as_var
9583 fi
9584 done
9585
9586 # Required to use basename.
9587 if expr a : '\(a\)' >/dev/null 2>&1; then
9588 as_expr=expr
9589 else
9590 as_expr=false
9591 fi
9592
9593 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
9594 as_basename=basename
9595 else
9596 as_basename=false
9597 fi
9598
9599
9600 # Name of the executable.
9601 as_me=`$as_basename "$0" ||
9602 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9603 X"$0" : 'X\(//\)$' \| \
9604 X"$0" : 'X\(/\)$' \| \
9605 . : '\(.\)' 2>/dev/null ||
9606 echo X/"$0" |
9607 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
9608 /^X\/\(\/\/\)$/{ s//\1/; q; }
9609 /^X\/\(\/\).*/{ s//\1/; q; }
9610 s/.*/./; q'`
9611
9612
9613 # PATH needs CR, and LINENO needs CR and PATH.
9614 # Avoid depending upon Character Ranges.
9615 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9616 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9617 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9618 as_cr_digits='0123456789'
9619 as_cr_alnum=$as_cr_Letters$as_cr_digits
9620
9621 # The user is always right.
9622 if test "${PATH_SEPARATOR+set}" != set; then
9623 echo "#! /bin/sh" >conf$$.sh
9624 echo "exit 0" >>conf$$.sh
9625 chmod +x conf$$.sh
9626 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9627 PATH_SEPARATOR=';'
9628 else
9629 PATH_SEPARATOR=:
9630 fi
9631 rm -f conf$$.sh
9632 fi
9633
9634
9635 as_lineno_1=$LINENO
9636 as_lineno_2=$LINENO
9637 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9638 test "x$as_lineno_1" != "x$as_lineno_2" &&
9639 test "x$as_lineno_3" = "x$as_lineno_2" || {
9640 # Find who we are. Look in the path if we contain no path at all
9641 # relative or not.
9642 case $0 in
9643 *[\\/]* ) as_myself=$0 ;;
9644 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9645 for as_dir in $PATH
9646 do
9647 IFS=$as_save_IFS
9648 test -z "$as_dir" && as_dir=.
9649 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9650 done
9651
9652 ;;
9653 esac
9654 # We did not find ourselves, most probably we were run as `sh COMMAND'
9655 # in which case we are not to be found in the path.
9656 if test "x$as_myself" = x; then
9657 as_myself=$0
9658 fi
9659 if test ! -f "$as_myself"; then
9660 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
9661 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
9662 { (exit 1); exit 1; }; }
9663 fi
9664 case $CONFIG_SHELL in
9665 '')
9666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9667 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
9668 do
9669 IFS=$as_save_IFS
9670 test -z "$as_dir" && as_dir=.
9671 for as_base in sh bash ksh sh5; do
9672 case $as_dir in
9673 /*)
9674 if ("$as_dir/$as_base" -c '
9675 as_lineno_1=$LINENO
9676 as_lineno_2=$LINENO
9677 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
9678 test "x$as_lineno_1" != "x$as_lineno_2" &&
9679 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
9680 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
9681 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
9682 CONFIG_SHELL=$as_dir/$as_base
9683 export CONFIG_SHELL
9684 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
9685 fi;;
9686 esac
9687 done
9688 done
9689 ;;
9690 esac
9691
9692 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9693 # uniformly replaced by the line number. The first 'sed' inserts a
9694 # line-number line before each line; the second 'sed' does the real
9695 # work. The second script uses 'N' to pair each line-number line
9696 # with the numbered line, and appends trailing '-' during
9697 # substitution so that $LINENO is not a special case at line end.
9698 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9699 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
9700 sed '=' <$as_myself |
9701 sed '
9702 N
9703 s,$,-,
9704 : loop
9705 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
9706 t loop
9707 s,-$,,
9708 s,^['$as_cr_digits']*\n,,
9709 ' >$as_me.lineno &&
9710 chmod +x $as_me.lineno ||
9711 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
9712 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
9713 { (exit 1); exit 1; }; }
9714
9715 # Don't try to exec as it changes $[0], causing all sort of problems
9716 # (the dirname of $[0] is not the place where we might find the
9717 # original and so on. Autoconf is especially sensible to this).
9718 . ./$as_me.lineno
9719 # Exit status is that of the last command.
9720 exit
9721 }
9722
9723
9724 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
9725 *c*,-n*) ECHO_N= ECHO_C='
9726 ' ECHO_T=' ' ;;
9727 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
9728 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
9729 esac
9730
9731 if expr a : '\(a\)' >/dev/null 2>&1; then
9732 as_expr=expr
9733 else
9734 as_expr=false
9735 fi
9736
9737 rm -f conf$$ conf$$.exe conf$$.file
9738 echo >conf$$.file
9739 if ln -s conf$$.file conf$$ 2>/dev/null; then
9740 # We could just check for DJGPP; but this test a) works b) is more generic
9741 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
9742 if test -f conf$$.exe; then
9743 # Don't use ln at all; we don't have any links
9744 as_ln_s='cp -p'
9745 else
9746 as_ln_s='ln -s'
9747 fi
9748 elif ln conf$$.file conf$$ 2>/dev/null; then
9749 as_ln_s=ln
9750 else
9751 as_ln_s='cp -p'
9752 fi
9753 rm -f conf$$ conf$$.exe conf$$.file
9754
9755 if mkdir -p . 2>/dev/null; then
9756 as_mkdir_p=:
9757 else
9758 as_mkdir_p=false
9759 fi
9760
9761 as_executable_p="test -f"
9762
9763 # Sed expression to map a string onto a valid CPP name.
9764 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
9765
9766 # Sed expression to map a string onto a valid variable name.
9767 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
9768
9769
9770 # IFS
9771 # We need space, tab and new line, in precisely that order.
9772 as_nl='
9773 '
9774 IFS=" $as_nl"
9775
9776 # CDPATH.
9777 $as_unset CDPATH
9778
9779 exec 6>&1
9780
9781 # Open the log real soon, to keep \$[0] and so on meaningful, and to
9782 # report actual input values of CONFIG_FILES etc. instead of their
9783 # values after options handling. Logging --version etc. is OK.
9784 exec 5>>config.log
9785 {
9786 echo
9787 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9788 ## Running $as_me. ##
9789 _ASBOX
9790 } >&5
9791 cat >&5 <<_CSEOF
9792
9793 This file was extended by $as_me, which was
9794 generated by GNU Autoconf 2.57. Invocation command line was
9795
9796 CONFIG_FILES = $CONFIG_FILES
9797 CONFIG_HEADERS = $CONFIG_HEADERS
9798 CONFIG_LINKS = $CONFIG_LINKS
9799 CONFIG_COMMANDS = $CONFIG_COMMANDS
9800 $ $0 $@
9801
9802 _CSEOF
9803 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
9804 echo >&5
9805 _ACEOF
9806
9807 # Files that config.status was made for.
9808 if test -n "$ac_config_files"; then
9809 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
9810 fi
9811
9812 if test -n "$ac_config_headers"; then
9813 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
9814 fi
9815
9816 if test -n "$ac_config_links"; then
9817 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
9818 fi
9819
9820 if test -n "$ac_config_commands"; then
9821 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
9822 fi
9823
9824 cat >>$CONFIG_STATUS <<\_ACEOF
9825
9826 ac_cs_usage="\
9827 \`$as_me' instantiates files from templates according to the
9828 current configuration.
9829
9830 Usage: $0 [OPTIONS] [FILE]...
9831
9832 -h, --help print this help, then exit
9833 -V, --version print version number, then exit
9834 -q, --quiet do not print progress messages
9835 -d, --debug don't remove temporary files
9836 --recheck update $as_me by reconfiguring in the same conditions
9837 --file=FILE[:TEMPLATE]
9838 instantiate the configuration file FILE
9839 --header=FILE[:TEMPLATE]
9840 instantiate the configuration header FILE
9841
9842 Configuration files:
9843 $config_files
9844
9845 Configuration headers:
9846 $config_headers
9847
9848 Report bugs to <bug-autoconf@gnu.org>."
9849 _ACEOF
9850
9851 cat >>$CONFIG_STATUS <<_ACEOF
9852 ac_cs_version="\\
9853 config.status
9854 configured by $0, generated by GNU Autoconf 2.57,
9855 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
9856
9857 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
9858 Free Software Foundation, Inc.
9859 This config.status script is free software; the Free Software Foundation
9860 gives unlimited permission to copy, distribute and modify it."
9861 srcdir=$srcdir
9862 INSTALL="$INSTALL"
9863 _ACEOF
9864
9865 cat >>$CONFIG_STATUS <<\_ACEOF
9866 # If no file are specified by the user, then we need to provide default
9867 # value. By we need to know if files were specified by the user.
9868 ac_need_defaults=:
9869 while test $# != 0
9870 do
9871 case $1 in
9872 --*=*)
9873 ac_option=`expr "x$1" : 'x\([^=]*\)='`
9874 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
9875 ac_shift=:
9876 ;;
9877 -*)
9878 ac_option=$1
9879 ac_optarg=$2
9880 ac_shift=shift
9881 ;;
9882 *) # This is not an option, so the user has probably given explicit
9883 # arguments.
9884 ac_option=$1
9885 ac_need_defaults=false;;
9886 esac
9887
9888 case $ac_option in
9889 # Handling of the options.
9890 _ACEOF
9891 cat >>$CONFIG_STATUS <<\_ACEOF
9892 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9893 ac_cs_recheck=: ;;
9894 --version | --vers* | -V )
9895 echo "$ac_cs_version"; exit 0 ;;
9896 --he | --h)
9897 # Conflict between --help and --header
9898 { { echo "$as_me:$LINENO: error: ambiguous option: $1
9899 Try \`$0 --help' for more information." >&5
9900 echo "$as_me: error: ambiguous option: $1
9901 Try \`$0 --help' for more information." >&2;}
9902 { (exit 1); exit 1; }; };;
9903 --help | --hel | -h )
9904 echo "$ac_cs_usage"; exit 0 ;;
9905 --debug | --d* | -d )
9906 debug=: ;;
9907 --file | --fil | --fi | --f )
9908 $ac_shift
9909 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9910 ac_need_defaults=false;;
9911 --header | --heade | --head | --hea )
9912 $ac_shift
9913 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9914 ac_need_defaults=false;;
9915 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9916 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9917 ac_cs_silent=: ;;
9918
9919 # This is an error.
9920 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
9921 Try \`$0 --help' for more information." >&5
9922 echo "$as_me: error: unrecognized option: $1
9923 Try \`$0 --help' for more information." >&2;}
9924 { (exit 1); exit 1; }; } ;;
9925
9926 *) ac_config_targets="$ac_config_targets $1" ;;
9927
9928 esac
9929 shift
9930 done
9931
9932 ac_configure_extra_args=
9933
9934 if $ac_cs_silent; then
9935 exec 6>/dev/null
9936 ac_configure_extra_args="$ac_configure_extra_args --silent"
9937 fi
9938
9939 _ACEOF
9940 cat >>$CONFIG_STATUS <<_ACEOF
9941 if \$ac_cs_recheck; then
9942 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9943 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9944 fi
9945
9946 _ACEOF
9947
9948
9949
9950
9951
9952 cat >>$CONFIG_STATUS <<\_ACEOF
9953 for ac_config_target in $ac_config_targets
9954 do
9955 case "$ac_config_target" in
9956 # Handling of arguments.
9957 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9958 "expat_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS expat_config.h" ;;
9959 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9960 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9961 { (exit 1); exit 1; }; };;
9962 esac
9963 done
9964
9965 # If the user did not use the arguments to specify the items to instantiate,
9966 # then the envvar interface is used. Set only those that are not.
9967 # We use the long form for the default assignment because of an extremely
9968 # bizarre bug on SunOS 4.1.3.
9969 if $ac_need_defaults; then
9970 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9971 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9972 fi
9973
9974 # Have a temporary directory for convenience. Make it in the build tree
9975 # simply because there is no reason to put it here, and in addition,
9976 # creating and moving files from /tmp can sometimes cause problems.
9977 # Create a temporary directory, and hook for its removal unless debugging.
9978 $debug ||
9979 {
9980 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
9981 trap '{ (exit 1); exit 1; }' 1 2 13 15
9982 }
9983
9984 # Create a (secure) tmp directory for tmp files.
9985
9986 {
9987 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
9988 test -n "$tmp" && test -d "$tmp"
9989 } ||
9990 {
9991 tmp=./confstat$$-$RANDOM
9992 (umask 077 && mkdir $tmp)
9993 } ||
9994 {
9995 echo "$me: cannot create a temporary directory in ." >&2
9996 { (exit 1); exit 1; }
9997 }
9998
9999 _ACEOF
10000
10001 cat >>$CONFIG_STATUS <<_ACEOF
10002
10003 #
10004 # CONFIG_FILES section.
10005 #
10006
10007 # No need to generate the scripts if there are no CONFIG_FILES.
10008 # This happens for instance when ./config.status config.h
10009 if test -n "\$CONFIG_FILES"; then
10010 # Protect against being on the right side of a sed subst in config.status.
10011 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10012 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10013 s,@SHELL@,$SHELL,;t t
10014 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10015 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10016 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10017 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10018 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10019 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10020 s,@exec_prefix@,$exec_prefix,;t t
10021 s,@prefix@,$prefix,;t t
10022 s,@program_transform_name@,$program_transform_name,;t t
10023 s,@bindir@,$bindir,;t t
10024 s,@sbindir@,$sbindir,;t t
10025 s,@libexecdir@,$libexecdir,;t t
10026 s,@datadir@,$datadir,;t t
10027 s,@sysconfdir@,$sysconfdir,;t t
10028 s,@sharedstatedir@,$sharedstatedir,;t t
10029 s,@localstatedir@,$localstatedir,;t t
10030 s,@libdir@,$libdir,;t t
10031 s,@includedir@,$includedir,;t t
10032 s,@oldincludedir@,$oldincludedir,;t t
10033 s,@infodir@,$infodir,;t t
10034 s,@mandir@,$mandir,;t t
10035 s,@build_alias@,$build_alias,;t t
10036 s,@host_alias@,$host_alias,;t t
10037 s,@target_alias@,$target_alias,;t t
10038 s,@DEFS@,$DEFS,;t t
10039 s,@ECHO_C@,$ECHO_C,;t t
10040 s,@ECHO_N@,$ECHO_N,;t t
10041 s,@ECHO_T@,$ECHO_T,;t t
10042 s,@LIBS@,$LIBS,;t t
10043 s,@build@,$build,;t t
10044 s,@build_cpu@,$build_cpu,;t t
10045 s,@build_vendor@,$build_vendor,;t t
10046 s,@build_os@,$build_os,;t t
10047 s,@host@,$host,;t t
10048 s,@host_cpu@,$host_cpu,;t t
10049 s,@host_vendor@,$host_vendor,;t t
10050 s,@host_os@,$host_os,;t t
10051 s,@CC@,$CC,;t t
10052 s,@CFLAGS@,$CFLAGS,;t t
10053 s,@LDFLAGS@,$LDFLAGS,;t t
10054 s,@CPPFLAGS@,$CPPFLAGS,;t t
10055 s,@ac_ct_CC@,$ac_ct_CC,;t t
10056 s,@EXEEXT@,$EXEEXT,;t t
10057 s,@OBJEXT@,$OBJEXT,;t t
10058 s,@LN_S@,$LN_S,;t t
10059 s,@ECHO@,$ECHO,;t t
10060 s,@RANLIB@,$RANLIB,;t t
10061 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10062 s,@STRIP@,$STRIP,;t t
10063 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10064 s,@CPP@,$CPP,;t t
10065 s,@EGREP@,$EGREP,;t t
10066 s,@LIBTOOL@,$LIBTOOL,;t t
10067 s,@LIBCURRENT@,$LIBCURRENT,;t t
10068 s,@LIBREVISION@,$LIBREVISION,;t t
10069 s,@LIBAGE@,$LIBAGE,;t t
10070 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10071 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10072 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10073 s,@LIBOBJS@,$LIBOBJS,;t t
10074 s,@FILEMAP@,$FILEMAP,;t t
10075 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
10076 CEOF
10077
10078 _ACEOF
10079
10080 cat >>$CONFIG_STATUS <<\_ACEOF
10081 # Split the substitutions into bite-sized pieces for seds with
10082 # small command number limits, like on Digital OSF/1 and HP-UX.
10083 ac_max_sed_lines=48
10084 ac_sed_frag=1 # Number of current file.
10085 ac_beg=1 # First line for current file.
10086 ac_end=$ac_max_sed_lines # Line after last line for current file.
10087 ac_more_lines=:
10088 ac_sed_cmds=
10089 while $ac_more_lines; do
10090 if test $ac_beg -gt 1; then
10091 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10092 else
10093 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10094 fi
10095 if test ! -s $tmp/subs.frag; then
10096 ac_more_lines=false
10097 else
10098 # The purpose of the label and of the branching condition is to
10099 # speed up the sed processing (if there are no `@' at all, there
10100 # is no need to browse any of the substitutions).
10101 # These are the two extra sed commands mentioned above.
10102 (echo ':t
10103 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10104 if test -z "$ac_sed_cmds"; then
10105 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10106 else
10107 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10108 fi
10109 ac_sed_frag=`expr $ac_sed_frag + 1`
10110 ac_beg=$ac_end
10111 ac_end=`expr $ac_end + $ac_max_sed_lines`
10112 fi
10113 done
10114 if test -z "$ac_sed_cmds"; then
10115 ac_sed_cmds=cat
10116 fi
10117 fi # test -n "$CONFIG_FILES"
10118
10119 _ACEOF
10120 cat >>$CONFIG_STATUS <<\_ACEOF
10121 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10122 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10123 case $ac_file in
10124 - | *:- | *:-:* ) # input from stdin
10125 cat >$tmp/stdin
10126 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10127 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10128 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10129 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10130 * ) ac_file_in=$ac_file.in ;;
10131 esac
10132
10133 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10134 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10135 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10136 X"$ac_file" : 'X\(//\)[^/]' \| \
10137 X"$ac_file" : 'X\(//\)$' \| \
10138 X"$ac_file" : 'X\(/\)' \| \
10139 . : '\(.\)' 2>/dev/null ||
10140 echo X"$ac_file" |
10141 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10142 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10143 /^X\(\/\/\)$/{ s//\1/; q; }
10144 /^X\(\/\).*/{ s//\1/; q; }
10145 s/.*/./; q'`
10146 { if $as_mkdir_p; then
10147 mkdir -p "$ac_dir"
10148 else
10149 as_dir="$ac_dir"
10150 as_dirs=
10151 while test ! -d "$as_dir"; do
10152 as_dirs="$as_dir $as_dirs"
10153 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10154 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10155 X"$as_dir" : 'X\(//\)[^/]' \| \
10156 X"$as_dir" : 'X\(//\)$' \| \
10157 X"$as_dir" : 'X\(/\)' \| \
10158 . : '\(.\)' 2>/dev/null ||
10159 echo X"$as_dir" |
10160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10161 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10162 /^X\(\/\/\)$/{ s//\1/; q; }
10163 /^X\(\/\).*/{ s//\1/; q; }
10164 s/.*/./; q'`
10165 done
10166 test ! -n "$as_dirs" || mkdir $as_dirs
10167 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10168 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10169 { (exit 1); exit 1; }; }; }
10170
10171 ac_builddir=.
10172
10173 if test "$ac_dir" != .; then
10174 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10175 # A "../" for each directory in $ac_dir_suffix.
10176 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10177 else
10178 ac_dir_suffix= ac_top_builddir=
10179 fi
10180
10181 case $srcdir in
10182 .) # No --srcdir option. We are building in place.
10183 ac_srcdir=.
10184 if test -z "$ac_top_builddir"; then
10185 ac_top_srcdir=.
10186 else
10187 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10188 fi ;;
10189 [\\/]* | ?:[\\/]* ) # Absolute path.
10190 ac_srcdir=$srcdir$ac_dir_suffix;
10191 ac_top_srcdir=$srcdir ;;
10192 *) # Relative path.
10193 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10194 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10195 esac
10196 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10197 # absolute.
10198 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10199 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
10200 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10201 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10202
10203
10204 case $INSTALL in
10205 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10206 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10207 esac
10208
10209 if test x"$ac_file" != x-; then
10210 { echo "$as_me:$LINENO: creating $ac_file" >&5
10211 echo "$as_me: creating $ac_file" >&6;}
10212 rm -f "$ac_file"
10213 fi
10214 # Let's still pretend it is `configure' which instantiates (i.e., don't
10215 # use $as_me), people would be surprised to read:
10216 # /* config.h. Generated by config.status. */
10217 if test x"$ac_file" = x-; then
10218 configure_input=
10219 else
10220 configure_input="$ac_file. "
10221 fi
10222 configure_input=$configure_input"Generated from `echo $ac_file_in |
10223 sed 's,.*/,,'` by configure."
10224
10225 # First look for the input files in the build tree, otherwise in the
10226 # src tree.
10227 ac_file_inputs=`IFS=:
10228 for f in $ac_file_in; do
10229 case $f in
10230 -) echo $tmp/stdin ;;
10231 [\\/$]*)
10232 # Absolute (can't be DOS-style, as IFS=:)
10233 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10234 echo "$as_me: error: cannot find input file: $f" >&2;}
10235 { (exit 1); exit 1; }; }
10236 echo $f;;
10237 *) # Relative
10238 if test -f "$f"; then
10239 # Build tree
10240 echo $f
10241 elif test -f "$srcdir/$f"; then
10242 # Source tree
10243 echo $srcdir/$f
10244 else
10245 # /dev/null tree
10246 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10247 echo "$as_me: error: cannot find input file: $f" >&2;}
10248 { (exit 1); exit 1; }; }
10249 fi;;
10250 esac
10251 done` || { (exit 1); exit 1; }
10252 _ACEOF
10253 cat >>$CONFIG_STATUS <<_ACEOF
10254 sed "$ac_vpsub
10255 $extrasub
10256 _ACEOF
10257 cat >>$CONFIG_STATUS <<\_ACEOF
10258 :t
10259 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10260 s,@configure_input@,$configure_input,;t t
10261 s,@srcdir@,$ac_srcdir,;t t
10262 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10263 s,@top_srcdir@,$ac_top_srcdir,;t t
10264 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10265 s,@builddir@,$ac_builddir,;t t
10266 s,@abs_builddir@,$ac_abs_builddir,;t t
10267 s,@top_builddir@,$ac_top_builddir,;t t
10268 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10269 s,@INSTALL@,$ac_INSTALL,;t t
10270 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10271 rm -f $tmp/stdin
10272 if test x"$ac_file" != x-; then
10273 mv $tmp/out $ac_file
10274 else
10275 cat $tmp/out
10276 rm -f $tmp/out
10277 fi
10278
10279 done
10280 _ACEOF
10281 cat >>$CONFIG_STATUS <<\_ACEOF
10282
10283 #
10284 # CONFIG_HEADER section.
10285 #
10286
10287 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10288 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10289 #
10290 # ac_d sets the value in "#define NAME VALUE" lines.
10291 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10292 ac_dB='[ ].*$,\1#\2'
10293 ac_dC=' '
10294 ac_dD=',;t'
10295 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10296 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10297 ac_uB='$,\1#\2define\3'
10298 ac_uC=' '
10299 ac_uD=',;t'
10300
10301 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10302 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10303 case $ac_file in
10304 - | *:- | *:-:* ) # input from stdin
10305 cat >$tmp/stdin
10306 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10307 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10308 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10309 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10310 * ) ac_file_in=$ac_file.in ;;
10311 esac
10312
10313 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10314 echo "$as_me: creating $ac_file" >&6;}
10315
10316 # First look for the input files in the build tree, otherwise in the
10317 # src tree.
10318 ac_file_inputs=`IFS=:
10319 for f in $ac_file_in; do
10320 case $f in
10321 -) echo $tmp/stdin ;;
10322 [\\/$]*)
10323 # Absolute (can't be DOS-style, as IFS=:)
10324 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10325 echo "$as_me: error: cannot find input file: $f" >&2;}
10326 { (exit 1); exit 1; }; }
10327 echo $f;;
10328 *) # Relative
10329 if test -f "$f"; then
10330 # Build tree
10331 echo $f
10332 elif test -f "$srcdir/$f"; then
10333 # Source tree
10334 echo $srcdir/$f
10335 else
10336 # /dev/null tree
10337 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10338 echo "$as_me: error: cannot find input file: $f" >&2;}
10339 { (exit 1); exit 1; }; }
10340 fi;;
10341 esac
10342 done` || { (exit 1); exit 1; }
10343 # Remove the trailing spaces.
10344 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10345
10346 _ACEOF
10347
10348 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10349 # `conftest.undefs', that substitutes the proper values into
10350 # config.h.in to produce config.h. The first handles `#define'
10351 # templates, and the second `#undef' templates.
10352 # And first: Protect against being on the right side of a sed subst in
10353 # config.status. Protect against being in an unquoted here document
10354 # in config.status.
10355 rm -f conftest.defines conftest.undefs
10356 # Using a here document instead of a string reduces the quoting nightmare.
10357 # Putting comments in sed scripts is not portable.
10358 #
10359 # `end' is used to avoid that the second main sed command (meant for
10360 # 0-ary CPP macros) applies to n-ary macro definitions.
10361 # See the Autoconf documentation for `clear'.
10362 cat >confdef2sed.sed <<\_ACEOF
10363 s/[\\&,]/\\&/g
10364 s,[\\$`],\\&,g
10365 t clear
10366 : clear
10367 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10368 t end
10369 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10370 : end
10371 _ACEOF
10372 # If some macros were called several times there might be several times
10373 # the same #defines, which is useless. Nevertheless, we may not want to
10374 # sort them, since we want the *last* AC-DEFINE to be honored.
10375 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10376 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10377 rm -f confdef2sed.sed
10378
10379 # This sed command replaces #undef with comments. This is necessary, for
10380 # example, in the case of _POSIX_SOURCE, which is predefined and required
10381 # on some systems where configure will not decide to define it.
10382 cat >>conftest.undefs <<\_ACEOF
10383 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10384 _ACEOF
10385
10386 # Break up conftest.defines because some shells have a limit on the size
10387 # of here documents, and old seds have small limits too (100 cmds).
10388 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10389 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10390 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10391 echo ' :' >>$CONFIG_STATUS
10392 rm -f conftest.tail
10393 while grep . conftest.defines >/dev/null
10394 do
10395 # Write a limited-size here document to $tmp/defines.sed.
10396 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10397 # Speed up: don't consider the non `#define' lines.
10398 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10399 # Work around the forget-to-reset-the-flag bug.
10400 echo 't clr' >>$CONFIG_STATUS
10401 echo ': clr' >>$CONFIG_STATUS
10402 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10403 echo 'CEOF
10404 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10405 rm -f $tmp/in
10406 mv $tmp/out $tmp/in
10407 ' >>$CONFIG_STATUS
10408 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10409 rm -f conftest.defines
10410 mv conftest.tail conftest.defines
10411 done
10412 rm -f conftest.defines
10413 echo ' fi # grep' >>$CONFIG_STATUS
10414 echo >>$CONFIG_STATUS
10415
10416 # Break up conftest.undefs because some shells have a limit on the size
10417 # of here documents, and old seds have small limits too (100 cmds).
10418 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10419 rm -f conftest.tail
10420 while grep . conftest.undefs >/dev/null
10421 do
10422 # Write a limited-size here document to $tmp/undefs.sed.
10423 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10424 # Speed up: don't consider the non `#undef'
10425 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10426 # Work around the forget-to-reset-the-flag bug.
10427 echo 't clr' >>$CONFIG_STATUS
10428 echo ': clr' >>$CONFIG_STATUS
10429 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10430 echo 'CEOF
10431 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10432 rm -f $tmp/in
10433 mv $tmp/out $tmp/in
10434 ' >>$CONFIG_STATUS
10435 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10436 rm -f conftest.undefs
10437 mv conftest.tail conftest.undefs
10438 done
10439 rm -f conftest.undefs
10440
10441 cat >>$CONFIG_STATUS <<\_ACEOF
10442 # Let's still pretend it is `configure' which instantiates (i.e., don't
10443 # use $as_me), people would be surprised to read:
10444 # /* config.h. Generated by config.status. */
10445 if test x"$ac_file" = x-; then
10446 echo "/* Generated by configure. */" >$tmp/config.h
10447 else
10448 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10449 fi
10450 cat $tmp/in >>$tmp/config.h
10451 rm -f $tmp/in
10452 if test x"$ac_file" != x-; then
10453 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
10454 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10455 echo "$as_me: $ac_file is unchanged" >&6;}
10456 else
10457 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10458 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10459 X"$ac_file" : 'X\(//\)[^/]' \| \
10460 X"$ac_file" : 'X\(//\)$' \| \
10461 X"$ac_file" : 'X\(/\)' \| \
10462 . : '\(.\)' 2>/dev/null ||
10463 echo X"$ac_file" |
10464 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10465 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10466 /^X\(\/\/\)$/{ s//\1/; q; }
10467 /^X\(\/\).*/{ s//\1/; q; }
10468 s/.*/./; q'`
10469 { if $as_mkdir_p; then
10470 mkdir -p "$ac_dir"
10471 else
10472 as_dir="$ac_dir"
10473 as_dirs=
10474 while test ! -d "$as_dir"; do
10475 as_dirs="$as_dir $as_dirs"
10476 as_dir=`(dirname "$as_dir") 2>/dev/null ||
10477 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10478 X"$as_dir" : 'X\(//\)[^/]' \| \
10479 X"$as_dir" : 'X\(//\)$' \| \
10480 X"$as_dir" : 'X\(/\)' \| \
10481 . : '\(.\)' 2>/dev/null ||
10482 echo X"$as_dir" |
10483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10484 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10485 /^X\(\/\/\)$/{ s//\1/; q; }
10486 /^X\(\/\).*/{ s//\1/; q; }
10487 s/.*/./; q'`
10488 done
10489 test ! -n "$as_dirs" || mkdir $as_dirs
10490 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
10491 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
10492 { (exit 1); exit 1; }; }; }
10493
10494 rm -f $ac_file
10495 mv $tmp/config.h $ac_file
10496 fi
10497 else
10498 cat $tmp/config.h
10499 rm -f $tmp/config.h
10500 fi
10501 done
10502 _ACEOF
10503
10504 cat >>$CONFIG_STATUS <<\_ACEOF
10505
10506 { (exit 0); exit 0; }
10507 _ACEOF
10508 chmod +x $CONFIG_STATUS
10509 ac_clean_files=$ac_clean_files_save
10510
10511
10512 # configure is writing to config.log, and then calls config.status.
10513 # config.status does its own redirection, appending to config.log.
10514 # Unfortunately, on DOS this fails, as config.log is still kept open
10515 # by configure, so config.status won't be able to write to it; its
10516 # output is simply discarded. So we exec the FD to /dev/null,
10517 # effectively closing config.log, so it can be properly (re)opened and
10518 # appended to by config.status. When coming back to configure, we
10519 # need to make the FD available again.
10520 if test "$no_create" != yes; then
10521 ac_cs_success=:
10522 ac_config_status_args=
10523 test "$silent" = yes &&
10524 ac_config_status_args="$ac_config_status_args --quiet"
10525 exec 5>/dev/null
10526 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10527 exec 5>>config.log
10528 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10529 # would make configure fail if this is the last instruction.
10530 $ac_cs_success || { (exit 1); exit 1; }
10531 fi
10532
10533
10534 abs_srcdir="`cd $srcdir && pwd`"
10535 abs_builddir="`pwd`"
10536 if test "$abs_srcdir" != "$abs_builddir"; then
10537 ${MAKE:-make} mkdir-init
10538 fi