Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.53.
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 # Find the correct PATH separator. Usually this is `:', but
11 # DJGPP uses `;' like DOS.
12 if test "X${PATH_SEPARATOR+set}" != Xset; then
13 UNAME=${UNAME-`uname 2>/dev/null`}
14 case X$UNAME in
15 *-DOS) lt_cv_sys_path_separator=';' ;;
16 *) lt_cv_sys_path_separator=':' ;;
17 esac
18 PATH_SEPARATOR=$lt_cv_sys_path_separator
19 fi
20
21
22 # Check that we are running under the correct shell.
23 SHELL=${CONFIG_SHELL-/bin/sh}
24
25 case X$ECHO in
26 X*--fallback-echo)
27 # Remove one level of quotation (which was required for Make).
28 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
29 ;;
30 esac
31
32 echo=${ECHO-echo}
33 if test "X$1" = X--no-reexec; then
34 # Discard the --no-reexec flag, and continue.
35 shift
36 elif test "X$1" = X--fallback-echo; then
37 # Avoid inline document here, it may be left over
38 :
39 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
40 # Yippee, $echo works!
41 :
42 else
43 # Restart under the correct shell.
44 exec $SHELL "$0" --no-reexec ${1+"$@"}
45 fi
46
47 if test "X$1" = X--fallback-echo; then
48 # used as fallback echo
49 shift
50 cat <<EOF
51
52 EOF
53 exit 0
54 fi
55
56 # The HP-UX ksh and POSIX shell print the target directory to stdout
57 # if CDPATH is set.
58 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
59
60 if test -z "$ECHO"; then
61 if test "X${echo_test_string+set}" != Xset; then
62 # find a string as large as possible, as long as the shell can cope with it
63 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
64 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
65 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
66 echo_test_string="`eval $cmd`" &&
67 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
68 then
69 break
70 fi
71 done
72 fi
73
74 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
75 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
76 test "X$echo_testing_string" = "X$echo_test_string"; then
77 :
78 else
79 # The Solaris, AIX, and Digital Unix default echo programs unquote
80 # backslashes. This makes it impossible to quote backslashes using
81 # echo "$something" | sed 's/\\/\\\\/g'
82 #
83 # So, first we look for a working echo in the user's PATH.
84
85 IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
86 for dir in $PATH /usr/ucb; do
87 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
88 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
89 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
90 test "X$echo_testing_string" = "X$echo_test_string"; then
91 echo="$dir/echo"
92 break
93 fi
94 done
95 IFS="$save_ifs"
96
97 if test "X$echo" = Xecho; then
98 # We didn't find a better echo, so look for alternatives.
99 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
100 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
101 test "X$echo_testing_string" = "X$echo_test_string"; then
102 # This shell has a builtin print -r that does the trick.
103 echo='print -r'
104 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
105 test "X$CONFIG_SHELL" != X/bin/ksh; then
106 # If we have ksh, try running configure again with it.
107 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
108 export ORIGINAL_CONFIG_SHELL
109 CONFIG_SHELL=/bin/ksh
110 export CONFIG_SHELL
111 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
112 else
113 # Try using printf.
114 echo='printf %s\n'
115 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
116 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
117 test "X$echo_testing_string" = "X$echo_test_string"; then
118 # Cool, printf works
119 :
120 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
121 test "X$echo_testing_string" = 'X\t' &&
122 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
123 test "X$echo_testing_string" = "X$echo_test_string"; then
124 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
125 export CONFIG_SHELL
126 SHELL="$CONFIG_SHELL"
127 export SHELL
128 echo="$CONFIG_SHELL $0 --fallback-echo"
129 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
130 test "X$echo_testing_string" = 'X\t' &&
131 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
132 test "X$echo_testing_string" = "X$echo_test_string"; then
133 echo="$CONFIG_SHELL $0 --fallback-echo"
134 else
135 # maybe with a smaller string...
136 prev=:
137
138 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
139 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
140 then
141 break
142 fi
143 prev="$cmd"
144 done
145
146 if test "$prev" != 'sed 50q "$0"'; then
147 echo_test_string=`eval $prev`
148 export echo_test_string
149 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
150 else
151 # Oops. We lost completely, so just stick with echo.
152 echo=echo
153 fi
154 fi
155 fi
156 fi
157 fi
158 fi
159
160 # Copy echo and quote the copy suitably for passing to libtool from
161 # the Makefile, instead of quoting the original, which is used later.
162 ECHO=$echo
163 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
164 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
165 fi
166
167
168
169 if expr a : '\(a\)' >/dev/null 2>&1; then
170 as_expr=expr
171 else
172 as_expr=false
173 fi
174
175
176 ## --------------------- ##
177 ## M4sh Initialization. ##
178 ## --------------------- ##
179
180 # Be Bourne compatible
181 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
182 emulate sh
183 NULLCMD=:
184 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
185 set -o posix
186 fi
187
188 # NLS nuisances.
189 # Support unset when possible.
190 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
191 as_unset=unset
192 else
193 as_unset=false
194 fi
195
196 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
197 { $as_unset LANG || test "${LANG+set}" != set; } ||
198 { LANG=C; export LANG; }
199 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
200 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
201 { LC_ALL=C; export LC_ALL; }
202 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
203 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
204 { LC_TIME=C; export LC_TIME; }
205 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
206 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
207 { LC_CTYPE=C; export LC_CTYPE; }
208 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
209 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
210 { LANGUAGE=C; export LANGUAGE; }
211 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
212 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
213 { LC_COLLATE=C; export LC_COLLATE; }
214 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
215 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
216 { LC_NUMERIC=C; export LC_NUMERIC; }
217 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
218 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
219 { LC_MESSAGES=C; export LC_MESSAGES; }
220
221
222 # Name of the executable.
223 as_me=`(basename "$0") 2>/dev/null ||
224 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
225 X"$0" : 'X\(//\)$' \| \
226 X"$0" : 'X\(/\)$' \| \
227 . : '\(.\)' 2>/dev/null ||
228 echo X/"$0" |
229 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
230 /^X\/\(\/\/\)$/{ s//\1/; q; }
231 /^X\/\(\/\).*/{ s//\1/; q; }
232 s/.*/./; q'`
233
234 # PATH needs CR, and LINENO needs CR and PATH.
235 # Avoid depending upon Character Ranges.
236 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
237 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
238 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
239 as_cr_digits='0123456789'
240 as_cr_alnum=$as_cr_Letters$as_cr_digits
241
242 # The user is always right.
243 if test "${PATH_SEPARATOR+set}" != set; then
244 echo "#! /bin/sh" >conftest.sh
245 echo "exit 0" >>conftest.sh
246 chmod +x conftest.sh
247 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
248 PATH_SEPARATOR=';'
249 else
250 PATH_SEPARATOR=:
251 fi
252 rm -f conftest.sh
253 fi
254
255
256 as_lineno_1=$LINENO
257 as_lineno_2=$LINENO
258 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
259 test "x$as_lineno_1" != "x$as_lineno_2" &&
260 test "x$as_lineno_3" = "x$as_lineno_2" || {
261 # Find who we are. Look in the path if we contain no path at all
262 # relative or not.
263 case $0 in
264 *[\\/]* ) as_myself=$0 ;;
265 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
266 for as_dir in $PATH
267 do
268 IFS=$as_save_IFS
269 test -z "$as_dir" && as_dir=.
270 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
271 done
272
273 ;;
274 esac
275 # We did not find ourselves, most probably we were run as `sh COMMAND'
276 # in which case we are not to be found in the path.
277 if test "x$as_myself" = x; then
278 as_myself=$0
279 fi
280 if test ! -f "$as_myself"; then
281 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
282 { (exit 1); exit 1; }; }
283 fi
284 case $CONFIG_SHELL in
285 '')
286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
287 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
288 do
289 IFS=$as_save_IFS
290 test -z "$as_dir" && as_dir=.
291 for as_base in sh bash ksh sh5; do
292 case $as_dir in
293 /*)
294 if ("$as_dir/$as_base" -c '
295 as_lineno_1=$LINENO
296 as_lineno_2=$LINENO
297 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
298 test "x$as_lineno_1" != "x$as_lineno_2" &&
299 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
300 CONFIG_SHELL=$as_dir/$as_base
301 export CONFIG_SHELL
302 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
303 fi;;
304 esac
305 done
306 done
307 ;;
308 esac
309
310 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
311 # uniformly replaced by the line number. The first 'sed' inserts a
312 # line-number line before each line; the second 'sed' does the real
313 # work. The second script uses 'N' to pair each line-number line
314 # with the numbered line, and appends trailing '-' during
315 # substitution so that $LINENO is not a special case at line end.
316 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
317 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
318 sed '=' <$as_myself |
319 sed '
320 N
321 s,$,-,
322 : loop
323 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
324 t loop
325 s,-$,,
326 s,^['$as_cr_digits']*\n,,
327 ' >$as_me.lineno &&
328 chmod +x $as_me.lineno ||
329 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
330 { (exit 1); exit 1; }; }
331
332 # Don't try to exec as it changes $[0], causing all sort of problems
333 # (the dirname of $[0] is not the place where we might find the
334 # original and so on. Autoconf is especially sensible to this).
335 . ./$as_me.lineno
336 # Exit status is that of the last command.
337 exit
338 }
339
340
341 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
342 *c*,-n*) ECHO_N= ECHO_C='
343 ' ECHO_T=' ' ;;
344 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
345 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
346 esac
347
348 if expr a : '\(a\)' >/dev/null 2>&1; then
349 as_expr=expr
350 else
351 as_expr=false
352 fi
353
354 rm -f conf$$ conf$$.exe conf$$.file
355 echo >conf$$.file
356 if ln -s conf$$.file conf$$ 2>/dev/null; then
357 # We could just check for DJGPP; but this test a) works b) is more generic
358 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
359 if test -f conf$$.exe; then
360 # Don't use ln at all; we don't have any links
361 as_ln_s='cp -p'
362 else
363 as_ln_s='ln -s'
364 fi
365 elif ln conf$$.file conf$$ 2>/dev/null; then
366 as_ln_s=ln
367 else
368 as_ln_s='cp -p'
369 fi
370 rm -f conf$$ conf$$.exe conf$$.file
371
372 as_executable_p="test -f"
373
374 # Sed expression to map a string onto a valid CPP name.
375 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
376
377 # Sed expression to map a string onto a valid variable name.
378 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
379
380
381 # IFS
382 # We need space, tab and new line, in precisely that order.
383 as_nl='
384 '
385 IFS=" $as_nl"
386
387 # CDPATH.
388 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
389
390
391 # Name of the host.
392 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
393 # so uname gets run too.
394 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
395
396 exec 6>&1
397
398 #
399 # Initializations.
400 #
401 ac_default_prefix=/usr/local
402 cross_compiling=no
403 subdirs=
404 MFLAGS=
405 MAKEFLAGS=
406 SHELL=${CONFIG_SHELL-/bin/sh}
407
408 # Maximum number of lines to put in a shell here document.
409 # This variable seems obsolete. It should probably be removed, and
410 # only ac_max_sed_lines should be used.
411 : ${ac_max_here_lines=38}
412
413 # Identity of this package.
414 PACKAGE_NAME=
415 PACKAGE_TARNAME=
416 PACKAGE_VERSION=
417 PACKAGE_STRING=
418 PACKAGE_BUGREPORT=
419
420 ac_unique_file="src/a52dec.c"
421 # Factoring default headers for most tests.
422 ac_includes_default="\
423 #include <stdio.h>
424 #if HAVE_SYS_TYPES_H
425 # include <sys/types.h>
426 #endif
427 #if HAVE_SYS_STAT_H
428 # include <sys/stat.h>
429 #endif
430 #if STDC_HEADERS
431 # include <stdlib.h>
432 # include <stddef.h>
433 #else
434 # if HAVE_STDLIB_H
435 # include <stdlib.h>
436 # endif
437 #endif
438 #if HAVE_STRING_H
439 # if !STDC_HEADERS && HAVE_MEMORY_H
440 # include <memory.h>
441 # endif
442 # include <string.h>
443 #endif
444 #if HAVE_STRINGS_H
445 # include <strings.h>
446 #endif
447 #if HAVE_INTTYPES_H
448 # include <inttypes.h>
449 #else
450 # if HAVE_STDINT_H
451 # include <stdint.h>
452 # endif
453 #endif
454 #if HAVE_UNISTD_H
455 # include <unistd.h>
456 #endif"
457
458
459 # Initialize some variables set by options.
460 ac_init_help=
461 ac_init_version=false
462 # The variables have the same names as the options, with
463 # dashes changed to underlines.
464 cache_file=/dev/null
465 exec_prefix=NONE
466 no_create=
467 no_recursion=
468 prefix=NONE
469 program_prefix=NONE
470 program_suffix=NONE
471 program_transform_name=s,x,x,
472 silent=
473 site=
474 srcdir=
475 verbose=
476 x_includes=NONE
477 x_libraries=NONE
478
479 # Installation directory options.
480 # These are left unexpanded so users can "make install exec_prefix=/foo"
481 # and all the variables that are supposed to be based on exec_prefix
482 # by default will actually change.
483 # Use braces instead of parens because sh, perl, etc. also accept them.
484 bindir='${exec_prefix}/bin'
485 sbindir='${exec_prefix}/sbin'
486 libexecdir='${exec_prefix}/libexec'
487 datadir='${prefix}/share'
488 sysconfdir='${prefix}/etc'
489 sharedstatedir='${prefix}/com'
490 localstatedir='${prefix}/var'
491 libdir='${exec_prefix}/lib'
492 includedir='${prefix}/include'
493 oldincludedir='/usr/include'
494 infodir='${prefix}/info'
495 mandir='${prefix}/man'
496
497 ac_prev=
498 for ac_option
499 do
500 # If the previous option needs an argument, assign it.
501 if test -n "$ac_prev"; then
502 eval "$ac_prev=\$ac_option"
503 ac_prev=
504 continue
505 fi
506
507 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
508
509 # Accept the important Cygnus configure options, so we can diagnose typos.
510
511 case $ac_option in
512
513 -bindir | --bindir | --bindi | --bind | --bin | --bi)
514 ac_prev=bindir ;;
515 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
516 bindir=$ac_optarg ;;
517
518 -build | --build | --buil | --bui | --bu)
519 ac_prev=build_alias ;;
520 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
521 build_alias=$ac_optarg ;;
522
523 -cache-file | --cache-file | --cache-fil | --cache-fi \
524 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
525 ac_prev=cache_file ;;
526 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
527 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
528 cache_file=$ac_optarg ;;
529
530 --config-cache | -C)
531 cache_file=config.cache ;;
532
533 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
534 ac_prev=datadir ;;
535 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
536 | --da=*)
537 datadir=$ac_optarg ;;
538
539 -disable-* | --disable-*)
540 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
541 # Reject names that are not valid shell variable names.
542 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
543 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
544 { (exit 1); exit 1; }; }
545 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
546 eval "enable_$ac_feature=no" ;;
547
548 -enable-* | --enable-*)
549 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
550 # Reject names that are not valid shell variable names.
551 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
553 { (exit 1); exit 1; }; }
554 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
555 case $ac_option in
556 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
557 *) ac_optarg=yes ;;
558 esac
559 eval "enable_$ac_feature='$ac_optarg'" ;;
560
561 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
562 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
563 | --exec | --exe | --ex)
564 ac_prev=exec_prefix ;;
565 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
566 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
567 | --exec=* | --exe=* | --ex=*)
568 exec_prefix=$ac_optarg ;;
569
570 -gas | --gas | --ga | --g)
571 # Obsolete; use --with-gas.
572 with_gas=yes ;;
573
574 -help | --help | --hel | --he | -h)
575 ac_init_help=long ;;
576 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
577 ac_init_help=recursive ;;
578 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
579 ac_init_help=short ;;
580
581 -host | --host | --hos | --ho)
582 ac_prev=host_alias ;;
583 -host=* | --host=* | --hos=* | --ho=*)
584 host_alias=$ac_optarg ;;
585
586 -includedir | --includedir | --includedi | --included | --include \
587 | --includ | --inclu | --incl | --inc)
588 ac_prev=includedir ;;
589 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
590 | --includ=* | --inclu=* | --incl=* | --inc=*)
591 includedir=$ac_optarg ;;
592
593 -infodir | --infodir | --infodi | --infod | --info | --inf)
594 ac_prev=infodir ;;
595 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
596 infodir=$ac_optarg ;;
597
598 -libdir | --libdir | --libdi | --libd)
599 ac_prev=libdir ;;
600 -libdir=* | --libdir=* | --libdi=* | --libd=*)
601 libdir=$ac_optarg ;;
602
603 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
604 | --libexe | --libex | --libe)
605 ac_prev=libexecdir ;;
606 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
607 | --libexe=* | --libex=* | --libe=*)
608 libexecdir=$ac_optarg ;;
609
610 -localstatedir | --localstatedir | --localstatedi | --localstated \
611 | --localstate | --localstat | --localsta | --localst \
612 | --locals | --local | --loca | --loc | --lo)
613 ac_prev=localstatedir ;;
614 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
615 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
616 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
617 localstatedir=$ac_optarg ;;
618
619 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
620 ac_prev=mandir ;;
621 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
622 mandir=$ac_optarg ;;
623
624 -nfp | --nfp | --nf)
625 # Obsolete; use --without-fp.
626 with_fp=no ;;
627
628 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
629 | --no-cr | --no-c | -n)
630 no_create=yes ;;
631
632 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
633 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
634 no_recursion=yes ;;
635
636 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
637 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
638 | --oldin | --oldi | --old | --ol | --o)
639 ac_prev=oldincludedir ;;
640 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
641 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
642 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
643 oldincludedir=$ac_optarg ;;
644
645 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
646 ac_prev=prefix ;;
647 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
648 prefix=$ac_optarg ;;
649
650 -program-prefix | --program-prefix | --program-prefi | --program-pref \
651 | --program-pre | --program-pr | --program-p)
652 ac_prev=program_prefix ;;
653 -program-prefix=* | --program-prefix=* | --program-prefi=* \
654 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
655 program_prefix=$ac_optarg ;;
656
657 -program-suffix | --program-suffix | --program-suffi | --program-suff \
658 | --program-suf | --program-su | --program-s)
659 ac_prev=program_suffix ;;
660 -program-suffix=* | --program-suffix=* | --program-suffi=* \
661 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
662 program_suffix=$ac_optarg ;;
663
664 -program-transform-name | --program-transform-name \
665 | --program-transform-nam | --program-transform-na \
666 | --program-transform-n | --program-transform- \
667 | --program-transform | --program-transfor \
668 | --program-transfo | --program-transf \
669 | --program-trans | --program-tran \
670 | --progr-tra | --program-tr | --program-t)
671 ac_prev=program_transform_name ;;
672 -program-transform-name=* | --program-transform-name=* \
673 | --program-transform-nam=* | --program-transform-na=* \
674 | --program-transform-n=* | --program-transform-=* \
675 | --program-transform=* | --program-transfor=* \
676 | --program-transfo=* | --program-transf=* \
677 | --program-trans=* | --program-tran=* \
678 | --progr-tra=* | --program-tr=* | --program-t=*)
679 program_transform_name=$ac_optarg ;;
680
681 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
682 | -silent | --silent | --silen | --sile | --sil)
683 silent=yes ;;
684
685 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
686 ac_prev=sbindir ;;
687 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
688 | --sbi=* | --sb=*)
689 sbindir=$ac_optarg ;;
690
691 -sharedstatedir | --sharedstatedir | --sharedstatedi \
692 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
693 | --sharedst | --shareds | --shared | --share | --shar \
694 | --sha | --sh)
695 ac_prev=sharedstatedir ;;
696 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
697 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
698 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
699 | --sha=* | --sh=*)
700 sharedstatedir=$ac_optarg ;;
701
702 -site | --site | --sit)
703 ac_prev=site ;;
704 -site=* | --site=* | --sit=*)
705 site=$ac_optarg ;;
706
707 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
708 ac_prev=srcdir ;;
709 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
710 srcdir=$ac_optarg ;;
711
712 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
713 | --syscon | --sysco | --sysc | --sys | --sy)
714 ac_prev=sysconfdir ;;
715 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
716 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
717 sysconfdir=$ac_optarg ;;
718
719 -target | --target | --targe | --targ | --tar | --ta | --t)
720 ac_prev=target_alias ;;
721 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
722 target_alias=$ac_optarg ;;
723
724 -v | -verbose | --verbose | --verbos | --verbo | --verb)
725 verbose=yes ;;
726
727 -version | --version | --versio | --versi | --vers | -V)
728 ac_init_version=: ;;
729
730 -with-* | --with-*)
731 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
732 # Reject names that are not valid shell variable names.
733 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
734 { echo "$as_me: error: invalid package name: $ac_package" >&2
735 { (exit 1); exit 1; }; }
736 ac_package=`echo $ac_package| sed 's/-/_/g'`
737 case $ac_option in
738 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
739 *) ac_optarg=yes ;;
740 esac
741 eval "with_$ac_package='$ac_optarg'" ;;
742
743 -without-* | --without-*)
744 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
745 # Reject names that are not valid shell variable names.
746 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747 { echo "$as_me: error: invalid package name: $ac_package" >&2
748 { (exit 1); exit 1; }; }
749 ac_package=`echo $ac_package | sed 's/-/_/g'`
750 eval "with_$ac_package=no" ;;
751
752 --x)
753 # Obsolete; use --with-x.
754 with_x=yes ;;
755
756 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
757 | --x-incl | --x-inc | --x-in | --x-i)
758 ac_prev=x_includes ;;
759 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
760 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
761 x_includes=$ac_optarg ;;
762
763 -x-libraries | --x-libraries | --x-librarie | --x-librari \
764 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
765 ac_prev=x_libraries ;;
766 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
767 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
768 x_libraries=$ac_optarg ;;
769
770 -*) { echo "$as_me: error: unrecognized option: $ac_option
771 Try \`$0 --help' for more information." >&2
772 { (exit 1); exit 1; }; }
773 ;;
774
775 *=*)
776 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
777 # Reject names that are not valid shell variable names.
778 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
779 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
780 { (exit 1); exit 1; }; }
781 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
782 eval "$ac_envvar='$ac_optarg'"
783 export $ac_envvar ;;
784
785 *)
786 # FIXME: should be removed in autoconf 3.0.
787 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
788 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
789 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
790 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
791 ;;
792
793 esac
794 done
795
796 if test -n "$ac_prev"; then
797 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
798 { echo "$as_me: error: missing argument to $ac_option" >&2
799 { (exit 1); exit 1; }; }
800 fi
801
802 # Be sure to have absolute paths.
803 for ac_var in exec_prefix prefix
804 do
805 eval ac_val=$`echo $ac_var`
806 case $ac_val in
807 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
808 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
809 { (exit 1); exit 1; }; };;
810 esac
811 done
812
813 # Be sure to have absolute paths.
814 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
815 localstatedir libdir includedir oldincludedir infodir mandir
816 do
817 eval ac_val=$`echo $ac_var`
818 case $ac_val in
819 [\\/$]* | ?:[\\/]* ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
822 esac
823 done
824
825 # There might be people who depend on the old broken behavior: `$host'
826 # used to hold the argument of --host etc.
827 # FIXME: To remove some day.
828 build=$build_alias
829 host=$host_alias
830 target=$target_alias
831
832 # FIXME: To remove some day.
833 if test "x$host_alias" != x; then
834 if test "x$build_alias" = x; then
835 cross_compiling=maybe
836 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
837 If a cross compiler is detected then cross compile mode will be used." >&2
838 elif test "x$build_alias" != "x$host_alias"; then
839 cross_compiling=yes
840 fi
841 fi
842
843 ac_tool_prefix=
844 test -n "$host_alias" && ac_tool_prefix=$host_alias-
845
846 test "$silent" = yes && exec 6>/dev/null
847
848
849 # Find the source files, if location was not specified.
850 if test -z "$srcdir"; then
851 ac_srcdir_defaulted=yes
852 # Try the directory containing this script, then its parent.
853 ac_confdir=`(dirname "$0") 2>/dev/null ||
854 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
855 X"$0" : 'X\(//\)[^/]' \| \
856 X"$0" : 'X\(//\)$' \| \
857 X"$0" : 'X\(/\)' \| \
858 . : '\(.\)' 2>/dev/null ||
859 echo X"$0" |
860 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
861 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
862 /^X\(\/\/\)$/{ s//\1/; q; }
863 /^X\(\/\).*/{ s//\1/; q; }
864 s/.*/./; q'`
865 srcdir=$ac_confdir
866 if test ! -r $srcdir/$ac_unique_file; then
867 srcdir=..
868 fi
869 else
870 ac_srcdir_defaulted=no
871 fi
872 if test ! -r $srcdir/$ac_unique_file; then
873 if test "$ac_srcdir_defaulted" = yes; then
874 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
875 { (exit 1); exit 1; }; }
876 else
877 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
878 { (exit 1); exit 1; }; }
879 fi
880 fi
881 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
882 ac_env_build_alias_set=${build_alias+set}
883 ac_env_build_alias_value=$build_alias
884 ac_cv_env_build_alias_set=${build_alias+set}
885 ac_cv_env_build_alias_value=$build_alias
886 ac_env_host_alias_set=${host_alias+set}
887 ac_env_host_alias_value=$host_alias
888 ac_cv_env_host_alias_set=${host_alias+set}
889 ac_cv_env_host_alias_value=$host_alias
890 ac_env_target_alias_set=${target_alias+set}
891 ac_env_target_alias_value=$target_alias
892 ac_cv_env_target_alias_set=${target_alias+set}
893 ac_cv_env_target_alias_value=$target_alias
894 ac_env_CC_set=${CC+set}
895 ac_env_CC_value=$CC
896 ac_cv_env_CC_set=${CC+set}
897 ac_cv_env_CC_value=$CC
898 ac_env_CFLAGS_set=${CFLAGS+set}
899 ac_env_CFLAGS_value=$CFLAGS
900 ac_cv_env_CFLAGS_set=${CFLAGS+set}
901 ac_cv_env_CFLAGS_value=$CFLAGS
902 ac_env_LDFLAGS_set=${LDFLAGS+set}
903 ac_env_LDFLAGS_value=$LDFLAGS
904 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
905 ac_cv_env_LDFLAGS_value=$LDFLAGS
906 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
907 ac_env_CPPFLAGS_value=$CPPFLAGS
908 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
909 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
910 ac_env_CPP_set=${CPP+set}
911 ac_env_CPP_value=$CPP
912 ac_cv_env_CPP_set=${CPP+set}
913 ac_cv_env_CPP_value=$CPP
914
915 #
916 # Report the --help message.
917 #
918 if test "$ac_init_help" = "long"; then
919 # Omit some internal or obsolete options to make the list less imposing.
920 # This message is too long to be a string in the A/UX 3.1 sh.
921 cat <<_ACEOF
922 \`configure' configures this package to adapt to many kinds of systems.
923
924 Usage: $0 [OPTION]... [VAR=VALUE]...
925
926 To assign environment variables (e.g., CC, CFLAGS...), specify them as
927 VAR=VALUE. See below for descriptions of some of the useful variables.
928
929 Defaults for the options are specified in brackets.
930
931 Configuration:
932 -h, --help display this help and exit
933 --help=short display options specific to this package
934 --help=recursive display the short help of all the included packages
935 -V, --version display version information and exit
936 -q, --quiet, --silent do not print \`checking...' messages
937 --cache-file=FILE cache test results in FILE [disabled]
938 -C, --config-cache alias for \`--cache-file=config.cache'
939 -n, --no-create do not create output files
940 --srcdir=DIR find the sources in DIR [configure dir or \`..']
941
942 _ACEOF
943
944 cat <<_ACEOF
945 Installation directories:
946 --prefix=PREFIX install architecture-independent files in PREFIX
947 [$ac_default_prefix]
948 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
949 [PREFIX]
950
951 By default, \`make install' will install all the files in
952 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
953 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
954 for instance \`--prefix=\$HOME'.
955
956 For better control, use the options below.
957
958 Fine tuning of the installation directories:
959 --bindir=DIR user executables [EPREFIX/bin]
960 --sbindir=DIR system admin executables [EPREFIX/sbin]
961 --libexecdir=DIR program executables [EPREFIX/libexec]
962 --datadir=DIR read-only architecture-independent data [PREFIX/share]
963 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
964 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
965 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
966 --libdir=DIR object code libraries [EPREFIX/lib]
967 --includedir=DIR C header files [PREFIX/include]
968 --oldincludedir=DIR C header files for non-gcc [/usr/include]
969 --infodir=DIR info documentation [PREFIX/info]
970 --mandir=DIR man documentation [PREFIX/man]
971 _ACEOF
972
973 cat <<\_ACEOF
974
975 Program names:
976 --program-prefix=PREFIX prepend PREFIX to installed program names
977 --program-suffix=SUFFIX append SUFFIX to installed program names
978 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
979
980 System types:
981 --build=BUILD configure for building on BUILD [guessed]
982 --host=HOST cross-compile to build programs to run on HOST [BUILD]
983 _ACEOF
984 fi
985
986 if test -n "$ac_init_help"; then
987
988 cat <<\_ACEOF
989
990 Optional Features:
991 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
992 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
993 --enable-maintainer-mode enable make rules and dependencies not useful
994 (and sometimes confusing) to the casual installer
995 --enable-shared=PKGS build shared libraries default=no
996 --enable-static=PKGS build static libraries default=yes
997 --enable-fast-install=PKGS optimize for fast installation default=yes
998 --disable-libtool-lock avoid locking (might break parallel builds)
999 --enable-double use double-precision samples
1000 --enable-djbfft make a version using djbfft
1001 --disable-oss make a version not using oss
1002 --disable-solaris-audio make a version not using solaris audio
1003 --disable-al-audio make a version not using al audio
1004 --disable-win make a version not using win audio
1005 --enable-warnings treat warnings as errors
1006 --enable-gprof make a version using gprof
1007
1008 Optional Packages:
1009 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1010 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1011 --with-gnu-ld assume the C compiler uses GNU ld default=no
1012 --with-pic try to use only PIC/non-PIC objects default=use both
1013
1014 Some influential environment variables:
1015 CC C compiler command
1016 CFLAGS C compiler flags
1017 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1018 nonstandard directory <lib dir>
1019 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1020 headers in a nonstandard directory <include dir>
1021 CPP C preprocessor
1022
1023 Use these variables to override the choices made by `configure' or to help
1024 it to find libraries and programs with nonstandard names/locations.
1025
1026 _ACEOF
1027 fi
1028
1029 if test "$ac_init_help" = "recursive"; then
1030 # If there are subdirs, report their specific --help.
1031 ac_popdir=`pwd`
1032 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1033 test -d $ac_dir || continue
1034 ac_builddir=.
1035
1036 if test "$ac_dir" != .; then
1037 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1038 # A "../" for each directory in $ac_dir_suffix.
1039 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1040 else
1041 ac_dir_suffix= ac_top_builddir=
1042 fi
1043
1044 case $srcdir in
1045 .) # No --srcdir option. We are building in place.
1046 ac_srcdir=.
1047 if test -z "$ac_top_builddir"; then
1048 ac_top_srcdir=.
1049 else
1050 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1051 fi ;;
1052 [\\/]* | ?:[\\/]* ) # Absolute path.
1053 ac_srcdir=$srcdir$ac_dir_suffix;
1054 ac_top_srcdir=$srcdir ;;
1055 *) # Relative path.
1056 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1057 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1058 esac
1059 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1060 # absolute.
1061 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1062 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
1063 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1064 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1065
1066 cd $ac_dir
1067 # Check for guested configure; otherwise get Cygnus style configure.
1068 if test -f $ac_srcdir/configure.gnu; then
1069 echo
1070 $SHELL $ac_srcdir/configure.gnu --help=recursive
1071 elif test -f $ac_srcdir/configure; then
1072 echo
1073 $SHELL $ac_srcdir/configure --help=recursive
1074 elif test -f $ac_srcdir/configure.ac ||
1075 test -f $ac_srcdir/configure.in; then
1076 echo
1077 $ac_configure --help
1078 else
1079 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1080 fi
1081 cd $ac_popdir
1082 done
1083 fi
1084
1085 test -n "$ac_init_help" && exit 0
1086 if $ac_init_version; then
1087 cat <<\_ACEOF
1088
1089 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1090 Free Software Foundation, Inc.
1091 This configure script is free software; the Free Software Foundation
1092 gives unlimited permission to copy, distribute and modify it.
1093 _ACEOF
1094 exit 0
1095 fi
1096 exec 5>config.log
1097 cat >&5 <<_ACEOF
1098 This file contains any messages produced by compilers while
1099 running configure, to aid debugging if configure makes a mistake.
1100
1101 It was created by $as_me, which was
1102 generated by GNU Autoconf 2.53. Invocation command line was
1103
1104 $ $0 $@
1105
1106 _ACEOF
1107 {
1108 cat <<_ASUNAME
1109 ## --------- ##
1110 ## Platform. ##
1111 ## --------- ##
1112
1113 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1114 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1115 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1116 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1117 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1118
1119 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1120 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1121
1122 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1123 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1124 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1125 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1126 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1127 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1128 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1129
1130 _ASUNAME
1131
1132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1133 for as_dir in $PATH
1134 do
1135 IFS=$as_save_IFS
1136 test -z "$as_dir" && as_dir=.
1137 echo "PATH: $as_dir"
1138 done
1139
1140 } >&5
1141
1142 cat >&5 <<_ACEOF
1143
1144
1145 ## ----------- ##
1146 ## Core tests. ##
1147 ## ----------- ##
1148
1149 _ACEOF
1150
1151
1152 # Keep a trace of the command line.
1153 # Strip out --no-create and --no-recursion so they do not pile up.
1154 # Also quote any args containing shell meta-characters.
1155 ac_configure_args=
1156 ac_sep=
1157 for ac_arg
1158 do
1159 case $ac_arg in
1160 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1161 | --no-cr | --no-c | -n ) continue ;;
1162 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1163 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1164 continue ;;
1165 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1166 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1167 esac
1168 case " $ac_configure_args " in
1169 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1170 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1171 ac_sep=" " ;;
1172 esac
1173 # Get rid of the leading space.
1174 done
1175
1176 # When interrupted or exit'd, cleanup temporary files, and complete
1177 # config.log. We remove comments because anyway the quotes in there
1178 # would cause problems or look ugly.
1179 # WARNING: Be sure not to use single quotes in there, as some shells,
1180 # such as our DU 5.0 friend, will then `close' the trap.
1181 trap 'exit_status=$?
1182 # Save into config.log some information that might help in debugging.
1183 {
1184 echo
1185 cat <<\_ASBOX
1186 ## ---------------- ##
1187 ## Cache variables. ##
1188 ## ---------------- ##
1189 _ASBOX
1190 echo
1191 # The following way of writing the cache mishandles newlines in values,
1192 {
1193 (set) 2>&1 |
1194 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1195 *ac_space=\ *)
1196 sed -n \
1197 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1198 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1199 ;;
1200 *)
1201 sed -n \
1202 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1203 ;;
1204 esac;
1205 }
1206 echo
1207 if test -s confdefs.h; then
1208 cat <<\_ASBOX
1209 ## ----------- ##
1210 ## confdefs.h. ##
1211 ## ----------- ##
1212 _ASBOX
1213 echo
1214 sed "/^$/d" confdefs.h
1215 echo
1216 fi
1217 test "$ac_signal" != 0 &&
1218 echo "$as_me: caught signal $ac_signal"
1219 echo "$as_me: exit $exit_status"
1220 } >&5
1221 rm -f core core.* *.core &&
1222 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1223 exit $exit_status
1224 ' 0
1225 for ac_signal in 1 2 13 15; do
1226 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1227 done
1228 ac_signal=0
1229
1230 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1231 rm -rf conftest* confdefs.h
1232 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1233 echo >confdefs.h
1234
1235 # Predefined preprocessor variables.
1236
1237 cat >>confdefs.h <<_ACEOF
1238 #define PACKAGE_NAME "$PACKAGE_NAME"
1239 _ACEOF
1240
1241
1242 cat >>confdefs.h <<_ACEOF
1243 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1244 _ACEOF
1245
1246
1247 cat >>confdefs.h <<_ACEOF
1248 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1249 _ACEOF
1250
1251
1252 cat >>confdefs.h <<_ACEOF
1253 #define PACKAGE_STRING "$PACKAGE_STRING"
1254 _ACEOF
1255
1256
1257 cat >>confdefs.h <<_ACEOF
1258 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1259 _ACEOF
1260
1261
1262 # Let the site file select an alternate cache file if it wants to.
1263 # Prefer explicitly selected file to automatically selected ones.
1264 if test -z "$CONFIG_SITE"; then
1265 if test "x$prefix" != xNONE; then
1266 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1267 else
1268 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1269 fi
1270 fi
1271 for ac_site_file in $CONFIG_SITE; do
1272 if test -r "$ac_site_file"; then
1273 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1274 echo "$as_me: loading site script $ac_site_file" >&6;}
1275 sed 's/^/| /' "$ac_site_file" >&5
1276 . "$ac_site_file"
1277 fi
1278 done
1279
1280 if test -r "$cache_file"; then
1281 # Some versions of bash will fail to source /dev/null (special
1282 # files actually), so we avoid doing that.
1283 if test -f "$cache_file"; then
1284 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1285 echo "$as_me: loading cache $cache_file" >&6;}
1286 case $cache_file in
1287 [\\/]* | ?:[\\/]* ) . $cache_file;;
1288 *) . ./$cache_file;;
1289 esac
1290 fi
1291 else
1292 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1293 echo "$as_me: creating cache $cache_file" >&6;}
1294 >$cache_file
1295 fi
1296
1297 # Check that the precious variables saved in the cache have kept the same
1298 # value.
1299 ac_cache_corrupted=false
1300 for ac_var in `(set) 2>&1 |
1301 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1302 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1303 eval ac_new_set=\$ac_env_${ac_var}_set
1304 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1305 eval ac_new_val="\$ac_env_${ac_var}_value"
1306 case $ac_old_set,$ac_new_set in
1307 set,)
1308 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1309 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1310 ac_cache_corrupted=: ;;
1311 ,set)
1312 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1313 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1314 ac_cache_corrupted=: ;;
1315 ,);;
1316 *)
1317 if test "x$ac_old_val" != "x$ac_new_val"; then
1318 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1319 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1320 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1321 echo "$as_me: former value: $ac_old_val" >&2;}
1322 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1323 echo "$as_me: current value: $ac_new_val" >&2;}
1324 ac_cache_corrupted=:
1325 fi;;
1326 esac
1327 # Pass precious variables to config.status.
1328 if test "$ac_new_set" = set; then
1329 case $ac_new_val in
1330 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1331 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1332 *) ac_arg=$ac_var=$ac_new_val ;;
1333 esac
1334 case " $ac_configure_args " in
1335 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1336 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1337 esac
1338 fi
1339 done
1340 if $ac_cache_corrupted; then
1341 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1342 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1343 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1344 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1345 { (exit 1); exit 1; }; }
1346 fi
1347
1348 ac_ext=c
1349 ac_cpp='$CPP $CPPFLAGS'
1350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372 ac_aux_dir=
1373 for ac_dir in autotools $srcdir/autotools; do
1374 if test -f $ac_dir/install-sh; then
1375 ac_aux_dir=$ac_dir
1376 ac_install_sh="$ac_aux_dir/install-sh -c"
1377 break
1378 elif test -f $ac_dir/install.sh; then
1379 ac_aux_dir=$ac_dir
1380 ac_install_sh="$ac_aux_dir/install.sh -c"
1381 break
1382 elif test -f $ac_dir/shtool; then
1383 ac_aux_dir=$ac_dir
1384 ac_install_sh="$ac_aux_dir/shtool install -c"
1385 break
1386 fi
1387 done
1388 if test -z "$ac_aux_dir"; then
1389 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autotools $srcdir/autotools" >&5
1390 echo "$as_me: error: cannot find install-sh or install.sh in autotools $srcdir/autotools" >&2;}
1391 { (exit 1); exit 1; }; }
1392 fi
1393 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1394 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1395 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1396
1397 ac_config_files="$ac_config_files Makefile autotools/Makefile include/Makefile test/Makefile doc/Makefile src/Makefile liba52/Makefile libao/Makefile vc++/Makefile"
1398
1399 # Find a good install program. We prefer a C program (faster),
1400 # so one script is as good as another. But avoid the broken or
1401 # incompatible versions:
1402 # SysV /etc/install, /usr/sbin/install
1403 # SunOS /usr/etc/install
1404 # IRIX /sbin/install
1405 # AIX /bin/install
1406 # AmigaOS /C/install, which installs bootblocks on floppy discs
1407 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1408 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1409 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1410 # ./install, which can be erroneously created by make from ./install.sh.
1411 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1412 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1413 if test -z "$INSTALL"; then
1414 if test "${ac_cv_path_install+set}" = set; then
1415 echo $ECHO_N "(cached) $ECHO_C" >&6
1416 else
1417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1418 for as_dir in $PATH
1419 do
1420 IFS=$as_save_IFS
1421 test -z "$as_dir" && as_dir=.
1422 # Account for people who put trailing slashes in PATH elements.
1423 case $as_dir/ in
1424 ./ | .// | /cC/* | \
1425 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1426 /usr/ucb/* ) ;;
1427 *)
1428 # OSF1 and SCO ODT 3.0 have their own names for install.
1429 # Don't use installbsd from OSF since it installs stuff as root
1430 # by default.
1431 for ac_prog in ginstall scoinst install; do
1432 for ac_exec_ext in '' $ac_executable_extensions; do
1433 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1434 if test $ac_prog = install &&
1435 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1436 # AIX install. It has an incompatible calling convention.
1437 :
1438 elif test $ac_prog = install &&
1439 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1440 # program-specific install script used by HP pwplus--don't use.
1441 :
1442 else
1443 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1444 break 3
1445 fi
1446 fi
1447 done
1448 done
1449 ;;
1450 esac
1451 done
1452
1453
1454 fi
1455 if test "${ac_cv_path_install+set}" = set; then
1456 INSTALL=$ac_cv_path_install
1457 else
1458 # As a last resort, use the slow shell script. We don't cache a
1459 # path for INSTALL within a source directory, because that will
1460 # break other packages using the cache if that directory is
1461 # removed, or if the path is relative.
1462 INSTALL=$ac_install_sh
1463 fi
1464 fi
1465 echo "$as_me:$LINENO: result: $INSTALL" >&5
1466 echo "${ECHO_T}$INSTALL" >&6
1467
1468 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1469 # It thinks the first close brace ends the variable substitution.
1470 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1471
1472 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1473
1474 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1475
1476 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1477 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1478 # Just in case
1479 sleep 1
1480 echo timestamp > conftestfile
1481 # Do `set' in a subshell so we don't clobber the current shell's
1482 # arguments. Must try -L first in case configure is actually a
1483 # symlink; some systems play weird games with the mod time of symlinks
1484 # (eg FreeBSD returns the mod time of the symlink's containing
1485 # directory).
1486 if (
1487 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
1488 if test "$*" = "X"; then
1489 # -L didn't work.
1490 set X `ls -t $srcdir/configure conftestfile`
1491 fi
1492 if test "$*" != "X $srcdir/configure conftestfile" \
1493 && test "$*" != "X conftestfile $srcdir/configure"; then
1494
1495 # If neither matched, then we have a broken ls. This can happen
1496 # if, for instance, CONFIG_SHELL is bash and it inherits a
1497 # broken ls alias from the environment. This has actually
1498 # happened. Such a system could not be considered "sane".
1499 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1500 alias in your environment" >&5
1501 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1502 alias in your environment" >&2;}
1503 { (exit 1); exit 1; }; }
1504 fi
1505
1506 test "$2" = conftestfile
1507 )
1508 then
1509 # Ok.
1510 :
1511 else
1512 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1513 Check your system clock" >&5
1514 echo "$as_me: error: newly created file is older than distributed files!
1515 Check your system clock" >&2;}
1516 { (exit 1); exit 1; }; }
1517 fi
1518 rm -f conftest*
1519 echo "$as_me:$LINENO: result: yes" >&5
1520 echo "${ECHO_T}yes" >&6
1521 test "$program_prefix" != NONE &&
1522 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1523 # Use a double $ so make ignores it.
1524 test "$program_suffix" != NONE &&
1525 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1526 # Double any \ or $. echo might interpret backslashes.
1527 # By default was `s,x,x', remove it if useless.
1528 cat <<\_ACEOF >conftest.sed
1529 s/[\\$]/&&/g;s/;s,x,x,$//
1530 _ACEOF
1531 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1532 rm conftest.sed
1533
1534 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \${MAKE}" >&5
1535 echo $ECHO_N "checking whether ${MAKE-make} sets \${MAKE}... $ECHO_C" >&6
1536 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1537 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1538 echo $ECHO_N "(cached) $ECHO_C" >&6
1539 else
1540 cat >conftest.make <<\_ACEOF
1541 all:
1542 @echo 'ac_maketemp="${MAKE}"'
1543 _ACEOF
1544 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1545 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1546 if test -n "$ac_maketemp"; then
1547 eval ac_cv_prog_make_${ac_make}_set=yes
1548 else
1549 eval ac_cv_prog_make_${ac_make}_set=no
1550 fi
1551 rm -f conftest.make
1552 fi
1553 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1554 echo "$as_me:$LINENO: result: yes" >&5
1555 echo "${ECHO_T}yes" >&6
1556 SET_MAKE=
1557 else
1558 echo "$as_me:$LINENO: result: no" >&5
1559 echo "${ECHO_T}no" >&6
1560 SET_MAKE="MAKE=${MAKE-make}"
1561 fi
1562
1563
1564 PACKAGE=a52dec
1565
1566 VERSION=0.7.4
1567
1568 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
1569 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1570 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1571 { (exit 1); exit 1; }; }
1572 fi
1573
1574 cat >>confdefs.h <<_ACEOF
1575 #define PACKAGE "$PACKAGE"
1576 _ACEOF
1577
1578
1579 cat >>confdefs.h <<_ACEOF
1580 #define VERSION "$VERSION"
1581 _ACEOF
1582
1583
1584
1585 missing_dir=`cd $ac_aux_dir && pwd`
1586 echo "$as_me:$LINENO: checking for working aclocal" >&5
1587 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
1588 # Run test in a subshell; some versions of sh will print an error if
1589 # an executable is not found, even if stderr is redirected.
1590 # Redirect stdin to placate older versions of autoconf. Sigh.
1591 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
1592 ACLOCAL=aclocal
1593 echo "$as_me:$LINENO: result: found" >&5
1594 echo "${ECHO_T}found" >&6
1595 else
1596 ACLOCAL="$missing_dir/missing aclocal"
1597 echo "$as_me:$LINENO: result: missing" >&5
1598 echo "${ECHO_T}missing" >&6
1599 fi
1600
1601 echo "$as_me:$LINENO: checking for working autoconf" >&5
1602 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
1603 # Run test in a subshell; some versions of sh will print an error if
1604 # an executable is not found, even if stderr is redirected.
1605 # Redirect stdin to placate older versions of autoconf. Sigh.
1606 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
1607 AUTOCONF=autoconf
1608 echo "$as_me:$LINENO: result: found" >&5
1609 echo "${ECHO_T}found" >&6
1610 else
1611 AUTOCONF="$missing_dir/missing autoconf"
1612 echo "$as_me:$LINENO: result: missing" >&5
1613 echo "${ECHO_T}missing" >&6
1614 fi
1615
1616 echo "$as_me:$LINENO: checking for working automake" >&5
1617 echo $ECHO_N "checking for working automake... $ECHO_C" >&6
1618 # Run test in a subshell; some versions of sh will print an error if
1619 # an executable is not found, even if stderr is redirected.
1620 # Redirect stdin to placate older versions of autoconf. Sigh.
1621 if (automake --version) < /dev/null > /dev/null 2>&1; then
1622 AUTOMAKE=automake
1623 echo "$as_me:$LINENO: result: found" >&5
1624 echo "${ECHO_T}found" >&6
1625 else
1626 AUTOMAKE="$missing_dir/missing automake"
1627 echo "$as_me:$LINENO: result: missing" >&5
1628 echo "${ECHO_T}missing" >&6
1629 fi
1630
1631 echo "$as_me:$LINENO: checking for working autoheader" >&5
1632 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
1633 # Run test in a subshell; some versions of sh will print an error if
1634 # an executable is not found, even if stderr is redirected.
1635 # Redirect stdin to placate older versions of autoconf. Sigh.
1636 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
1637 AUTOHEADER=autoheader
1638 echo "$as_me:$LINENO: result: found" >&5
1639 echo "${ECHO_T}found" >&6
1640 else
1641 AUTOHEADER="$missing_dir/missing autoheader"
1642 echo "$as_me:$LINENO: result: missing" >&5
1643 echo "${ECHO_T}missing" >&6
1644 fi
1645
1646 echo "$as_me:$LINENO: checking for working makeinfo" >&5
1647 echo $ECHO_N "checking for working makeinfo... $ECHO_C" >&6
1648 # Run test in a subshell; some versions of sh will print an error if
1649 # an executable is not found, even if stderr is redirected.
1650 # Redirect stdin to placate older versions of autoconf. Sigh.
1651 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
1652 MAKEINFO=makeinfo
1653 echo "$as_me:$LINENO: result: found" >&5
1654 echo "${ECHO_T}found" >&6
1655 else
1656 MAKEINFO="$missing_dir/missing makeinfo"
1657 echo "$as_me:$LINENO: result: missing" >&5
1658 echo "${ECHO_T}missing" >&6
1659 fi
1660
1661
1662
1663 ac_config_headers="$ac_config_headers include/config.h"
1664
1665 ac_config_commands="$ac_config_commands default-1"
1666
1667 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1668 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1669 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1670 if test "${enable_maintainer_mode+set}" = set; then
1671 enableval="$enable_maintainer_mode"
1672 USE_MAINTAINER_MODE=$enableval
1673 else
1674 USE_MAINTAINER_MODE=no
1675 fi;
1676 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1677 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1678
1679
1680 if test $USE_MAINTAINER_MODE = yes; then
1681 MAINTAINER_MODE_TRUE=
1682 MAINTAINER_MODE_FALSE='#'
1683 else
1684 MAINTAINER_MODE_TRUE='#'
1685 MAINTAINER_MODE_FALSE=
1686 fi
1687 MAINT=$MAINTAINER_MODE_TRUE
1688
1689
1690 # Make sure we can run config.sub.
1691 $ac_config_sub sun4 >/dev/null 2>&1 ||
1692 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1693 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1694 { (exit 1); exit 1; }; }
1695
1696 echo "$as_me:$LINENO: checking build system type" >&5
1697 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1698 if test "${ac_cv_build+set}" = set; then
1699 echo $ECHO_N "(cached) $ECHO_C" >&6
1700 else
1701 ac_cv_build_alias=$build_alias
1702 test -z "$ac_cv_build_alias" &&
1703 ac_cv_build_alias=`$ac_config_guess`
1704 test -z "$ac_cv_build_alias" &&
1705 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1706 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1707 { (exit 1); exit 1; }; }
1708 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1709 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1710 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1711 { (exit 1); exit 1; }; }
1712
1713 fi
1714 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1715 echo "${ECHO_T}$ac_cv_build" >&6
1716 build=$ac_cv_build
1717 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1718 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1719 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1720
1721
1722 echo "$as_me:$LINENO: checking host system type" >&5
1723 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1724 if test "${ac_cv_host+set}" = set; then
1725 echo $ECHO_N "(cached) $ECHO_C" >&6
1726 else
1727 ac_cv_host_alias=$host_alias
1728 test -z "$ac_cv_host_alias" &&
1729 ac_cv_host_alias=$ac_cv_build_alias
1730 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1731 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1732 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1733 { (exit 1); exit 1; }; }
1734
1735 fi
1736 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1737 echo "${ECHO_T}$ac_cv_host" >&6
1738 host=$ac_cv_host
1739 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1740 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1741 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1742
1743
1744
1745 ac_ext=c
1746 ac_cpp='$CPP $CPPFLAGS'
1747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1750 if test -n "$ac_tool_prefix"; then
1751 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1752 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1753 echo "$as_me:$LINENO: checking for $ac_word" >&5
1754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1755 if test "${ac_cv_prog_CC+set}" = set; then
1756 echo $ECHO_N "(cached) $ECHO_C" >&6
1757 else
1758 if test -n "$CC"; then
1759 ac_cv_prog_CC="$CC" # Let the user override the test.
1760 else
1761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1762 for as_dir in $PATH
1763 do
1764 IFS=$as_save_IFS
1765 test -z "$as_dir" && as_dir=.
1766 for ac_exec_ext in '' $ac_executable_extensions; do
1767 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1768 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1770 break 2
1771 fi
1772 done
1773 done
1774
1775 fi
1776 fi
1777 CC=$ac_cv_prog_CC
1778 if test -n "$CC"; then
1779 echo "$as_me:$LINENO: result: $CC" >&5
1780 echo "${ECHO_T}$CC" >&6
1781 else
1782 echo "$as_me:$LINENO: result: no" >&5
1783 echo "${ECHO_T}no" >&6
1784 fi
1785
1786 fi
1787 if test -z "$ac_cv_prog_CC"; then
1788 ac_ct_CC=$CC
1789 # Extract the first word of "gcc", so it can be a program name with args.
1790 set dummy gcc; ac_word=$2
1791 echo "$as_me:$LINENO: checking for $ac_word" >&5
1792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1793 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1794 echo $ECHO_N "(cached) $ECHO_C" >&6
1795 else
1796 if test -n "$ac_ct_CC"; then
1797 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1798 else
1799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1800 for as_dir in $PATH
1801 do
1802 IFS=$as_save_IFS
1803 test -z "$as_dir" && as_dir=.
1804 for ac_exec_ext in '' $ac_executable_extensions; do
1805 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1806 ac_cv_prog_ac_ct_CC="gcc"
1807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1808 break 2
1809 fi
1810 done
1811 done
1812
1813 fi
1814 fi
1815 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1816 if test -n "$ac_ct_CC"; then
1817 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1818 echo "${ECHO_T}$ac_ct_CC" >&6
1819 else
1820 echo "$as_me:$LINENO: result: no" >&5
1821 echo "${ECHO_T}no" >&6
1822 fi
1823
1824 CC=$ac_ct_CC
1825 else
1826 CC="$ac_cv_prog_CC"
1827 fi
1828
1829 if test -z "$CC"; then
1830 if test -n "$ac_tool_prefix"; then
1831 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1832 set dummy ${ac_tool_prefix}cc; ac_word=$2
1833 echo "$as_me:$LINENO: checking for $ac_word" >&5
1834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1835 if test "${ac_cv_prog_CC+set}" = set; then
1836 echo $ECHO_N "(cached) $ECHO_C" >&6
1837 else
1838 if test -n "$CC"; then
1839 ac_cv_prog_CC="$CC" # Let the user override the test.
1840 else
1841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1842 for as_dir in $PATH
1843 do
1844 IFS=$as_save_IFS
1845 test -z "$as_dir" && as_dir=.
1846 for ac_exec_ext in '' $ac_executable_extensions; do
1847 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1848 ac_cv_prog_CC="${ac_tool_prefix}cc"
1849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1850 break 2
1851 fi
1852 done
1853 done
1854
1855 fi
1856 fi
1857 CC=$ac_cv_prog_CC
1858 if test -n "$CC"; then
1859 echo "$as_me:$LINENO: result: $CC" >&5
1860 echo "${ECHO_T}$CC" >&6
1861 else
1862 echo "$as_me:$LINENO: result: no" >&5
1863 echo "${ECHO_T}no" >&6
1864 fi
1865
1866 fi
1867 if test -z "$ac_cv_prog_CC"; then
1868 ac_ct_CC=$CC
1869 # Extract the first word of "cc", so it can be a program name with args.
1870 set dummy cc; ac_word=$2
1871 echo "$as_me:$LINENO: checking for $ac_word" >&5
1872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1873 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1874 echo $ECHO_N "(cached) $ECHO_C" >&6
1875 else
1876 if test -n "$ac_ct_CC"; then
1877 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1878 else
1879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1880 for as_dir in $PATH
1881 do
1882 IFS=$as_save_IFS
1883 test -z "$as_dir" && as_dir=.
1884 for ac_exec_ext in '' $ac_executable_extensions; do
1885 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1886 ac_cv_prog_ac_ct_CC="cc"
1887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1888 break 2
1889 fi
1890 done
1891 done
1892
1893 fi
1894 fi
1895 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1896 if test -n "$ac_ct_CC"; then
1897 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1898 echo "${ECHO_T}$ac_ct_CC" >&6
1899 else
1900 echo "$as_me:$LINENO: result: no" >&5
1901 echo "${ECHO_T}no" >&6
1902 fi
1903
1904 CC=$ac_ct_CC
1905 else
1906 CC="$ac_cv_prog_CC"
1907 fi
1908
1909 fi
1910 if test -z "$CC"; then
1911 # Extract the first word of "cc", so it can be a program name with args.
1912 set dummy cc; ac_word=$2
1913 echo "$as_me:$LINENO: checking for $ac_word" >&5
1914 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1915 if test "${ac_cv_prog_CC+set}" = set; then
1916 echo $ECHO_N "(cached) $ECHO_C" >&6
1917 else
1918 if test -n "$CC"; then
1919 ac_cv_prog_CC="$CC" # Let the user override the test.
1920 else
1921 ac_prog_rejected=no
1922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1923 for as_dir in $PATH
1924 do
1925 IFS=$as_save_IFS
1926 test -z "$as_dir" && as_dir=.
1927 for ac_exec_ext in '' $ac_executable_extensions; do
1928 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1929 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1930 ac_prog_rejected=yes
1931 continue
1932 fi
1933 ac_cv_prog_CC="cc"
1934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1935 break 2
1936 fi
1937 done
1938 done
1939
1940 if test $ac_prog_rejected = yes; then
1941 # We found a bogon in the path, so make sure we never use it.
1942 set dummy $ac_cv_prog_CC
1943 shift
1944 if test $# != 0; then
1945 # We chose a different compiler from the bogus one.
1946 # However, it has the same basename, so the bogon will be chosen
1947 # first if we set CC to just the basename; use the full file name.
1948 shift
1949 set dummy "$as_dir/$ac_word" ${1+"$@"}
1950 shift
1951 ac_cv_prog_CC="$@"
1952 fi
1953 fi
1954 fi
1955 fi
1956 CC=$ac_cv_prog_CC
1957 if test -n "$CC"; then
1958 echo "$as_me:$LINENO: result: $CC" >&5
1959 echo "${ECHO_T}$CC" >&6
1960 else
1961 echo "$as_me:$LINENO: result: no" >&5
1962 echo "${ECHO_T}no" >&6
1963 fi
1964
1965 fi
1966 if test -z "$CC"; then
1967 if test -n "$ac_tool_prefix"; then
1968 for ac_prog in cl
1969 do
1970 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1971 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1972 echo "$as_me:$LINENO: checking for $ac_word" >&5
1973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1974 if test "${ac_cv_prog_CC+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1976 else
1977 if test -n "$CC"; then
1978 ac_cv_prog_CC="$CC" # Let the user override the test.
1979 else
1980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981 for as_dir in $PATH
1982 do
1983 IFS=$as_save_IFS
1984 test -z "$as_dir" && as_dir=.
1985 for ac_exec_ext in '' $ac_executable_extensions; do
1986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1987 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1989 break 2
1990 fi
1991 done
1992 done
1993
1994 fi
1995 fi
1996 CC=$ac_cv_prog_CC
1997 if test -n "$CC"; then
1998 echo "$as_me:$LINENO: result: $CC" >&5
1999 echo "${ECHO_T}$CC" >&6
2000 else
2001 echo "$as_me:$LINENO: result: no" >&5
2002 echo "${ECHO_T}no" >&6
2003 fi
2004
2005 test -n "$CC" && break
2006 done
2007 fi
2008 if test -z "$CC"; then
2009 ac_ct_CC=$CC
2010 for ac_prog in cl
2011 do
2012 # Extract the first word of "$ac_prog", so it can be a program name with args.
2013 set dummy $ac_prog; ac_word=$2
2014 echo "$as_me:$LINENO: checking for $ac_word" >&5
2015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2016 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2017 echo $ECHO_N "(cached) $ECHO_C" >&6
2018 else
2019 if test -n "$ac_ct_CC"; then
2020 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2021 else
2022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2023 for as_dir in $PATH
2024 do
2025 IFS=$as_save_IFS
2026 test -z "$as_dir" && as_dir=.
2027 for ac_exec_ext in '' $ac_executable_extensions; do
2028 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2029 ac_cv_prog_ac_ct_CC="$ac_prog"
2030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2031 break 2
2032 fi
2033 done
2034 done
2035
2036 fi
2037 fi
2038 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2039 if test -n "$ac_ct_CC"; then
2040 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2041 echo "${ECHO_T}$ac_ct_CC" >&6
2042 else
2043 echo "$as_me:$LINENO: result: no" >&5
2044 echo "${ECHO_T}no" >&6
2045 fi
2046
2047 test -n "$ac_ct_CC" && break
2048 done
2049
2050 CC=$ac_ct_CC
2051 fi
2052
2053 fi
2054
2055
2056 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
2057 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
2058 { (exit 1); exit 1; }; }
2059
2060 # Provide some information about the compiler.
2061 echo "$as_me:$LINENO:" \
2062 "checking for C compiler version" >&5
2063 ac_compiler=`set X $ac_compile; echo $2`
2064 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2065 (eval $ac_compiler --version </dev/null >&5) 2>&5
2066 ac_status=$?
2067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2068 (exit $ac_status); }
2069 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2070 (eval $ac_compiler -v </dev/null >&5) 2>&5
2071 ac_status=$?
2072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073 (exit $ac_status); }
2074 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2075 (eval $ac_compiler -V </dev/null >&5) 2>&5
2076 ac_status=$?
2077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078 (exit $ac_status); }
2079
2080 cat >conftest.$ac_ext <<_ACEOF
2081 #line $LINENO "configure"
2082 #include "confdefs.h"
2083
2084 #ifdef F77_DUMMY_MAIN
2085 # ifdef __cplusplus
2086 extern "C"
2087 # endif
2088 int F77_DUMMY_MAIN() { return 1; }
2089 #endif
2090 int
2091 main ()
2092 {
2093
2094 ;
2095 return 0;
2096 }
2097 _ACEOF
2098 ac_clean_files_save=$ac_clean_files
2099 ac_clean_files="$ac_clean_files a.out a.exe"
2100 # Try to create an executable without -o first, disregard a.out.
2101 # It will help us diagnose broken compilers, and finding out an intuition
2102 # of exeext.
2103 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2104 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2105 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2106 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2107 (eval $ac_link_default) 2>&5
2108 ac_status=$?
2109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110 (exit $ac_status); }; then
2111 # Find the output, starting from the most likely. This scheme is
2112 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2113 # resort.
2114
2115 # Be careful to initialize this variable, since it used to be cached.
2116 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2117 ac_cv_exeext=
2118 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
2119 ls a.out conftest 2>/dev/null;
2120 ls a.* conftest.* 2>/dev/null`; do
2121 case $ac_file in
2122 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb | *.xSYM ) ;;
2123 a.out ) # We found the default executable, but exeext='' is most
2124 # certainly right.
2125 break;;
2126 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2127 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
2128 export ac_cv_exeext
2129 break;;
2130 * ) break;;
2131 esac
2132 done
2133 else
2134 echo "$as_me: failed program was:" >&5
2135 cat conftest.$ac_ext >&5
2136 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
2137 echo "$as_me: error: C compiler cannot create executables" >&2;}
2138 { (exit 77); exit 77; }; }
2139 fi
2140
2141 ac_exeext=$ac_cv_exeext
2142 echo "$as_me:$LINENO: result: $ac_file" >&5
2143 echo "${ECHO_T}$ac_file" >&6
2144
2145 # Check the compiler produces executables we can run. If not, either
2146 # the compiler is broken, or we cross compile.
2147 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2148 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2149 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2150 # If not cross compiling, check that we can run a simple program.
2151 if test "$cross_compiling" != yes; then
2152 if { ac_try='./$ac_file'
2153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154 (eval $ac_try) 2>&5
2155 ac_status=$?
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); }; }; then
2158 cross_compiling=no
2159 else
2160 if test "$cross_compiling" = maybe; then
2161 cross_compiling=yes
2162 else
2163 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2164 If you meant to cross compile, use \`--host'." >&5
2165 echo "$as_me: error: cannot run C compiled programs.
2166 If you meant to cross compile, use \`--host'." >&2;}
2167 { (exit 1); exit 1; }; }
2168 fi
2169 fi
2170 fi
2171 echo "$as_me:$LINENO: result: yes" >&5
2172 echo "${ECHO_T}yes" >&6
2173
2174 rm -f a.out a.exe conftest$ac_cv_exeext
2175 ac_clean_files=$ac_clean_files_save
2176 # Check the compiler produces executables we can run. If not, either
2177 # the compiler is broken, or we cross compile.
2178 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2179 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2180 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2181 echo "${ECHO_T}$cross_compiling" >&6
2182
2183 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2184 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2185 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2186 (eval $ac_link) 2>&5
2187 ac_status=$?
2188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2189 (exit $ac_status); }; then
2190 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2191 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2192 # work properly (i.e., refer to `conftest.exe'), while it won't with
2193 # `rm'.
2194 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
2195 case $ac_file in
2196 *.$ac_ext | *.o | *.obj | *.xcoff | *.tds | *.d | *.pdb ) ;;
2197 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2198 export ac_cv_exeext
2199 break;;
2200 * ) break;;
2201 esac
2202 done
2203 else
2204 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
2205 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
2206 { (exit 1); exit 1; }; }
2207 fi
2208
2209 rm -f conftest$ac_cv_exeext
2210 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2211 echo "${ECHO_T}$ac_cv_exeext" >&6
2212
2213 rm -f conftest.$ac_ext
2214 EXEEXT=$ac_cv_exeext
2215 ac_exeext=$EXEEXT
2216 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2217 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2218 if test "${ac_cv_objext+set}" = set; then
2219 echo $ECHO_N "(cached) $ECHO_C" >&6
2220 else
2221 cat >conftest.$ac_ext <<_ACEOF
2222 #line $LINENO "configure"
2223 #include "confdefs.h"
2224
2225 #ifdef F77_DUMMY_MAIN
2226 # ifdef __cplusplus
2227 extern "C"
2228 # endif
2229 int F77_DUMMY_MAIN() { return 1; }
2230 #endif
2231 int
2232 main ()
2233 {
2234
2235 ;
2236 return 0;
2237 }
2238 _ACEOF
2239 rm -f conftest.o conftest.obj
2240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2241 (eval $ac_compile) 2>&5
2242 ac_status=$?
2243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2244 (exit $ac_status); }; then
2245 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2246 case $ac_file in
2247 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb ) ;;
2248 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2249 break;;
2250 esac
2251 done
2252 else
2253 echo "$as_me: failed program was:" >&5
2254 cat conftest.$ac_ext >&5
2255 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
2256 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
2257 { (exit 1); exit 1; }; }
2258 fi
2259
2260 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2261 fi
2262 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2263 echo "${ECHO_T}$ac_cv_objext" >&6
2264 OBJEXT=$ac_cv_objext
2265 ac_objext=$OBJEXT
2266 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2267 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2268 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2269 echo $ECHO_N "(cached) $ECHO_C" >&6
2270 else
2271 cat >conftest.$ac_ext <<_ACEOF
2272 #line $LINENO "configure"
2273 #include "confdefs.h"
2274
2275 #ifdef F77_DUMMY_MAIN
2276 # ifdef __cplusplus
2277 extern "C"
2278 # endif
2279 int F77_DUMMY_MAIN() { return 1; }
2280 #endif
2281 int
2282 main ()
2283 {
2284 #ifndef __GNUC__
2285 choke me
2286 #endif
2287
2288 ;
2289 return 0;
2290 }
2291 _ACEOF
2292 rm -f conftest.$ac_objext
2293 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2294 (eval $ac_compile) 2>&5
2295 ac_status=$?
2296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2297 (exit $ac_status); } &&
2298 { ac_try='test -s conftest.$ac_objext'
2299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2300 (eval $ac_try) 2>&5
2301 ac_status=$?
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); }; }; then
2304 ac_compiler_gnu=yes
2305 else
2306 echo "$as_me: failed program was:" >&5
2307 cat conftest.$ac_ext >&5
2308 ac_compiler_gnu=no
2309 fi
2310 rm -f conftest.$ac_objext conftest.$ac_ext
2311 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2312
2313 fi
2314 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2315 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2316 GCC=`test $ac_compiler_gnu = yes && echo yes`
2317 ac_test_CFLAGS=${CFLAGS+set}
2318 ac_save_CFLAGS=$CFLAGS
2319 CFLAGS="-g"
2320 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2321 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2322 if test "${ac_cv_prog_cc_g+set}" = set; then
2323 echo $ECHO_N "(cached) $ECHO_C" >&6
2324 else
2325 cat >conftest.$ac_ext <<_ACEOF
2326 #line $LINENO "configure"
2327 #include "confdefs.h"
2328
2329 #ifdef F77_DUMMY_MAIN
2330 # ifdef __cplusplus
2331 extern "C"
2332 # endif
2333 int F77_DUMMY_MAIN() { return 1; }
2334 #endif
2335 int
2336 main ()
2337 {
2338
2339 ;
2340 return 0;
2341 }
2342 _ACEOF
2343 rm -f conftest.$ac_objext
2344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2345 (eval $ac_compile) 2>&5
2346 ac_status=$?
2347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348 (exit $ac_status); } &&
2349 { ac_try='test -s conftest.$ac_objext'
2350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2351 (eval $ac_try) 2>&5
2352 ac_status=$?
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); }; }; then
2355 ac_cv_prog_cc_g=yes
2356 else
2357 echo "$as_me: failed program was:" >&5
2358 cat conftest.$ac_ext >&5
2359 ac_cv_prog_cc_g=no
2360 fi
2361 rm -f conftest.$ac_objext conftest.$ac_ext
2362 fi
2363 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2364 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2365 if test "$ac_test_CFLAGS" = set; then
2366 CFLAGS=$ac_save_CFLAGS
2367 elif test $ac_cv_prog_cc_g = yes; then
2368 if test "$GCC" = yes; then
2369 CFLAGS="-g -O2"
2370 else
2371 CFLAGS="-g"
2372 fi
2373 else
2374 if test "$GCC" = yes; then
2375 CFLAGS="-O2"
2376 else
2377 CFLAGS=
2378 fi
2379 fi
2380 # Some people use a C++ compiler to compile C. Since we use `exit',
2381 # in C++ we need to declare it. In case someone uses the same compiler
2382 # for both compiling C and C++ we need to have the C++ compiler decide
2383 # the declaration of exit, since it's the most demanding environment.
2384 cat >conftest.$ac_ext <<_ACEOF
2385 #ifndef __cplusplus
2386 choke me
2387 #endif
2388 _ACEOF
2389 rm -f conftest.$ac_objext
2390 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2391 (eval $ac_compile) 2>&5
2392 ac_status=$?
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); } &&
2395 { ac_try='test -s conftest.$ac_objext'
2396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2397 (eval $ac_try) 2>&5
2398 ac_status=$?
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; }; then
2401 for ac_declaration in \
2402 ''\
2403 '#include <stdlib.h>' \
2404 'extern "C" void std::exit (int) throw (); using std::exit;' \
2405 'extern "C" void std::exit (int); using std::exit;' \
2406 'extern "C" void exit (int) throw ();' \
2407 'extern "C" void exit (int);' \
2408 'void exit (int);'
2409 do
2410 cat >conftest.$ac_ext <<_ACEOF
2411 #line $LINENO "configure"
2412 #include "confdefs.h"
2413 #include <stdlib.h>
2414 $ac_declaration
2415 #ifdef F77_DUMMY_MAIN
2416 # ifdef __cplusplus
2417 extern "C"
2418 # endif
2419 int F77_DUMMY_MAIN() { return 1; }
2420 #endif
2421 int
2422 main ()
2423 {
2424 exit (42);
2425 ;
2426 return 0;
2427 }
2428 _ACEOF
2429 rm -f conftest.$ac_objext
2430 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2431 (eval $ac_compile) 2>&5
2432 ac_status=$?
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); } &&
2435 { ac_try='test -s conftest.$ac_objext'
2436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2437 (eval $ac_try) 2>&5
2438 ac_status=$?
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; }; then
2441 :
2442 else
2443 echo "$as_me: failed program was:" >&5
2444 cat conftest.$ac_ext >&5
2445 continue
2446 fi
2447 rm -f conftest.$ac_objext conftest.$ac_ext
2448 cat >conftest.$ac_ext <<_ACEOF
2449 #line $LINENO "configure"
2450 #include "confdefs.h"
2451 $ac_declaration
2452 #ifdef F77_DUMMY_MAIN
2453 # ifdef __cplusplus
2454 extern "C"
2455 # endif
2456 int F77_DUMMY_MAIN() { return 1; }
2457 #endif
2458 int
2459 main ()
2460 {
2461 exit (42);
2462 ;
2463 return 0;
2464 }
2465 _ACEOF
2466 rm -f conftest.$ac_objext
2467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2468 (eval $ac_compile) 2>&5
2469 ac_status=$?
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); } &&
2472 { ac_try='test -s conftest.$ac_objext'
2473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2474 (eval $ac_try) 2>&5
2475 ac_status=$?
2476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477 (exit $ac_status); }; }; then
2478 break
2479 else
2480 echo "$as_me: failed program was:" >&5
2481 cat conftest.$ac_ext >&5
2482 fi
2483 rm -f conftest.$ac_objext conftest.$ac_ext
2484 done
2485 rm -f conftest*
2486 if test -n "$ac_declaration"; then
2487 echo '#ifdef __cplusplus' >>confdefs.h
2488 echo $ac_declaration >>confdefs.h
2489 echo '#endif' >>confdefs.h
2490 fi
2491
2492 else
2493 echo "$as_me: failed program was:" >&5
2494 cat conftest.$ac_ext >&5
2495 fi
2496 rm -f conftest.$ac_objext conftest.$ac_ext
2497 ac_ext=c
2498 ac_cpp='$CPP $CPPFLAGS'
2499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2502
2503
2504 ac_ext=c
2505 ac_cpp='$CPP $CPPFLAGS'
2506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2509 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2510 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2511 # On Suns, sometimes $CPP names a directory.
2512 if test -n "$CPP" && test -d "$CPP"; then
2513 CPP=
2514 fi
2515 if test -z "$CPP"; then
2516 if test "${ac_cv_prog_CPP+set}" = set; then
2517 echo $ECHO_N "(cached) $ECHO_C" >&6
2518 else
2519 # Double quotes because CPP needs to be expanded
2520 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2521 do
2522 ac_preproc_ok=false
2523 for ac_c_preproc_warn_flag in '' yes
2524 do
2525 # Use a header file that comes with gcc, so configuring glibc
2526 # with a fresh cross-compiler works.
2527 # On the NeXT, cc -E runs the code through the compiler's parser,
2528 # not just through cpp. "Syntax error" is here to catch this case.
2529 cat >conftest.$ac_ext <<_ACEOF
2530 #line $LINENO "configure"
2531 #include "confdefs.h"
2532 #include <assert.h>
2533 Syntax error
2534 _ACEOF
2535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2536 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2537 ac_status=$?
2538 egrep -v '^ *\+' conftest.er1 >conftest.err
2539 rm -f conftest.er1
2540 cat conftest.err >&5
2541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542 (exit $ac_status); } >/dev/null; then
2543 if test -s conftest.err; then
2544 ac_cpp_err=$ac_c_preproc_warn_flag
2545 else
2546 ac_cpp_err=
2547 fi
2548 else
2549 ac_cpp_err=yes
2550 fi
2551 if test -z "$ac_cpp_err"; then
2552 :
2553 else
2554 echo "$as_me: failed program was:" >&5
2555 cat conftest.$ac_ext >&5
2556 # Broken: fails on valid input.
2557 continue
2558 fi
2559 rm -f conftest.err conftest.$ac_ext
2560
2561 # OK, works on sane cases. Now check whether non-existent headers
2562 # can be detected and how.
2563 cat >conftest.$ac_ext <<_ACEOF
2564 #line $LINENO "configure"
2565 #include "confdefs.h"
2566 #include <ac_nonexistent.h>
2567 _ACEOF
2568 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2569 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2570 ac_status=$?
2571 egrep -v '^ *\+' conftest.er1 >conftest.err
2572 rm -f conftest.er1
2573 cat conftest.err >&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); } >/dev/null; then
2576 if test -s conftest.err; then
2577 ac_cpp_err=$ac_c_preproc_warn_flag
2578 else
2579 ac_cpp_err=
2580 fi
2581 else
2582 ac_cpp_err=yes
2583 fi
2584 if test -z "$ac_cpp_err"; then
2585 # Broken: success on invalid input.
2586 continue
2587 else
2588 echo "$as_me: failed program was:" >&5
2589 cat conftest.$ac_ext >&5
2590 # Passes both tests.
2591 ac_preproc_ok=:
2592 break
2593 fi
2594 rm -f conftest.err conftest.$ac_ext
2595
2596 done
2597 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2598 rm -f conftest.err conftest.$ac_ext
2599 if $ac_preproc_ok; then
2600 break
2601 fi
2602
2603 done
2604 ac_cv_prog_CPP=$CPP
2605
2606 fi
2607 CPP=$ac_cv_prog_CPP
2608 else
2609 ac_cv_prog_CPP=$CPP
2610 fi
2611 echo "$as_me:$LINENO: result: $CPP" >&5
2612 echo "${ECHO_T}$CPP" >&6
2613 ac_preproc_ok=false
2614 for ac_c_preproc_warn_flag in '' yes
2615 do
2616 # Use a header file that comes with gcc, so configuring glibc
2617 # with a fresh cross-compiler works.
2618 # On the NeXT, cc -E runs the code through the compiler's parser,
2619 # not just through cpp. "Syntax error" is here to catch this case.
2620 cat >conftest.$ac_ext <<_ACEOF
2621 #line $LINENO "configure"
2622 #include "confdefs.h"
2623 #include <assert.h>
2624 Syntax error
2625 _ACEOF
2626 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2627 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2628 ac_status=$?
2629 egrep -v '^ *\+' conftest.er1 >conftest.err
2630 rm -f conftest.er1
2631 cat conftest.err >&5
2632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2633 (exit $ac_status); } >/dev/null; then
2634 if test -s conftest.err; then
2635 ac_cpp_err=$ac_c_preproc_warn_flag
2636 else
2637 ac_cpp_err=
2638 fi
2639 else
2640 ac_cpp_err=yes
2641 fi
2642 if test -z "$ac_cpp_err"; then
2643 :
2644 else
2645 echo "$as_me: failed program was:" >&5
2646 cat conftest.$ac_ext >&5
2647 # Broken: fails on valid input.
2648 continue
2649 fi
2650 rm -f conftest.err conftest.$ac_ext
2651
2652 # OK, works on sane cases. Now check whether non-existent headers
2653 # can be detected and how.
2654 cat >conftest.$ac_ext <<_ACEOF
2655 #line $LINENO "configure"
2656 #include "confdefs.h"
2657 #include <ac_nonexistent.h>
2658 _ACEOF
2659 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2660 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2661 ac_status=$?
2662 egrep -v '^ *\+' conftest.er1 >conftest.err
2663 rm -f conftest.er1
2664 cat conftest.err >&5
2665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666 (exit $ac_status); } >/dev/null; then
2667 if test -s conftest.err; then
2668 ac_cpp_err=$ac_c_preproc_warn_flag
2669 else
2670 ac_cpp_err=
2671 fi
2672 else
2673 ac_cpp_err=yes
2674 fi
2675 if test -z "$ac_cpp_err"; then
2676 # Broken: success on invalid input.
2677 continue
2678 else
2679 echo "$as_me: failed program was:" >&5
2680 cat conftest.$ac_ext >&5
2681 # Passes both tests.
2682 ac_preproc_ok=:
2683 break
2684 fi
2685 rm -f conftest.err conftest.$ac_ext
2686
2687 done
2688 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2689 rm -f conftest.err conftest.$ac_ext
2690 if $ac_preproc_ok; then
2691 :
2692 else
2693 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2694 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2695 { (exit 1); exit 1; }; }
2696 fi
2697
2698 ac_ext=c
2699 ac_cpp='$CPP $CPPFLAGS'
2700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2703
2704
2705 if test $ac_cv_c_compiler_gnu = yes; then
2706 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2707 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2708 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2709 echo $ECHO_N "(cached) $ECHO_C" >&6
2710 else
2711 ac_pattern="Autoconf.*'x'"
2712 cat >conftest.$ac_ext <<_ACEOF
2713 #line $LINENO "configure"
2714 #include "confdefs.h"
2715 #include <sgtty.h>
2716 Autoconf TIOCGETP
2717 _ACEOF
2718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2719 egrep "$ac_pattern" >/dev/null 2>&1; then
2720 ac_cv_prog_gcc_traditional=yes
2721 else
2722 ac_cv_prog_gcc_traditional=no
2723 fi
2724 rm -f conftest*
2725
2726
2727 if test $ac_cv_prog_gcc_traditional = no; then
2728 cat >conftest.$ac_ext <<_ACEOF
2729 #line $LINENO "configure"
2730 #include "confdefs.h"
2731 #include <termio.h>
2732 Autoconf TCGETA
2733 _ACEOF
2734 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2735 egrep "$ac_pattern" >/dev/null 2>&1; then
2736 ac_cv_prog_gcc_traditional=yes
2737 fi
2738 rm -f conftest*
2739
2740 fi
2741 fi
2742 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
2743 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2744 if test $ac_cv_prog_gcc_traditional = yes; then
2745 CC="$CC -traditional"
2746 fi
2747 fi
2748
2749
2750 if test x"$GCC" = x"yes"; then
2751
2752
2753
2754 OPT_CFLAGS=`echo "$CFLAGS"|sed "s/-O[0-9]*//g"`
2755
2756 OPT_CFLAGS="$OPT_CFLAGS -O3"
2757 echo "$as_me:$LINENO: checking if $CC supports $OPT_CFLAGS flags" >&5
2758 echo $ECHO_N "checking if $CC supports $OPT_CFLAGS flags... $ECHO_C" >&6
2759 SAVE_CFLAGS="$CFLAGS"
2760 CFLAGS="$OPT_CFLAGS"
2761 cat >conftest.$ac_ext <<_ACEOF
2762 #line $LINENO "configure"
2763 #include "confdefs.h"
2764
2765 #ifdef F77_DUMMY_MAIN
2766 # ifdef __cplusplus
2767 extern "C"
2768 # endif
2769 int F77_DUMMY_MAIN() { return 1; }
2770 #endif
2771 int
2772 main ()
2773 {
2774
2775 ;
2776 return 0;
2777 }
2778 _ACEOF
2779 rm -f conftest.$ac_objext
2780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2781 (eval $ac_compile) 2>&5
2782 ac_status=$?
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); } &&
2785 { ac_try='test -s conftest.$ac_objext'
2786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2787 (eval $ac_try) 2>&5
2788 ac_status=$?
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); }; }; then
2791 ac_cv_try_cflags_ok=yes
2792 else
2793 echo "$as_me: failed program was:" >&5
2794 cat conftest.$ac_ext >&5
2795 ac_cv_try_cflags_ok=no
2796 fi
2797 rm -f conftest.$ac_objext conftest.$ac_ext
2798 CFLAGS="$SAVE_CFLAGS"
2799 echo "$as_me:$LINENO: result: $ac_cv_try_cflags_ok" >&5
2800 echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6
2801 if test x"$ac_cv_try_cflags_ok" = x"yes"; then
2802 CFLAGS=$OPT_CFLAGS
2803 else
2804 :
2805 fi
2806
2807 OPT_CFLAGS="$CFLAGS -fomit-frame-pointer"
2808 echo "$as_me:$LINENO: checking if $CC supports $OPT_CFLAGS flags" >&5
2809 echo $ECHO_N "checking if $CC supports $OPT_CFLAGS flags... $ECHO_C" >&6
2810 SAVE_CFLAGS="$CFLAGS"
2811 CFLAGS="$OPT_CFLAGS"
2812 cat >conftest.$ac_ext <<_ACEOF
2813 #line $LINENO "configure"
2814 #include "confdefs.h"
2815
2816 #ifdef F77_DUMMY_MAIN
2817 # ifdef __cplusplus
2818 extern "C"
2819 # endif
2820 int F77_DUMMY_MAIN() { return 1; }
2821 #endif
2822 int
2823 main ()
2824 {
2825
2826 ;
2827 return 0;
2828 }
2829 _ACEOF
2830 rm -f conftest.$ac_objext
2831 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2832 (eval $ac_compile) 2>&5
2833 ac_status=$?
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); } &&
2836 { ac_try='test -s conftest.$ac_objext'
2837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2838 (eval $ac_try) 2>&5
2839 ac_status=$?
2840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2841 (exit $ac_status); }; }; then
2842 ac_cv_try_cflags_ok=yes
2843 else
2844 echo "$as_me: failed program was:" >&5
2845 cat conftest.$ac_ext >&5
2846 ac_cv_try_cflags_ok=no
2847 fi
2848 rm -f conftest.$ac_objext conftest.$ac_ext
2849 CFLAGS="$SAVE_CFLAGS"
2850 echo "$as_me:$LINENO: result: $ac_cv_try_cflags_ok" >&5
2851 echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6
2852 if test x"$ac_cv_try_cflags_ok" = x"yes"; then
2853 CFLAGS=$OPT_CFLAGS
2854 else
2855 :
2856 fi
2857
2858 case "$host" in
2859 i?86-* | k?-*)
2860 case "$host" in
2861 i386-*) OPT_CFLAGS="$CFLAGS -mcpu=i386";;
2862 i486-*) OPT_CFLAGS="$CFLAGS -mcpu=i486";;
2863 i586-*) OPT_CFLAGS="$CFLAGS -mcpu=pentium";;
2864 i686-*) OPT_CFLAGS="$CFLAGS -mcpu=pentiumpro";;
2865 k6-*) OPT_CFLAGS="$CFLAGS -mcpu=k6";;
2866 esac
2867 echo "$as_me:$LINENO: checking if $CC supports $OPT_CFLAGS flags" >&5
2868 echo $ECHO_N "checking if $CC supports $OPT_CFLAGS flags... $ECHO_C" >&6
2869 SAVE_CFLAGS="$CFLAGS"
2870 CFLAGS="$OPT_CFLAGS"
2871 cat >conftest.$ac_ext <<_ACEOF
2872 #line $LINENO "configure"
2873 #include "confdefs.h"
2874
2875 #ifdef F77_DUMMY_MAIN
2876 # ifdef __cplusplus
2877 extern "C"
2878 # endif
2879 int F77_DUMMY_MAIN() { return 1; }
2880 #endif
2881 int
2882 main ()
2883 {
2884
2885 ;
2886 return 0;
2887 }
2888 _ACEOF
2889 rm -f conftest.$ac_objext
2890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2891 (eval $ac_compile) 2>&5
2892 ac_status=$?
2893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2894 (exit $ac_status); } &&
2895 { ac_try='test -s conftest.$ac_objext'
2896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2897 (eval $ac_try) 2>&5
2898 ac_status=$?
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }; }; then
2901 ac_cv_try_cflags_ok=yes
2902 else
2903 echo "$as_me: failed program was:" >&5
2904 cat conftest.$ac_ext >&5
2905 ac_cv_try_cflags_ok=no
2906 fi
2907 rm -f conftest.$ac_objext conftest.$ac_ext
2908 CFLAGS="$SAVE_CFLAGS"
2909 echo "$as_me:$LINENO: result: $ac_cv_try_cflags_ok" >&5
2910 echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6
2911 if test x"$ac_cv_try_cflags_ok" = x"yes"; then
2912 CFLAGS=$OPT_CFLAGS
2913 else
2914 :
2915 fi;;
2916 sparc-* | sparc64-*)
2917 OPT_CFLAGS="$CFLAGS -mtune=ultrasparc"
2918 echo "$as_me:$LINENO: checking if $CC supports $OPT_CFLAGS flags" >&5
2919 echo $ECHO_N "checking if $CC supports $OPT_CFLAGS flags... $ECHO_C" >&6
2920 SAVE_CFLAGS="$CFLAGS"
2921 CFLAGS="$OPT_CFLAGS"
2922 cat >conftest.$ac_ext <<_ACEOF
2923 #line $LINENO "configure"
2924 #include "confdefs.h"
2925
2926 #ifdef F77_DUMMY_MAIN
2927 # ifdef __cplusplus
2928 extern "C"
2929 # endif
2930 int F77_DUMMY_MAIN() { return 1; }
2931 #endif
2932 int
2933 main ()
2934 {
2935
2936 ;
2937 return 0;
2938 }
2939 _ACEOF
2940 rm -f conftest.$ac_objext
2941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2942 (eval $ac_compile) 2>&5
2943 ac_status=$?
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); } &&
2946 { ac_try='test -s conftest.$ac_objext'
2947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948 (eval $ac_try) 2>&5
2949 ac_status=$?
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }; }; then
2952 ac_cv_try_cflags_ok=yes
2953 else
2954 echo "$as_me: failed program was:" >&5
2955 cat conftest.$ac_ext >&5
2956 ac_cv_try_cflags_ok=no
2957 fi
2958 rm -f conftest.$ac_objext conftest.$ac_ext
2959 CFLAGS="$SAVE_CFLAGS"
2960 echo "$as_me:$LINENO: result: $ac_cv_try_cflags_ok" >&5
2961 echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6
2962 if test x"$ac_cv_try_cflags_ok" = x"yes"; then
2963 CFLAGS=$OPT_CFLAGS
2964 else
2965 :
2966 fi;;
2967 mips-sgi-irix6.*) OPT_CFLAGS="$CFLAGS -mabi=64"
2968 echo "$as_me:$LINENO: checking if $CC supports $OPT_CFLAGS flags" >&5
2969 echo $ECHO_N "checking if $CC supports $OPT_CFLAGS flags... $ECHO_C" >&6
2970 SAVE_CFLAGS="$CFLAGS"
2971 CFLAGS="$OPT_CFLAGS"
2972 cat >conftest.$ac_ext <<_ACEOF
2973 #line $LINENO "configure"
2974 #include "confdefs.h"
2975
2976 #ifdef F77_DUMMY_MAIN
2977 # ifdef __cplusplus
2978 extern "C"
2979 # endif
2980 int F77_DUMMY_MAIN() { return 1; }
2981 #endif
2982 int
2983 main ()
2984 {
2985
2986 ;
2987 return 0;
2988 }
2989 _ACEOF
2990 rm -f conftest.$ac_objext
2991 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2992 (eval $ac_compile) 2>&5
2993 ac_status=$?
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); } &&
2996 { ac_try='test -s conftest.$ac_objext'
2997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2998 (eval $ac_try) 2>&5
2999 ac_status=$?
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); }; }; then
3002 ac_cv_try_cflags_ok=yes
3003 else
3004 echo "$as_me: failed program was:" >&5
3005 cat conftest.$ac_ext >&5
3006 ac_cv_try_cflags_ok=no
3007 fi
3008 rm -f conftest.$ac_objext conftest.$ac_ext
3009 CFLAGS="$SAVE_CFLAGS"
3010 echo "$as_me:$LINENO: result: $ac_cv_try_cflags_ok" >&5
3011 echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6
3012 if test x"$ac_cv_try_cflags_ok" = x"yes"; then
3013 CFLAGS=$OPT_CFLAGS
3014 else
3015 :
3016 fi;;
3017 esac
3018 elif test x"$CC" = x"tcc" -a x"`$CC -version 2>&1 | grep TenDRA`" != x""; then
3019 TENDRA=yes
3020 CFLAGS="-Xp -Yansi -f`pwd`/include/tendra.h -DELIDE_CODE"
3021 enable_mlib=no
3022 enable_oss=no
3023 enable_solaris_audio=no
3024 elif test x"$CC" = x"icc" -a x"`$CC -V 2>&1 | grep Intel`" != x""; then
3025 CFLAGS="-g -O3 -unroll -ip"
3026 else
3027 case "$host" in
3028 mips-sgi-irix6.*)
3029 OPT_CFLAGS="$CFLAGS -64"
3030 echo "$as_me:$LINENO: checking if $CC supports $OPT_CFLAGS flags" >&5
3031 echo $ECHO_N "checking if $CC supports $OPT_CFLAGS flags... $ECHO_C" >&6
3032 SAVE_CFLAGS="$CFLAGS"
3033 CFLAGS="$OPT_CFLAGS"
3034 cat >conftest.$ac_ext <<_ACEOF
3035 #line $LINENO "configure"
3036 #include "confdefs.h"
3037
3038 #ifdef F77_DUMMY_MAIN
3039 # ifdef __cplusplus
3040 extern "C"
3041 # endif
3042 int F77_DUMMY_MAIN() { return 1; }
3043 #endif
3044 int
3045 main ()
3046 {
3047
3048 ;
3049 return 0;
3050 }
3051 _ACEOF
3052 rm -f conftest.$ac_objext
3053 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3054 (eval $ac_compile) 2>&5
3055 ac_status=$?
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); } &&
3058 { ac_try='test -s conftest.$ac_objext'
3059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3060 (eval $ac_try) 2>&5
3061 ac_status=$?
3062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3063 (exit $ac_status); }; }; then
3064 ac_cv_try_cflags_ok=yes
3065 else
3066 echo "$as_me: failed program was:" >&5
3067 cat conftest.$ac_ext >&5
3068 ac_cv_try_cflags_ok=no
3069 fi
3070 rm -f conftest.$ac_objext conftest.$ac_ext
3071 CFLAGS="$SAVE_CFLAGS"
3072 echo "$as_me:$LINENO: result: $ac_cv_try_cflags_ok" >&5
3073 echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6
3074 if test x"$ac_cv_try_cflags_ok" = x"yes"; then
3075 CFLAGS=$OPT_CFLAGS
3076 else
3077 :
3078 fi;;
3079 sparc-sun-solaris*)
3080 OPT_CFLAGS="$CFLAGS -xCC -fast -xO5"
3081 echo "$as_me:$LINENO: checking if $CC supports $OPT_CFLAGS flags" >&5
3082 echo $ECHO_N "checking if $CC supports $OPT_CFLAGS flags... $ECHO_C" >&6
3083 SAVE_CFLAGS="$CFLAGS"
3084 CFLAGS="$OPT_CFLAGS"
3085 cat >conftest.$ac_ext <<_ACEOF
3086 #line $LINENO "configure"
3087 #include "confdefs.h"
3088
3089 #ifdef F77_DUMMY_MAIN
3090 # ifdef __cplusplus
3091 extern "C"
3092 # endif
3093 int F77_DUMMY_MAIN() { return 1; }
3094 #endif
3095 int
3096 main ()
3097 {
3098
3099 ;
3100 return 0;
3101 }
3102 _ACEOF
3103 rm -f conftest.$ac_objext
3104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3105 (eval $ac_compile) 2>&5
3106 ac_status=$?
3107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3108 (exit $ac_status); } &&
3109 { ac_try='test -s conftest.$ac_objext'
3110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3111 (eval $ac_try) 2>&5
3112 ac_status=$?
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }; }; then
3115 ac_cv_try_cflags_ok=yes
3116 else
3117 echo "$as_me: failed program was:" >&5
3118 cat conftest.$ac_ext >&5
3119 ac_cv_try_cflags_ok=no
3120 fi
3121 rm -f conftest.$ac_objext conftest.$ac_ext
3122 CFLAGS="$SAVE_CFLAGS"
3123 echo "$as_me:$LINENO: result: $ac_cv_try_cflags_ok" >&5
3124 echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6
3125 if test x"$ac_cv_try_cflags_ok" = x"yes"; then
3126 CFLAGS=$OPT_CFLAGS
3127 else
3128 :
3129 fi;;
3130 esac
3131 fi
3132
3133 # Check whether --enable-shared or --disable-shared was given.
3134 if test "${enable_shared+set}" = set; then
3135 enableval="$enable_shared"
3136 p=${PACKAGE-default}
3137 case $enableval in
3138 yes) enable_shared=yes ;;
3139 no) enable_shared=no ;;
3140 *)
3141 enable_shared=no
3142 # Look at the argument we got. We use all the common list separators.
3143 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3144 for pkg in $enableval; do
3145 if test "X$pkg" = "X$p"; then
3146 enable_shared=yes
3147 fi
3148 done
3149 IFS="$ac_save_ifs"
3150 ;;
3151 esac
3152 else
3153 enable_shared=no
3154 fi;
3155
3156 # Check whether --enable-static or --disable-static was given.
3157 if test "${enable_static+set}" = set; then
3158 enableval="$enable_static"
3159 p=${PACKAGE-default}
3160 case $enableval in
3161 yes) enable_static=yes ;;
3162 no) enable_static=no ;;
3163 *)
3164 enable_static=no
3165 # Look at the argument we got. We use all the common list separators.
3166 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3167 for pkg in $enableval; do
3168 if test "X$pkg" = "X$p"; then
3169 enable_static=yes
3170 fi
3171 done
3172 IFS="$ac_save_ifs"
3173 ;;
3174 esac
3175 else
3176 enable_static=yes
3177 fi;
3178 # Check whether --enable-fast-install or --disable-fast-install was given.
3179 if test "${enable_fast_install+set}" = set; then
3180 enableval="$enable_fast_install"
3181 p=${PACKAGE-default}
3182 case $enableval in
3183 yes) enable_fast_install=yes ;;
3184 no) enable_fast_install=no ;;
3185 *)
3186 enable_fast_install=no
3187 # Look at the argument we got. We use all the common list separators.
3188 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3189 for pkg in $enableval; do
3190 if test "X$pkg" = "X$p"; then
3191 enable_fast_install=yes
3192 fi
3193 done
3194 IFS="$ac_save_ifs"
3195 ;;
3196 esac
3197 else
3198 enable_fast_install=yes
3199 fi;
3200 # Find the correct PATH separator. Usually this is `:', but
3201 # DJGPP uses `;' like DOS.
3202 if test "X${PATH_SEPARATOR+set}" != Xset; then
3203 UNAME=${UNAME-`uname 2>/dev/null`}
3204 case X$UNAME in
3205 *-DOS) lt_cv_sys_path_separator=';' ;;
3206 *) lt_cv_sys_path_separator=':' ;;
3207 esac
3208 PATH_SEPARATOR=$lt_cv_sys_path_separator
3209 fi
3210
3211
3212 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3213 if test "${with_gnu_ld+set}" = set; then
3214 withval="$with_gnu_ld"
3215 test "$withval" = no || with_gnu_ld=yes
3216 else
3217 with_gnu_ld=no
3218 fi;
3219 ac_prog=ld
3220 if test "$GCC" = yes; then
3221 # Check if gcc -print-prog-name=ld gives a path.
3222 echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3223 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
3224 case $host in
3225 *-*-mingw*)
3226 # gcc leaves a trailing carriage return which upsets mingw
3227 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3228 *)
3229 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3230 esac
3231 case $ac_prog in
3232 # Accept absolute paths.
3233 [\\/]* | [A-Za-z]:[\\/]*)
3234 re_direlt='/[^/][^/]*/\.\./'
3235 # Canonicalize the path of ld
3236 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3237 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3238 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3239 done
3240 test -z "$LD" && LD="$ac_prog"
3241 ;;
3242 "")
3243 # If it fails, then pretend we aren't using GCC.
3244 ac_prog=ld
3245 ;;
3246 *)
3247 # If it is relative, then search for the first ld in PATH.
3248 with_gnu_ld=unknown
3249 ;;
3250 esac
3251 elif test "$with_gnu_ld" = yes; then
3252 echo "$as_me:$LINENO: checking for GNU ld" >&5
3253 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3254 else
3255 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3256 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3257 fi
3258 if test "${lt_cv_path_LD+set}" = set; then
3259 echo $ECHO_N "(cached) $ECHO_C" >&6
3260 else
3261 if test -z "$LD"; then
3262 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3263 for ac_dir in $PATH; do
3264 test -z "$ac_dir" && ac_dir=.
3265 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3266 lt_cv_path_LD="$ac_dir/$ac_prog"
3267 # Check to see if the program is GNU ld. I'd rather use --version,
3268 # but apparently some GNU ld's only accept -v.
3269 # Break only if it was the GNU/non-GNU ld that we prefer.
3270 if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3271 test "$with_gnu_ld" != no && break
3272 else
3273 test "$with_gnu_ld" != yes && break
3274 fi
3275 fi
3276 done
3277 IFS="$ac_save_ifs"
3278 else
3279 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3280 fi
3281 fi
3282
3283 LD="$lt_cv_path_LD"
3284 if test -n "$LD"; then
3285 echo "$as_me:$LINENO: result: $LD" >&5
3286 echo "${ECHO_T}$LD" >&6
3287 else
3288 echo "$as_me:$LINENO: result: no" >&5
3289 echo "${ECHO_T}no" >&6
3290 fi
3291 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3292 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3293 { (exit 1); exit 1; }; }
3294 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3295 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3296 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3297 echo $ECHO_N "(cached) $ECHO_C" >&6
3298 else
3299 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3300 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3301 lt_cv_prog_gnu_ld=yes
3302 else
3303 lt_cv_prog_gnu_ld=no
3304 fi
3305 fi
3306 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3307 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3308 with_gnu_ld=$lt_cv_prog_gnu_ld
3309
3310
3311 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3312 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3313 if test "${lt_cv_ld_reload_flag+set}" = set; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 else
3316 lt_cv_ld_reload_flag='-r'
3317 fi
3318 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3319 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3320 reload_flag=$lt_cv_ld_reload_flag
3321 test -n "$reload_flag" && reload_flag=" $reload_flag"
3322
3323 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3324 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3325 if test "${lt_cv_path_NM+set}" = set; then
3326 echo $ECHO_N "(cached) $ECHO_C" >&6
3327 else
3328 if test -n "$NM"; then
3329 # Let the user override the test.
3330 lt_cv_path_NM="$NM"
3331 else
3332 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3333 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3334 test -z "$ac_dir" && ac_dir=.
3335 tmp_nm=$ac_dir/${ac_tool_prefix}nm
3336 if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3337 # Check to see if the nm accepts a BSD-compat flag.
3338 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3339 # nm: unknown option "B" ignored
3340 # Tru64's nm complains that /dev/null is an invalid object file
3341 if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3342 lt_cv_path_NM="$tmp_nm -B"
3343 break
3344 elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3345 lt_cv_path_NM="$tmp_nm -p"
3346 break
3347 else
3348 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3349 continue # so that we can try to find one that supports BSD flags
3350 fi
3351 fi
3352 done
3353 IFS="$ac_save_ifs"
3354 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3355 fi
3356 fi
3357
3358 NM="$lt_cv_path_NM"
3359 echo "$as_me:$LINENO: result: $NM" >&5
3360 echo "${ECHO_T}$NM" >&6
3361
3362 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3363 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3364 LN_S=$as_ln_s
3365 if test "$LN_S" = "ln -s"; then
3366 echo "$as_me:$LINENO: result: yes" >&5
3367 echo "${ECHO_T}yes" >&6
3368 else
3369 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3370 echo "${ECHO_T}no, using $LN_S" >&6
3371 fi
3372
3373 echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5
3374 echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6
3375 if test "${lt_cv_deplibs_check_method+set}" = set; then
3376 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 else
3378 lt_cv_file_magic_cmd='$MAGIC_CMD'
3379 lt_cv_file_magic_test_file=
3380 lt_cv_deplibs_check_method='unknown'
3381 # Need to set the preceding variable on all platforms that support
3382 # interlibrary dependencies.
3383 # 'none' -- dependencies not supported.
3384 # `unknown' -- same as none, but documents that we really don't know.
3385 # 'pass_all' -- all dependencies passed with no checks.
3386 # 'test_compile' -- check by making test program.
3387 # 'file_magic [[regex]]' -- check by looking for files in library path
3388 # which responds to the $file_magic_cmd with a given egrep regex.
3389 # If you have `file' or equivalent on your system and you're not sure
3390 # whether `pass_all' will *always* work, you probably want this one.
3391
3392 case $host_os in
3393 aix4* | aix5*)
3394 lt_cv_deplibs_check_method=pass_all
3395 ;;
3396
3397 beos*)
3398 lt_cv_deplibs_check_method=pass_all
3399 ;;
3400
3401 bsdi4*)
3402 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3403 lt_cv_file_magic_cmd='/usr/bin/file -L'
3404 lt_cv_file_magic_test_file=/shlib/libc.so
3405 ;;
3406
3407 cygwin* | mingw* | pw32*)
3408 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3409 lt_cv_file_magic_cmd='$OBJDUMP -f'
3410 ;;
3411
3412 darwin* | rhapsody*)
3413 lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3414 lt_cv_file_magic_cmd='/usr/bin/file -L'
3415 case "$host_os" in
3416 rhapsody* | darwin1.[012])
3417 lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3418 ;;
3419 *) # Darwin 1.3 on
3420 lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3421 ;;
3422 esac
3423 ;;
3424
3425 freebsd*)
3426 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3427 case $host_cpu in
3428 i*86 )
3429 # Not sure whether the presence of OpenBSD here was a mistake.
3430 # Let's accept both of them until this is cleared up.
3431 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3432 lt_cv_file_magic_cmd=/usr/bin/file
3433 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3434 ;;
3435 esac
3436 else
3437 lt_cv_deplibs_check_method=pass_all
3438 fi
3439 ;;
3440
3441 gnu*)
3442 lt_cv_deplibs_check_method=pass_all
3443 ;;
3444
3445 hpux10.20*|hpux11*)
3446 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3447 lt_cv_file_magic_cmd=/usr/bin/file
3448 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3449 ;;
3450
3451 irix5* | irix6* | nonstopux*)
3452 case $host_os in
3453 irix5* | nonstopux*)
3454 # this will be overridden with pass_all, but let us keep it just in case
3455 lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3456 ;;
3457 *)
3458 case $LD in
3459 *-32|*"-32 ") libmagic=32-bit;;
3460 *-n32|*"-n32 ") libmagic=N32;;
3461 *-64|*"-64 ") libmagic=64-bit;;
3462 *) libmagic=never-match;;
3463 esac
3464 # this will be overridden with pass_all, but let us keep it just in case
3465 lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3466 ;;
3467 esac
3468 lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3469 lt_cv_deplibs_check_method=pass_all
3470 ;;
3471
3472 # This must be Linux ELF.
3473 linux-gnu*)
3474 lt_cv_deplibs_check_method=pass_all
3475 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3476 ;;
3477
3478 netbsd*)
3479 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3480 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3481 else
3482 lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3483 fi
3484 ;;
3485
3486 newos6*)
3487 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3488 lt_cv_file_magic_cmd=/usr/bin/file
3489 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3490 ;;
3491
3492 openbsd*)
3493 lt_cv_file_magic_cmd=/usr/bin/file
3494 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3495 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3496 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3497 else
3498 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3499 fi
3500 ;;
3501
3502 osf3* | osf4* | osf5*)
3503 # this will be overridden with pass_all, but let us keep it just in case
3504 lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3505 lt_cv_file_magic_test_file=/shlib/libc.so
3506 lt_cv_deplibs_check_method=pass_all
3507 ;;
3508
3509 sco3.2v5*)
3510 lt_cv_deplibs_check_method=pass_all
3511 ;;
3512
3513 solaris*)
3514 lt_cv_deplibs_check_method=pass_all
3515 lt_cv_file_magic_test_file=/lib/libc.so
3516 ;;
3517
3518 sysv5uw[78]* | sysv4*uw2*)
3519 lt_cv_deplibs_check_method=pass_all
3520 ;;
3521
3522 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3523 case $host_vendor in
3524 motorola)
3525 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]'
3526 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3527 ;;
3528 ncr)
3529 lt_cv_deplibs_check_method=pass_all
3530 ;;
3531 sequent)
3532 lt_cv_file_magic_cmd='/bin/file'
3533 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3534 ;;
3535 sni)
3536 lt_cv_file_magic_cmd='/bin/file'
3537 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3538 lt_cv_file_magic_test_file=/lib/libc.so
3539 ;;
3540 esac
3541 ;;
3542 esac
3543
3544 fi
3545 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3546 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3547 file_magic_cmd=$lt_cv_file_magic_cmd
3548 deplibs_check_method=$lt_cv_deplibs_check_method
3549
3550
3551
3552
3553
3554
3555
3556 # Check for command to grab the raw symbol name followed by C symbol from nm.
3557 echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3558 echo $ECHO_N "checking command to parse $NM output... $ECHO_C" >&6
3559 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3560 echo $ECHO_N "(cached) $ECHO_C" >&6
3561 else
3562
3563 # These are sane defaults that work on at least a few old systems.
3564 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3565
3566 # Character class describing NM global symbol codes.
3567 symcode='[BCDEGRST]'
3568
3569 # Regexp to match symbols that can be accessed directly from C.
3570 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3571
3572 # Transform the above into a raw symbol and a C symbol.
3573 symxfrm='\1 \2\3 \3'
3574
3575 # Transform an extracted symbol line into a proper C declaration
3576 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3577
3578 # Transform an extracted symbol line into symbol name and symbol address
3579 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'"
3580
3581 # Define system-specific variables.
3582 case $host_os in
3583 aix*)
3584 symcode='[BCDT]'
3585 ;;
3586 cygwin* | mingw* | pw32*)
3587 symcode='[ABCDGISTW]'
3588 ;;
3589 hpux*) # Its linker distinguishes data from code symbols
3590 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3591 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'"
3592 ;;
3593 irix* | nonstopux*)
3594 symcode='[BCDEGRST]'
3595 ;;
3596 solaris* | sysv5*)
3597 symcode='[BDT]'
3598 ;;
3599 sysv4)
3600 symcode='[DFNSTU]'
3601 ;;
3602 esac
3603
3604 # Handle CRLF in mingw tool chain
3605 opt_cr=
3606 case $host_os in
3607 mingw*)
3608 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3609 ;;
3610 esac
3611
3612 # If we're using GNU nm, then use its standard symbol codes.
3613 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3614 symcode='[ABCDGISTW]'
3615 fi
3616
3617 # Try without a prefix undercore, then with it.
3618 for ac_symprfx in "" "_"; do
3619
3620 # Write the raw and C identifiers.
3621 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3622
3623 # Check to see that the pipe works correctly.
3624 pipe_works=no
3625 rm -f conftest*
3626 cat > conftest.$ac_ext <<EOF
3627 #ifdef __cplusplus
3628 extern "C" {
3629 #endif
3630 char nm_test_var;
3631 void nm_test_func(){}
3632 #ifdef __cplusplus
3633 }
3634 #endif
3635 int main(){nm_test_var='a';nm_test_func();return(0);}
3636 EOF
3637
3638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3639 (eval $ac_compile) 2>&5
3640 ac_status=$?
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); }; then
3643 # Now try to grab the symbols.
3644 nlist=conftest.nm
3645 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3646 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3647 ac_status=$?
3648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3649 (exit $ac_status); } && test -s "$nlist"; then
3650 # Try sorting and uniquifying the output.
3651 if sort "$nlist" | uniq > "$nlist"T; then
3652 mv -f "$nlist"T "$nlist"
3653 else
3654 rm -f "$nlist"T
3655 fi
3656
3657 # Make sure that we snagged all the symbols we need.
3658 if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3659 if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3660 cat <<EOF > conftest.$ac_ext
3661 #ifdef __cplusplus
3662 extern "C" {
3663 #endif
3664
3665 EOF
3666 # Now generate the symbol file.
3667 eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
3668
3669 cat <<EOF >> conftest.$ac_ext
3670 #if defined (__STDC__) && __STDC__
3671 # define lt_ptr void *
3672 #else
3673 # define lt_ptr char *
3674 # define const
3675 #endif
3676
3677 /* The mapping between symbol names and symbols. */
3678 const struct {
3679 const char *name;
3680 lt_ptr address;
3681 }
3682 lt_preloaded_symbols[] =
3683 {
3684 EOF
3685 sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
3686 cat <<\EOF >> conftest.$ac_ext
3687 {0, (lt_ptr) 0}
3688 };
3689
3690 #ifdef __cplusplus
3691 }
3692 #endif
3693 EOF
3694 # Now try linking the two files.
3695 mv conftest.$ac_objext conftstm.$ac_objext
3696 save_LIBS="$LIBS"
3697 save_CFLAGS="$CFLAGS"
3698 LIBS="conftstm.$ac_objext"
3699 CFLAGS="$CFLAGS$no_builtin_flag"
3700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3701 (eval $ac_link) 2>&5
3702 ac_status=$?
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); } && test -s conftest; then
3705 pipe_works=yes
3706 fi
3707 LIBS="$save_LIBS"
3708 CFLAGS="$save_CFLAGS"
3709 else
3710 echo "cannot find nm_test_func in $nlist" >&5
3711 fi
3712 else
3713 echo "cannot find nm_test_var in $nlist" >&5
3714 fi
3715 else
3716 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
3717 fi
3718 else
3719 echo "$progname: failed program was:" >&5
3720 cat conftest.$ac_ext >&5
3721 fi
3722 rm -f conftest* conftst*
3723
3724 # Do not use the global_symbol_pipe unless it works.
3725 if test "$pipe_works" = yes; then
3726 break
3727 else
3728 lt_cv_sys_global_symbol_pipe=
3729 fi
3730 done
3731
3732 fi
3733
3734 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
3735 if test -z "$lt_cv_sys_global_symbol_pipe"; then
3736 global_symbol_to_cdecl=
3737 global_symbol_to_c_name_address=
3738 else
3739 global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
3740 global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
3741 fi
3742 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
3743 then
3744 echo "$as_me:$LINENO: result: failed" >&5
3745 echo "${ECHO_T}failed" >&6
3746 else
3747 echo "$as_me:$LINENO: result: ok" >&5
3748 echo "${ECHO_T}ok" >&6
3749 fi
3750
3751 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3752 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3753 if test "${ac_cv_header_stdc+set}" = set; then
3754 echo $ECHO_N "(cached) $ECHO_C" >&6
3755 else
3756 cat >conftest.$ac_ext <<_ACEOF
3757 #line $LINENO "configure"
3758 #include "confdefs.h"
3759 #include <stdlib.h>
3760 #include <stdarg.h>
3761 #include <string.h>
3762 #include <float.h>
3763
3764 _ACEOF
3765 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3766 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3767 ac_status=$?
3768 egrep -v '^ *\+' conftest.er1 >conftest.err
3769 rm -f conftest.er1
3770 cat conftest.err >&5
3771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3772 (exit $ac_status); } >/dev/null; then
3773 if test -s conftest.err; then
3774 ac_cpp_err=$ac_c_preproc_warn_flag
3775 else
3776 ac_cpp_err=
3777 fi
3778 else
3779 ac_cpp_err=yes
3780 fi
3781 if test -z "$ac_cpp_err"; then
3782 ac_cv_header_stdc=yes
3783 else
3784 echo "$as_me: failed program was:" >&5
3785 cat conftest.$ac_ext >&5
3786 ac_cv_header_stdc=no
3787 fi
3788 rm -f conftest.err conftest.$ac_ext
3789
3790 if test $ac_cv_header_stdc = yes; then
3791 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3792 cat >conftest.$ac_ext <<_ACEOF
3793 #line $LINENO "configure"
3794 #include "confdefs.h"
3795 #include <string.h>
3796
3797 _ACEOF
3798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3799 egrep "memchr" >/dev/null 2>&1; then
3800 :
3801 else
3802 ac_cv_header_stdc=no
3803 fi
3804 rm -f conftest*
3805
3806 fi
3807
3808 if test $ac_cv_header_stdc = yes; then
3809 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3810 cat >conftest.$ac_ext <<_ACEOF
3811 #line $LINENO "configure"
3812 #include "confdefs.h"
3813 #include <stdlib.h>
3814
3815 _ACEOF
3816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3817 egrep "free" >/dev/null 2>&1; then
3818 :
3819 else
3820 ac_cv_header_stdc=no
3821 fi
3822 rm -f conftest*
3823
3824 fi
3825
3826 if test $ac_cv_header_stdc = yes; then
3827 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3828 if test "$cross_compiling" = yes; then
3829 :
3830 else
3831 cat >conftest.$ac_ext <<_ACEOF
3832 #line $LINENO "configure"
3833 #include "confdefs.h"
3834 #include <ctype.h>
3835 #if ((' ' & 0x0FF) == 0x020)
3836 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3837 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3838 #else
3839 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
3840 || ('j' <= (c) && (c) <= 'r') \
3841 || ('s' <= (c) && (c) <= 'z'))
3842 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3843 #endif
3844
3845 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3846 int
3847 main ()
3848 {
3849 int i;
3850 for (i = 0; i < 256; i++)
3851 if (XOR (islower (i), ISLOWER (i))
3852 || toupper (i) != TOUPPER (i))
3853 exit(2);
3854 exit (0);
3855 }
3856 _ACEOF
3857 rm -f conftest$ac_exeext
3858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3859 (eval $ac_link) 2>&5
3860 ac_status=$?
3861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3864 (eval $ac_try) 2>&5
3865 ac_status=$?
3866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3867 (exit $ac_status); }; }; then
3868 :
3869 else
3870 echo "$as_me: program exited with status $ac_status" >&5
3871 echo "$as_me: failed program was:" >&5
3872 cat conftest.$ac_ext >&5
3873 ( exit $ac_status )
3874 ac_cv_header_stdc=no
3875 fi
3876 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3877 fi
3878 fi
3879 fi
3880 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3881 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3882 if test $ac_cv_header_stdc = yes; then
3883
3884 cat >>confdefs.h <<\_ACEOF
3885 #define STDC_HEADERS 1
3886 _ACEOF
3887
3888 fi
3889
3890 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3901 inttypes.h stdint.h unistd.h
3902 do
3903 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3904 echo "$as_me:$LINENO: checking for $ac_header" >&5
3905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3906 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3907 echo $ECHO_N "(cached) $ECHO_C" >&6
3908 else
3909 cat >conftest.$ac_ext <<_ACEOF
3910 #line $LINENO "configure"
3911 #include "confdefs.h"
3912 $ac_includes_default
3913
3914 #include <$ac_header>
3915 _ACEOF
3916 rm -f conftest.$ac_objext
3917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3918 (eval $ac_compile) 2>&5
3919 ac_status=$?
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); } &&
3922 { ac_try='test -s conftest.$ac_objext'
3923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3924 (eval $ac_try) 2>&5
3925 ac_status=$?
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); }; }; then
3928 eval "$as_ac_Header=yes"
3929 else
3930 echo "$as_me: failed program was:" >&5
3931 cat conftest.$ac_ext >&5
3932 eval "$as_ac_Header=no"
3933 fi
3934 rm -f conftest.$ac_objext conftest.$ac_ext
3935 fi
3936 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3937 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3939 cat >>confdefs.h <<_ACEOF
3940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3941 _ACEOF
3942
3943 fi
3944
3945 done
3946
3947
3948
3949 for ac_header in dlfcn.h
3950 do
3951 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3952 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3953 echo "$as_me:$LINENO: checking for $ac_header" >&5
3954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3955 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3956 echo $ECHO_N "(cached) $ECHO_C" >&6
3957 fi
3958 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3959 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3960 else
3961 # Is the header compilable?
3962 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3963 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3964 cat >conftest.$ac_ext <<_ACEOF
3965 #line $LINENO "configure"
3966 #include "confdefs.h"
3967 $ac_includes_default
3968 #include <$ac_header>
3969 _ACEOF
3970 rm -f conftest.$ac_objext
3971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3972 (eval $ac_compile) 2>&5
3973 ac_status=$?
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); } &&
3976 { ac_try='test -s conftest.$ac_objext'
3977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3978 (eval $ac_try) 2>&5
3979 ac_status=$?
3980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981 (exit $ac_status); }; }; then
3982 ac_header_compiler=yes
3983 else
3984 echo "$as_me: failed program was:" >&5
3985 cat conftest.$ac_ext >&5
3986 ac_header_compiler=no
3987 fi
3988 rm -f conftest.$ac_objext conftest.$ac_ext
3989 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3990 echo "${ECHO_T}$ac_header_compiler" >&6
3991
3992 # Is the header present?
3993 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3995 cat >conftest.$ac_ext <<_ACEOF
3996 #line $LINENO "configure"
3997 #include "confdefs.h"
3998 #include <$ac_header>
3999 _ACEOF
4000 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4001 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4002 ac_status=$?
4003 egrep -v '^ *\+' conftest.er1 >conftest.err
4004 rm -f conftest.er1
4005 cat conftest.err >&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); } >/dev/null; then
4008 if test -s conftest.err; then
4009 ac_cpp_err=$ac_c_preproc_warn_flag
4010 else
4011 ac_cpp_err=
4012 fi
4013 else
4014 ac_cpp_err=yes
4015 fi
4016 if test -z "$ac_cpp_err"; then
4017 ac_header_preproc=yes
4018 else
4019 echo "$as_me: failed program was:" >&5
4020 cat conftest.$ac_ext >&5
4021 ac_header_preproc=no
4022 fi
4023 rm -f conftest.err conftest.$ac_ext
4024 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4025 echo "${ECHO_T}$ac_header_preproc" >&6
4026
4027 # So? What about this header?
4028 case $ac_header_compiler:$ac_header_preproc in
4029 yes:no )
4030 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4031 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4034 no:yes )
4035 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4036 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4037 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4038 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4040 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
4041 esac
4042 echo "$as_me:$LINENO: checking for $ac_header" >&5
4043 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4044 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 else
4047 eval "$as_ac_Header=$ac_header_preproc"
4048 fi
4049 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4050 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4051
4052 fi
4053 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4054 cat >>confdefs.h <<_ACEOF
4055 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4056 _ACEOF
4057
4058 fi
4059
4060 done
4061
4062
4063
4064
4065
4066 # Only perform the check for file, if the check method requires it
4067 case $deplibs_check_method in
4068 file_magic*)
4069 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4070 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4071 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
4072 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4073 echo $ECHO_N "(cached) $ECHO_C" >&6
4074 else
4075 case $MAGIC_CMD in
4076 /*)
4077 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4078 ;;
4079 ?:/*)
4080 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4081 ;;
4082 *)
4083 ac_save_MAGIC_CMD="$MAGIC_CMD"
4084 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4085 ac_dummy="/usr/bin:$PATH"
4086 for ac_dir in $ac_dummy; do
4087 test -z "$ac_dir" && ac_dir=.
4088 if test -f $ac_dir/${ac_tool_prefix}file; then
4089 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4090 if test -n "$file_magic_test_file"; then
4091 case $deplibs_check_method in
4092 "file_magic "*)
4093 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4094 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4095 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4096 egrep "$file_magic_regex" > /dev/null; then
4097 :
4098 else
4099 cat <<EOF 1>&2
4100
4101 *** Warning: the command libtool uses to detect shared libraries,
4102 *** $file_magic_cmd, produces output that libtool cannot recognize.
4103 *** The result is that libtool may fail to recognize shared libraries
4104 *** as such. This will affect the creation of libtool libraries that
4105 *** depend on shared libraries, but programs linked with such libtool
4106 *** libraries will work regardless of this problem. Nevertheless, you
4107 *** may want to report the problem to your system manager and/or to
4108 *** [email protected]
4109
4110 EOF
4111 fi ;;
4112 esac
4113 fi
4114 break
4115 fi
4116 done
4117 IFS="$ac_save_ifs"
4118 MAGIC_CMD="$ac_save_MAGIC_CMD"
4119 ;;
4120 esac
4121 fi
4122
4123 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4124 if test -n "$MAGIC_CMD"; then
4125 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4126 echo "${ECHO_T}$MAGIC_CMD" >&6
4127 else
4128 echo "$as_me:$LINENO: result: no" >&5
4129 echo "${ECHO_T}no" >&6
4130 fi
4131
4132 if test -z "$lt_cv_path_MAGIC_CMD"; then
4133 if test -n "$ac_tool_prefix"; then
4134 echo "$as_me:$LINENO: checking for file" >&5
4135 echo $ECHO_N "checking for file... $ECHO_C" >&6
4136 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
4138 else
4139 case $MAGIC_CMD in
4140 /*)
4141 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4142 ;;
4143 ?:/*)
4144 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4145 ;;
4146 *)
4147 ac_save_MAGIC_CMD="$MAGIC_CMD"
4148 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
4149 ac_dummy="/usr/bin:$PATH"
4150 for ac_dir in $ac_dummy; do
4151 test -z "$ac_dir" && ac_dir=.
4152 if test -f $ac_dir/file; then
4153 lt_cv_path_MAGIC_CMD="$ac_dir/file"
4154 if test -n "$file_magic_test_file"; then
4155 case $deplibs_check_method in
4156 "file_magic "*)
4157 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4158 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4159 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4160 egrep "$file_magic_regex" > /dev/null; then
4161 :
4162 else
4163 cat <<EOF 1>&2
4164
4165 *** Warning: the command libtool uses to detect shared libraries,
4166 *** $file_magic_cmd, produces output that libtool cannot recognize.
4167 *** The result is that libtool may fail to recognize shared libraries
4168 *** as such. This will affect the creation of libtool libraries that
4169 *** depend on shared libraries, but programs linked with such libtool
4170 *** libraries will work regardless of this problem. Nevertheless, you
4171 *** may want to report the problem to your system manager and/or to
4172 *** [email protected]
4173
4174 EOF
4175 fi ;;
4176 esac
4177 fi
4178 break
4179 fi
4180 done
4181 IFS="$ac_save_ifs"
4182 MAGIC_CMD="$ac_save_MAGIC_CMD"
4183 ;;
4184 esac
4185 fi
4186
4187 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4188 if test -n "$MAGIC_CMD"; then
4189 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4190 echo "${ECHO_T}$MAGIC_CMD" >&6
4191 else
4192 echo "$as_me:$LINENO: result: no" >&5
4193 echo "${ECHO_T}no" >&6
4194 fi
4195
4196 else
4197 MAGIC_CMD=:
4198 fi
4199 fi
4200
4201 fi
4202 ;;
4203 esac
4204
4205 if test -n "$ac_tool_prefix"; then
4206 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4207 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4208 echo "$as_me:$LINENO: checking for $ac_word" >&5
4209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4210 if test "${ac_cv_prog_RANLIB+set}" = set; then
4211 echo $ECHO_N "(cached) $ECHO_C" >&6
4212 else
4213 if test -n "$RANLIB"; then
4214 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4215 else
4216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217 for as_dir in $PATH
4218 do
4219 IFS=$as_save_IFS
4220 test -z "$as_dir" && as_dir=.
4221 for ac_exec_ext in '' $ac_executable_extensions; do
4222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4223 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4225 break 2
4226 fi
4227 done
4228 done
4229
4230 fi
4231 fi
4232 RANLIB=$ac_cv_prog_RANLIB
4233 if test -n "$RANLIB"; then
4234 echo "$as_me:$LINENO: result: $RANLIB" >&5
4235 echo "${ECHO_T}$RANLIB" >&6
4236 else
4237 echo "$as_me:$LINENO: result: no" >&5
4238 echo "${ECHO_T}no" >&6
4239 fi
4240
4241 fi
4242 if test -z "$ac_cv_prog_RANLIB"; then
4243 ac_ct_RANLIB=$RANLIB
4244 # Extract the first word of "ranlib", so it can be a program name with args.
4245 set dummy ranlib; ac_word=$2
4246 echo "$as_me:$LINENO: checking for $ac_word" >&5
4247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4248 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4249 echo $ECHO_N "(cached) $ECHO_C" >&6
4250 else
4251 if test -n "$ac_ct_RANLIB"; then
4252 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4253 else
4254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4255 for as_dir in $PATH
4256 do
4257 IFS=$as_save_IFS
4258 test -z "$as_dir" && as_dir=.
4259 for ac_exec_ext in '' $ac_executable_extensions; do
4260 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4261 ac_cv_prog_ac_ct_RANLIB="ranlib"
4262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4263 break 2
4264 fi
4265 done
4266 done
4267
4268 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4269 fi
4270 fi
4271 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4272 if test -n "$ac_ct_RANLIB"; then
4273 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4274 echo "${ECHO_T}$ac_ct_RANLIB" >&6
4275 else
4276 echo "$as_me:$LINENO: result: no" >&5
4277 echo "${ECHO_T}no" >&6
4278 fi
4279
4280 RANLIB=$ac_ct_RANLIB
4281 else
4282 RANLIB="$ac_cv_prog_RANLIB"
4283 fi
4284
4285 if test -n "$ac_tool_prefix"; then
4286 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4287 set dummy ${ac_tool_prefix}strip; ac_word=$2
4288 echo "$as_me:$LINENO: checking for $ac_word" >&5
4289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4290 if test "${ac_cv_prog_STRIP+set}" = set; then
4291 echo $ECHO_N "(cached) $ECHO_C" >&6
4292 else
4293 if test -n "$STRIP"; then
4294 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4295 else
4296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297 for as_dir in $PATH
4298 do
4299 IFS=$as_save_IFS
4300 test -z "$as_dir" && as_dir=.
4301 for ac_exec_ext in '' $ac_executable_extensions; do
4302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4303 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4304 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4305 break 2
4306 fi
4307 done
4308 done
4309
4310 fi
4311 fi
4312 STRIP=$ac_cv_prog_STRIP
4313 if test -n "$STRIP"; then
4314 echo "$as_me:$LINENO: result: $STRIP" >&5
4315 echo "${ECHO_T}$STRIP" >&6
4316 else
4317 echo "$as_me:$LINENO: result: no" >&5
4318 echo "${ECHO_T}no" >&6
4319 fi
4320
4321 fi
4322 if test -z "$ac_cv_prog_STRIP"; then
4323 ac_ct_STRIP=$STRIP
4324 # Extract the first word of "strip", so it can be a program name with args.
4325 set dummy strip; ac_word=$2
4326 echo "$as_me:$LINENO: checking for $ac_word" >&5
4327 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4328 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4330 else
4331 if test -n "$ac_ct_STRIP"; then
4332 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4333 else
4334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 for as_dir in $PATH
4336 do
4337 IFS=$as_save_IFS
4338 test -z "$as_dir" && as_dir=.
4339 for ac_exec_ext in '' $ac_executable_extensions; do
4340 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4341 ac_cv_prog_ac_ct_STRIP="strip"
4342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4343 break 2
4344 fi
4345 done
4346 done
4347
4348 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
4349 fi
4350 fi
4351 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4352 if test -n "$ac_ct_STRIP"; then
4353 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4354 echo "${ECHO_T}$ac_ct_STRIP" >&6
4355 else
4356 echo "$as_me:$LINENO: result: no" >&5
4357 echo "${ECHO_T}no" >&6
4358 fi
4359
4360 STRIP=$ac_ct_STRIP
4361 else
4362 STRIP="$ac_cv_prog_STRIP"
4363 fi
4364
4365
4366 enable_dlopen=no
4367 enable_win32_dll=no
4368
4369 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4370 if test "${enable_libtool_lock+set}" = set; then
4371 enableval="$enable_libtool_lock"
4372
4373 fi;
4374 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4375
4376 # Some flags need to be propagated to the compiler or linker for good
4377 # libtool support.
4378 case $host in
4379 *-*-irix6*)
4380 # Find out which ABI we are using.
4381 echo '#line 4381 "configure"' > conftest.$ac_ext
4382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4383 (eval $ac_compile) 2>&5
4384 ac_status=$?
4385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4386 (exit $ac_status); }; then
4387 case `/usr/bin/file conftest.$ac_objext` in
4388 *32-bit*)
4389 LD="${LD-ld} -32"
4390 ;;
4391 *N32*)
4392 LD="${LD-ld} -n32"
4393 ;;
4394 *64-bit*)
4395 LD="${LD-ld} -64"
4396 ;;
4397 esac
4398 fi
4399 rm -rf conftest*
4400 ;;
4401
4402 *-*-sco3.2v5*)
4403 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4404 SAVE_CFLAGS="$CFLAGS"
4405 CFLAGS="$CFLAGS -belf"
4406 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4407 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4408 if test "${lt_cv_cc_needs_belf+set}" = set; then
4409 echo $ECHO_N "(cached) $ECHO_C" >&6
4410 else
4411
4412
4413 ac_ext=c
4414 ac_cpp='$CPP $CPPFLAGS'
4415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4418
4419 cat >conftest.$ac_ext <<_ACEOF
4420 #line $LINENO "configure"
4421 #include "confdefs.h"
4422
4423 #ifdef F77_DUMMY_MAIN
4424 # ifdef __cplusplus
4425 extern "C"
4426 # endif
4427 int F77_DUMMY_MAIN() { return 1; }
4428 #endif
4429 int
4430 main ()
4431 {
4432
4433 ;
4434 return 0;
4435 }
4436 _ACEOF
4437 rm -f conftest.$ac_objext conftest$ac_exeext
4438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4439 (eval $ac_link) 2>&5
4440 ac_status=$?
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); } &&
4443 { ac_try='test -s conftest$ac_exeext'
4444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4445 (eval $ac_try) 2>&5
4446 ac_status=$?
4447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4448 (exit $ac_status); }; }; then
4449 lt_cv_cc_needs_belf=yes
4450 else
4451 echo "$as_me: failed program was:" >&5
4452 cat conftest.$ac_ext >&5
4453 lt_cv_cc_needs_belf=no
4454 fi
4455 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4456 ac_ext=c
4457 ac_cpp='$CPP $CPPFLAGS'
4458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4461
4462 fi
4463 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4464 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4465 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4466 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4467 CFLAGS="$SAVE_CFLAGS"
4468 fi
4469 ;;
4470
4471
4472 esac
4473
4474 # Sed substitution that helps us do robust quoting. It backslashifies
4475 # metacharacters that are still active within double-quoted strings.
4476 Xsed='sed -e s/^X//'
4477 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
4478
4479 # Same as above, but do not quote variable references.
4480 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
4481
4482 # Sed substitution to delay expansion of an escaped shell variable in a
4483 # double_quote_subst'ed string.
4484 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4485
4486 # Constants:
4487 rm="rm -f"
4488
4489 # Global variables:
4490 default_ofile=libtool
4491 can_build_shared=yes
4492
4493 # All known linkers require a `.a' archive for static linking (except M$VC,
4494 # which needs '.lib').
4495 libext=a
4496 ltmain="$ac_aux_dir/ltmain.sh"
4497 ofile="$default_ofile"
4498 with_gnu_ld="$lt_cv_prog_gnu_ld"
4499 need_locks="$enable_libtool_lock"
4500
4501 old_CC="$CC"
4502 old_CFLAGS="$CFLAGS"
4503
4504 # Set sane defaults for various variables
4505 test -z "$AR" && AR=ar
4506 test -z "$AR_FLAGS" && AR_FLAGS=cru
4507 test -z "$AS" && AS=as
4508 test -z "$CC" && CC=cc
4509 test -z "$DLLTOOL" && DLLTOOL=dlltool
4510 test -z "$LD" && LD=ld
4511 test -z "$LN_S" && LN_S="ln -s"
4512 test -z "$MAGIC_CMD" && MAGIC_CMD=file
4513 test -z "$NM" && NM=nm
4514 test -z "$OBJDUMP" && OBJDUMP=objdump
4515 test -z "$RANLIB" && RANLIB=:
4516 test -z "$STRIP" && STRIP=:
4517 test -z "$ac_objext" && ac_objext=o
4518
4519 if test x"$host" != x"$build"; then
4520 ac_tool_prefix=${host_alias}-
4521 else
4522 ac_tool_prefix=
4523 fi
4524
4525 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
4526 case $host_os in
4527 linux-gnu*) ;;
4528 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
4529 esac
4530
4531 case $host_os in
4532 aix3*)
4533 # AIX sometimes has problems with the GCC collect2 program. For some
4534 # reason, if we set the COLLECT_NAMES environment variable, the problems
4535 # vanish in a puff of smoke.
4536 if test "X${COLLECT_NAMES+set}" != Xset; then
4537 COLLECT_NAMES=
4538 export COLLECT_NAMES
4539 fi
4540 ;;
4541 esac
4542
4543 # Determine commands to create old-style static archives.
4544 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
4545 old_postinstall_cmds='chmod 644 $oldlib'
4546 old_postuninstall_cmds=
4547
4548 if test -n "$RANLIB"; then
4549 case $host_os in
4550 openbsd*)
4551 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
4552 ;;
4553 *)
4554 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
4555 ;;
4556 esac
4557 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
4558 fi
4559
4560 # Allow CC to be a program name with arguments.
4561 set dummy $CC
4562 compiler="$2"
4563
4564 echo "$as_me:$LINENO: checking for objdir" >&5
4565 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
4566 rm -f .libs 2>/dev/null
4567 mkdir .libs 2>/dev/null
4568 if test -d .libs; then
4569 objdir=.libs
4570 else
4571 # MS-DOS does not allow filenames that begin with a dot.
4572 objdir=_libs
4573 fi
4574 rmdir .libs 2>/dev/null
4575 echo "$as_me:$LINENO: result: $objdir" >&5
4576 echo "${ECHO_T}$objdir" >&6
4577
4578
4579
4580 # Check whether --with-pic or --without-pic was given.
4581 if test "${with_pic+set}" = set; then
4582 withval="$with_pic"
4583 pic_mode="$withval"
4584 else
4585 pic_mode=default
4586 fi;
4587 test -z "$pic_mode" && pic_mode=default
4588
4589 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
4590 # in isolation, and that seeing it set (from the cache) indicates that
4591 # the associated values are set (in the cache) correctly too.
4592 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
4593 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
4594 if test "${lt_cv_prog_cc_pic+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 else
4597 lt_cv_prog_cc_pic=
4598 lt_cv_prog_cc_shlib=
4599 lt_cv_prog_cc_wl=
4600 lt_cv_prog_cc_static=
4601 lt_cv_prog_cc_no_builtin=
4602 lt_cv_prog_cc_can_build_shared=$can_build_shared
4603
4604 if test "$GCC" = yes; then
4605 lt_cv_prog_cc_wl='-Wl,'
4606 lt_cv_prog_cc_static='-static'
4607
4608 case $host_os in
4609 aix*)
4610 # Below there is a dirty hack to force normal static linking with -ldl
4611 # The problem is because libdl dynamically linked with both libc and
4612 # libC (AIX C++ library), which obviously doesn't included in libraries
4613 # list by gcc. This cause undefined symbols with -static flags.
4614 # This hack allows C programs to be linked with "-static -ldl", but
4615 # not sure about C++ programs.
4616 lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
4617 ;;
4618 amigaos*)
4619 # FIXME: we need at least 68020 code to build shared libraries, but
4620 # adding the `-m68020' flag to GCC prevents building anything better,
4621 # like `-m68040'.
4622 lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
4623 ;;
4624 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4625 # PIC is the default for these OSes.
4626 ;;
4627 darwin* | rhapsody*)
4628 # PIC is the default on this platform
4629 # Common symbols not allowed in MH_DYLIB files
4630 lt_cv_prog_cc_pic='-fno-common'
4631 ;;
4632 cygwin* | mingw* | pw32* | os2*)
4633 # This hack is so that the source file can tell whether it is being
4634 # built for inclusion in a dll (and should export symbols for example).
4635 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4636 ;;
4637 sysv4*MP*)
4638 if test -d /usr/nec; then
4639 lt_cv_prog_cc_pic=-Kconform_pic
4640 fi
4641 ;;
4642 *)
4643 lt_cv_prog_cc_pic='-fPIC'
4644 ;;
4645 esac
4646 else
4647 # PORTME Check for PIC flags for the system compiler.
4648 case $host_os in
4649 aix3* | aix4* | aix5*)
4650 lt_cv_prog_cc_wl='-Wl,'
4651 # All AIX code is PIC.
4652 if test "$host_cpu" = ia64; then
4653 # AIX 5 now supports IA64 processor
4654 lt_cv_prog_cc_static='-Bstatic'
4655 else
4656 lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
4657 fi
4658 ;;
4659
4660 hpux9* | hpux10* | hpux11*)
4661 # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
4662 lt_cv_prog_cc_wl='-Wl,'
4663 lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
4664 lt_cv_prog_cc_pic='+Z'
4665 ;;
4666
4667 irix5* | irix6* | nonstopux*)
4668 lt_cv_prog_cc_wl='-Wl,'
4669 lt_cv_prog_cc_static='-non_shared'
4670 # PIC (with -KPIC) is the default.
4671 ;;
4672
4673 cygwin* | mingw* | pw32* | os2*)
4674 # This hack is so that the source file can tell whether it is being
4675 # built for inclusion in a dll (and should export symbols for example).
4676 lt_cv_prog_cc_pic='-DDLL_EXPORT'
4677 ;;
4678
4679 newsos6)
4680 lt_cv_prog_cc_pic='-KPIC'
4681 lt_cv_prog_cc_static='-Bstatic'
4682 ;;
4683
4684 osf3* | osf4* | osf5*)
4685 # All OSF/1 code is PIC.
4686 lt_cv_prog_cc_wl='-Wl,'
4687 lt_cv_prog_cc_static='-non_shared'
4688 ;;
4689
4690 sco3.2v5*)
4691 lt_cv_prog_cc_pic='-Kpic'
4692 lt_cv_prog_cc_static='-dn'
4693 lt_cv_prog_cc_shlib='-belf'
4694 ;;
4695
4696 solaris*)
4697 lt_cv_prog_cc_pic='-KPIC'
4698 lt_cv_prog_cc_static='-Bstatic'
4699 lt_cv_prog_cc_wl='-Wl,'
4700 ;;
4701
4702 sunos4*)
4703 lt_cv_prog_cc_pic='-PIC'
4704 lt_cv_prog_cc_static='-Bstatic'
4705 lt_cv_prog_cc_wl='-Qoption ld '
4706 ;;
4707
4708 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4709 lt_cv_prog_cc_pic='-KPIC'
4710 lt_cv_prog_cc_static='-Bstatic'
4711 if test "x$host_vendor" = xsni; then
4712 lt_cv_prog_cc_wl='-LD'
4713 else
4714 lt_cv_prog_cc_wl='-Wl,'
4715 fi
4716 ;;
4717
4718 uts4*)
4719 lt_cv_prog_cc_pic='-pic'
4720 lt_cv_prog_cc_static='-Bstatic'
4721 ;;
4722
4723 sysv4*MP*)
4724 if test -d /usr/nec ;then
4725 lt_cv_prog_cc_pic='-Kconform_pic'
4726 lt_cv_prog_cc_static='-Bstatic'
4727 fi
4728 ;;
4729
4730 *)
4731 lt_cv_prog_cc_can_build_shared=no
4732 ;;
4733 esac
4734 fi
4735
4736 fi
4737
4738 if test -z "$lt_cv_prog_cc_pic"; then
4739 echo "$as_me:$LINENO: result: none" >&5
4740 echo "${ECHO_T}none" >&6
4741 else
4742 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
4743 echo "${ECHO_T}$lt_cv_prog_cc_pic" >&6
4744
4745 # Check to make sure the pic_flag actually works.
4746 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
4747 echo $ECHO_N "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... $ECHO_C" >&6
4748 if test "${lt_cv_prog_cc_pic_works+set}" = set; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4750 else
4751 save_CFLAGS="$CFLAGS"
4752 CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
4753 cat >conftest.$ac_ext <<_ACEOF
4754 #line $LINENO "configure"
4755 #include "confdefs.h"
4756
4757 #ifdef F77_DUMMY_MAIN
4758 # ifdef __cplusplus
4759 extern "C"
4760 # endif
4761 int F77_DUMMY_MAIN() { return 1; }
4762 #endif
4763 int
4764 main ()
4765 {
4766
4767 ;
4768 return 0;
4769 }
4770 _ACEOF
4771 rm -f conftest.$ac_objext
4772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4773 (eval $ac_compile) 2>&5
4774 ac_status=$?
4775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4776 (exit $ac_status); } &&
4777 { ac_try='test -s conftest.$ac_objext'
4778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4779 (eval $ac_try) 2>&5
4780 ac_status=$?
4781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4782 (exit $ac_status); }; }; then
4783 case $host_os in
4784 hpux9* | hpux10* | hpux11*)
4785 # On HP-UX, both CC and GCC only warn that PIC is supported... then
4786 # they create non-PIC objects. So, if there were any warnings, we
4787 # assume that PIC is not supported.
4788 if test -s conftest.err; then
4789 lt_cv_prog_cc_pic_works=no
4790 else
4791 lt_cv_prog_cc_pic_works=yes
4792 fi
4793 ;;
4794 *)
4795 lt_cv_prog_cc_pic_works=yes
4796 ;;
4797 esac
4798
4799 else
4800 echo "$as_me: failed program was:" >&5
4801 cat conftest.$ac_ext >&5
4802 lt_cv_prog_cc_pic_works=no
4803
4804 fi
4805 rm -f conftest.$ac_objext conftest.$ac_ext
4806 CFLAGS="$save_CFLAGS"
4807
4808 fi
4809
4810
4811 if test "X$lt_cv_prog_cc_pic_works" = Xno; then
4812 lt_cv_prog_cc_pic=
4813 lt_cv_prog_cc_can_build_shared=no
4814 else
4815 lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
4816 fi
4817
4818 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
4819 echo "${ECHO_T}$lt_cv_prog_cc_pic_works" >&6
4820 fi
4821
4822 # Check for any special shared library compilation flags.
4823 if test -n "$lt_cv_prog_cc_shlib"; then
4824 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
4825 echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
4826 if echo "$old_CC $old_CFLAGS " | egrep -e "[ ]$lt_cv_prog_cc_shlib[ ]" >/dev/null; then :
4827 else
4828 { echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
4829 echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
4830 lt_cv_prog_cc_can_build_shared=no
4831 fi
4832 fi
4833
4834 echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
4835 echo $ECHO_N "checking if $compiler static flag $lt_cv_prog_cc_static works... $ECHO_C" >&6
4836 if test "${lt_cv_prog_cc_static_works+set}" = set; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
4838 else
4839 lt_cv_prog_cc_static_works=no
4840 save_LDFLAGS="$LDFLAGS"
4841 LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
4842 cat >conftest.$ac_ext <<_ACEOF
4843 #line $LINENO "configure"
4844 #include "confdefs.h"
4845
4846 #ifdef F77_DUMMY_MAIN
4847 # ifdef __cplusplus
4848 extern "C"
4849 # endif
4850 int F77_DUMMY_MAIN() { return 1; }
4851 #endif
4852 int
4853 main ()
4854 {
4855
4856 ;
4857 return 0;
4858 }
4859 _ACEOF
4860 rm -f conftest.$ac_objext conftest$ac_exeext
4861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4862 (eval $ac_link) 2>&5
4863 ac_status=$?
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } &&
4866 { ac_try='test -s conftest$ac_exeext'
4867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868 (eval $ac_try) 2>&5
4869 ac_status=$?
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); }; }; then
4872 lt_cv_prog_cc_static_works=yes
4873 else
4874 echo "$as_me: failed program was:" >&5
4875 cat conftest.$ac_ext >&5
4876 fi
4877 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4878 LDFLAGS="$save_LDFLAGS"
4879
4880 fi
4881
4882
4883 # Belt *and* braces to stop my trousers falling down:
4884 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
4885 echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
4886 echo "${ECHO_T}$lt_cv_prog_cc_static_works" >&6
4887
4888 pic_flag="$lt_cv_prog_cc_pic"
4889 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
4890 wl="$lt_cv_prog_cc_wl"
4891 link_static_flag="$lt_cv_prog_cc_static"
4892 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
4893 can_build_shared="$lt_cv_prog_cc_can_build_shared"
4894
4895
4896 # Check to see if options -o and -c are simultaneously supported by compiler
4897 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
4898 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
4899 if test "${lt_cv_compiler_c_o+set}" = set; then
4900 echo $ECHO_N "(cached) $ECHO_C" >&6
4901 else
4902
4903 $rm -r conftest 2>/dev/null
4904 mkdir conftest
4905 cd conftest
4906 echo "int some_variable = 0;" > conftest.$ac_ext
4907 mkdir out
4908 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
4909 # that will create temporary files in the current directory regardless of
4910 # the output directory. Thus, making CWD read-only will cause this test
4911 # to fail, enabling locking or at least warning the user not to do parallel
4912 # builds.
4913 chmod -w .
4914 save_CFLAGS="$CFLAGS"
4915 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
4916 compiler_c_o=no
4917 if { (eval echo configure:4917: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
4918 # The compiler can only warn and ignore the option if not recognized
4919 # So say no if there are warnings
4920 if test -s out/conftest.err; then
4921 lt_cv_compiler_c_o=no
4922 else
4923 lt_cv_compiler_c_o=yes
4924 fi
4925 else
4926 # Append any errors to the config.log.
4927 cat out/conftest.err 1>&5
4928 lt_cv_compiler_c_o=no
4929 fi
4930 CFLAGS="$save_CFLAGS"
4931 chmod u+w .
4932 $rm conftest* out/*
4933 rmdir out
4934 cd ..
4935 rmdir conftest
4936 $rm -r conftest 2>/dev/null
4937
4938 fi
4939
4940 compiler_c_o=$lt_cv_compiler_c_o
4941 echo "$as_me:$LINENO: result: $compiler_c_o" >&5
4942 echo "${ECHO_T}$compiler_c_o" >&6
4943
4944 if test x"$compiler_c_o" = x"yes"; then
4945 # Check to see if we can write to a .lo
4946 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
4947 echo $ECHO_N "checking if $compiler supports -c -o file.lo... $ECHO_C" >&6
4948 if test "${lt_cv_compiler_o_lo+set}" = set; then
4949 echo $ECHO_N "(cached) $ECHO_C" >&6
4950 else
4951
4952 lt_cv_compiler_o_lo=no
4953 save_CFLAGS="$CFLAGS"
4954 CFLAGS="$CFLAGS -c -o conftest.lo"
4955 save_objext="$ac_objext"
4956 ac_objext=lo
4957 cat >conftest.$ac_ext <<_ACEOF
4958 #line $LINENO "configure"
4959 #include "confdefs.h"
4960
4961 #ifdef F77_DUMMY_MAIN
4962 # ifdef __cplusplus
4963 extern "C"
4964 # endif
4965 int F77_DUMMY_MAIN() { return 1; }
4966 #endif
4967 int
4968 main ()
4969 {
4970 int some_variable = 0;
4971 ;
4972 return 0;
4973 }
4974 _ACEOF
4975 rm -f conftest.$ac_objext
4976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4977 (eval $ac_compile) 2>&5
4978 ac_status=$?
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); } &&
4981 { ac_try='test -s conftest.$ac_objext'
4982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4983 (eval $ac_try) 2>&5
4984 ac_status=$?
4985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4986 (exit $ac_status); }; }; then
4987 # The compiler can only warn and ignore the option if not recognized
4988 # So say no if there are warnings
4989 if test -s conftest.err; then
4990 lt_cv_compiler_o_lo=no
4991 else
4992 lt_cv_compiler_o_lo=yes
4993 fi
4994
4995 else
4996 echo "$as_me: failed program was:" >&5
4997 cat conftest.$ac_ext >&5
4998 fi
4999 rm -f conftest.$ac_objext conftest.$ac_ext
5000 ac_objext="$save_objext"
5001 CFLAGS="$save_CFLAGS"
5002
5003 fi
5004
5005 compiler_o_lo=$lt_cv_compiler_o_lo
5006 echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5007 echo "${ECHO_T}$compiler_o_lo" >&6
5008 else
5009 compiler_o_lo=no
5010 fi
5011
5012 # Check to see if we can do hard links to lock some files if needed
5013 hard_links="nottested"
5014 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5015 # do not overwrite the value of need_locks provided by the user
5016 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5017 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
5018 hard_links=yes
5019 $rm conftest*
5020 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5021 touch conftest.a
5022 ln conftest.a conftest.b 2>&5 || hard_links=no
5023 ln conftest.a conftest.b 2>/dev/null && hard_links=no
5024 echo "$as_me:$LINENO: result: $hard_links" >&5
5025 echo "${ECHO_T}$hard_links" >&6
5026 if test "$hard_links" = no; then
5027 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5028 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5029 need_locks=warn
5030 fi
5031 else
5032 need_locks=no
5033 fi
5034
5035 if test "$GCC" = yes; then
5036 # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5037 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5038 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5039 echo "int some_variable = 0;" > conftest.$ac_ext
5040 save_CFLAGS="$CFLAGS"
5041 CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5042 compiler_rtti_exceptions=no
5043 cat >conftest.$ac_ext <<_ACEOF
5044 #line $LINENO "configure"
5045 #include "confdefs.h"
5046
5047 #ifdef F77_DUMMY_MAIN
5048 # ifdef __cplusplus
5049 extern "C"
5050 # endif
5051 int F77_DUMMY_MAIN() { return 1; }
5052 #endif
5053 int
5054 main ()
5055 {
5056 int some_variable = 0;
5057 ;
5058 return 0;
5059 }
5060 _ACEOF
5061 rm -f conftest.$ac_objext
5062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5063 (eval $ac_compile) 2>&5
5064 ac_status=$?
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); } &&
5067 { ac_try='test -s conftest.$ac_objext'
5068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5069 (eval $ac_try) 2>&5
5070 ac_status=$?
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; }; then
5073 # The compiler can only warn and ignore the option if not recognized
5074 # So say no if there are warnings
5075 if test -s conftest.err; then
5076 compiler_rtti_exceptions=no
5077 else
5078 compiler_rtti_exceptions=yes
5079 fi
5080
5081 else
5082 echo "$as_me: failed program was:" >&5
5083 cat conftest.$ac_ext >&5
5084 fi
5085 rm -f conftest.$ac_objext conftest.$ac_ext
5086 CFLAGS="$save_CFLAGS"
5087 echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5088 echo "${ECHO_T}$compiler_rtti_exceptions" >&6
5089
5090 if test "$compiler_rtti_exceptions" = "yes"; then
5091 no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5092 else
5093 no_builtin_flag=' -fno-builtin'
5094 fi
5095 fi
5096
5097 # See if the linker supports building shared libraries.
5098 echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5099 echo $ECHO_N "checking whether the linker ($LD) supports shared libraries... $ECHO_C" >&6
5100
5101 allow_undefined_flag=
5102 no_undefined_flag=
5103 need_lib_prefix=unknown
5104 need_version=unknown
5105 # when you set need_version to no, make sure it does not cause -set_version
5106 # flags to be left without arguments
5107 archive_cmds=
5108 archive_expsym_cmds=
5109 old_archive_from_new_cmds=
5110 old_archive_from_expsyms_cmds=
5111 export_dynamic_flag_spec=
5112 whole_archive_flag_spec=
5113 thread_safe_flag_spec=
5114 hardcode_into_libs=no
5115 hardcode_libdir_flag_spec=
5116 hardcode_libdir_separator=
5117 hardcode_direct=no
5118 hardcode_minus_L=no
5119 hardcode_shlibpath_var=unsupported
5120 runpath_var=
5121 link_all_deplibs=unknown
5122 always_export_symbols=no
5123 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
5124 # include_expsyms should be a list of space-separated symbols to be *always*
5125 # included in the symbol list
5126 include_expsyms=
5127 # exclude_expsyms can be an egrep regular expression of symbols to exclude
5128 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5129 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5130 # as well as any symbol that contains `d'.
5131 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
5132 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5133 # platforms (ab)use it in PIC code, but their linkers get confused if
5134 # the symbol is explicitly referenced. Since portable code cannot
5135 # rely on this symbol name, it's probably fine to never include it in
5136 # preloaded symbol tables.
5137 extract_expsyms_cmds=
5138
5139 case $host_os in
5140 cygwin* | mingw* | pw32*)
5141 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5142 # When not using gcc, we currently assume that we are using
5143 # Microsoft Visual C++.
5144 if test "$GCC" != yes; then
5145 with_gnu_ld=no
5146 fi
5147 ;;
5148 openbsd*)
5149 with_gnu_ld=no
5150 ;;
5151 esac
5152
5153 ld_shlibs=yes
5154 if test "$with_gnu_ld" = yes; then
5155 # If archive_cmds runs LD, not CC, wlarc should be empty
5156 wlarc='${wl}'
5157
5158 # See if GNU ld supports shared libraries.
5159 case $host_os in
5160 aix3* | aix4* | aix5*)
5161 # On AIX, the GNU linker is very broken
5162 # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
5163 ld_shlibs=no
5164 cat <<EOF 1>&2
5165
5166 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5167 *** to be unable to reliably create shared libraries on AIX.
5168 *** Therefore, libtool is disabling shared libraries support. If you
5169 *** really care for shared libraries, you may want to modify your PATH
5170 *** so that a non-GNU linker is found, and then restart.
5171
5172 EOF
5173 ;;
5174
5175 amigaos*)
5176 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)'
5177 hardcode_libdir_flag_spec='-L$libdir'
5178 hardcode_minus_L=yes
5179
5180 # Samuel A. Falvo II <[email protected]> reports
5181 # that the semantics of dynamic libraries on AmigaOS, at least up
5182 # to version 4, is to share data among multiple programs linked
5183 # with the same dynamic library. Since this doesn't match the
5184 # behavior of shared libraries on other platforms, we can use
5185 # them.
5186 ld_shlibs=no
5187 ;;
5188
5189 beos*)
5190 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5191 allow_undefined_flag=unsupported
5192 # Joseph Beckenbach <[email protected]> says some releases of gcc
5193 # support --undefined. This deserves some investigation. FIXME
5194 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5195 else
5196 ld_shlibs=no
5197 fi
5198 ;;
5199
5200 cygwin* | mingw* | pw32*)
5201 # hardcode_libdir_flag_spec is actually meaningless, as there is
5202 # no search path for DLLs.
5203 hardcode_libdir_flag_spec='-L$libdir'
5204 allow_undefined_flag=unsupported
5205 always_export_symbols=yes
5206
5207 extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
5208 sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
5209 test -f $output_objdir/impgen.exe || (cd $output_objdir && \
5210 if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
5211 else $CC -o impgen impgen.c ; fi)~
5212 $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
5213
5214 old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
5215
5216 # cygwin and mingw dlls have different entry points and sets of symbols
5217 # to exclude.
5218 # FIXME: what about values for MSVC?
5219 dll_entry=__cygwin_dll_entry@12
5220 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
5221 case $host_os in
5222 mingw*)
5223 # mingw values
5224 dll_entry=_DllMainCRTStartup@12
5225 dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
5226 ;;
5227 esac
5228
5229 # mingw and cygwin differ, and it's simplest to just exclude the union
5230 # of the two symbol sets.
5231 dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
5232
5233 # recent cygwin and mingw systems supply a stub DllMain which the user
5234 # can override, but on older systems we have to supply one (in ltdll.c)
5235 if test "x$lt_cv_need_dllmain" = "xyes"; then
5236 ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
5237 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~
5238 test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
5239 else
5240 ltdll_obj=
5241 ltdll_cmds=
5242 fi
5243
5244 # Extract the symbol export list from an `--export-all' def file,
5245 # then regenerate the def file from the symbol export list, so that
5246 # the compiled dll only exports the symbol export list.
5247 # Be careful not to strip the DATA tag left be newer dlltools.
5248 export_symbols_cmds="$ltdll_cmds"'
5249 $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
5250 sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
5251
5252 # If the export-symbols file already is a .def file (1st line
5253 # is EXPORTS), use it as is.
5254 # If DATA tags from a recent dlltool are present, honour them!
5255 archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then
5256 cp $export_symbols $output_objdir/$soname-def;
5257 else
5258 echo EXPORTS > $output_objdir/$soname-def;
5259 _lt_hint=1;
5260 cat $export_symbols | while read symbol; do
5261 set dummy \$symbol;
5262 case \$# in
5263 2) echo " \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
5264 *) echo " \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
5265 esac;
5266 _lt_hint=`expr 1 + \$_lt_hint`;
5267 done;
5268 fi~
5269 '"$ltdll_cmds"'
5270 $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~
5271 $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~
5272 $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~
5273 $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~
5274 $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
5275 ;;
5276
5277 netbsd*)
5278 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5279 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5280 wlarc=
5281 else
5282 archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5283 archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5284 fi
5285 ;;
5286
5287 solaris* | sysv5*)
5288 if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
5289 ld_shlibs=no
5290 cat <<EOF 1>&2
5291
5292 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5293 *** create shared libraries on Solaris systems. Therefore, libtool
5294 *** is disabling shared libraries support. We urge you to upgrade GNU
5295 *** binutils to release 2.9.1 or newer. Another option is to modify
5296 *** your PATH or compiler configuration so that the native linker is
5297 *** used, and then restart.
5298
5299 EOF
5300 elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5301 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5302 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5303 else
5304 ld_shlibs=no
5305 fi
5306 ;;
5307
5308 sunos4*)
5309 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5310 wlarc=
5311 hardcode_direct=yes
5312 hardcode_shlibpath_var=no
5313 ;;
5314
5315 *)
5316 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
5317 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5318 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5319 else
5320 ld_shlibs=no
5321 fi
5322 ;;
5323 esac
5324
5325 if test "$ld_shlibs" = yes; then
5326 runpath_var=LD_RUN_PATH
5327 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
5328 export_dynamic_flag_spec='${wl}--export-dynamic'
5329 case $host_os in
5330 cygwin* | mingw* | pw32*)
5331 # dlltool doesn't understand --whole-archive et. al.
5332 whole_archive_flag_spec=
5333 ;;
5334 *)
5335 # ancient GNU ld didn't support --whole-archive et. al.
5336 if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
5337 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5338 else
5339 whole_archive_flag_spec=
5340 fi
5341 ;;
5342 esac
5343 fi
5344 else
5345 # PORTME fill in a description of your system's linker (not GNU ld)
5346 case $host_os in
5347 aix3*)
5348 allow_undefined_flag=unsupported
5349 always_export_symbols=yes
5350 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'
5351 # Note: this linker hardcodes the directories in LIBPATH if there
5352 # are no directories specified by -L.
5353 hardcode_minus_L=yes
5354 if test "$GCC" = yes && test -z "$link_static_flag"; then
5355 # Neither direct hardcoding nor static linking is supported with a
5356 # broken collect2.
5357 hardcode_direct=unsupported
5358 fi
5359 ;;
5360
5361 aix4* | aix5*)
5362 if test "$host_cpu" = ia64; then
5363 # On IA64, the linker does run time linking by default, so we don't
5364 # have to do anything special.
5365 aix_use_runtimelinking=no
5366 exp_sym_flag='-Bexport'
5367 no_entry_flag=""
5368 else
5369 aix_use_runtimelinking=no
5370
5371 # Test if we are trying to use run time linking or normal
5372 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5373 # need to do runtime linking.
5374 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
5375 for ld_flag in $LDFLAGS; do
5376 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5377 aix_use_runtimelinking=yes
5378 break
5379 fi
5380 done
5381 esac
5382
5383 exp_sym_flag='-bexport'
5384 no_entry_flag='-bnoentry'
5385 fi
5386
5387 # When large executables or shared objects are built, AIX ld can
5388 # have problems creating the table of contents. If linking a library
5389 # or program results in "error TOC overflow" add -mminimal-toc to
5390 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5391 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5392
5393 hardcode_direct=yes
5394 archive_cmds=''
5395 hardcode_libdir_separator=':'
5396 if test "$GCC" = yes; then
5397 case $host_os in aix4.[012]|aix4.[012].*)
5398 collect2name=`${CC} -print-prog-name=collect2`
5399 if test -f "$collect2name" && \
5400 strings "$collect2name" | grep resolve_lib_name >/dev/null
5401 then
5402 # We have reworked collect2
5403 hardcode_direct=yes
5404 else
5405 # We have old collect2
5406 hardcode_direct=unsupported
5407 # It fails to find uninstalled libraries when the uninstalled
5408 # path is not listed in the libpath. Setting hardcode_minus_L
5409 # to unsupported forces relinking
5410 hardcode_minus_L=yes
5411 hardcode_libdir_flag_spec='-L$libdir'
5412 hardcode_libdir_separator=
5413 fi
5414 esac
5415
5416 shared_flag='-shared'
5417 else
5418 # not using gcc
5419 if test "$host_cpu" = ia64; then
5420 shared_flag='${wl}-G'
5421 else
5422 if test "$aix_use_runtimelinking" = yes; then
5423 shared_flag='${wl}-G'
5424 else
5425 shared_flag='${wl}-bM:SRE'
5426 fi
5427 fi
5428 fi
5429
5430 # It seems that -bexpall can do strange things, so it is better to
5431 # generate a list of symbols to export.
5432 always_export_symbols=yes
5433 if test "$aix_use_runtimelinking" = yes; then
5434 # Warning - without using the other runtime loading flags (-brtl),
5435 # -berok will link without error, but may produce a broken library.
5436 allow_undefined_flag='-berok'
5437 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
5438 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"
5439 else
5440 if test "$host_cpu" = ia64; then
5441 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
5442 allow_undefined_flag="-z nodefs"
5443 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"
5444 else
5445 hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
5446 # Warning - without using the other run time loading flags,
5447 # -berok will link without error, but may produce a broken library.
5448 allow_undefined_flag='${wl}-berok'
5449 # This is a bit strange, but is similar to how AIX traditionally builds
5450 # it's shared libraries.
5451 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'
5452 fi
5453 fi
5454 ;;
5455
5456 amigaos*)
5457 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)'
5458 hardcode_libdir_flag_spec='-L$libdir'
5459 hardcode_minus_L=yes
5460 # see comment about different semantics on the GNU ld section
5461 ld_shlibs=no
5462 ;;
5463
5464 cygwin* | mingw* | pw32*)
5465 # When not using gcc, we currently assume that we are using
5466 # Microsoft Visual C++.
5467 # hardcode_libdir_flag_spec is actually meaningless, as there is
5468 # no search path for DLLs.
5469 hardcode_libdir_flag_spec=' '
5470 allow_undefined_flag=unsupported
5471 # Tell ltmain to make .lib files, not .a files.
5472 libext=lib
5473 # FIXME: Setting linknames here is a bad hack.
5474 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
5475 # The linker will automatically build a .lib file if we build a DLL.
5476 old_archive_from_new_cmds='true'
5477 # FIXME: Should let the user specify the lib program.
5478 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
5479 fix_srcfile_path='`cygpath -w "$srcfile"`'
5480 ;;
5481
5482 darwin* | rhapsody*)
5483 case "$host_os" in
5484 rhapsody* | darwin1.[012])
5485 allow_undefined_flag='-undefined suppress'
5486 ;;
5487 *) # Darwin 1.3 on
5488 allow_undefined_flag='-flat_namespace -undefined suppress'
5489 ;;
5490 esac
5491 # FIXME: Relying on posixy $() will cause problems for
5492 # cross-compilation, but unfortunately the echo tests do not
5493 # yet detect zsh echo's removal of \ escapes. Also zsh mangles
5494 # `"' quotes if we put them in here... so don't!
5495 archive_cmds='$nonopt $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring'
5496 # We need to add '_' to the symbols in $export_symbols first
5497 #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
5498 hardcode_direct=yes
5499 hardcode_shlibpath_var=no
5500 whole_archive_flag_spec='-all_load $convenience'
5501 ;;
5502
5503 freebsd1*)
5504 ld_shlibs=no
5505 ;;
5506
5507 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5508 # support. Future versions do this automatically, but an explicit c++rt0.o
5509 # does not break anything, and helps significantly (at the cost of a little
5510 # extra space).
5511 freebsd2.2*)
5512 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5513 hardcode_libdir_flag_spec='-R$libdir'
5514 hardcode_direct=yes
5515 hardcode_shlibpath_var=no
5516 ;;
5517
5518 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5519 freebsd2*)
5520 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5521 hardcode_direct=yes
5522 hardcode_minus_L=yes
5523 hardcode_shlibpath_var=no
5524 ;;
5525
5526 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5527 freebsd*)
5528 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5529 hardcode_libdir_flag_spec='-R$libdir'
5530 hardcode_direct=yes
5531 hardcode_shlibpath_var=no
5532 ;;
5533
5534 hpux9* | hpux10* | hpux11*)
5535 case $host_os in
5536 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' ;;
5537 *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
5538 esac
5539 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
5540 hardcode_libdir_separator=:
5541 hardcode_direct=yes
5542 hardcode_minus_L=yes # Not in the search PATH, but as the default
5543 # location of the library.
5544 export_dynamic_flag_spec='${wl}-E'
5545 ;;
5546
5547 irix5* | irix6* | nonstopux*)
5548 if test "$GCC" = yes; then
5549 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'
5550 else
5551 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'
5552 fi
5553 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5554 hardcode_libdir_separator=:
5555 link_all_deplibs=yes
5556 ;;
5557
5558 netbsd*)
5559 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5560 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5561 else
5562 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5563 fi
5564 hardcode_libdir_flag_spec='-R$libdir'
5565 hardcode_direct=yes
5566 hardcode_shlibpath_var=no
5567 ;;
5568
5569 newsos6)
5570 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5571 hardcode_direct=yes
5572 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5573 hardcode_libdir_separator=:
5574 hardcode_shlibpath_var=no
5575 ;;
5576
5577 openbsd*)
5578 hardcode_direct=yes
5579 hardcode_shlibpath_var=no
5580 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5581 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5582 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5583 export_dynamic_flag_spec='${wl}-E'
5584 else
5585 case "$host_os" in
5586 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
5587 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5588 hardcode_libdir_flag_spec='-R$libdir'
5589 ;;
5590 *)
5591 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags'
5592 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
5593 ;;
5594 esac
5595 fi
5596 ;;
5597
5598 os2*)
5599 hardcode_libdir_flag_spec='-L$libdir'
5600 hardcode_minus_L=yes
5601 allow_undefined_flag=unsupported
5602 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'
5603 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
5604 ;;
5605
5606 osf3*)
5607 if test "$GCC" = yes; then
5608 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5609 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'
5610 else
5611 allow_undefined_flag=' -expect_unresolved \*'
5612 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'
5613 fi
5614 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5615 hardcode_libdir_separator=:
5616 ;;
5617
5618 osf4* | osf5*) # as osf3* with the addition of -msym flag
5619 if test "$GCC" = yes; then
5620 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
5621 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'
5622 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
5623 else
5624 allow_undefined_flag=' -expect_unresolved \*'
5625 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'
5626 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
5627 $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'
5628
5629 #Both c and cxx compiler support -rpath directly
5630 hardcode_libdir_flag_spec='-rpath $libdir'
5631 fi
5632 hardcode_libdir_separator=:
5633 ;;
5634
5635 sco3.2v5*)
5636 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5637 hardcode_shlibpath_var=no
5638 runpath_var=LD_RUN_PATH
5639 hardcode_runpath_var=yes
5640 export_dynamic_flag_spec='${wl}-Bexport'
5641 ;;
5642
5643 solaris*)
5644 # gcc --version < 3.0 without binutils cannot create self contained
5645 # shared libraries reliably, requiring libgcc.a to resolve some of
5646 # the object symbols generated in some cases. Libraries that use
5647 # assert need libgcc.a to resolve __eprintf, for example. Linking
5648 # a copy of libgcc.a into every shared library to guarantee resolving
5649 # such symbols causes other problems: According to Tim Van Holder
5650 # <[email protected]>, C++ libraries end up with a separate
5651 # (to the application) exception stack for one thing.
5652 no_undefined_flag=' -z defs'
5653 if test "$GCC" = yes; then
5654 case `$CC --version 2>/dev/null` in
5655 [12].*)
5656 cat <<EOF 1>&2
5657
5658 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
5659 *** create self contained shared libraries on Solaris systems, without
5660 *** introducing a dependency on libgcc.a. Therefore, libtool is disabling
5661 *** -no-undefined support, which will at least allow you to build shared
5662 *** libraries. However, you may find that when you link such libraries
5663 *** into an application without using GCC, you have to manually add
5664 *** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
5665 *** upgrade to a newer version of GCC. Another option is to rebuild your
5666 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
5667
5668 EOF
5669 no_undefined_flag=
5670 ;;
5671 esac
5672 fi
5673 # $CC -shared without GNU ld will not create a library from C++
5674 # object files and a static libstdc++, better avoid it by now
5675 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5676 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5677 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5678 hardcode_libdir_flag_spec='-R$libdir'
5679 hardcode_shlibpath_var=no
5680 case $host_os in
5681 solaris2.[0-5] | solaris2.[0-5].*) ;;
5682 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
5683 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
5684 esac
5685 link_all_deplibs=yes
5686 ;;
5687
5688 sunos4*)
5689 if test "x$host_vendor" = xsequent; then
5690 # Use $CC to link under sequent, because it throws in some extra .o
5691 # files that make .init and .fini sections work.
5692 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5693 else
5694 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5695 fi
5696 hardcode_libdir_flag_spec='-L$libdir'
5697 hardcode_direct=yes
5698 hardcode_minus_L=yes
5699 hardcode_shlibpath_var=no
5700 ;;
5701
5702 sysv4)
5703 if test "x$host_vendor" = xsno; then
5704 archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags'
5705 hardcode_direct=yes # is this really true???
5706 else
5707 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5708 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
5709 fi
5710 runpath_var='LD_RUN_PATH'
5711 hardcode_shlibpath_var=no
5712 ;;
5713
5714 sysv4.3*)
5715 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5716 hardcode_shlibpath_var=no
5717 export_dynamic_flag_spec='-Bexport'
5718 ;;
5719
5720 sysv5*)
5721 no_undefined_flag=' -z text'
5722 # $CC -shared without GNU ld will not create a library from C++
5723 # object files and a static libstdc++, better avoid it by now
5724 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
5725 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
5726 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
5727 hardcode_libdir_flag_spec=
5728 hardcode_shlibpath_var=no
5729 runpath_var='LD_RUN_PATH'
5730 ;;
5731
5732 uts4*)
5733 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5734 hardcode_libdir_flag_spec='-L$libdir'
5735 hardcode_shlibpath_var=no
5736 ;;
5737
5738 dgux*)
5739 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5740 hardcode_libdir_flag_spec='-L$libdir'
5741 hardcode_shlibpath_var=no
5742 ;;
5743
5744 sysv4*MP*)
5745 if test -d /usr/nec; then
5746 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5747 hardcode_shlibpath_var=no
5748 runpath_var=LD_RUN_PATH
5749 hardcode_runpath_var=yes
5750 ld_shlibs=yes
5751 fi
5752 ;;
5753
5754 sysv4.2uw2*)
5755 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5756 hardcode_direct=yes
5757 hardcode_minus_L=no
5758 hardcode_shlibpath_var=no
5759 hardcode_runpath_var=yes
5760 runpath_var=LD_RUN_PATH
5761 ;;
5762
5763 sysv5uw7* | unixware7*)
5764 no_undefined_flag='${wl}-z ${wl}text'
5765 if test "$GCC" = yes; then
5766 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5767 else
5768 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5769 fi
5770 runpath_var='LD_RUN_PATH'
5771 hardcode_shlibpath_var=no
5772 ;;
5773
5774 *)
5775 ld_shlibs=no
5776 ;;
5777 esac
5778 fi
5779 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
5780 echo "${ECHO_T}$ld_shlibs" >&6
5781 test "$ld_shlibs" = no && can_build_shared=no
5782
5783 # Check hardcoding attributes.
5784 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
5785 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
5786 hardcode_action=
5787 if test -n "$hardcode_libdir_flag_spec" || \
5788 test -n "$runpath_var"; then
5789
5790 # We can hardcode non-existant directories.
5791 if test "$hardcode_direct" != no &&
5792 # If the only mechanism to avoid hardcoding is shlibpath_var, we
5793 # have to relink, otherwise we might link with an installed library
5794 # when we should be linking with a yet-to-be-installed one
5795 ## test "$hardcode_shlibpath_var" != no &&
5796 test "$hardcode_minus_L" != no; then
5797 # Linking always hardcodes the temporary library directory.
5798 hardcode_action=relink
5799 else
5800 # We can link without hardcoding, and we can hardcode nonexisting dirs.
5801 hardcode_action=immediate
5802 fi
5803 else
5804 # We cannot hardcode anything, or else we can only hardcode existing
5805 # directories.
5806 hardcode_action=unsupported
5807 fi
5808 echo "$as_me:$LINENO: result: $hardcode_action" >&5
5809 echo "${ECHO_T}$hardcode_action" >&6
5810
5811 striplib=
5812 old_striplib=
5813 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
5814 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
5815 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
5816 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
5817 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
5818 echo "$as_me:$LINENO: result: yes" >&5
5819 echo "${ECHO_T}yes" >&6
5820 else
5821 echo "$as_me:$LINENO: result: no" >&5
5822 echo "${ECHO_T}no" >&6
5823 fi
5824
5825 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5826 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5827
5828 # PORTME Fill in your ld.so characteristics
5829 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
5830 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
5831 library_names_spec=
5832 libname_spec='lib$name'
5833 soname_spec=
5834 postinstall_cmds=
5835 postuninstall_cmds=
5836 finish_cmds=
5837 finish_eval=
5838 shlibpath_var=
5839 shlibpath_overrides_runpath=unknown
5840 version_type=none
5841 dynamic_linker="$host_os ld.so"
5842 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5843 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5844
5845 case $host_os in
5846 aix3*)
5847 version_type=linux
5848 library_names_spec='${libname}${release}.so$versuffix $libname.a'
5849 shlibpath_var=LIBPATH
5850
5851 # AIX has no versioning support, so we append a major version to the name.
5852 soname_spec='${libname}${release}.so$major'
5853 ;;
5854
5855 aix4* | aix5*)
5856 version_type=linux
5857 if test "$host_cpu" = ia64; then
5858 # AIX 5 supports IA64
5859 library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
5860 shlibpath_var=LD_LIBRARY_PATH
5861 else
5862 # With GCC up to 2.95.x, collect2 would create an import file
5863 # for dependence libraries. The import file would start with
5864 # the line `#! .'. This would cause the generated library to
5865 # depend on `.', always an invalid library. This was fixed in
5866 # development snapshots of GCC prior to 3.0.
5867 case $host_os in
5868 aix4 | aix4.[01] | aix4.[01].*)
5869 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
5870 echo ' yes '
5871 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
5872 :
5873 else
5874 can_build_shared=no
5875 fi
5876 ;;
5877 esac
5878 # AIX (on Power*) has no versioning support, so currently we can
5879 # not hardcode correct soname into executable. Probably we can
5880 # add versioning support to collect2, so additional links can
5881 # be useful in future.
5882 if test "$aix_use_runtimelinking" = yes; then
5883 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
5884 # instead of lib<name>.a to let people know that these are not
5885 # typical AIX shared libraries.
5886 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5887 else
5888 # We preserve .a as extension for shared libraries through AIX4.2
5889 # and later when we are not doing run time linking.
5890 library_names_spec='${libname}${release}.a $libname.a'
5891 soname_spec='${libname}${release}.so$major'
5892 fi
5893 shlibpath_var=LIBPATH
5894 fi
5895 ;;
5896
5897 amigaos*)
5898 library_names_spec='$libname.ixlibrary $libname.a'
5899 # Create ${libname}_ixlibrary.a entries in /sys/libs.
5900 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'
5901 ;;
5902
5903 beos*)
5904 library_names_spec='${libname}.so'
5905 dynamic_linker="$host_os ld.so"
5906 shlibpath_var=LIBRARY_PATH
5907 ;;
5908
5909 bsdi4*)
5910 version_type=linux
5911 need_version=no
5912 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
5913 soname_spec='${libname}${release}.so$major'
5914 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
5915 shlibpath_var=LD_LIBRARY_PATH
5916 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
5917 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
5918 export_dynamic_flag_spec=-rdynamic
5919 # the default ld.so.conf also contains /usr/contrib/lib and
5920 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
5921 # libtool to hard-code these into programs
5922 ;;
5923
5924 cygwin* | mingw* | pw32*)
5925 version_type=windows
5926 need_version=no
5927 need_lib_prefix=no
5928 case $GCC,$host_os in
5929 yes,cygwin*)
5930 library_names_spec='$libname.dll.a'
5931 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5932 postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
5933 dldir=$destdir/`dirname \$dlpath`~
5934 test -d \$dldir || mkdir -p \$dldir~
5935 $install_prog .libs/$dlname \$dldir/$dlname'
5936 postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
5937 dlpath=$dir/\$dldll~
5938 $rm \$dlpath'
5939 ;;
5940 yes,mingw*)
5941 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
5942 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"`
5943 ;;
5944 yes,pw32*)
5945 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
5946 ;;
5947 *)
5948 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
5949 ;;
5950 esac
5951 dynamic_linker='Win32 ld.exe'
5952 # FIXME: first we should search . and the directory the executable is in
5953 shlibpath_var=PATH
5954 ;;
5955
5956 darwin* | rhapsody*)
5957 dynamic_linker="$host_os dyld"
5958 version_type=darwin
5959 need_lib_prefix=no
5960 need_version=no
5961 # FIXME: Relying on posixy $() will cause problems for
5962 # cross-compilation, but unfortunately the echo tests do not
5963 # yet detect zsh echo's removal of \ escapes.
5964 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)'
5965 soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
5966 shlibpath_overrides_runpath=yes
5967 shlibpath_var=DYLD_LIBRARY_PATH
5968 ;;
5969
5970 freebsd1*)
5971 dynamic_linker=no
5972 ;;
5973
5974 freebsd*)
5975 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
5976 version_type=freebsd-$objformat
5977 case $version_type in
5978 freebsd-elf*)
5979 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
5980 need_version=no
5981 need_lib_prefix=no
5982 ;;
5983 freebsd-*)
5984 library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
5985 need_version=yes
5986 ;;
5987 esac
5988 shlibpath_var=LD_LIBRARY_PATH
5989 case $host_os in
5990 freebsd2*)
5991 shlibpath_overrides_runpath=yes
5992 ;;
5993 *)
5994 shlibpath_overrides_runpath=no
5995 hardcode_into_libs=yes
5996 ;;
5997 esac
5998 ;;
5999
6000 gnu*)
6001 version_type=linux
6002 need_lib_prefix=no
6003 need_version=no
6004 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6005 soname_spec='${libname}${release}.so$major'
6006 shlibpath_var=LD_LIBRARY_PATH
6007 hardcode_into_libs=yes
6008 ;;
6009
6010 hpux9* | hpux10* | hpux11*)
6011 # Give a soname corresponding to the major version so that dld.sl refuses to
6012 # link against other versions.
6013 dynamic_linker="$host_os dld.sl"
6014 version_type=sunos
6015 need_lib_prefix=no
6016 need_version=no
6017 shlibpath_var=SHLIB_PATH
6018 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6019 library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6020 soname_spec='${libname}${release}.sl$major'
6021 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6022 postinstall_cmds='chmod 555 $lib'
6023 ;;
6024
6025 irix5* | irix6* | nonstopux*)
6026 case $host_os in
6027 nonstopux*) version_type=nonstopux ;;
6028 *) version_type=irix ;;
6029 esac
6030 need_lib_prefix=no
6031 need_version=no
6032 soname_spec='${libname}${release}.so$major'
6033 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6034 case $host_os in
6035 irix5* | nonstopux*)
6036 libsuff= shlibsuff=
6037 ;;
6038 *)
6039 case $LD in # libtool.m4 will add one of these switches to LD
6040 *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6041 *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6042 *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6043 *) libsuff= shlibsuff= libmagic=never-match;;
6044 esac
6045 ;;
6046 esac
6047 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6048 shlibpath_overrides_runpath=no
6049 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6050 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6051 ;;
6052
6053 # No shared lib support for Linux oldld, aout, or coff.
6054 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6055 dynamic_linker=no
6056 ;;
6057
6058 # This must be Linux ELF.
6059 linux-gnu*)
6060 version_type=linux
6061 need_lib_prefix=no
6062 need_version=no
6063 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6064 soname_spec='${libname}${release}.so$major'
6065 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6066 shlibpath_var=LD_LIBRARY_PATH
6067 shlibpath_overrides_runpath=no
6068 # This implies no fast_install, which is unacceptable.
6069 # Some rework will be needed to allow for fast_install
6070 # before this can be enabled.
6071 hardcode_into_libs=yes
6072
6073 # We used to test for /lib/ld.so.1 and disable shared libraries on
6074 # powerpc, because MkLinux only supported shared libraries with the
6075 # GNU dynamic linker. Since this was broken with cross compilers,
6076 # most powerpc-linux boxes support dynamic linking these days and
6077 # people can always --disable-shared, the test was removed, and we
6078 # assume the GNU/Linux dynamic linker is in use.
6079 dynamic_linker='GNU/Linux ld.so'
6080 ;;
6081
6082 netbsd*)
6083 version_type=sunos
6084 need_lib_prefix=no
6085 need_version=no
6086 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6087 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6088 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6089 dynamic_linker='NetBSD (a.out) ld.so'
6090 else
6091 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
6092 soname_spec='${libname}${release}.so$major'
6093 dynamic_linker='NetBSD ld.elf_so'
6094 fi
6095 shlibpath_var=LD_LIBRARY_PATH
6096 shlibpath_overrides_runpath=yes
6097 hardcode_into_libs=yes
6098 ;;
6099
6100 newsos6)
6101 version_type=linux
6102 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6103 shlibpath_var=LD_LIBRARY_PATH
6104 shlibpath_overrides_runpath=yes
6105 ;;
6106
6107 openbsd*)
6108 version_type=sunos
6109 need_lib_prefix=no
6110 need_version=no
6111 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6112 case "$host_os" in
6113 openbsd2.[89] | openbsd2.[89].*)
6114 shlibpath_overrides_runpath=no
6115 ;;
6116 *)
6117 shlibpath_overrides_runpath=yes
6118 ;;
6119 esac
6120 else
6121 shlibpath_overrides_runpath=yes
6122 fi
6123 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6124 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6125 shlibpath_var=LD_LIBRARY_PATH
6126 ;;
6127
6128 os2*)
6129 libname_spec='$name'
6130 need_lib_prefix=no
6131 library_names_spec='$libname.dll $libname.a'
6132 dynamic_linker='OS/2 ld.exe'
6133 shlibpath_var=LIBPATH
6134 ;;
6135
6136 osf3* | osf4* | osf5*)
6137 version_type=osf
6138 need_version=no
6139 need_lib_prefix=no
6140 soname_spec='${libname}${release}.so'
6141 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6142 shlibpath_var=LD_LIBRARY_PATH
6143 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6144 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6145 ;;
6146
6147 sco3.2v5*)
6148 version_type=osf
6149 soname_spec='${libname}${release}.so$major'
6150 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6151 shlibpath_var=LD_LIBRARY_PATH
6152 ;;
6153
6154 solaris*)
6155 version_type=linux
6156 need_lib_prefix=no
6157 need_version=no
6158 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6159 soname_spec='${libname}${release}.so$major'
6160 shlibpath_var=LD_LIBRARY_PATH
6161 shlibpath_overrides_runpath=yes
6162 hardcode_into_libs=yes
6163 # ldd complains unless libraries are executable
6164 postinstall_cmds='chmod +x $lib'
6165 ;;
6166
6167 sunos4*)
6168 version_type=sunos
6169 library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
6170 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6171 shlibpath_var=LD_LIBRARY_PATH
6172 shlibpath_overrides_runpath=yes
6173 if test "$with_gnu_ld" = yes; then
6174 need_lib_prefix=no
6175 fi
6176 need_version=yes
6177 ;;
6178
6179 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6180 version_type=linux
6181 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6182 soname_spec='${libname}${release}.so$major'
6183 shlibpath_var=LD_LIBRARY_PATH
6184 case $host_vendor in
6185 sni)
6186 shlibpath_overrides_runpath=no
6187 ;;
6188 motorola)
6189 need_lib_prefix=no
6190 need_version=no
6191 shlibpath_overrides_runpath=no
6192 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6193 ;;
6194 esac
6195 ;;
6196
6197 uts4*)
6198 version_type=linux
6199 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6200 soname_spec='${libname}${release}.so$major'
6201 shlibpath_var=LD_LIBRARY_PATH
6202 ;;
6203
6204 dgux*)
6205 version_type=linux
6206 need_lib_prefix=no
6207 need_version=no
6208 library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6209 soname_spec='${libname}${release}.so$major'
6210 shlibpath_var=LD_LIBRARY_PATH
6211 ;;
6212
6213 sysv4*MP*)
6214 if test -d /usr/nec ;then
6215 version_type=linux
6216 library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
6217 soname_spec='$libname.so.$major'
6218 shlibpath_var=LD_LIBRARY_PATH
6219 fi
6220 ;;
6221
6222 *)
6223 dynamic_linker=no
6224 ;;
6225 esac
6226 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
6227 echo "${ECHO_T}$dynamic_linker" >&6
6228 test "$dynamic_linker" = no && can_build_shared=no
6229
6230 # Report the final consequences.
6231 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
6232 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
6233 echo "$as_me:$LINENO: result: $can_build_shared" >&5
6234 echo "${ECHO_T}$can_build_shared" >&6
6235
6236 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
6237 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
6238 test "$can_build_shared" = "no" && enable_shared=no
6239
6240 # On AIX, shared libraries and static libraries use the same namespace, and
6241 # are all built from PIC.
6242 case "$host_os" in
6243 aix3*)
6244 test "$enable_shared" = yes && enable_static=no
6245 if test -n "$RANLIB"; then
6246 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6247 postinstall_cmds='$RANLIB $lib'
6248 fi
6249 ;;
6250
6251 aix4*)
6252 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
6253 test "$enable_shared" = yes && enable_static=no
6254 fi
6255 ;;
6256 esac
6257 echo "$as_me:$LINENO: result: $enable_shared" >&5
6258 echo "${ECHO_T}$enable_shared" >&6
6259
6260 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
6261 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
6262 # Make sure either enable_shared or enable_static is yes.
6263 test "$enable_shared" = yes || enable_static=yes
6264 echo "$as_me:$LINENO: result: $enable_static" >&5
6265 echo "${ECHO_T}$enable_static" >&6
6266
6267 if test "$hardcode_action" = relink; then
6268 # Fast installation is not supported
6269 enable_fast_install=no
6270 elif test "$shlibpath_overrides_runpath" = yes ||
6271 test "$enable_shared" = no; then
6272 # Fast installation is not necessary
6273 enable_fast_install=needless
6274 fi
6275
6276 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6277 if test "$GCC" = yes; then
6278 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6279 fi
6280
6281 if test "x$enable_dlopen" != xyes; then
6282 enable_dlopen=unknown
6283 enable_dlopen_self=unknown
6284 enable_dlopen_self_static=unknown
6285 else
6286 lt_cv_dlopen=no
6287 lt_cv_dlopen_libs=
6288
6289 case $host_os in
6290 beos*)
6291 lt_cv_dlopen="load_add_on"
6292 lt_cv_dlopen_libs=
6293 lt_cv_dlopen_self=yes
6294 ;;
6295
6296 cygwin* | mingw* | pw32*)
6297 lt_cv_dlopen="LoadLibrary"
6298 lt_cv_dlopen_libs=
6299 ;;
6300
6301 *)
6302 echo "$as_me:$LINENO: checking for shl_load" >&5
6303 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
6304 if test "${ac_cv_func_shl_load+set}" = set; then
6305 echo $ECHO_N "(cached) $ECHO_C" >&6
6306 else
6307 cat >conftest.$ac_ext <<_ACEOF
6308 #line $LINENO "configure"
6309 #include "confdefs.h"
6310 /* System header to define __stub macros and hopefully few prototypes,
6311 which can conflict with char shl_load (); below. */
6312 #include <assert.h>
6313 /* Override any gcc2 internal prototype to avoid an error. */
6314 #ifdef __cplusplus
6315 extern "C"
6316 #endif
6317 /* We use char because int might match the return type of a gcc2
6318 builtin and then its argument prototype would still apply. */
6319 char shl_load ();
6320 char (*f) ();
6321
6322 #ifdef F77_DUMMY_MAIN
6323 # ifdef __cplusplus
6324 extern "C"
6325 # endif
6326 int F77_DUMMY_MAIN() { return 1; }
6327 #endif
6328 int
6329 main ()
6330 {
6331 /* The GNU C library defines this for functions which it implements
6332 to always fail with ENOSYS. Some functions are actually named
6333 something starting with __ and the normal name is an alias. */
6334 #if defined (__stub_shl_load) || defined (__stub___shl_load)
6335 choke me
6336 #else
6337 f = shl_load;
6338 #endif
6339
6340 ;
6341 return 0;
6342 }
6343 _ACEOF
6344 rm -f conftest.$ac_objext conftest$ac_exeext
6345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6346 (eval $ac_link) 2>&5
6347 ac_status=$?
6348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6349 (exit $ac_status); } &&
6350 { ac_try='test -s conftest$ac_exeext'
6351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6352 (eval $ac_try) 2>&5
6353 ac_status=$?
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); }; }; then
6356 ac_cv_func_shl_load=yes
6357 else
6358 echo "$as_me: failed program was:" >&5
6359 cat conftest.$ac_ext >&5
6360 ac_cv_func_shl_load=no
6361 fi
6362 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6363 fi
6364 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
6365 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
6366 if test $ac_cv_func_shl_load = yes; then
6367 lt_cv_dlopen="shl_load"
6368 else
6369 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
6370 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
6371 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
6372 echo $ECHO_N "(cached) $ECHO_C" >&6
6373 else
6374 ac_check_lib_save_LIBS=$LIBS
6375 LIBS="-ldld $LIBS"
6376 cat >conftest.$ac_ext <<_ACEOF
6377 #line $LINENO "configure"
6378 #include "confdefs.h"
6379
6380 /* Override any gcc2 internal prototype to avoid an error. */
6381 #ifdef __cplusplus
6382 extern "C"
6383 #endif
6384 /* We use char because int might match the return type of a gcc2
6385 builtin and then its argument prototype would still apply. */
6386 char shl_load ();
6387 #ifdef F77_DUMMY_MAIN
6388 # ifdef __cplusplus
6389 extern "C"
6390 # endif
6391 int F77_DUMMY_MAIN() { return 1; }
6392 #endif
6393 int
6394 main ()
6395 {
6396 shl_load ();
6397 ;
6398 return 0;
6399 }
6400 _ACEOF
6401 rm -f conftest.$ac_objext conftest$ac_exeext
6402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6403 (eval $ac_link) 2>&5
6404 ac_status=$?
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); } &&
6407 { ac_try='test -s conftest$ac_exeext'
6408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6409 (eval $ac_try) 2>&5
6410 ac_status=$?
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); }; }; then
6413 ac_cv_lib_dld_shl_load=yes
6414 else
6415 echo "$as_me: failed program was:" >&5
6416 cat conftest.$ac_ext >&5
6417 ac_cv_lib_dld_shl_load=no
6418 fi
6419 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6420 LIBS=$ac_check_lib_save_LIBS
6421 fi
6422 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
6423 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
6424 if test $ac_cv_lib_dld_shl_load = yes; then
6425 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
6426 else
6427 echo "$as_me:$LINENO: checking for dlopen" >&5
6428 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
6429 if test "${ac_cv_func_dlopen+set}" = set; then
6430 echo $ECHO_N "(cached) $ECHO_C" >&6
6431 else
6432 cat >conftest.$ac_ext <<_ACEOF
6433 #line $LINENO "configure"
6434 #include "confdefs.h"
6435 /* System header to define __stub macros and hopefully few prototypes,
6436 which can conflict with char dlopen (); below. */
6437 #include <assert.h>
6438 /* Override any gcc2 internal prototype to avoid an error. */
6439 #ifdef __cplusplus
6440 extern "C"
6441 #endif
6442 /* We use char because int might match the return type of a gcc2
6443 builtin and then its argument prototype would still apply. */
6444 char dlopen ();
6445 char (*f) ();
6446
6447 #ifdef F77_DUMMY_MAIN
6448 # ifdef __cplusplus
6449 extern "C"
6450 # endif
6451 int F77_DUMMY_MAIN() { return 1; }
6452 #endif
6453 int
6454 main ()
6455 {
6456 /* The GNU C library defines this for functions which it implements
6457 to always fail with ENOSYS. Some functions are actually named
6458 something starting with __ and the normal name is an alias. */
6459 #if defined (__stub_dlopen) || defined (__stub___dlopen)
6460 choke me
6461 #else
6462 f = dlopen;
6463 #endif
6464
6465 ;
6466 return 0;
6467 }
6468 _ACEOF
6469 rm -f conftest.$ac_objext conftest$ac_exeext
6470 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6471 (eval $ac_link) 2>&5
6472 ac_status=$?
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); } &&
6475 { ac_try='test -s conftest$ac_exeext'
6476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6477 (eval $ac_try) 2>&5
6478 ac_status=$?
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); }; }; then
6481 ac_cv_func_dlopen=yes
6482 else
6483 echo "$as_me: failed program was:" >&5
6484 cat conftest.$ac_ext >&5
6485 ac_cv_func_dlopen=no
6486 fi
6487 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6488 fi
6489 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
6490 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
6491 if test $ac_cv_func_dlopen = yes; then
6492 lt_cv_dlopen="dlopen"
6493 else
6494 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
6495 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
6496 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
6497 echo $ECHO_N "(cached) $ECHO_C" >&6
6498 else
6499 ac_check_lib_save_LIBS=$LIBS
6500 LIBS="-ldl $LIBS"
6501 cat >conftest.$ac_ext <<_ACEOF
6502 #line $LINENO "configure"
6503 #include "confdefs.h"
6504
6505 /* Override any gcc2 internal prototype to avoid an error. */
6506 #ifdef __cplusplus
6507 extern "C"
6508 #endif
6509 /* We use char because int might match the return type of a gcc2
6510 builtin and then its argument prototype would still apply. */
6511 char dlopen ();
6512 #ifdef F77_DUMMY_MAIN
6513 # ifdef __cplusplus
6514 extern "C"
6515 # endif
6516 int F77_DUMMY_MAIN() { return 1; }
6517 #endif
6518 int
6519 main ()
6520 {
6521 dlopen ();
6522 ;
6523 return 0;
6524 }
6525 _ACEOF
6526 rm -f conftest.$ac_objext conftest$ac_exeext
6527 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6528 (eval $ac_link) 2>&5
6529 ac_status=$?
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); } &&
6532 { ac_try='test -s conftest$ac_exeext'
6533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6534 (eval $ac_try) 2>&5
6535 ac_status=$?
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); }; }; then
6538 ac_cv_lib_dl_dlopen=yes
6539 else
6540 echo "$as_me: failed program was:" >&5
6541 cat conftest.$ac_ext >&5
6542 ac_cv_lib_dl_dlopen=no
6543 fi
6544 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6545 LIBS=$ac_check_lib_save_LIBS
6546 fi
6547 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
6548 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
6549 if test $ac_cv_lib_dl_dlopen = yes; then
6550 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
6551 else
6552 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
6553 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
6554 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
6555 echo $ECHO_N "(cached) $ECHO_C" >&6
6556 else
6557 ac_check_lib_save_LIBS=$LIBS
6558 LIBS="-lsvld $LIBS"
6559 cat >conftest.$ac_ext <<_ACEOF
6560 #line $LINENO "configure"
6561 #include "confdefs.h"
6562
6563 /* Override any gcc2 internal prototype to avoid an error. */
6564 #ifdef __cplusplus
6565 extern "C"
6566 #endif
6567 /* We use char because int might match the return type of a gcc2
6568 builtin and then its argument prototype would still apply. */
6569 char dlopen ();
6570 #ifdef F77_DUMMY_MAIN
6571 # ifdef __cplusplus
6572 extern "C"
6573 # endif
6574 int F77_DUMMY_MAIN() { return 1; }
6575 #endif
6576 int
6577 main ()
6578 {
6579 dlopen ();
6580 ;
6581 return 0;
6582 }
6583 _ACEOF
6584 rm -f conftest.$ac_objext conftest$ac_exeext
6585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6586 (eval $ac_link) 2>&5
6587 ac_status=$?
6588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589 (exit $ac_status); } &&
6590 { ac_try='test -s conftest$ac_exeext'
6591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6592 (eval $ac_try) 2>&5
6593 ac_status=$?
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); }; }; then
6596 ac_cv_lib_svld_dlopen=yes
6597 else
6598 echo "$as_me: failed program was:" >&5
6599 cat conftest.$ac_ext >&5
6600 ac_cv_lib_svld_dlopen=no
6601 fi
6602 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6603 LIBS=$ac_check_lib_save_LIBS
6604 fi
6605 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
6606 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
6607 if test $ac_cv_lib_svld_dlopen = yes; then
6608 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
6609 else
6610 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
6611 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
6612 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
6613 echo $ECHO_N "(cached) $ECHO_C" >&6
6614 else
6615 ac_check_lib_save_LIBS=$LIBS
6616 LIBS="-ldld $LIBS"
6617 cat >conftest.$ac_ext <<_ACEOF
6618 #line $LINENO "configure"
6619 #include "confdefs.h"
6620
6621 /* Override any gcc2 internal prototype to avoid an error. */
6622 #ifdef __cplusplus
6623 extern "C"
6624 #endif
6625 /* We use char because int might match the return type of a gcc2
6626 builtin and then its argument prototype would still apply. */
6627 char dld_link ();
6628 #ifdef F77_DUMMY_MAIN
6629 # ifdef __cplusplus
6630 extern "C"
6631 # endif
6632 int F77_DUMMY_MAIN() { return 1; }
6633 #endif
6634 int
6635 main ()
6636 {
6637 dld_link ();
6638 ;
6639 return 0;
6640 }
6641 _ACEOF
6642 rm -f conftest.$ac_objext conftest$ac_exeext
6643 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6644 (eval $ac_link) 2>&5
6645 ac_status=$?
6646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6647 (exit $ac_status); } &&
6648 { ac_try='test -s conftest$ac_exeext'
6649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6650 (eval $ac_try) 2>&5
6651 ac_status=$?
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); }; }; then
6654 ac_cv_lib_dld_dld_link=yes
6655 else
6656 echo "$as_me: failed program was:" >&5
6657 cat conftest.$ac_ext >&5
6658 ac_cv_lib_dld_dld_link=no
6659 fi
6660 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6661 LIBS=$ac_check_lib_save_LIBS
6662 fi
6663 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
6664 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
6665 if test $ac_cv_lib_dld_dld_link = yes; then
6666 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
6667 fi
6668
6669
6670 fi
6671
6672
6673 fi
6674
6675
6676 fi
6677
6678
6679 fi
6680
6681
6682 fi
6683
6684 ;;
6685 esac
6686
6687 if test "x$lt_cv_dlopen" != xno; then
6688 enable_dlopen=yes
6689 else
6690 enable_dlopen=no
6691 fi
6692
6693 case $lt_cv_dlopen in
6694 dlopen)
6695 save_CPPFLAGS="$CPPFLAGS"
6696 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
6697
6698 save_LDFLAGS="$LDFLAGS"
6699 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
6700
6701 save_LIBS="$LIBS"
6702 LIBS="$lt_cv_dlopen_libs $LIBS"
6703
6704 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
6705 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
6706 if test "${lt_cv_dlopen_self+set}" = set; then
6707 echo $ECHO_N "(cached) $ECHO_C" >&6
6708 else
6709 if test "$cross_compiling" = yes; then :
6710 lt_cv_dlopen_self=cross
6711 else
6712 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6713 lt_status=$lt_dlunknown
6714 cat > conftest.$ac_ext <<EOF
6715 #line 6715 "configure"
6716 #include "confdefs.h"
6717
6718 #if HAVE_DLFCN_H
6719 #include <dlfcn.h>
6720 #endif
6721
6722 #include <stdio.h>
6723
6724 #ifdef RTLD_GLOBAL
6725 # define LT_DLGLOBAL RTLD_GLOBAL
6726 #else
6727 # ifdef DL_GLOBAL
6728 # define LT_DLGLOBAL DL_GLOBAL
6729 # else
6730 # define LT_DLGLOBAL 0
6731 # endif
6732 #endif
6733
6734 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6735 find out it does not work in some platform. */
6736 #ifndef LT_DLLAZY_OR_NOW
6737 # ifdef RTLD_LAZY
6738 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6739 # else
6740 # ifdef DL_LAZY
6741 # define LT_DLLAZY_OR_NOW DL_LAZY
6742 # else
6743 # ifdef RTLD_NOW
6744 # define LT_DLLAZY_OR_NOW RTLD_NOW
6745 # else
6746 # ifdef DL_NOW
6747 # define LT_DLLAZY_OR_NOW DL_NOW
6748 # else
6749 # define LT_DLLAZY_OR_NOW 0
6750 # endif
6751 # endif
6752 # endif
6753 # endif
6754 #endif
6755
6756 #ifdef __cplusplus
6757 extern "C" void exit (int);
6758 #endif
6759
6760 void fnord() { int i=42;}
6761 int main ()
6762 {
6763 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6764 int status = $lt_dlunknown;
6765
6766 if (self)
6767 {
6768 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6769 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6770 /* dlclose (self); */
6771 }
6772
6773 exit (status);
6774 }
6775 EOF
6776 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6777 (eval $ac_link) 2>&5
6778 ac_status=$?
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6781 (./conftest; exit; ) 2>/dev/null
6782 lt_status=$?
6783 case x$lt_status in
6784 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
6785 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
6786 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
6787 esac
6788 else :
6789 # compilation failed
6790 lt_cv_dlopen_self=no
6791 fi
6792 fi
6793 rm -fr conftest*
6794
6795
6796 fi
6797 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
6798 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
6799
6800 if test "x$lt_cv_dlopen_self" = xyes; then
6801 LDFLAGS="$LDFLAGS $link_static_flag"
6802 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
6803 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
6804 if test "${lt_cv_dlopen_self_static+set}" = set; then
6805 echo $ECHO_N "(cached) $ECHO_C" >&6
6806 else
6807 if test "$cross_compiling" = yes; then :
6808 lt_cv_dlopen_self_static=cross
6809 else
6810 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
6811 lt_status=$lt_dlunknown
6812 cat > conftest.$ac_ext <<EOF
6813 #line 6813 "configure"
6814 #include "confdefs.h"
6815
6816 #if HAVE_DLFCN_H
6817 #include <dlfcn.h>
6818 #endif
6819
6820 #include <stdio.h>
6821
6822 #ifdef RTLD_GLOBAL
6823 # define LT_DLGLOBAL RTLD_GLOBAL
6824 #else
6825 # ifdef DL_GLOBAL
6826 # define LT_DLGLOBAL DL_GLOBAL
6827 # else
6828 # define LT_DLGLOBAL 0
6829 # endif
6830 #endif
6831
6832 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
6833 find out it does not work in some platform. */
6834 #ifndef LT_DLLAZY_OR_NOW
6835 # ifdef RTLD_LAZY
6836 # define LT_DLLAZY_OR_NOW RTLD_LAZY
6837 # else
6838 # ifdef DL_LAZY
6839 # define LT_DLLAZY_OR_NOW DL_LAZY
6840 # else
6841 # ifdef RTLD_NOW
6842 # define LT_DLLAZY_OR_NOW RTLD_NOW
6843 # else
6844 # ifdef DL_NOW
6845 # define LT_DLLAZY_OR_NOW DL_NOW
6846 # else
6847 # define LT_DLLAZY_OR_NOW 0
6848 # endif
6849 # endif
6850 # endif
6851 # endif
6852 #endif
6853
6854 #ifdef __cplusplus
6855 extern "C" void exit (int);
6856 #endif
6857
6858 void fnord() { int i=42;}
6859 int main ()
6860 {
6861 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
6862 int status = $lt_dlunknown;
6863
6864 if (self)
6865 {
6866 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
6867 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
6868 /* dlclose (self); */
6869 }
6870
6871 exit (status);
6872 }
6873 EOF
6874 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6875 (eval $ac_link) 2>&5
6876 ac_status=$?
6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6878 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
6879 (./conftest; exit; ) 2>/dev/null
6880 lt_status=$?
6881 case x$lt_status in
6882 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
6883 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
6884 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
6885 esac
6886 else :
6887 # compilation failed
6888 lt_cv_dlopen_self_static=no
6889 fi
6890 fi
6891 rm -fr conftest*
6892
6893
6894 fi
6895 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
6896 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
6897 fi
6898
6899 CPPFLAGS="$save_CPPFLAGS"
6900 LDFLAGS="$save_LDFLAGS"
6901 LIBS="$save_LIBS"
6902 ;;
6903 esac
6904
6905 case $lt_cv_dlopen_self in
6906 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
6907 *) enable_dlopen_self=unknown ;;
6908 esac
6909
6910 case $lt_cv_dlopen_self_static in
6911 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
6912 *) enable_dlopen_self_static=unknown ;;
6913 esac
6914 fi
6915
6916
6917 if test "$enable_shared" = yes && test "$GCC" = yes; then
6918 case $archive_cmds in
6919 *'~'*)
6920 # FIXME: we may have to deal with multi-command sequences.
6921 ;;
6922 '$CC '*)
6923 # Test whether the compiler implicitly links with -lc since on some
6924 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6925 # to ld, don't add -lc before -lgcc.
6926 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6927 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6928 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
6930 else
6931 $rm conftest*
6932 echo 'static int dummy;' > conftest.$ac_ext
6933
6934 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6935 (eval $ac_compile) 2>&5
6936 ac_status=$?
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); }; then
6939 soname=conftest
6940 lib=conftest
6941 libobjs=conftest.$ac_objext
6942 deplibs=
6943 wl=$lt_cv_prog_cc_wl
6944 compiler_flags=-v
6945 linker_flags=-v
6946 verstring=
6947 output_objdir=.
6948 libname=conftest
6949 save_allow_undefined_flag=$allow_undefined_flag
6950 allow_undefined_flag=
6951 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6952 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6953 ac_status=$?
6954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6955 (exit $ac_status); }
6956 then
6957 lt_cv_archive_cmds_need_lc=no
6958 else
6959 lt_cv_archive_cmds_need_lc=yes
6960 fi
6961 allow_undefined_flag=$save_allow_undefined_flag
6962 else
6963 cat conftest.err 1>&5
6964 fi
6965 fi
6966
6967 echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
6968 echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
6969 ;;
6970 esac
6971 fi
6972 need_lc=${lt_cv_archive_cmds_need_lc-yes}
6973
6974 # The second clause should only fire when bootstrapping the
6975 # libtool distribution, otherwise you forgot to ship ltmain.sh
6976 # with your package, and you will get complaints that there are
6977 # no rules to generate ltmain.sh.
6978 if test -f "$ltmain"; then
6979 :
6980 else
6981 # If there is no Makefile yet, we rely on a make rule to execute
6982 # `config.status --recheck' to rerun these tests and create the
6983 # libtool script then.
6984 test -f Makefile && make "$ltmain"
6985 fi
6986
6987 if test -f "$ltmain"; then
6988 trap "$rm \"${ofile}T\"; exit 1" 1 2 15
6989 $rm -f "${ofile}T"
6990
6991 echo creating $ofile
6992
6993 # Now quote all the things that may contain metacharacters while being
6994 # careful not to overquote the AC_SUBSTed values. We take copies of the
6995 # variables and quote the copies for generation of the libtool script.
6996 for var in echo old_CC old_CFLAGS \
6997 AR AR_FLAGS CC LD LN_S NM SHELL \
6998 reload_flag reload_cmds wl \
6999 pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
7000 thread_safe_flag_spec whole_archive_flag_spec libname_spec \
7001 library_names_spec soname_spec \
7002 RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
7003 old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
7004 postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
7005 old_striplib striplib file_magic_cmd export_symbols_cmds \
7006 deplibs_check_method allow_undefined_flag no_undefined_flag \
7007 finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
7008 global_symbol_to_c_name_address \
7009 hardcode_libdir_flag_spec hardcode_libdir_separator \
7010 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
7011 compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
7012
7013 case $var in
7014 reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
7015 old_postinstall_cmds | old_postuninstall_cmds | \
7016 export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
7017 extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
7018 postinstall_cmds | postuninstall_cmds | \
7019 finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
7020 # Double-quote double-evaled strings.
7021 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
7022 ;;
7023 *)
7024 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
7025 ;;
7026 esac
7027 done
7028
7029 cat <<__EOF__ > "${ofile}T"
7030 #! $SHELL
7031
7032 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
7033 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
7034 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
7035 #
7036 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
7037 # Originally by Gordon Matzigkeit <[email protected]>, 1996
7038 #
7039 # This program is free software; you can redistribute it and/or modify
7040 # it under the terms of the GNU General Public License as published by
7041 # the Free Software Foundation; either version 2 of the License, or
7042 # (at your option) any later version.
7043 #
7044 # This program is distributed in the hope that it will be useful, but
7045 # WITHOUT ANY WARRANTY; without even the implied warranty of
7046 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7047 # General Public License for more details.
7048 #
7049 # You should have received a copy of the GNU General Public License
7050 # along with this program; if not, write to the Free Software
7051 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7052 #
7053 # As a special exception to the GNU General Public License, if you
7054 # distribute this file as part of a program that contains a
7055 # configuration script generated by Autoconf, you may include it under
7056 # the same distribution terms that you use for the rest of that program.
7057
7058 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
7059 Xsed="sed -e s/^X//"
7060
7061 # The HP-UX ksh and POSIX shell print the target directory to stdout
7062 # if CDPATH is set.
7063 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
7064
7065 # ### BEGIN LIBTOOL CONFIG
7066
7067 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
7068
7069 # Shell to use when invoking shell scripts.
7070 SHELL=$lt_SHELL
7071
7072 # Whether or not to build shared libraries.
7073 build_libtool_libs=$enable_shared
7074
7075 # Whether or not to build static libraries.
7076 build_old_libs=$enable_static
7077
7078 # Whether or not to add -lc for building shared libraries.
7079 build_libtool_need_lc=$need_lc
7080
7081 # Whether or not to optimize for fast installation.
7082 fast_install=$enable_fast_install
7083
7084 # The host system.
7085 host_alias=$host_alias
7086 host=$host
7087
7088 # An echo program that does not interpret backslashes.
7089 echo=$lt_echo
7090
7091 # The archiver.
7092 AR=$lt_AR
7093 AR_FLAGS=$lt_AR_FLAGS
7094
7095 # The default C compiler.
7096 CC=$lt_CC
7097
7098 # Is the compiler the GNU C compiler?
7099 with_gcc=$GCC
7100
7101 # The linker used to build libraries.
7102 LD=$lt_LD
7103
7104 # Whether we need hard or soft links.
7105 LN_S=$lt_LN_S
7106
7107 # A BSD-compatible nm program.
7108 NM=$lt_NM
7109
7110 # A symbol stripping program
7111 STRIP=$STRIP
7112
7113 # Used to examine libraries when file_magic_cmd begins "file"
7114 MAGIC_CMD=$MAGIC_CMD
7115
7116 # Used on cygwin: DLL creation program.
7117 DLLTOOL="$DLLTOOL"
7118
7119 # Used on cygwin: object dumper.
7120 OBJDUMP="$OBJDUMP"
7121
7122 # Used on cygwin: assembler.
7123 AS="$AS"
7124
7125 # The name of the directory that contains temporary libtool files.
7126 objdir=$objdir
7127
7128 # How to create reloadable object files.
7129 reload_flag=$lt_reload_flag
7130 reload_cmds=$lt_reload_cmds
7131
7132 # How to pass a linker flag through the compiler.
7133 wl=$lt_wl
7134
7135 # Object file suffix (normally "o").
7136 objext="$ac_objext"
7137
7138 # Old archive suffix (normally "a").
7139 libext="$libext"
7140
7141 # Executable file suffix (normally "").
7142 exeext="$exeext"
7143
7144 # Additional compiler flags for building library objects.
7145 pic_flag=$lt_pic_flag
7146 pic_mode=$pic_mode
7147
7148 # Does compiler simultaneously support -c and -o options?
7149 compiler_c_o=$lt_compiler_c_o
7150
7151 # Can we write directly to a .lo ?
7152 compiler_o_lo=$lt_compiler_o_lo
7153
7154 # Must we lock files when doing compilation ?
7155 need_locks=$lt_need_locks
7156
7157 # Do we need the lib prefix for modules?
7158 need_lib_prefix=$need_lib_prefix
7159
7160 # Do we need a version for libraries?
7161 need_version=$need_version
7162
7163 # Whether dlopen is supported.
7164 dlopen_support=$enable_dlopen
7165
7166 # Whether dlopen of programs is supported.
7167 dlopen_self=$enable_dlopen_self
7168
7169 # Whether dlopen of statically linked programs is supported.
7170 dlopen_self_static=$enable_dlopen_self_static
7171
7172 # Compiler flag to prevent dynamic linking.
7173 link_static_flag=$lt_link_static_flag
7174
7175 # Compiler flag to turn off builtin functions.
7176 no_builtin_flag=$lt_no_builtin_flag
7177
7178 # Compiler flag to allow reflexive dlopens.
7179 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
7180
7181 # Compiler flag to generate shared objects directly from archives.
7182 whole_archive_flag_spec=$lt_whole_archive_flag_spec
7183
7184 # Compiler flag to generate thread-safe objects.
7185 thread_safe_flag_spec=$lt_thread_safe_flag_spec
7186
7187 # Library versioning type.
7188 version_type=$version_type
7189
7190 # Format of library name prefix.
7191 libname_spec=$lt_libname_spec
7192
7193 # List of archive names. First name is the real one, the rest are links.
7194 # The last name is the one that the linker finds with -lNAME.
7195 library_names_spec=$lt_library_names_spec
7196
7197 # The coded name of the library, if different from the real name.
7198 soname_spec=$lt_soname_spec
7199
7200 # Commands used to build and install an old-style archive.
7201 RANLIB=$lt_RANLIB
7202 old_archive_cmds=$lt_old_archive_cmds
7203 old_postinstall_cmds=$lt_old_postinstall_cmds
7204 old_postuninstall_cmds=$lt_old_postuninstall_cmds
7205
7206 # Create an old-style archive from a shared archive.
7207 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
7208
7209 # Create a temporary old-style archive to link instead of a shared archive.
7210 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
7211
7212 # Commands used to build and install a shared archive.
7213 archive_cmds=$lt_archive_cmds
7214 archive_expsym_cmds=$lt_archive_expsym_cmds
7215 postinstall_cmds=$lt_postinstall_cmds
7216 postuninstall_cmds=$lt_postuninstall_cmds
7217
7218 # Commands to strip libraries.
7219 old_striplib=$lt_old_striplib
7220 striplib=$lt_striplib
7221
7222 # Method to check whether dependent libraries are shared objects.
7223 deplibs_check_method=$lt_deplibs_check_method
7224
7225 # Command to use when deplibs_check_method == file_magic.
7226 file_magic_cmd=$lt_file_magic_cmd
7227
7228 # Flag that allows shared libraries with undefined symbols to be built.
7229 allow_undefined_flag=$lt_allow_undefined_flag
7230
7231 # Flag that forces no undefined symbols.
7232 no_undefined_flag=$lt_no_undefined_flag
7233
7234 # Commands used to finish a libtool library installation in a directory.
7235 finish_cmds=$lt_finish_cmds
7236
7237 # Same as above, but a single script fragment to be evaled but not shown.
7238 finish_eval=$lt_finish_eval
7239
7240 # Take the output of nm and produce a listing of raw symbols and C names.
7241 global_symbol_pipe=$lt_global_symbol_pipe
7242
7243 # Transform the output of nm in a proper C declaration
7244 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
7245
7246 # Transform the output of nm in a C name address pair
7247 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
7248
7249 # This is the shared library runtime path variable.
7250 runpath_var=$runpath_var
7251
7252 # This is the shared library path variable.
7253 shlibpath_var=$shlibpath_var
7254
7255 # Is shlibpath searched before the hard-coded library search path?
7256 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
7257
7258 # How to hardcode a shared library path into an executable.
7259 hardcode_action=$hardcode_action
7260
7261 # Whether we should hardcode library paths into libraries.
7262 hardcode_into_libs=$hardcode_into_libs
7263
7264 # Flag to hardcode \$libdir into a binary during linking.
7265 # This must work even if \$libdir does not exist.
7266 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
7267
7268 # Whether we need a single -rpath flag with a separated argument.
7269 hardcode_libdir_separator=$lt_hardcode_libdir_separator
7270
7271 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
7272 # resulting binary.
7273 hardcode_direct=$hardcode_direct
7274
7275 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
7276 # resulting binary.
7277 hardcode_minus_L=$hardcode_minus_L
7278
7279 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
7280 # the resulting binary.
7281 hardcode_shlibpath_var=$hardcode_shlibpath_var
7282
7283 # Variables whose values should be saved in libtool wrapper scripts and
7284 # restored at relink time.
7285 variables_saved_for_relink="$variables_saved_for_relink"
7286
7287 # Whether libtool must link a program against all its dependency libraries.
7288 link_all_deplibs=$link_all_deplibs
7289
7290 # Compile-time system search path for libraries
7291 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
7292
7293 # Run-time system search path for libraries
7294 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
7295
7296 # Fix the shell variable \$srcfile for the compiler.
7297 fix_srcfile_path="$fix_srcfile_path"
7298
7299 # Set to yes if exported symbols are required.
7300 always_export_symbols=$always_export_symbols
7301
7302 # The commands to list exported symbols.
7303 export_symbols_cmds=$lt_export_symbols_cmds
7304
7305 # The commands to extract the exported symbol list from a shared archive.
7306 extract_expsyms_cmds=$lt_extract_expsyms_cmds
7307
7308 # Symbols that should not be listed in the preloaded symbols.
7309 exclude_expsyms=$lt_exclude_expsyms
7310
7311 # Symbols that must always be exported.
7312 include_expsyms=$lt_include_expsyms
7313
7314 # ### END LIBTOOL CONFIG
7315
7316 __EOF__
7317
7318 case $host_os in
7319 aix3*)
7320 cat <<\EOF >> "${ofile}T"
7321
7322 # AIX sometimes has problems with the GCC collect2 program. For some
7323 # reason, if we set the COLLECT_NAMES environment variable, the problems
7324 # vanish in a puff of smoke.
7325 if test "X${COLLECT_NAMES+set}" != Xset; then
7326 COLLECT_NAMES=
7327 export COLLECT_NAMES
7328 fi
7329 EOF
7330 ;;
7331 esac
7332
7333 case $host_os in
7334 cygwin* | mingw* | pw32* | os2*)
7335 cat <<'EOF' >> "${ofile}T"
7336 # This is a source program that is used to create dlls on Windows
7337 # Don't remove nor modify the starting and closing comments
7338 # /* ltdll.c starts here */
7339 # #define WIN32_LEAN_AND_MEAN
7340 # #include <windows.h>
7341 # #undef WIN32_LEAN_AND_MEAN
7342 # #include <stdio.h>
7343 #
7344 # #ifndef __CYGWIN__
7345 # # ifdef __CYGWIN32__
7346 # # define __CYGWIN__ __CYGWIN32__
7347 # # endif
7348 # #endif
7349 #
7350 # #ifdef __cplusplus
7351 # extern "C" {
7352 # #endif
7353 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
7354 # #ifdef __cplusplus
7355 # }
7356 # #endif
7357 #
7358 # #ifdef __CYGWIN__
7359 # #include <cygwin/cygwin_dll.h>
7360 # DECLARE_CYGWIN_DLL( DllMain );
7361 # #endif
7362 # HINSTANCE __hDllInstance_base;
7363 #
7364 # BOOL APIENTRY
7365 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
7366 # {
7367 # __hDllInstance_base = hInst;
7368 # return TRUE;
7369 # }
7370 # /* ltdll.c ends here */
7371 # This is a source program that is used to create import libraries
7372 # on Windows for dlls which lack them. Don't remove nor modify the
7373 # starting and closing comments
7374 # /* impgen.c starts here */
7375 # /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
7376 #
7377 # This file is part of GNU libtool.
7378 #
7379 # This program is free software; you can redistribute it and/or modify
7380 # it under the terms of the GNU General Public License as published by
7381 # the Free Software Foundation; either version 2 of the License, or
7382 # (at your option) any later version.
7383 #
7384 # This program is distributed in the hope that it will be useful,
7385 # but WITHOUT ANY WARRANTY; without even the implied warranty of
7386 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
7387 # GNU General Public License for more details.
7388 #
7389 # You should have received a copy of the GNU General Public License
7390 # along with this program; if not, write to the Free Software
7391 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
7392 # */
7393 #
7394 # #include <stdio.h> /* for printf() */
7395 # #include <unistd.h> /* for open(), lseek(), read() */
7396 # #include <fcntl.h> /* for O_RDONLY, O_BINARY */
7397 # #include <string.h> /* for strdup() */
7398 #
7399 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
7400 # #ifndef O_BINARY
7401 # #define O_BINARY 0
7402 # #endif
7403 #
7404 # static unsigned int
7405 # pe_get16 (fd, offset)
7406 # int fd;
7407 # int offset;
7408 # {
7409 # unsigned char b[2];
7410 # lseek (fd, offset, SEEK_SET);
7411 # read (fd, b, 2);
7412 # return b[0] + (b[1]<<8);
7413 # }
7414 #
7415 # static unsigned int
7416 # pe_get32 (fd, offset)
7417 # int fd;
7418 # int offset;
7419 # {
7420 # unsigned char b[4];
7421 # lseek (fd, offset, SEEK_SET);
7422 # read (fd, b, 4);
7423 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7424 # }
7425 #
7426 # static unsigned int
7427 # pe_as32 (ptr)
7428 # void *ptr;
7429 # {
7430 # unsigned char *b = ptr;
7431 # return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
7432 # }
7433 #
7434 # int
7435 # main (argc, argv)
7436 # int argc;
7437 # char *argv[];
7438 # {
7439 # int dll;
7440 # unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
7441 # unsigned long export_rva, export_size, nsections, secptr, expptr;
7442 # unsigned long name_rvas, nexp;
7443 # unsigned char *expdata, *erva;
7444 # char *filename, *dll_name;
7445 #
7446 # filename = argv[1];
7447 #
7448 # dll = open(filename, O_RDONLY|O_BINARY);
7449 # if (dll < 1)
7450 # return 1;
7451 #
7452 # dll_name = filename;
7453 #
7454 # for (i=0; filename[i]; i++)
7455 # if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
7456 # dll_name = filename + i +1;
7457 #
7458 # pe_header_offset = pe_get32 (dll, 0x3c);
7459 # opthdr_ofs = pe_header_offset + 4 + 20;
7460 # num_entries = pe_get32 (dll, opthdr_ofs + 92);
7461 #
7462 # if (num_entries < 1) /* no exports */
7463 # return 1;
7464 #
7465 # export_rva = pe_get32 (dll, opthdr_ofs + 96);
7466 # export_size = pe_get32 (dll, opthdr_ofs + 100);
7467 # nsections = pe_get16 (dll, pe_header_offset + 4 +2);
7468 # secptr = (pe_header_offset + 4 + 20 +
7469 # pe_get16 (dll, pe_header_offset + 4 + 16));
7470 #
7471 # expptr = 0;
7472 # for (i = 0; i < nsections; i++)
7473 # {
7474 # char sname[8];
7475 # unsigned long secptr1 = secptr + 40 * i;
7476 # unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
7477 # unsigned long vsize = pe_get32 (dll, secptr1 + 16);
7478 # unsigned long fptr = pe_get32 (dll, secptr1 + 20);
7479 # lseek(dll, secptr1, SEEK_SET);
7480 # read(dll, sname, 8);
7481 # if (vaddr <= export_rva && vaddr+vsize > export_rva)
7482 # {
7483 # expptr = fptr + (export_rva - vaddr);
7484 # if (export_rva + export_size > vaddr + vsize)
7485 # export_size = vsize - (export_rva - vaddr);
7486 # break;
7487 # }
7488 # }
7489 #
7490 # expdata = (unsigned char*)malloc(export_size);
7491 # lseek (dll, expptr, SEEK_SET);
7492 # read (dll, expdata, export_size);
7493 # erva = expdata - export_rva;
7494 #
7495 # nexp = pe_as32 (expdata+24);
7496 # name_rvas = pe_as32 (expdata+32);
7497 #
7498 # printf ("EXPORTS\n");
7499 # for (i = 0; i<nexp; i++)
7500 # {
7501 # unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
7502 # printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
7503 # }
7504 #
7505 # return 0;
7506 # }
7507 # /* impgen.c ends here */
7508
7509 EOF
7510 ;;
7511 esac
7512
7513 # We use sed instead of cat because bash on DJGPP gets confused if
7514 # if finds mixed CR/LF and LF-only lines. Since sed operates in
7515 # text mode, it properly converts lines to CR/LF. This bash problem
7516 # is reportedly fixed, but why not run on old versions too?
7517 sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
7518
7519 mv -f "${ofile}T" "$ofile" || \
7520 (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
7521 chmod +x "$ofile"
7522 fi
7523
7524
7525
7526
7527
7528 # This can be used to rebuild libtool when needed
7529 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
7530
7531 # Always use our own libtool.
7532 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7533
7534 # Prevent multiple expansion
7535
7536
7537
7538
7539 INCLUDES='-I$(top_srcdir)/include -I$(top_builddir)/include'
7540
7541
7542
7543
7544 for ac_header in sys/time.h sys/timeb.h io.h
7545 do
7546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7547 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7548 echo "$as_me:$LINENO: checking for $ac_header" >&5
7549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7550 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7552 fi
7553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7555 else
7556 # Is the header compilable?
7557 echo "$as_me:$LINENO: checking $ac_header usability" >&5
7558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7559 cat >conftest.$ac_ext <<_ACEOF
7560 #line $LINENO "configure"
7561 #include "confdefs.h"
7562 $ac_includes_default
7563 #include <$ac_header>
7564 _ACEOF
7565 rm -f conftest.$ac_objext
7566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7567 (eval $ac_compile) 2>&5
7568 ac_status=$?
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); } &&
7571 { ac_try='test -s conftest.$ac_objext'
7572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7573 (eval $ac_try) 2>&5
7574 ac_status=$?
7575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7576 (exit $ac_status); }; }; then
7577 ac_header_compiler=yes
7578 else
7579 echo "$as_me: failed program was:" >&5
7580 cat conftest.$ac_ext >&5
7581 ac_header_compiler=no
7582 fi
7583 rm -f conftest.$ac_objext conftest.$ac_ext
7584 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7585 echo "${ECHO_T}$ac_header_compiler" >&6
7586
7587 # Is the header present?
7588 echo "$as_me:$LINENO: checking $ac_header presence" >&5
7589 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7590 cat >conftest.$ac_ext <<_ACEOF
7591 #line $LINENO "configure"
7592 #include "confdefs.h"
7593 #include <$ac_header>
7594 _ACEOF
7595 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7596 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7597 ac_status=$?
7598 egrep -v '^ *\+' conftest.er1 >conftest.err
7599 rm -f conftest.er1
7600 cat conftest.err >&5
7601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602 (exit $ac_status); } >/dev/null; then
7603 if test -s conftest.err; then
7604 ac_cpp_err=$ac_c_preproc_warn_flag
7605 else
7606 ac_cpp_err=
7607 fi
7608 else
7609 ac_cpp_err=yes
7610 fi
7611 if test -z "$ac_cpp_err"; then
7612 ac_header_preproc=yes
7613 else
7614 echo "$as_me: failed program was:" >&5
7615 cat conftest.$ac_ext >&5
7616 ac_header_preproc=no
7617 fi
7618 rm -f conftest.err conftest.$ac_ext
7619 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7620 echo "${ECHO_T}$ac_header_preproc" >&6
7621
7622 # So? What about this header?
7623 case $ac_header_compiler:$ac_header_preproc in
7624 yes:no )
7625 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7628 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7629 no:yes )
7630 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7631 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7632 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7633 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
7636 esac
7637 echo "$as_me:$LINENO: checking for $ac_header" >&5
7638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7639 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7640 echo $ECHO_N "(cached) $ECHO_C" >&6
7641 else
7642 eval "$as_ac_Header=$ac_header_preproc"
7643 fi
7644 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7645 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7646
7647 fi
7648 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7649 cat >>confdefs.h <<_ACEOF
7650 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7651 _ACEOF
7652
7653 fi
7654
7655 done
7656
7657 rm -f include/inttypes.h
7658 if test "${ac_cv_header_inttypes_h+set}" = set; then
7659 echo "$as_me:$LINENO: checking for inttypes.h" >&5
7660 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7661 if test "${ac_cv_header_inttypes_h+set}" = set; then
7662 echo $ECHO_N "(cached) $ECHO_C" >&6
7663 fi
7664 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
7665 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
7666 else
7667 # Is the header compilable?
7668 echo "$as_me:$LINENO: checking inttypes.h usability" >&5
7669 echo $ECHO_N "checking inttypes.h usability... $ECHO_C" >&6
7670 cat >conftest.$ac_ext <<_ACEOF
7671 #line $LINENO "configure"
7672 #include "confdefs.h"
7673 $ac_includes_default
7674 #include <inttypes.h>
7675 _ACEOF
7676 rm -f conftest.$ac_objext
7677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7678 (eval $ac_compile) 2>&5
7679 ac_status=$?
7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); } &&
7682 { ac_try='test -s conftest.$ac_objext'
7683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7684 (eval $ac_try) 2>&5
7685 ac_status=$?
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); }; }; then
7688 ac_header_compiler=yes
7689 else
7690 echo "$as_me: failed program was:" >&5
7691 cat conftest.$ac_ext >&5
7692 ac_header_compiler=no
7693 fi
7694 rm -f conftest.$ac_objext conftest.$ac_ext
7695 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7696 echo "${ECHO_T}$ac_header_compiler" >&6
7697
7698 # Is the header present?
7699 echo "$as_me:$LINENO: checking inttypes.h presence" >&5
7700 echo $ECHO_N "checking inttypes.h presence... $ECHO_C" >&6
7701 cat >conftest.$ac_ext <<_ACEOF
7702 #line $LINENO "configure"
7703 #include "confdefs.h"
7704 #include <inttypes.h>
7705 _ACEOF
7706 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7707 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7708 ac_status=$?
7709 egrep -v '^ *\+' conftest.er1 >conftest.err
7710 rm -f conftest.er1
7711 cat conftest.err >&5
7712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7713 (exit $ac_status); } >/dev/null; then
7714 if test -s conftest.err; then
7715 ac_cpp_err=$ac_c_preproc_warn_flag
7716 else
7717 ac_cpp_err=
7718 fi
7719 else
7720 ac_cpp_err=yes
7721 fi
7722 if test -z "$ac_cpp_err"; then
7723 ac_header_preproc=yes
7724 else
7725 echo "$as_me: failed program was:" >&5
7726 cat conftest.$ac_ext >&5
7727 ac_header_preproc=no
7728 fi
7729 rm -f conftest.err conftest.$ac_ext
7730 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7731 echo "${ECHO_T}$ac_header_preproc" >&6
7732
7733 # So? What about this header?
7734 case $ac_header_compiler:$ac_header_preproc in
7735 yes:no )
7736 { echo "$as_me:$LINENO: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&5
7737 echo "$as_me: WARNING: inttypes.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7738 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
7739 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;};;
7740 no:yes )
7741 { echo "$as_me:$LINENO: WARNING: inttypes.h: present but cannot be compiled" >&5
7742 echo "$as_me: WARNING: inttypes.h: present but cannot be compiled" >&2;}
7743 { echo "$as_me:$LINENO: WARNING: inttypes.h: check for missing prerequisite headers?" >&5
7744 echo "$as_me: WARNING: inttypes.h: check for missing prerequisite headers?" >&2;}
7745 { echo "$as_me:$LINENO: WARNING: inttypes.h: proceeding with the preprocessor's result" >&5
7746 echo "$as_me: WARNING: inttypes.h: proceeding with the preprocessor's result" >&2;};;
7747 esac
7748 echo "$as_me:$LINENO: checking for inttypes.h" >&5
7749 echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
7750 if test "${ac_cv_header_inttypes_h+set}" = set; then
7751 echo $ECHO_N "(cached) $ECHO_C" >&6
7752 else
7753 ac_cv_header_inttypes_h=$ac_header_preproc
7754 fi
7755 echo "$as_me:$LINENO: result: $ac_cv_header_inttypes_h" >&5
7756 echo "${ECHO_T}$ac_cv_header_inttypes_h" >&6
7757
7758 fi
7759 if test $ac_cv_header_inttypes_h = yes; then
7760 :
7761 else
7762 echo "$as_me:$LINENO: checking for char" >&5
7763 echo $ECHO_N "checking for char... $ECHO_C" >&6
7764 if test "${ac_cv_type_char+set}" = set; then
7765 echo $ECHO_N "(cached) $ECHO_C" >&6
7766 else
7767 cat >conftest.$ac_ext <<_ACEOF
7768 #line $LINENO "configure"
7769 #include "confdefs.h"
7770 $ac_includes_default
7771 #ifdef F77_DUMMY_MAIN
7772 # ifdef __cplusplus
7773 extern "C"
7774 # endif
7775 int F77_DUMMY_MAIN() { return 1; }
7776 #endif
7777 int
7778 main ()
7779 {
7780 if ((char *) 0)
7781 return 0;
7782 if (sizeof (char))
7783 return 0;
7784 ;
7785 return 0;
7786 }
7787 _ACEOF
7788 rm -f conftest.$ac_objext
7789 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7790 (eval $ac_compile) 2>&5
7791 ac_status=$?
7792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7793 (exit $ac_status); } &&
7794 { ac_try='test -s conftest.$ac_objext'
7795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7796 (eval $ac_try) 2>&5
7797 ac_status=$?
7798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7799 (exit $ac_status); }; }; then
7800 ac_cv_type_char=yes
7801 else
7802 echo "$as_me: failed program was:" >&5
7803 cat conftest.$ac_ext >&5
7804 ac_cv_type_char=no
7805 fi
7806 rm -f conftest.$ac_objext conftest.$ac_ext
7807 fi
7808 echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5
7809 echo "${ECHO_T}$ac_cv_type_char" >&6
7810
7811 echo "$as_me:$LINENO: checking size of char" >&5
7812 echo $ECHO_N "checking size of char... $ECHO_C" >&6
7813 if test "${ac_cv_sizeof_char+set}" = set; then
7814 echo $ECHO_N "(cached) $ECHO_C" >&6
7815 else
7816 if test "$ac_cv_type_char" = yes; then
7817 # The cast to unsigned long works around a bug in the HP C Compiler
7818 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7819 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7820 # This bug is HP SR number 8606223364.
7821 if test "$cross_compiling" = yes; then
7822 # Depending upon the size, compute the lo and hi bounds.
7823 cat >conftest.$ac_ext <<_ACEOF
7824 #line $LINENO "configure"
7825 #include "confdefs.h"
7826 $ac_includes_default
7827 #ifdef F77_DUMMY_MAIN
7828 # ifdef __cplusplus
7829 extern "C"
7830 # endif
7831 int F77_DUMMY_MAIN() { return 1; }
7832 #endif
7833 int
7834 main ()
7835 {
7836 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)];
7837 test_array [0] = 0
7838
7839 ;
7840 return 0;
7841 }
7842 _ACEOF
7843 rm -f conftest.$ac_objext
7844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7845 (eval $ac_compile) 2>&5
7846 ac_status=$?
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); } &&
7849 { ac_try='test -s conftest.$ac_objext'
7850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7851 (eval $ac_try) 2>&5
7852 ac_status=$?
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 (exit $ac_status); }; }; then
7855 ac_lo=0 ac_mid=0
7856 while :; do
7857 cat >conftest.$ac_ext <<_ACEOF
7858 #line $LINENO "configure"
7859 #include "confdefs.h"
7860 $ac_includes_default
7861 #ifdef F77_DUMMY_MAIN
7862 # ifdef __cplusplus
7863 extern "C"
7864 # endif
7865 int F77_DUMMY_MAIN() { return 1; }
7866 #endif
7867 int
7868 main ()
7869 {
7870 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
7871 test_array [0] = 0
7872
7873 ;
7874 return 0;
7875 }
7876 _ACEOF
7877 rm -f conftest.$ac_objext
7878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7879 (eval $ac_compile) 2>&5
7880 ac_status=$?
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); } &&
7883 { ac_try='test -s conftest.$ac_objext'
7884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7885 (eval $ac_try) 2>&5
7886 ac_status=$?
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); }; }; then
7889 ac_hi=$ac_mid; break
7890 else
7891 echo "$as_me: failed program was:" >&5
7892 cat conftest.$ac_ext >&5
7893 ac_lo=`expr $ac_mid + 1`
7894 if test $ac_lo -le $ac_mid; then
7895 ac_lo= ac_hi=
7896 break
7897 fi
7898 ac_mid=`expr 2 '*' $ac_mid + 1`
7899 fi
7900 rm -f conftest.$ac_objext conftest.$ac_ext
7901 done
7902 else
7903 echo "$as_me: failed program was:" >&5
7904 cat conftest.$ac_ext >&5
7905 cat >conftest.$ac_ext <<_ACEOF
7906 #line $LINENO "configure"
7907 #include "confdefs.h"
7908 $ac_includes_default
7909 #ifdef F77_DUMMY_MAIN
7910 # ifdef __cplusplus
7911 extern "C"
7912 # endif
7913 int F77_DUMMY_MAIN() { return 1; }
7914 #endif
7915 int
7916 main ()
7917 {
7918 static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)];
7919 test_array [0] = 0
7920
7921 ;
7922 return 0;
7923 }
7924 _ACEOF
7925 rm -f conftest.$ac_objext
7926 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7927 (eval $ac_compile) 2>&5
7928 ac_status=$?
7929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930 (exit $ac_status); } &&
7931 { ac_try='test -s conftest.$ac_objext'
7932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7933 (eval $ac_try) 2>&5
7934 ac_status=$?
7935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7936 (exit $ac_status); }; }; then
7937 ac_hi=-1 ac_mid=-1
7938 while :; do
7939 cat >conftest.$ac_ext <<_ACEOF
7940 #line $LINENO "configure"
7941 #include "confdefs.h"
7942 $ac_includes_default
7943 #ifdef F77_DUMMY_MAIN
7944 # ifdef __cplusplus
7945 extern "C"
7946 # endif
7947 int F77_DUMMY_MAIN() { return 1; }
7948 #endif
7949 int
7950 main ()
7951 {
7952 static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)];
7953 test_array [0] = 0
7954
7955 ;
7956 return 0;
7957 }
7958 _ACEOF
7959 rm -f conftest.$ac_objext
7960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7961 (eval $ac_compile) 2>&5
7962 ac_status=$?
7963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7964 (exit $ac_status); } &&
7965 { ac_try='test -s conftest.$ac_objext'
7966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7967 (eval $ac_try) 2>&5
7968 ac_status=$?
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); }; }; then
7971 ac_lo=$ac_mid; break
7972 else
7973 echo "$as_me: failed program was:" >&5
7974 cat conftest.$ac_ext >&5
7975 ac_hi=`expr '(' $ac_mid ')' - 1`
7976 if test $ac_mid -le $ac_hi; then
7977 ac_lo= ac_hi=
7978 break
7979 fi
7980 ac_mid=`expr 2 '*' $ac_mid`
7981 fi
7982 rm -f conftest.$ac_objext conftest.$ac_ext
7983 done
7984 else
7985 echo "$as_me: failed program was:" >&5
7986 cat conftest.$ac_ext >&5
7987 ac_lo= ac_hi=
7988 fi
7989 rm -f conftest.$ac_objext conftest.$ac_ext
7990 fi
7991 rm -f conftest.$ac_objext conftest.$ac_ext
7992 # Binary search between lo and hi bounds.
7993 while test "x$ac_lo" != "x$ac_hi"; do
7994 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7995 cat >conftest.$ac_ext <<_ACEOF
7996 #line $LINENO "configure"
7997 #include "confdefs.h"
7998 $ac_includes_default
7999 #ifdef F77_DUMMY_MAIN
8000 # ifdef __cplusplus
8001 extern "C"
8002 # endif
8003 int F77_DUMMY_MAIN() { return 1; }
8004 #endif
8005 int
8006 main ()
8007 {
8008 static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)];
8009 test_array [0] = 0
8010
8011 ;
8012 return 0;
8013 }
8014 _ACEOF
8015 rm -f conftest.$ac_objext
8016 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8017 (eval $ac_compile) 2>&5
8018 ac_status=$?
8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020 (exit $ac_status); } &&
8021 { ac_try='test -s conftest.$ac_objext'
8022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8023 (eval $ac_try) 2>&5
8024 ac_status=$?
8025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8026 (exit $ac_status); }; }; then
8027 ac_hi=$ac_mid
8028 else
8029 echo "$as_me: failed program was:" >&5
8030 cat conftest.$ac_ext >&5
8031 ac_lo=`expr '(' $ac_mid ')' + 1`
8032 fi
8033 rm -f conftest.$ac_objext conftest.$ac_ext
8034 done
8035 case $ac_lo in
8036 ?*) ac_cv_sizeof_char=$ac_lo;;
8037 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
8038 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
8039 { (exit 1); exit 1; }; } ;;
8040 esac
8041 else
8042 if test "$cross_compiling" = yes; then
8043 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8044 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8045 { (exit 1); exit 1; }; }
8046 else
8047 cat >conftest.$ac_ext <<_ACEOF
8048 #line $LINENO "configure"
8049 #include "confdefs.h"
8050 $ac_includes_default
8051 long longval () { return (long) (sizeof (char)); }
8052 unsigned long ulongval () { return (long) (sizeof (char)); }
8053 #include <stdio.h>
8054 #include <stdlib.h>
8055 #ifdef F77_DUMMY_MAIN
8056 # ifdef __cplusplus
8057 extern "C"
8058 # endif
8059 int F77_DUMMY_MAIN() { return 1; }
8060 #endif
8061 int
8062 main ()
8063 {
8064
8065 FILE *f = fopen ("conftest.val", "w");
8066 if (! f)
8067 exit (1);
8068 if (((long) (sizeof (char))) < 0)
8069 {
8070 long i = longval ();
8071 if (i != ((long) (sizeof (char))))
8072 exit (1);
8073 fprintf (f, "%ld\n", i);
8074 }
8075 else
8076 {
8077 unsigned long i = ulongval ();
8078 if (i != ((long) (sizeof (char))))
8079 exit (1);
8080 fprintf (f, "%lu\n", i);
8081 }
8082 exit (ferror (f) || fclose (f) != 0);
8083
8084 ;
8085 return 0;
8086 }
8087 _ACEOF
8088 rm -f conftest$ac_exeext
8089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8090 (eval $ac_link) 2>&5
8091 ac_status=$?
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8095 (eval $ac_try) 2>&5
8096 ac_status=$?
8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098 (exit $ac_status); }; }; then
8099 ac_cv_sizeof_char=`cat conftest.val`
8100 else
8101 echo "$as_me: program exited with status $ac_status" >&5
8102 echo "$as_me: failed program was:" >&5
8103 cat conftest.$ac_ext >&5
8104 ( exit $ac_status )
8105 { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77" >&5
8106 echo "$as_me: error: cannot compute sizeof (char), 77" >&2;}
8107 { (exit 1); exit 1; }; }
8108 fi
8109 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8110 fi
8111 fi
8112 rm -f conftest.val
8113 else
8114 ac_cv_sizeof_char=0
8115 fi
8116 fi
8117 echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5
8118 echo "${ECHO_T}$ac_cv_sizeof_char" >&6
8119 cat >>confdefs.h <<_ACEOF
8120 #define SIZEOF_CHAR $ac_cv_sizeof_char
8121 _ACEOF
8122
8123
8124 echo "$as_me:$LINENO: checking for short" >&5
8125 echo $ECHO_N "checking for short... $ECHO_C" >&6
8126 if test "${ac_cv_type_short+set}" = set; then
8127 echo $ECHO_N "(cached) $ECHO_C" >&6
8128 else
8129 cat >conftest.$ac_ext <<_ACEOF
8130 #line $LINENO "configure"
8131 #include "confdefs.h"
8132 $ac_includes_default
8133 #ifdef F77_DUMMY_MAIN
8134 # ifdef __cplusplus
8135 extern "C"
8136 # endif
8137 int F77_DUMMY_MAIN() { return 1; }
8138 #endif
8139 int
8140 main ()
8141 {
8142 if ((short *) 0)
8143 return 0;
8144 if (sizeof (short))
8145 return 0;
8146 ;
8147 return 0;
8148 }
8149 _ACEOF
8150 rm -f conftest.$ac_objext
8151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8152 (eval $ac_compile) 2>&5
8153 ac_status=$?
8154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); } &&
8156 { ac_try='test -s conftest.$ac_objext'
8157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8158 (eval $ac_try) 2>&5
8159 ac_status=$?
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); }; }; then
8162 ac_cv_type_short=yes
8163 else
8164 echo "$as_me: failed program was:" >&5
8165 cat conftest.$ac_ext >&5
8166 ac_cv_type_short=no
8167 fi
8168 rm -f conftest.$ac_objext conftest.$ac_ext
8169 fi
8170 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8171 echo "${ECHO_T}$ac_cv_type_short" >&6
8172
8173 echo "$as_me:$LINENO: checking size of short" >&5
8174 echo $ECHO_N "checking size of short... $ECHO_C" >&6
8175 if test "${ac_cv_sizeof_short+set}" = set; then
8176 echo $ECHO_N "(cached) $ECHO_C" >&6
8177 else
8178 if test "$ac_cv_type_short" = yes; then
8179 # The cast to unsigned long works around a bug in the HP C Compiler
8180 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8181 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8182 # This bug is HP SR number 8606223364.
8183 if test "$cross_compiling" = yes; then
8184 # Depending upon the size, compute the lo and hi bounds.
8185 cat >conftest.$ac_ext <<_ACEOF
8186 #line $LINENO "configure"
8187 #include "confdefs.h"
8188 $ac_includes_default
8189 #ifdef F77_DUMMY_MAIN
8190 # ifdef __cplusplus
8191 extern "C"
8192 # endif
8193 int F77_DUMMY_MAIN() { return 1; }
8194 #endif
8195 int
8196 main ()
8197 {
8198 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
8199 test_array [0] = 0
8200
8201 ;
8202 return 0;
8203 }
8204 _ACEOF
8205 rm -f conftest.$ac_objext
8206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8207 (eval $ac_compile) 2>&5
8208 ac_status=$?
8209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8210 (exit $ac_status); } &&
8211 { ac_try='test -s conftest.$ac_objext'
8212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8213 (eval $ac_try) 2>&5
8214 ac_status=$?
8215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216 (exit $ac_status); }; }; then
8217 ac_lo=0 ac_mid=0
8218 while :; do
8219 cat >conftest.$ac_ext <<_ACEOF
8220 #line $LINENO "configure"
8221 #include "confdefs.h"
8222 $ac_includes_default
8223 #ifdef F77_DUMMY_MAIN
8224 # ifdef __cplusplus
8225 extern "C"
8226 # endif
8227 int F77_DUMMY_MAIN() { return 1; }
8228 #endif
8229 int
8230 main ()
8231 {
8232 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
8233 test_array [0] = 0
8234
8235 ;
8236 return 0;
8237 }
8238 _ACEOF
8239 rm -f conftest.$ac_objext
8240 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8241 (eval $ac_compile) 2>&5
8242 ac_status=$?
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); } &&
8245 { ac_try='test -s conftest.$ac_objext'
8246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8247 (eval $ac_try) 2>&5
8248 ac_status=$?
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); }; }; then
8251 ac_hi=$ac_mid; break
8252 else
8253 echo "$as_me: failed program was:" >&5
8254 cat conftest.$ac_ext >&5
8255 ac_lo=`expr $ac_mid + 1`
8256 if test $ac_lo -le $ac_mid; then
8257 ac_lo= ac_hi=
8258 break
8259 fi
8260 ac_mid=`expr 2 '*' $ac_mid + 1`
8261 fi
8262 rm -f conftest.$ac_objext conftest.$ac_ext
8263 done
8264 else
8265 echo "$as_me: failed program was:" >&5
8266 cat conftest.$ac_ext >&5
8267 cat >conftest.$ac_ext <<_ACEOF
8268 #line $LINENO "configure"
8269 #include "confdefs.h"
8270 $ac_includes_default
8271 #ifdef F77_DUMMY_MAIN
8272 # ifdef __cplusplus
8273 extern "C"
8274 # endif
8275 int F77_DUMMY_MAIN() { return 1; }
8276 #endif
8277 int
8278 main ()
8279 {
8280 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
8281 test_array [0] = 0
8282
8283 ;
8284 return 0;
8285 }
8286 _ACEOF
8287 rm -f conftest.$ac_objext
8288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8289 (eval $ac_compile) 2>&5
8290 ac_status=$?
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); } &&
8293 { ac_try='test -s conftest.$ac_objext'
8294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8295 (eval $ac_try) 2>&5
8296 ac_status=$?
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); }; }; then
8299 ac_hi=-1 ac_mid=-1
8300 while :; do
8301 cat >conftest.$ac_ext <<_ACEOF
8302 #line $LINENO "configure"
8303 #include "confdefs.h"
8304 $ac_includes_default
8305 #ifdef F77_DUMMY_MAIN
8306 # ifdef __cplusplus
8307 extern "C"
8308 # endif
8309 int F77_DUMMY_MAIN() { return 1; }
8310 #endif
8311 int
8312 main ()
8313 {
8314 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
8315 test_array [0] = 0
8316
8317 ;
8318 return 0;
8319 }
8320 _ACEOF
8321 rm -f conftest.$ac_objext
8322 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8323 (eval $ac_compile) 2>&5
8324 ac_status=$?
8325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8326 (exit $ac_status); } &&
8327 { ac_try='test -s conftest.$ac_objext'
8328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8329 (eval $ac_try) 2>&5
8330 ac_status=$?
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); }; }; then
8333 ac_lo=$ac_mid; break
8334 else
8335 echo "$as_me: failed program was:" >&5
8336 cat conftest.$ac_ext >&5
8337 ac_hi=`expr '(' $ac_mid ')' - 1`
8338 if test $ac_mid -le $ac_hi; then
8339 ac_lo= ac_hi=
8340 break
8341 fi
8342 ac_mid=`expr 2 '*' $ac_mid`
8343 fi
8344 rm -f conftest.$ac_objext conftest.$ac_ext
8345 done
8346 else
8347 echo "$as_me: failed program was:" >&5
8348 cat conftest.$ac_ext >&5
8349 ac_lo= ac_hi=
8350 fi
8351 rm -f conftest.$ac_objext conftest.$ac_ext
8352 fi
8353 rm -f conftest.$ac_objext conftest.$ac_ext
8354 # Binary search between lo and hi bounds.
8355 while test "x$ac_lo" != "x$ac_hi"; do
8356 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8357 cat >conftest.$ac_ext <<_ACEOF
8358 #line $LINENO "configure"
8359 #include "confdefs.h"
8360 $ac_includes_default
8361 #ifdef F77_DUMMY_MAIN
8362 # ifdef __cplusplus
8363 extern "C"
8364 # endif
8365 int F77_DUMMY_MAIN() { return 1; }
8366 #endif
8367 int
8368 main ()
8369 {
8370 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
8371 test_array [0] = 0
8372
8373 ;
8374 return 0;
8375 }
8376 _ACEOF
8377 rm -f conftest.$ac_objext
8378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8379 (eval $ac_compile) 2>&5
8380 ac_status=$?
8381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8382 (exit $ac_status); } &&
8383 { ac_try='test -s conftest.$ac_objext'
8384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8385 (eval $ac_try) 2>&5
8386 ac_status=$?
8387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8388 (exit $ac_status); }; }; then
8389 ac_hi=$ac_mid
8390 else
8391 echo "$as_me: failed program was:" >&5
8392 cat conftest.$ac_ext >&5
8393 ac_lo=`expr '(' $ac_mid ')' + 1`
8394 fi
8395 rm -f conftest.$ac_objext conftest.$ac_ext
8396 done
8397 case $ac_lo in
8398 ?*) ac_cv_sizeof_short=$ac_lo;;
8399 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
8400 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
8401 { (exit 1); exit 1; }; } ;;
8402 esac
8403 else
8404 if test "$cross_compiling" = yes; then
8405 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8406 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8407 { (exit 1); exit 1; }; }
8408 else
8409 cat >conftest.$ac_ext <<_ACEOF
8410 #line $LINENO "configure"
8411 #include "confdefs.h"
8412 $ac_includes_default
8413 long longval () { return (long) (sizeof (short)); }
8414 unsigned long ulongval () { return (long) (sizeof (short)); }
8415 #include <stdio.h>
8416 #include <stdlib.h>
8417 #ifdef F77_DUMMY_MAIN
8418 # ifdef __cplusplus
8419 extern "C"
8420 # endif
8421 int F77_DUMMY_MAIN() { return 1; }
8422 #endif
8423 int
8424 main ()
8425 {
8426
8427 FILE *f = fopen ("conftest.val", "w");
8428 if (! f)
8429 exit (1);
8430 if (((long) (sizeof (short))) < 0)
8431 {
8432 long i = longval ();
8433 if (i != ((long) (sizeof (short))))
8434 exit (1);
8435 fprintf (f, "%ld\n", i);
8436 }
8437 else
8438 {
8439 unsigned long i = ulongval ();
8440 if (i != ((long) (sizeof (short))))
8441 exit (1);
8442 fprintf (f, "%lu\n", i);
8443 }
8444 exit (ferror (f) || fclose (f) != 0);
8445
8446 ;
8447 return 0;
8448 }
8449 _ACEOF
8450 rm -f conftest$ac_exeext
8451 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8452 (eval $ac_link) 2>&5
8453 ac_status=$?
8454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8457 (eval $ac_try) 2>&5
8458 ac_status=$?
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); }; }; then
8461 ac_cv_sizeof_short=`cat conftest.val`
8462 else
8463 echo "$as_me: program exited with status $ac_status" >&5
8464 echo "$as_me: failed program was:" >&5
8465 cat conftest.$ac_ext >&5
8466 ( exit $ac_status )
8467 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77" >&5
8468 echo "$as_me: error: cannot compute sizeof (short), 77" >&2;}
8469 { (exit 1); exit 1; }; }
8470 fi
8471 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8472 fi
8473 fi
8474 rm -f conftest.val
8475 else
8476 ac_cv_sizeof_short=0
8477 fi
8478 fi
8479 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8480 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
8481 cat >>confdefs.h <<_ACEOF
8482 #define SIZEOF_SHORT $ac_cv_sizeof_short
8483 _ACEOF
8484
8485
8486 echo "$as_me:$LINENO: checking for int" >&5
8487 echo $ECHO_N "checking for int... $ECHO_C" >&6
8488 if test "${ac_cv_type_int+set}" = set; then
8489 echo $ECHO_N "(cached) $ECHO_C" >&6
8490 else
8491 cat >conftest.$ac_ext <<_ACEOF
8492 #line $LINENO "configure"
8493 #include "confdefs.h"
8494 $ac_includes_default
8495 #ifdef F77_DUMMY_MAIN
8496 # ifdef __cplusplus
8497 extern "C"
8498 # endif
8499 int F77_DUMMY_MAIN() { return 1; }
8500 #endif
8501 int
8502 main ()
8503 {
8504 if ((int *) 0)
8505 return 0;
8506 if (sizeof (int))
8507 return 0;
8508 ;
8509 return 0;
8510 }
8511 _ACEOF
8512 rm -f conftest.$ac_objext
8513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8514 (eval $ac_compile) 2>&5
8515 ac_status=$?
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); } &&
8518 { ac_try='test -s conftest.$ac_objext'
8519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8520 (eval $ac_try) 2>&5
8521 ac_status=$?
8522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8523 (exit $ac_status); }; }; then
8524 ac_cv_type_int=yes
8525 else
8526 echo "$as_me: failed program was:" >&5
8527 cat conftest.$ac_ext >&5
8528 ac_cv_type_int=no
8529 fi
8530 rm -f conftest.$ac_objext conftest.$ac_ext
8531 fi
8532 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8533 echo "${ECHO_T}$ac_cv_type_int" >&6
8534
8535 echo "$as_me:$LINENO: checking size of int" >&5
8536 echo $ECHO_N "checking size of int... $ECHO_C" >&6
8537 if test "${ac_cv_sizeof_int+set}" = set; then
8538 echo $ECHO_N "(cached) $ECHO_C" >&6
8539 else
8540 if test "$ac_cv_type_int" = yes; then
8541 # The cast to unsigned long works around a bug in the HP C Compiler
8542 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8543 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8544 # This bug is HP SR number 8606223364.
8545 if test "$cross_compiling" = yes; then
8546 # Depending upon the size, compute the lo and hi bounds.
8547 cat >conftest.$ac_ext <<_ACEOF
8548 #line $LINENO "configure"
8549 #include "confdefs.h"
8550 $ac_includes_default
8551 #ifdef F77_DUMMY_MAIN
8552 # ifdef __cplusplus
8553 extern "C"
8554 # endif
8555 int F77_DUMMY_MAIN() { return 1; }
8556 #endif
8557 int
8558 main ()
8559 {
8560 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
8561 test_array [0] = 0
8562
8563 ;
8564 return 0;
8565 }
8566 _ACEOF
8567 rm -f conftest.$ac_objext
8568 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8569 (eval $ac_compile) 2>&5
8570 ac_status=$?
8571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); } &&
8573 { ac_try='test -s conftest.$ac_objext'
8574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8575 (eval $ac_try) 2>&5
8576 ac_status=$?
8577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8578 (exit $ac_status); }; }; then
8579 ac_lo=0 ac_mid=0
8580 while :; do
8581 cat >conftest.$ac_ext <<_ACEOF
8582 #line $LINENO "configure"
8583 #include "confdefs.h"
8584 $ac_includes_default
8585 #ifdef F77_DUMMY_MAIN
8586 # ifdef __cplusplus
8587 extern "C"
8588 # endif
8589 int F77_DUMMY_MAIN() { return 1; }
8590 #endif
8591 int
8592 main ()
8593 {
8594 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8595 test_array [0] = 0
8596
8597 ;
8598 return 0;
8599 }
8600 _ACEOF
8601 rm -f conftest.$ac_objext
8602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8603 (eval $ac_compile) 2>&5
8604 ac_status=$?
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); } &&
8607 { ac_try='test -s conftest.$ac_objext'
8608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8609 (eval $ac_try) 2>&5
8610 ac_status=$?
8611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612 (exit $ac_status); }; }; then
8613 ac_hi=$ac_mid; break
8614 else
8615 echo "$as_me: failed program was:" >&5
8616 cat conftest.$ac_ext >&5
8617 ac_lo=`expr $ac_mid + 1`
8618 if test $ac_lo -le $ac_mid; then
8619 ac_lo= ac_hi=
8620 break
8621 fi
8622 ac_mid=`expr 2 '*' $ac_mid + 1`
8623 fi
8624 rm -f conftest.$ac_objext conftest.$ac_ext
8625 done
8626 else
8627 echo "$as_me: failed program was:" >&5
8628 cat conftest.$ac_ext >&5
8629 cat >conftest.$ac_ext <<_ACEOF
8630 #line $LINENO "configure"
8631 #include "confdefs.h"
8632 $ac_includes_default
8633 #ifdef F77_DUMMY_MAIN
8634 # ifdef __cplusplus
8635 extern "C"
8636 # endif
8637 int F77_DUMMY_MAIN() { return 1; }
8638 #endif
8639 int
8640 main ()
8641 {
8642 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
8643 test_array [0] = 0
8644
8645 ;
8646 return 0;
8647 }
8648 _ACEOF
8649 rm -f conftest.$ac_objext
8650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8651 (eval $ac_compile) 2>&5
8652 ac_status=$?
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); } &&
8655 { ac_try='test -s conftest.$ac_objext'
8656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8657 (eval $ac_try) 2>&5
8658 ac_status=$?
8659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660 (exit $ac_status); }; }; then
8661 ac_hi=-1 ac_mid=-1
8662 while :; do
8663 cat >conftest.$ac_ext <<_ACEOF
8664 #line $LINENO "configure"
8665 #include "confdefs.h"
8666 $ac_includes_default
8667 #ifdef F77_DUMMY_MAIN
8668 # ifdef __cplusplus
8669 extern "C"
8670 # endif
8671 int F77_DUMMY_MAIN() { return 1; }
8672 #endif
8673 int
8674 main ()
8675 {
8676 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
8677 test_array [0] = 0
8678
8679 ;
8680 return 0;
8681 }
8682 _ACEOF
8683 rm -f conftest.$ac_objext
8684 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8685 (eval $ac_compile) 2>&5
8686 ac_status=$?
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); } &&
8689 { ac_try='test -s conftest.$ac_objext'
8690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8691 (eval $ac_try) 2>&5
8692 ac_status=$?
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); }; }; then
8695 ac_lo=$ac_mid; break
8696 else
8697 echo "$as_me: failed program was:" >&5
8698 cat conftest.$ac_ext >&5
8699 ac_hi=`expr '(' $ac_mid ')' - 1`
8700 if test $ac_mid -le $ac_hi; then
8701 ac_lo= ac_hi=
8702 break
8703 fi
8704 ac_mid=`expr 2 '*' $ac_mid`
8705 fi
8706 rm -f conftest.$ac_objext conftest.$ac_ext
8707 done
8708 else
8709 echo "$as_me: failed program was:" >&5
8710 cat conftest.$ac_ext >&5
8711 ac_lo= ac_hi=
8712 fi
8713 rm -f conftest.$ac_objext conftest.$ac_ext
8714 fi
8715 rm -f conftest.$ac_objext conftest.$ac_ext
8716 # Binary search between lo and hi bounds.
8717 while test "x$ac_lo" != "x$ac_hi"; do
8718 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8719 cat >conftest.$ac_ext <<_ACEOF
8720 #line $LINENO "configure"
8721 #include "confdefs.h"
8722 $ac_includes_default
8723 #ifdef F77_DUMMY_MAIN
8724 # ifdef __cplusplus
8725 extern "C"
8726 # endif
8727 int F77_DUMMY_MAIN() { return 1; }
8728 #endif
8729 int
8730 main ()
8731 {
8732 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8733 test_array [0] = 0
8734
8735 ;
8736 return 0;
8737 }
8738 _ACEOF
8739 rm -f conftest.$ac_objext
8740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8741 (eval $ac_compile) 2>&5
8742 ac_status=$?
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); } &&
8745 { ac_try='test -s conftest.$ac_objext'
8746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8747 (eval $ac_try) 2>&5
8748 ac_status=$?
8749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8750 (exit $ac_status); }; }; then
8751 ac_hi=$ac_mid
8752 else
8753 echo "$as_me: failed program was:" >&5
8754 cat conftest.$ac_ext >&5
8755 ac_lo=`expr '(' $ac_mid ')' + 1`
8756 fi
8757 rm -f conftest.$ac_objext conftest.$ac_ext
8758 done
8759 case $ac_lo in
8760 ?*) ac_cv_sizeof_int=$ac_lo;;
8761 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
8762 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
8763 { (exit 1); exit 1; }; } ;;
8764 esac
8765 else
8766 if test "$cross_compiling" = yes; then
8767 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling" >&5
8768 echo "$as_me: error: cannot run test program while cross compiling" >&2;}
8769 { (exit 1); exit 1; }; }
8770 else
8771 cat >conftest.$ac_ext <<_ACEOF
8772 #line $LINENO "configure"
8773 #include "confdefs.h"
8774 $ac_includes_default
8775 long longval () { return (long) (sizeof (int)); }
8776 unsigned long ulongval () { return (long) (sizeof (int)); }
8777 #include <stdio.h>
8778 #include <stdlib.h>
8779 #ifdef F77_DUMMY_MAIN
8780 # ifdef __cplusplus
8781 extern "C"
8782 # endif
8783 int F77_DUMMY_MAIN() { return 1; }
8784 #endif
8785 int
8786 main ()
8787 {
8788
8789 FILE *f = fopen ("conftest.val", "w");
8790 if (! f)
8791 exit (1);
8792 if (((long) (sizeof (int))) < 0)
8793 {
8794 long i = longval ();
8795 if (i != ((long) (sizeof (int))))
8796 exit (1);
8797 fprintf (f, "%ld\n", i);
8798 }
8799 else
8800 {
8801 unsigned long i = ulongval ();
8802 if (i != ((long) (sizeof (int))))
8803 exit (1);
8804 fprintf (f, "%lu\n", i);
8805 }
8806 exit (ferror (f) || fclose (f) != 0);
8807
8808 ;
8809 return 0;
8810 }
8811 _ACEOF
8812 rm -f conftest$ac_exeext
8813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8814 (eval $ac_link) 2>&5
8815 ac_status=$?
8816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8819 (eval $ac_try) 2>&5
8820 ac_status=$?
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); }; }; then
8823 ac_cv_sizeof_int=`cat conftest.val`
8824 else
8825 echo "$as_me: program exited with status $ac_status" >&5
8826 echo "$as_me: failed program was:" >&5
8827 cat conftest.$ac_ext >&5
8828 ( exit $ac_status )
8829 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77" >&5
8830 echo "$as_me: error: cannot compute sizeof (int), 77" >&2;}
8831 { (exit 1); exit 1; }; }
8832 fi
8833 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8834 fi
8835 fi
8836 rm -f conftest.val
8837 else
8838 ac_cv_sizeof_int=0
8839 fi
8840 fi
8841 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8842 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
8843 cat >>confdefs.h <<_ACEOF
8844 #define SIZEOF_INT $ac_cv_sizeof_int
8845 _ACEOF
8846
8847
8848 if test x"$ac_cv_sizeof_char" != x"1" -o \
8849 x"$ac_cv_sizeof_short" != x"2" -o \
8850 x"$ac_cv_sizeof_int" != x"4"; then
8851 { { echo "$as_me:$LINENO: error: can not build a default inttypes.h" >&5
8852 echo "$as_me: error: can not build a default inttypes.h" >&2;}
8853 { (exit 1); exit 1; }; }
8854 fi
8855 cat >include/inttypes.h << EOF
8856 /* default inttypes.h for people who do not have it on their system */
8857
8858 #ifndef _INTTYPES_H
8859 #define _INTTYPES_H
8860 #if (!defined __int8_t_defined) && (!defined __BIT_TYPES_DEFINED__)
8861 #define __int8_t_defined
8862 typedef signed char int8_t;
8863 typedef signed short int16_t;
8864 typedef signed int int32_t;
8865 #ifdef ARCH_X86
8866 typedef signed long long int64_t;
8867 #endif
8868 #endif
8869 #if (!defined _LINUX_TYPES_H)
8870 typedef unsigned char uint8_t;
8871 typedef unsigned short uint16_t;
8872 typedef unsigned int uint32_t;
8873 #ifdef ARCH_X86
8874 typedef unsigned long long uint64_t;
8875 #endif
8876 #endif
8877 #endif
8878 EOF
8879
8880 fi
8881
8882
8883
8884 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
8885 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
8886 if test "${ac_cv_prog_cc_stdc+set}" = set; then
8887 echo $ECHO_N "(cached) $ECHO_C" >&6
8888 else
8889 ac_cv_prog_cc_stdc=no
8890 ac_save_CC=$CC
8891 cat >conftest.$ac_ext <<_ACEOF
8892 #line $LINENO "configure"
8893 #include "confdefs.h"
8894 #include <stdarg.h>
8895 #include <stdio.h>
8896 #include <sys/types.h>
8897 #include <sys/stat.h>
8898 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8899 struct buf { int x; };
8900 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8901 static char *e (p, i)
8902 char **p;
8903 int i;
8904 {
8905 return p[i];
8906 }
8907 static char *f (char * (*g) (char **, int), char **p, ...)
8908 {
8909 char *s;
8910 va_list v;
8911 va_start (v,p);
8912 s = g (p, va_arg (v,int));
8913 va_end (v);
8914 return s;
8915 }
8916 int test (int i, double x);
8917 struct s1 {int (*f) (int a);};
8918 struct s2 {int (*f) (double a);};
8919 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8920 int argc;
8921 char **argv;
8922 #ifdef F77_DUMMY_MAIN
8923 # ifdef __cplusplus
8924 extern "C"
8925 # endif
8926 int F77_DUMMY_MAIN() { return 1; }
8927 #endif
8928 int
8929 main ()
8930 {
8931 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8932 ;
8933 return 0;
8934 }
8935 _ACEOF
8936 # Don't try gcc -ansi; that turns off useful extensions and
8937 # breaks some systems' header files.
8938 # AIX -qlanglvl=ansi
8939 # Ultrix and OSF/1 -std1
8940 # HP-UX 10.20 and later -Ae
8941 # HP-UX older versions -Aa -D_HPUX_SOURCE
8942 # SVR4 -Xc -D__EXTENSIONS__
8943 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8944 do
8945 CC="$ac_save_CC $ac_arg"
8946 rm -f conftest.$ac_objext
8947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8948 (eval $ac_compile) 2>&5
8949 ac_status=$?
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); } &&
8952 { ac_try='test -s conftest.$ac_objext'
8953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8954 (eval $ac_try) 2>&5
8955 ac_status=$?
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); }; }; then
8958 ac_cv_prog_cc_stdc=$ac_arg
8959 break
8960 else
8961 echo "$as_me: failed program was:" >&5
8962 cat conftest.$ac_ext >&5
8963 fi
8964 rm -f conftest.$ac_objext
8965 done
8966 rm -f conftest.$ac_ext conftest.$ac_objext
8967 CC=$ac_save_CC
8968
8969 fi
8970
8971 case "x$ac_cv_prog_cc_stdc" in
8972 x|xno)
8973 echo "$as_me:$LINENO: result: none needed" >&5
8974 echo "${ECHO_T}none needed" >&6 ;;
8975 *)
8976 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
8977 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
8978 CC="$CC $ac_cv_prog_cc_stdc" ;;
8979 esac
8980
8981 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8982 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
8983 if test "${ac_cv_c_const+set}" = set; then
8984 echo $ECHO_N "(cached) $ECHO_C" >&6
8985 else
8986 cat >conftest.$ac_ext <<_ACEOF
8987 #line $LINENO "configure"
8988 #include "confdefs.h"
8989
8990 #ifdef F77_DUMMY_MAIN
8991 # ifdef __cplusplus
8992 extern "C"
8993 # endif
8994 int F77_DUMMY_MAIN() { return 1; }
8995 #endif
8996 int
8997 main ()
8998 {
8999 /* FIXME: Include the comments suggested by Paul. */
9000 #ifndef __cplusplus
9001 /* Ultrix mips cc rejects this. */
9002 typedef int charset[2];
9003 const charset x;
9004 /* SunOS 4.1.1 cc rejects this. */
9005 char const *const *ccp;
9006 char **p;
9007 /* NEC SVR4.0.2 mips cc rejects this. */
9008 struct point {int x, y;};
9009 static struct point const zero = {0,0};
9010 /* AIX XL C 1.02.0.0 rejects this.
9011 It does not let you subtract one const X* pointer from another in
9012 an arm of an if-expression whose if-part is not a constant
9013 expression */
9014 const char *g = "string";
9015 ccp = &g + (g ? g-g : 0);
9016 /* HPUX 7.0 cc rejects these. */
9017 ++ccp;
9018 p = (char**) ccp;
9019 ccp = (char const *const *) p;
9020 { /* SCO 3.2v4 cc rejects this. */
9021 char *t;
9022 char const *s = 0 ? (char *) 0 : (char const *) 0;
9023
9024 *t++ = 0;
9025 }
9026 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9027 int x[] = {25, 17};
9028 const int *foo = &x[0];
9029 ++foo;
9030 }
9031 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9032 typedef const int *iptr;
9033 iptr p = 0;
9034 ++p;
9035 }
9036 { /* AIX XL C 1.02.0.0 rejects this saying
9037 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9038 struct s { int j; const int *ap[3]; };
9039 struct s *b; b->j = 5;
9040 }
9041 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9042 const int foo = 10;
9043 }
9044 #endif
9045
9046 ;
9047 return 0;
9048 }
9049 _ACEOF
9050 rm -f conftest.$ac_objext
9051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9052 (eval $ac_compile) 2>&5
9053 ac_status=$?
9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); } &&
9056 { ac_try='test -s conftest.$ac_objext'
9057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9058 (eval $ac_try) 2>&5
9059 ac_status=$?
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); }; }; then
9062 ac_cv_c_const=yes
9063 else
9064 echo "$as_me: failed program was:" >&5
9065 cat conftest.$ac_ext >&5
9066 ac_cv_c_const=no
9067 fi
9068 rm -f conftest.$ac_objext conftest.$ac_ext
9069 fi
9070 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9071 echo "${ECHO_T}$ac_cv_c_const" >&6
9072 if test $ac_cv_c_const = no; then
9073
9074 cat >>confdefs.h <<\_ACEOF
9075 #define const
9076 _ACEOF
9077
9078 fi
9079
9080 echo "$as_me:$LINENO: checking for inline" >&5
9081 echo $ECHO_N "checking for inline... $ECHO_C" >&6
9082 if test "${ac_cv_c_inline+set}" = set; then
9083 echo $ECHO_N "(cached) $ECHO_C" >&6
9084 else
9085 ac_cv_c_inline=no
9086 for ac_kw in inline __inline__ __inline; do
9087 cat >conftest.$ac_ext <<_ACEOF
9088 #line $LINENO "configure"
9089 #include "confdefs.h"
9090 #ifndef __cplusplus
9091 static $ac_kw int static_foo () {return 0; }
9092 $ac_kw int foo () {return 0; }
9093 #endif
9094
9095 _ACEOF
9096 rm -f conftest.$ac_objext
9097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9098 (eval $ac_compile) 2>&5
9099 ac_status=$?
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); } &&
9102 { ac_try='test -s conftest.$ac_objext'
9103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9104 (eval $ac_try) 2>&5
9105 ac_status=$?
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); }; }; then
9108 ac_cv_c_inline=$ac_kw; break
9109 else
9110 echo "$as_me: failed program was:" >&5
9111 cat conftest.$ac_ext >&5
9112 fi
9113 rm -f conftest.$ac_objext conftest.$ac_ext
9114 done
9115
9116 fi
9117 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9118 echo "${ECHO_T}$ac_cv_c_inline" >&6
9119 case $ac_cv_c_inline in
9120 inline | yes) ;;
9121 no)
9122 cat >>confdefs.h <<\_ACEOF
9123 #define inline
9124 _ACEOF
9125 ;;
9126 *) cat >>confdefs.h <<_ACEOF
9127 #define inline $ac_cv_c_inline
9128 _ACEOF
9129 ;;
9130 esac
9131
9132 if test x"$GCC" = x"yes" -a x"$ac_cv_c_inline" = x"inline"; then
9133 echo "$as_me:$LINENO: checking for always_inline" >&5
9134 echo $ECHO_N "checking for always_inline... $ECHO_C" >&6
9135 SAVE_CFLAGS="$CFLAGS"
9136 CFLAGS="$CFLAGS -Wall -Werror"
9137 cat >conftest.$ac_ext <<_ACEOF
9138 #line $LINENO "configure"
9139 #include "confdefs.h"
9140
9141 #ifdef F77_DUMMY_MAIN
9142 # ifdef __cplusplus
9143 extern "C"
9144 # endif
9145 int F77_DUMMY_MAIN() { return 1; }
9146 #endif
9147 int
9148 main ()
9149 {
9150 __attribute__ ((__always_inline__)) void f (void);
9151 ;
9152 return 0;
9153 }
9154 _ACEOF
9155 rm -f conftest.$ac_objext
9156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9157 (eval $ac_compile) 2>&5
9158 ac_status=$?
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); } &&
9161 { ac_try='test -s conftest.$ac_objext'
9162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9163 (eval $ac_try) 2>&5
9164 ac_status=$?
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 (exit $ac_status); }; }; then
9167 ac_cv_always_inline=yes
9168 else
9169 echo "$as_me: failed program was:" >&5
9170 cat conftest.$ac_ext >&5
9171 ac_cv_always_inline=no
9172 fi
9173 rm -f conftest.$ac_objext conftest.$ac_ext
9174 CFLAGS="$SAVE_CFLAGS"
9175 echo "$as_me:$LINENO: result: $ac_cv_always_inline" >&5
9176 echo "${ECHO_T}$ac_cv_always_inline" >&6
9177 if test x"$ac_cv_always_inline" = x"yes"; then
9178 cat >>confdefs.h <<_ACEOF
9179 #define inline __attribute__ ((__always_inline__))
9180 _ACEOF
9181
9182 fi
9183 fi
9184 echo "$as_me:$LINENO: checking for restrict" >&5
9185 echo $ECHO_N "checking for restrict... $ECHO_C" >&6
9186 ac_cv_c_restrict=no
9187 for ac_kw in restrict __restrict__ __restrict; do
9188 cat >conftest.$ac_ext <<_ACEOF
9189 #line $LINENO "configure"
9190 #include "confdefs.h"
9191
9192 #ifdef F77_DUMMY_MAIN
9193 # ifdef __cplusplus
9194 extern "C"
9195 # endif
9196 int F77_DUMMY_MAIN() { return 1; }
9197 #endif
9198 int
9199 main ()
9200 {
9201 char * $ac_kw p;
9202 ;
9203 return 0;
9204 }
9205 _ACEOF
9206 rm -f conftest.$ac_objext
9207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9208 (eval $ac_compile) 2>&5
9209 ac_status=$?
9210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9211 (exit $ac_status); } &&
9212 { ac_try='test -s conftest.$ac_objext'
9213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9214 (eval $ac_try) 2>&5
9215 ac_status=$?
9216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217 (exit $ac_status); }; }; then
9218 ac_cv_c_restrict=$ac_kw; break
9219 else
9220 echo "$as_me: failed program was:" >&5
9221 cat conftest.$ac_ext >&5
9222 fi
9223 rm -f conftest.$ac_objext conftest.$ac_ext
9224 done
9225 echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
9226 echo "${ECHO_T}$ac_cv_c_restrict" >&6
9227 case $ac_cv_c_restrict in
9228 restrict) ;;
9229 no)
9230 cat >>confdefs.h <<\_ACEOF
9231 #define restrict
9232 _ACEOF
9233 ;;
9234 *) cat >>confdefs.h <<_ACEOF
9235 #define restrict $ac_cv_c_restrict
9236 _ACEOF
9237 ;;
9238 esac
9239 echo "$as_me:$LINENO: checking for size_t" >&5
9240 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
9241 if test "${ac_cv_type_size_t+set}" = set; then
9242 echo $ECHO_N "(cached) $ECHO_C" >&6
9243 else
9244 cat >conftest.$ac_ext <<_ACEOF
9245 #line $LINENO "configure"
9246 #include "confdefs.h"
9247 $ac_includes_default
9248 #ifdef F77_DUMMY_MAIN
9249 # ifdef __cplusplus
9250 extern "C"
9251 # endif
9252 int F77_DUMMY_MAIN() { return 1; }
9253 #endif
9254 int
9255 main ()
9256 {
9257 if ((size_t *) 0)
9258 return 0;
9259 if (sizeof (size_t))
9260 return 0;
9261 ;
9262 return 0;
9263 }
9264 _ACEOF
9265 rm -f conftest.$ac_objext
9266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9267 (eval $ac_compile) 2>&5
9268 ac_status=$?
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); } &&
9271 { ac_try='test -s conftest.$ac_objext'
9272 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9273 (eval $ac_try) 2>&5
9274 ac_status=$?
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); }; }; then
9277 ac_cv_type_size_t=yes
9278 else
9279 echo "$as_me: failed program was:" >&5
9280 cat conftest.$ac_ext >&5
9281 ac_cv_type_size_t=no
9282 fi
9283 rm -f conftest.$ac_objext conftest.$ac_ext
9284 fi
9285 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
9286 echo "${ECHO_T}$ac_cv_type_size_t" >&6
9287 if test $ac_cv_type_size_t = yes; then
9288 :
9289 else
9290
9291 cat >>confdefs.h <<_ACEOF
9292 #define size_t unsigned
9293 _ACEOF
9294
9295 fi
9296
9297 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
9298 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
9299 if test "${ac_cv_c_bigendian+set}" = set; then
9300 echo $ECHO_N "(cached) $ECHO_C" >&6
9301 else
9302 # See if sys/param.h defines the BYTE_ORDER macro.
9303 cat >conftest.$ac_ext <<_ACEOF
9304 #line $LINENO "configure"
9305 #include "confdefs.h"
9306 #include <sys/types.h>
9307 #include <sys/param.h>
9308
9309 #ifdef F77_DUMMY_MAIN
9310 # ifdef __cplusplus
9311 extern "C"
9312 # endif
9313 int F77_DUMMY_MAIN() { return 1; }
9314 #endif
9315 int
9316 main ()
9317 {
9318 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
9319 bogus endian macros
9320 #endif
9321
9322 ;
9323 return 0;
9324 }
9325 _ACEOF
9326 rm -f conftest.$ac_objext
9327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9328 (eval $ac_compile) 2>&5
9329 ac_status=$?
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); } &&
9332 { ac_try='test -s conftest.$ac_objext'
9333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9334 (eval $ac_try) 2>&5
9335 ac_status=$?
9336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337 (exit $ac_status); }; }; then
9338 # It does; now see whether it defined to BIG_ENDIAN or not.
9339 cat >conftest.$ac_ext <<_ACEOF
9340 #line $LINENO "configure"
9341 #include "confdefs.h"
9342 #include <sys/types.h>
9343 #include <sys/param.h>
9344
9345 #ifdef F77_DUMMY_MAIN
9346 # ifdef __cplusplus
9347 extern "C"
9348 # endif
9349 int F77_DUMMY_MAIN() { return 1; }
9350 #endif
9351 int
9352 main ()
9353 {
9354 #if BYTE_ORDER != BIG_ENDIAN
9355 not big endian
9356 #endif
9357
9358 ;
9359 return 0;
9360 }
9361 _ACEOF
9362 rm -f conftest.$ac_objext
9363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9364 (eval $ac_compile) 2>&5
9365 ac_status=$?
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); } &&
9368 { ac_try='test -s conftest.$ac_objext'
9369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9370 (eval $ac_try) 2>&5
9371 ac_status=$?
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); }; }; then
9374 ac_cv_c_bigendian=yes
9375 else
9376 echo "$as_me: failed program was:" >&5
9377 cat conftest.$ac_ext >&5
9378 ac_cv_c_bigendian=no
9379 fi
9380 rm -f conftest.$ac_objext conftest.$ac_ext
9381 else
9382 echo "$as_me: failed program was:" >&5
9383 cat conftest.$ac_ext >&5
9384 # It does not; compile a test program.
9385 if test "$cross_compiling" = yes; then
9386 # try to guess the endianess by grep'ing values into an object file
9387 ac_cv_c_bigendian=unknown
9388 cat >conftest.$ac_ext <<_ACEOF
9389 #line $LINENO "configure"
9390 #include "confdefs.h"
9391 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9392 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9393 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
9394 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9395 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9396 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
9397 #ifdef F77_DUMMY_MAIN
9398 # ifdef __cplusplus
9399 extern "C"
9400 # endif
9401 int F77_DUMMY_MAIN() { return 1; }
9402 #endif
9403 int
9404 main ()
9405 {
9406 _ascii (); _ebcdic ();
9407 ;
9408 return 0;
9409 }
9410 _ACEOF
9411 rm -f conftest.$ac_objext
9412 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9413 (eval $ac_compile) 2>&5
9414 ac_status=$?
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); } &&
9417 { ac_try='test -s conftest.$ac_objext'
9418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9419 (eval $ac_try) 2>&5
9420 ac_status=$?
9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422 (exit $ac_status); }; }; then
9423 if fgrep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
9424 ac_cv_c_bigendian=yes
9425 fi
9426 if fgrep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9427 if test "$ac_cv_c_bigendian" = unknown; then
9428 ac_cv_c_bigendian=no
9429 else
9430 # finding both strings is unlikely to happen, but who knows?
9431 ac_cv_c_bigendian=unknown
9432 fi
9433 fi
9434 else
9435 echo "$as_me: failed program was:" >&5
9436 cat conftest.$ac_ext >&5
9437 fi
9438 rm -f conftest.$ac_objext conftest.$ac_ext
9439 else
9440 cat >conftest.$ac_ext <<_ACEOF
9441 #line $LINENO "configure"
9442 #include "confdefs.h"
9443 int
9444 main ()
9445 {
9446 /* Are we little or big endian? From Harbison&Steele. */
9447 union
9448 {
9449 long l;
9450 char c[sizeof (long)];
9451 } u;
9452 u.l = 1;
9453 exit (u.c[sizeof (long) - 1] == 1);
9454 }
9455 _ACEOF
9456 rm -f conftest$ac_exeext
9457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9458 (eval $ac_link) 2>&5
9459 ac_status=$?
9460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9461 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9463 (eval $ac_try) 2>&5
9464 ac_status=$?
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); }; }; then
9467 ac_cv_c_bigendian=no
9468 else
9469 echo "$as_me: program exited with status $ac_status" >&5
9470 echo "$as_me: failed program was:" >&5
9471 cat conftest.$ac_ext >&5
9472 ( exit $ac_status )
9473 ac_cv_c_bigendian=yes
9474 fi
9475 rm -f core core.* *.core conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9476 fi
9477 fi
9478 rm -f conftest.$ac_objext conftest.$ac_ext
9479 fi
9480 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
9481 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
9482 case $ac_cv_c_bigendian in
9483 yes)
9484
9485 cat >>confdefs.h <<\_ACEOF
9486 #define WORDS_BIGENDIAN 1
9487 _ACEOF
9488 ;;
9489 no)
9490 ;;
9491 *)
9492 { { echo "$as_me:$LINENO: error: unknown endianess
9493 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
9494 echo "$as_me: error: unknown endianess
9495 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
9496 { (exit 1); exit 1; }; } ;;
9497 esac
9498
9499
9500
9501
9502
9503 for ac_func in memalign gettimeofday ftime
9504 do
9505 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9506 echo "$as_me:$LINENO: checking for $ac_func" >&5
9507 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
9508 if eval "test \"\${$as_ac_var+set}\" = set"; then
9509 echo $ECHO_N "(cached) $ECHO_C" >&6
9510 else
9511 cat >conftest.$ac_ext <<_ACEOF
9512 #line $LINENO "configure"
9513 #include "confdefs.h"
9514 /* System header to define __stub macros and hopefully few prototypes,
9515 which can conflict with char $ac_func (); below. */
9516 #include <assert.h>
9517 /* Override any gcc2 internal prototype to avoid an error. */
9518 #ifdef __cplusplus
9519 extern "C"
9520 #endif
9521 /* We use char because int might match the return type of a gcc2
9522 builtin and then its argument prototype would still apply. */
9523 char $ac_func ();
9524 char (*f) ();
9525
9526 #ifdef F77_DUMMY_MAIN
9527 # ifdef __cplusplus
9528 extern "C"
9529 # endif
9530 int F77_DUMMY_MAIN() { return 1; }
9531 #endif
9532 int
9533 main ()
9534 {
9535 /* The GNU C library defines this for functions which it implements
9536 to always fail with ENOSYS. Some functions are actually named
9537 something starting with __ and the normal name is an alias. */
9538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
9539 choke me
9540 #else
9541 f = $ac_func;
9542 #endif
9543
9544 ;
9545 return 0;
9546 }
9547 _ACEOF
9548 rm -f conftest.$ac_objext conftest$ac_exeext
9549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9550 (eval $ac_link) 2>&5
9551 ac_status=$?
9552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9553 (exit $ac_status); } &&
9554 { ac_try='test -s conftest$ac_exeext'
9555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9556 (eval $ac_try) 2>&5
9557 ac_status=$?
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); }; }; then
9560 eval "$as_ac_var=yes"
9561 else
9562 echo "$as_me: failed program was:" >&5
9563 cat conftest.$ac_ext >&5
9564 eval "$as_ac_var=no"
9565 fi
9566 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9567 fi
9568 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
9569 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
9570 if test `eval echo '${'$as_ac_var'}'` = yes; then
9571 cat >>confdefs.h <<_ACEOF
9572 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9573 _ACEOF
9574
9575 fi
9576 done
9577
9578 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9579 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
9580 if test "${ac_cv_type_signal+set}" = set; then
9581 echo $ECHO_N "(cached) $ECHO_C" >&6
9582 else
9583 cat >conftest.$ac_ext <<_ACEOF
9584 #line $LINENO "configure"
9585 #include "confdefs.h"
9586 #include <sys/types.h>
9587 #include <signal.h>
9588 #ifdef signal
9589 # undef signal
9590 #endif
9591 #ifdef __cplusplus
9592 extern "C" void (*signal (int, void (*)(int)))(int);
9593 #else
9594 void (*signal ()) ();
9595 #endif
9596
9597 #ifdef F77_DUMMY_MAIN
9598 # ifdef __cplusplus
9599 extern "C"
9600 # endif
9601 int F77_DUMMY_MAIN() { return 1; }
9602 #endif
9603 int
9604 main ()
9605 {
9606 int i;
9607 ;
9608 return 0;
9609 }
9610 _ACEOF
9611 rm -f conftest.$ac_objext
9612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9613 (eval $ac_compile) 2>&5
9614 ac_status=$?
9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 (exit $ac_status); } &&
9617 { ac_try='test -s conftest.$ac_objext'
9618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9619 (eval $ac_try) 2>&5
9620 ac_status=$?
9621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622 (exit $ac_status); }; }; then
9623 ac_cv_type_signal=void
9624 else
9625 echo "$as_me: failed program was:" >&5
9626 cat conftest.$ac_ext >&5
9627 ac_cv_type_signal=int
9628 fi
9629 rm -f conftest.$ac_objext conftest.$ac_ext
9630 fi
9631 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9632 echo "${ECHO_T}$ac_cv_type_signal" >&6
9633
9634 cat >>confdefs.h <<_ACEOF
9635 #define RETSIGTYPE $ac_cv_type_signal
9636 _ACEOF
9637
9638
9639
9640
9641
9642
9643 LIBA52_CFLAGS="$LIBA52_CFLAGS -prefer-non-pic"
9644
9645 # Check whether --enable-double or --disable-double was given.
9646 if test "${enable_double+set}" = set; then
9647 enableval="$enable_double"
9648
9649 fi;
9650 if test x"$enable_double" = x"yes"; then
9651
9652 cat >>confdefs.h <<\_ACEOF
9653 #define LIBA52_DOUBLE
9654 _ACEOF
9655
9656 fi
9657
9658 # Check whether --enable-djbfft or --disable-djbfft was given.
9659 if test "${enable_djbfft+set}" = set; then
9660 enableval="$enable_djbfft"
9661
9662 fi;
9663 if test x"$enable_djbfft" = x"yes"; then
9664
9665 cat >>confdefs.h <<\_ACEOF
9666 #define LIBA52_DJBFFT
9667 _ACEOF
9668
9669 LIBA52_LIBS="$LIBA52_LIBS -ldjbfft"
9670 fi
9671
9672
9673
9674 # Check whether --enable-oss or --disable-oss was given.
9675 if test "${enable_oss+set}" = set; then
9676 enableval="$enable_oss"
9677
9678 fi;
9679 if test x"$enable_oss" != x"no"; then
9680 case "$host" in
9681 *-linux*|*-openbsd*|*-freebsd*|*-bsdi*)
9682
9683 cat >>confdefs.h <<\_ACEOF
9684 #define LIBAO_OSS
9685 _ACEOF
9686
9687 echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
9688 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
9689 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
9690 echo $ECHO_N "(cached) $ECHO_C" >&6
9691 else
9692 ac_check_lib_save_LIBS=$LIBS
9693 LIBS="-lossaudio $LIBS"
9694 cat >conftest.$ac_ext <<_ACEOF
9695 #line $LINENO "configure"
9696 #include "confdefs.h"
9697
9698 /* Override any gcc2 internal prototype to avoid an error. */
9699 #ifdef __cplusplus
9700 extern "C"
9701 #endif
9702 /* We use char because int might match the return type of a gcc2
9703 builtin and then its argument prototype would still apply. */
9704 char _oss_ioctl ();
9705 #ifdef F77_DUMMY_MAIN
9706 # ifdef __cplusplus
9707 extern "C"
9708 # endif
9709 int F77_DUMMY_MAIN() { return 1; }
9710 #endif
9711 int
9712 main ()
9713 {
9714 _oss_ioctl ();
9715 ;
9716 return 0;
9717 }
9718 _ACEOF
9719 rm -f conftest.$ac_objext conftest$ac_exeext
9720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9721 (eval $ac_link) 2>&5
9722 ac_status=$?
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); } &&
9725 { ac_try='test -s conftest$ac_exeext'
9726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9727 (eval $ac_try) 2>&5
9728 ac_status=$?
9729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9730 (exit $ac_status); }; }; then
9731 ac_cv_lib_ossaudio__oss_ioctl=yes
9732 else
9733 echo "$as_me: failed program was:" >&5
9734 cat conftest.$ac_ext >&5
9735 ac_cv_lib_ossaudio__oss_ioctl=no
9736 fi
9737 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9738 LIBS=$ac_check_lib_save_LIBS
9739 fi
9740 echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
9741 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
9742 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
9743 LIBAO_LIBS="$LIBAO_LIBS -lossaudio"
9744 fi
9745 ;;
9746 esac
9747 fi
9748
9749 # Check whether --enable-solaris-audio or --disable-solaris-audio was given.
9750 if test "${enable_solaris_audio+set}" = set; then
9751 enableval="$enable_solaris_audio"
9752
9753 fi;
9754 if test x"$enable_solaris_audio" != x"no"; then
9755 case "$host" in
9756 *-sun-solaris*)
9757
9758 cat >>confdefs.h <<\_ACEOF
9759 #define LIBAO_SOLARIS
9760 _ACEOF
9761 ;;
9762 esac
9763 fi
9764
9765 # Check whether --enable-al-audio or --disable-al-audio was given.
9766 if test "${enable_al_audio+set}" = set; then
9767 enableval="$enable_al_audio"
9768
9769 fi;
9770 if test x"$enable_al" != x"no"; then
9771 case "$host" in
9772 *-sgi-irix*)
9773 LIBAO_LIBS="$LIBAO_LIBS -laudio"
9774
9775 cat >>confdefs.h <<\_ACEOF
9776 #define LIBAO_AL
9777 _ACEOF
9778 ;;
9779 esac
9780 fi
9781
9782 # Check whether --enable-win or --disable-win was given.
9783 if test "${enable_win+set}" = set; then
9784 enableval="$enable_win"
9785
9786 fi;
9787 if test x"$enable_win" != x"no"; then
9788 case "$host" in
9789 *-mingw32*|*-cygwin)
9790 LIBAO_LIBS="$LIBAO_LIBS -lwinmm"
9791
9792 cat >>confdefs.h <<\_ACEOF
9793 #define LIBAO_WIN
9794 _ACEOF
9795 ;;
9796 esac
9797 fi
9798
9799
9800 # Check whether --enable-warnings or --disable-warnings was given.
9801 if test "${enable_warnings+set}" = set; then
9802 enableval="$enable_warnings"
9803
9804 fi;
9805 if test x"$enable_warnings" = x"yes" -a x"$GCC" = x"yes"; then
9806 OPT_CFLAGS="$CFLAGS -Wall -Werror"
9807 echo "$as_me:$LINENO: checking if $CC supports $OPT_CFLAGS flags" >&5
9808 echo $ECHO_N "checking if $CC supports $OPT_CFLAGS flags... $ECHO_C" >&6
9809 SAVE_CFLAGS="$CFLAGS"
9810 CFLAGS="$OPT_CFLAGS"
9811 cat >conftest.$ac_ext <<_ACEOF
9812 #line $LINENO "configure"
9813 #include "confdefs.h"
9814
9815 #ifdef F77_DUMMY_MAIN
9816 # ifdef __cplusplus
9817 extern "C"
9818 # endif
9819 int F77_DUMMY_MAIN() { return 1; }
9820 #endif
9821 int
9822 main ()
9823 {
9824
9825 ;
9826 return 0;
9827 }
9828 _ACEOF
9829 rm -f conftest.$ac_objext
9830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9831 (eval $ac_compile) 2>&5
9832 ac_status=$?
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); } &&
9835 { ac_try='test -s conftest.$ac_objext'
9836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837 (eval $ac_try) 2>&5
9838 ac_status=$?
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); }; }; then
9841 ac_cv_try_cflags_ok=yes
9842 else
9843 echo "$as_me: failed program was:" >&5
9844 cat conftest.$ac_ext >&5
9845 ac_cv_try_cflags_ok=no
9846 fi
9847 rm -f conftest.$ac_objext conftest.$ac_ext
9848 CFLAGS="$SAVE_CFLAGS"
9849 echo "$as_me:$LINENO: result: $ac_cv_try_cflags_ok" >&5
9850 echo "${ECHO_T}$ac_cv_try_cflags_ok" >&6
9851 if test x"$ac_cv_try_cflags_ok" = x"yes"; then
9852 CFLAGS=$OPT_CFLAGS
9853 else
9854 :
9855 fi
9856 elif test x"$TENDRA" = x"yes"; then
9857 CFLAGS="$CFLAGS -DTenDRA_check"
9858 fi
9859
9860
9861
9862 A52DEC_CFLAGS="$CFLAGS"
9863
9864 # Check whether --enable-gprof or --disable-gprof was given.
9865 if test "${enable_gprof+set}" = set; then
9866 enableval="$enable_gprof"
9867
9868 fi;
9869 if test x"$enable_gprof" = x"yes"; then
9870 A52DEC_CFLAGS=`echo "$A52DEC_CFLAGS"|sed "s/-fomit-frame-pointer//g"`
9871 A52DEC_CFLAGS="$A52DEC_CFLAGS -p"
9872 fi
9873
9874
9875 echo "$as_me:$LINENO: checking __attribute__ ((aligned ())) support" >&5
9876 echo $ECHO_N "checking __attribute__ ((aligned ())) support... $ECHO_C" >&6
9877 if test "${ac_cv_c_attribute_aligned+set}" = set; then
9878 echo $ECHO_N "(cached) $ECHO_C" >&6
9879 else
9880 ac_cv_c_attribute_aligned=0
9881 for ac_cv_c_attr_align_try in 2 4 8 16 32 64; do
9882 cat >conftest.$ac_ext <<_ACEOF
9883 #line $LINENO "configure"
9884 #include "confdefs.h"
9885
9886 #ifdef F77_DUMMY_MAIN
9887 # ifdef __cplusplus
9888 extern "C"
9889 # endif
9890 int F77_DUMMY_MAIN() { return 1; }
9891 #endif
9892 int
9893 main ()
9894 {
9895 static char c __attribute__ ((aligned($ac_cv_c_attr_align_try))) = 0; return c;
9896 ;
9897 return 0;
9898 }
9899 _ACEOF
9900 rm -f conftest.$ac_objext
9901 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9902 (eval $ac_compile) 2>&5
9903 ac_status=$?
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); } &&
9906 { ac_try='test -s conftest.$ac_objext'
9907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9908 (eval $ac_try) 2>&5
9909 ac_status=$?
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; }; then
9912 ac_cv_c_attribute_aligned=$ac_cv_c_attr_align_try
9913 else
9914 echo "$as_me: failed program was:" >&5
9915 cat conftest.$ac_ext >&5
9916 fi
9917 rm -f conftest.$ac_objext conftest.$ac_ext
9918 done
9919 fi
9920 echo "$as_me:$LINENO: result: $ac_cv_c_attribute_aligned" >&5
9921 echo "${ECHO_T}$ac_cv_c_attribute_aligned" >&6
9922 if test x"$ac_cv_c_attribute_aligned" != x"0"; then
9923
9924 cat >>confdefs.h <<_ACEOF
9925 #define ATTRIBUTE_ALIGNED_MAX $ac_cv_c_attribute_aligned
9926 _ACEOF
9927
9928 fi
9929
9930 cat >confcache <<\_ACEOF
9931 # This file is a shell script that caches the results of configure
9932 # tests run on this system so they can be shared between configure
9933 # scripts and configure runs, see configure's option --config-cache.
9934 # It is not useful on other systems. If it contains results you don't
9935 # want to keep, you may remove or edit it.
9936 #
9937 # config.status only pays attention to the cache file if you give it
9938 # the --recheck option to rerun configure.
9939 #
9940 # `ac_cv_env_foo' variables (set or unset) will be overriden when
9941 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9942 # following values.
9943
9944 _ACEOF
9945
9946 # The following way of writing the cache mishandles newlines in values,
9947 # but we know of no workaround that is simple, portable, and efficient.
9948 # So, don't put newlines in cache variables' values.
9949 # Ultrix sh set writes to stderr and can't be redirected directly,
9950 # and sets the high bit in the cache file unless we assign to the vars.
9951 {
9952 (set) 2>&1 |
9953 case `(ac_space=' '; set | grep ac_space) 2>&1` in
9954 *ac_space=\ *)
9955 # `set' does not quote correctly, so add quotes (double-quote
9956 # substitution turns \\\\ into \\, and sed turns \\ into \).
9957 sed -n \
9958 "s/'/'\\\\''/g;
9959 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9960 ;;
9961 *)
9962 # `set' quotes correctly as required by POSIX, so do not add quotes.
9963 sed -n \
9964 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
9965 ;;
9966 esac;
9967 } |
9968 sed '
9969 t clear
9970 : clear
9971 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9972 t end
9973 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9974 : end' >>confcache
9975 if cmp -s $cache_file confcache; then :; else
9976 if test -w $cache_file; then
9977 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
9978 cat confcache >$cache_file
9979 else
9980 echo "not updating unwritable cache $cache_file"
9981 fi
9982 fi
9983 rm -f confcache
9984
9985 test "x$prefix" = xNONE && prefix=$ac_default_prefix
9986 # Let make expand exec_prefix.
9987 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
9988
9989 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9990 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9991 # trailing colons and then remove the whole line if VPATH becomes empty
9992 # (actually we leave an empty line to preserve line numbers).
9993 if test "x$srcdir" = x.; then
9994 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9995 s/:*\$(srcdir):*/:/;
9996 s/:*\${srcdir}:*/:/;
9997 s/:*@srcdir@:*/:/;
9998 s/^\([^=]*=[ ]*\):*/\1/;
9999 s/:*$//;
10000 s/^[^=]*=[ ]*$//;
10001 }'
10002 fi
10003
10004 DEFS=-DHAVE_CONFIG_H
10005
10006
10007 : ${CONFIG_STATUS=./config.status}
10008 ac_clean_files_save=$ac_clean_files
10009 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10010 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
10011 echo "$as_me: creating $CONFIG_STATUS" >&6;}
10012 cat >$CONFIG_STATUS <<_ACEOF
10013 #! $SHELL
10014 # Generated by $as_me.
10015 # Run this file to recreate the current configuration.
10016 # Compiler output produced by configure, useful for debugging
10017 # configure, is in config.log if it exists.
10018
10019 debug=false
10020 SHELL=\${CONFIG_SHELL-$SHELL}
10021 _ACEOF
10022
10023 cat >>$CONFIG_STATUS <<\_ACEOF
10024
10025 ## --------------------- ##
10026 ## M4sh Initialization. ##
10027 ## --------------------- ##
10028
10029 # Be Bourne compatible
10030 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
10031 emulate sh
10032 NULLCMD=:
10033 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
10034 set -o posix
10035 fi
10036
10037 # NLS nuisances.
10038 # Support unset when possible.
10039 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
10040 as_unset=unset
10041 else
10042 as_unset=false
10043 fi
10044
10045 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
10046 { $as_unset LANG || test "${LANG+set}" != set; } ||
10047 { LANG=C; export LANG; }
10048 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
10049 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
10050 { LC_ALL=C; export LC_ALL; }
10051 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
10052 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
10053 { LC_TIME=C; export LC_TIME; }
10054 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
10055 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
10056 { LC_CTYPE=C; export LC_CTYPE; }
10057 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
10058 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
10059 { LANGUAGE=C; export LANGUAGE; }
10060 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
10061 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
10062 { LC_COLLATE=C; export LC_COLLATE; }
10063 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
10064 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
10065 { LC_NUMERIC=C; export LC_NUMERIC; }
10066 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
10067 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
10068 { LC_MESSAGES=C; export LC_MESSAGES; }
10069
10070
10071 # Name of the executable.
10072 as_me=`(basename "$0") 2>/dev/null ||
10073 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10074 X"$0" : 'X\(//\)$' \| \
10075 X"$0" : 'X\(/\)$' \| \
10076 . : '\(.\)' 2>/dev/null ||
10077 echo X/"$0" |
10078 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
10079 /^X\/\(\/\/\)$/{ s//\1/; q; }
10080 /^X\/\(\/\).*/{ s//\1/; q; }
10081 s/.*/./; q'`
10082
10083 # PATH needs CR, and LINENO needs CR and PATH.
10084 # Avoid depending upon Character Ranges.
10085 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10086 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10087 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10088 as_cr_digits='0123456789'
10089 as_cr_alnum=$as_cr_Letters$as_cr_digits
10090
10091 # The user is always right.
10092 if test "${PATH_SEPARATOR+set}" != set; then
10093 echo "#! /bin/sh" >conftest.sh
10094 echo "exit 0" >>conftest.sh
10095 chmod +x conftest.sh
10096 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
10097 PATH_SEPARATOR=';'
10098 else
10099 PATH_SEPARATOR=:
10100 fi
10101 rm -f conftest.sh
10102 fi
10103
10104
10105 as_lineno_1=$LINENO
10106 as_lineno_2=$LINENO
10107 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10108 test "x$as_lineno_1" != "x$as_lineno_2" &&
10109 test "x$as_lineno_3" = "x$as_lineno_2" || {
10110 # Find who we are. Look in the path if we contain no path at all
10111 # relative or not.
10112 case $0 in
10113 *[\\/]* ) as_myself=$0 ;;
10114 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10115 for as_dir in $PATH
10116 do
10117 IFS=$as_save_IFS
10118 test -z "$as_dir" && as_dir=.
10119 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10120 done
10121
10122 ;;
10123 esac
10124 # We did not find ourselves, most probably we were run as `sh COMMAND'
10125 # in which case we are not to be found in the path.
10126 if test "x$as_myself" = x; then
10127 as_myself=$0
10128 fi
10129 if test ! -f "$as_myself"; then
10130 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
10131 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
10132 { (exit 1); exit 1; }; }
10133 fi
10134 case $CONFIG_SHELL in
10135 '')
10136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10137 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
10138 do
10139 IFS=$as_save_IFS
10140 test -z "$as_dir" && as_dir=.
10141 for as_base in sh bash ksh sh5; do
10142 case $as_dir in
10143 /*)
10144 if ("$as_dir/$as_base" -c '
10145 as_lineno_1=$LINENO
10146 as_lineno_2=$LINENO
10147 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
10148 test "x$as_lineno_1" != "x$as_lineno_2" &&
10149 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
10150 CONFIG_SHELL=$as_dir/$as_base
10151 export CONFIG_SHELL
10152 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
10153 fi;;
10154 esac
10155 done
10156 done
10157 ;;
10158 esac
10159
10160 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
10161 # uniformly replaced by the line number. The first 'sed' inserts a
10162 # line-number line before each line; the second 'sed' does the real
10163 # work. The second script uses 'N' to pair each line-number line
10164 # with the numbered line, and appends trailing '-' during
10165 # substitution so that $LINENO is not a special case at line end.
10166 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
10167 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
10168 sed '=' <$as_myself |
10169 sed '
10170 N
10171 s,$,-,
10172 : loop
10173 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
10174 t loop
10175 s,-$,,
10176 s,^['$as_cr_digits']*\n,,
10177 ' >$as_me.lineno &&
10178 chmod +x $as_me.lineno ||
10179 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
10180 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
10181 { (exit 1); exit 1; }; }
10182
10183 # Don't try to exec as it changes $[0], causing all sort of problems
10184 # (the dirname of $[0] is not the place where we might find the
10185 # original and so on. Autoconf is especially sensible to this).
10186 . ./$as_me.lineno
10187 # Exit status is that of the last command.
10188 exit
10189 }
10190
10191
10192 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
10193 *c*,-n*) ECHO_N= ECHO_C='
10194 ' ECHO_T=' ' ;;
10195 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
10196 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
10197 esac
10198
10199 if expr a : '\(a\)' >/dev/null 2>&1; then
10200 as_expr=expr
10201 else
10202 as_expr=false
10203 fi
10204
10205 rm -f conf$$ conf$$.exe conf$$.file
10206 echo >conf$$.file
10207 if ln -s conf$$.file conf$$ 2>/dev/null; then
10208 # We could just check for DJGPP; but this test a) works b) is more generic
10209 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
10210 if test -f conf$$.exe; then
10211 # Don't use ln at all; we don't have any links
10212 as_ln_s='cp -p'
10213 else
10214 as_ln_s='ln -s'
10215 fi
10216 elif ln conf$$.file conf$$ 2>/dev/null; then
10217 as_ln_s=ln
10218 else
10219 as_ln_s='cp -p'
10220 fi
10221 rm -f conf$$ conf$$.exe conf$$.file
10222
10223 as_executable_p="test -f"
10224
10225 # Sed expression to map a string onto a valid CPP name.
10226 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
10227
10228 # Sed expression to map a string onto a valid variable name.
10229 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
10230
10231
10232 # IFS
10233 # We need space, tab and new line, in precisely that order.
10234 as_nl='
10235 '
10236 IFS=" $as_nl"
10237
10238 # CDPATH.
10239 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
10240
10241 exec 6>&1
10242
10243 # Open the log real soon, to keep \$[0] and so on meaningful, and to
10244 # report actual input values of CONFIG_FILES etc. instead of their
10245 # values after options handling. Logging --version etc. is OK.
10246 exec 5>>config.log
10247 {
10248 echo
10249 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10250 ## Running $as_me. ##
10251 _ASBOX
10252 } >&5
10253 cat >&5 <<_CSEOF
10254
10255 This file was extended by $as_me, which was
10256 generated by GNU Autoconf 2.53. Invocation command line was
10257
10258 CONFIG_FILES = $CONFIG_FILES
10259 CONFIG_HEADERS = $CONFIG_HEADERS
10260 CONFIG_LINKS = $CONFIG_LINKS
10261 CONFIG_COMMANDS = $CONFIG_COMMANDS
10262 $ $0 $@
10263
10264 _CSEOF
10265 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
10266 echo >&5
10267 _ACEOF
10268
10269 # Files that config.status was made for.
10270 if test -n "$ac_config_files"; then
10271 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
10272 fi
10273
10274 if test -n "$ac_config_headers"; then
10275 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
10276 fi
10277
10278 if test -n "$ac_config_links"; then
10279 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
10280 fi
10281
10282 if test -n "$ac_config_commands"; then
10283 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
10284 fi
10285
10286 cat >>$CONFIG_STATUS <<\_ACEOF
10287
10288 ac_cs_usage="\
10289 \`$as_me' instantiates files from templates according to the
10290 current configuration.
10291
10292 Usage: $0 [OPTIONS] [FILE]...
10293
10294 -h, --help print this help, then exit
10295 -V, --version print version number, then exit
10296 -d, --debug don't remove temporary files
10297 --recheck update $as_me by reconfiguring in the same conditions
10298 --file=FILE[:TEMPLATE]
10299 instantiate the configuration file FILE
10300 --header=FILE[:TEMPLATE]
10301 instantiate the configuration header FILE
10302
10303 Configuration files:
10304 $config_files
10305
10306 Configuration headers:
10307 $config_headers
10308
10309 Configuration commands:
10310 $config_commands
10311
10312 Report bugs to <[email protected]>."
10313 _ACEOF
10314
10315 cat >>$CONFIG_STATUS <<_ACEOF
10316 ac_cs_version="\\
10317 config.status
10318 configured by $0, generated by GNU Autoconf 2.53,
10319 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
10320
10321 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
10322 Free Software Foundation, Inc.
10323 This config.status script is free software; the Free Software Foundation
10324 gives unlimited permission to copy, distribute and modify it."
10325 srcdir=$srcdir
10326 INSTALL="$INSTALL"
10327 _ACEOF
10328
10329 cat >>$CONFIG_STATUS <<\_ACEOF
10330 # If no file are specified by the user, then we need to provide default
10331 # value. By we need to know if files were specified by the user.
10332 ac_need_defaults=:
10333 while test $# != 0
10334 do
10335 case $1 in
10336 --*=*)
10337 ac_option=`expr "x$1" : 'x\([^=]*\)='`
10338 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
10339 shift
10340 set dummy "$ac_option" "$ac_optarg" ${1+"$@"}
10341 shift
10342 ;;
10343 -*);;
10344 *) # This is not an option, so the user has probably given explicit
10345 # arguments.
10346 ac_need_defaults=false;;
10347 esac
10348
10349 case $1 in
10350 # Handling of the options.
10351 _ACEOF
10352 cat >>$CONFIG_STATUS <<_ACEOF
10353 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10354 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
10355 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
10356 _ACEOF
10357 cat >>$CONFIG_STATUS <<\_ACEOF
10358 --version | --vers* | -V )
10359 echo "$ac_cs_version"; exit 0 ;;
10360 --he | --h)
10361 # Conflict between --help and --header
10362 { { echo "$as_me:$LINENO: error: ambiguous option: $1
10363 Try \`$0 --help' for more information." >&5
10364 echo "$as_me: error: ambiguous option: $1
10365 Try \`$0 --help' for more information." >&2;}
10366 { (exit 1); exit 1; }; };;
10367 --help | --hel | -h )
10368 echo "$ac_cs_usage"; exit 0 ;;
10369 --debug | --d* | -d )
10370 debug=: ;;
10371 --file | --fil | --fi | --f )
10372 shift
10373 CONFIG_FILES="$CONFIG_FILES $1"
10374 ac_need_defaults=false;;
10375 --header | --heade | --head | --hea )
10376 shift
10377 CONFIG_HEADERS="$CONFIG_HEADERS $1"
10378 ac_need_defaults=false;;
10379
10380 # This is an error.
10381 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
10382 Try \`$0 --help' for more information." >&5
10383 echo "$as_me: error: unrecognized option: $1
10384 Try \`$0 --help' for more information." >&2;}
10385 { (exit 1); exit 1; }; } ;;
10386
10387 *) ac_config_targets="$ac_config_targets $1" ;;
10388
10389 esac
10390 shift
10391 done
10392
10393 _ACEOF
10394
10395 cat >>$CONFIG_STATUS <<_ACEOF
10396 #
10397 # INIT-COMMANDS section.
10398 #
10399
10400
10401
10402 _ACEOF
10403
10404
10405
10406 cat >>$CONFIG_STATUS <<\_ACEOF
10407 for ac_config_target in $ac_config_targets
10408 do
10409 case "$ac_config_target" in
10410 # Handling of arguments.
10411 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
10412 "autotools/Makefile" ) CONFIG_FILES="$CONFIG_FILES autotools/Makefile" ;;
10413 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
10414 "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
10415 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
10416 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
10417 "liba52/Makefile" ) CONFIG_FILES="$CONFIG_FILES liba52/Makefile" ;;
10418 "libao/Makefile" ) CONFIG_FILES="$CONFIG_FILES libao/Makefile" ;;
10419 "vc++/Makefile" ) CONFIG_FILES="$CONFIG_FILES vc++/Makefile" ;;
10420 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
10421 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
10422 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
10423 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
10424 { (exit 1); exit 1; }; };;
10425 esac
10426 done
10427
10428 # If the user did not use the arguments to specify the items to instantiate,
10429 # then the envvar interface is used. Set only those that are not.
10430 # We use the long form for the default assignment because of an extremely
10431 # bizarre bug on SunOS 4.1.3.
10432 if $ac_need_defaults; then
10433 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10434 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10435 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
10436 fi
10437
10438 # Create a temporary directory, and hook for its removal unless debugging.
10439 $debug ||
10440 {
10441 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
10442 trap '{ (exit 1); exit 1; }' 1 2 13 15
10443 }
10444
10445 # Create a (secure) tmp directory for tmp files.
10446 : ${TMPDIR=/tmp}
10447 {
10448 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
10449 test -n "$tmp" && test -d "$tmp"
10450 } ||
10451 {
10452 tmp=$TMPDIR/cs$$-$RANDOM
10453 (umask 077 && mkdir $tmp)
10454 } ||
10455 {
10456 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
10457 { (exit 1); exit 1; }
10458 }
10459
10460 _ACEOF
10461
10462 cat >>$CONFIG_STATUS <<_ACEOF
10463
10464 #
10465 # CONFIG_FILES section.
10466 #
10467
10468 # No need to generate the scripts if there are no CONFIG_FILES.
10469 # This happens for instance when ./config.status config.h
10470 if test -n "\$CONFIG_FILES"; then
10471 # Protect against being on the right side of a sed subst in config.status.
10472 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
10473 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
10474 s,@SHELL@,$SHELL,;t t
10475 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
10476 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
10477 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
10478 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
10479 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
10480 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
10481 s,@exec_prefix@,$exec_prefix,;t t
10482 s,@prefix@,$prefix,;t t
10483 s,@program_transform_name@,$program_transform_name,;t t
10484 s,@bindir@,$bindir,;t t
10485 s,@sbindir@,$sbindir,;t t
10486 s,@libexecdir@,$libexecdir,;t t
10487 s,@datadir@,$datadir,;t t
10488 s,@sysconfdir@,$sysconfdir,;t t
10489 s,@sharedstatedir@,$sharedstatedir,;t t
10490 s,@localstatedir@,$localstatedir,;t t
10491 s,@libdir@,$libdir,;t t
10492 s,@includedir@,$includedir,;t t
10493 s,@oldincludedir@,$oldincludedir,;t t
10494 s,@infodir@,$infodir,;t t
10495 s,@mandir@,$mandir,;t t
10496 s,@build_alias@,$build_alias,;t t
10497 s,@host_alias@,$host_alias,;t t
10498 s,@target_alias@,$target_alias,;t t
10499 s,@DEFS@,$DEFS,;t t
10500 s,@ECHO_C@,$ECHO_C,;t t
10501 s,@ECHO_N@,$ECHO_N,;t t
10502 s,@ECHO_T@,$ECHO_T,;t t
10503 s,@LIBS@,$LIBS,;t t
10504 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
10505 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
10506 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
10507 s,@PACKAGE@,$PACKAGE,;t t
10508 s,@VERSION@,$VERSION,;t t
10509 s,@ACLOCAL@,$ACLOCAL,;t t
10510 s,@AUTOCONF@,$AUTOCONF,;t t
10511 s,@AUTOMAKE@,$AUTOMAKE,;t t
10512 s,@AUTOHEADER@,$AUTOHEADER,;t t
10513 s,@MAKEINFO@,$MAKEINFO,;t t
10514 s,@SET_MAKE@,$SET_MAKE,;t t
10515 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
10516 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
10517 s,@MAINT@,$MAINT,;t t
10518 s,@build@,$build,;t t
10519 s,@build_cpu@,$build_cpu,;t t
10520 s,@build_vendor@,$build_vendor,;t t
10521 s,@build_os@,$build_os,;t t
10522 s,@host@,$host,;t t
10523 s,@host_cpu@,$host_cpu,;t t
10524 s,@host_vendor@,$host_vendor,;t t
10525 s,@host_os@,$host_os,;t t
10526 s,@CC@,$CC,;t t
10527 s,@CFLAGS@,$CFLAGS,;t t
10528 s,@LDFLAGS@,$LDFLAGS,;t t
10529 s,@CPPFLAGS@,$CPPFLAGS,;t t
10530 s,@ac_ct_CC@,$ac_ct_CC,;t t
10531 s,@EXEEXT@,$EXEEXT,;t t
10532 s,@OBJEXT@,$OBJEXT,;t t
10533 s,@CPP@,$CPP,;t t
10534 s,@LN_S@,$LN_S,;t t
10535 s,@ECHO@,$ECHO,;t t
10536 s,@RANLIB@,$RANLIB,;t t
10537 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
10538 s,@STRIP@,$STRIP,;t t
10539 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
10540 s,@LIBTOOL@,$LIBTOOL,;t t
10541 s,@INCLUDES@,$INCLUDES,;t t
10542 s,@LIBA52_CFLAGS@,$LIBA52_CFLAGS,;t t
10543 s,@LIBA52_LIBS@,$LIBA52_LIBS,;t t
10544 s,@LIBAO_LIBS@,$LIBAO_LIBS,;t t
10545 s,@A52DEC_CFLAGS@,$A52DEC_CFLAGS,;t t
10546 CEOF
10547
10548 _ACEOF
10549
10550 cat >>$CONFIG_STATUS <<\_ACEOF
10551 # Split the substitutions into bite-sized pieces for seds with
10552 # small command number limits, like on Digital OSF/1 and HP-UX.
10553 ac_max_sed_lines=48
10554 ac_sed_frag=1 # Number of current file.
10555 ac_beg=1 # First line for current file.
10556 ac_end=$ac_max_sed_lines # Line after last line for current file.
10557 ac_more_lines=:
10558 ac_sed_cmds=
10559 while $ac_more_lines; do
10560 if test $ac_beg -gt 1; then
10561 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10562 else
10563 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
10564 fi
10565 if test ! -s $tmp/subs.frag; then
10566 ac_more_lines=false
10567 else
10568 # The purpose of the label and of the branching condition is to
10569 # speed up the sed processing (if there are no `@' at all, there
10570 # is no need to browse any of the substitutions).
10571 # These are the two extra sed commands mentioned above.
10572 (echo ':t
10573 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
10574 if test -z "$ac_sed_cmds"; then
10575 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
10576 else
10577 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
10578 fi
10579 ac_sed_frag=`expr $ac_sed_frag + 1`
10580 ac_beg=$ac_end
10581 ac_end=`expr $ac_end + $ac_max_sed_lines`
10582 fi
10583 done
10584 if test -z "$ac_sed_cmds"; then
10585 ac_sed_cmds=cat
10586 fi
10587 fi # test -n "$CONFIG_FILES"
10588
10589 _ACEOF
10590 cat >>$CONFIG_STATUS <<\_ACEOF
10591 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
10592 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10593 case $ac_file in
10594 - | *:- | *:-:* ) # input from stdin
10595 cat >$tmp/stdin
10596 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10597 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10598 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10599 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10600 * ) ac_file_in=$ac_file.in ;;
10601 esac
10602
10603 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
10604 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10605 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10606 X"$ac_file" : 'X\(//\)[^/]' \| \
10607 X"$ac_file" : 'X\(//\)$' \| \
10608 X"$ac_file" : 'X\(/\)' \| \
10609 . : '\(.\)' 2>/dev/null ||
10610 echo X"$ac_file" |
10611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10612 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10613 /^X\(\/\/\)$/{ s//\1/; q; }
10614 /^X\(\/\).*/{ s//\1/; q; }
10615 s/.*/./; q'`
10616 { case "$ac_dir" in
10617 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10618 *) as_incr_dir=.;;
10619 esac
10620 as_dummy="$ac_dir"
10621 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10622 case $as_mkdir_dir in
10623 # Skip DOS drivespec
10624 ?:) as_incr_dir=$as_mkdir_dir ;;
10625 *)
10626 as_incr_dir=$as_incr_dir/$as_mkdir_dir
10627 test -d "$as_incr_dir" ||
10628 mkdir "$as_incr_dir" ||
10629 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
10630 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
10631 { (exit 1); exit 1; }; }
10632 ;;
10633 esac
10634 done; }
10635
10636 ac_builddir=.
10637
10638 if test "$ac_dir" != .; then
10639 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10640 # A "../" for each directory in $ac_dir_suffix.
10641 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10642 else
10643 ac_dir_suffix= ac_top_builddir=
10644 fi
10645
10646 case $srcdir in
10647 .) # No --srcdir option. We are building in place.
10648 ac_srcdir=.
10649 if test -z "$ac_top_builddir"; then
10650 ac_top_srcdir=.
10651 else
10652 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
10653 fi ;;
10654 [\\/]* | ?:[\\/]* ) # Absolute path.
10655 ac_srcdir=$srcdir$ac_dir_suffix;
10656 ac_top_srcdir=$srcdir ;;
10657 *) # Relative path.
10658 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
10659 ac_top_srcdir=$ac_top_builddir$srcdir ;;
10660 esac
10661 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
10662 # absolute.
10663 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
10664 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
10665 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
10666 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
10667
10668
10669 case $INSTALL in
10670 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
10671 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
10672 esac
10673
10674 if test x"$ac_file" != x-; then
10675 { echo "$as_me:$LINENO: creating $ac_file" >&5
10676 echo "$as_me: creating $ac_file" >&6;}
10677 rm -f "$ac_file"
10678 fi
10679 # Let's still pretend it is `configure' which instantiates (i.e., don't
10680 # use $as_me), people would be surprised to read:
10681 # /* config.h. Generated by config.status. */
10682 if test x"$ac_file" = x-; then
10683 configure_input=
10684 else
10685 configure_input="$ac_file. "
10686 fi
10687 configure_input=$configure_input"Generated from `echo $ac_file_in |
10688 sed 's,.*/,,'` by configure."
10689
10690 # First look for the input files in the build tree, otherwise in the
10691 # src tree.
10692 ac_file_inputs=`IFS=:
10693 for f in $ac_file_in; do
10694 case $f in
10695 -) echo $tmp/stdin ;;
10696 [\\/$]*)
10697 # Absolute (can't be DOS-style, as IFS=:)
10698 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10699 echo "$as_me: error: cannot find input file: $f" >&2;}
10700 { (exit 1); exit 1; }; }
10701 echo $f;;
10702 *) # Relative
10703 if test -f "$f"; then
10704 # Build tree
10705 echo $f
10706 elif test -f "$srcdir/$f"; then
10707 # Source tree
10708 echo $srcdir/$f
10709 else
10710 # /dev/null tree
10711 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10712 echo "$as_me: error: cannot find input file: $f" >&2;}
10713 { (exit 1); exit 1; }; }
10714 fi;;
10715 esac
10716 done` || { (exit 1); exit 1; }
10717 _ACEOF
10718 cat >>$CONFIG_STATUS <<_ACEOF
10719 sed "$ac_vpsub
10720 $extrasub
10721 _ACEOF
10722 cat >>$CONFIG_STATUS <<\_ACEOF
10723 :t
10724 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10725 s,@configure_input@,$configure_input,;t t
10726 s,@srcdir@,$ac_srcdir,;t t
10727 s,@abs_srcdir@,$ac_abs_srcdir,;t t
10728 s,@top_srcdir@,$ac_top_srcdir,;t t
10729 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
10730 s,@builddir@,$ac_builddir,;t t
10731 s,@abs_builddir@,$ac_abs_builddir,;t t
10732 s,@top_builddir@,$ac_top_builddir,;t t
10733 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
10734 s,@INSTALL@,$ac_INSTALL,;t t
10735 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
10736 rm -f $tmp/stdin
10737 if test x"$ac_file" != x-; then
10738 mv $tmp/out $ac_file
10739 else
10740 cat $tmp/out
10741 rm -f $tmp/out
10742 fi
10743
10744 done
10745 _ACEOF
10746 cat >>$CONFIG_STATUS <<\_ACEOF
10747
10748 #
10749 # CONFIG_HEADER section.
10750 #
10751
10752 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
10753 # NAME is the cpp macro being defined and VALUE is the value it is being given.
10754 #
10755 # ac_d sets the value in "#define NAME VALUE" lines.
10756 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
10757 ac_dB='[ ].*$,\1#\2'
10758 ac_dC=' '
10759 ac_dD=',;t'
10760 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
10761 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
10762 ac_uB='$,\1#\2define\3'
10763 ac_uC=' '
10764 ac_uD=',;t'
10765
10766 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
10767 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
10768 case $ac_file in
10769 - | *:- | *:-:* ) # input from stdin
10770 cat >$tmp/stdin
10771 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10772 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10773 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
10774 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
10775 * ) ac_file_in=$ac_file.in ;;
10776 esac
10777
10778 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
10779 echo "$as_me: creating $ac_file" >&6;}
10780
10781 # First look for the input files in the build tree, otherwise in the
10782 # src tree.
10783 ac_file_inputs=`IFS=:
10784 for f in $ac_file_in; do
10785 case $f in
10786 -) echo $tmp/stdin ;;
10787 [\\/$]*)
10788 # Absolute (can't be DOS-style, as IFS=:)
10789 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10790 echo "$as_me: error: cannot find input file: $f" >&2;}
10791 { (exit 1); exit 1; }; }
10792 echo $f;;
10793 *) # Relative
10794 if test -f "$f"; then
10795 # Build tree
10796 echo $f
10797 elif test -f "$srcdir/$f"; then
10798 # Source tree
10799 echo $srcdir/$f
10800 else
10801 # /dev/null tree
10802 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
10803 echo "$as_me: error: cannot find input file: $f" >&2;}
10804 { (exit 1); exit 1; }; }
10805 fi;;
10806 esac
10807 done` || { (exit 1); exit 1; }
10808 # Remove the trailing spaces.
10809 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
10810
10811 _ACEOF
10812
10813 # Transform confdefs.h into two sed scripts, `conftest.defines' and
10814 # `conftest.undefs', that substitutes the proper values into
10815 # config.h.in to produce config.h. The first handles `#define'
10816 # templates, and the second `#undef' templates.
10817 # And first: Protect against being on the right side of a sed subst in
10818 # config.status. Protect against being in an unquoted here document
10819 # in config.status.
10820 rm -f conftest.defines conftest.undefs
10821 # Using a here document instead of a string reduces the quoting nightmare.
10822 # Putting comments in sed scripts is not portable.
10823 #
10824 # `end' is used to avoid that the second main sed command (meant for
10825 # 0-ary CPP macros) applies to n-ary macro definitions.
10826 # See the Autoconf documentation for `clear'.
10827 cat >confdef2sed.sed <<\_ACEOF
10828 s/[\\&,]/\\&/g
10829 s,[\\$`],\\&,g
10830 t clear
10831 : clear
10832 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
10833 t end
10834 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
10835 : end
10836 _ACEOF
10837 # If some macros were called several times there might be several times
10838 # the same #defines, which is useless. Nevertheless, we may not want to
10839 # sort them, since we want the *last* AC-DEFINE to be honored.
10840 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
10841 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
10842 rm -f confdef2sed.sed
10843
10844 # This sed command replaces #undef with comments. This is necessary, for
10845 # example, in the case of _POSIX_SOURCE, which is predefined and required
10846 # on some systems where configure will not decide to define it.
10847 cat >>conftest.undefs <<\_ACEOF
10848 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
10849 _ACEOF
10850
10851 # Break up conftest.defines because some shells have a limit on the size
10852 # of here documents, and old seds have small limits too (100 cmds).
10853 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
10854 echo ' if egrep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
10855 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
10856 echo ' :' >>$CONFIG_STATUS
10857 rm -f conftest.tail
10858 while grep . conftest.defines >/dev/null
10859 do
10860 # Write a limited-size here document to $tmp/defines.sed.
10861 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
10862 # Speed up: don't consider the non `#define' lines.
10863 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
10864 # Work around the forget-to-reset-the-flag bug.
10865 echo 't clr' >>$CONFIG_STATUS
10866 echo ': clr' >>$CONFIG_STATUS
10867 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
10868 echo 'CEOF
10869 sed -f $tmp/defines.sed $tmp/in >$tmp/out
10870 rm -f $tmp/in
10871 mv $tmp/out $tmp/in
10872 ' >>$CONFIG_STATUS
10873 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
10874 rm -f conftest.defines
10875 mv conftest.tail conftest.defines
10876 done
10877 rm -f conftest.defines
10878 echo ' fi # egrep' >>$CONFIG_STATUS
10879 echo >>$CONFIG_STATUS
10880
10881 # Break up conftest.undefs because some shells have a limit on the size
10882 # of here documents, and old seds have small limits too (100 cmds).
10883 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
10884 rm -f conftest.tail
10885 while grep . conftest.undefs >/dev/null
10886 do
10887 # Write a limited-size here document to $tmp/undefs.sed.
10888 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
10889 # Speed up: don't consider the non `#undef'
10890 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
10891 # Work around the forget-to-reset-the-flag bug.
10892 echo 't clr' >>$CONFIG_STATUS
10893 echo ': clr' >>$CONFIG_STATUS
10894 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
10895 echo 'CEOF
10896 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
10897 rm -f $tmp/in
10898 mv $tmp/out $tmp/in
10899 ' >>$CONFIG_STATUS
10900 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
10901 rm -f conftest.undefs
10902 mv conftest.tail conftest.undefs
10903 done
10904 rm -f conftest.undefs
10905
10906 cat >>$CONFIG_STATUS <<\_ACEOF
10907 # Let's still pretend it is `configure' which instantiates (i.e., don't
10908 # use $as_me), people would be surprised to read:
10909 # /* config.h. Generated by config.status. */
10910 if test x"$ac_file" = x-; then
10911 echo "/* Generated by configure. */" >$tmp/config.h
10912 else
10913 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
10914 fi
10915 cat $tmp/in >>$tmp/config.h
10916 rm -f $tmp/in
10917 if test x"$ac_file" != x-; then
10918 if cmp -s $ac_file $tmp/config.h 2>/dev/null; then
10919 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
10920 echo "$as_me: $ac_file is unchanged" >&6;}
10921 else
10922 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
10923 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10924 X"$ac_file" : 'X\(//\)[^/]' \| \
10925 X"$ac_file" : 'X\(//\)$' \| \
10926 X"$ac_file" : 'X\(/\)' \| \
10927 . : '\(.\)' 2>/dev/null ||
10928 echo X"$ac_file" |
10929 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10930 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10931 /^X\(\/\/\)$/{ s//\1/; q; }
10932 /^X\(\/\).*/{ s//\1/; q; }
10933 s/.*/./; q'`
10934 { case "$ac_dir" in
10935 [\\/]* | ?:[\\/]* ) as_incr_dir=;;
10936 *) as_incr_dir=.;;
10937 esac
10938 as_dummy="$ac_dir"
10939 for as_mkdir_dir in `IFS='/\\'; set X $as_dummy; shift; echo "$@"`; do
10940 case $as_mkdir_dir in
10941 # Skip DOS drivespec
10942 ?:) as_incr_dir=$as_mkdir_dir ;;
10943 *)
10944 as_incr_dir=$as_incr_dir/$as_mkdir_dir
10945 test -d "$as_incr_dir" ||
10946 mkdir "$as_incr_dir" ||
10947 { { echo "$as_me:$LINENO: error: cannot create \"$ac_dir\"" >&5
10948 echo "$as_me: error: cannot create \"$ac_dir\"" >&2;}
10949 { (exit 1); exit 1; }; }
10950 ;;
10951 esac
10952 done; }
10953
10954 rm -f $ac_file
10955 mv $tmp/config.h $ac_file
10956 fi
10957 else
10958 cat $tmp/config.h
10959 rm -f $tmp/config.h
10960 fi
10961 done
10962 _ACEOF
10963 cat >>$CONFIG_STATUS <<\_ACEOF
10964
10965 #
10966 # CONFIG_COMMANDS section.
10967 #
10968 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
10969 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
10970 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
10971 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
10972 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10973 X"$ac_dest" : 'X\(//\)[^/]' \| \
10974 X"$ac_dest" : 'X\(//\)$' \| \
10975 X"$ac_dest" : 'X\(/\)' \| \
10976 . : '\(.\)' 2>/dev/null ||
10977 echo X"$ac_dest" |
10978 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
10979 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
10980 /^X\(\/\/\)$/{ s//\1/; q; }
10981 /^X\(\/\).*/{ s//\1/; q; }
10982 s/.*/./; q'`
10983 ac_builddir=.
10984
10985 if test "$ac_dir" != .; then
10986 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
10987 # A "../" for each directory in $ac_dir_suffix.
10988 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
10989 else
10990 ac_dir_suffix= ac_top_builddir=
10991 fi
10992
10993 case $srcdir in
10994 .) # No --srcdir option. We are building in place.
10995 ac_srcdir=.
10996 if test -z "$ac_top_builddir"; then
10997 ac_top_srcdir=.
10998 else
10999 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
11000 fi ;;
11001 [\\/]* | ?:[\\/]* ) # Absolute path.
11002 ac_srcdir=$srcdir$ac_dir_suffix;
11003 ac_top_srcdir=$srcdir ;;
11004 *) # Relative path.
11005 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
11006 ac_top_srcdir=$ac_top_builddir$srcdir ;;
11007 esac
11008 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
11009 # absolute.
11010 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
11011 ac_abs_top_builddir=`cd "$ac_dir" && cd $ac_top_builddir && pwd`
11012 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
11013 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
11014
11015
11016 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
11017 echo "$as_me: executing $ac_dest commands" >&6;}
11018 case $ac_dest in
11019 default-1 ) test -z "$CONFIG_HEADERS" || echo timestamp > include/stamp-h ;;
11020 esac
11021 done
11022 _ACEOF
11023
11024 cat >>$CONFIG_STATUS <<\_ACEOF
11025
11026 { (exit 0); exit 0; }
11027 _ACEOF
11028 chmod +x $CONFIG_STATUS
11029 ac_clean_files=$ac_clean_files_save
11030
11031
11032 # configure is writing to config.log, and then calls config.status.
11033 # config.status does its own redirection, appending to config.log.
11034 # Unfortunately, on DOS this fails, as config.log is still kept open
11035 # by configure, so config.status won't be able to write to it; its
11036 # output is simply discarded. So we exec the FD to /dev/null,
11037 # effectively closing config.log, so it can be properly (re)opened and
11038 # appended to by config.status. When coming back to configure, we
11039 # need to make the FD available again.
11040 if test "$no_create" != yes; then
11041 ac_cs_success=:
11042 exec 5>/dev/null
11043 $SHELL $CONFIG_STATUS || ac_cs_success=false
11044 exec 5>>config.log
11045 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11046 # would make configure fail if this is the last instruction.
11047 $ac_cs_success || { (exit 1); exit 1; }
11048 fi
11049